joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b513
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.004217ef
mov ecx, esi
mov dword [esi + 0x50], eax
call fcn.0042b1fc
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.0042b2c4
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.0042b274
pop edi
pop esi
leave
ret

Function at 0x42b57f
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x44c593
call fcn.0043a534
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov edi, 0x44e5c8
push edi
mov dword [ebp - 0x10], esi
call fcn.0040305a
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.0040305a
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.0040305a
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0042b513
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x46059c]
push esi
push edi
mov edi, dword [ebp + 0x90]
test edi, edi
mov dword [ebp + 0x84], eax
je 0x42b964
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x42b964
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42b934
and al, 0x10
sub al, 0x10
neg al
sbb eax, eax
inc eax
jmp 0x42b966
push edi
call fcn.0043c9fe
mov esi, eax
push 0x5c
push esi
call fcn.0043b650
add esp, 0xc
test eax, eax
je 0x42b9d4
push esi
mov byte [eax], 0
call fcn.0042b8ed
test al, al
pop ecx
push esi
jne 0x42b97b
call fcn.0043b0f3
pop ecx
xor al, al
mov ecx, dword [ebp + 0x84]
pop edi
pop esi
call fcn.00439ccc
add ebp, 0x88
leave
ret
call fcn.0043b0f3
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.00439d80
lea eax, [ebp - 0x80]
lea esi, [ebp - 0x80]
push eax
dec esi
call fcn.00439ce0
add esp, 0x10
jmp 0x42b9b1
push eax
call fcn.00439ce0
mov byte [eax + esi], 0
lea eax, [ebp - 0x80]
push eax
call fcn.00439ce0
pop ecx
pop ecx
cmp byte [eax + esi], 0x5c
lea eax, [ebp - 0x80]
je 0x42b99c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x42b9d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42b964
mov al, 1
jmp 0x42b966
Function at 0x42ba0d
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 0x42ba36
xor al, al
jmp 0x42bab1
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 0x42baa7
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 0x42baa7
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 0x42baa7
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 0x42bb7b
Capabilities:
Delete file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd48
mov eax, dword [0x46059c]
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 0x42bba4
xor al, al
jmp 0x42bd90
push edi
mov edi, dword [ebp + 8]
cmp edi, ebx
jne 0x42bbaf
lea edi, [esi + 0xc]
push edi
call fcn.0042b8ed
test al, al
pop ecx
jne 0x42bbc1
xor al, al
jmp 0x42bd8f
lea eax, [ebp - 0x440]
push eax
mov ecx, esi
call fcn.0042b7fd
cmp byte [ebp - 0x210], bl
je 0x42bc14
push ebx
lea eax, [ebp - 0x440]
push eax
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0043c826
mov esi, dword [esi + 4]
add esp, 0x14
cmp esi, ebx
je 0x42bc02
push 1
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0042b8ed
pop ecx
jmp 0x42bd8f
cmp byte [ebp + 0xc], bl
je 0x42bc54
lea eax, [ebp - 0x540]
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
lea eax, [ebp - 0x440]
push ebx
push eax
call fcn.0043c8b6
lea eax, [ebp - 0x540]
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
lea eax, [ebp - 0x440]
push ebx
push eax
call fcn.0043c826
add esp, 0x28
push ebx
lea eax, [ebp - 0x440]
push eax
push edi
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0043c826
lea eax, [ebp - 0x108]
push eax
call fcn.0042b9d8
add esp, 0x18
test al, al
je 0x42bbba
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 0x42bce0
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.00434760
test eax, eax
jne 0x42bbba
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x42bd07
push ebx
lea ecx, [ebp - 0x108]
push ecx
call eax
push 0x800
lea eax, [ebp - 0xd40]
push eax
push dword [esi + 8]
call fcn.004340d0
mov edi, eax
cmp edi, ebx
jle 0x42bd49
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 0x42bd46
cmp dword [ebp + 0xc], edi
je 0x42bd07
or edi, 0xffffffff
push dword [ebp - 0xd44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 8]
call fcn.004342d0
cmp edi, ebx
jne 0x42bd88
push dword [ebp - 0x228]
lea eax, [ebp - 0x108]
push eax
call fcn.0042ba0d
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.00439ccc
leave
ret 8
Function at 0x42bf2a
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x44c5e7
call fcn.0043a534
sub esp, 0x17c
mov eax, dword [0x46059c]
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.0042e82a
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.0042e870
lea eax, [ebp - 0x118]
push eax
push 0x20019
push ebx
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 2
call fcn.0042efa6
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42c0f6
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 0x42c0f6
mov eax, dword [ebp - 0x11c]
inc eax
push eax
mov dword [ebp - 0x120], eax
call fcn.0043abe2
pop ecx
lea ecx, [ebp - 0x174]
mov esi, eax
call fcn.0040337b
add eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x124]
lea eax, [eax + ecx + 0xa]
push eax
call fcn.0043abe2
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 0x42c0e8
sub esp, 0x14
lea eax, [ebp - 0x174]
mov ecx, esp
mov dword [ebp - 0x184], esp
push eax
call fcn.0042e92b
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x140]
call fcn.0042e9b4
lea ecx, [ebp - 0x154]
call fcn.0042e986
push 0x44efe4
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x140]
call fcn.0042ea92
lea ecx, [ebp - 0x154]
call fcn.0042e986
push esi
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x140]
call fcn.0042ea92
lea ecx, [ebp - 0x154]
call fcn.0042e986
push esi
call fcn.0043abdd
push edi
call fcn.0043abdd
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x140]
push eax
call fcn.0042e92b
lea ecx, [ebp - 0x174]
mov dword [ebp - 0x12c], 1
mov byte [ebp - 4], 1
call fcn.0042e986
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], bl
call fcn.0042e986
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00439ccc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42c41c
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x42c43b
push esi
call fcn.00439ce0
pop ecx
xor ecx, ecx
test eax, eax
jbe 0x42c43b
xor byte [ecx + esi], 8
inc ecx
cmp ecx, eax
jb 0x42c432
pop esi
ret
Function at 0x4348d0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x4348df
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x45f3dc]
test eax, eax
je 0x4348ed
call fcn.00434780
mov edx, dword [esp + 0x10]
cmp edx, 8
mov eax, dword [esp + 8]
not eax
jb 0x4349e1
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 + 0x467118]
xor eax, ebx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x467118]
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 + 0x467118]
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 + 0x467118]
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 + 0x467118]
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 + 0x467118]
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 + 0x467118]
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 + 0x467118]
shr eax, 8
xor eax, ecx
inc esi
dec edi
jne 0x434907
pop edi
pop ebx
test edx, edx
je 0x434a01
xor ecx, ecx
mov cl, byte [esi]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x467118]
shr eax, 8
xor eax, ecx
inc esi
dec edx
jne 0x4349e5
not eax
pop esi
ret 0xc
Function at 0x43b164
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.0043b3a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43b1ff
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 [0x467524]
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 0x43b1ff
cmp eax, 1
je 0x43b220
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 0x43b1ff
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x43b1cc
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x43b1fb
xor eax, eax
inc eax
jmp 0x43b23f
cmp edi, eax
jae 0x43b203
xor eax, eax
jmp 0x43b23f
cmp eax, esi
jae 0x43b20a
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 [0x467524]
jmp 0x43b223
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 0x43b876
Capabilities:
Terminate process

Disassembly:
push 8
push 0x457818
call fcn.0043b248
push 8
call fcn.0044027d
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x467564], esi
jne 0x43b8aa
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x467560], esi
mov al, byte [ebp + 0x10]
mov byte [0x46755c], al
cmp dword [ebp + 0xc], edi
jne 0x43b8f4
cmp dword [0x469078], edi
je 0x43b8e4
mov eax, dword [0x469074]
sub eax, 4
mov dword [0x469074], eax
cmp eax, dword [0x469078]
jb 0x43b8e4
mov eax, dword [eax]
cmp eax, edi
je 0x43b8c5
call eax
jmp 0x43b8c5
push 0x45f08c
mov eax, 0x45f084
call fcn.0043b7f4
pop ecx
push 0x45f098
mov eax, 0x45f090
call fcn.0043b7f4
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x43b925
cmp dword [ebp + 0x10], edi
jne 0x43b933
mov dword [0x467564], esi
push dword [ebp + 8]
call fcn.0043b7b2
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x43b932
push 8
call fcn.004401c8
pop ecx
ret
call fcn.0043b283
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43c70e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00442bc7
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x43c731
test byte [esp + 8], 2
je 0x43c731
call fcn.00442bb5
mov dword [eax], 0xd
call fcn.00442bbe
mov dword [eax], 5
jmp 0x43c70a
xor eax, eax
ret
Function at 0x43d0af
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x457990
call fcn.0043b248
mov edi, 0x94
mov eax, edi
call fcn.0043b3a0
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 [0x467524], ecx
mov eax, dword [esi + 4]
mov dword [0x467530], eax
mov edx, dword [esi + 8]
mov dword [0x467534], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x467528], esi
cmp ecx, 2
je 0x43d10f
or esi, 0x8000
mov dword [0x467528], esi
shl eax, 8
add eax, edx
mov dword [0x46752c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x43d14a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43d14a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x43d162
cmp eax, 0x20b
je 0x43d14f
mov dword [ebp - 0x1c], esi
jmp 0x43d176
cmp dword [ecx + 0x84], 0xe
jbe 0x43d14a
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x43d170
cmp dword [ecx + 0x74], 0xe
jbe 0x43d14a
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00441159
pop ecx
test eax, eax
jne 0x43d18a
push 0x1c
call fcn.0043d08b
pop ecx
call fcn.0043f5e6
test eax, eax
jne 0x43d19b
push 0x10
call fcn.0043d08b
pop ecx
call fcn.0044231e
mov dword [ebp - 4], esi
call fcn.00443c99
test eax, eax
jge 0x43d1b4
push 0x1b
call fcn.0043d066
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x46906c], eax
call fcn.00443b77
mov dword [0x46756c], eax
call fcn.00443ad5
test eax, eax
jge 0x43d1da
push 8
call fcn.0043d066
pop ecx
call fcn.004438a2
test eax, eax
jge 0x43d1eb
push 9
call fcn.0043d066
pop ecx
push 1
call fcn.0043b80c
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x43d201
push eax
call fcn.0043d066
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00443845
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x43d222
movzx eax, word [ebp - 0x40]
jmp 0x43d225
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004165e5
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x43d243
push edi
call fcn.0043b939
call fcn.0043b95b
jmp 0x43d275
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0043b283
ret
Function at 0x441ce8
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 0x441d16
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 0x441d1d
cmp ebx, dword [eax + 4]
jae 0x441d1d
xor eax, eax
jmp 0x441f0d
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x441d2e
xor eax, eax
inc eax
jmp 0x441f0c
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x441d44
cmp ecx, edx
jae 0x441e89
cmp dword [eax + 4], 0
je 0x441d4d
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x441d35
cmp dword [ebp + 8], 0
je 0x441d6f
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x441e89
cmp eax, esi
jae 0x441e89
mov eax, dword [0x4676f8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x441d94
cmp dword [esi*4 + 0x467700], edi
je 0x441e8d
inc esi
cmp esi, eax
jl 0x441d82
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x441f09
cmp dword [ebp - 8], 0x1000000
jne 0x441f09
test byte [ebp - 0xc], 0xcc
je 0x441e12
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x441f09
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x441f09
cmp word [eax + 0x18], 0x10b
jne 0x441f09
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x441f09
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x441e12
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x441e12
test byte [ecx + 0x27], 0x80
jne 0x441e89
push 1
push 0x467740
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x441d26
mov ecx, dword [0x4676f8]
test ecx, ecx
mov edx, ecx
jle 0x441e46
lea eax, [ecx*4 + 0x4676fc]
cmp dword [eax], edi
je 0x441e46
dec edx
sub eax, 4
test edx, edx
jg 0x441e3a
test edx, edx
jne 0x441e77
push 0xf
pop ebx
cmp ecx, ebx
jg 0x441e53
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x441e6b
lea eax, [edx*4 + 0x467700]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x441e59
cmp ecx, 0x10
jge 0x441e77
inc ecx
mov dword [0x4676f8], ecx
push 0
push 0x467740
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x441d26
xor eax, eax
jmp 0x441f0c
test esi, esi
jle 0x441d26
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x467740
call ebx
test eax, eax
jne 0x441d26
cmp dword [esi*4 + 0x467700], edi
je 0x441ee3
mov eax, dword [0x4676f8]
lea esi, [eax - 1]
test esi, esi
jl 0x441ed1
cmp dword [esi*4 + 0x467700], edi
je 0x441ecd
dec esi
jns 0x441ec1
test esi, esi
jge 0x441ee1
cmp eax, 0x10
jge 0x441edc
inc eax
mov dword [0x4676f8], eax
lea esi, [eax - 1]
jmp 0x441ee3
je 0x441efb
xor ecx, ecx
test esi, esi
jl 0x441efb
lea eax, [ecx*4 + 0x467700]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x441ee9
push 0
push 0x467740
call ebx
jmp 0x441d26
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x443531
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x46059c]
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 + 0x460d50]
je 0x443566
inc eax
cmp eax, 0x13
jb 0x443557
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x460d50]
jne 0x44368c
mov eax, dword [0x467574]
cmp eax, 1
je 0x443664
cmp eax, edx
jne 0x443596
cmp dword [0x4606e4], 1
je 0x443664
cmp ecx, 0xfc
je 0x44368c
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 0x4435cc
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00439d80
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00439ce0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x443600
mov eax, edi
push eax
call fcn.00439ce0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x457a44
push edi
call fcn.004431e0
add esp, 0x10
push edi
call fcn.00439ce0
push dword [esi + 0x460d54]
mov ebx, eax
call fcn.00439ce0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0043b3a0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00439d80
push edi
push ebx
call fcn.00439d90
push 0x457a40
push ebx
call fcn.00439d90
push dword [esi + 0x460d54]
push ebx
call fcn.00439d90
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00444c89
add esp, 0x2c
jmp 0x44368c
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x460d54]
push dword [esi]
call fcn.00439ce0
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.00439ccc
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret