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

Disassembly:
mov eax, 0x108d7e7
call fcn.01026ef8
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 0x1032b7a
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 0x10329a6
push edi
push 0x100a748
push eax
mov dword [ebp - 0x21c], 0x20
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
jmp 0x10329bd
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.0101d495
test eax, eax
jge 0x10329e5
push dword [esi + 0x98]
lea ecx, [ebp - 0x23c]
call fcn.0101a4bd
push ebx
lea eax, [ebp - 0x24c]
push eax
push dword [esi + 0xa0]
call fcn.0101d495
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 0x1032a66
mov eax, dword [ebp - 0x238]
cmp eax, ebx
jne 0x1032a27
mov eax, 0x1001ea8
push ebx
push ebx
push 0x100a738
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 0x1032b40
cmp dword [ebp - 0x244], ebx
je 0x1032b0d
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], 0x1001ea8
je 0x1032ac3
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 0x1032b26
push dword [esi + 0x98]
call fcn.010326d6
test eax, eax
jl 0x1032b2c
mov dword [ebp - 0x220], edi
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x220], ebx
jne 0x1032b54
push ebx
push 0xc0004001
push edi
push 0x10a6b50
call fcn.01025b8f
add esp, 0x10
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
lea ecx, [ebp - 0x24c]
call fcn.0101930d
push edi
lea ecx, [ebp - 0x23c]
call fcn.0101930d
jmp 0x1032b8f
push ebx
push 0xc0004000
push 1
push 0x10a6b50
call fcn.01025b8f
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.0101cf4f
leave
ret 4