Function at 0x47ad0
Capabilities:
Modify service
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x13
push 0
push 0
dec ecx
jne 0x47ad8
push ecx
push ebx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47fbf
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov edx, 0x47fd8
call fcn.00013f18
mov eax, 0x800
call fcn.00019220
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x20], eax
xor ecx, ecx
push ebp
push 0x47f92
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0x20]
push eax
mov eax, dword [0x2a9118]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
mov eax, dword [ebp - 0x18]
call fcn.00014090
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
jne 0x47f2d
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x47ffc
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.000189b4
mov ebx, eax
test ebx, ebx
jne 0x47cce
cmp dword [ebp - 0x28], 0
jbe 0x47cfd
mov eax, dword [ebp - 0xc]
call fcn.00018994
cmp eax, dword [ebp - 0x28]
jbe 0x47cfd
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0001899c
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x18]
call fcn.0002b090
mov eax, dword [ebp - 0x58]
push eax
lea edx, [ebp - 0x5c]
mov eax, 0x48010
call fcn.0002b090
mov eax, dword [ebp - 0x5c]
pop edx
call fcn.000141b8
test eax, eax
jle 0x47cfd
lea edx, [ebp - 0x18]
mov ecx, 0xe
xchg edx, eax
call fcn.00014114
lea eax, [ebp - 0x18]
mov edx, 0x48028
call fcn.00013ed4
mov eax, dword [ebp - 0x18]
call fcn.00013ecc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
call fcn.00018994
cmp eax, dword [ebp - 0x28]
ja 0x47c5a
mov eax, dword [ebp + 8]
push eax
push 0x48040
mov eax, dword [ebp - 0x28]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x64]
call fcn.0002b0cc
push dword [ebp - 0x64]
push 0x48050
mov eax, dword [ebp - 0xc]
call fcn.00018994
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x68]
call fcn.0002b0cc
push dword [ebp - 0x68]
lea eax, [ebp - 0x60]
mov edx, 4
call fcn.00013f8c
mov eax, dword [ebp - 0x60]
call fcn.00047a24
pop ecx
jmp 0x47cfd
mov eax, dword [ebp - 0xc]
call fcn.00018980
mov eax, dword [ebp - 0xc]
call fcn.000189b0
push eax
lea eax, [ebp - 0x18]
call fcn.0001409c
mov ecx, dword [ebp - 0x28]
pop edx
call fcn.00012840
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov ecx, 0x47ffc
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00018a0c
mov ebx, eax
test ebx, ebx
je 0x47cfd
mov eax, dword [ebp + 8]
push eax
push dword [ebp - 4]
push 0x4805c
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.0002b100
push dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
mov edx, 3
call fcn.00013f8c
mov eax, dword [ebp - 0x6c]
call fcn.00047a24
pop ecx
jmp 0x47cfd
mov eax, dword [ebp + 8]
push eax
push dword [ebp - 4]
push 0x48070
lea edx, [ebp - 0x78]
mov eax, ebx
call fcn.0002b100
push dword [ebp - 0x78]
lea eax, [ebp - 0x74]
mov edx, 3
call fcn.00013f8c
mov eax, dword [ebp - 0x74]
call fcn.00047a24
pop ecx
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x28], 4
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0x4807c
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je 0x47d63
mov eax, dword [ebp + 8]
push eax
push dword [ebp - 4]
push 0x4808c
lea edx, [ebp - 0x80]
mov eax, ebx
call fcn.0002b100
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
mov edx, 3
call fcn.00013f8c
mov eax, dword [ebp - 0x7c]
call fcn.00047a24
pop ecx
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x14
call fcn.00012b94
xor eax, eax
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 3
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x18
call fcn.00012b94
mov edx, 3
lea eax, [ebp - 0x54]
mov byte [eax], 1
mov dword [eax + 4], 0xea60
add eax, 8
dec edx
jne 0x47d9f
lea eax, [ebp - 0x54]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x47f26
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x47f09
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x47f02
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00014090
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x47e1f
push 0
call sub.kernel32.dll_SetLastError
jmp 0x47e61
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, dword [ebp + 8]
push eax
push dword [ebp - 4]
push 0x480a0
lea edx, [ebp - 0x88]
mov eax, ebx
call fcn.0002b100
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
mov edx, 3
call fcn.00013f8c
mov eax, dword [ebp - 0x84]
call fcn.00047a24
pop ecx
cmp dword [ebp - 0x14], 0
je 0x47ee5
lea eax, [ebp - 0x3c]
push eax
push 2
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_ChangeServiceConfig2A
test eax, eax
je 0x47ea3
mov byte [ebp - 5], 1
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x8c]
mov ecx, 0x480b4
mov edx, dword [ebp - 4]
call fcn.00013f18
mov eax, dword [ebp - 0x8c]
call fcn.00047978
pop ecx
jmp 0x47ee5
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, dword [ebp + 8]
push eax
push dword [ebp - 4]
push 0x480c0
lea edx, [ebp - 0x94]
mov eax, ebx
call fcn.0002b100
push dword [ebp - 0x94]
lea eax, [ebp - 0x90]
mov edx, 3
call fcn.00013f8c
mov eax, dword [ebp - 0x90]
call fcn.00047a24
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f09
cmp dword [ebp - 0x14], 0
je 0x47f01
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f68
cmp dword [ebp - 0x24], 0
je 0x47f25
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
mov eax, dword [ebp + 8]
push eax
push dword [ebp - 4]
push 0x480d4
lea edx, [ebp - 0x9c]
mov eax, ebx
call fcn.0002b100
push dword [ebp - 0x9c]
lea eax, [ebp - 0x98]
mov edx, 3
call fcn.00013f8c
mov eax, dword [ebp - 0x98]
call fcn.00047a24
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f99
cmp dword [ebp - 0x20], 0
je 0x47f84
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xc]
call fcn.00019230
ret