Function at 0x43daf6
Capabilities:
Create service
Modify service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
call fcn.0043be9b
test eax, eax
je 0x43db1e
xor eax, eax
jmp 0x43dccb
push ebx
push esi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x214], eax
cmp eax, ebx
jne 0x43db59
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jle 0x43db51
and esi, 0xffff
or esi, 0x80070000
push esi
push 0x43e2f0
jmp 0x43dba8
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x4841f0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x43dbb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jle 0x43dba2
and esi, 0xffff
or esi, 0x80070000
push esi
push 0x43e270
push 1
call fcn.004015a0
add esp, 0xc
mov eax, esi
jmp 0x43dcc9
push ebx
push 0x43e234
push 0x43e224
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
xor esi, esi
inc esi
push esi
push 3
push 0x10
push 0xf01ff
lea eax, [edi + 0x25c]
push eax
lea eax, [edi + 0x5c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x210], eax
cmp eax, ebx
jne 0x43dd04
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ebx, 0x80070000
test edi, edi
jle 0x43dc18
and edi, 0xffff
or edi, ebx
cmp edi, 0x80070431
jne 0x43dcd8
push 0x43e1b8
push esi
call fcn.004015a0
pop ecx
pop ecx
push dword [ebp - 0x214]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
xor ebx, ebx
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x224]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x4066e0
push 0x80000002
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x230], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x43dc8f
push dword [ebp - 0x224]
call fcn.0047c239
push 0x413ef0
call fcn.0047c630
cmp eax, ebx
jge 0x43dcac
push eax
push 0x43e138
push esi
call fcn.004015a0
add esp, 0xc
cmp dword [ebp - 0x210], ebx
je 0x43dcbc
push dword [ebp - 0x210]
call edi
lea ecx, [ebp - 0x224]
call fcn.00403d1d
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00401580
leave
ret
test edi, edi
jle 0x43dce4
and edi, 0xffff
or edi, ebx
push edi
push 0x43e0c0
push esi
call fcn.004015a0
add esp, 0xc
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x43de69
lea ecx, [ebp - 0x228]
push ecx
add edi, 0x45c
push esi
mov dword [ebp - 0x228], edi
mov edi, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push eax
call edi
mov ebx, 0x80070000
test eax, eax
jne 0x43dd4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43dd3b
and eax, 0xffff
or eax, ebx
push eax
push 0x43e038
push esi
call fcn.004015a0
add esp, 0xc
and dword [ebp - 0x24c], 0
mov eax, 0x1388
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x248], eax
mov eax, 0x40b46c
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x244]
push eax
push 2
push dword [ebp - 0x210]
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x238], 3
call edi
test eax, eax
jne 0x43ddd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43ddc7
and eax, 0xffff
or eax, ebx
push eax
push 0x43e038
push esi
call fcn.004015a0
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
push 5
push dword [ebp - 0x210]
mov dword [ebp - 0x22c], esi
call edi
test eax, eax
jne 0x43de0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x43de05
and edi, 0xffff
or edi, ebx
push edi
push 0x43dfa8
jmp 0x43de4a
lea eax, [ebp - 0x218]
push eax
push 6
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0x43df18
call edi
test eax, eax
jne 0x43dc31
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x43de44
and edi, 0xffff
or edi, ebx
push edi
push 0x43de70
push esi
call fcn.004015a0
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 0xc
push dword [ebp - 0x210]
call esi
push dword [ebp - 0x214]
call esi
mov eax, edi
jmp 0x43dcc9