Function at 0x140027bb0
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rbp + 0x37], rax
movzx ebx, r8b
mov r15, rcx
xor r12d, r12d
mov dword [rbp - 9], r12d
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 7], r12
mov qword [rbp + 0xf], r12
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesLITSSVCICPatch
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140027c95
lea rax, [rbp + 0x13]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0xf]
xor r8d, r8d
lea rdx, [0x140067f68]
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140027c95
lea rax, [rbp + 0x13]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xf]
xor r8d, r8d
lea rdx, [0x140067f68]
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140027c95
cmp dword [rbp - 9], eax
je 0x140027c95
test bl, bl
je 0x140027c95
call fcn.140027940
jmp 0x140027ecb
xor r14b, r14b
mov ebx, r12d
mov dword [rbp - 1], ebx
mov dword [rbp - 0x11], 0xa
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edi, 1
mov r8d, edi
mov edx, 0x80000000
lea rcx, str..IBMPmDrv
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140027d52
mov dword [rbp - 5], r12d
mov dword [rbp - 0x19], r12d
mov qword [rsp + 0x38], r12
lea rax, [rbp - 0x19]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rbp - 5]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 3]
lea r8, [rbp - 0x11]
mov edx, 0x22270c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140027d4c
mov r8d, dword [rbp - 0x19]
test r8, r8
je 0x140027d3b
lea rdx, [rbp - 5]
lea rcx, [rbp - 1]
call fcn.14002c910
mov ebx, dword [rbp - 1]
test dil, bl
je 0x140027d52
test ebx, 0xffffff00
setne r14b
jmp 0x140027d52
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, qword [r15 + 0x18]
test dword [rax], 0x8000
je 0x140027e29
mov dword [rbp - 0x19], r12d
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x1f], r12
lea rax, [rbp + 0x17]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesLITSSVCICAMT
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140027df5
lea rax, [rbp + 0x23]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x1f]
xor r8d, r8d
lea rdx, str.Capability
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140027df5
lea rax, [rbp + 0x23]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x1f]
xor r8d, r8d
lea rdx, str.Capability
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140027df5
mov edi, dword [rbp - 0x19]
jmp 0x140027df8
mov dword [rbp - 0x19], edi
test r14b, r14b
je 0x140027e09
mov ebx, 0x20101
mov eax, 0x20201
jmp 0x140027e13
mov ebx, 0x10101
mov eax, 0x10201
test edi, edi
cmovne ebx, eax
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x140027e39
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140027e39
mov ebx, 0x10101
mov eax, 0x1010101
test r14b, r14b
cmovne ebx, eax
mov qword [rbp + 0x27], r12
mov qword [rbp + 0x2f], r12
mov dword [rbp - 0x11], ebx
mov qword [rsp + 0x40], r12
lea rax, [rbp + 0x27]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesLITSSVCIC
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140027ead
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.InterfaceType
mov rcx, qword [rbp + 0x27]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x140027ebc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rsi, rsi
je 0x140027ecb
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x140027eda
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14002a740
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret