joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407ec0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4477b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x459b3c]
mov eax, dword [0x459b58]
imul eax, eax, 0x171ed6e
push esi
mov esi, dword [0x459b44]
push edi
mov edi, ecx
imul edi, edi, 0x1a0fa8c
add edi, eax
mov eax, 0x5e407cd
imul esi
sar edx, 0x14
add edi, edx
mov eax, edx
shr eax, 0x1f
add eax, edi
shl eax, 1
mov edi, eax
mov eax, 0x702fe9a3
imul esi
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, 0x565ef47
imul ecx
sar edx, 0x12
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x56feac]
sub edi, ecx
mov ecx, 0x56feac
mov dword [str._r_____r____], edi
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov ecx, dword [0x459b44]
mov esi, dword [0x459b58]
mov eax, 0x5e407cd
imul esi, esi, 0x171ed6e
imul ecx
mov ecx, dword [0x459b4c]
sar edx, 0x14
add esi, edx
mov edi, edx
mov eax, 0x702fe9a3
imul ecx
mov ecx, dword [0x459b48]
sar edx, 0x19
imul ecx, ecx, 0x4905557
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x459b38]
imul edx, edx, 0xd0a84b
shr edi, 0x1f
add edi, esi
sub edi, eax
add edi, ecx
mov ecx, dword [0x459b40]
add edi, edx
mov eax, 0x4eb6fa85
imul ecx
sar edx, 0x18
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x1c]
sub edi, eax
mov eax, dword [0x459b54]
lea ecx, [esp + 0x20]
sub edi, eax
push ecx
sub edi, 0x53d33c3
mov dword [esp + 0x18], 0
mov dword [0x459b40], edi
push edx
lea ecx, [esp + 0x10]
call fcn.00407c30
mov ecx, dword [0x459b44]
mov esi, dword [0x459b58]
imul esi, esi, 0x171ed6e
mov eax, 0x5e407cd
imul ecx
mov ecx, dword [0x459b54]
sar edx, 0x14
add esi, edx
mov edi, edx
mov eax, 0x702fe9a3
imul ecx
mov eax, dword [0x459b50]
mov ecx, dword [0x459b4c]
imul eax, eax, 0x185d014
sar edx, 0x19
imul ecx, ecx, 0x53d33c3
shr edi, 0x1f
add edi, esi
mov esi, edx
add edi, edx
mov edx, dword [0x459b40]
imul edx, edx, 0xbdb188
shr esi, 0x1f
add esi, edi
add esi, eax
add esi, ecx
mov ecx, dword [0x459b3c]
add esi, edx
mov eax, 0x2742b221
imul ecx
sar edx, 0x15
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov dword [0x459b4c], esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
jg 0x4080a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x419400
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x45b4b0]
mov edx, dword [esp + 0x11c]
push ebp
push esi
mov ebp, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x128], eax
mov eax, dword [ebp]
push edx
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x419522
lea ecx, [esp + 8]
call fcn.004192e0
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jne 0x419526
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x4194d0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.00419400
mov edi, eax
test edi, edi
jne 0x41954a
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push edi
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push edi
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x419492
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4194e9
push eax
call edi
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x128]
mov edx, dword [ebp]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x419508
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.0042cf11
add esp, 0x118
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x419531
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.0042cf11
add esp, 0x118
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x419559
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
pop ebp
call fcn.0042cf11
add esp, 0x118
ret 4
Function at 0x419a30
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x419a42
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x41d840
Capabilities:
Create thread

Disassembly:
mov ecx, dword [0x459b58]
push ebx
imul ecx, ecx, 0x171ed6e
mov ebx, dword [0x459b44]
mov eax, 0x5e407cd
imul ebx
push ebp
mov ebp, dword [0x459b3c]
sar edx, 0x14
mov eax, ebp
imul eax, eax, 0x1a0fa8c
push esi
mov esi, edx
shr esi, 0x1f
add esi, edx
add eax, esi
add eax, ecx
shl eax, 1
push edi
mov edi, eax
mov eax, 0x702fe9a3
imul ebx
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, 0x565ef47
imul ebp
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
cmp dword [esp + 0x14], 0x132b600
mov dword [str._r_____r____], edi
je 0x41d8d1
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x64
mov edi, edi
push 0x3e8
call edi
dec esi
jne 0x41d8c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ebp, dword [0x459b40]
mov eax, 0x540f9495
imul ebp
sar edx, 0x17
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], eax
mov eax, 0x186e8b3d
imul ebp
mov eax, dword [esp + 0x14]
sar edx, 0x17
add eax, edx
lea ebx, [esi + ecx]
mov ecx, edx
mov edx, dword [0x459b38]
shr ecx, 0x1f
imul edx, edx, 0x53d33c3
add ecx, eax
mov eax, dword [0x459b50]
imul eax, eax, 0xbdb188
add ecx, edx
sub ecx, eax
mov eax, 0x2742b221
imul dword [0x459b54]
sar edx, 0x15
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, dword [0x56d96c]
add ecx, ebx
mov edx, eax
inc eax
test edx, edx
mov dword [0x459b38], ecx
mov dword [0x56d96c], eax
jle 0x41d98d
mov ecx, dword [0x459b50]
mov eax, 0x545b9e19
imul ecx, ecx, 0x1a0fa8c
imul dword [0x459b3c]
sar edx, 0x17
mov eax, edx
shr eax, 0x1f
add ecx, esi
add eax, edx
lea ecx, [eax + ecx*2 + 0x3409364]
sub ecx, edi
pop edi
pop esi
pop ebp
mov dword [0x459b3c], ecx
mov eax, 1
pop ebx
ret
mov edx, dword [0x459b4c]
imul ecx, ecx, 0xd0a84b
mov esi, dword [0x459b48]
mov eax, 0x702fe9a3
imul esi, esi, 0x4905557
imul edx
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0x4eb6fa85
imul ebp
mov ebp, dword [0x459b54]
add esi, ecx
sar edx, 0x18
mov ecx, edx
lea eax, [esp + 0x14]
push eax
push 0
shr ecx, 0x1f
add ecx, edx
push 0
sub esi, ecx
push 0x41d260
sub esi, ebp
push 0
lea edx, [esi + ebx - 0x53d33c3]
push 0
mov dword [0x56d68c], 0
mov dword [0x459b40], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x459b4c]
mov eax, 0x545b9e19
imul ecx
mov esi, ecx
sar edx, 0x17
imul esi, esi, 0x341f518
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x459b58]
imul edx, edx, 0x171ed6e
mov edi, dword [0x459b50]
sub esi, ecx
mov ecx, dword [0x459b44]
add esi, edx
mov eax, 0x5e407cd
imul ecx
mov ecx, dword [str._r_____r____]
sar edx, 0x14
imul ecx, ecx, 0x2b75400
add esi, edx
mov eax, edx
mov edx, dword [0x459b48]
imul edx, edx, 0xd0a84b
shr eax, 0x1f
add eax, esi
add ecx, edi
pop edi
add ecx, eax
pop esi
lea eax, [edx + ecx - 0x53d33c3]
pop ebp
mov dword [0x459b44], eax
mov eax, 1
pop ebx
ret
Function at 0x422c10
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x459b58]
push edi
mov edi, dword [0x459b44]
mov eax, 0x5e407cd
imul edi
sar edx, 0x14
mov ebx, edx
mov ecx, dword [0x459b50]
shr ebx, 0x1f
add ebx, edx
mov eax, 0x9d2b2fed
imul esi
add edx, esi
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
imul edx, edx, 0x18470b7
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, 0x58945bfd
imul esi
mov eax, dword [esp + 0x10]
sar edx, 0x17
add eax, edx
mov ebp, edx
mov edx, esi
imul esi, esi, 0x171ed6e
imul edx, edx, 0x3cb4655
shr ebp, 0x1f
add ebp, eax
mov eax, dword [esp + 0x18]
sub ebp, edx
cmp eax, 0x132b600
mov dword [0x459b48], ebp
je 0x422cf2
mov ecx, dword [0x459b3c]
mov eax, ecx
imul eax, eax, 0x1a0fa8c
add eax, ebx
add esi, eax
mov eax, 0x702fe9a3
imul edi
sar edx, 0x19
mov eax, edx
shr eax, 0x1f
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add eax, edx
shl esi, 1
sub esi, eax
mov eax, 0x565ef47
imul ecx
sar edx, 0x12
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub esi, ecx
mov dword [str._r_____r____], esi
mov esi, 0x64
lea esp, [esp]
push 0x3e8
call edi
dec esi
jne 0x422ce0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [0x459b54]
imul ecx, ecx, 0x185d014
mov eax, 0x702fe9a3
imul edx
mov eax, dword [0x459b40]
sar edx, 0x19
imul eax, eax, 0xbdb188
mov edi, edx
shr edi, 0x1f
add edi, edx
mov edx, dword [0x459b4c]
imul edx, edx, 0x53d33c3
add ecx, edx
mov edx, dword [0x459b3c]
add ecx, eax
mov eax, 0x2742b221
imul edx
sar edx, 0x15
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, dword [0x56d680]
add ecx, edi
add ecx, esi
add ecx, ebx
test eax, eax
mov dword [0x459b4c], ecx
jne 0x422e46
mov ecx, dword [0x459b38]
mov edx, dword [str._r_____r____]
imul ecx, ecx, 0x18470b7
imul edx, edx, 0x2b75400
add ecx, edx
mov eax, 0x5e407cd
imul ebp
sar edx, 0x14
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, 0x565ef47
imul ebp
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
sub ecx, edi
add ecx, esi
add ecx, ebx
mov dword [0x459b54], ecx
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0x421430
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x459b4c]
mov dword [0x56d670], eax
mov eax, 0x545b9e19
imul ecx
sar edx, 0x17
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [str._r_____r____]
mov esi, ecx
imul edx, edx, 0x2b75400
mov ecx, dword [0x459b58]
imul esi, esi, 0x341f518
imul ecx, ecx, 0x171ed6e
mov edi, dword [0x459b50]
sub esi, eax
add esi, ecx
mov ecx, dword [0x459b44]
add esi, edx
mov eax, 0x5e407cd
imul ecx
mov ecx, dword [0x459b48]
sar edx, 0x14
imul ecx, ecx, 0xd0a84b
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, edi
add eax, esi
lea edx, [ecx + eax - 0x53d33c3]
mov dword [0x56d680], 1
mov dword [0x459b44], edx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x4240ee
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 0x424141
call fcn.00444c75
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x424141
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x424137
xor eax, eax
jmp 0x42425a
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 0x424171
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 0x424171
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x424257
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x42419e
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00423363
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x424257
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4241e7
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4241e7
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x4241e1
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00423363
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x424247
and dword [ebp + 0xc], 0
jmp 0x424247
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x424247
push 0xc
call fcn.0043eb77
mov esi, eax
test esi, esi
pop ecx
je 0x424229
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 0x42422b
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x424242
push dword [ebp - 8]
call fcn.0043a5ca
jmp 0x424247
call fcn.0043a5a1
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x4241ac
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42d49d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042f6ec
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x42d4c0
test byte [esp + 8], 2
je 0x42d4c0
call fcn.0042f6da
mov dword [eax], 0xd
call fcn.0042f6e3
mov dword [eax], 5
jmp 0x42d499
xor eax, eax
ret
Function at 0x42d587
Capabilities:
Terminate process

Disassembly:
push 8
push 0x44d5e0
call fcn.0042f558
push 8
call fcn.00431791
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x56f99c], esi
jne 0x42d5bb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x56f998], esi
mov al, byte [ebp + 0x10]
mov byte [0x56f994], al
cmp dword [ebp + 0xc], edi
jne 0x42d605
cmp dword [0x57128c], edi
je 0x42d5f5
mov eax, dword [0x571288]
sub eax, 4
mov dword [0x571288], eax
cmp eax, dword [0x57128c]
jb 0x42d5f5
mov eax, dword [eax]
cmp eax, edi
je 0x42d5d6
call eax
jmp 0x42d5d6
push 0x4560cc
mov eax, 0x4560c4
call fcn.0042d505
pop ecx
push 0x4560d8
mov eax, 0x4560d0
call fcn.0042d505
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x42d636
cmp dword [ebp + 0x10], edi
jne 0x42d644
mov dword [0x56f99c], esi
push dword [ebp + 8]
call fcn.0042d4c3
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x42d643
push 8
call fcn.004316dc
pop ecx
ret
call fcn.0042f593
ret

Function at 0x42d8b7
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.0042d750
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42d952
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 [0x56f95c]
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 0x42d952
cmp eax, 1
je 0x42d973
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 0x42d952
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x42d91f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x42d94e
xor eax, eax
inc eax
jmp 0x42d992
cmp edi, eax
jae 0x42d956
xor eax, eax
jmp 0x42d992
cmp eax, esi
jae 0x42d95d
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 [0x56f95c]
jmp 0x42d976
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 0x42e312
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x44d698
call fcn.0042f558
mov edi, 0x94
mov eax, edi
call fcn.0042d750
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 [0x56f95c], ecx
mov eax, dword [esi + 4]
mov dword [0x56f968], eax
mov edx, dword [esi + 8]
mov dword [0x56f96c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x56f960], esi
cmp ecx, 2
je 0x42e372
or esi, 0x8000
mov dword [0x56f960], esi
shl eax, 8
add eax, edx
mov dword [0x56f964], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x42e3ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42e3ad
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x42e3c5
cmp eax, 0x20b
je 0x42e3b2
mov dword [ebp - 0x1c], esi
jmp 0x42e3d9
cmp dword [ecx + 0x84], 0xe
jbe 0x42e3ad
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x42e3d3
cmp dword [ecx + 0x74], 0xe
jbe 0x42e3ad
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004318d2
pop ecx
test eax, eax
jne 0x42e3ed
push 0x1c
call fcn.0042e2ee
pop ecx
call fcn.0043070d
test eax, eax
jne 0x42e3fe
push 0x10
call fcn.0042e2ee
pop ecx
call fcn.004317c2
mov dword [ebp - 4], esi
call fcn.0043449f
test eax, eax
jge 0x42e417
push 0x1b
call fcn.0042e2c9
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x571280], eax
call fcn.0043437d
mov dword [0x56f9a8], eax
call fcn.004342db
test eax, eax
jge 0x42e43d
push 8
call fcn.0042e2c9
pop ecx
call fcn.004340a8
test eax, eax
jge 0x42e44e
push 9
call fcn.0042e2c9
pop ecx
push 1
call fcn.0042d51d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x42e464
push eax
call fcn.0042e2c9
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0043404b
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x42e485
movzx eax, word [ebp - 0x40]
jmp 0x42e488
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00439c6e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x42e4a6
push edi
call fcn.0042d64a
call fcn.0042d66c
jmp 0x42e4d8
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0042f593
ret
Function at 0x432461
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 0x43248f
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 0x432496
cmp ebx, dword [eax + 4]
jae 0x432496
xor eax, eax
jmp 0x432686
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4324a7
xor eax, eax
inc eax
jmp 0x432685
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4324bd
cmp ecx, edx
jae 0x432602
cmp dword [eax + 4], 0
je 0x4324c6
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4324ae
cmp dword [ebp + 8], 0
je 0x4324e8
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x432602
cmp eax, esi
jae 0x432602
mov eax, dword [0x56fb38]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x43250d
cmp dword [esi*4 + 0x56fb40], edi
je 0x432606
inc esi
cmp esi, eax
jl 0x4324fb
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x432682
cmp dword [ebp - 8], 0x1000000
jne 0x432682
test byte [ebp - 0xc], 0xcc
je 0x43258b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x432682
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x432682
cmp word [eax + 0x18], 0x10b
jne 0x432682
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x432682
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x43258b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x43258b
test byte [ecx + 0x27], 0x80
jne 0x432602
push 1
push 0x56fb80
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x43249f
mov ecx, dword [0x56fb38]
test ecx, ecx
mov edx, ecx
jle 0x4325bf
lea eax, [ecx*4 + 0x56fb3c]
cmp dword [eax], edi
je 0x4325bf
dec edx
sub eax, 4
test edx, edx
jg 0x4325b3
test edx, edx
jne 0x4325f0
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4325cc
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4325e4
lea eax, [edx*4 + 0x56fb40]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4325d2
cmp ecx, 0x10
jge 0x4325f0
inc ecx
mov dword [0x56fb38], ecx
push 0
push 0x56fb80
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x43249f
xor eax, eax
jmp 0x432685
test esi, esi
jle 0x43249f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x56fb80
call ebx
test eax, eax
jne 0x43249f
cmp dword [esi*4 + 0x56fb40], edi
je 0x43265c
mov eax, dword [0x56fb38]
lea esi, [eax - 1]
test esi, esi
jl 0x43264a
cmp dword [esi*4 + 0x56fb40], edi
je 0x432646
dec esi
jns 0x43263a
test esi, esi
jge 0x43265a
cmp eax, 0x10
jge 0x432655
inc eax
mov dword [0x56fb38], eax
lea esi, [eax - 1]
jmp 0x43265c
je 0x432674
xor ecx, ecx
test esi, esi
jl 0x432674
lea eax, [ecx*4 + 0x56fb40]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x432662
push 0
push 0x56fb80
call ebx
jmp 0x43249f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433d37
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x45b4b0]
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 + 0x45bd90]
je 0x433d6c
inc eax
cmp eax, 0x13
jb 0x433d5d
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x45bd90]
jne 0x433e92
mov eax, dword [0x56f9b0]
cmp eax, 1
je 0x433e6a
cmp eax, edx
jne 0x433d9c
cmp dword [0x45b4f4], 1
je 0x433e6a
cmp ecx, 0xfc
je 0x433e92
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 0x433dd2
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00435430
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0042e880
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x433e06
mov eax, edi
push eax
call fcn.0042e880
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x44d7e0
push edi
call fcn.0042e160
add esp, 0x10
push edi
call fcn.0042e880
push dword [esi + 0x45bd94]
mov ebx, eax
call fcn.0042e880
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0042d750
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00435430
push edi
push ebx
call fcn.00435440
push 0x44a1f0
push ebx
call fcn.00435440
push dword [esi + 0x45bd94]
push ebx
call fcn.00435440
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00435f2a
add esp, 0x2c
jmp 0x433e92
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x45bd94]
push dword [esi]
call fcn.0042e880
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.0042cf11
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret