Function at 0x140012f70
Capabilities:
Create thread
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x790]
sub rsp, 0x890
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rbp + 0x780], rax
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x800
call fcn.14002d0c0
lea rax, [rsp + 0x50]
xor edi, edi
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x50], rdi
lea rdx, str.HARDWAREDESCRIPTIONSystemBIOS
mov rcx, 0xffffffff80000002
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001323e
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001323e
lea rax, [rsp + 0x60]
mov dword [rsp + 0x60], edi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.BIOSVersion
mov dword [rsp + 0x58], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001307d
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rax, [rbp - 0x80]
xor r8d, r8d
lea rdx, str.BIOSVersion
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001307d
lea rdx, [0x140075fd8]
lea rcx, [rbp - 0x80]
call fcn.140004a20
movzx ebx, al
test al, al
jne 0x14001307d
lea rdx, [0x140076000]
lea rcx, [rbp - 0x80]
call fcn.140004a20
movzx ebx, al
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x14001323e
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140075de0], rax
test rax, rax
je 0x14001323e
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140075dc0], rax
test rax, rax
je 0x14001323e
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140075db8], rax
test rax, rax
je 0x14001323e
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140075db0], rax
test rax, rax
je 0x14001323e
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140075da8], rax
test rax, rax
je 0x14001323e
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140075dd8], rax
test rax, rax
je 0x14001323e
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140075dd0], rax
test rax, rax
je 0x14001323e
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea rdx, str.SYSTEMCurrentControlSetServicesLITSSVCICDGPU
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x58], 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400131fb
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
lea rdx, str.Capability
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rax, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x140013270]
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call fcn.1400355e8
mov rcx, qword [rsp + 0x68]
test rax, rax
mov qword [0x140075de8], rax
setne bl
test rcx, rcx
je 0x140013239
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
jmp 0x140013240
xor al, al
mov rcx, qword [rbp + 0x780]
xor rcx, rsp
call fcn.14002a740
lea r11, [rsp + 0x890]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret