joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e5b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4e5114]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 0x1a
lea eax, [ebp - 0x20c]
push eax
push 0
call fcn.0040e440
add esp, 0x10
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x210], ecx
mov edx, dword [ebp - 0x210]
add edx, 2
mov dword [ebp - 0x234], edx
mov eax, dword [ebp - 0x210]
mov cx, word [eax]
mov word [ebp - 0x222], cx
add dword [ebp - 0x210], 2
cmp word [ebp - 0x222], 0
jne 0x40e5f5
mov edx, dword [ebp - 0x210]
sub edx, dword [ebp - 0x234]
sar edx, 1
mov dword [ebp - 0x238], edx
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
jne 0x40e644
jmp 0x40e795
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
mov dword [ebp - 0x218], ecx
mov edx, dword [ebp - 0x218]
mov ax, word [edx + 2]
mov word [ebp - 0x224], ax
add dword [ebp - 0x218], 2
cmp word [ebp - 0x224], 0
jne 0x40e653
mov edi, dword [ebp - 0x218]
mov ecx, dword [0x4d0bec]
mov dword [edi], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x214], edx
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x230], eax
mov ecx, dword [ebp - 0x214]
mov dx, word [ecx]
mov word [ebp - 0x226], dx
add dword [ebp - 0x214], 2
cmp word [ebp - 0x226], 0
jne 0x40e698
mov eax, dword [ebp - 0x214]
sub eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x244], eax
lea edx, [ebp - 0x20c]
add edx, 0xfffffffe
mov dword [ebp - 0x21c], edx
mov eax, dword [ebp - 0x21c]
mov cx, word [eax + 2]
mov word [ebp - 0x228], cx
add dword [ebp - 0x21c], 2
cmp word [ebp - 0x228], 0
jne 0x40e6e6
mov edi, dword [ebp - 0x21c]
mov esi, dword [ebp - 0x240]
mov edx, dword [ebp - 0x244]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x20c]
add eax, 0xfffffffe
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x220]
mov dx, word [ecx + 2]
mov word [ebp - 0x22a], dx
add dword [ebp - 0x220], 2
cmp word [ebp - 0x22a], 0
jne 0x40e737
mov edi, dword [ebp - 0x220]
mov eax, dword [0x4d0bf0]
mov dword [edi], eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e786
lea edx, [ebp - 0x20c]
push edx
call fcn.0040db40
add esp, 4
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406c60
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b588
mov esp, ebp
pop ebp
ret
Function at 0x40e7b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afcd0
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x4e5114]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], 0
push 0x44
push 0
lea eax, [ebp - 0xa4]
push eax
call fcn.0048e340
add esp, 0xc
mov dword [ebp - 0xa4], 0x44
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
lea ecx, [ebp - 0x28]
call fcn.00406c80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00406c80
mov byte [ebp - 4], 1
cmp dword [ebp + 0xc], 0
je 0x40e83a
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x40]
call fcn.00406c60
lea ecx, [ebp - 0x40]
call fcn.00405d30
movzx eax, al
test eax, eax
je 0x40e857
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00406c60
jmp 0x40e889
push 0x4d0bf4
lea ecx, [ebp - 0x28]
call fcn.00406c60
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x28]
call fcn.00405d80
push 0x4d0bf8
lea ecx, [ebp - 0x28]
call fcn.00405d80
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401540
lea ecx, [ebp - 0x28]
call fcn.00401c90
push eax
push 0x67
call fcn.0040d590
add esp, 8
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0xa4]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.00401c90
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40e8f2
mov dword [ebp - 0x5c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004022e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004022e0
mov eax, dword [ebp - 0x5c]
jmp 0x40e976
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x40e91d
cmp dword [ebp + 0x14], 0
jle 0x40e908
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x44], ecx
jmp 0x40e90f
mov dword [ebp - 0x44], 0xffffffff
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x18], 0
je 0x40e93d
lea ecx, [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40e93d
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x60], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004022e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004022e0
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b588
mov esp, ebp
pop ebp
ret
Function at 0x40ecf0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afd10
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x4e5114]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
jne 0x40ed28
xor eax, eax
jmp 0x40ee9a
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.004020b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push ecx
call fcn.00410550
add esp, 4
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x270], 0
push 0x22c
push 0
lea edx, [ebp - 0x26c]
push edx
call fcn.0048e340
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0xffffffff
jne 0x40edae
mov dword [ebp - 0x274], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004022e0
mov eax, dword [ebp - 0x274]
jmp 0x40ee9a
mov dword [ebp - 0x26c], 0x22c
lea eax, [ebp - 0x26c]
push eax
mov ecx, dword [ebp - 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40ee6e
lea edx, [ebp - 0x248]
push edx
lea ecx, [ebp - 0x40]
call fcn.004020b0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.00410550
add esp, 4
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00406070
add esp, 8
movzx eax, al
test eax, eax
je 0x40ee46
mov ecx, dword [ebp - 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x264]
mov dword [ebp - 0x278], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004022e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004022e0
mov eax, dword [ebp - 0x278]
jmp 0x40ee9a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004022e0
lea eax, [ebp - 0x26c]
push eax
mov ecx, dword [ebp - 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40edd4
mov edx, dword [ebp - 0x270]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x27c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004022e0
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b588
mov esp, ebp
pop ebp
ret
Function at 0x40f390
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afda0
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x4e5114]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 0
push 0x22c
push 0
lea eax, [ebp - 0x26c]
push eax
call fcn.0048e340
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x40]
call fcn.004020b0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x40]
push edx
call fcn.00410550
add esp, 4
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0xffffffff
jne 0x40f44b
mov dword [ebp - 0x278], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004022e0
mov eax, dword [ebp - 0x278]
jmp 0x40f50d
mov dword [ebp - 0x26c], 0x22c
lea eax, [ebp - 0x26c]
push eax
mov ecx, dword [ebp - 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40f4df
lea edx, [ebp - 0x248]
push edx
lea ecx, [ebp - 0x28]
call fcn.004020b0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
push eax
call fcn.00410550
add esp, 4
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00406070
add esp, 8
movzx eax, al
test eax, eax
je 0x40f4bb
mov dword [ebp - 0x274], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004022e0
jmp 0x40f4df
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004022e0
lea ecx, [ebp - 0x26c]
push ecx
mov edx, dword [ebp - 0x270]
push edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40f46d
mov eax, dword [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x274]
mov dword [ebp - 0x27c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004022e0
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b588
mov esp, ebp
pop ebp
ret
Function at 0x40f530
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x18]
push eax
push 0xf013f
push 0
push 0x4d1e24
push reloc.gdiplus.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40f574
jmp 0x40f65f
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0xf013f
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40f5ad
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40f65f
push 0
lea edx, [ebp - 0x10]
push edx
push 0
push 0xf013f
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40f5ed
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40f65f
mov dword [ebp - 0x24], 0x104
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 2
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0xc]
mov cx, word [eax]
mov word [ebp - 2], cx
add dword [ebp - 0xc], 2
cmp word [ebp - 2], 0
jne 0x40f603
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x1c]
sar edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x40fd60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push eax
push 0xf013f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40fdb1
jmp 0x40feec
lea edx, [ebp - 0x14]
push edx
push 0xf013f
push 0
push 0x4d1e60
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40fde3
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40feec
push 0
lea edx, [ebp - 0x18]
push edx
push 0
push 0xf013f
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40fe26
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40feec
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0xf013f
push 0
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40fe70
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40feec
mov dword [ebp - 0x28], 0x104
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
add edx, 2
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x10]
mov cx, word [eax]
mov word [ebp - 2], cx
add dword [ebp - 0x10], 2
cmp word [ebp - 2], 0
jne 0x40fe86
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x20]
sar edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp + 0x18]
push edx
push 1
push 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x412280
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4122a4
xor eax, eax
jmp 0x412324
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4122bb
xor eax, eax
jmp 0x412324
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x412307
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x412307
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x4122de
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x412313
xor eax, eax
jmp 0x412324
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x412321
xor eax, eax
jmp 0x412324
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x413d30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x413d64
mov dword [ebp - 4], 0
jmp 0x413d7d
cmp dword [ebp - 8], 0xea
jne 0x413d76
mov dword [ebp - 4], 0xffffffe4
jmp 0x413d7d
mov dword [ebp - 4], 0xfffffff2
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x415410
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x415419
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 0x41545c
mov eax, dword [ebp - 8]
jmp 0x4154c2
cmp dword [ebp - 0xc], 1
je 0x41546f
cmp dword [ebp - 0xc], 2
je 0x41546f
mov eax, 0xd
jmp 0x4154c2
cmp dword [ebp + 0xc], 0
je 0x4154b6
cmp dword [ebp - 4], 0
je 0x4154a5
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x41549c
mov edx, dword [ebp - 4]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x4154a3
mov eax, 0xd
jmp 0x4154c2
jmp 0x4154b6
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 0x4154d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x4e5114]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x240], ecx
cmp dword [ebp + 0xc], 0
jne 0x4154f6
xor eax, eax
jmp 0x4155fd
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x23c], 0
push 0x22c
push 0
lea eax, [ebp - 0x230]
push eax
call fcn.0048e340
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 0x415540
xor eax, eax
jmp 0x4155fd
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 0x415576
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4155fd
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.00496636
add esp, 8
test eax, eax
jne 0x4155d2
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 0x4155ea
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x415576
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.0048b588
mov esp, ebp
pop ebp
ret 8
Function at 0x415690
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
xor eax, eax
jne 0x415699
cmp dword [ebp + 0xc], 0
je 0x4156ac
mov dword [ebp - 0xc], 1
jmp 0x4156b3
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x4156c6
mov eax, 0xd
jmp 0x41571b
xor edx, edx
jne 0x41569d
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 0x4156d9
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 0x416aa0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4e5114]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x416b06
jmp 0x416b25
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x416b21
mov dword [ebp - 0x14], 0
xor ecx, ecx
jne 0x416add
cmp dword [ebp - 0x10], 0
je 0x416b3c
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b588
mov esp, ebp
pop ebp
ret

Function at 0x416b50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.0048e340
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x30], 0x4d7e24
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 1
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esp, ebp
pop ebp
ret