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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
xor edx, edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x10], edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x45324a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x30]
xor eax, eax
call fcn.00403260
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, 0x453260
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x2c]
mov ecx, 1
mov eax, 0x453270
call fcn.0040c3d0
mov edx, 0x45327c
mov cl, 1
mov eax, 0x4532a4
call fcn.00410894
test al, al
jne 0x452e8d
cmp byte [ebp - 1], 0
je 0x452e8d
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 1]
call fcn.004517ec
test al, al
jne 0x452e8d
mov ecx, 0x4532b4
mov dl, 1
mov eax, dword [0x409d2c]
call fcn.0040f260
call fcn.0040426c
mov eax, dword [0x462080]
cmp dword [eax], 2
jne 0x4530e3
push 2
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x452ee2
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x3c]
call fcn.0040ea48
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0xb
lea eax, [ebp - 0x38]
push eax
push 0
mov ecx, 0x4532f4
mov dl, 1
mov eax, dword [0x409d2c]
call fcn.0040f29c
call fcn.0040426c
xor eax, eax
push ebp
push 0x4530dc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
push 0x45332c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x452fab
xor eax, eax
push ebp
push 0x452f75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x452f5e
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x40]
call fcn.0040ea48
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0xb
lea eax, [ebp - 0x38]
push eax
push 0
mov ecx, 0x453340
mov dl, 1
mov eax, dword [0x409d2c]
call fcn.0040f29c
call fcn.0040426c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452f7c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
cmp byte [ebp - 1], 0
je 0x4530be
mov ebx, 0x10
mov eax, dword [0x461d90]
cmp dword [eax], 6
jge 0x452fc9
mov ebx, 0x110
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
call fcn.00404d94
push eax
push 1
push 2
push ebx
push 0xf01ff
push 0x453374
push 0x45332c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x453041
mov eax, 0x45339c
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x44]
call fcn.0040ea48
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea eax, [ebp - 0x2c]
push eax
push 1
mov ecx, 0x4533c4
mov dl, 1
mov eax, dword [0x409d2c]
call fcn.0040f29c
call fcn.0040426c
push 0x4533f0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4672d0], eax
cmp dword [0x4672d0], 0
jne 0x45305e
call fcn.004109ac
push 0x453400
mov eax, dword [0x4672d0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
mov dword [0x4672d8], ebx
test ebx, ebx
je 0x4530a9
mov eax, 0x453418
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 1
mov eax, dword [ebp - 0xc]
push eax
call dword [0x4672d8]
mov dword [ebp - 0x1c], 0xdbba00
lea eax, [ebp - 0x1c]
push eax
push 7
mov eax, dword [ebp - 0xc]
push eax
call dword [0x4672d8]
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, 0xdbba00
call fcn.00450ee0
jmp 0x4530c5
xor eax, eax
call fcn.00450ee0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453214
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
cmp byte [ebp - 1], 0
je 0x453190
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push 0x45344c
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x45314c
mov eax, dword [ebp - 0x10]
call fcn.00404b94
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404d94
push eax
push 1
push 0
push 0x45332c
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
jne 0x45314c
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
test eax, eax
je 0x453214
mov eax, 0x45339c
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x48]
call fcn.0040ea48
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea eax, [ebp - 0x2c]
push eax
push 1
mov ecx, 0x45348c
mov dl, 1
mov eax, dword [0x409d2c]
call fcn.0040f29c
call fcn.0040426c
jmp 0x453214
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x45344c
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x4531d5
push 0x45332c
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
jne 0x4531d5
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
test eax, eax
je 0x453214
mov eax, 0x45339c
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x4c]
call fcn.0040ea48
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea eax, [ebp - 0x2c]
push eax
push 1
mov ecx, 0x4534d8
mov dl, 1
mov eax, dword [0x409d2c]
call fcn.0040f29c
call fcn.0040426c
cmp byte [ebp - 1], 0
je 0x45321f
call fcn.00440060
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453251
lea eax, [ebp - 0x4c]
mov edx, 5
call fcn.004048dc
lea eax, [ebp - 0x30]
call fcn.004048b8
lea eax, [ebp - 0x10]
call fcn.004048b8
ret