joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4026c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00414f3e

Function at 0x4028a0
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 0x4028b9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4028f4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4028f0
lea ebx, [ebx]
cmp esi, eax
jae 0x4028f4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4028e0
cmp esi, eax
jb 0x4028fa
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403330
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x44b1da
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x465ac0]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov eax, dword [0x465ac0]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 0x224], 3
call fcn.00414fb2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40339b
push 0x80004005
call fcn.00402f70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x1a]
push edx
mov dword [esp + 0x14], 1
mov word [esp + 0x1c], cx
call fcn.00435330
mov eax, dword [esp + 0x240]
mov edx, dword [esp + 0x23c]
add esp, 0xc
push eax
mov eax, dword [esp + 0x230]
push 0x104
lea ecx, [esp + 0x18]
push ecx
push str.NoString
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x10]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403400
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.00402d10
call fcn.00403870
call fcn.004037f0
mov byte [esp + 0x224], 2
mov eax, dword [esp + 0x22c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403451
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x224], 1
mov eax, dword [esp + 0x230]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40347c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x224], 0
mov eax, dword [esp + 0x234]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4034a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00430e7d
add esp, 0x220
ret
Function at 0x404680
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x44a45b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x465ac0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00448261
push 4
mov dword [esp + 0x20], 0
call fcn.0041452d
mov edi, eax
add esp, 4
test edi, edi
je 0x4046fe
call fcn.00448513
mov dword [edi], eax
call fcn.00448341
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00448222
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4046f3
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0044824a
jmp 0x404700
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x407c30
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x18
lea eax, [esp]
push eax
push 0x458c18
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x407c51
mov eax, 1
add esp, 0x18
ret
mov ecx, dword [esp]
mov edx, dword [esp + 4]
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi]
push 0
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
add esp, 0x18
ret
Function at 0x409930
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x44aaa8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x465ac0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x465ac0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x54]
xor ebx, ebx
mov dword [esp + 0x48], ebx
mov eax, dword [ebp + 0x18]
cmp eax, 1
jge 0x4099a3
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40999c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x409b26
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov edi, dword [ebp]
mov esi, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [ebp]
cmp edi, ebx
je 0x4099bd
cmp edi, eax
je 0x4099c2
call fcn.004324e7
cmp dword [esp + 0x18], esi
je 0x409af9
push 0x458c54
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.0040c310
add esp, 0xc
mov byte [esp + 0x48], 1
mov eax, dword [eax]
xor ecx, ecx
mov word [esp + 0x24], cx
mov ecx, eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x409a02
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x24]
call fcn.00401680
mov byte [esp + 0x48], 3
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 0x409a40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebx
jne 0x409aee
call fcn.004324e7
xor eax, eax
mov esi, dword [esp + 0x18]
cmp esi, dword [eax + 0x14]
jne 0x409a5d
call fcn.004324e7
lea eax, [esi + 8]
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x28]
call fcn.0040bc80
mov eax, dword [esp + 0x24]
mov esi, 8
cmp dword [esp + 0x38], esi
jae 0x409a81
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x409aa4
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], esi
jae 0x409a9a
lea eax, [esp + 0x24]
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [esp + 0x48], bl
cmp dword [esp + 0x38], esi
jb 0x409abb
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0041455c
add esp, 4
xor edx, edx
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], dx
cmp edi, ebx
jne 0x409af5
call fcn.004324e7
xor eax, eax
mov esi, dword [esp + 0x18]
cmp esi, dword [eax + 0x14]
jne 0x409ae7
call fcn.004324e7
mov eax, dword [esi]
jmp 0x4099ab
mov eax, dword [edi]
jmp 0x409a4f
mov eax, dword [edi]
jmp 0x409ad9
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409b21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00430e7d
add esp, 0x38
ret 8
Function at 0x409b50
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x420
mov eax, dword [0x465ac0]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x430]
push esi
mov esi, dword [esp + 0x438]
push edi
xor eax, eax
push 0x3fe
mov edi, ecx
push eax
lea ecx, [esp + 0x32]
push ecx
mov dword [esp + 0x28], esi
mov word [esp + 0x34], ax
call fcn.00435330
mov ebx, dword [esp + 0x440]
add esp, 0xc
mov eax, ebx
neg eax
sbb eax, eax
lea edx, [esp + 0x14]
push edx
and eax, 0x100
add eax, 0xf003f
push eax
push 0
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x409bd2
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x409c4d
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
push ecx
push 0
push edx
mov dword [esp + 0x38], 0x200
call esi
test eax, eax
jne 0x409c36
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
push ecx
push ebx
mov ecx, edi
call fcn.00409b50
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
push ecx
push 0
push edx
call esi
test eax, eax
je 0x409c02
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00430e7d
add esp, 0x420
ret 0xc
Function at 0x40a7e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x465ac0]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.00435330
add esp, 0xc
push 0
push 0
push 0x104
lea ecx, [esp + 0xc]
push ecx
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, 0x1f
cmp ecx, eax
mov ecx, dword [esp + 0x104]
sbb eax, eax
xor ecx, esp
neg eax
call fcn.00430e7d
add esp, 0x108
ret
Function at 0x40a860
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x44ae88
mov eax, dword fs:[0]
push eax
sub esp, 0x640
mov eax, dword [0x465ac0]
xor eax, esp
mov dword [esp + 0x63c], eax
push ebx
push esi
push edi
mov eax, dword [0x465ac0]
xor eax, esp
push eax
lea eax, [esp + 0x650]
mov dword fs:[0], eax
push 0
push 2
mov dword [esp + 0x660], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_Process32FirstW
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x246]
push edx
mov esi, eax
mov word [esp + 0x248], cx
call fcn.00435330
add esp, 0xc
push 0x104
lea eax, [esp + 0x240]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x23c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x44e]
push eax
mov word [esp + 0x450], dx
call fcn.00435330
add esp, 0xc
test esi, esi
je 0x40aa3c
mov ecx, dword [esp + 0x660]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.004312c1
add esp, 8
test eax, eax
jne 0x40a993
mov eax, dword [esp + 0x18]
lea ebx, [esp + 0x444]
call fcn.00410de0
test eax, eax
je 0x40a993
lea eax, [esp + 0x23c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a967
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x240]
push eax
lea ecx, [esp + 0x44c]
push ecx
call fcn.004329a7
add esp, 0xc
test eax, eax
je 0x40a9a7
lea edx, [esp + 0x10]
push edx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40a930
jmp 0x40aa3c
mov eax, dword [esp + 0x18]
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40aa17
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x40a9df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x38]
push ecx
push str.kill:_s_error:0x_x
jmp 0x40a9fa
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40aa0e
push eax
lea edx, [esp + 0x38]
push edx
push str.wait:_s_ret:0x_x
mov ecx, 0x457c84
call fcn.0040cd20
mov ecx, eax
call fcn.0040cea0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40aa3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x38]
push eax
push str.open:_s_error:0x_x
mov ecx, 0x457c84
call fcn.0040cd20
mov ecx, eax
call fcn.0040cea0
add esp, 0xc
mov dword [esp + 0x658], 0xffffffff
mov eax, dword [esp + 0x660]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aa6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x650]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x63c]
xor ecx, esp
call fcn.00430e7d
add esp, 0x64c
ret 4
Function at 0x40ae10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x44b03e
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x465ac0]
xor eax, esp
mov dword [esp + 0x824], eax
push ebp
push esi
push edi
mov eax, dword [0x465ac0]
xor eax, esp
push eax
lea eax, [esp + 0x838]
mov dword fs:[0], eax
push 0x4590c8
xor ebp, ebp
push 0x82
push ebp
mov dword [esp + 0x84c], ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebp
jne 0x40ae9f
mov dword [esp + 0x840], 0xffffffff
mov eax, dword [esp + 0x848]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ae98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40afed
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
je 0x40ae6a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.00420f0b
push ebp
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x2c]
mov byte [esp + 0x84c], 1
call fcn.0040c0e0
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x844], 2
mov edx, dword [esp + 0x84c]
push 0x1001
push edx
lea ecx, [esp + 0x1c]
call fcn.0042130d
test eax, eax
je 0x40af27
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.00420c41
lea ecx, [esp + 0x10]
call fcn.00420d2d
lea ecx, [esp + 0x10]
call fcn.00420ea5
mov ebp, 1
jmp 0x40af7c
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x3e]
push ecx
mov word [esp + 0x40], ax
call fcn.00435330
add esp, 0xc
push 0
push 0x400
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x2c]
call fcn.00421795
mov ecx, dword [esp + 0x848]
lea eax, [esp + 0x34]
push eax
push ecx
push str._s___s
mov ecx, 0x457c84
call fcn.0040cd20
mov ecx, eax
call fcn.0040cea0
add esp, 0xc
mov byte [esp + 0x840], 1
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x20], vtable.CFileException.0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40afac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x840], 0
call fcn.00420fe7
mov dword [esp + 0x840], 0xffffffff
mov eax, dword [esp + 0x848]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40afeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x838]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x824]
xor ecx, esp
call fcn.00430e7d
add esp, 0x834
ret 4
Function at 0x40b020
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40b040
xor eax, eax
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp]
push 0
push 0
push 0x10
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40b03a
push eax
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, 1
add esp, 0x14
ret

Function at 0x40b0b0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x44a9b8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x465ac0]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
xor eax, eax
xor ebx, ebx
mov word [esp + 0x28], ax
push 0x22
mov eax, str.SYSTEMCurrentControlSet_services_
lea esi, [esp + 0x28]
xor edi, edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
call fcn.00401680
mov ecx, esi
push ecx
lea esi, [esp + 0x44]
mov dword [esp + 0x68], ebx
call fcn.0040bda0
mov esi, 8
add esp, 4
cmp dword [eax + 0x18], esi
jb 0x40b123
mov eax, dword [eax + 4]
jmp 0x40b126
add eax, 4
lea edx, [esp + 0x18]
push edx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete byte [esp + 0x13]
cmp dword [esp + 0x58], esi
jb 0x40b157
mov eax, dword [esp + 0x44]
push eax
call fcn.0041455c
add esp, 4
xor ecx, ecx
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], cx
cmp dword [esp + 0x3c], esi
jb 0x40b17d
mov edx, dword [esp + 0x28]
push edx
call fcn.0041455c
add esp, 4
cmp byte [esp + 0x13], bl
je 0x40b1c7
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
push 0x459160
push eax
mov dword [esp + 0x34], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b1bc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x6c]
lea edi, [eax + 1]
mov dword [edx], ecx
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x58
ret 4
Function at 0x40b1e0
Capabilities:
Delete service

Disassembly:
push esi
push edi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x40b21e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Couldnt_open_service_manager__0x_x
mov ecx, 0x457c84
call fcn.0040cd20
mov ecx, eax
call fcn.0040cea0
add esp, 8
pop edi
mov eax, esi
pop esi
ret 4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push ebp
push 0x10000
push str.SolidifySrv
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x40b262
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
push eax
push str.SolidifySrv
push str.Couldnt_open_service__s__0x_x
mov ecx, 0x457c84
call fcn.0040cd20
mov ecx, eax
call fcn.0040cea0
add esp, 0xc
jmp 0x40b29b
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40b294
call ebp
push eax
push str.SolidifySrv
push str.Couldnt_del_service__s__0x_x
mov ecx, 0x457c84
call fcn.0040cd20
mov ecx, eax
call fcn.0040cea0
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [esp + 0x14], 0
je 0x40b2e3
push 0x10000
push str.ObHook
push edi
call ebx
mov esi, eax
test esi, esi
je 0x40b2e3
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40b2dc
call ebp
push eax
push str.Couldnt_del_service_ObHook__0x_x
mov ecx, 0x457c84
call fcn.0040cd20
mov ecx, eax
call fcn.0040cea0
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x10000
push str.ObSec
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x40b319
call ebp
push eax
push str.ObSec
push str.Couldnt_open_service__s__0x_x
mov ecx, 0x457c84
call fcn.0040cd20
mov ecx, eax
call fcn.0040cea0
add esp, 0xc
jmp 0x40b34c
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40b345
call ebp
push eax
push str.ObSec
push str.Couldnt_del_service__s__0x_x
mov ecx, 0x457c84
call fcn.0040cd20
mov ecx, eax
call fcn.0040cea0
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x10000
push str.SClientSvc
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x40b389
call ebp
cmp eax, 0x424
je 0x40b3bc
push eax
push str.SClientSvc
push str.Couldnt_open_service__s__0x_x
mov ecx, 0x457c84
call fcn.0040cd20
mov ecx, eax
call fcn.0040cea0
add esp, 0xc
jmp 0x40b3bc
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40b3b5
call ebp
push eax
push str.SClientSvc
push str.Couldnt_del_service__s__0x_x
mov ecx, 0x457c84
call fcn.0040cd20
mov ecx, eax
call fcn.0040cea0
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
ret 4
Function at 0x40b3e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x14
push ebp
xor ebp, ebp
neg eax
sbb eax, eax
lea ecx, [esp + 8]
push ecx
and eax, 0x100
add eax, 0xf003f
push eax
push ebp
push str.SystemCurrentControlSetControlGroupOrderList
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 3
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b513
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea edx, [esp + 0x10]
push edx
push ebp
lea eax, [esp + 0x20]
push eax
push ebp
push str.Filter
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call fcn.00414567
mov edx, dword [esp + 0x18]
add esp, 4
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x20]
push ecx
push ebp
push str.Filter
push edx
xor edi, edi
call esi
test eax, eax
jne 0x40b501
mov eax, dword [esp + 0x10]
add eax, 0xfffffffc
push eax
mov dword [esp + 0x24], eax
call fcn.00414567
mov esi, dword [ebx]
mov edi, eax
lea eax, [ebp + 1]
add esp, 4
lea ecx, [esi - 1]
cmp esi, eax
jb 0x40b4a9
mov edx, dword [esp + 0x28]
cmp dword [ebx + eax*4], edx
je 0x40b4a7
inc eax
cmp eax, esi
jbe 0x40b497
jmp 0x40b4a9
mov ebp, eax
lea eax, [ebp*4 - 4]
mov dword [edi], ecx
push eax
lea ecx, [ebx + 4]
push ecx
lea edx, [edi + 4]
push edx
call fcn.00434fc0
sub esi, ebp
add esi, esi
add esi, esi
push esi
lea eax, [ebx + ebp*4 + 4]
push eax
lea ecx, [edi + ebp*4]
push ecx
call fcn.00434fc0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
add esp, 0x18
push edx
push edi
push eax
push 0
push str.Filter
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40b501
mov dword [esp + 0x1c], 1
push ebx
call fcn.0041455c
push edi
call fcn.0041455c
add esp, 8
pop edi
pop esi
pop ebx
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop ebp
add esp, 0x14
ret 4