joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b60
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440452
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x453044]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x230]
call fcn.004021b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.004021b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x228]
call fcn.004021b0
mov byte [ebp - 4], 2
mov dword [ebp - 0x234], 0x1000
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov byte [ebp - 0x24], cl
lea edx, [ebp - 0x234]
push edx
mov eax, dword [ebp - 0x234]
push eax
lea ecx, [ebp - 0x22c]
call fcn.00402a80
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x22c]
call fcn.00405740
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x244]
push eax
call fcn.00405f00
add esp, 0xc
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x240], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x240]
push edx
lea ecx, [ebp - 0x228]
call fcn.00405820
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x244]
call fcn.004020b0
lea ecx, [ebp - 0x228]
call fcn.004017b0
push eax
lea ecx, [ebp - 0x120]
call fcn.00405840
mov dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x24c]
call fcn.004017b0
push eax
lea ecx, [ebp - 0x230]
call fcn.00401740
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x120]
call fcn.00401780
lea ecx, [ebp - 0x9c]
push ecx
call fcn.004035d0
add esp, 4
lea ecx, [ebp - 0x230]
call fcn.00401cb0
push eax
lea ecx, [ebp - 0x230]
call fcn.004017b0
push eax
lea edx, [ebp - 0x9c]
push edx
call fcn.00404750
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x9c]
push ecx
call fcn.00404870
add esp, 8
push 0x21
lea edx, [ebp - 0x44]
push edx
push 0x10
lea eax, [ebp - 0x20]
push eax
call fcn.00405870
add esp, 0x10
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x224]
call fcn.00401aa0
mov dword [ebp - 0x250], eax
mov edx, dword [ebp - 0x250]
mov dword [ebp - 0x254], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x254]
call fcn.004017b0
push eax
lea ecx, [ebp - 0x228]
call fcn.004026b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x224]
call fcn.00401780
push 0x10
push 0xa
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x228]
call fcn.00405a80
mov ecx, dword [ebp - 0x238]
or ecx, 1
mov dword [ebp - 0x238], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x228]
call fcn.004020b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.004020b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.004020b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041aaa9
mov esp, ebp
pop ebp
ret
Function at 0x4060a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4060f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4060d6
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4060fb
cmp dword [ebp + 0xc], 0
je 0x4060e8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4060f6
cmp dword [ebp + 0x10], 0
je 0x4060f6
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x408500
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
xor eax, eax
jne 0x408509
cmp dword [ebp + 0xc], 0
je 0x40851c
mov dword [ebp - 0xc], 1
jmp 0x408523
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x408536
mov eax, 0xd
jmp 0x40858b
xor edx, edx
jne 0x40850d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
mov ax, word [edx]
mov word [ebp - 2], ax
add dword [ebp - 8], 2
cmp word [ebp - 2], 0
jne 0x408549
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x14]
sar ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
lea eax, [edx + edx + 2]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x408610
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
xor eax, eax
jne 0x408619
cmp dword [ebp + 0xc], 0
je 0x40862c
mov dword [ebp - 0x18], 1
jmp 0x408633
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
jne 0x408649
mov eax, 0xd
jmp 0x4086cc
xor edx, edx
jne 0x40861d
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 8]
mov cx, word [eax]
mov word [ebp - 2], cx
add dword [ebp - 8], 2
cmp word [ebp - 2], 0
jne 0x408669
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x20]
sar edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx*2]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
lea eax, [edx + ecx*2]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 1
jne 0x40865a
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 7
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8
Function at 0x4091a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x453044]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20c], ecx
push 0
lea ecx, [ebp - 0x21c]
call fcn.00409350
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.00409100
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
je 0x40921f
mov edx, dword [ebp - 0x208]
mov dword [ebp - 0x220], edx
lea ecx, [ebp - 0x21c]
call fcn.004093d0
mov eax, dword [ebp - 0x220]
jmp 0x4092d4
mov dword [ebp - 0x210], 0x100
lea eax, [ebp - 0x230]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x204]
push edx
push 0
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4092a3
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.004091a0
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
je 0x409297
mov edx, dword [ebp - 0x208]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x21c]
call fcn.004093d0
mov eax, dword [ebp - 0x224]
jmp 0x4092d4
mov dword [ebp - 0x210], 0x100
jmp 0x409229
lea ecx, [ebp - 0x21c]
call fcn.00409380
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20c]
call fcn.004094b0
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x21c]
call fcn.004093d0
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041aaa9
mov esp, ebp
pop ebp
ret 4

Function at 0x409420
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x40947f
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40944c
mov eax, 1
jmp 0x40949d
push str.RegDeleteKeyTransactedW
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40947d
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0xc]
jmp 0x40949d
jmp 0x409498
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x409498
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x40949d
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x40b200
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440820
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x453044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
push 0x3c
push 0
lea eax, [ebp - 0x68]
push eax
call fcn.0041d2d0
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.004021b0
mov dword [ebp - 4], 0
push 1
push 1
lea ecx, [ebp - 0x24]
push ecx
call fcn.0040daf0
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.00405820
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004020b0
mov dword [ebp - 0x68], 0x3c
mov dword [ebp - 0x64], 0x40
mov dword [ebp - 0x5c], 0x44a034
lea ecx, [ebp - 0x10]
call fcn.004017b0
mov dword [ebp - 0x58], eax
cmp dword [ebp + 8], 0
je 0x40b2ab
mov dword [ebp - 0x14], str._auto
jmp 0x40b2b2
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x54], ecx
cmp dword [ebp + 8], 0
je 0x40b2c7
mov dword [ebp - 0x18], 0
jmp 0x40b2ce
mov dword [ebp - 0x18], 1
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x4c], edx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004020b0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b310
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440858
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x453044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
push 0x3c
push 0
lea eax, [ebp - 0x70]
push eax
call fcn.0041d2d0
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.004021b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0040d820
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov byte [ebp - 4], 1
push 0x44a04c
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00405f00
add esp, 0xc
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
call fcn.00405820
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004020b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004020b0
mov dword [ebp - 0x70], 0x3c
mov dword [ebp - 0x6c], 0x40
mov dword [ebp - 0x64], str.open
lea ecx, [ebp - 0x10]
call fcn.004017b0
mov dword [ebp - 0x60], eax
cmp dword [ebp + 8], 0
je 0x40b3e5
mov dword [ebp - 0x14], str._wp_change
jmp 0x40b3ec
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x5c], ecx
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004020b0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x40be70
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440452
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x453044]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x230]
call fcn.004021b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.004021b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x228]
call fcn.004021b0
mov byte [ebp - 4], 2
mov dword [ebp - 0x234], 0x1000
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov byte [ebp - 0x24], cl
lea edx, [ebp - 0x234]
push edx
mov eax, dword [ebp - 0x234]
push eax
lea ecx, [ebp - 0x22c]
call fcn.00402a80
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x22c]
call fcn.00405740
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x244]
push eax
call fcn.00405f00
add esp, 0xc
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x240], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x240]
push edx
lea ecx, [ebp - 0x228]
call fcn.00405820
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x244]
call fcn.004020b0
lea ecx, [ebp - 0x228]
call fcn.004017b0
push eax
lea ecx, [ebp - 0x120]
call fcn.00405840
mov dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x24c]
call fcn.004017b0
push eax
lea ecx, [ebp - 0x230]
call fcn.00401740
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x120]
call fcn.00401780
lea ecx, [ebp - 0x9c]
push ecx
call fcn.004035d0
add esp, 4
lea ecx, [ebp - 0x230]
call fcn.00401cb0
push eax
lea ecx, [ebp - 0x230]
call fcn.004017b0
push eax
lea edx, [ebp - 0x9c]
push edx
call fcn.00404750
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x9c]
push ecx
call fcn.00404870
add esp, 8
push 0x21
lea edx, [ebp - 0x44]
push edx
push 0x10
lea eax, [ebp - 0x20]
push eax
call fcn.0040bd80
add esp, 0x10
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x224]
call fcn.00401aa0
mov dword [ebp - 0x250], eax
mov edx, dword [ebp - 0x250]
mov dword [ebp - 0x254], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x254]
call fcn.004017b0
push eax
lea ecx, [ebp - 0x228]
call fcn.004026b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x224]
call fcn.00401780
push 0x10
push 0xa
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x228]
call fcn.00405a80
mov ecx, dword [ebp - 0x238]
or ecx, 1
mov dword [ebp - 0x238], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x228]
call fcn.004020b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.004020b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.004020b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041aaa9
mov esp, ebp
pop ebp
ret
Function at 0x40dee0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440b40
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x453044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0x66
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x10]
call fcn.004026d0
mov dword [ebp - 4], 0
push 0x44a1b4
lea ecx, [ebp - 0x14]
call fcn.004026d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401cb0
sub eax, 2
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040dde0
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 2
push 0
mov ecx, dword [ebp - 0x20]
call fcn.004017b0
push eax
lea ecx, [ebp - 0x10]
call fcn.0040dd60
push eax
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x10]
call fcn.0040dd20
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00405820
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.004020b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.004020b0
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.004017b0
push eax
lea ecx, [ebp - 0x10]
call fcn.004017b0
push eax
call fcn.0040dea0
add esp, 0xc
test eax, eax
jne 0x40dfd2
mov dword [ebp - 0x18], 0x66
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004020b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004020b0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x40e640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x40e649
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
shl edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40e68c
mov eax, dword [ebp - 8]
jmp 0x40e6f2
cmp dword [ebp - 0xc], 1
je 0x40e69f
cmp dword [ebp - 0xc], 2
je 0x40e69f
mov eax, 0xd
jmp 0x40e6f2
cmp dword [ebp + 0xc], 0
je 0x40e6e6
cmp dword [ebp - 4], 0
je 0x40e6d5
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x40e6cc
mov edx, dword [ebp - 4]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x40e6d3
mov eax, 0xd
jmp 0x40e6f2
jmp 0x40e6e6
mov edx, 2
imul eax, edx, 0
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov word [edx + eax], cx
mov eax, dword [ebp - 4]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e700
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x453044]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x240], ecx
cmp dword [ebp + 0xc], 0
jne 0x40e726
xor eax, eax
jmp 0x40e82d
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x23c], 0
push 0x22c
push 0
lea eax, [ebp - 0x230]
push eax
call fcn.0041d2d0
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xffffffff
jne 0x40e770
xor eax, eax
jmp 0x40e82d
mov dword [ebp - 0x230], 0x22c
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x40e7a6
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40e82d
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.0041ec41
add esp, 8
test eax, eax
jne 0x40e802
mov eax, dword [ebp - 0x228]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp + 8]
push ecx
push 0xf01ff
mov edx, dword [ebp - 0x238]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e81a
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40e7a6
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041aaa9
mov esp, ebp
pop ebp
ret 8
Function at 0x4141b7
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xc
mov eax, 0x4410cf
call fcn.0041b4c3
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004026d0
push dword [ebp - 0x10]
and dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41424d
push eax
jmp 0x41423c
call fcn.00403410
push eax
lea ecx, [ebp - 0x14]
call fcn.004020f0
inc edi
mov byte [ebp - 4], 1
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040dde0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00405790
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.004034d0
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41422f
push esi
call fcn.0042a0be
pop ecx
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.004034d0
push edi
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.0041425e
mov edi, eax
cmp edi, 0xffffffff
jne 0x4141e2
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004034d0
call fcn.0041b49d
ret
Function at 0x4144c5
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x453044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp + 0xc]
push str.RtlGetVersion
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 0x10]
push 0x44271c
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x128], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 9
mov dword [ebp - 0x124], eax
lea edi, [ebp - 0x158]
pop eax
mov ecx, eax
xor ebx, ebx
xor eax, eax
push 0x118
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.0041d2d0
mov eax, dword [ebp - 0x124]
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
test eax, eax
je 0x414563
lea ecx, [ebp - 0x120]
push ecx
call eax
test eax, eax
jns 0x414578
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x414705
test esi, esi
je 0x41458d
mov edi, dword [ebp - 0x128]
lea esi, [ebp - 0x120]
push 0x47
pop ecx
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx esi, word [ebp - 0xc]
xor ecx, ecx
cmp dword [ebp - 0x140], 0x21d8
push 2
sete cl
pop edx
mov dword [ebp - 0x124], ecx
cmp dword [ebp - 0x110], edx
jne 0x4146ab
mov eax, dword [ebp - 0x11c]
cmp eax, 0xa
jne 0x4145ea
cmp dword [ebp - 0x118], ebx
jne 0x4146de
xor ebx, ebx
cmp byte [ebp - 6], 1
setne bl
add ebx, 0x11
jmp 0x4146de
cmp eax, 6
jne 0x414650
mov eax, dword [ebp - 0x118]
cmp eax, 3
jne 0x41460b
xor ebx, ebx
cmp byte [ebp - 6], 1
setne bl
add ebx, 0xf
jmp 0x4146de
cmp eax, edx
jne 0x414620
xor ebx, ebx
cmp byte [ebp - 6], 1
setne bl
add ebx, 0xd
jmp 0x4146de
cmp eax, 1
jne 0x414635
xor ebx, ebx
cmp byte [ebp - 6], al
setne bl
add ebx, 0xb
jmp 0x4146de
test eax, eax
jne 0x4146de
xor ebx, ebx
cmp byte [ebp - 6], 1
push 9
setne bl
pop eax
add ebx, eax
jmp 0x4146de
cmp eax, 5
jne 0x4146a1
mov eax, dword [ebp - 0x118]
cmp eax, edx
jne 0x414690
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x41466f
push 8
jmp 0x414687
cmp byte [ebp - 6], 1
jne 0x414685
push 9
pop eax
cmp word [ebp - 0x158], ax
jne 0x414685
push 6
jmp 0x414687
push 7
mov ecx, dword [ebp - 0x124]
pop ebx
jmp 0x4146de
cmp eax, 1
jne 0x414699
push 6
jmp 0x4146a8
test eax, eax
jne 0x4146de
push 5
jmp 0x4146a8
cmp eax, 4
ja 0x4146de
push 4
pop ebx
jmp 0x4146de
cmp dword [ebp - 0x110], 1
jne 0x4146de
cmp dword [ebp - 0x11c], 4
jne 0x4146de
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x4146cc
xor ebx, ebx
inc ebx
jmp 0x4146de
cmp eax, 0xa
jne 0x4146d5
mov ebx, edx
jmp 0x4146de
push 3
cmp eax, 0x5a
pop edx
cmove ebx, edx
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x4146ea
mov dword [eax], ebx
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x4146f6
mov dword [eax], esi
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x414702
mov dword [eax], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041aaa9
leave
ret