joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a827
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
lea eax, [ebp - 0x24]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call fcn.00420b5d
mov ecx, esi
mov dword [esi + 0x50], eax
call fcn.0042a510
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x10]
mov ecx, esi
mov dword [esi + 0x2c], eax
call fcn.0042a5d8
push 0
call dword [sym.imp.USER32.dll_GetDC]
push 0xc
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
mov dword [esi + 0x54], eax
call edi
push 1
mov dword [esi + 0x5c], eax
call edi
mov ecx, esi
mov dword [esi + 0x60], eax
call fcn.0042a588
pop edi
pop esi
leave
ret

Function at 0x42a893
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x44b416
call fcn.00439464
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov edi, 0x44d5be
push edi
mov dword [ebp - 0x10], esi
call fcn.00403056
xor ebx, ebx
push edi
lea ecx, [esi + 0x34]
mov dword [ebp - 4], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
call fcn.00403056
push edi
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 1
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
call fcn.00403056
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0042a827
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42ac01
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x45f56c]
push esi
push edi
mov edi, dword [ebp + 0x90]
test edi, edi
mov dword [ebp + 0x84], eax
je 0x42ac78
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x42ac78
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42ac48
and al, 0x10
sub al, 0x10
neg al
sbb eax, eax
inc eax
jmp 0x42ac7a
push edi
call fcn.0043b92e
mov esi, eax
push 0x5c
push esi
call fcn.0043a580
add esp, 0xc
test eax, eax
je 0x42ace8
push esi
mov byte [eax], 0
call fcn.0042ac01
test al, al
pop ecx
push esi
jne 0x42ac8f
call fcn.0043a024
pop ecx
xor al, al
mov ecx, dword [ebp + 0x84]
pop edi
pop esi
call fcn.00438bfc
add ebp, 0x88
leave
ret
call fcn.0043a024
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.00438cb0
lea eax, [ebp - 0x80]
lea esi, [ebp - 0x80]
push eax
dec esi
call fcn.00438c10
add esp, 0x10
jmp 0x42acc5
push eax
call fcn.00438c10
mov byte [eax + esi], 0
lea eax, [ebp - 0x80]
push eax
call fcn.00438c10
pop ecx
pop ecx
cmp byte [eax + esi], 0x5c
lea eax, [ebp - 0x80]
je 0x42acb0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x42ace8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42ac78
mov al, 1
jmp 0x42ac7a
Function at 0x42ad21
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push edi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
jne 0x42ad4a
xor al, al
jmp 0x42adc5
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
je 0x42adbb
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
je 0x42adbb
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
je 0x42adbb
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop edi
leave
ret
Function at 0x42ae8f
Capabilities:
Delete file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd48
mov eax, dword [0x45f56c]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 8], ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0xd48], esi
jne 0x42aeb8
xor al, al
jmp 0x42b0a4
push edi
mov edi, dword [ebp + 8]
cmp edi, ebx
jne 0x42aec3
lea edi, [esi + 0xc]
push edi
call fcn.0042ac01
test al, al
pop ecx
jne 0x42aed5
xor al, al
jmp 0x42b0a3
lea eax, [ebp - 0x440]
push eax
mov ecx, esi
call fcn.0042ab11
cmp byte [ebp - 0x210], bl
je 0x42af28
push ebx
lea eax, [ebp - 0x440]
push eax
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0043b756
mov esi, dword [esi + 4]
add esp, 0x14
cmp esi, ebx
je 0x42af16
push 1
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0042ac01
pop ecx
jmp 0x42b0a3
cmp byte [ebp + 0xc], bl
je 0x42af68
lea eax, [ebp - 0x540]
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
lea eax, [ebp - 0x440]
push ebx
push eax
call fcn.0043b7e6
lea eax, [ebp - 0x540]
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
lea eax, [ebp - 0x440]
push ebx
push eax
call fcn.0043b756
add esp, 0x28
push ebx
lea eax, [ebp - 0x440]
push eax
push edi
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0043b756
lea eax, [ebp - 0x108]
push eax
call fcn.0042acec
add esp, 0x18
test al, al
je 0x42aece
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
mov esi, 0x80
push esi
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0xd44], eax
jne 0x42aff4
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push esi
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call edi
mov dword [ebp - 0xd44], eax
mov esi, dword [ebp - 0xd48]
push dword [esi + 8]
call fcn.00433690
test eax, eax
jne 0x42aece
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x42b01b
push ebx
lea ecx, [ebp - 0x108]
push ecx
call eax
push 0x800
lea eax, [ebp - 0xd40]
push eax
push dword [esi + 8]
call fcn.00433000
mov edi, eax
cmp edi, ebx
jle 0x42b05d
push ebx
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 0xd40]
push eax
push dword [ebp - 0xd44]
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42b05a
cmp dword [ebp + 0xc], edi
je 0x42b01b
or edi, 0xffffffff
push dword [ebp - 0xd44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 8]
call fcn.00433200
cmp edi, ebx
jne 0x42b09c
push dword [ebp - 0x228]
lea eax, [ebp - 0x108]
push eax
call fcn.0042ad21
pop ecx
pop ecx
push dword [ebp - 0x214]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
cmp edi, ebx
sete al
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00438bfc
leave
ret 8
Function at 0x42b23e
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x44b46a
call fcn.00439464
sub esp, 0x17c
mov eax, dword [0x45f56c]
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x12c], ebx
call fcn.0042daef
push str.SoftwareMicrosoftInternet_ExplorerInternetRegistryREGISTRYUSER
lea ecx, [ebp - 0x174]
mov dword [ebp - 4], 1
mov dword [ebp - 0x128], 0x104
mov dword [ebp - 0x118], ebx
call fcn.0042db35
lea eax, [ebp - 0x118]
push eax
push 0x20019
push ebx
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 2
call fcn.0042e273
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42b40a
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x160]
push eax
push ebx
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x42b40a
mov eax, dword [ebp - 0x11c]
inc eax
push eax
mov dword [ebp - 0x120], eax
call fcn.00439b12
pop ecx
lea ecx, [ebp - 0x174]
mov esi, eax
call fcn.0042def4
add eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x124]
lea eax, [eax + ecx + 0xa]
push eax
call fcn.00439b12
mov edi, eax
mov eax, dword [ebp - 0x11c]
pop ecx
inc eax
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x17c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x120]
push eax
push esi
push ebx
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
jne 0x42b3fc
sub esp, 0x14
lea eax, [ebp - 0x174]
mov ecx, esp
mov dword [ebp - 0x184], esp
push eax
call fcn.0042dbf0
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x140]
call fcn.0042dc79
lea ecx, [ebp - 0x154]
call fcn.0042dc4b
push 0x44df1c
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x140]
call fcn.0042dd57
lea ecx, [ebp - 0x154]
call fcn.0042dc4b
push esi
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x140]
call fcn.0042dd57
lea ecx, [ebp - 0x154]
call fcn.0042dc4b
push esi
call fcn.00439b0d
push edi
call fcn.00439b0d
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x140]
push eax
call fcn.0042dbf0
lea ecx, [ebp - 0x174]
mov dword [ebp - 0x12c], 1
mov byte [ebp - 4], 1
call fcn.0042dc4b
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], bl
call fcn.0042dc4b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00438bfc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42b740
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x42b75f
push esi
call fcn.00438c10
pop ecx
xor ecx, ecx
test eax, eax
jbe 0x42b75f
xor byte [ecx + esi], 8
inc ecx
cmp ecx, eax
jb 0x42b756
pop esi
ret
Function at 0x433800
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x43380f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x45e3ac]
test eax, eax
je 0x43381d
call fcn.004336b0
mov edx, dword [esp + 0x10]
cmp edx, 8
mov eax, dword [esp + 8]
not eax
jb 0x433911
push ebx
push edi
mov edi, edx
shr edi, 3
xor ecx, ecx
mov cl, byte [esi]
mov ebx, eax
shr ebx, 8
sub edx, 8
xor ecx, eax
and ecx, 0xff
mov eax, dword [ecx*4 + 0x4660a0]
xor eax, ebx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4660a0]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x4660a0]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4660a0]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x4660a0]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4660a0]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x4660a0]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4660a0]
shr eax, 8
xor eax, ecx
inc esi
dec edi
jne 0x433837
pop edi
pop ebx
test edx, edx
je 0x433931
xor ecx, ecx
mov cl, byte [esi]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4660a0]
shr eax, 8
xor eax, ecx
inc esi
dec edx
jne 0x433915
not eax
pop esi
ret 0xc
Function at 0x43a095
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.0043a2d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43a130
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 [0x4664ac]
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 0x43a130
cmp eax, 1
je 0x43a151
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 0x43a130
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x43a0fd
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x43a12c
xor eax, eax
inc eax
jmp 0x43a170
cmp edi, eax
jae 0x43a134
xor eax, eax
jmp 0x43a170
cmp eax, esi
jae 0x43a13b
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 [0x4664ac]
jmp 0x43a154
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 0x43a7a6
Capabilities:
Terminate process

Disassembly:
push 8
push 0x456638
call fcn.0043a178
push 8
call fcn.0043f1ad
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4664ec], esi
jne 0x43a7da
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4664e8], esi
mov al, byte [ebp + 0x10]
mov byte [0x4664e4], al
cmp dword [ebp + 0xc], edi
jne 0x43a824
cmp dword [0x467ff8], edi
je 0x43a814
mov eax, dword [0x467ff4]
sub eax, 4
mov dword [0x467ff4], eax
cmp eax, dword [0x467ff8]
jb 0x43a814
mov eax, dword [eax]
cmp eax, edi
je 0x43a7f5
call eax
jmp 0x43a7f5
push 0x45e084
mov eax, 0x45e07c
call fcn.0043a724
pop ecx
push 0x45e090
mov eax, 0x45e088
call fcn.0043a724
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x43a855
cmp dword [ebp + 0x10], edi
jne 0x43a863
mov dword [0x4664ec], esi
push dword [ebp + 8]
call fcn.0043a6e2
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x43a862
push 8
call fcn.0043f0f8
pop ecx
ret
call fcn.0043a1b3
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43b63e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00441af7
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x43b661
test byte [esp + 8], 2
je 0x43b661
call fcn.00441ae5
mov dword [eax], 0xd
call fcn.00441aee
mov dword [eax], 5
jmp 0x43b63a
xor eax, eax
ret
Function at 0x43bfdf
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4567b0
call fcn.0043a178
mov edi, 0x94
mov eax, edi
call fcn.0043a2d0
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 [0x4664ac], ecx
mov eax, dword [esi + 4]
mov dword [0x4664b8], eax
mov edx, dword [esi + 8]
mov dword [0x4664bc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4664b0], esi
cmp ecx, 2
je 0x43c03f
or esi, 0x8000
mov dword [0x4664b0], esi
shl eax, 8
add eax, edx
mov dword [0x4664b4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x43c07a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43c07a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x43c092
cmp eax, 0x20b
je 0x43c07f
mov dword [ebp - 0x1c], esi
jmp 0x43c0a6
cmp dword [ecx + 0x84], 0xe
jbe 0x43c07a
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x43c0a0
cmp dword [ecx + 0x74], 0xe
jbe 0x43c07a
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00440089
pop ecx
test eax, eax
jne 0x43c0ba
push 0x1c
call fcn.0043bfbb
pop ecx
call fcn.0043e516
test eax, eax
jne 0x43c0cb
push 0x10
call fcn.0043bfbb
pop ecx
call fcn.0044124e
mov dword [ebp - 4], esi
call fcn.00442bc9
test eax, eax
jge 0x43c0e4
push 0x1b
call fcn.0043bf96
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x467fec], eax
call fcn.00442aa7
mov dword [0x4664f4], eax
call fcn.00442a05
test eax, eax
jge 0x43c10a
push 8
call fcn.0043bf96
pop ecx
call fcn.004427d2
test eax, eax
jge 0x43c11b
push 9
call fcn.0043bf96
pop ecx
push 1
call fcn.0043a73c
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x43c131
push eax
call fcn.0043bf96
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00442775
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x43c152
movzx eax, word [ebp - 0x40]
jmp 0x43c155
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call int.00415ef7
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x43c173
push edi
call fcn.0043a869
call fcn.0043a88b
jmp 0x43c1a5
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0043a1b3
ret
Function at 0x440c18
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 0x440c46
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 0x440c4d
cmp ebx, dword [eax + 4]
jae 0x440c4d
xor eax, eax
jmp 0x440e3d
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x440c5e
xor eax, eax
inc eax
jmp 0x440e3c
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x440c74
cmp ecx, edx
jae 0x440db9
cmp dword [eax + 4], 0
je 0x440c7d
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x440c65
cmp dword [ebp + 8], 0
je 0x440c9f
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x440db9
cmp eax, esi
jae 0x440db9
mov eax, dword [0x466680]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x440cc4
cmp dword [esi*4 + 0x466688], edi
je 0x440dbd
inc esi
cmp esi, eax
jl 0x440cb2
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x440e39
cmp dword [ebp - 8], 0x1000000
jne 0x440e39
test byte [ebp - 0xc], 0xcc
je 0x440d42
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x440e39
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x440e39
cmp word [eax + 0x18], 0x10b
jne 0x440e39
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x440e39
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x440d42
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x440d42
test byte [ecx + 0x27], 0x80
jne 0x440db9
push 1
push 0x4666c8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x440c56
mov ecx, dword [0x466680]
test ecx, ecx
mov edx, ecx
jle 0x440d76
lea eax, [ecx*4 + 0x466684]
cmp dword [eax], edi
je 0x440d76
dec edx
sub eax, 4
test edx, edx
jg 0x440d6a
test edx, edx
jne 0x440da7
push 0xf
pop ebx
cmp ecx, ebx
jg 0x440d83
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x440d9b
lea eax, [edx*4 + 0x466688]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x440d89
cmp ecx, 0x10
jge 0x440da7
inc ecx
mov dword [0x466680], ecx
push 0
push 0x4666c8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x440c56
xor eax, eax
jmp 0x440e3c
test esi, esi
jle 0x440c56
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4666c8
call ebx
test eax, eax
jne 0x440c56
cmp dword [esi*4 + 0x466688], edi
je 0x440e13
mov eax, dword [0x466680]
lea esi, [eax - 1]
test esi, esi
jl 0x440e01
cmp dword [esi*4 + 0x466688], edi
je 0x440dfd
dec esi
jns 0x440df1
test esi, esi
jge 0x440e11
cmp eax, 0x10
jge 0x440e0c
inc eax
mov dword [0x466680], eax
lea esi, [eax - 1]
jmp 0x440e13
je 0x440e2b
xor ecx, ecx
test esi, esi
jl 0x440e2b
lea eax, [ecx*4 + 0x466688]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x440e19
push 0
push 0x4666c8
call ebx
jmp 0x440c56
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x442461
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x45f56c]
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 + 0x45fd20]
je 0x442496
inc eax
cmp eax, 0x13
jb 0x442487
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x45fd20]
jne 0x4425bc
mov eax, dword [0x4664fc]
cmp eax, 1
je 0x442594
cmp eax, edx
jne 0x4424c6
cmp dword [0x45f6b4], 1
je 0x442594
cmp ecx, 0xfc
je 0x4425bc
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 0x4424fc
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00438cb0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00438c10
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x442530
mov eax, edi
push eax
call fcn.00438c10
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x456864
push edi
call fcn.00442110
add esp, 0x10
push edi
call fcn.00438c10
push dword [esi + 0x45fd24]
mov ebx, eax
call fcn.00438c10
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0043a2d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00438cb0
push edi
push ebx
call fcn.00438cc0
push 0x456860
push ebx
call fcn.00438cc0
push dword [esi + 0x45fd24]
push ebx
call fcn.00438cc0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00443bb9
add esp, 0x2c
jmp 0x4425bc
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x45fd24]
push dword [esi]
call fcn.00438c10
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.00438bfc
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret