Function at 0x4070b0
Capabilities:
Create service
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x586d21
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x600f80]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push esi
push edi
mov eax, dword [0x600f80]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x10], ebx
mov esi, dword [ebp + 8]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x407362
lea eax, [esp + 0x7c]
test esi, esi
je 0x40712d
push 0xffffffffffffffff
push esi
push 0x104
push eax
call fcn.0053e40b
add esp, 0x10
jmp 0x40713b
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 1
push 0x5db650
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
call fcn.004085a0
lea eax, [esp + 0x7c]
mov dword [esp + 0x2a0], 0
push eax
lea edx, [esp + 0x18]
lea ecx, [esp + 0x30]
call fcn.00408ab0
push 0x22
mov edx, eax
mov byte [esp + 0x2a8], 1
lea ecx, [esp + 0x6c]
call fcn.00408b00
add esp, 8
cmp dword [esp + 0x40], 0x10
jb 0x4071a8
push dword [esp + 0x2c]
call fcn.0053e195
add esp, 4
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
mov byte [esp + 0x2a0], 4
cmp dword [esp + 0x28], 0x10
jb 0x4071d8
push dword [esp + 0x14]
call fcn.0053e195
add esp, 4
lea ecx, [esp + 0x44]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.00406c00
cmp dword [esp + 0x78], 0x10
lea ecx, [esp + 0x64]
cmovae ecx, dword [esp + 0x64]
cmp dword [eax + 0x14], 0x10
jb 0x40720c
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push 0
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push eax
lea esi, [ebx + 4]
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp dword [esp + 0x58], 0x10
mov ebx, eax
jb 0x407243
push dword [esp + 0x44]
call fcn.0053e195
add esp, 4
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
test ebx, ebx
jne 0x40726a
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
jmp 0x40734d
push 0xffffffffffffffff
push str.SYSTEMCurrentControlSetServicesEventLogApplication_
lea eax, [esp + 0x18c]
mov dword [esp + 0x64], 0
push 0x104
push eax
call fcn.0053e40b
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x19c]
push 0x104
push eax
call fcn.0053d744
add esp, 0x20
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x188]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4072cf
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push edi
call esi
xor esi, esi
jmp 0x40734d
lea ecx, [esp + 0x7c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4072d6
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [esp + 0x80]
push eax
push 2
push 0
push str.EventMessageFile
push dword [esp + 0x70]
call esi
push 4
lea eax, [esp + 0x64]
mov dword [esp + 0x64], 7
push eax
push 4
push 0
push str.TypesSupported
push dword [esp + 0x70]
call esi
push dword [esp + 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
sub esp, 8
lea eax, [ecx + 4]
push eax
push 0x64
push 4
call fcn.00407420
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push edi
call esi
mov esi, 1
cmp dword [esp + 0x78], 0x10
jb 0x407360
push dword [esp + 0x64]
call fcn.0053e195
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret 4