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

Disassembly:
sub esp, 0xa0c
mov ecx, 0x41
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, 0x42274c
push 0x42274c
rep stosd dword es:[edi], eax
push 0x4202c0
call fcn.004035f0
mov ecx, 0x20
xor eax, eax
mov edi, 0x41c098
push 0x42274c
rep stosd dword es:[edi], eax
mov edi, 0x42274c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4206c0
mov eax, ecx
mov esi, edi
mov edi, 0x41c098
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
mov edi, 0x42274c
rep stosd dword es:[edi], eax
call fcn.004035f0
mov ecx, 0x20
xor eax, eax
mov edi, 0x41c018
push 0x42274c
rep stosd dword es:[edi], eax
mov edi, 0x42274c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x420ac0
mov edx, ecx
mov esi, edi
mov edi, 0x41c018
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
mov edi, 0x42274c
rep stosd dword es:[edi], eax
call fcn.004035f0
mov ecx, 0x100
xor eax, eax
mov edi, 0x41bc18
lea edx, [esp + 0x234]
rep stosd dword es:[edi], eax
mov edi, 0x42274c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x41bc18
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x200
lea edi, [esp + 0x234]
rep stosd dword es:[edi], eax
mov edi, 0x41c098
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x82
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x238]
push ecx
call fcn.004012c0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
push ecx
push str.svrkind
push 0x422954
push 0x80000002
call fcn.00401420
mov edi, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
add esp, 0x30
push 2
push 0
push 0
call edi
mov esi, eax
test esi, esi
je 0x403f77
push 0xf01ff
push 0x41c098
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
je 0x403ee8
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0c
ret
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call ebx
xor ebp, ebp
push 2
push ebp
push ebp
call edi
mov edi, eax
test edi, edi
je 0x403f77
push 0x422544
call fcn.004014d0
add esp, 4
test eax, eax
jne 0x403f1e
push edi
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0c
ret
push 0
push 0
push 0
push 0
push 0
push 0x422544
push 0
push 2
push 0x10
push 0x42
push 0x41c018
push 0x41c098
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
je 0x403f6a
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0x41bc18
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push esi
call ebx
mov ebp, 1
push edi
call ebx
cmp ebp, 1
jne 0x403f77
call fcn.00403f90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0c
ret