joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411350
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x411369
push dword [0x450edc]
call fcn.0041ccf2
pop edi
ret 4
push esi
push edi
push dword [0x450edc]
call fcn.00413dec
mov esi, eax
test esi, esi
je 0x4113d3
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4113bf
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x4113ae
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
push dword [esi + 4]
push 0
push dword [0x44f914]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x450edc]
call fcn.00413e14
pop esi
pop edi
ret 4

Function at 0x4115b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x450edc]
call fcn.00413dec
mov esi, eax
test esi, esi
je 0x41162f
cmp dword [esi + 4], 0
je 0x411600
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.004204a0
test eax, eax
je 0x4115f4
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41163a
cmp dword [esp + 8], 0
je 0x41163a
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4
Function at 0x411840
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push ebx
push dword [0x450edc]
mov dword [esp + 0x14], 0
call fcn.00413dec
mov ebp, eax
test ebp, ebp
je 0x4119aa
push esi
push edi
push ebx
call fcn.00411650
cmp dword [ebp + 4], 0
mov esi, eax
mov edi, edx
je 0x41188e
push 4
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.004204a0
mov ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x4118a9
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea eax, [esp + 0x1c]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
cmp ecx, 2
jl 0x4118d9
lea edx, [esp + 0x10]
mov eax, 0xfeff
cmp word [edx], ax
jne 0x4118d9
add esi, 2
adc edi, 0
push edi
push esi
push ebx
call fcn.00420aa0
pop edi
pop esi
pop ebp
mov eax, 0x19
pop ebx
add esp, 8
ret 4
cmp ecx, 3
jl 0x41190c
lea edx, [esp + 0x10]
cmp word [edx], 0xbbef
jne 0x41190c
cmp byte [edx + 2], 0xbf
jne 0x41190c
add esi, 3
adc edi, 0
push edi
push esi
push ebx
call fcn.00420aa0
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 8
ret 4
cmp ecx, 2
jl 0x41193c
lea edx, [esp + 0x10]
mov eax, 0xfffe
cmp word [edx], ax
jne 0x41193c
add esi, 2
adc edi, 0
push edi
push esi
push ebx
call fcn.00420aa0
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 8
ret 4
cmp ecx, 4
jl 0x411993
lea eax, [esp + 0x10]
cmp dword [eax], 0xfeff
jne 0x41196a
add esi, 4
adc edi, 0
push edi
push esi
push ebx
call fcn.00420aa0
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 8
ret 4
lea eax, [esp + 0x10]
cmp dword [eax], 0xfffe0000
jne 0x411993
add esi, 4
adc edi, 0
push edi
push esi
push ebx
call fcn.00420aa0
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 8
ret 4
push edi
push esi
push ebx
call fcn.00420aa0
pop edi
pop esi
pop ebp
mov eax, 0x18
pop ebx
add esp, 8
ret 4
pop ebp
mov eax, 0x18
pop ebx
add esp, 8
ret 4

Function at 0x4119c0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x411a25
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x411a1d
push dword [esp + 0x10]
push dword [0x450edc]
call fcn.00413dec
test eax, eax
je 0x411a13
cmp dword [eax + 4], 0
je 0x411a02
push edi
push esi
push eax
call fcn.00420b00
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc
Function at 0x411a30
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x411b2f
cmp word [edx], 0
je 0x411b2f
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x411a5e
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x411ab4
mov ecx, edx
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411a70
sub ecx, edi
sar ecx, 1
cmp dword [esi + 4], 0
je 0x411a96
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.00420b00
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
lea eax, [esp + 0x14]
push eax
xor eax, eax
cmp ecx, 2
push edx
setne al
dec eax
and eax, 0xfde9
push eax
call fcn.00420c20
mov edi, eax
test edi, edi
je 0x411aaa
cmp dword [esi + 4], 0
je 0x411b02
push dword [esp + 0x14]
push edi
push esi
call fcn.00420b00
push edi
push 0
push dword [0x44f914]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x44f914]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc

Function at 0x411b70
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0x450edc]
call fcn.00413dec
test eax, eax
je case.0x411b9e.3
mov ecx, dword [esp + 8]
add ecx, 0xfffffffe
cmp ecx, 0x17
ja case.0x411b9e.3
movzx ecx, byte [ecx + 0x411ca8]
jmp dword [ecx*4 + 0x411c90]
cmp dword [eax + 4], 0
je 0x411bbb
push 2
push 0x4406ec
push eax
call fcn.00420b00
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 2
push 0x4406ec
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x411bea
push 3
push 0x4406f0
push eax
call fcn.00420b00
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 3
push 0x4406f0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x411c19
push 2
push 0x4406e8
push eax
call fcn.00420b00
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 2
push 0x4406e8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x411c48
push 4
push 0x441264
push eax
call fcn.00420b00
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 4
push 0x441264
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x411c77
push 4
push 0x4406e0
push eax
call fcn.00420b00
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 4
push 0x4406e0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
Function at 0x413645
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x41369a
push dword [esp + 0x10]
push 0x4136f9
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [0x450f14]
test edi, edi
je 0x4136f3
xor esi, esi
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x413692
cmp byte [edi + 0x10], 0
je 0x413692
push 3
push esi
push esi
push esi
push esi
push 0xfffffffffffffffe
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, ebx
test ebx, ebx
jne 0x41366e
jmp 0x4136f3
mov edi, dword [0x450f14]
test edi, edi
je 0x4136f3
xor esi, esi
push ebp
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x4136ec
cmp byte [edi + 0x11], 0
je 0x4136c5
push 1
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [edi + 0x10], 0
je 0x4136dc
push 3
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [edi + 8]
push eax
push 0x450f14
call fcn.00413d2f
pop ecx
pop ecx
mov edi, ebp
test ebp, ebp
jne 0x4136a7
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x413e97
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x413f56
cmp dword [esp + 0x24], 2
je 0x413f56
push 0x2000
push ebp
push dword [0x44f914]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x413f25
cmp dword [esp + 0x18], 2
jne 0x413f41
cmp dword [esp + 0x28], 0xffffffff
je 0x413ee9
cmp ebp, dword [esp + 0x28]
jae 0x413f41
add ebp, 2
test ebx, ebx
jne 0x413f0e
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x44f914]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x413f41
cmp ax, 0xd
je 0x413f25
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x413ed5
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.00415da0
jmp 0x413fe8
push eax
push 0
push dword [0x44f914]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x413f74
cmp ebp, dword [esp + 0x28]
jae 0x413fcc
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413fcc
cmp dword [esp + 0x18], 1
jne 0x413fcc
inc ebp
test ebx, ebx
jne 0x413fb9
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x44f914]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x413fcc
cmp al, 0xd
je 0x413f67
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x413f67
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x413fe3
call fcn.00415bc0
jmp 0x413fe8
call fcn.00415d40
push esi
push 0
push dword [0x44f914]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10

Function at 0x414030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x414094
cmp dword [ebp + 0x10], 0x18
push esi
jne 0x414051
call fcn.00415b20
mov esi, eax
push esi
call fcn.00415a90
jmp 0x414065
cmp dword [ebp + 0x10], 2
jne 0x41405e
call fcn.00415cb0
jmp 0x414047
call fcn.004137cd
add eax, eax
pop ecx
push 0
lea ecx, [ebp + 0xc]
push ecx
push eax
mov eax, dword [ebp + 8]
push esi
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp + 0x10], 0x18
jne 0x414088
push esi
call fcn.00415bb0
jmp 0x414094
cmp dword [ebp + 0x10], 2
jne 0x414094
push esi
call fcn.00415bb0
pop esi
pop ebp
ret 0xc
Function at 0x41aeba
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
xor ebp, ebp
push esi
test ebx, ebx
je 0x41aece
mov esi, ebx
jmp 0x41aee0
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
je 0x41afce
lea eax, [esp + 0x18]
push eax
push 0x18
pop eax
push eax
push dword [esp + 0x68]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x41afc3
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push edi
mov edi, dword [esp + 0x24]
push 0x2c
push 0
push eax
mov dword [esp + 0x20], ebp
call fcn.004011e0
add esp, 0xc
mov dword [esp + 0x34], 0x28
xor eax, eax
mov dword [esp + 0x38], ebp
inc eax
mov dword [esp + 0x3c], edi
mov word [esp + 0x40], ax
xor ecx, ecx
push 0x18
pop eax
push ecx
push ecx
mov word [esp + 0x4a], ax
lea eax, [esp + 0x18]
push eax
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x54], ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x41afc2
push 0
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x18]
push edi
push 0
push dword [esp + 0x78]
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
imul edi, dword [esp + 0x14]
test edi, edi
jle 0x41afc2
mov ebp, dword [esp + 0x10]
push 3
pop ebx
movzx ecx, byte [ebp + 1]
xor edx, edx
movzx eax, byte [ebp + 2]
add eax, ecx
movzx ecx, byte [ebp]
add eax, ecx
div ebx
mov byte [ebp], al
mov ecx, dword [esp + 0x10]
mov byte [ecx + 1], al
mov ecx, dword [esp + 0x10]
mov byte [ecx + 2], al
mov ebp, dword [esp + 0x10]
add ebp, ebx
mov dword [esp + 0x10], ebp
sub edi, 1
jne 0x41af86
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
pop edi
test ebx, ebx
jne 0x41afce
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x50
ret 8
Function at 0x41d42f
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x41d4c5
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x41d4c2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x41d4c2
lea eax, [esi - 1]
push eax
push dword [0x450f64]
call fcn.00413dec
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x41d4c4
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x41d4b2
mov edx, 0xfa01
cmp word [ecx], dx
je 0x41d4bd
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x41d4a2
jmp 0x41d4c2
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x41d56b
push eax
call esi
test al, al
jns 0x41d56b
push 0x11
call esi
test al, al
js 0x41d56b
push 0x10
call esi
test al, al
js 0x41d56b
push 0x12
call esi
test al, al
js 0x41d56b
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x41d56b
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.004202b8
add esp, 0xc
test eax, eax
je 0x41d53f
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.004202b8
add esp, 0xc
test eax, eax
jne 0x41d556
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x41d5ac
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.0042039c
pop ecx
pop ecx
test eax, eax
je 0x41d5ac
test ebp, ebp
je 0x41d58f
push 0x11
call esi
test al, al
js 0x41d587
push 0x10
call esi
test al, al
js 0x41d587
push 0x12
call esi
test al, al
jns 0x41d58f
push 1
push ebp
call fcn.0041d6d0
test ebx, ebx
je 0x41d5a3
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x41d5ac
test edi, edi
je 0x41d5ac
mov eax, dword [edi + 8]
jmp 0x41d5ae
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x41f165
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00427be0
mov eax, dword [0x44f1f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00425a5e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41f1a7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41f303
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00427b30
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x451580]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004276b6
mov ecx, dword [esi*4 + 0x451580]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x41f2fc
cmp eax, dword [ecx + edi + 0x24]
jne 0x41f2fc
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f2fc
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004276b6
add esp, 0x14
test edx, edx
jl 0x41f2fc
jg 0x41f272
test eax, eax
jb 0x41f2fc
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41f2fc
jl 0x41f28c
cmp dword [ebp - 0x1008], eax
ja 0x41f2fc
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41f2aa
test ebx, ebx
je 0x41f2e3
cmp ecx, edi
jae 0x41f2e3
mov al, byte [ecx]
cmp al, 0xd
jne 0x41f2c4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41f2d0
cmp byte [ecx + 1], 0xa
jne 0x41f2d0
inc ecx
jmp 0x41f2d0
movzx eax, al
movsx eax, byte [eax + 0x44f200]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41f2aa
cmp edx, ebx
jne 0x41f2aa
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41f301
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00425bd6
leave
ret

Function at 0x41f760
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x41f798
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41f793
xor eax, eax
cmp dword [esp + 0xc], esi
pop edi
sete al
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call fcn.0041a4e0
add dword [edi + 8], esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
ret
Function at 0x4204a0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
cmp dword [ebx + 0x14], 0
jne 0x4204c2
push ebx
call fcn.00411300
mov dword [ebx + 0x14], 1
mov dword [ebx + 0xc], 0
mov ebp, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
mov esi, dword [esp + 0x1c]
sub ecx, ebp
add ecx, dword [ebx + 0x10]
cmp ebp, esi
jl 0x42053e
mov eax, esi
sub eax, 1
je 0x42052a
sub eax, 1
je 0x420514
sub eax, 2
je 0x420500
push esi
push ecx
push dword [esp + 0x20]
call fcn.0041a4e0
add esp, 0xc
mov eax, esi
sub dword [ebx + 0xc], esi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [ecx]
pop edi
mov dword [eax], ecx
mov eax, esi
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
mov cx, word [ecx]
pop edi
mov word [eax], cx
mov eax, esi
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov dl, byte [ecx]
mov eax, esi
mov ecx, dword [esp + 0x18]
pop edi
mov byte [ecx], dl
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
push ebp
push ecx
push eax
call fcn.0041a4e0
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [ebx + 8]
add eax, ebp
mov ecx, dword [ebx]
sub esi, ebp
mov dword [esp + 0x18], eax
push 0
cmp esi, edx
jl 0x420586
lea edx, [esp + 0x18]
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
add eax, ebp
mov dword [ebx + 0xc], 0
pop ebp
pop ebx
ret 0xc
lea eax, [esp + 0x18]
push eax
push edx
push dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
cmp esi, eax
jle 0x4205a6
mov esi, eax
mov eax, dword [esp + 0x18]
push esi
push dword [ebx + 4]
push eax
call fcn.0041a4e0
sub dword [ebx + 0xc], esi
lea eax, [esi + ebp]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x4205d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push 0x1000
push 0
push dword [0x44f914]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x420760
mov cl, byte [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x42061e
test ebp, ebp
je 0x4206c6
dec ebp
cmp dword [ebx + 4], 0
lea edi, [ebx + 4]
je 0x42063a
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004204a0
mov dword [esp + 0x10], eax
jmp 0x420654
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
mov cl, byte [esp + 0x24]
cmp eax, 1
jne 0x4206c9
test cl, cl
je 0x420668
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x24]
mov eax, dword [esp + 0x14]
mov edi, esi
mov edx, dword [esp + 0x1c]
dec eax
sub edi, edx
cmp edi, eax
jle 0x4206a3
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x44f914]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x24]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [edi + edx]
test cl, cl
je 0x4206c6
cmp dword [esp + 0x28], 0
jne 0x420610
cmp cl, 0xd
je 0x4206d2
cmp cl, 0xa
jne 0x420610
dec esi
jmp 0x420743
lea edi, [ebx + 4]
cmp dword [esp + 0x28], 0
jne 0x420743
jmp 0x4206d5
lea edi, [ebx + 4]
cmp cl, 0xa
jne 0x4206dd
dec esi
jmp 0x420743
cmp cl, 0xd
jne 0x420743
dec esi
cmp dword [edi], 0
je 0x4206fb
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004204a0
mov dword [esp + 0x10], eax
jmp 0x420711
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x24], 0xa
je 0x420743
cmp dword [edi], 0
je 0x420722
inc dword [ebx + 0xc]
jmp 0x420743
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x30]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10