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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x45c088
push 0x439ec0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x12e8
call fcn.00439e90
mov eax, dword [0x45f478]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x12f0], eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1300], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x40b263
mov byte [edi], 0
mov byte [ebp - 0xdc], 0
push 0x7f
push 0
lea eax, [ebp - 0xdb]
push eax
call fcn.0043a6b0
mov byte [ebp - 0x2e8], 0
push 0x209
push 0
lea eax, [ebp - 0x2e7]
push eax
call fcn.0043a6b0
mov byte [ebp - 0x5c], 0
push 0x3f
push 0
lea eax, [ebp - 0x5b]
push eax
call fcn.0043a6b0
add esp, 0x24
mov dword [ebp - 0x12fc], esi
push str.GetModuleFileName
lea eax, [ebp - 0x5c]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call esi
test eax, eax
je 0x40b40d
push 0x20a
lea eax, [ebp - 0x2e8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40b40d
push str.__service
lea eax, [ebp - 0x2e8]
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
call ebx
test eax, eax
je 0x40b413
push str.get_module_name
lea eax, [ebp - 0x5c]
push eax
call esi
test eax, eax
je 0x40b413
push 0
push 0
lea eax, [ebp - 0xdc]
push eax
call fcn.00404250
add esp, 0xc
test al, al
je 0x40b413
push str.OpenSCManager
lea eax, [ebp - 0x5c]
push eax
call esi
test eax, eax
je 0x40b413
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x12f4], eax
test eax, eax
je 0x40b413
push str.CreateService
lea eax, [ebp - 0x5c]
push eax
call esi
test eax, eax
je 0x40b413
lea eax, [ebp - 0xdc]
mov ecx, dword [ebp - 0x12f0]
test ecx, ecx
cmovne eax, ecx
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x2e8]
push ecx
push 0
push 3
push 0x110
push 2
push eax
push eax
push dword [ebp - 0x12f4]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x12f0], eax
test eax, eax
je 0x40b413
push str.ChangeServiceConfig2
lea eax, [ebp - 0x5c]
push eax
call esi
test eax, eax
je 0x40b413
lea eax, [ebp - 0x12fc]
push eax
push 1
push dword [ebp - 0x12f0]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
test eax, eax
je 0x40b413
push 0x44acd4
lea eax, [ebp - 0x5c]
push eax
call esi
test eax, eax
je 0x40b413
push dword [ebp - 0x12f0]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
test eax, eax
je 0x40b413
push dword [ebp - 0x12f4]
call esi
test eax, eax
jne 0x40b492
jmp 0x40b413
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
test edi, edi
je 0x40b481
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 0x12e8], 0
push 0xfff
push 0
lea eax, [ebp - 0x12e7]
push eax
call fcn.0043a6b0
lea eax, [ebp - 0x12e8]
push eax
push esi
call fcn.0040c5d0
add esp, 0x14
lea eax, [ebp - 0x5c]
push eax
push edi
call ebx
push str._completed_with_unsuccess._r_n_r_ncommon_environment_state_:_r_n_r_nthreads_last_error_code_value_is
push edi
call ebx
push 0xa
push 0xc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, edi
push eax
push esi
call fcn.0043971d
add esp, 0x10
push 0x44b880
push edi
call ebx
lea eax, [ebp - 0x12e8]
push eax
push edi
call ebx
push 0
push 0
push 0
push 0x60000001
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov al, 1
jmp 0x40b4e5
mov byte [ebp - 0x12e9], al
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00439a01
mov esp, ebp
pop ebp
ret