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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e660
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x1002a008]
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 eax, dword [0x1002a760]
mov ecx, dword [0x1002a764]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x58], ecx
cmp eax, ecx
je 0x10005e10
lea esi, [eax + 0x30]
cmp dword [0x1002a794], 0
jne 0x10005b94
xor ebx, ebx
jmp 0x10005bb9
push 0
mov ecx, 0x1002a794
call fcn.10019380
mov eax, dword [0x1002a794]
xor ebx, ebx
cmp byte [eax + 0x54], bl
je 0x10005bb9
cmp dword [eax + 0x58], 4
jb 0x10005bb9
cmp byte [eax + 0x5c], bl
setne bl
inc ebx
test ebx, ebx
je 0x10005c89
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10005bf0
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x40]
push str.DriverInstall:
push eax
call fcn.1001a510
add esp, 0xc
lea eax, [ebp - 0x40]
mov ecx, 0x1002a794
push 0x1d1
push str.RC::RCDriverInstallerBase::UninstallDriver
push str.d:_rhinoprotectdriverinstall_src_framework_rcdriverinstallerbase.cpp
push eax
push 4
call fcn.10019f70
cmp ebx, 1
jbe 0x10005c34
lea eax, [ebp - 0x40]
mov ecx, 0x1002a794
push eax
call fcn.1001a340
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x10005c75
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10005c6b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005e2e
push edx
push ecx
call fcn.1001ca7a
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea ecx, [esi - 0x18]
call fcn.1000d890
cmp dword [esi + 0x14], 8
mov ebx, esi
jb 0x10005c9b
mov ebx, dword [esi]
test ebx, ebx
je 0x10005df6
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x10005cc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10005df6
push 0xf01ff
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x10005cde
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push 0x22
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
push str.SYSTEMCurrentControlSetServices_
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10006100
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push ebx
call fcn.10006250
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x4c]
push ecx
push 0xf003f
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10005d91
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x44]
push 4
push eax
push 4
push 0
push 0x100226a8
push dword [ebp - 0x4c]
mov dword [ebp - 0x44], 1
call ebx
push 4
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 4
push eax
push 4
push 0
push 0x10022690
push dword [ebp - 0x4c]
call ebx
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x10005d9c
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10005de2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10005dd8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005e2e
push edx
push ecx
call fcn.1001ca7a
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x50]
add esi, 0xdc
add eax, 0xdc
mov dword [ebp - 0x50], eax
cmp eax, dword [ebp - 0x58]
jne 0x10005b87
mov al, 1
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.1001ca39
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3