joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401150
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x462460
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47dac0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 0
push 2
mov dword [esp + 0x30], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
push 0x22c
mov dword [esp + 0x18], esi
call fcn.0042681d
add esp, 4
mov ebx, eax
push ebx
push esi
mov dword [ebx], 0x22c
call sub.KERNEL32.dll_Process32FirstW
push ebx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x40126f
mov esi, dword [esp + 0x30]
add esi, 0xfffffff0
lea ebp, [esi + 0xc]
push ecx
lea eax, [ebx + 0x24]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00401af0
mov byte [esp + 0x2c], 1
push ecx
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
mov dword [esp + 0x20], esp
mov dword [esp + 0x20], esp
call edx
cmp dword [ebp], 0
jl 0x401203
cmp eax, dword [esi]
jne 0x401203
mov edi, esi
mov eax, ebp
mov ecx, 1
lock xadd dword [eax], ecx
jmp 0x40123e
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x4012b4
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00448978
add esp, 0x10
mov edx, dword [esp + 0x20]
add edi, 0x10
mov dword [edx], edi
mov byte [esp + 0x30], 0
call fcn.0040a8a0
add esp, 8
test eax, eax
je 0x4012b9
mov eax, dword [esp + 0x14]
push ebx
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4011c3
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40129e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
jmp fcn.00401970
mov ecx, dword [ebx + 8]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [esp + 0x28], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4012ed
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x401d30
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 0x401d49
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401d84
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401d80
lea ebx, [ebx]
cmp esi, eax
jae 0x401d84
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401d70
cmp esi, eax
jb 0x401d8a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4022a0
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x4629e1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47dac0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, dword [esp + 0x34]
xor edi, edi
mov dword [esp + 0x20], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
lea eax, [esp + 0x18]
mov dword [esp + 0x2c], edi
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebp, eax
cmp ebp, edi
je 0x402355
cmp dword [esp + 0x18], edi
je 0x402355
mov ecx, dword [ebp + edi*4]
push ecx
lea ecx, [esp + 0x20]
call fcn.00401af0
lea ebx, [esp + 0x1c]
mov dword [esp + 0x2c], 1
call fcn.004023c0
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40234c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 1
cmp edi, dword [esp + 0x18]
jne 0x402308
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x403210
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x462390
mov eax, dword fs:[0]
push eax
push ebp
push edi
mov eax, dword [0x47dac0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1c]
mov ecx, 1
mov dword [esp + 0x14], ecx
cmp dword [eax + 4], 0
jne 0x4032a8
mov byte [esp + 0x14], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40326a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403292
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
add esp, 0xc
ret 0xc
mov edi, dword [eax]
mov eax, dword [esi]
sub ecx, dword [eax - 4]
sub eax, 0x10
mov eax, dword [eax + 8]
sub eax, 0x400
or eax, ecx
jge 0x4032ca
push 0x400
mov ecx, esi
call fcn.004018a0
mov eax, dword [esi]
mov ebp, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x24]
push 0x400
push eax
push 0x46baac
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [esi]
test ecx, ecx
jne 0x4032f2
xor eax, eax
jmp 0x403310
mov eax, ecx
lea ebp, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4032f7
sub eax, ebp
sar eax, 1
js 0x4033b0
mov ebp, dword [esp + 0x24]
cmp eax, dword [ecx - 8]
jg 0x4033b0
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov word [ecx + eax*2], 0
mov edx, dword [esi]
mov byte [esp + 0x14], 0
cmp dword [edx - 0xc], 0
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
jne 0x40335d
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40334d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x14], 0xffffffff
lea eax, [ebp - 0x10]
jmp 0x403279
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403373
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403397
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
add esp, 0xc
ret 0xc
push 0x80070057
call fcn.00401820
int3
Function at 0x403d30
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x463468
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47dac0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov dword [esp + 0x20], 0
mov edi, dword [esp + 0x28]
cmp dword [edi - 0xc], 0
jne 0x403da1
lea eax, [edi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403d8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push ecx
mov dword [esp + 0x18], esp
mov ebp, esp
push ecx
lea esi, [edi - 0x10]
mov dword [esp + 0x1c], esp
mov ebx, esp
push esi
call fcn.00401a80
add esp, 4
add eax, 0x10
push ebp
mov dword [ebx], eax
call fcn.00407790
add esp, 8
call fcn.00403d30
add esp, 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
mov dword [esp + 0x20], 0xffffffff
jne 0x403e15
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403dff
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403e2e
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4079a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x47dac0]
xor eax, esp
mov dword [esp + 0x20c], eax
push 0
push 0x19
lea eax, [esp + 0xc]
push eax
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00401af0
mov ecx, dword [esp + 0x20c]
xor ecx, esp
mov eax, esi
call fcn.00448969
add esp, 0x210
ret

Function at 0x4079f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x47dac0]
xor eax, esp
mov dword [esp + 0x20c], eax
push 0
push 0x17
lea eax, [esp + 0xc]
push eax
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00401af0
mov ecx, dword [esp + 0x20c]
xor ecx, esp
mov eax, esi
call fcn.00448969
add esp, 0x210
ret

Function at 0x407a40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x47dac0]
xor eax, esp
mov dword [esp + 0x20c], eax
push 0
push 0x1a
lea eax, [esp + 0xc]
push eax
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00401af0
mov ecx, dword [esp + 0x20c]
xor ecx, esp
mov eax, esi
call fcn.00448969
add esp, 0x210
ret

Function at 0x407a90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x47dac0]
xor eax, esp
mov dword [esp + 0x20c], eax
push 0
push 0xb
lea eax, [esp + 0xc]
push eax
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00401af0
mov ecx, dword [esp + 0x20c]
xor ecx, esp
mov eax, esi
call fcn.00448969
add esp, 0x210
ret

Function at 0x407ae0
Capabilities:
Get common file path
Get program files directory

Disassembly:
sub esp, 0x210
mov eax, dword [0x47dac0]
xor eax, esp
mov dword [esp + 0x20c], eax
push 0
push 0x26
lea eax, [esp + 0xc]
push eax
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00401af0
mov ecx, dword [esp + 0x20c]
xor ecx, esp
mov eax, esi
call fcn.00448969
add esp, 0x210
ret
Function at 0x40a220
Capabilities:
Set registry value

Disassembly:
cmp dword [esp + 0xc], 0x40
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
push esi
jne 0x40a243
push 0xf013f
push 0
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jmp 0x40a24e
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov edi, eax
test edi, edi
je 0x40a29b
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a274
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a294
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
pop edi
pop esi
ret 0xc
push ebx
mov ebx, dword [esp + 0x14]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a2a5
mov edi, dword [esp + 0x10]
sub eax, edx
mov edx, dword [esi]
sar eax, 1
lea ecx, [eax + eax]
push ecx
push ebx
push 1
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a2e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop ebx
jg 0x40a306
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, esi
pop esi
ret 0xc
Function at 0x40a310
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4626f8
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x47dac0]
xor eax, esp
mov dword [esp + 0x808], eax
push ebp
push esi
push edi
mov eax, dword [0x47dac0]
xor eax, esp
push eax
lea eax, [esp + 0x81c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x830]
mov esi, ecx
push 0x7fe
lea eax, [esp + 0x1e]
mov dword [esp + 0x828], 0
push 0
push eax
mov dword [esp + 0x1c], 0x400
mov word [esp + 0x24], 0
call fcn.0044bb00
mov eax, dword [esi + 8]
add esp, 0xc
cmp dword [esp + 0x834], 0x40
push esi
jne 0x40a3a3
mov ecx, dword [esi + 4]
push 0xf013f
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jmp 0x40a3ae
mov edx, dword [esi + 4]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov edi, eax
test edi, edi
je 0x40a3e6
mov dword [esp + 0x824], 0xffffffff
mov eax, dword [esp + 0x82c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a3e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x40a456
mov edi, dword [esp + 0x82c]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a411
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x1c]
push edx
mov ecx, ebp
call fcn.00401eb0
lea eax, [edi - 0x10]
mov dword [esp + 0x824], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a454
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x81c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.00448969
add esp, 0x818
ret 0xc
Function at 0x40a480
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
cmp dword [esp + 0x10], 0x40
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov dword [esp + 8], 4
push esi
jne 0x40a4ac
push 0xf013f
push 0
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jmp 0x40a4b7
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov edi, eax
test edi, edi
je 0x40a4e5
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a4dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esi]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a522
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, esi
pop esi
pop ecx
ret 0xc

Function at 0x40a530
Capabilities:
Delete registry value

Disassembly:
cmp dword [esp + 8], 0x40
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
push esi
jne 0x40a553
push 0xf013f
push 0
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jmp 0x40a55e
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov edi, eax
test edi, edi
je 0x40a58b
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a584
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
pop edi
pop esi
ret 8
mov edi, dword [esp + 0xc]
mov ecx, dword [esi]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a5b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, esi
pop esi
ret 8
Function at 0x40a5c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x462fed
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x47dac0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47dac0]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x244]
xor edi, edi
mov esi, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
push edi
push edi
push edi
push edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x250], edi
mov edx, dword [ebp]
push ecx
push edi
push edx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40a6c1
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], 0x104
call fcn.00401af0
lea ebx, [esp + 0x18]
mov dword [esp + 0x23c], 1
call fcn.004023c0
mov byte [esp + 0x23c], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a69d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
push edx
add edi, 1
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40a64b
mov eax, esi
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00448969
add esp, 0x22c
ret 4

Function at 0x40ac80
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub esp, 0x3c
push esi
push 0x38
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.0044bb00
mov ecx, dword [esp + 0x50]
add esp, 0xc
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], str.open
mov dword [esp + 0x18], str.cmd.exe
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [esp + 0x3c]
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40ad06
mov ecx, dword [esp + 0x3c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0x3e7
pop esi
add esp, 0x3c
ret
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x44]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x44]
pop esi
add esp, 0x3c
ret
Function at 0x40ad20
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x462f50
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x47dac0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
push str.cmd.exe
lea ecx, [esp + 0x10]
call fcn.00401af0
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0xc]
push 0x5c
push eax
call fcn.00448f8c
add esp, 8
or edi, 0xffffffff
test eax, eax
je 0x40adfa
sub eax, dword [esp + 0xc]
sar eax, 1
cmp eax, edi
je 0x40adfa
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.00403450
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call fcn.00402c00
mov byte [esp + 0x1c], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40adc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
push 0
push ecx
push esi
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
jmp 0x40ae26
push 0
push 0
push esi
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, eax
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40ae34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret