joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40269a
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x14
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4026a1
mov edx, dword [esp + 0x5c]
lea ecx, [esp]
call fcn.00404060
mov edx, dword [esp + 0x60]
lea ecx, [esp + 4]
call fcn.00404060
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
call fcn.00404060
lea eax, [esp + 0xc]
lea ebp, [esp + 0xc]
mov dword [ebp], 0x3c
mov dword [ebp + 4], 0x140
mov dword [ebp + 0x1c], 0
mov eax, 0x411037
push eax
pop eax
mov dword [ebp + 0xc], eax
mov eax, dword [esp]
push eax
pop eax
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 8]
push eax
pop eax
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 4]
push eax
pop eax
mov dword [ebp + 0x18], eax
lea eax, [esp + 0xc]
push eax
call fcn.0040f3a7
mov dword [esp + 0x48], eax
push 0x19
call fcn.00409702
lea eax, [esp + 0x4c]
push eax
lea ebp, [esp + 0x10]
push dword [ebp + 0x38]
call sub.i_GetExitCodeProcess
and eax, eax
je 0x402750
mov ebx, dword [esp + 0x4c]
cmp ebx, 0x103
je 0x402750
jmp 0x402752
jmp 0x402723
mov eax, dword [esp + 0x4c]
jmp 0x40275a
push dword [esp]
call fcn.0040e150
push dword [esp + 4]
call fcn.0040e150
push dword [esp + 8]
call fcn.0040e150
add esp, 0x50
pop ebx
pop ebp
ret 0xc

Function at 0x40277c
Capabilities:
Delete directory
Terminate process

Disassembly:
xor eax, eax
push eax
push dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
call fcn.0040b5d2
inc dword [0x412a78]
push dword [0x41252c]
mov edx, dword [0x411324]
add dword [esp + 4], edx
call fcn.00407143
lea eax, [esp + 4]
push eax
call fcn.0040e040
mov edx, dword [esp]
xor ecx, ecx
call fcn.0040e0c0
jne 0x40283a
mov edx, dword [esp]
push dword [0x412a78]
call fcn.0040e0f0
lea eax, [0x4124f4]
push eax
call fcn.0040e040
push dword [0x4124f4]
call fcn.0040b5b0
mov edx, dword [0x412484]
xor ecx, ecx
call fcn.0040e0c0
jne 0x40280c
push dword [0x412484]
call fcn.00402ad2
push dword [0x412500]
push 1
call fcn.0040b930
and eax, eax
je 0x40283a
push dword [0x4124fc]
push 1
call fcn.0040bb10
push 1
call fcn.0040b710
push dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
call fcn.00407593
mov edx, dword [0x411324]
add dword [esp], edx
call fcn.0040b53a
mov edx, dword [0x411324]
add dword [esp], edx
call fcn.0040b5b0
pop dword [0x412a78]
push dword [0x412560]
call sub.i_RemoveDirectoryA
push 0
jmp 0x401d91
Function at 0x4028a2
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.0040b1d0
mov dword [esp], eax
push dword [0x412a78]
push dword [0x412a78]
call fcn.0040b427
lea eax, [esp + 8]
push eax
call fcn.0040e040
push dword [esp]
push 0
push 0x41101e
push dword [esp + 0x10]
call sub.i_GetTempFileNameA
push dword [0x412a78]
push dword [0x412a78]
push dword [esp + 8]
call fcn.0040b280
lea eax, [0x412560]
push eax
call fcn.0040e040
push dword [esp]
call fcn.0040b2d0
push dword [0x412560]
call fcn.0040b4b6
push dword [0x412560]
call fcn.0040b4c4
push dword [0x412a78]
push dword [0x412a78]
call fcn.0040b5d2
lea eax, [0x4124f4]
push eax
call fcn.0040e040
push dword [esp + 0x14]
pop eax
call fcn.0040b1f0
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x40297b
mov edx, dword [0x412560]
push dword [0x412a78]
call fcn.0040e0f0
lea eax, [0x4124f4]
push eax
call fcn.0040e040
mov dword [esp + 0xc], 2
jmp 0x40298d
mov ebx, 1
cmp ebx, dword [esp]
jne 0x40298d
mov dword [esp + 0xc], 1
pop eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
push ebx
pop eax
call fcn.0040b1f0
mov dword [0x412524], eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
inc ebx
push ebx
pop eax
call fcn.0040b1f0
mov dword [0x41245c], eax
mov eax, 1
jmp 0x4029c0
push dword [esp + 4]
call fcn.0040e150
add esp, 0xc
pop ebx
ret 4

Function at 0x4029d0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
mov eax, dword [esp + 0x1c]
mov dword [0x412a78], eax
push dword [0x412a78]
push dword [0x412a78]
call sub.i_GetCommandLineA
push eax
call fcn.0040b280
lea eax, [esp + 4]
push eax
call fcn.0040e040
mov edx, dword [esp]
push dword [0x412a78]
call fcn.0040e0f0
lea eax, [esp + 8]
push eax
call fcn.0040e040
mov eax, dword [esp + 4]
push eax
call fcn.0040f3c5
mov dword [esp + 8], eax
push dword [esp + 4]
call fcn.00404300
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
and ebx, ebx
jle 0x402a8d
push dword [0x412a78]
mov edx, str.__BFINOPSX
call fcn.0040e0f0
push dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
mov ebx, dword [esp + 0x20]
inc ebx
push ebx
push dword [esp + 0x18]
call fcn.004043b0
mov edx, dword [0x411324]
add dword [esp], edx
call fcn.00404190
pop eax
lea eax, [esp + 0x14]
push eax
call fcn.0040e040
mov edx, dword [esp + 0x10]
push dword [0x412a78]
call fcn.0040e0f0
pop eax
add eax, dword [0x411324]
jmp 0x402ab3
push dword [esp + 4]
call fcn.0040e150
push dword [esp]
call fcn.0040e150
push dword [esp + 0x10]
call fcn.0040e150
add esp, 0x14
pop ebx
ret
Function at 0x4031dd
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4031e3
lea eax, [esp]
push eax
call sub.i_GetNativeSystemInfo
lea ebp, [esp]
cmp word [ebp], 0
je 0x40320a
mov eax, 1
jmp 0x40320c
xor eax, eax
add esp, 0x24
pop ebp
ret

Function at 0x403211
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x403217
mov edx, dword [esp + 0x30]
lea ecx, [esp]
call fcn.00404060
push 0x21
call fcn.0040b1d0
mov dword [esp + 4], eax
push 0x21
push dword [esp + 8]
call fcn.0040b2f0
push 0x20
push dword [esp + 8]
mov eax, dword [0x41257c]
push eax
call fcn.0040b310
push 1
push dword [esp + 4]
mov ebx, dword [esp + 0xc]
add ebx, 0x20
push ebx
call fcn.0040b340
push dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
push 0x21
push dword [esp + 0x18]
call fcn.0040c890
mov edx, dword [0x411324]
add dword [esp], edx
call fcn.00404b30
lea eax, [esp + 0xc]
push eax
call fcn.0040e040
push dword [esp + 4]
call fcn.0040b2d0
push 0xa
push dword [esp + 0xc]
push dword [esp + 0x34]
call sub.i_FindResourceA
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x4033fc
push dword [esp + 0xc]
push dword [esp + 0x30]
call sub.i_LoadResource
mov dword [0x412460], eax
push dword [esp + 0xc]
push dword [esp + 0x30]
call sub.i_SizeofResource
mov dword [0x412474], eax
push dword [esp]
mov edx, 0x411027
pop ecx
call fcn.0040e0c0
jne 0x403344
push dword [esp]
mov edx, 0x41102b
pop ecx
call fcn.0040e0c0
jne 0x403344
push dword [esp]
mov edx, 0x41102d
pop ecx
call fcn.0040e0c0
jne 0x403344
push dword [esp]
mov edx, 0x411035
pop ecx
call fcn.0040e0c0
jne 0x403344
jmp 0x40334b
mov eax, 1
jmp 0x40334d
xor eax, eax
and eax, eax
je 0x4033fc
push dword [0x412474]
call fcn.0040b1d0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov ebx, dword [0x412474]
dec ebx
cmp ebx, dword [esp + 0x14]
jl 0x4033b2
mov ebx, dword [0x412460]
add ebx, dword [esp + 0x14]
push ebx
pop eax
call fcn.0040b1f0
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x18]
imul ebx, ebx, 0xffffffff
mov dword [esp + 0x1c], ebx
push dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 0x18]
push ebx
pop eax
call fcn.0040b200
inc dword [esp + 0x14]
jno 0x40336c
push dword [0x41257c]
push dword [0x412474]
push dword [esp + 0x18]
call fcn.00402000
push dword [esp + 0x10]
pop eax
mov dword [0x412460], eax
push dword [0x412474]
push dword [esp + 0x14]
call fcn.00403dd0
mov dword [esp + 0x20], eax
push dword [esp + 0x20]
pop eax
mov dword [0x412460], eax
push dword [esp + 0x20]
call fcn.0040b380
mov dword [0x412474], eax
mov eax, dword [esp + 0xc]
jmp 0x403404
push dword [esp + 8]
call fcn.0040e150
push dword [esp]
call fcn.0040e150
add esp, 0x24
pop ebx
ret 8
Function at 0x40341c
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push 0x400
call fcn.0040b1d0
mov dword [esp], eax
push dword [0x412a78]
push dword [0x412a78]
call fcn.0040b427
lea eax, [esp + 8]
push eax
call fcn.0040e040
push dword [esp]
push 0
push 0x41101e
push dword [esp + 0x10]
call sub.i_GetTempFileNameA
push dword [0x412a78]
push dword [0x412a78]
push dword [esp + 8]
call fcn.0040b280
lea eax, [esp + 0xc]
push eax
call fcn.0040e040
push dword [0x412a78]
push dword [0x412a78]
push 0x800
call fcn.004042c0
lea eax, [esp + 0x10]
push eax
call fcn.0040e040
push dword [0x412a78]
push 0x800
push dword [esp + 0x14]
push dword [0x412a78]
push dword [0x412a78]
call fcn.00407593
inc dword [0x412a78]
mov edx, dword [0x411324]
add dword [esp], edx
call sub.i_GetShortPathNameA
pop dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
call fcn.00407593
inc dword [0x412a78]
push dword [0x412480]
mov edx, dword [0x411324]
add dword [esp + 4], edx
call fcn.00407572
pop dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
call fcn.00407593
mov edx, dword [0x411324]
add dword [esp], edx
call fcn.0040b6ba
inc dword [0x412a78]
push dword [0x4124d4]
mov edx, dword [0x411324]
add dword [esp + 4], edx
call fcn.00407572
pop dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
call fcn.00407593
mov edx, dword [0x411324]
add dword [esp], edx
call fcn.0040b53a
inc dword [0x412a78]
push dword [0x412568]
mov edx, dword [0x411324]
add dword [esp + 4], edx
call fcn.00407572
pop dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
push dword [esp + 0x18]
call fcn.00404190
inc dword [0x412a78]
push dword [0x412490]
mov edx, dword [0x411324]
add dword [esp + 4], edx
call fcn.00407572
pop dword [0x412a78]
mov edx, dword [0x4124f4]
push dword [0x412a78]
call fcn.0040e0f0
lea eax, [esp + 0x14]
push eax
call fcn.0040e040
push dword [esp + 0x10]
call fcn.0040f3ad
push dword [esp + 0x10]
push dword [0x412578]
call fcn.00407572
push dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
mov eax, dword [0x412478]
cdq
push edx
push eax
call fcn.004048a0
inc dword [0x412a78]
push dword [0x412530]
mov edx, dword [0x411324]
add dword [esp + 4], edx
call fcn.00407572
pop dword [0x412a78]
push dword [esp + 8]
push dword [0x4124dc]
call fcn.00407572
xor eax, eax
push dword [esp + 0xc]
call fcn.0040e150
push dword [esp + 4]
call fcn.0040e150
push dword [esp + 8]
call fcn.0040e150
push dword [esp + 0x10]
call fcn.0040e150
add esp, 0x14
ret
Function at 0x40394b
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
mov ebx, dword [0x412524]
cmp ebx, 1
jne 0x403a08
push dword [0x412590]
call fcn.0040884b
mov ebx, eax
and ebx, ebx
jle 0x4039af
push dword [0x412590]
call fcn.00408855
push dword [0x412590]
call fcn.0040886a
or eax, eax
je 0x4039af
mov ebp, dword [0x412594]
push dword [ebp + 8]
call fcn.0040cbb0
mov ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x4039ad
mov ebp, dword [0x412594]
push dword [ebp + 8]
call fcn.0040b4b6
jmp 0x40397b
push dword [0x412598]
call fcn.0040884b
mov dword [esp], eax
mov ebx, dword [esp]
and ebx, ebx
jle 0x403a08
push 5
push 0
push 1
push dword [0x412598]
call fcn.00406a00
push dword [0x412598]
call fcn.00408855
push dword [0x412598]
call fcn.0040886a
or eax, eax
je 0x403a08
mov ebp, dword [0x41259c]
push dword [ebp + 0xc]
call sub.i_RemoveDirectoryA
jmp 0x4039e9
mov eax, 1
jmp 0x403a11
add esp, 4
pop ebx
pop ebp
ret

Function at 0x403a17
Capabilities:
Accept command line arguments
Delete directory
Terminate process

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [0x412500]
push 1
call fcn.0040b930
and eax, eax
je 0x403bbc
push dword [0x412510]
push 1
call fcn.0040bb90
push dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
call sub.i_GetCommandLineA
push eax
call fcn.0040b280
inc dword [0x412a78]
mov edx, dword [0x411324]
add dword [esp], edx
call fcn.0040f3cb
pop dword [0x412a78]
push eax
call fcn.0040b280
inc dword [0x412a78]
push dword [0x412544]
mov edx, dword [0x411324]
add dword [esp + 4], edx
call fcn.00407572
pop dword [0x412a78]
push dword [0x4124fc]
push 1
call fcn.0040bb90
mov ebx, dword [0x412470]
cmp ebx, 1
jne 0x403bb0
push dword [0x412a78]
push dword [0x412a78]
mov ebp, 0x411129
mov ebx, ebp
mov ebp, 0x41107c
sub ebx, ebp
push ebx
mov ebp, 0x41107c
push ebp
call fcn.0040b210
lea eax, [esp + 4]
push eax
call fcn.0040e040
push dword [esp]
call fcn.00404300
mov dword [esp + 4], eax
push dword [esp + 4]
call fcn.0040b1d0
mov dword [esp + 8], eax
push dword [esp + 4]
call fcn.0040b1d0
mov dword [esp + 0xc], eax
push dword [esp]
push dword [esp + 0xc]
call fcn.0040b3f0
mov dword [esp + 0x10], 0
mov eax, dword [esp + 4]
cmp eax, dword [esp + 0x10]
jl 0x403b75
mov ebx, dword [esp + 8]
add ebx, dword [esp + 0x10]
push ebx
pop eax
call fcn.0040b1f0
mov ebx, eax
imul ebx, ebx, 0xffffffff
push ebx
mov ebx, dword [esp + 0x10]
add ebx, dword [esp + 0x14]
push ebx
pop eax
call fcn.0040b200
inc dword [esp + 0x10]
jno 0x403b41
push dword [0x412a78]
push dword [0x412a78]
push dword [0x412a78]
push dword [esp + 0x18]
call fcn.0040b280
inc dword [0x412a78]
push 1
mov edx, dword [0x411324]
add dword [esp + 4], edx
call fcn.0040bb90
pop dword [0x412a78]
push 1
call fcn.0040b710
jmp 0x403bf7
push dword [0x412500]
call fcn.0040b4b6
call fcn.0040394b
push 0x10
push dword [0x412508]
push dword [0x412564]
call fcn.004070d0
push dword [0x412560]
call sub.i_RemoveDirectoryA
push 1
jmp 0x401d91
xor eax, eax
push dword [esp]
call fcn.0040e150
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x40731d
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x40736c
push dword [esp + 0x10]
push 0x40729b
call dword [0x411830]
mov esi, dword [0x4125a8]
cmp esi, ebx
je 0x4073c0
mov edi, dword [esi]
call dword [sym.imp.i_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x407364
cmp byte [esi + 0x10], bl
je 0x407364
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [0x411834]
mov esi, edi
cmp edi, ebx
jne 0x407341
jmp 0x4073c0
mov esi, dword [0x4125a8]
cmp esi, ebx
je 0x4073c0
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.i_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x4073b9
cmp byte [esi + 0x11], bl
je 0x407396
push 1
push dword [esi + 0xc]
call dword [0x41182c]
cmp byte [esi + 0x10], bl
je 0x4073ac
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [0x411834]
push edi
push 0x4125a8
call fcn.0040dc6d
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x407377
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x4076fe
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
or dword [ebp - 4], 0xffffffff
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 0x10]
xor esi, esi
test eax, eax
je 0x40772f
cmp byte [eax], 0
je 0x40772f
push eax
call fcn.0040eba0
push eax
push edi
mov dword [ebp + 0x10], eax
call fcn.00407ce6
pop ecx
pop ecx
mov esi, eax
jmp 0x407741
cmp dword [edi + 8], esi
je 0x407831
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 4]
mov esi, dword [ecx + eax*4]
test esi, esi
je 0x407831
cmp dword [ebp + 0x14], 0
push ebx
mov ebx, dword [sym.imp.i_HeapAlloc]
je 0x40776a
push dword [esi]
push 0
push dword [0x412454]
call ebx
mov dword [ebp + 8], eax
mov eax, dword [esi]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], 0
je 0x407830
mov eax, dword [ebp + 0xc]
cdq
cmp edx, dword [esi + 4]
jl 0x407830
jg 0x40778b
cmp eax, dword [esi]
jb 0x407830
push 0
push 0
push dword [esi + 0x10]
push dword [edi]
call dword [sym.imp.i_SetFilePointer]
mov eax, dword [esi + 8]
cmp eax, dword [esi]
jne 0x4077d0
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 4]
jne 0x4077d0
push 0
lea eax, [ebp - 8]
push eax
push dword [esi]
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.i_ReadFile]
mov ecx, dword [ebp - 8]
mov eax, ecx
cdq
cmp dword [esi], eax
jne 0x407830
cmp dword [esi + 4], edx
jne 0x407830
mov dword [ebp - 4], ecx
jmp 0x407830
push dword [esi + 8]
push 0
push dword [0x412454]
call ebx
mov ebx, eax
test ebx, ebx
je 0x407830
push 0
lea eax, [ebp - 8]
push eax
push dword [esi + 8]
push ebx
push dword [edi]
call dword [sym.imp.i_ReadFile]
mov eax, dword [ebp - 8]
cdq
cmp dword [esi + 8], eax
jne 0x407821
cmp dword [esi + 0xc], edx
jne 0x407821
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call fcn.00407e4a
cdq
add esp, 0xc
cmp eax, dword [esi]
jne 0x407821
cmp edx, dword [esi + 4]
jne 0x407821
mov eax, dword [esi]
mov dword [ebp - 4], eax
push ebx
push 0
push dword [0x412454]
call dword [sym.imp.i_HeapFree]
pop ebx
mov eax, dword [ebp + 0x14]
xor edi, edi
cmp eax, edi
je 0x407864
cmp dword [ebp - 4], 0xffffffff
jne 0x40785a
cmp dword [ebp + 8], edi
je 0x407855
push dword [ebp + 8]
push edi
push dword [0x412454]
call dword [sym.imp.i_HeapFree]
mov dword [ebp - 4], edi
jmp 0x407864
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
cmp eax, edi
pop edi
pop esi
je 0x407878
cmp byte [eax], 0
je 0x407878
push eax
call fcn.0040ec50
mov eax, dword [ebp - 4]
leave
ret
Function at 0x40792e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 8], 0
push ebx
push esi
push edi
push dword [ebp + 0x14]
call fcn.0040eba0
mov esi, dword [ebp + 0x10]
lea ebx, [esi + 0x18]
push ebx
push 0
push dword [0x412454]
mov dword [ebp + 0x14], eax
call dword [sym.imp.i_HeapAlloc]
mov edi, eax
mov dword [ebp + 0x10], edi
test edi, edi
je 0x407a1c
push 0
push 5
push ebx
push edi
push esi
push dword [ebp + 0xc]
call fcn.00407eb2
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x407989
cmp ebx, esi
jge 0x407989
mov dword [ebp + 0xc], edi
jmp 0x407991
mov eax, dword [ebp + 0xc]
mov ebx, esi
mov dword [ebp + 0xc], eax
push dword [ebp + 0x14]
call fcn.0040ecdd
mov edi, dword [ebp + 8]
mov word [ebp - 0xc], ax
mov eax, esi
mov esi, dword [sym.imp.i_WriteFile]
cdq
mov dword [ebp - 0x1c], eax
pop ecx
mov dword [ebp - 0x18], edx
mov eax, ebx
cdq
push 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push 0x12
lea eax, [ebp - 0x1c]
push eax
push dword [edi]
mov dword [ebp - 0x10], edx
call esi
cmp dword [ebp - 4], 0x12
jne 0x407a04
push 0
lea eax, [ebp - 4]
push eax
movsx eax, word [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push dword [edi]
call esi
movsx eax, word [ebp - 0xc]
cmp eax, dword [ebp - 4]
jne 0x407a04
push 0
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi]
call esi
cmp ebx, dword [ebp - 4]
jne 0x407a04
mov dword [ebp - 8], 1
push edi
call fcn.00407b3e
pop ecx
push dword [ebp + 0x10]
push 0
push dword [0x412454]
call dword [sym.imp.i_HeapFree]
push dword [ebp + 0x14]
call fcn.0040ec50
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x407b83
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 8], 0x40
cmp dword [esi + 4], ebx
jne 0x407ce2
push edi
push 0x100
push ebx
push dword [0x412454]
call dword [sym.imp.i_HeapAlloc]
push ebx
push ebx
push 4
pop edi
push edi
push dword [esi]
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
call dword [sym.imp.i_SetFilePointer]
mov dword [ebp + 8], edi
cmp dword [esi + 0x14], 0x706c7a31
push ebx
lea eax, [ebp - 4]
push eax
jne 0x407c12
push 0x18
lea eax, [ebp - 0x34]
push eax
push dword [esi]
call dword [sym.imp.i_ReadFile]
cmp dword [ebp - 4], 0x18
jne 0x407ce1
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov ax, word [ebp - 0x24]
mov word [ebp - 0xc], ax
jmp 0x407c2a
push 0x12
lea eax, [ebp - 0x1c]
push eax
push dword [esi]
call dword [sym.imp.i_ReadFile]
cmp dword [ebp - 4], 0x12
jne 0x407ce1
mov eax, dword [ebp - 8]
cmp dword [esi + 0xc], eax
jl 0x407c50
add eax, 0x40
mov dword [ebp - 8], eax
shl eax, 2
push eax
push dword [esi + 4]
push 8
push dword [0x412454]
call dword [sym.imp.i_HeapReAlloc]
mov dword [esi + 4], eax
movsx eax, word [ebp - 0xc]
add eax, 0x19
push eax
push ebx
push dword [0x412454]
call dword [sym.imp.i_HeapAlloc]
mov edi, eax
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0xc], eax
push ebx
lea eax, [ebp - 4]
push eax
movsx eax, word [ebp - 0xc]
push eax
lea eax, [edi + 0x14]
push eax
push dword [esi]
call dword [sym.imp.i_ReadFile]
movsx eax, word [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov byte [eax + edi + 0x14], bl
cmp dword [esi + 0x14], 0x706c7a31
movsx eax, word [ebp - 0xc]
jne 0x407cb2
lea eax, [ecx + eax + 0x18]
jmp 0x407cb9
lea eax, [ecx + eax + 0x12]
mov dword [ebp + 8], eax
mov dword [edi + 0x10], eax
add eax, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
push 1
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + eax*4], edi
inc dword [esi + 0xc]
push ebx
push dword [ebp - 0x14]
push dword [esi]
call dword [sym.imp.i_SetFilePointer]
jmp 0x407bca
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409284
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x412b28]
call fcn.0040d59a
mov edi, eax
test edi, edi
je 0x4092e6
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4092ad
push dword [esp + 0xc]
push edi
call eax
jmp 0x4092e6
push ebx
push esi
push dword [edi]
call dword [0x411840]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.0040e2c0
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [0x411844]
push ebx
call fcn.0040ecdd
pop ecx
sub esi, eax
push esi
call fcn.0040e3e0
pop esi
pop ebx
pop edi
ret 8