joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406004
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40601e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4
Function at 0x406375
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
lea eax, [ebp - 0x23c]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
ja 0x4063af
test eax, eax
je 0x4063af
add eax, eax
cmp word [ebp + eax - 0x23e], 0x5c
je 0x4063b1
mov ecx, 0x4082a8
jmp 0x4063b6
xor eax, eax
mov ecx, 0x4082aa
push dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x23c]
add eax, ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406414
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406437
push dword [esp + 8]
push dword [esp + 8]
call fcn.004064dd
pop ecx
pop ecx
inc dword [0x7a7e50]
ret 8

Function at 0x4064dd
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x7a4ec0], 0x55004e
mov ebp, 0x7a4ec0
mov dword [0x7a4ec4], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x406533
push 1
push 0
push esi
call fcn.00406af2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x406613
cmp eax, ebx
jg 0x406613
push ebx
mov esi, 0x7a46c0
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x406613
cmp eax, ebx
jg 0x406613
push esi
push ebp
push str._ls_ls_r_n
push 0x7a42c0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x7a7d90]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.0040607f
push 4
push 0xc0000000
push esi
call fcn.00406af2
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406613
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40660c
push esi
push edi
push ebx
call fcn.00406b1f
test eax, eax
je 0x40660c
push str._Rename__r_n
push edi
call fcn.00406d0d
test eax, eax
jne 0x406618
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x7a42c0
lea eax, [ecx + edi]
push eax
call fcn.0040688b
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.00406be2
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x40899c
add eax, 0xa
push eax
call fcn.00406d0d
mov ecx, eax
test ecx, ecx
je 0x4065dd
lea edx, [edi + esi]
jmp 0x406637
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x406631
sub ecx, edi
inc ecx
jmp 0x4065df
Function at 0x40675c
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.00406d74
mov edi, eax
cmp edi, 0xffffffff
je 0x40679f
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x406780
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x406786
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40678f
xor eax, eax
inc eax
jmp 0x4067a1
test byte [ebp + 0xc], 4
jne 0x40679f
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8

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

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x7a3ac0
push ebx
call fcn.00406cf1
push ebx
call fcn.00406d9c
mov esi, eax
test esi, esi
je 0x406884
push esi
call fcn.00406f14
test byte [0x7a7d8c], 0x80
je 0x406848
movzx eax, word [esi]
test ax, ax
je 0x406884
cmp eax, 0x5c
je 0x406884
sub esi, ebx
sar esi, 1
jmp 0x406862
call fcn.004067a6
test eax, eax
je 0x40685c
test byte [eax], 0x10
je 0x406884
push ebx
call fcn.00406ee7
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x40684e
call fcn.0040672d
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406884
xor eax, eax
inc eax
jmp 0x406886
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x4068ad
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x7a3278], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x7a3278
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4068ec
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x4068f0
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x268]
push esi
mov esi, dword [esp + 0x268]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.0040680f
mov dword [esp + 0x14], eax
test bl, 8
je 0x406932
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x7a7e48], eax
jmp 0x406ab1
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x14], ebp
je 0x40694f
test eax, eax
je 0x406aa0
test bl, 2
je 0x406a69
push esi
push 0x7a32c0
call fcn.00406cf1
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406972
push str..
push 0x7a32c0
call ebp
jmp 0x406978
push esi
call fcn.00406ee7
xor eax, eax
cmp word [esi], ax
jne 0x406989
cmp word [0x7a32c0], 0x5c
jne 0x406991
push 0x4082a8
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push 0x7a32c0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x406a52
push 0x2e
pop eax
cmp word [esp + 0x48], ax
jne 0x4069db
cmp word [esp + 0x4a], 0
je 0x406a34
cmp word [esp + 0x4a], ax
jne 0x4069db
cmp word [esp + 0x4c], 0
je 0x406a34
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call fcn.00406cf1
test byte [esp + 0x1c], 0x10
je 0x406a02
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x406a34
push ebx
push esi
call fcn.004068f0
jmp 0x406a34
push edi
push esi
call fcn.0040675c
test eax, eax
jne 0x406a2c
test edi, edi
je 0x406a24
push esi
push 0xfffffffffffffff1
call fcn.00405f20
xor eax, eax
push eax
push esi
call fcn.00406414
jmp 0x406a34
inc dword [0x7a7e48]
jmp 0x406a34
push esi
push 0xfffffffffffffff2
call fcn.00405f20
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4069bd
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
je 0x406ab0
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax - 2], cx
cmp dword [esp + 0x18], ecx
je 0x406aa0
push esi
call fcn.004067a6
test eax, eax
je 0x406ab0
push esi
call fcn.0040672d
mov eax, edi
or eax, 1
push eax
push esi
call fcn.0040675c
test eax, eax
jne 0x406aa8
test edi, edi
je 0x406aa0
push esi
push 0xfffffffffffffff1
call fcn.00405f20
xor eax, eax
push eax
push esi
call fcn.00406414
jmp 0x406ab0
inc dword [0x7a7e48]
jmp 0x406ab0
push esi
push 0xffffffffffffffe5
call fcn.00405f20
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc
Function at 0x406b4e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x800
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004064af
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x406bc0
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
mov word [edi + 0x7fe], ax
pop esi
jne 0x406bc0
cmp dword [ebp + 0x18], 1
je 0x406bc5
cmp dword [ebp + 0x18], 2
je 0x406bc5
xor eax, eax
mov word [edi], ax
pop edi
leave
ret 0x14

Function at 0x406bca
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x406c2d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp - 8], 0x73006e
mov dword [ebp - 4], 0x61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add word [ebp - 4], dx
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406c77
test edi, edi
jne 0x406c3a
mov word [esi], ax
jmp 0x406c79
mov eax, esi
pop edi
pop esi
leave
ret 8

Function at 0x406d74
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406d96
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x407013
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a5914], 0
push esi
jne 0x40704d
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x407024
mov dword [ecx*4 + 0x7a5910], edx
inc ecx
cmp ecx, 0x100
jl 0x40701f
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x407077
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x7a5910]
inc esi
sub edx, 1
jne 0x40705f
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x40175e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401773
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401785
xor eax, eax
jmp 0x4017b7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4017a9
cmp esi, eax
jae 0x401781
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40179b
cmp esi, eax
jae 0x401781
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x402d5a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x402dad
call fcn.00424d54
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x402dad
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x402da3
xor eax, eax
jmp 0x402ec6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x402ddd
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x402ddd
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x402ec3
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x402e0a
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004038eb
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x402ec3
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x402e53
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x402e53
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x402e4d
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004038eb
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x402eb3
and dword [ebp + 0xc], 0
jmp 0x402eb3
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x402eb3
push 0xc
call fcn.0041c1f0
mov esi, eax
test esi, esi
pop ecx
je 0x402e95
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x402e97
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x402eae
push dword [ebp - 8]
call fcn.00417a20
jmp 0x402eb3
call fcn.004179f7
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x402e18
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40b64e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040b930
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b6e9
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x438090]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40b6e9
cmp eax, 1
je 0x40b70a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b6e9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40b6b6
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40b6e5
xor eax, eax
inc eax
jmp 0x40b729
cmp edi, eax
jae 0x40b6ed
xor eax, eax
jmp 0x40b729
cmp eax, esi
jae 0x40b6f4
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x438090]
jmp 0x40b70d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40be9f
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42cbc0
call fcn.0040d0cc
mov edi, 0x94
mov eax, edi
call fcn.0040b930
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 [0x438090], ecx
mov eax, dword [esi + 4]
mov dword [0x43809c], eax
mov edx, dword [esi + 8]
mov dword [0x4380a0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x438094], esi
cmp ecx, 2
je 0x40beff
or esi, 0x8000
mov dword [0x438094], esi
shl eax, 8
add eax, edx
mov dword [0x438098], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40bf3a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40bf3a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40bf52
cmp eax, 0x20b
je 0x40bf3f
mov dword [ebp - 0x1c], esi
jmp 0x40bf66
cmp dword [ecx + 0x84], 0xe
jbe 0x40bf3a
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40bf60
cmp dword [ecx + 0x74], 0xe
jbe 0x40bf3a
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040e4d1
pop ecx
test eax, eax
jne 0x40bf7a
push 0x1c
call fcn.0040be7b
pop ecx
call fcn.0040fd11
test eax, eax
jne 0x40bf8b
push 0x10
call fcn.0040be7b
pop ecx
call fcn.00410822
mov dword [ebp - 4], esi
call fcn.00410624
test eax, eax
jge 0x40bfa4
push 0x1b
call fcn.0040be56
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x439950], eax
call fcn.00410502
mov dword [0x43807c], eax
call fcn.00410460
test eax, eax
jge 0x40bfca
push 8
call fcn.0040be56
pop ecx
call fcn.0041022d
test eax, eax
jge 0x40bfdb
push 9
call fcn.0040be56
pop ecx
push 1
call fcn.0040cbbd
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40bff1
push eax
call fcn.0040be56
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004101d0
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40c012
movzx eax, word [ebp - 0x40]
jmp 0x40c015
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004174bc
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40c033
push edi
call fcn.0040ccea
call fcn.0040cd0c
jmp 0x40c065
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040d107
ret
Function at 0x40cc27
Capabilities:
Terminate process

Disassembly:
push 8
push 0x42cc20
call fcn.0040d0cc
push 8
call fcn.0040e486
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4380d0], esi
jne 0x40cc5b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4380cc], esi
mov al, byte [ebp + 0x10]
mov byte [0x4380c8], al
cmp dword [ebp + 0xc], edi
jne 0x40cca5
cmp dword [0x439948], edi
je 0x40cc95
mov eax, dword [0x439944]
sub eax, 4
mov dword [0x439944], eax
cmp eax, dword [0x439948]
jb 0x40cc95
mov eax, dword [eax]
cmp eax, edi
je 0x40cc76
call eax
jmp 0x40cc76
push 0x434090
mov eax, 0x434088
call fcn.0040cba5
pop ecx
push 0x43409c
mov eax, 0x434094
call fcn.0040cba5
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40ccd6
cmp dword [ebp + 0x10], edi
jne 0x40cce4
mov dword [0x4380d0], esi
push dword [ebp + 8]
call fcn.0040cb63
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40cce3
push 8
call fcn.0040e3d1
pop ecx
ret
call fcn.0040d107
ret
Function at 0x40f060
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40f08e
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40f095
cmp ebx, dword [eax + 4]
jae 0x40f095
xor eax, eax
jmp 0x40f285
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40f0a6
xor eax, eax
inc eax
jmp 0x40f284
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40f0bc
cmp ecx, edx
jae 0x40f201
cmp dword [eax + 4], 0
je 0x40f0c5
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40f0ad
cmp dword [ebp + 8], 0
je 0x40f0e7
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40f201
cmp eax, esi
jae 0x40f201
mov eax, dword [0x438240]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40f10c
cmp dword [esi*4 + 0x438248], edi
je 0x40f205
inc esi
cmp esi, eax
jl 0x40f0fa
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40f281
cmp dword [ebp - 8], 0x1000000
jne 0x40f281
test byte [ebp - 0xc], 0xcc
je 0x40f18a
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40f281
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40f281
cmp word [eax + 0x18], 0x10b
jne 0x40f281
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40f281
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40f18a
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40f18a
test byte [ecx + 0x27], 0x80
jne 0x40f201
push 1
push 0x438288
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40f09e
mov ecx, dword [0x438240]
test ecx, ecx
mov edx, ecx
jle 0x40f1be
lea eax, [ecx*4 + 0x438244]
cmp dword [eax], edi
je 0x40f1be
dec edx
sub eax, 4
test edx, edx
jg 0x40f1b2
test edx, edx
jne 0x40f1ef
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40f1cb
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40f1e3
lea eax, [edx*4 + 0x438248]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40f1d1
cmp ecx, 0x10
jge 0x40f1ef
inc ecx
mov dword [0x438240], ecx
push 0
push 0x438288
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40f09e
xor eax, eax
jmp 0x40f284
test esi, esi
jle 0x40f09e
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x438288
call ebx
test eax, eax
jne 0x40f09e
cmp dword [esi*4 + 0x438248], edi
je 0x40f25b
mov eax, dword [0x438240]
lea esi, [eax - 1]
test esi, esi
jl 0x40f249
cmp dword [esi*4 + 0x438248], edi
je 0x40f245
dec esi
jns 0x40f239
test esi, esi
jge 0x40f259
cmp eax, 0x10
jge 0x40f254
inc eax
mov dword [0x438240], eax
lea esi, [eax - 1]
jmp 0x40f25b
je 0x40f273
xor ecx, ecx
test esi, esi
jl 0x40f273
lea eax, [ecx*4 + 0x438248]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40f261
push 0
push 0x438288
call ebx
jmp 0x40f09e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40febc
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x435168]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x435560]
je 0x40fef1
inc eax
cmp eax, 0x13
jb 0x40fee2
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x435560]
jne 0x410017
mov eax, dword [0x438084]
cmp eax, 1
je 0x40ffef
cmp eax, edx
jne 0x40ff21
cmp dword [0x435184], 1
je 0x40ffef
cmp ecx, 0xfc
je 0x410017
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40ff57
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004121b0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040c550
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40ff8b
mov eax, edi
push eax
call fcn.0040c550
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x42ccc4
push edi
call fcn.00413be0
add esp, 0x10
push edi
call fcn.0040c550
push dword [esi + 0x435564]
mov ebx, eax
call fcn.0040c550
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040b930
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004121b0
push edi
push ebx
call fcn.004121c0
push 0x42ccc0
push ebx
call fcn.004121c0
push dword [esi + 0x435564]
push ebx
call fcn.004121c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00413ae0
add esp, 0x2c
jmp 0x410017
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x435564]
push dword [esi]
call fcn.0040c550
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 - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040b516
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret