joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ef20
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x447b68
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4650f0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2c]
mov ebx, 1
cmp dword [eax - 4], ebx
mov dword [esp + 0x20], 2
mov ebp, 0x2bc
jle 0x40ef71
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x30]
call fcn.00401df0
mov eax, dword [esp + 0x2c]
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40eff3
mov eax, dword [esp + 0x3c]
cmp dword [eax - 4], ebx
mov edi, dword [eax - 0xc]
jle 0x40efb1
mov edx, edi
push edx
lea ecx, [esp + 0x40]
call fcn.00401df0
mov eax, dword [esp + 0x3c]
mov esi, eax
mov eax, dword [esp + 0x34]
cmp dword [eax - 4], ebx
jle 0x40efcd
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x38]
call fcn.00401df0
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
lea ecx, [edi + edi + 2]
push ecx
push esi
push ebx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40efe8
xor ebp, ebp
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], bl
call fcn.00411520
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], 0
call fcn.00411520
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], 0xffffffff
call fcn.00411520
mov eax, ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x18
Function at 0x40f040
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x447ba0
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4650f0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x20]
mov esi, 1
cmp dword [eax - 4], esi
mov dword [esp + 0x14], esi
jle 0x40f085
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x24]
call fcn.00401df0
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40f0e0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 0
call fcn.00411520
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], 0xffffffff
call fcn.00411520
mov eax, 0x2bd
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x14
mov eax, dword [esp + 0x28]
cmp dword [eax - 4], esi
jle 0x40f0fa
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x2c]
call fcn.00401df0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 8]
push 4
lea ecx, [esp + 0x30]
push ecx
push 4
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov esi, 0x2bf
jne 0x40f11c
xor esi, esi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 0
call fcn.00411520
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], 0xffffffff
call fcn.00411520
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x14

Function at 0x40f160
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x447ba0
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4650f0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], 1
mov dword [esp + 0x14], 1
mov esi, 0x2bc
jle 0x40f1aa
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x24]
call fcn.00401df0
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40f214
mov eax, dword [esp + 0x28]
cmp dword [eax - 4], 1
jle 0x40f1e9
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x2c]
call fcn.00401df0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
push 3
push 0
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40f209
xor esi, esi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 0
call fcn.00411520
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], 0xffffffff
call fcn.00411520
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x18
Function at 0x40f250
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x447bd0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4650f0]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1c]
cmp dword [eax - 4], 1
mov dword [esp + 0x10], 1
jle 0x40f294
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x20]
call fcn.00401df0
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 4]
push ecx
push 0x10000
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40f2e6
lea ecx, [esp + 0x18]
mov byte [esp + 0x10], 0
call fcn.00411520
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], 0xffffffff
call fcn.00411520
mov eax, 0x2bc
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret 0x10
mov eax, dword [esp + 0x24]
cmp dword [eax - 4], 1
jle 0x40f301
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x28]
call fcn.00401df0
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
mov byte [esp + 0x10], 0
lea ecx, [esp + 0x18]
je 0x40f347
call fcn.00411520
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], 0xffffffff
call fcn.00411520
mov eax, 0x2bf
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret 0x10
call fcn.00411520
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], 0xffffffff
call fcn.00411520
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret 0x10
Function at 0x40f380
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x447c00
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
mov eax, dword [0x4650f0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2c]
mov esi, 1
cmp dword [eax - 4], esi
mov dword [esp + 0x20], esi
mov ebp, 0x2bc
jle 0x40f3cd
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x30]
call fcn.00401df0
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
push ecx
push esi
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f470
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], 4
cmp dword [eax - 4], esi
jle 0x40f40f
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x38]
call fcn.00401df0
mov eax, dword [esp + 0x34]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0xc]
push ecx
push 0
lea edx, [esp + 0x18]
push edx
push 0
push eax
mov eax, dword [esp + 0x28]
push eax
call esi
test eax, eax
jne 0x40f465
cmp dword [esp + 0x10], 4
jne 0x40f465
cmp dword [esp + 0xc], 4
jne 0x40f465
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0xc]
push ecx
push edx
lea eax, [esp + 0x18]
push eax
push 0
lea ecx, [esp + 0x40]
call fcn.0040ef00
mov ecx, dword [esp + 0x24]
push eax
push ecx
call esi
test eax, eax
jne 0x40f465
xor ebp, ebp
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 0
call fcn.00411520
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], 0xffffffff
call fcn.00411520
mov eax, ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x18
ret 0x14
Function at 0x40f4b0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x447b68
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4650f0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2c]
mov ebx, 1
cmp dword [eax - 4], ebx
mov dword [esp + 0x20], 2
mov ebp, 0x2bc
jle 0x40f501
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x30]
call fcn.00401df0
mov eax, dword [esp + 0x2c]
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40f583
mov eax, dword [esp + 0x3c]
cmp dword [eax - 4], ebx
mov edi, dword [eax - 0xc]
jle 0x40f541
mov edx, edi
push edx
lea ecx, [esp + 0x40]
call fcn.00401df0
mov eax, dword [esp + 0x3c]
mov esi, eax
mov eax, dword [esp + 0x34]
cmp dword [eax - 4], ebx
jle 0x40f55d
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x38]
call fcn.00401df0
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
lea ecx, [edi + edi + 2]
push ecx
push esi
push ebx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40f578
xor ebp, ebp
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], bl
call fcn.00411520
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], 0
call fcn.00411520
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], 0xffffffff
call fcn.00411520
mov eax, ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x18

Function at 0x40f5d0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x447ba0
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x4650f0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], 1
mov dword [esp + 0x14], 1
mov edi, 0x2bc
jle 0x40f61a
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x24]
call fcn.00401df0
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40f681
mov eax, dword [esp + 0x28]
cmp dword [eax - 4], 1
jle 0x40f659
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x2c]
call fcn.00401df0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 8]
push 4
lea ecx, [esp + 0x30]
push ecx
push 4
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40f676
xor edi, edi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 0
call fcn.00411520
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], 0xffffffff
call fcn.00411520
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x10
ret 0x14
Function at 0x4100b0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x447d08
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4650f0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [esp + 0x48]
mov esi, 1
cmp dword [eax - 4], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x20], 0x2bc
jle 0x410102
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x4c]
call fcn.00401df0
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x1c]
push ecx
push esi
xor ebx, ebx
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x410143
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], bl
call fcn.00411520
lea ecx, [esp + 0x4c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00411520
mov eax, 0x2bc
jmp 0x410250
mov eax, dword [esp + 0x50]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
cmp dword [eax - 4], esi
jle 0x410165
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x54]
call fcn.00401df0
mov eax, dword [esp + 0x50]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x14]
push ecx
push ebx
lea edx, [esp + 0x20]
push edx
push ebx
push eax
mov eax, dword [esp + 0x30]
push eax
call ebp
cmp eax, ebx
jne 0x410223
cmp dword [esp + 0x18], esi
jne 0x410223
mov eax, dword [esp + 0x14]
cmp eax, ebx
jbe 0x410223
lea edi, [eax + eax]
push edi
mov dword [esp + 0x28], vtable.CPMemBlock_unsigned_short_int_.0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], eax
call dword [0x46436c]
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0x30], esi
je 0x4101cf
push edi
push ebx
push esi
call fcn.00433810
add esp, 0xc
cmp esi, ebx
mov byte [esp + 0x3c], 2
je 0x410210
lea ecx, [esp + 0x14]
push ecx
push esi
lea edx, [esp + 0x20]
push edx
push ebx
lea ecx, [esp + 0x5c]
call fcn.0040ef00
push eax
mov eax, dword [esp + 0x30]
push eax
call ebp
cmp eax, ebx
jne 0x410210
mov ecx, dword [esp + 0x14]
mov word [esi + ecx*2 - 2], bx
mov ecx, dword [esp + 0x54]
push esi
call fcn.0040fd30
mov dword [esp + 0x20], ebx
cmp esi, ebx
mov byte [esp + 0x3c], 1
je 0x410223
push esi
call dword [0x464370]
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], bl
call fcn.00411520
lea ecx, [esp + 0x4c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00411520
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x14
Function at 0x410270
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x45d430
push 0x433c60
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x4650f0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0x7530
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 1
mov edi, dword [ebp + 0xc]
push edi
mov ebx, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
call ebx
test eax, eax
jne 0x41045c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x41032b
mov edx, dword [ebp - 0x1c]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
je 0x41032b
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push esi
push 1
push edi
call ebx
test eax, eax
jne 0x41033f
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x4650f0
call fcn.00433df8
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov dword [ebp - 0x24], ebx
cmp ebx, dword [ebp - 0x20]
jae 0x410450
lea ecx, [ebx + ebx*8]
lea esi, [esi + ecx*4]
mov ecx, 9
lea edi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
push 0x24
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x34], esi
test esi, esi
jne 0x41039d
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x4650f0
call fcn.00433df8
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
mov dword [ebp - 4], edi
lea edx, [ebp - 0x58]
push edx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x410318
lea esp, [esp]
cmp dword [ebp - 0x54], edi
je 0x410420
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x1c]
push edx
push 0x24
lea eax, [ebp - 0x58]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x410376
cmp dword [ebp - 0x54], edi
je 0x410420
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x30]
jbe 0x4103c0
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x4650f0
call fcn.00433df8
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
call fcn.00410444
add ebx, edi
mov dword [ebp - 0x24], ebx
mov esi, dword [ebp - 0x28]
jmp 0x410344
mov dword [ebp - 4], 0xfffffffe
call fcn.00410476
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410490
Capabilities:
Delete service

Disassembly:
push 0xffffffffffffffff
push 0x448728
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4650f0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
push 0xf003f
push 0
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x41050a
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], 1
jle 0x4104ea
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x24]
call fcn.00401df0
mov eax, dword [esp + 0x20]
push 0x10000
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x410532
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.00411520
mov eax, 0x64
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x410551
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
jmp 0x41050a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.00411520
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret
Function at 0x4107d0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x447d78
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4650f0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x38]
push 0xf003f
push 0
push 0
mov dword [esp + 0x34], 0
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x410876
mov eax, dword [esp + 0x34]
mov ebx, 1
cmp dword [eax - 4], ebx
jle 0x41083c
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x38]
call fcn.00401df0
mov eax, dword [esp + 0x34]
push 0x80000000
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
jne 0x410917
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
mov dword [esp + 0x38], eax
jg 0x41089f
je 0x41086f
sub eax, 5
je 0x41086d
sub eax, ebx
je 0x41086f
jmp 0x4108a6
mov dword [esi], ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.00411520
mov eax, 0x64
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
cmp eax, 0x424
je 0x41090e
push str.OpenService_Error
lea ecx, [esp + 0x1c]
call fcn.004010e0
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x14]
push edx
mov ecx, eax
mov byte [esp + 0x30], bl
call fcn.00401270
lea esi, [eax + 4]
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], ebx
mov byte [esp + 0x28], 2
jle 0x4108e6
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00401df0
mov esi, dword [esi]
push esi
push 2
call fcn.00411380
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.00411520
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 0
call fcn.00411520
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x410925
mov dword [esi], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push edi
call esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.00411520
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x411b50
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x447f40
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x4650f0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [ebp + 4]
mov eax, dword [eax - 0xc]
test eax, eax
lea edi, [ebp + 4]
jne 0x411b9f
mov eax, 0x64
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 0x10
mov ecx, dword [esp + 0x38]
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x411b85
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x411b85
push ecx
push eax
call fcn.00434199
add esp, 8
test eax, eax
je 0x411b85
sub eax, dword [edi]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x411b85
mov edx, dword [edi]
cmp esi, dword [edx - 0xc]
jne 0x411c0a
mov ecx, dword [esp + 0x30]
push edi
add ecx, 4
call fcn.00401d00
mov ecx, dword [esp + 0x34]
push 0x458581
add ecx, 4
call fcn.00401be0
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 0x10
push esi
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
call fcn.004083b0
mov ecx, dword [edi]
mov eax, dword [ecx - 0xc]
mov edx, dword [esp + 0x38]
mov ecx, dword [edx + 4]
mov ecx, dword [ecx - 0xc]
xor edx, edx
cmp dword [esp + 0x3c], edx
mov dword [esp + 0x28], 0
setne dl
sub eax, edx
sub eax, ecx
sub eax, esi
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
call fcn.004084a0
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x1c]
add ecx, 4
push edx
mov byte [esp + 0x2c], 1
call fcn.00401d00
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x14]
add ecx, 4
push eax
call fcn.00401d00
mov eax, dword [esp + 0x14]
mov esi, vtable.CPString.0
add eax, 0xfffffff0
mov byte [esp + 0x28], 0
mov dword [esp + 0x10], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411c9f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x18], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411ccb
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
add esp, 0x1c
ret 0x10
Function at 0x4127c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x448120
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4650f0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
lea edx, [esp + 8]
push edx
mov dword [esp + 0x1c], 0
call eax
sub esp, 8
mov ecx, esp
mov dword [esp + 0xc], esp
lea edx, [esp + 0x28]
push edx
push ecx
mov ecx, eax
mov byte [esp + 0x28], 1
call fcn.004011f0
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
call edx
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call fcn.00411520
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.00411520
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
add esp, 0x18
ret 0xc

Function at 0x412960
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x44817b
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4650f0]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
mov eax, dword [0x4650f0]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x230]
neg eax
lea ecx, [esp + 0x14]
push ecx
sbb eax, eax
push 0
and eax, 9
push 0
add eax, 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4129c8
mov eax, 0x66
jmp 0x412a11
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0xc]
call fcn.004010e0
sub esp, 8
lea eax, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
mov dword [esp + 0x234], 0
call fcn.00401050
mov ecx, esi
call fcn.004121c0
lea ecx, [esp + 8]
mov dword [esp + 0x228], 0xffffffff
call fcn.00411520
xor eax, eax
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00433122
add esp, 0x224
ret 4