Function at 0x1032b0a
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
mov eax, 0x108d952
call fcn.01027038
sub esp, 0x26c
mov eax, dword [0x10a1e18]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0xf003f
push ebx
push ebx
mov dword [ebp - 0x10], eax
mov esi, ecx
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x220], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [ebp - 0x228], eax
je 0x1032d78
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x240], ebx
cmp edi, ebx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x218]
je 0x1032ba4
push edi
push 0x100a788
push eax
mov dword [ebp - 0x21c], 0x20
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
jmp 0x1032bbb
push 0x104
push eax
push ebx
mov dword [ebp - 0x21c], 0x10
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
lea eax, [ebp - 0x23c]
push eax
push dword [esi + 0x9c]
call fcn.0101d528
test eax, eax
jge 0x1032be3
push dword [esi + 0x98]
lea ecx, [ebp - 0x23c]
call fcn.0101a536
push ebx
lea eax, [ebp - 0x24c]
push eax
push dword [esi + 0xa0]
call fcn.0101d528
xor edi, edi
inc edi
push edi
push dword [esi + 0x98]
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, ebx
mov dword [ebp - 0x224], eax
jne 0x1032c64
mov eax, dword [ebp - 0x238]
cmp eax, ebx
jne 0x1032c25
mov eax, 0x1001eb0
push ebx
push ebx
push 0x100a778
push ebx
push ebx
lea ecx, [ebp - 0x218]
push ecx
push edi
push 2
push dword [ebp - 0x21c]
push 0xf01ff
push eax
push dword [esi + 0x98]
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, ebx
mov dword [ebp - 0x224], eax
je 0x1032d3e
cmp dword [ebp - 0x244], ebx
je 0x1032d0b
xor eax, eax
lea edi, [ebp - 0x278]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x64
pop eax
xor ecx, ecx
inc ecx
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x250], eax
mov eax, dword [ebp - 0x248]
cmp eax, ebx
mov dword [ebp - 0x264], ecx
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x21c], 0x1001eb0
je 0x1032cc1
mov dword [ebp - 0x21c], eax
mov edi, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
lea eax, [ebp - 0x264]
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x21c]
push eax
push ecx
push dword [ebp - 0x224]
mov dword [ebp - 0x278], 0x15180
mov dword [ebp - 0x26c], 3
call edi
lea eax, [ebp - 0x278]
push eax
push 2
push dword [ebp - 0x224]
call edi
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x22c]
cmp ecx, ebx
je 0x1032d24
push dword [esi + 0x98]
call fcn.010328d4
test eax, eax
jl 0x1032d2a
mov dword [ebp - 0x220], edi
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x220], ebx
jne 0x1032d52
push ebx
push 0xc0004001
push edi
push 0x10a6b58
call fcn.01025c81
add esp, 0x10
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
lea ecx, [ebp - 0x24c]
call fcn.0101937d
push edi
lea ecx, [ebp - 0x23c]
call fcn.0101937d
jmp 0x1032d8d
push ebx
push 0xc0004000
push 1
push 0x10a6b58
call fcn.01025c81
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x220]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0101cfd1
leave
ret 4