joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412dbc
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x412de7
test byte [esp + 8], 0x80
je 0x412dd6
and al, 0xfe
jmp 0x412dd8
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x412df8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413ffa
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x412efd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x412f1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413ffa
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x412f3e
test byte [esp + 8], 2
je 0x412f3e
mov dword [0x41f298], 0xd
mov dword [0x41f29c], 5
jmp 0x412f19
xor eax, eax
ret

Function at 0x416bf1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41ef20
cmp edx, dword [eax]
je 0x416c13
add eax, 8
inc ecx
cmp eax, 0x41efb0
jl 0x416c04
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41ef20]
jne 0x416d41
mov eax, dword [0x41f2ec]
cmp eax, 1
je 0x416d1b
test eax, eax
jne 0x416c44
cmp dword [0x41c9b4], 1
je 0x416d1b
cmp edx, 0xfc
je 0x416d41
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x416c7b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004175d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00415b70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x416cbe
lea eax, [ebp - 0x1a4]
push eax
call fcn.00415b70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41a654
push edi
call fcn.004134d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004175d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004175e0
lea eax, [ebp - 0xa0]
push 0x418b24
push eax
call fcn.004175e0
push dword [esi + 0x41ef24]
lea eax, [ebp - 0xa0]
push eax
call fcn.004175e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004179f5
add esp, 0x2c
pop edi
jmp 0x416d41
lea eax, [ebp + 8]
lea esi, [esi + 0x41ef24]
push 0
push eax
push dword [esi]
call fcn.00415b70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401ea0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401eeb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401ee4
test esi, esi
je 0x401ee4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401ec0
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4020d0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402120
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4021f8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40215e
cmp eax, 4
jne 0x402180
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40216e
cmp edx, 4
je 0x40216e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004020d0
Function at 0x402300
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x424de8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.004021d0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401b00
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x402392
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x403430
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403449
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40345d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40347e
cmp esi, eax
jae 0x403457
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403470
cmp esi, eax
jae 0x403457
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403db0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x425020
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x24]
xor ebx, ebx
mov dword [esi + 0x308], ebx
mov dword [esi + 0x30c], ebx
mov eax, dword [ecx - 0xc]
cmp eax, ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xb], bl
je 0x403edf
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x403ede
push ebp
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esi + 0x30c], ebx
je 0x403e65
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x308], ecx
mov eax, ecx
mov edx, ebx
mov cl, 0x20
call fcn.0040d120
mov ecx, eax
mov dword [esi + 0x308], eax
add ecx, ebp
mov eax, edx
adc eax, ebx
mov dword [esi + 0x30c], edx
mov dword [esi + 0x308], ecx
mov dword [esi + 0x30c], eax
jmp 0x403e6b
mov dword [esi + 0x308], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x30c]
cmp eax, ebx
mov ecx, dword [esi + 0x308]
pop ebp
ja 0x403e87
cmp ecx, ebx
jbe 0x403ede
cmp eax, 0x40
jb 0x403ed9
ja 0x403e92
cmp ecx, ebx
jbe 0x403ed9
lea edx, [esp + 0x14]
push 0x408
push edx
call fcn.0040a1d0
add esp, 8
mov eax, dword [eax]
push ebx
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x2c], 1
call fcn.0041cc0d
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x20], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403ede
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x403ede
mov byte [esp + 0xf], 1
pop edi
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
pop ebx
jg 0x403f07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov al, byte [esp + 3]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x404760
Capabilities:
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x4250c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
push edi
mov esi, ecx
push 0
push 0x3f0
mov dword [esp + 0x24], 1
call fcn.0041f395
mov ecx, eax
call fcn.0041f511
push 1
push 0x3f1
mov ecx, esi
call fcn.0041f395
mov ecx, eax
call fcn.0041f511
push 0
push 0x3f6
mov ecx, esi
call fcn.0041f395
mov ecx, eax
call fcn.0041f511
push 0
push 0x3f3
mov ecx, esi
call fcn.0041f395
mov ecx, eax
call fcn.0041f511
mov eax, dword [0x430bb8]
test eax, eax
mov ebp, dword [esp + 0x28]
jne 0x404855
lea eax, [esp + 0x10]
push 0x3fc
push eax
call fcn.0040a1d0
lea ecx, [esp + 0x30]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x30], 2
call fcn.00402300
add esp, 0x14
mov eax, dword [eax]
push eax
push 0x404
mov ecx, esi
mov byte [esp + 0x24], 3
call fcn.0041f395
mov ecx, eax
call fcn.0041f4b4
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x1c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404849
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
jmp 0x4048dc
call fcn.0041ac55
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
lea eax, [esp + 0x10]
push 0x3fc
push eax
mov byte [esp + 0x24], 4
call fcn.0040a1d0
mov ecx, dword [0x430bb8]
mov edx, dword [eax]
push ebp
push ecx
push edx
lea eax, [esp + 0x20]
push str._s___i_:__s
push eax
mov byte [esp + 0x38], 5
call fcn.00404570
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x1c
mov byte [esp + 0x1c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4048c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0xc]
push edi
push 0x404
mov ecx, esi
call fcn.0041f395
mov ecx, eax
call fcn.0041f4b4
lea eax, [edi - 0x10]
mov byte [esp + 0x1c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4048f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0
push 4
push 0
push 0xffffffffffffffff
push 0x42651c
call fcn.0041a57f
push 0
push 0
mov edi, eax
mov eax, dword [esi + 0x278]
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [esp + 0x24]
dec eax
neg eax
sbb al, al
inc al
mov ecx, edi
push eax
push ebp
push esi
call fcn.004029e0
mov ecx, dword [edi + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea eax, [esi - 0x10]
mov byte [esp + 0x1c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404960
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebp
jg 0x404985
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x4070c0
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
ret
Function at 0x4076c0
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx + 8], eax
mov dword [ecx + 4], eax
mov dword [ecx + 0xc], 0x67452301
mov dword [ecx + 0x10], 0xefcdab89
mov dword [ecx + 0x14], 0x98badcfe
mov dword [ecx + 0x18], 0x10325476
mov dword [ecx + 0x1c], 0xc3d2e1f0
ret
Function at 0x409290
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi - 0xc]
test eax, eax
jne 0x4092ba
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4092b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor al, al
pop edi
ret
push esi
inc eax
push eax
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4092e0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x4092ff
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4092fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
xor al, al
pop edi
ret
mov edx, eax
mov ecx, edi
sub edx, edi
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x409305
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
xor bl, bl
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x409343
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x40933d
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
setne bl
call dword [sym.imp.USER32.dll_CloseClipboard]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409364
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, bl
pop ebx
pop esi
pop edi
ret
Function at 0x40a200
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x88
mov eax, dword [0x42fc3c]
xor eax, dword [esp + 0x88]
movzx ecx, word [esp + 0x90]
push esi
mov dword [esp + 0x88], eax
push 0x80
lea eax, [esp + 0xc]
push eax
push 2
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, dword [esp + 0x90]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.00404da0
mov ecx, dword [esp + 0x88]
xor ecx, dword [esp + 0x8c]
mov eax, esi
pop esi
add esp, 0x88
jmp fcn.0040bcfc

Function at 0x40cc1e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.00410a2e
xor esi, esi
inc esi
cmp dword [0x432ae4], esi
pop ecx
jne 0x40cc46
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x432ae0], esi
mov byte [0x432adc], al
jne 0x40ccac
mov ecx, dword [0x43432c]
test ecx, ecx
je 0x40cc8d
mov eax, dword [0x434328]
sub eax, 4
cmp eax, ecx
jmp 0x40cc86
mov eax, dword [eax]
test eax, eax
je 0x40cc78
call eax
mov eax, dword [0x434328]
sub eax, 4
cmp eax, dword [0x43432c]
mov dword [0x434328], eax
jae 0x40cc70
mov eax, 0x42f078
mov esi, 0x42f080
cmp eax, esi
mov edi, eax
jae 0x40ccac
mov eax, dword [edi]
test eax, eax
je 0x40cca5
call eax
add edi, 4
cmp edi, esi
jb 0x40cc9d
mov eax, 0x42f084
mov esi, 0x42f08c
cmp eax, esi
mov edi, eax
jae 0x40cccb
mov eax, dword [edi]
test eax, eax
je 0x40ccc4
call eax
add edi, 4
cmp edi, esi
jb 0x40ccbc
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x40ccdc
push 8
call fcn.0041099a
jmp 0x40ccee
push dword [ebp + 8]
mov dword [0x432ae4], 1
call fcn.0040cb77
pop ecx
pop ebp
ret
Function at 0x40d3d8
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x429178
call fcn.0040fd0c
mov edi, 0x94
mov eax, edi
call fcn.0040c070
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x432aa4], ecx
mov eax, dword [esi + 4]
mov dword [0x432ab0], eax
mov edx, dword [esi + 8]
mov dword [0x432ab4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x432aa8], esi
cmp ecx, 2
je 0x40d438
or esi, 0x8000
mov dword [0x432aa8], esi
shl eax, 8
add eax, edx
mov dword [0x432aac], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40d473
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d473
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40d48b
cmp eax, 0x20b
je 0x40d478
mov dword [ebp - 0x1c], esi
jmp 0x40d49f
cmp dword [ecx + 0x84], 0xe
jbe 0x40d473
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40d499
cmp dword [ecx + 0x74], 0xe
jbe 0x40d473
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004126e1
pop ecx
test eax, eax
jne 0x40d4b3
push 0x1c
call fcn.0040d3b4
pop ecx
call fcn.00410832
test eax, eax
jne 0x40d4c4
push 0x10
call fcn.0040d3b4
pop ecx
call fcn.0041150b
mov dword [ebp - 4], esi
call fcn.00410e15
test eax, eax
jge 0x40d4dd
push 0x1b
call fcn.0040d38f
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x434320], eax
call fcn.004138c2
mov dword [0x432ae8], eax
call fcn.00413820
test eax, eax
jge 0x40d503
push 8
call fcn.0040d38f
pop ecx
call fcn.004135ed
test eax, eax
jge 0x40d514
push 9
call fcn.0040d38f
pop ecx
call fcn.0040cbb9
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x40d527
push eax
call fcn.0040d38f
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00413584
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x40d548
movzx eax, word [ebp - 0x34]
jmp 0x40d54b
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00418eae
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40d569
push edi
call fcn.0040ccf1
call fcn.0040cd13
jmp 0x40d59b
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040fd47
ret
Function at 0x40d6a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x40d6bd
call fcn.0040df5c
mov dword [eax], 0x16
xor eax, eax
jmp 0x40d727
push esi
push 0x88
push 1
call fcn.0040fab1
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40d712
push esi
call fcn.00410643
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x40d6f0
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x40d5fc
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x40d726
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0040d31e
test ebx, ebx
pop ecx
je 0x40d724
push ebx
call fcn.0040df6e
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x413270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x42fc3c]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4304a0]
je 0x41329d
inc eax
cmp eax, 0x12
jb 0x41328e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4304a0]
jne 0x4133d1
mov eax, dword [0x432af0]
cmp eax, 1
je 0x4133ac
cmp eax, edx
jne 0x4132cd
cmp dword [0x42fc74], 1
je 0x4133ac
cmp ecx, 0xfc
je 0x4133d1
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x413306
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00414de0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.0040dad0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x413348
lea eax, [ebp - 0x10c]
push eax
call fcn.0040dad0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4292f4
push edi
call fcn.00416020
add esp, 0x10
push edi
call fcn.0040dad0
push dword [esi + 0x4304a4]
mov ebx, eax
call fcn.0040dad0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040c070
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00414de0
push edi
push ebx
call fcn.00414df0
push 0x4292f0
push ebx
call fcn.00414df0
push dword [esi + 0x4304a4]
push ebx
call fcn.00414df0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00415f20
add esp, 0x2c
jmp 0x4133d1
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x4304a4]
push dword [esi]
call fcn.0040dad0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0040bcfc
pop edi
pop esi
pop ebx
leave
ret