Function at 0x140116e90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x450]
sub rsp, 0x550
mov rax, qword [0x14020a008]
xor rax, rsp
mov qword [rbp + 0x440], rax
mov r13, rcx
mov rsi, rdx
lea rcx, [0x1401b59e0]
call fcn.1401047c0
test rax, rax
je 0x140117341
xor r8d, r8d
lea rdx, str.RtlGetFunctionTableListHead
mov rcx, rax
call fcn.140104b60
test rax, rax
je 0x140117341
call qword [case.0x140101f48.0]
xor edi, edi
lea r8, [rsp + 0x70]
mov rdx, rax
mov qword [rsp + 0x20], rdi
mov rcx, r13
mov r12, rax
lea r9d, [rdi + 0x10]
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
mov ebx, eax
test eax, eax
js 0x140117346
mov r15, qword [rsp + 0x70]
mov r14d, edi
cmp r15, r12
je 0x140116f88
nop word [rax + rax]
cmp r14d, 0x800
jae 0x140116f88
mov r9d, 0x70
mov qword [rsp + 0x20], rdi
lea r8, [rbp - 0x60]
mov rdx, r15
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
mov ebx, eax
test eax, eax
js 0x140117346
nop
cmp rsi, qword [rbp - 0x40]
jb 0x140116f7c
cmp rsi, qword [rbp - 0x38]
jb 0x140116f95
mov r15, qword [rbp - 0x60]
inc r14d
cmp r15, r12
jne 0x140116f40
mov ebx, 0xc0000225
jmp 0x140117346
mov rbx, qword [rbp - 0x18]
test rbx, rbx
je 0x14011702a
mov edx, 0xff
lea rcx, [rbp + 0x40]
mov r8d, 0x400
call fcn.140163170
lea rax, [rsp + 0x30]
mov r9d, 0x400
lea r8, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
mov ecx, 0x80000000
mov ebx, eax
add eax, ecx
test ecx, eax
jne 0x140116fef
cmp ebx, 0x8000000d
jne 0x140117346
mov ecx, edi
mov eax, ecx
cmp word [rbp + rax*2 + 0x40], di
je 0x14011700e
inc ecx
cmp ecx, 0x200
jb 0x140116ff1
mov ebx, 0x80000005
jmp 0x140117346
lea rax, [rbp + 0x40]
add cx, cx
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x40]
mov word [rsp + 0x58], cx
mov word [rsp + 0x5a], cx
jmp 0x14011703a
mov word [rbp + 0x40], di
mov rax, rdi
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x58], edi
mov r12d, dword [rbp - 0x10]
cmp r12d, 2
jne 0x140117243
test rax, rax
jne 0x140117057
mov ebx, 0xc000000d
jmp 0x140117346
mov rcx, qword [0x1402106c0]
mov word [rbp - 0x78], cx
lea eax, [rcx + 2]
mov word [rbp - 0x76], ax
mov rax, qword [str.SoftwareMicrosoftWindows_NTCurrentVersionKnownFunctionTableDlls]
mov qword [rbp - 0x70], rax
cmp rcx, 0xfffe
jbe 0x140117088
mov r14d, 0xc0000106
jmp 0x1401171a6
xor r8d, r8d
lea rax, [rsp + 0x48]
lea r9, [rbp + 0x10]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x78]
lea rcx, [r8 - 3]
call fcn.140120390
mov r14d, eax
test eax, eax
js 0x1401171a6
lea r8, [rbp + 0x10]
mov edx, 0x20019
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov rcx, qword [rsp + 0x48]
mov r14d, eax
test rcx, rcx
je 0x1401170df
call qword [sym.imp.ntdll.dll_NtClose]
test r14d, r14d
js 0x1401171a6
mov rcx, qword [rsp + 0x68]
lea rax, [rbp - 0x80]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x20], edi
lea r8d, [r9 + 2]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov rcx, qword [rsp + 0x68]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
cmp ebx, 0xc0000034
jne 0x14011712b
mov ebx, 0xc0000361
jmp 0x140117346
lea r9, [rsp + 0x40]
xor edx, edx
lea r8, [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_LdrLoadDll]
mov ebx, eax
test eax, eax
js 0x140117346
mov rcx, qword ds:[rsp + 0x40]
lea rax, str.OutOfProcessFunctionTableCallback
lea r9, [rsp + 0x30]
mov qword [rsp + 0x78], rax
xor r8d, r8d
mov dword [rsp + 0x70], 0x220021
lea rdx, [rsp + 0x70]
call qword [sym.imp.ntdll.dll_LdrGetProcedureAddress]
mov r14d, eax
test eax, eax
js 0x14011719b
mov rax, qword [rsp + 0x30]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x38]
mov rdx, r15
mov rcx, r13
call qword [case.0x140101f48.0]
mov r14d, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_LdrUnloadDll]
mov ebx, r14d
test r14d, r14d
js 0x140117346
sub rsi, qword [rbp - 0x30]
mov edx, dword [rsp + 0x38]
test edx, edx
je 0x1401171fb
mov r8, qword [rsp + 0x50]
nop word [rax + rax]
mov eax, edi
lea rcx, [rax + rax*2]
lea rcx, [rcx*4]
mov eax, dword [rcx + r8]
cmp rsi, rax
jb 0x1401171f5
mov eax, dword ds:[rcx + r8 + 4]
cmp rsi, rax
jb 0x140117223
inc edi
cmp edi, edx
jb 0x1401171d0
mov ebx, 0xc0000225
mov rax, qword gs:[0x30]
xor edx, edx
mov r8, qword [rsp + 0x50]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x140117346
lea rax, [rcx + r8]
test rax, rax
je 0x1401171fb
movsd xmm0, qword [rax]
movsd qword [0x140216a80], xmm0
mov eax, dword [rax + 8]
mov dword [0x140216a88], eax
jmp 0x140117200
mov r15d, dword ds:[rbp - 0xc]
cmp r15d, 0x100000
ja 0x140117004
xor r8d, r8d
mov dword [rsp + 0x28], 4
lea rbx, [r15 + r15*2]
mov qword [rsp + 0x40], rdi
shl rbx, 2
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
lea rcx, [r8 - 1]
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
js 0x14011733a
mov r14, qword [rsp + 0x40]
test r14, r14
je 0x14011733a
mov rdx, qword [rbp - 0x50]
mov r9, rbx
mov r8, r14
mov qword [rsp + 0x20], rdi
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
mov ebx, eax
test eax, eax
js 0x140117311
sub rsi, qword [rbp - 0x30]
mov edx, r15d
test r12d, r12d
mov qword [rsp + 0x50], r14
mov r9, rsi
mov dword [rsp + 0x38], r15d
sete r8b
mov rcx, r14
call fcn.140116de0
nop dword [rax]
test rax, rax
je 0x14011730c
movsd xmm0, qword [rax]
movsd qword [0x140216a80], xmm0
mov eax, dword [rax + 8]
mov dword [0x140216a88], eax
jmp 0x140117311
mov ebx, 0xc0000225
mov r9d, 0x8000
mov qword [rsp + 0x48], r14
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
lea rdx, [rsp + 0x48]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
jmp 0x140117346
mov ebx, 0xc0000017
jmp 0x140117346
mov ebx, 0xc000007a
mov eax, ebx
mov rcx, qword [rbp + 0x440]
xor rcx, rsp
call fcn.140161390
lea r11, [rsp + 0x550]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret