joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406e30
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [0x454e08]
mov eax, 0x9c9a6c87
imul edi
mov esi, dword [0x454e14]
mov ecx, dword [0x454dfc]
imul esi, esi, 0xfb02
add edx, edi
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x454df8]
imul edx, edx, 0xcd41
sub edx, eax
mov eax, ecx
imul eax, eax, 0x10088
add edx, esi
lea ebx, [eax + edx + 0x139e4]
mov eax, dword [section.HookData]
test eax, eax
mov dword [str._r_____r_____n], ebx
jne 0x406efd
mov eax, dword [0x567170]
test eax, eax
jne 0x406efd
mov ecx, dword [0x454df4]
mov esi, dword [0x454e0c]
mov eax, 0x93140835
imul esi, esi, 0x689f
imul ecx
add edx, ecx
sar edx, 0xf
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x30780947
imul edi
sar edx, 0xe
mov ebp, ecx
mov ecx, dword [0x454e10]
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebp, esi
sub ebp, eax
mov eax, 0x3d4263a3
imul ecx
sar edx, 0xd
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub ebp, ecx
pop edi
add ebp, ebx
pop esi
mov dword [0x454df4], ebp
pop ebp
mov eax, 1
pop ebx
ret
mov ebx, dword [0x454e0c]
mov eax, 0x68649efd
imul ecx
sar edx, 0xf
mov ebp, ebx
mov eax, edx
imul ebp, ebp, 0xcd41
add ebp, edx
mov edx, dword [0x454e00]
shr eax, 0x1f
imul edx, edx, 0x8bf0
add eax, ebp
sub eax, edx
sub eax, esi
add eax, 0x64b7
mov dword [0x454df8], eax
mov eax, 0xa2ad5745
imul ecx
add edx, ecx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
mov eax, 0xc2bd9c5d
imul ebx
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0x7fbc240d
imul dword [0x454e14]
sub esi, ecx
sar edx, 0xf
mov ecx, edx
add esi, edx
mov eax, 0x7fbc240d
imul edi
sar edx, 0xf
shr ecx, 0x1f
mov eax, edx
add ecx, esi
shr eax, 0x1f
add eax, edx
sub ecx, eax
sub ecx, 0xdecb
mov dword [0x454dfc], ecx
mov ecx, dword [section.HookData]
push ecx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov esi, dword [0x454e04]
mov ecx, eax
xor edi, edi
cmp ecx, edi
je 0x407006
mov ebx, dword [0x454e10]
mov edx, dword [0x454df8]
imul ebx, ebx, 0xdecb
imul edx, edx, 0xcd41
add ebx, edx
mov edx, dword [0x454e08]
mov eax, 0x7514b1e9
imul edx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
mov edx, esi
imul edx, edx, 0x85ba
lea eax, [ebx + edx + 0x139e4]
mov dword [0x454e00], eax
mov dword [section.HookData], edi
mov dword [0x567170], edi
mov eax, 0x20a2ed5d
imul esi
mov esi, dword [0x454e14]
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, esi
imul edx, edx, 0xdecb
mov edi, eax
sub edi, edx
mov eax, 0x68649efd
imul dword [0x454e00]
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, 0x68649efd
imul esi
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add edi, edx
lea edx, [eax + edi + 0x8bf0]
pop edi
pop esi
pop ebp
mov dword [0x454e04], edx
mov eax, ecx
pop ebx
ret
Function at 0x40f310
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x455e64]
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 0x40f432
lea ecx, [esp + 8]
call fcn.0040f1f0
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jne 0x40f436
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 0x40f3e0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.0040f310
mov edi, eax
test edi, edi
jne 0x40f45a
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 0x40f3a2
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40f3f9
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 0x40f418
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.00427501
add esp, 0x118
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x40f441
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.00427501
add esp, 0x118
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40f469
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.00427501
add esp, 0x118
ret 4
Function at 0x40f940
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 0x40f952
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 0x413010
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, dword [0x454e08]
mov eax, 0x9c9a6c87
imul esi
mov ecx, dword [0x454e14]
add edx, esi
imul ecx, ecx, 0xfb02
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x454df8]
imul edx, edx, 0xcd41
sub edx, eax
push edi
mov edi, dword [0x454dfc]
mov eax, edi
imul eax, eax, 0x10088
add edx, ecx
mov dword [esp + 8], ecx
lea ecx, [eax + edx + 0x139e4]
cmp dword [esp + 0x10], 0x132b600
mov dword [str._r_____r_____n], ecx
je 0x413090
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x64
lea esp, [esp]
push 0x3e8
call edi
dec esi
jne 0x413080
pop edi
xor eax, eax
pop esi
pop ecx
ret
push ebx
mov ebx, dword [0x454df4]
mov ecx, dword [0x454e0c]
mov eax, 0x93140835
imul ebx
add edx, ebx
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebx, eax
mov eax, 0x30780947
imul esi
push ebp
mov ebp, ecx
imul ebp, ebp, 0x689f
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x454e10]
sub ebx, ebp
sub ebx, eax
mov ebp, dword [str._r_____r_____n]
mov eax, 0x3d4263a3
imul edx
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ebx, eax
mov eax, dword [0x56748c]
add ebx, ebp
mov edx, eax
inc eax
test edx, edx
pop ebp
mov dword [0x454df4], ebx
mov dword [0x56748c], eax
pop ebx
jle 0x41314a
mov eax, 0x68649efd
imul ecx, ecx, 0xcd41
imul edi
sar edx, 0xf
add ecx, edx
mov eax, edx
mov edx, dword [esp + 8]
shr eax, 0x1f
add eax, ecx
mov ecx, dword [0x454e00]
imul ecx, ecx, 0x8bf0
sub eax, ecx
sub eax, edx
add eax, 0x64b7
pop edi
mov dword [0x454df8], eax
mov eax, 1
pop esi
pop ecx
ret
mov eax, 0xa2ad5745
imul edi
add edx, edi
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
mov eax, 0xc2bd9c5d
imul ecx
sar edx, 0xd
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x7fbc240d
imul dword [0x454e14]
sub ecx, edi
sar edx, 0xf
add ecx, edx
mov edi, edx
mov eax, 0x7fbc240d
imul esi
shr edi, 0x1f
add edi, ecx
sar edx, 0xf
lea ecx, [esp + 0x10]
push ecx
push 0
mov eax, edx
push 0
shr eax, 0x1f
add eax, edx
push 0x412b50
sub edi, eax
push 0
sub edi, 0xdecb
push 0
mov dword [0x567198], 0
mov dword [0x454dfc], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [0x454e10]
mov edx, dword [0x454df8]
imul esi, esi, 0xdecb
mov ecx, dword [0x454e08]
imul edx, edx, 0xcd41
add esi, edx
mov eax, 0x7514b1e9
imul ecx
mov ecx, dword [0x454e04]
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
imul ecx, ecx, 0x85ba
lea edx, [esi + ecx + 0x139e4]
pop edi
mov dword [0x454e00], edx
mov eax, 1
pop esi
pop ecx
ret
Function at 0x417520
Capabilities:
Create thread

Disassembly:
mov ecx, dword [0x454e04]
mov eax, 0x20a2ed5d
imul ecx
mov ecx, dword [0x454e14]
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
imul edx, edx, 0xdecb
push esi
mov esi, dword [0x454e00]
push edi
mov edi, eax
sub edi, edx
mov eax, 0x68649efd
imul esi
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, 0x68649efd
imul ecx
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add edi, edx
lea edx, [eax + edi + 0x8bf0]
cmp dword [esp + 0xc], 0x132b600
mov dword [0x454e04], edx
je 0x4175ef
mov esi, dword [0x454e08]
imul ecx, ecx, 0xfb02
mov eax, 0x9c9a6c87
imul esi
add edx, esi
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x454df8]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
imul edx, edx, 0xcd41
sub ecx, eax
mov eax, dword [0x454dfc]
add ecx, edx
imul eax, eax, 0x10088
lea ecx, [ecx + eax + 0x139e4]
mov dword [str._r_____r_____n], ecx
mov esi, 0x64
mov edi, edi
push 0x3e8
call edi
dec esi
jne 0x4175e0
pop edi
xor eax, eax
pop esi
ret
mov ecx, dword [0x454dfc]
imul esi, esi, 0xdecc
imul ecx, ecx, 0x689f
add ecx, esi
mov esi, dword [0x454df8]
mov edx, esi
imul edx, edx, 0x15208
sub ecx, edx
mov eax, 0x3d4263a3
imul esi
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, dword [0x56718c]
test eax, eax
mov dword [0x454e08], ecx
jne 0x4176e7
mov edx, dword [0x454df4]
imul ecx, ecx, 0x139e4
imul edx, edx, 0x8bf0
add ecx, edx
mov edx, dword [0x454e10]
mov eax, 0x7fbc240d
imul edx
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
sub ecx, esi
add ecx, 0xd145
mov dword [0x454e10], ecx
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0x416140
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [0x454e10]
mov edx, dword [0x454df8]
imul esi, esi, 0xdecb
mov ecx, dword [0x454e08]
imul edx, edx, 0xcd41
mov dword [0x56717c], eax
add esi, edx
mov eax, 0x7514b1e9
imul ecx
mov ecx, dword [0x454e04]
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
imul ecx, ecx, 0x85ba
lea edx, [esi + ecx + 0x139e4]
mov dword [0x56718c], 1
mov dword [0x454e00], edx
pop edi
mov eax, 1
pop esi
ret
Function at 0x419e00
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x442388
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x454e08]
mov eax, 0x9c9a6c87
imul ecx
add edx, ecx
mov ecx, dword [0x454df8]
sar edx, 0xe
imul ecx, ecx, 0xcd41
push esi
mov esi, dword [0x454e14]
mov eax, edx
imul esi, esi, 0xfb02
shr eax, 0x1f
add eax, edx
mov edx, dword [0x454dfc]
imul edx, edx, 0x10088
sub esi, eax
add esi, ecx
lea eax, [esi + edx + 0x139e4]
mov edx, dword [0x56ab74]
push edi
mov ecx, 0x56ab74
mov dword [str._r_____r_____n], eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov ecx, dword [0x454dfc]
mov eax, 0xa2ad5745
imul ecx
add edx, ecx
mov ecx, dword [0x454e0c]
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0xc2bd9c5d
imul ecx
sar edx, 0xd
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edi, ecx
mov ecx, dword [0x454e14]
mov eax, 0x7fbc240d
imul ecx
mov ecx, dword [0x454e08]
sub edi, esi
sar edx, 0xf
mov esi, edx
add edi, edx
mov eax, 0x7fbc240d
imul ecx
sar edx, 0xf
mov eax, edx
shr esi, 0x1f
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x1c]
add esi, edi
lea ecx, [esp + 0x20]
sub esi, eax
push ecx
sub esi, 0xdecb
push edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
mov dword [0x454dfc], esi
call fcn.00419b70
mov ecx, dword [0x454df8]
mov esi, dword [0x454dfc]
mov eax, dword [0x454e00]
imul esi, esi, 0x689f
imul eax, eax, 0xdecc
mov edx, ecx
imul edx, edx, 0x15208
add esi, eax
sub esi, edx
mov eax, 0x3d4263a3
imul ecx
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov dword [0x454e08], 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 0x419f7a
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 0x41e6cc
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 0x41e71f
call fcn.0043f272
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x41e71f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x41e715
xor eax, eax
jmp 0x41e838
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 0x41e74f
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 0x41e74f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x41e835
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x41e77c
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0041d941
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x41e835
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41e7c5
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x41e7c5
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x41e7bf
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0041d941
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x41e825
and dword [ebp + 0xc], 0
jmp 0x41e825
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x41e825
push 0xc
call fcn.00439174
mov esi, eax
test esi, esi
pop ecx
je 0x41e807
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 0x41e809
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x41e820
push dword [ebp - 8]
call fcn.00434bc7
jmp 0x41e825
call fcn.00434b9e
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x41e78a
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x427a3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00429cec
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x427a60
test byte [esp + 8], 2
je 0x427a60
call fcn.00429cda
mov dword [eax], 0xd
call fcn.00429ce3
mov dword [eax], 5
jmp 0x427a39
xor eax, eax
ret
Function at 0x427b27
Capabilities:
Terminate process

Disassembly:
push 8
push 0x448538
call fcn.00429b58
push 8
call fcn.0042b3f0
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x56a664], esi
jne 0x427b5b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x56a660], esi
mov al, byte [ebp + 0x10]
mov byte [0x56a65c], al
cmp dword [ebp + 0xc], edi
jne 0x427ba5
cmp dword [0x56bf4c], edi
je 0x427b95
mov eax, dword [0x56bf48]
sub eax, 4
mov dword [0x56bf48], eax
cmp eax, dword [0x56bf4c]
jb 0x427b95
mov eax, dword [eax]
cmp eax, edi
je 0x427b76
call eax
jmp 0x427b76
push 0x4510d0
mov eax, 0x4510c8
call fcn.00427aa5
pop ecx
push 0x4510dc
mov eax, 0x4510d4
call fcn.00427aa5
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x427bd6
cmp dword [ebp + 0x10], edi
jne 0x427be4
mov dword [0x56a664], esi
push dword [ebp + 8]
call fcn.00427a63
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x427be3
push 8
call fcn.0042b33b
pop ecx
ret
call fcn.00429b93
ret

Function at 0x427eb7
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.00427d50
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x427f52
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 [0x56a624]
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 0x427f52
cmp eax, 1
je 0x427f73
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 0x427f52
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x427f1f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x427f4e
xor eax, eax
inc eax
jmp 0x427f92
cmp edi, eax
jae 0x427f56
xor eax, eax
jmp 0x427f92
cmp eax, esi
jae 0x427f5d
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 [0x56a624]
jmp 0x427f76
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 0x42810a
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x448568
call fcn.00429b58
mov edi, 0x94
mov eax, edi
call fcn.00427d50
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 [0x56a624], ecx
mov eax, dword [esi + 4]
mov dword [0x56a630], eax
mov edx, dword [esi + 8]
mov dword [0x56a634], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x56a628], esi
cmp ecx, 2
je 0x42816a
or esi, 0x8000
mov dword [0x56a628], esi
shl eax, 8
add eax, edx
mov dword [0x56a62c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4281a5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4281a5
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4281bd
cmp eax, 0x20b
je 0x4281aa
mov dword [ebp - 0x1c], esi
jmp 0x4281d1
cmp dword [ecx + 0x84], 0xe
jbe 0x4281a5
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4281cb
cmp dword [ecx + 0x74], 0xe
jbe 0x4281a5
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0042bed2
pop ecx
test eax, eax
jne 0x4281e5
push 0x1c
call fcn.004280e6
pop ecx
call fcn.0042ad0d
test eax, eax
jne 0x4281f6
push 0x10
call fcn.004280e6
pop ecx
call fcn.0042b421
mov dword [ebp - 4], esi
call fcn.0042d3f2
test eax, eax
jge 0x42820f
push 0x1b
call fcn.004280c1
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x56bf40], eax
call fcn.0042d2d0
mov dword [0x56a668], eax
call fcn.0042d22e
test eax, eax
jge 0x428235
push 8
call fcn.004280c1
pop ecx
call fcn.0042cffb
test eax, eax
jge 0x428246
push 9
call fcn.004280c1
pop ecx
push 1
call fcn.00427abd
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x42825c
push eax
call fcn.004280c1
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0042cf9e
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x42827d
movzx eax, word [ebp - 0x40]
jmp 0x428280
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0043427e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x42829e
push edi
call fcn.00427bea
call fcn.00427c0c
jmp 0x4282d0
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00429b93
ret
Function at 0x42ca61
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 0x42ca8f
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 0x42ca96
cmp ebx, dword [eax + 4]
jae 0x42ca96
xor eax, eax
jmp 0x42cc86
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x42caa7
xor eax, eax
inc eax
jmp 0x42cc85
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x42cabd
cmp ecx, edx
jae 0x42cc02
cmp dword [eax + 4], 0
je 0x42cac6
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x42caae
cmp dword [ebp + 8], 0
je 0x42cae8
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x42cc02
cmp eax, esi
jae 0x42cc02
mov eax, dword [0x56a800]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x42cb0d
cmp dword [esi*4 + 0x56a808], edi
je 0x42cc06
inc esi
cmp esi, eax
jl 0x42cafb
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42cc82
cmp dword [ebp - 8], 0x1000000
jne 0x42cc82
test byte [ebp - 0xc], 0xcc
je 0x42cb8b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x42cc82
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42cc82
cmp word [eax + 0x18], 0x10b
jne 0x42cc82
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x42cc82
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x42cb8b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x42cb8b
test byte [ecx + 0x27], 0x80
jne 0x42cc02
push 1
push 0x56a848
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x42ca9f
mov ecx, dword [0x56a800]
test ecx, ecx
mov edx, ecx
jle 0x42cbbf
lea eax, [ecx*4 + 0x56a804]
cmp dword [eax], edi
je 0x42cbbf
dec edx
sub eax, 4
test edx, edx
jg 0x42cbb3
test edx, edx
jne 0x42cbf0
push 0xf
pop ebx
cmp ecx, ebx
jg 0x42cbcc
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x42cbe4
lea eax, [edx*4 + 0x56a808]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x42cbd2
cmp ecx, 0x10
jge 0x42cbf0
inc ecx
mov dword [0x56a800], ecx
push 0
push 0x56a848
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x42ca9f
xor eax, eax
jmp 0x42cc85
test esi, esi
jle 0x42ca9f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x56a848
call ebx
test eax, eax
jne 0x42ca9f
cmp dword [esi*4 + 0x56a808], edi
je 0x42cc5c
mov eax, dword [0x56a800]
lea esi, [eax - 1]
test esi, esi
jl 0x42cc4a
cmp dword [esi*4 + 0x56a808], edi
je 0x42cc46
dec esi
jns 0x42cc3a
test esi, esi
jge 0x42cc5a
cmp eax, 0x10
jge 0x42cc55
inc eax
mov dword [0x56a800], eax
lea esi, [eax - 1]
jmp 0x42cc5c
je 0x42cc74
xor ecx, ecx
test esi, esi
jl 0x42cc74
lea eax, [ecx*4 + 0x56a808]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x42cc62
push 0
push 0x56a848
call ebx
jmp 0x42ca9f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret