joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429dc8
Capabilities:
Check os version

Disassembly:
mov eax, 0x44ab8a
call fcn.00438c74
sub esp, 0xbc
mov eax, dword [0x45e56c]
push ebx
push esi
push edi
mov esi, ecx
push str.Microsoft_Windows
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
call fcn.004030e2
mov edi, 0x9c
xor ebx, ebx
push edi
lea eax, [ebp - 0xc8]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00439b20
add esp, 0xc
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xc8], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call edi
test eax, eax
jne 0x429e51
lea eax, [ebp - 0xc8]
push eax
mov dword [ebp - 0xc8], 0x94
call edi
test eax, eax
jne 0x429e51
push str.Unknown
mov ecx, esi
call fcn.00403062
mov dword [esi + 0x1c], ebx
jmp 0x429f14
mov eax, dword [ebp - 0xb8]
sub eax, ebx
je 0x429ffe
dec eax
je 0x429f4d
dec eax
jne 0x429efd
cmp dword [ebp - 0xc4], 4
ja 0x429e83
push str._NT
lea ecx, [ebp - 0x2c]
call fcn.00403045
push 6
pop edi
push 5
pop ebx
cmp dword [ebp - 0xc4], ebx
jne 0x429ecf
cmp dword [ebp - 0xc0], 0
jne 0x429eb2
push str._2000
lea ecx, [ebp - 0x2c]
call fcn.00403045
cmp dword [ebp - 0xc4], ebx
mov dword [esi + 0x20], edi
jne 0x429ecf
cmp dword [ebp - 0xc0], 1
jne 0x429efb
push str._XP
lea ecx, [ebp - 0x2c]
call fcn.00403045
mov dword [esi + 0x20], 7
cmp dword [ebp - 0xc4], edi
jne 0x429eeb
push str._Vista
lea ecx, [ebp - 0x2c]
call fcn.00403045
mov dword [esi + 0x20], 8
push 4
pop eax
cmp dword [ebp - 0xc4], eax
ja 0x429efb
jne 0x429f36
mov dword [esi + 0x20], ebx
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00402e91
mov eax, dword [ebp - 0xbc]
mov dword [esi + 0x1c], eax
push ebx
lea ecx, [ebp - 0x2c]
push 1
call fcn.004026fb
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0043840c
leave
ret
cmp dword [ebp - 0xc4], 3
jne 0x429efb
cmp dword [ebp - 0xc0], 0x33
jne 0x429efb
mov dword [esi + 0x20], eax
jmp 0x429efb
cmp dword [ebp - 0xc4], 4
jne 0x429efd
cmp dword [ebp - 0xc0], ebx
jne 0x429fa0
push str._95
lea ecx, [ebp - 0x2c]
call fcn.00403045
cmp byte [ebp - 0xb3], 0x43
lea ecx, [ebp - 0x2c]
jne 0x429f7e
push str.OSR2
jmp 0x429f93
push dword [ebp - 0xb3]
push 1
call fcn.00418baf
push 0x44cd08
lea ecx, [ebp - 0x2c]
call fcn.00403045
mov dword [esi + 0x20], ebx
jmp 0x429efd
cmp dword [ebp - 0xc0], 0xa
jne 0x429fd8
push str._98
lea ecx, [ebp - 0x2c]
call fcn.00403045
cmp byte [ebp - 0xb3], 0x41
jne 0x429fcc
push 0x453edc
lea ecx, [ebp - 0x2c]
call fcn.00403045
mov dword [esi + 0x20], 1
jmp 0x429efd
cmp dword [ebp - 0xc0], 0x5a
jne 0x429efd
push str._Me
lea ecx, [ebp - 0x2c]
call fcn.00403045
mov dword [esi + 0x20], 2
jmp 0x429efd
push str._Win32s
lea ecx, [ebp - 0x2c]
call fcn.00403045
mov dword [esi + 0x20], 3
jmp 0x429efd
Function at 0x42a017
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.00420342
mov ecx, esi
mov dword [esi + 0x50], eax
call fcn.00429d00
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.00429dc8
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.00429d78
pop edi
pop esi
leave
ret

Function at 0x42a083
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x44abb2
call fcn.00438c74
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov edi, 0x44c5be
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.0042a017
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x45e56c]
push esi
push edi
mov edi, dword [ebp + 0x90]
test edi, edi
mov dword [ebp + 0x84], eax
je 0x42a468
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x42a468
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42a438
and al, 0x10
sub al, 0x10
neg al
sbb eax, eax
inc eax
jmp 0x42a46a
push edi
call fcn.0043b13e
mov esi, eax
push 0x5c
push esi
call fcn.00439d90
add esp, 0xc
test eax, eax
je 0x42a4d8
push esi
mov byte [eax], 0
call fcn.0042a3f1
test al, al
pop ecx
push esi
jne 0x42a47f
call fcn.00439834
pop ecx
xor al, al
mov ecx, dword [ebp + 0x84]
pop edi
pop esi
call fcn.0043840c
add ebp, 0x88
leave
ret
call fcn.00439834
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.004384c0
lea eax, [ebp - 0x80]
lea esi, [ebp - 0x80]
push eax
dec esi
call fcn.00438420
add esp, 0x10
jmp 0x42a4b5
push eax
call fcn.00438420
mov byte [eax + esi], 0
lea eax, [ebp - 0x80]
push eax
call fcn.00438420
pop ecx
pop ecx
cmp byte [eax + esi], 0x5c
lea eax, [ebp - 0x80]
je 0x42a4a0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x42a4d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42a468
mov al, 1
jmp 0x42a46a
Function at 0x42a511
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 0x42a53a
xor al, al
jmp 0x42a5b5
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 0x42a5ab
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 0x42a5ab
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 0x42a5ab
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 0x42a67f
Capabilities:
Delete file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd48
mov eax, dword [0x45e56c]
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 0x42a6a8
xor al, al
jmp 0x42a894
push edi
mov edi, dword [ebp + 8]
cmp edi, ebx
jne 0x42a6b3
lea edi, [esi + 0xc]
push edi
call fcn.0042a3f1
test al, al
pop ecx
jne 0x42a6c5
xor al, al
jmp 0x42a893
lea eax, [ebp - 0x440]
push eax
mov ecx, esi
call fcn.0042a301
cmp byte [ebp - 0x210], bl
je 0x42a718
push ebx
lea eax, [ebp - 0x440]
push eax
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0043af66
mov esi, dword [esi + 4]
add esp, 0x14
cmp esi, ebx
je 0x42a706
push 1
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0042a3f1
pop ecx
jmp 0x42a893
cmp byte [ebp + 0xc], bl
je 0x42a758
lea eax, [ebp - 0x540]
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
lea eax, [ebp - 0x440]
push ebx
push eax
call fcn.0043aff6
lea eax, [ebp - 0x540]
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
lea eax, [ebp - 0x440]
push ebx
push eax
call fcn.0043af66
add esp, 0x28
push ebx
lea eax, [ebp - 0x440]
push eax
push edi
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0043af66
lea eax, [ebp - 0x108]
push eax
call fcn.0042a4dc
add esp, 0x18
test al, al
je 0x42a6be
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 0x42a7e4
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.00432ea0
test eax, eax
jne 0x42a6be
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x42a80b
push ebx
lea ecx, [ebp - 0x108]
push ecx
call eax
push 0x800
lea eax, [ebp - 0xd40]
push eax
push dword [esi + 8]
call fcn.00432810
mov edi, eax
cmp edi, ebx
jle 0x42a84d
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 0x42a84a
cmp dword [ebp + 0xc], edi
je 0x42a80b
or edi, 0xffffffff
push dword [ebp - 0xd44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 8]
call fcn.00432a10
cmp edi, ebx
jne 0x42a88c
push dword [ebp - 0x228]
lea eax, [ebp - 0x108]
push eax
call fcn.0042a511
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.0043840c
leave
ret 8
Function at 0x42aa2e
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x44ac06
call fcn.00438c74
sub esp, 0x17c
mov eax, dword [0x45e56c]
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.0042d323
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.0042d369
lea eax, [ebp - 0x118]
push eax
push 0x20019
push ebx
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 2
call fcn.0042da9f
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42abfa
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 0x42abfa
mov eax, dword [ebp - 0x11c]
inc eax
push eax
mov dword [ebp - 0x120], eax
call fcn.00439322
pop ecx
lea ecx, [ebp - 0x174]
mov esi, eax
call fcn.0041fb1c
add eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x124]
lea eax, [eax + ecx + 0xa]
push eax
call fcn.00439322
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 0x42abec
sub esp, 0x14
lea eax, [ebp - 0x174]
mov ecx, esp
mov dword [ebp - 0x184], esp
push eax
call fcn.0042d424
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x140]
call fcn.0042d4ad
lea ecx, [ebp - 0x154]
call fcn.0042d47f
push 0x44cf14
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x140]
call fcn.0042d58b
lea ecx, [ebp - 0x154]
call fcn.0042d47f
push esi
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x140]
call fcn.0042d58b
lea ecx, [ebp - 0x154]
call fcn.0042d47f
push esi
call fcn.0043931d
push edi
call fcn.0043931d
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x140]
push eax
call fcn.0042d424
lea ecx, [ebp - 0x174]
mov dword [ebp - 0x12c], 1
mov byte [ebp - 4], 1
call fcn.0042d47f
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], bl
call fcn.0042d47f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0043840c
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42af1c
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x42af3b
push esi
call fcn.00438420
pop ecx
xor ecx, ecx
test eax, eax
jbe 0x42af3b
xor byte [ecx + esi], 8
inc ecx
cmp ecx, eax
jb 0x42af32
pop esi
ret
Function at 0x433010
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x43301f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x45d3ac]
test eax, eax
je 0x43302d
call fcn.00432ec0
mov edx, dword [esp + 0x10]
cmp edx, 8
mov eax, dword [esp + 8]
not eax
jb 0x433121
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 + 0x465098]
xor eax, ebx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x465098]
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 + 0x465098]
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 + 0x465098]
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 + 0x465098]
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 + 0x465098]
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 + 0x465098]
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 + 0x465098]
shr eax, 8
xor eax, ecx
inc esi
dec edi
jne 0x433047
pop edi
pop ebx
test edx, edx
je 0x433141
xor ecx, ecx
mov cl, byte [esi]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x465098]
shr eax, 8
xor eax, ecx
inc esi
dec edx
jne 0x433125
not eax
pop esi
ret 0xc
Function at 0x4398a5
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.00439ae0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x439940
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 [0x4654a4]
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 0x439940
cmp eax, 1
je 0x439961
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 0x439940
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x43990d
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x43993c
xor eax, eax
inc eax
jmp 0x439980
cmp edi, eax
jae 0x439944
xor eax, eax
jmp 0x439980
cmp eax, esi
jae 0x43994b
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 [0x4654a4]
jmp 0x439964
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 0x439fb6
Capabilities:
Terminate process

Disassembly:
push 8
push 0x455628
call fcn.00439988
push 8
call fcn.0043e9bd
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4654e4], esi
jne 0x439fea
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4654e0], esi
mov al, byte [ebp + 0x10]
mov byte [0x4654dc], al
cmp dword [ebp + 0xc], edi
jne 0x43a034
cmp dword [0x466ff8], edi
je 0x43a024
mov eax, dword [0x466ff4]
sub eax, 4
mov dword [0x466ff4], eax
cmp eax, dword [0x466ff8]
jb 0x43a024
mov eax, dword [eax]
cmp eax, edi
je 0x43a005
call eax
jmp 0x43a005
push 0x45d084
mov eax, 0x45d07c
call fcn.00439f34
pop ecx
push 0x45d090
mov eax, 0x45d088
call fcn.00439f34
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x43a065
cmp dword [ebp + 0x10], edi
jne 0x43a073
mov dword [0x4654e4], esi
push dword [ebp + 8]
call fcn.00439ef2
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x43a072
push 8
call fcn.0043e908
pop ecx
ret
call fcn.004399c3
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43ae4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00441307
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x43ae71
test byte [esp + 8], 2
je 0x43ae71
call fcn.004412f5
mov dword [eax], 0xd
call fcn.004412fe
mov dword [eax], 5
jmp 0x43ae4a
xor eax, eax
ret
Function at 0x43b7ef
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4557a0
call fcn.00439988
mov edi, 0x94
mov eax, edi
call fcn.00439ae0
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 [0x4654a4], ecx
mov eax, dword [esi + 4]
mov dword [0x4654b0], eax
mov edx, dword [esi + 8]
mov dword [0x4654b4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4654a8], esi
cmp ecx, 2
je 0x43b84f
or esi, 0x8000
mov dword [0x4654a8], esi
shl eax, 8
add eax, edx
mov dword [0x4654ac], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x43b88a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43b88a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x43b8a2
cmp eax, 0x20b
je 0x43b88f
mov dword [ebp - 0x1c], esi
jmp 0x43b8b6
cmp dword [ecx + 0x84], 0xe
jbe 0x43b88a
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x43b8b0
cmp dword [ecx + 0x74], 0xe
jbe 0x43b88a
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0043f899
pop ecx
test eax, eax
jne 0x43b8ca
push 0x1c
call fcn.0043b7cb
pop ecx
call fcn.0043dd26
test eax, eax
jne 0x43b8db
push 0x10
call fcn.0043b7cb
pop ecx
call fcn.00440a5e
mov dword [ebp - 4], esi
call fcn.004423d9
test eax, eax
jge 0x43b8f4
push 0x1b
call fcn.0043b7a6
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x466fec], eax
call fcn.004422b7
mov dword [0x4654ec], eax
call fcn.00442215
test eax, eax
jge 0x43b91a
push 8
call fcn.0043b7a6
pop ecx
call fcn.00441fe2
test eax, eax
jge 0x43b92b
push 9
call fcn.0043b7a6
pop ecx
push 1
call fcn.00439f4c
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x43b941
push eax
call fcn.0043b7a6
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00441f85
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x43b962
movzx eax, word [ebp - 0x40]
jmp 0x43b965
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call int.00415a2d
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x43b983
push edi
call fcn.0043a079
call fcn.0043a09b
jmp 0x43b9b5
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004399c3
ret
Function at 0x440428
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 0x440456
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 0x44045d
cmp ebx, dword [eax + 4]
jae 0x44045d
xor eax, eax
jmp 0x44064d
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x44046e
xor eax, eax
inc eax
jmp 0x44064c
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x440484
cmp ecx, edx
jae 0x4405c9
cmp dword [eax + 4], 0
je 0x44048d
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x440475
cmp dword [ebp + 8], 0
je 0x4404af
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4405c9
cmp eax, esi
jae 0x4405c9
mov eax, dword [0x465678]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4404d4
cmp dword [esi*4 + 0x465680], edi
je 0x4405cd
inc esi
cmp esi, eax
jl 0x4404c2
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x440649
cmp dword [ebp - 8], 0x1000000
jne 0x440649
test byte [ebp - 0xc], 0xcc
je 0x440552
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x440649
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x440649
cmp word [eax + 0x18], 0x10b
jne 0x440649
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x440649
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x440552
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x440552
test byte [ecx + 0x27], 0x80
jne 0x4405c9
push 1
push 0x4656c0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x440466
mov ecx, dword [0x465678]
test ecx, ecx
mov edx, ecx
jle 0x440586
lea eax, [ecx*4 + 0x46567c]
cmp dword [eax], edi
je 0x440586
dec edx
sub eax, 4
test edx, edx
jg 0x44057a
test edx, edx
jne 0x4405b7
push 0xf
pop ebx
cmp ecx, ebx
jg 0x440593
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4405ab
lea eax, [edx*4 + 0x465680]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x440599
cmp ecx, 0x10
jge 0x4405b7
inc ecx
mov dword [0x465678], ecx
push 0
push 0x4656c0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x440466
xor eax, eax
jmp 0x44064c
test esi, esi
jle 0x440466
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4656c0
call ebx
test eax, eax
jne 0x440466
cmp dword [esi*4 + 0x465680], edi
je 0x440623
mov eax, dword [0x465678]
lea esi, [eax - 1]
test esi, esi
jl 0x440611
cmp dword [esi*4 + 0x465680], edi
je 0x44060d
dec esi
jns 0x440601
test esi, esi
jge 0x440621
cmp eax, 0x10
jge 0x44061c
inc eax
mov dword [0x465678], eax
lea esi, [eax - 1]
jmp 0x440623
je 0x44063b
xor ecx, ecx
test esi, esi
jl 0x44063b
lea eax, [ecx*4 + 0x465680]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x440629
push 0
push 0x4656c0
call ebx
jmp 0x440466
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret