joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48edd4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a9b30]
jne 0x48edde
repz ret
jmp fcn.00493887

Function at 0x491a11
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a9b30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0048bfb2
and dword [ebp - 0x14], 0
cmp dword [0x4acb0c], 0
mov dword [ebp - 0x18], eax
jne 0x491ac4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x491b6c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x491b6c
mov esi, dword [fcn.00487fe0]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4acb0c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4acb10], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4acb14], eax
call edi
push eax
call esi
mov dword [0x4acb1c], eax
test eax, eax
je 0x491ac4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4acb18], eax
mov eax, dword [0x4acb18]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00487fe4]
cmp eax, ecx
je 0x491b1d
cmp dword [0x4acb1c], ecx
je 0x491b1d
push eax
call esi
push dword [0x4acb1c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x491b1d
test ebx, ebx
je 0x491b1d
call edi
test eax, eax
je 0x491b14
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x491b14
test byte [ebp - 8], 1
jne 0x491b1d
or dword [ebp + 0x10], 0x200000
jmp 0x491b50
mov eax, dword [0x4acb10]
cmp eax, dword [ebp - 0x18]
je 0x491b50
push eax
call esi
test eax, eax
je 0x491b50
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x491b50
mov eax, dword [0x4acb14]
cmp eax, dword [ebp - 0x18]
je 0x491b50
push eax
call esi
test eax, eax
je 0x491b50
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4acb0c]
call esi
test eax, eax
je 0x491b6c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x491b6e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048edd4
leave
ret

Function at 0x431004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x6c077c67
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x4ade6d52
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4013e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4013f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40140d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40142e
cmp esi, eax
jae 0x401407
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401420
cmp esi, eax
jae 0x401407
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403430
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x9b0
mov eax, dword [0x45193c]
push ebx
push 0
push 2
mov dword [esp + 0x9b8], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x88]
push ecx
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x90], 0x128
xor ebx, ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x403486
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x9ac]
call fcn.00423a31
add esp, 0x9b0
ret
xor eax, eax
jmp 0x403490
mov cl, byte [esp + eax + 0xac]
mov byte [esp + eax + 0x1b0], cl
inc eax
test cl, cl
jne 0x403490
push esi
mov esi, dword [esp + 0x9bc]
lea eax, [esp + 0x1b4]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4034d6
test cl, cl
je 0x4034d2
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4034d6
add eax, 2
add esi, 2
test cl, cl
jne 0x4034b2
xor eax, eax
jmp 0x4034db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4034e4
mov ebx, 1
mov ecx, dword [esp + 8]
lea eax, [esp + 0x8c]
push eax
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x403597
mov eax, ebx
shl eax, 6
push ebp
lea edx, [esp + 0xb4]
lea ebp, [esp + eax + 0x1b8]
sub eax, edx
push edi
lea edi, [esp + eax + 0x1bc]
lea esp, [esp]
lea eax, [esp + 0xb8]
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x403527
mov esi, dword [esp + 0x9c4]
mov eax, ebp
lea ebx, [ebx]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x403564
test cl, cl
je 0x403560
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403564
add eax, 2
add esi, 2
test cl, cl
jne 0x403540
xor eax, eax
jmp 0x403569
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40357f
mov eax, dword [esp + 0x9c]
mov dword [esp + ebx*4 + 0x14], eax
inc ebx
add ebp, 0x40
add edi, 0x40
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x94]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x403520
pop edi
pop ebp
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x9b4]
pop esi
mov eax, ebx
pop ebx
call fcn.00423a31
add esp, 0x9b0
ret
Function at 0x40d490
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x45193c]
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 0x40d5b2
lea ecx, [esp + 8]
call fcn.0040d370
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jne 0x40d5b6
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 0x40d560
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.0040d490
mov edi, eax
test edi, edi
jne 0x40d5da
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 0x40d522
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40d579
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 0x40d598
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.00423a31
add esp, 0x118
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x40d5c1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.00423a31
add esp, 0x118
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d5e9
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.00423a31
add esp, 0x118
ret 4
Function at 0x40dac0
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 0x40dad2
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 0x410f50
Capabilities:
Create thread

Disassembly:
mov ecx, dword [0x4508e0]
mov eax, 0xa61fcc17
imul ecx
push ebx
mov ebx, dword [0x4508ec]
add edx, ecx
imul ebx, ebx, 0x185
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
push ebp
push esi
mov esi, dword [0x4508d0]
mov edx, ebx
sub edx, eax
mov eax, dword [esp + 0x10]
push edi
mov edi, dword [0x4508d4]
sub edx, esi
cmp eax, 0x132b600
lea ebp, [edx + edi + 0xd7]
mov dword [str._r_____r_____n], ebp
je 0x410fc1
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x64
mov edi, edi
push 0x3e8
call edi
dec esi
jne 0x410fb0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov edx, dword [0x4508e8]
mov eax, 0x49e28fbb
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0x73d0e82d
imul ecx
sub edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, esi
mov esi, dword [0x4508e4]
mov edx, esi
imul edx, edx, 0x315
sub eax, edx
mov edx, dword [0x4508cc]
add eax, ebp
lea eax, [edx + eax - 0x30e]
mov dword [0x4508cc], eax
mov eax, dword [0x462c5c]
mov edx, eax
inc eax
test edx, edx
mov dword [0x462c5c], eax
jle 0x41105d
mov eax, 0x97012e03
imul esi, esi, 0x1a8
imul edi
add edx, edi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add esi, edx
mov edx, dword [0x4508d8]
add eax, esi
sub eax, ebx
pop edi
sub eax, edx
pop esi
add eax, 0x4f2
pop ebp
mov dword [0x4508d0], eax
mov eax, 1
pop ebx
ret
mov eax, 0x197b05f9
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x21d814d3
imul edi
sub edx, edi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, ecx
mov ecx, dword [0x4508ec]
sub eax, esi
lea edx, [eax + ecx - 0x30e]
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x410b20
push 0
push 0
mov dword [0x462970], 0
mov dword [0x4508d4], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x4508e0]
mov esi, dword [0x4508dc]
mov eax, 0x60f25deb
imul esi, esi, 0x377
imul ecx
mov eax, dword [0x4508e8]
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x4508d0]
imul edx, edx, 0x1a8
sub esi, ecx
add esi, eax
pop edi
lea eax, [edx + esi - 0x15c]
pop esi
pop ebp
mov dword [0x4508d8], eax
mov eax, 1
pop ebx
ret
Function at 0x4141b0
Capabilities:
Create thread

Disassembly:
mov ecx, dword [0x4508d8]
mov eax, 0x68fed1fd
imul ecx
push esi
mov esi, dword [0x4508ec]
sub edx, ecx
imul esi, esi, 0x30f
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
push edi
mov edi, eax
sub edi, esi
mov esi, dword [0x4508dc]
mov eax, 0xa8791709
imul esi
add edx, esi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edi, edx
lea edx, [eax + edi + 0x456]
cmp dword [esp + 0xc], 0x132b600
mov dword [0x4508dc], edx
je 0x414225
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x64
push 0x3e8
call edi
dec esi
jne 0x414216
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [0x4508d0]
imul ecx, ecx, 0x30f
mov esi, edx
mov eax, 0xb61d7045
imul esi, esi, 0x3a7
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4508d4]
imul edx, edx, 0x315
sub eax, esi
add eax, edx
add eax, ecx
mov dword [0x4508e0], eax
mov eax, dword [0x462964]
test eax, eax
jne 0x4142d5
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x413070
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x4508e0]
mov esi, dword [0x4508dc]
mov dword [0x462958], eax
imul esi, esi, 0x377
mov eax, 0x60f25deb
imul ecx
mov eax, dword [0x4508e8]
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x4508d0]
imul edx, edx, 0x1a8
sub esi, ecx
add esi, eax
lea eax, [edx + esi - 0x15c]
mov dword [0x462964], 1
mov dword [0x4508d8], eax
pop edi
mov eax, 1
pop esi
ret
Function at 0x416740
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x43e8b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x4508e0]
mov eax, 0xa61fcc17
imul ecx
add edx, ecx
mov ecx, dword [0x4508ec]
imul ecx, ecx, 0x185
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4508d0]
sub ecx, eax
sub ecx, edx
mov edx, dword [0x4508d4]
lea eax, [ecx + edx + 0xd7]
mov edx, dword [0x46634c]
push esi
mov ecx, 0x46634c
mov dword [str._r_____r_____n], eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 4], eax
mov ecx, dword [0x4508e0]
mov eax, 0x197b05f9
imul ecx
mov ecx, dword [0x4508d4]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0x21d814d3
imul ecx
sub edx, ecx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x4508ec]
sub ecx, esi
sub ecx, dword [0x4508e4]
lea eax, [ecx + edx - 0x30e]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
mov dword [0x4508d4], eax
call fcn.004164b0
mov ecx, dword [0x4508d0]
mov eax, 0xb61d7045
imul ecx
sar edx, 8
mov eax, edx
mov esi, ecx
mov ecx, dword [0x4508d8]
imul esi, esi, 0x3a7
shr eax, 0x1f
imul ecx, ecx, 0x30f
add eax, edx
mov edx, dword [0x4508d4]
imul edx, edx, 0x315
sub eax, esi
mov esi, dword [esp + 4]
add eax, ecx
add eax, edx
push esi
mov dword [0x4508e0], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x10], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
jg 0x416884
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 0x41abe8
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 0x41ac3b
call fcn.0043b7a2
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x41ac3b
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x41ac31
xor eax, eax
jmp 0x41ad54
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 0x41ac6b
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 0x41ac6b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x41ad51
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x41ac98
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0041b38c
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x41ad51
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41ace1
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x41ace1
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x41acdb
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0041b38c
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x41ad41
and dword [ebp + 0xc], 0
jmp 0x41ad41
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x41ad41
push 0xc
call fcn.004356a4
mov esi, eax
test esi, esi
pop ecx
je 0x41ad23
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 0x41ad25
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x41ad3c
push dword [ebp - 8]
call fcn.004310f7
jmp 0x41ad41
call fcn.004310ce
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x41aca6
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x424011
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4444f8
call fcn.00426048
push 8
call fcn.004278e0
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x465e3c], esi
jne 0x424045
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x465e38], esi
mov al, byte [ebp + 0x10]
mov byte [0x465e34], al
cmp dword [ebp + 0xc], edi
jne 0x42408f
cmp dword [0x46772c], edi
je 0x42407f
mov eax, dword [0x467728]
sub eax, 4
mov dword [0x467728], eax
cmp eax, dword [0x46772c]
jb 0x42407f
mov eax, dword [eax]
cmp eax, edi
je 0x424060
call eax
jmp 0x424060
push 0x44d0cc
mov eax, 0x44d0c4
call fcn.00423f8f
pop ecx
push 0x44d0d8
mov eax, 0x44d0d0
call fcn.00423f8f
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4240c0
cmp dword [ebp + 0x10], edi
jne 0x4240ce
mov dword [0x465e3c], esi
push dword [ebp + 8]
call fcn.00423f4d
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4240cd
push 8
call fcn.0042782b
pop ecx
ret
call fcn.00426083
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x424134
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004261dc
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x424157
test byte [esp + 8], 2
je 0x424157
call fcn.004261ca
mov dword [eax], 0xd
call fcn.004261d3
mov dword [eax], 5
jmp 0x424130
xor eax, eax
ret

Function at 0x4243e7
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.00424280
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x424482
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 [0x465dfc]
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 0x424482
cmp eax, 1
je 0x4244a3
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 0x424482
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x42444f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x42447e
xor eax, eax
inc eax
jmp 0x4244c2
cmp edi, eax
jae 0x424486
xor eax, eax
jmp 0x4244c2
cmp eax, esi
jae 0x42448d
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 [0x465dfc]
jmp 0x4244a6
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 0x42463a
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x444528
call fcn.00426048
mov edi, 0x94
mov eax, edi
call fcn.00424280
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 [0x465dfc], ecx
mov eax, dword [esi + 4]
mov dword [0x465e08], eax
mov edx, dword [esi + 8]
mov dword [0x465e0c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x465e00], esi
cmp ecx, 2
je 0x42469a
or esi, 0x8000
mov dword [0x465e00], esi
shl eax, 8
add eax, edx
mov dword [0x465e04], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4246d5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4246d5
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4246ed
cmp eax, 0x20b
je 0x4246da
mov dword [ebp - 0x1c], esi
jmp 0x424701
cmp dword [ecx + 0x84], 0xe
jbe 0x4246d5
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4246fb
cmp dword [ecx + 0x74], 0xe
jbe 0x4246d5
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004283c2
pop ecx
test eax, eax
jne 0x424715
push 0x1c
call fcn.00424616
pop ecx
call fcn.004271fd
test eax, eax
jne 0x424726
push 0x10
call fcn.00424616
pop ecx
call fcn.00427911
mov dword [ebp - 4], esi
call fcn.004298e2
test eax, eax
jge 0x42473f
push 0x1b
call fcn.004245f1
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x467720], eax
call fcn.004297c0
mov dword [0x465e40], eax
call fcn.0042971e
test eax, eax
jge 0x424765
push 8
call fcn.004245f1
pop ecx
call fcn.004294eb
test eax, eax
jge 0x424776
push 9
call fcn.004245f1
pop ecx
push 1
call fcn.00423fa7
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x42478c
push eax
call fcn.004245f1
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0042948e
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4247ad
movzx eax, word [ebp - 0x40]
jmp 0x4247b0
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004307ae
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4247ce
push edi
call fcn.004240d4
call fcn.004240f6
jmp 0x424800
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00426083
ret