Function at 0x43dc06
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.0043bfab
test eax, eax
je 0x43dc2e
xor eax, eax
jmp 0x43dddb
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 0x43dc69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jle 0x43dc61
and esi, 0xffff
or esi, 0x80070000
push esi
push 0x43e400
jmp 0x43dcb8
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 0x43dcc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jle 0x43dcb2
and esi, 0xffff
or esi, 0x80070000
push esi
push 0x43e380
push 1
call fcn.004015a0
add esp, 0xc
mov eax, esi
jmp 0x43ddd9
push ebx
push 0x43e344
push 0x43e334
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 0x43de14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ebx, 0x80070000
test edi, edi
jle 0x43dd28
and edi, 0xffff
or edi, ebx
cmp edi, 0x80070431
jne 0x43dde8
push 0x43e2c8
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 0x405488
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 0x43dd9f
push dword [ebp - 0x224]
call fcn.0047c311
push 0x4148f8
call fcn.0047c708
cmp eax, ebx
jge 0x43ddbc
push eax
push 0x43e248
push esi
call fcn.004015a0
add esp, 0xc
cmp dword [ebp - 0x210], ebx
je 0x43ddcc
push dword [ebp - 0x210]
call edi
lea ecx, [ebp - 0x224]
call fcn.004030f0
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 0x43ddf4
and edi, 0xffff
or edi, ebx
push edi
push 0x43e1d0
push esi
call fcn.004015a0
add esp, 0xc
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x43df79
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 0x43de5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43de4b
and eax, 0xffff
or eax, ebx
push eax
push 0x43e148
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, 0x40be3c
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 0x43dee6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43ded7
and eax, 0xffff
or eax, ebx
push eax
push 0x43e148
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 0x43df1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x43df15
and edi, 0xffff
or edi, ebx
push edi
push 0x43e0b8
jmp 0x43df5a
lea eax, [ebp - 0x218]
push eax
push 6
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0x43e028
call edi
test eax, eax
jne 0x43dd41
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x43df54
and edi, 0xffff
or edi, ebx
push edi
push 0x43df80
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 0x43ddd9