joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a618
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x44198e
call fcn.0041e7e0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0043ddec
xor ebx, ebx
lea ecx, [esi + 0x24]
mov dword [ebp - 4], ebx
mov dword [esi], method.CCommandLineInfo.virtual_0
call fcn.004014e3
lea ecx, [esi + 0x28]
call fcn.004014e3
lea edi, [esi + 0x2c]
mov ecx, edi
call fcn.004014e3
lea ecx, [esi + 0x30]
call fcn.004014e3
lea ecx, [esi + 0x34]
call fcn.004014e3
lea ecx, [esi + 0x38]
call fcn.004014e3
lea ecx, [esi + 0x3c]
call fcn.004014e3
lea ecx, [esi + 0x40]
call fcn.004014e3
lea ecx, [esi + 0x44]
call fcn.004014e3
lea ecx, [esi + 0x48]
call fcn.004014e3
lea ecx, [esi + 0x4c]
call fcn.004014e3
lea ecx, [esi + 0x50]
call fcn.004014e3
lea ecx, [esi + 0x54]
call fcn.004014e3
lea ecx, [esi + 0x58]
call fcn.004014e3
lea ecx, [esi + 0x5c]
call fcn.004014e3
lea ecx, [esi + 0x60]
call fcn.004014e3
lea ecx, [esi + 0x64]
call fcn.004014e3
push 0x44381a
mov ecx, edi
mov byte [ebp - 4], 0x11
call fcn.00401e0c
mov edi, str.Customer_Error_Report
push edi
lea ecx, [esi + 0x30]
call fcn.00401e0c
push edi
lea ecx, [esi + 0x34]
call fcn.00401e0c
push 0x444ed8
lea ecx, [esi + 0x3c]
call fcn.00401e0c
mov byte [esi + 0x70], 1
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov byte [esi + 0x71], 1
mov byte [esi + 0x72], bl
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x73], bl
mov dword [esi + 0x78], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40cfd3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x459790]
push esi
mov dword [ebp + 0x8c], eax
lea eax, [ebp - 0x7c]
push eax
push 1
push 0
push dword [ebp + 0x9c]
push dword [ebp + 0x98]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40d03f
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0xa0]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x8c]
mov eax, esi
pop esi
call fcn.0041f181
add ebp, 0x90
leave
ret

Function at 0x40d055
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x40d0b5
cmp dword [ebp + 0x10], esi
je 0x40d0b5
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40d0b5
push edi
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, esi
sete al
pop edi
jmp 0x40d0b7
xor eax, eax
pop esi
leave
ret
Function at 0x40d251
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1e4]
sub esp, 0x264
mov eax, dword [0x459790]
mov ecx, dword [ebp + 0x1ec]
push ebx
push esi
push edi
mov dword [ebp + 0x1e0], eax
call fcn.00401bed
push 5
xor ebx, ebx
push ebx
push ebx
push eax
push str.open
push ebx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x40d369
lea eax, [ebp - 0x28]
push eax
push str..htm
mov edi, SysReAllocString
push edi
call fcn.0040cfd3
add esp, 0xc
test eax, eax
jne 0x40d365
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._shellopencommand
lea eax, [ebp - 0x28]
push eax
call esi
lea eax, [ebp - 0x28]
push eax
push eax
push edi
call fcn.0040cfd3
add esp, 0xc
test eax, eax
jne 0x40d365
lea eax, [ebp - 0x28]
push str.__1_
push eax
call fcn.0041f03d
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
jne 0x40d319
lea eax, [ebp - 0x28]
push 0x445888
push eax
call fcn.0041f03d
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
jne 0x40d319
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [ebp + eax - 0x29]
jmp 0x40d31b
mov byte [edi], bl
push 0x444524
push edi
call esi
push dword [ebp - 0x2c]
push edi
call esi
push 0x44
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.0041f0f0
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
push ebx
mov word [ebp - 0x50], 5
mov dword [ebp - 0x54], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
setne al
jmp 0x40d36b
xor al, al
jmp 0x40d36b
mov al, 1
mov ecx, dword [ebp + 0x1e0]
pop edi
pop esi
pop ebx
call fcn.0041f181
add ebp, 0x1e4
leave
ret
Function at 0x40dee4
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x441e73
call fcn.0041e7e0
push ecx
push ecx
push edi
xor edi, edi
mov dword [ebp - 0x14], edi
cmp dword [ebp + 0x18], edi
jne 0x40df0d
mov ecx, dword [ebp + 8]
push 0x44381a
call fcn.0040200e
jmp 0x40dfb0
push ebx
push esi
push 0x20019
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040dd88
mov ebx, eax
add esp, 0xc
cmp ebx, edi
je 0x40dfa3
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp + 0x14]
push ebx
call esi
cmp eax, edi
jne 0x40df9c
call fcn.0043776a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0x18], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], edi
call fcn.0040151f
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp + 0x14]
push ebx
call esi
push 0xffffffffffffffff
lea ecx, [ebp + 0x18]
call fcn.004029c4
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x18]
push eax
call fcn.00401501
mov ecx, dword [ebp + 0x18]
add ecx, 0xfffffff0
call fcn.00401139
jmp 0x40dfae
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
call fcn.0040200e
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x40dfc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0x20019
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040dd88
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40e00f
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp - 4], 4
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e008
mov eax, dword [ebp - 8]
jmp 0x40e012
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
pop esi
leave
ret
Function at 0x40e015
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
mov eax, 0x441ea5
call fcn.0041e7e0
sub esp, 0x2c
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jne 0x40e031
xor eax, eax
jmp 0x40e1e0
push esi
push edi
call fcn.0043776a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], ebx
call fcn.0043776a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
cmp dword [ebp + 0x10], ebx
mov byte [ebp - 4], 1
jne 0x40e135
lea ecx, [ebp - 0x38]
call fcn.00431e6e
mov ebx, 0x444ed4
push ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0040200e
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0040200e
push 0xb
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 4
call fcn.0040d922
mov ecx, dword [ebp - 0x18]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.00401139
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.00401139
mov eax, dword [ebp - 0x30]
cmp eax, 2
lea ecx, [ebp - 0x38]
jge 0x40e0dd
mov byte [ebp - 4], 1
call fcn.00431ec0
jmp 0x40e165
dec eax
push eax
call fcn.00404606
push eax
lea ecx, [ebp - 0x20]
call fcn.00401703
mov eax, dword [ebp - 0x30]
xor esi, esi
dec eax
test eax, eax
jle 0x40e122
test esi, esi
jle 0x40e104
push ebx
lea ecx, [ebp - 0x10]
call fcn.00401f1f
push esi
lea ecx, [ebp - 0x38]
call fcn.00404606
push eax
lea ecx, [ebp - 0x10]
call fcn.004017e4
mov eax, dword [ebp - 0x30]
inc esi
dec eax
cmp esi, eax
jl 0x40e0f7
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00431ec0
mov esi, dword [ebp - 0x20]
xor ebx, ebx
jmp 0x40e143
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00401e0c
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push edi
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40e179
lea ecx, [edi - 0x10]
call fcn.00401139
lea ecx, [esi - 0x10]
call fcn.00401139
xor eax, eax
jmp 0x40e1de
cmp dword [ebp + 0x10], ebx
jne 0x40e18a
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x40e1ba
cmp dword [ebp + 0x14], ebx
jne 0x40e19d
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40e1ba
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x14]
push 1
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x14]
mov dword [ebp + 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [edi - 0x10]
call fcn.00401139
lea ecx, [esi - 0x10]
call fcn.00401139
xor eax, eax
cmp dword [ebp + 0xc], ebx
sete al
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4122fc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x24]
mov dword [ebp - 0xc], edi
jmp 0x41230f
mov edi, dword [ebp - 0xc]
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x6c]
sub eax, ecx
sub eax, edx
mov dword [ebp - 8], eax
jne 0x41232e
test ecx, ecx
jne 0x41233c
test edx, edx
jne 0x41233c
mov dword [ebp - 8], edi
jmp 0x4123a6
cmp eax, 0xffffffff
jne 0x41233c
mov dword [ebp - 8], 0xfffffffe
jmp 0x4123a6
mov eax, dword [esi + 0x24]
lea eax, [edi + eax - 0x106]
cmp ecx, eax
jb 0x4123a6
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.0041e9c0
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov ebx, edx
sub ebx, edi
cmp edx, edi
sbb edx, edx
not edx
and edx, ebx
dec ecx
mov word [eax], dx
jne 0x41236d
mov eax, dword [esi + 0x38]
mov edx, edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov ebx, ecx
sub ebx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, ebx
dec edx
mov word [eax], cx
jne 0x41238c
add dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x41244c
mov ebx, dword [esi + 0x6c]
add ebx, dword [esi + 0x64]
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 8]
add ebx, dword [esi + 0x30]
cmp eax, ecx
mov dword [ebp - 4], eax
jbe 0x4123cb
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x4123d5
xor eax, eax
jmp 0x41240d
sub eax, dword [ebp - 4]
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x18], 0
jne 0x4123f7
push dword [ebp - 4]
push dword [edi]
push dword [edi + 0x30]
call fcn.0041309b
add esp, 0xc
mov dword [edi + 0x30], eax
push dword [ebp - 4]
push dword [edi]
push ebx
call fcn.0041e9c0
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x6c], eax
mov edi, dword [esi + 0x6c]
cmp edi, 3
jb 0x412438
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp edi, 0x106
jae 0x41244c
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x41230c
pop edi
pop ebx
leave
ret

Function at 0x412e2e
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push dword [esp + 4]
mov edx, dword [esp + 0xc]
push dword [edx]
call fcn.00412e11
mov dword [edx], eax
and eax, 0xff
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
push eax
push dword [edx + 8]
call fcn.00412e11
add esp, 0x10
mov dword [edx + 8], eax
ret
Function at 0x412f6e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x412f79
xor eax, eax
ret
mov eax, dword [esp + 0xc]
cmp eax, 8
push ebx
push esi
mov esi, dword [esp + 0xc]
not esi
mov ecx, 0xff
jb 0x41303c
push edi
mov edi, eax
shr edi, 3
xor ebx, ebx
mov bl, byte [edx]
sub eax, 8
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4470a0]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4470a0]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4470a0]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4470a0]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4470a0]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4470a0]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4470a0]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4470a0]
inc edx
dec edi
jne 0x412f99
pop edi
test eax, eax
je 0x413056
xor ebx, ebx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4470a0]
inc edx
dec eax
jne 0x413040
mov eax, esi
pop esi
not eax
pop ebx
ret
Function at 0x415f84
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 0x415fd7
call fcn.0043d3ed
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x415fd7
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x415fcd
xor eax, eax
jmp 0x4160f0
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 0x416007
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 0x416007
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4160ed
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x416034
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00416c9e
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x4160ed
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41607d
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x41607d
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x416077
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00416c9e
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4160dd
and dword [ebp + 0xc], 0
jmp 0x4160dd
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4160dd
push 0xc
call fcn.0043765d
mov esi, eax
test esi, esi
pop ecx
je 0x4160bf
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 0x4160c1
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4160d8
push dword [ebp - 8]
call fcn.0043232c
jmp 0x4160dd
call fcn.00432303
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x416042
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41fd97
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.0041f190
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41fe32
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 [0x45ca20]
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 0x41fe32
cmp eax, 1
je 0x41fe53
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 0x41fe32
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41fdff
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41fe2e
xor eax, eax
inc eax
jmp 0x41fe72
cmp edi, eax
jae 0x41fe36
xor eax, eax
jmp 0x41fe72
cmp eax, esi
jae 0x41fe3d
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 [0x45ca20]
jmp 0x41fe56
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 0x420075
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x44b528
call fcn.0041fe7c
mov edi, 0x94
mov eax, edi
call fcn.0041f190
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 [0x45ca20], ecx
mov eax, dword [esi + 4]
mov dword [0x45ca2c], eax
mov edx, dword [esi + 8]
mov dword [0x45ca30], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x45ca24], esi
cmp ecx, 2
je 0x4200d5
or esi, 0x8000
mov dword [0x45ca24], esi
shl eax, 8
add eax, edx
mov dword [0x45ca28], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x420110
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420110
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x420128
cmp eax, 0x20b
je 0x420115
mov dword [ebp - 0x1c], esi
jmp 0x42013c
cmp dword [ecx + 0x84], 0xe
jbe 0x420110
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x420136
cmp dword [ecx + 0x74], 0xe
jbe 0x420110
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00425097
pop ecx
test eax, eax
jne 0x420150
push 0x1c
call fcn.00420051
pop ecx
call fcn.004242c7
test eax, eax
jne 0x420161
push 0x10
call fcn.00420051
pop ecx
call fcn.00428518
mov dword [ebp - 4], esi
call fcn.0042831a
test eax, eax
jge 0x42017a
push 0x1b
call fcn.0042002c
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x45e450], eax
call fcn.004281f8
mov dword [0x45ca0c], eax
call fcn.00428156
test eax, eax
jge 0x4201a0
push 8
call fcn.0042002c
pop ecx
call fcn.00427f23
test eax, eax
jge 0x4201b1
push 9
call fcn.0042002c
pop ecx
push 1
call fcn.00421ff6
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4201c7
push eax
call fcn.0042002c
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00427ec6
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4201e8
movzx eax, word [ebp - 0x40]
jmp 0x4201eb
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00431183
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x420209
push edi
call fcn.00422123
call fcn.00422145
jmp 0x42023b
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041feb7
ret
Function at 0x422060
Capabilities:
Terminate process

Disassembly:
push 8
push 0x44b670
call fcn.0041fe7c
push 8
call fcn.0042523b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x45ca60], esi
jne 0x422094
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x45ca5c], esi
mov al, byte [ebp + 0x10]
mov byte [0x45ca58], al
cmp dword [ebp + 0xc], edi
jne 0x4220de
cmp dword [0x45e448], edi
je 0x4220ce
mov eax, dword [0x45e444]
sub eax, 4
mov dword [0x45e444], eax
cmp eax, dword [0x45e448]
jb 0x4220ce
mov eax, dword [eax]
cmp eax, edi
je 0x4220af
call eax
jmp 0x4220af
push 0x4570a4
mov eax, 0x45709c
call fcn.00421fde
pop ecx
push 0x4570b0
mov eax, 0x4570a8
call fcn.00421fde
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x42210f
cmp dword [ebp + 0x10], edi
jne 0x42211d
mov dword [0x45ca60], esi
push dword [ebp + 8]
call fcn.00421f9c
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x42211c
push 8
call fcn.00425186
pop ecx
ret
call fcn.0041feb7
ret

Function at 0x4222d9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x4222f6
call fcn.0042218e
mov dword [eax], 0x16
xor eax, eax
jmp 0x422360
push esi
push 0x8c
push 1
call fcn.004219d2
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x42234b
push esi
call fcn.004240cd
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x422329
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x422244
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x42235f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0041f333
test ebx, ebx
pop ecx
je 0x42235d
push ebx
call fcn.004221a0
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret