joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b64b
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.00421907
mov ecx, esi
mov dword [esi + 0x50], eax
call fcn.0042b334
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.0042b3fc
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.0042b3ac
pop edi
pop esi
leave
ret

Function at 0x42b6b7
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x44c661
call fcn.0043a614
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov edi, 0x44e5c8
push edi
mov dword [ebp - 0x10], esi
call fcn.004030e2
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.004030e2
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.004030e2
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0042b64b
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x46159c]
push esi
push edi
mov edi, dword [ebp + 0x90]
test edi, edi
mov dword [ebp + 0x84], eax
je 0x42ba9c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x42ba9c
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42ba6c
and al, 0x10
sub al, 0x10
neg al
sbb eax, eax
inc eax
jmp 0x42ba9e
push edi
call fcn.0043cade
mov esi, eax
push 0x5c
push esi
call fcn.0043b730
add esp, 0xc
test eax, eax
je 0x42bb0c
push esi
mov byte [eax], 0
call fcn.0042ba25
test al, al
pop ecx
push esi
jne 0x42bab3
call fcn.0043b1d3
pop ecx
xor al, al
mov ecx, dword [ebp + 0x84]
pop edi
pop esi
call fcn.00439dac
add ebp, 0x88
leave
ret
call fcn.0043b1d3
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.00439e60
lea eax, [ebp - 0x80]
lea esi, [ebp - 0x80]
push eax
dec esi
call fcn.00439dc0
add esp, 0x10
jmp 0x42bae9
push eax
call fcn.00439dc0
mov byte [eax + esi], 0
lea eax, [ebp - 0x80]
push eax
call fcn.00439dc0
pop ecx
pop ecx
cmp byte [eax + esi], 0x5c
lea eax, [ebp - 0x80]
je 0x42bad4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x42bb0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42ba9c
mov al, 1
jmp 0x42ba9e
Function at 0x42bb45
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 0x42bb6e
xor al, al
jmp 0x42bbe9
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 0x42bbdf
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 0x42bbdf
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 0x42bbdf
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 0x42bcb3
Capabilities:
Delete file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd48
mov eax, dword [0x46159c]
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 0x42bcdc
xor al, al
jmp 0x42bec8
push edi
mov edi, dword [ebp + 8]
cmp edi, ebx
jne 0x42bce7
lea edi, [esi + 0xc]
push edi
call fcn.0042ba25
test al, al
pop ecx
jne 0x42bcf9
xor al, al
jmp 0x42bec7
lea eax, [ebp - 0x440]
push eax
mov ecx, esi
call fcn.0042b935
cmp byte [ebp - 0x210], bl
je 0x42bd4c
push ebx
lea eax, [ebp - 0x440]
push eax
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0043c906
mov esi, dword [esi + 4]
add esp, 0x14
cmp esi, ebx
je 0x42bd3a
push 1
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0042ba25
pop ecx
jmp 0x42bec7
cmp byte [ebp + 0xc], bl
je 0x42bd8c
lea eax, [ebp - 0x540]
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
lea eax, [ebp - 0x440]
push ebx
push eax
call fcn.0043c996
lea eax, [ebp - 0x540]
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
lea eax, [ebp - 0x440]
push ebx
push eax
call fcn.0043c906
add esp, 0x28
push ebx
lea eax, [ebp - 0x440]
push eax
push edi
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0043c906
lea eax, [ebp - 0x108]
push eax
call fcn.0042bb10
add esp, 0x18
test al, al
je 0x42bcf2
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 0x42be18
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.00434840
test eax, eax
jne 0x42bcf2
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x42be3f
push ebx
lea ecx, [ebp - 0x108]
push ecx
call eax
push 0x800
lea eax, [ebp - 0xd40]
push eax
push dword [esi + 8]
call fcn.004341b0
mov edi, eax
cmp edi, ebx
jle 0x42be81
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 0x42be7e
cmp dword [ebp + 0xc], edi
je 0x42be3f
or edi, 0xffffffff
push dword [ebp - 0xd44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 8]
call fcn.004343b0
cmp edi, ebx
jne 0x42bec0
push dword [ebp - 0x228]
lea eax, [ebp - 0x108]
push eax
call fcn.0042bb45
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.00439dac
leave
ret 8
Function at 0x42c062
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x44c6b5
call fcn.0043a614
sub esp, 0x17c
mov eax, dword [0x46159c]
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.0042e90c
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.0042e952
lea eax, [ebp - 0x118]
push eax
push 0x20019
push ebx
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 2
call fcn.0042f088
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42c22e
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 0x42c22e
mov eax, dword [ebp - 0x11c]
inc eax
push eax
mov dword [ebp - 0x120], eax
call fcn.0043acc2
pop ecx
lea ecx, [ebp - 0x174]
mov esi, eax
call fcn.004210e1
add eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x124]
lea eax, [eax + ecx + 0xa]
push eax
call fcn.0043acc2
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 0x42c220
sub esp, 0x14
lea eax, [ebp - 0x174]
mov ecx, esp
mov dword [ebp - 0x184], esp
push eax
call fcn.0042ea0d
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x140]
call fcn.0042ea96
lea ecx, [ebp - 0x154]
call fcn.0042ea68
push 0x44efe4
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x140]
call fcn.0042eb74
lea ecx, [ebp - 0x154]
call fcn.0042ea68
push esi
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x140]
call fcn.0042eb74
lea ecx, [ebp - 0x154]
call fcn.0042ea68
push esi
call fcn.0043acbd
push edi
call fcn.0043acbd
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x140]
push eax
call fcn.0042ea0d
lea ecx, [ebp - 0x174]
mov dword [ebp - 0x12c], 1
mov byte [ebp - 4], 1
call fcn.0042ea68
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], bl
call fcn.0042ea68
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00439dac
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42c55c
Capabilities:
Encode data using xor

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

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x4349bf
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x4603dc]
test eax, eax
je 0x4349cd
call fcn.00434860
mov edx, dword [esp + 0x10]
cmp edx, 8
mov eax, dword [esp + 8]
not eax
jb 0x434ac1
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 + 0x468120]
xor eax, ebx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x468120]
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 + 0x468120]
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 + 0x468120]
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 + 0x468120]
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 + 0x468120]
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 + 0x468120]
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 + 0x468120]
shr eax, 8
xor eax, ecx
inc esi
dec edi
jne 0x4349e7
pop edi
pop ebx
test edx, edx
je 0x434ae1
xor ecx, ecx
mov cl, byte [esi]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x468120]
shr eax, 8
xor eax, ecx
inc esi
dec edx
jne 0x434ac5
not eax
pop esi
ret 0xc
Function at 0x43b244
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.0043b480
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43b2df
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 [0x46852c]
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 0x43b2df
cmp eax, 1
je 0x43b300
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 0x43b2df
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x43b2ac
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x43b2db
xor eax, eax
inc eax
jmp 0x43b31f
cmp edi, eax
jae 0x43b2e3
xor eax, eax
jmp 0x43b31f
cmp eax, esi
jae 0x43b2ea
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 [0x46852c]
jmp 0x43b303
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 0x43b956
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4584f0
call fcn.0043b328
push 8
call fcn.0044035d
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x46856c], esi
jne 0x43b98a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x468568], esi
mov al, byte [ebp + 0x10]
mov byte [0x468564], al
cmp dword [ebp + 0xc], edi
jne 0x43b9d4
cmp dword [0x46a078], edi
je 0x43b9c4
mov eax, dword [0x46a074]
sub eax, 4
mov dword [0x46a074], eax
cmp eax, dword [0x46a078]
jb 0x43b9c4
mov eax, dword [eax]
cmp eax, edi
je 0x43b9a5
call eax
jmp 0x43b9a5
push 0x46008c
mov eax, 0x460084
call fcn.0043b8d4
pop ecx
push 0x460098
mov eax, 0x460090
call fcn.0043b8d4
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x43ba05
cmp dword [ebp + 0x10], edi
jne 0x43ba13
mov dword [0x46856c], esi
push dword [ebp + 8]
call fcn.0043b892
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x43ba12
push 8
call fcn.004402a8
pop ecx
ret
call fcn.0043b363
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43c7ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00442ca7
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x43c811
test byte [esp + 8], 2
je 0x43c811
call fcn.00442c95
mov dword [eax], 0xd
call fcn.00442c9e
mov dword [eax], 5
jmp 0x43c7ea
xor eax, eax
ret
Function at 0x43d18f
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x458668
call fcn.0043b328
mov edi, 0x94
mov eax, edi
call fcn.0043b480
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 [0x46852c], ecx
mov eax, dword [esi + 4]
mov dword [0x468538], eax
mov edx, dword [esi + 8]
mov dword [0x46853c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x468530], esi
cmp ecx, 2
je 0x43d1ef
or esi, 0x8000
mov dword [0x468530], esi
shl eax, 8
add eax, edx
mov dword [0x468534], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x43d22a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43d22a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x43d242
cmp eax, 0x20b
je 0x43d22f
mov dword [ebp - 0x1c], esi
jmp 0x43d256
cmp dword [ecx + 0x84], 0xe
jbe 0x43d22a
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x43d250
cmp dword [ecx + 0x74], 0xe
jbe 0x43d22a
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00441239
pop ecx
test eax, eax
jne 0x43d26a
push 0x1c
call fcn.0043d16b
pop ecx
call fcn.0043f6c9
test eax, eax
jne 0x43d27b
push 0x10
call fcn.0043d16b
pop ecx
call fcn.004423fe
mov dword [ebp - 4], esi
call fcn.00443d79
test eax, eax
jge 0x43d294
push 0x1b
call fcn.0043d146
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x46a06c], eax
call fcn.00443c57
mov dword [0x468574], eax
call fcn.00443bb5
test eax, eax
jge 0x43d2ba
push 8
call fcn.0043d146
pop ecx
call fcn.00443982
test eax, eax
jge 0x43d2cb
push 9
call fcn.0043d146
pop ecx
push 1
call fcn.0043b8ec
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x43d2e1
push eax
call fcn.0043d146
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00443925
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x43d302
movzx eax, word [ebp - 0x40]
jmp 0x43d305
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004166fc
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x43d323
push edi
call fcn.0043ba19
call fcn.0043ba3b
jmp 0x43d355
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0043b363
ret
Function at 0x441dc8
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 0x441df6
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 0x441dfd
cmp ebx, dword [eax + 4]
jae 0x441dfd
xor eax, eax
jmp 0x441fed
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x441e0e
xor eax, eax
inc eax
jmp 0x441fec
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x441e24
cmp ecx, edx
jae 0x441f69
cmp dword [eax + 4], 0
je 0x441e2d
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x441e15
cmp dword [ebp + 8], 0
je 0x441e4f
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x441f69
cmp eax, esi
jae 0x441f69
mov eax, dword [0x468700]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x441e74
cmp dword [esi*4 + 0x468708], edi
je 0x441f6d
inc esi
cmp esi, eax
jl 0x441e62
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x441fe9
cmp dword [ebp - 8], 0x1000000
jne 0x441fe9
test byte [ebp - 0xc], 0xcc
je 0x441ef2
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x441fe9
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x441fe9
cmp word [eax + 0x18], 0x10b
jne 0x441fe9
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x441fe9
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x441ef2
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x441ef2
test byte [ecx + 0x27], 0x80
jne 0x441f69
push 1
push 0x468748
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x441e06
mov ecx, dword [0x468700]
test ecx, ecx
mov edx, ecx
jle 0x441f26
lea eax, [ecx*4 + 0x468704]
cmp dword [eax], edi
je 0x441f26
dec edx
sub eax, 4
test edx, edx
jg 0x441f1a
test edx, edx
jne 0x441f57
push 0xf
pop ebx
cmp ecx, ebx
jg 0x441f33
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x441f4b
lea eax, [edx*4 + 0x468708]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x441f39
cmp ecx, 0x10
jge 0x441f57
inc ecx
mov dword [0x468700], ecx
push 0
push 0x468748
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x441e06
xor eax, eax
jmp 0x441fec
test esi, esi
jle 0x441e06
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x468748
call ebx
test eax, eax
jne 0x441e06
cmp dword [esi*4 + 0x468708], edi
je 0x441fc3
mov eax, dword [0x468700]
lea esi, [eax - 1]
test esi, esi
jl 0x441fb1
cmp dword [esi*4 + 0x468708], edi
je 0x441fad
dec esi
jns 0x441fa1
test esi, esi
jge 0x441fc1
cmp eax, 0x10
jge 0x441fbc
inc eax
mov dword [0x468700], eax
lea esi, [eax - 1]
jmp 0x441fc3
je 0x441fdb
xor ecx, ecx
test esi, esi
jl 0x441fdb
lea eax, [ecx*4 + 0x468708]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x441fc9
push 0
push 0x468748
call ebx
jmp 0x441e06
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x443611
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x46159c]
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 + 0x461d50]
je 0x443646
inc eax
cmp eax, 0x13
jb 0x443637
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x461d50]
jne 0x44376c
mov eax, dword [0x46857c]
cmp eax, 1
je 0x443744
cmp eax, edx
jne 0x443676
cmp dword [0x4616e4], 1
je 0x443744
cmp ecx, 0xfc
je 0x44376c
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 0x4436ac
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00439e60
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00439dc0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4436e0
mov eax, edi
push eax
call fcn.00439dc0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x45871c
push edi
call fcn.004432c0
add esp, 0x10
push edi
call fcn.00439dc0
push dword [esi + 0x461d54]
mov ebx, eax
call fcn.00439dc0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0043b480
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00439e60
push edi
push ebx
call fcn.00439e70
push 0x458718
push ebx
call fcn.00439e70
push dword [esi + 0x461d54]
push ebx
call fcn.00439e70
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00444d69
add esp, 0x2c
jmp 0x44376c
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x461d54]
push dword [esi]
call fcn.00439dc0
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.00439dac
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret