Function at 0x140005150
Capabilities:
Allocate or change rwx memory
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
mov r15, rdx
mov rdi, rcx
cmp byte [rcx + 0x99], 0
jne 0x1400051d2
cmp byte [rcx + 0x98], 0
je 0x140005191
lea rcx, str.CONSTRUCTOR_FAILED._n
call fcn.140003100
nop
mov rcx, qword [r15]
test rcx, rcx
je 0x140005240
mov rdx, qword [r15 + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1400051c9
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005ba4
mov rcx, r8
call fcn.140009efc
xor esi, esi
jmp 0x140005235
xor esi, esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x30]
call fcn.140004fe0
mov rax, qword [0x1400114c0]
test rax, rax
setne bl
test rax, rax
jne 0x14000524a
mov rcx, qword [r15]
test rcx, rcx
je 0x140005240
mov rdx, qword [r15 + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140005230
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005ba4
mov rcx, r8
call fcn.140009efc
mov qword [r15], rsi
mov qword [r15 + 8], rsi
mov qword [r15 + 0x10], rsi
mov eax, 2
jmp 0x140005b91
cmp byte [rdi + 0x98], sil
je 0x140005262
movzx edx, bl
lea rcx, str.is_efi_av:__i_n
call fcn.140003100
movabs rax, 0x4fe188a56a2ba27f
mov qword [rsp + 0x30], rax
movabs rax, 0x9b8e2f44724e956d
mov qword [rsp + 0x38], rax
movabs rax, 0xe8f743f7b5dfbd8e
mov qword [rsp + 0x40], rax
movabs rax, 0x8a5f910b00d539aa
mov qword [rsp + 0x48], rax
movabs rax, 0x4f9788c06a6fa223
mov qword [rsp + 0x80], rax
movabs rax, 0x9bd22f21722d9504
mov qword [rsp + 0x88], rax
movabs rax, 0xe8944392b5acbdc5
mov qword [rsp + 0x90], rax
movabs rax, 0x8a5f910b009139ee
mov qword [rsp + 0x98], rax
vmovdqu ymm0, ymmword [rsp + 0x30]
vpxor ymm1, ymm0, ymmword [rsp + 0x80]
vmovdqu ymmword [rsp + 0x30], ymm1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x80]
vzeroupper
call sub.ntdll.dll_RtlInitUnicodeString
mov dword [rsp + 0xa8], 0x30
mov qword [rsp + 0xb0], rsi
mov dword [rsp + 0xc0], esi
lea rax, [rsp + 0x80]
mov qword [rsp + 0xb8], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xc8], xmm0
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
lea r9, [rsp + 0x50]
lea r8, [rsp + 0xa8]
mov edx, 0xc0000000
mov rcx, rdi
call sub.ntdll.dll_NtOpenFile
mov rdx, qword [rdi]
cmp rdx, 0xffffffffffffffff
je 0x140005b4f
cmp byte [rdi + 0x98], sil
je 0x14000538e
lea rcx, str.payload_handle:__llx_n
call fcn.140003100
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rdi + 0x88], eax
cmp byte [rdi + 0x98], sil
je 0x1400053b1
mov edx, eax
lea rcx, str.pid:__i_n
call fcn.140003100
mov rcx, rdi
call fcn.1400050d0
test al, al
jne 0x140005abe
cmp byte [rdi + 0x98], sil
je 0x1400053d6
lea rcx, str.mapping_payload..._n
call fcn.140003100
mov r14, qword [r15]
mov eax, 0x5a4d
cmp word [r14], ax
je 0x140005421
test r14, r14
je 0x140005a76
mov rdx, qword [r15 + 0x10]
sub rdx, r14
cmp rdx, 0x1000
jb 0x140005419
add rdx, 0x27
mov rcx, qword [r14 - 8]
sub r14, rcx
lea rax, [r14 - 8]
cmp rax, 0x1f
ja 0x140005ba4
mov r14, rcx
mov rcx, r14
jmp 0x140005a66
movsxd r13, dword [r14 + 0x3c]
add r13, r14
mov eax, 0x8664
cmp word [r13 + 4], ax
jne 0x1400053e4
mov eax, dword [r13 + 0x50]
and eax, 0xfffff000
add eax, 0x1000
mov dword [rsp + 0x130], eax
mov edi, eax
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
mov qword [rsp + 0x138], rax
mov r8, qword [rsp + 0x120]
mov rdx, qword [r8 + 0x90]
mov rcx, qword [r8 + 0x70]
add rcx, rdx
mov rbx, qword [r8 + 0x80]
add rbx, rdx
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8d, 0xffffffff
mov edx, edi
call fcn.140004fe0
mov rax, qword [0x1400114c0]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x20], rsi
mov r9d, 0x40
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call fcn.140004fe0
mov ecx, dword [r13 + 0x28]
mov rax, qword [rsp + 0x70]
add rcx, rax
mov qword [rsp + 0xa0], rcx
movzx ebx, word [r13 + 0x14]
add rbx, 0x24
mov edi, esi
cmp word [r13 + 6], si
je 0x14000551e
add rbx, r13
nop
mov eax, dword [rbx + 4]
test eax, eax
je 0x14000550a
mov ecx, dword [rbx]
add rcx, r12
mov edx, dword [rbx + 8]
add rdx, r14
mov r8d, eax
call sub.VCRUNTIME140.dll_memcpy
inc edi
add rbx, 0x28
movzx eax, word [r13 + 6]
cmp edi, eax
jne 0x1400054f0
mov rax, qword [rsp + 0x70]
mov r11, rax
sub r11, qword [r13 + 0x30]
mov rdi, r12
je 0x1400055a7
cmp dword [r13 + 0xb4], esi
je 0x1400055a7
mov r9d, dword [r13 + 0xb0]
add r9, r12
cmp dword [r9], esi
je 0x1400055a7
mov ebx, 0xf000
mov r14d, 0xa000
nop dword [rax]
mov eax, dword [r9 + 4]
sub rax, 8
shr rax, 1
lea r8, [r9 + 8]
test eax, eax
je 0x14000559b
mov r10d, eax
nop word [rax + rax]
movzx edx, word [r8]
movzx eax, dx
and ax, bx
cmp ax, r14w
jne 0x140005591
and edx, 0xfff
mov ecx, dword [r9]
lea rax, [rdi + rdx]
add qword [rcx + rax], r11
add r8, 2
sub r10, 1
jne 0x140005570
mov eax, dword [r9 + 4]
add r9, rax
cmp dword [r9], esi
jne 0x140005550
movabs rbx, 0x23f9faab1900d64d
mov r8, 0xffffffffffffffff
movabs r12, 0x9bd22f211755f02a
cmp dword [r13 + 0x94], esi
je 0x140005830
mov eax, dword [r13 + 0x90]
add rax, rdi
mov qword [rsp + 0x60], rax
cmp dword [rax + 0xc], esi
je 0x140005830
mov r14, qword [rsp + 0x120]
nop
mov edx, dword [rax]
mov ecx, dword [rax + 0x10]
lea r13, [rcx + rdi]
lea rax, [rdx + rdi]
test rax, rax
cmovne ecx, edx
lea r12, [rcx + rdi]
mov rax, qword [r12]
test rax, rax
je 0x14000580f
mov rcx, rax
nop word [rax + rax]
xorps xmm0, xmm0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
movups xmmword [rsp + 0x30], xmm0
test rax, rax
jns 0x1400056c8
movzx edx, cx
nop
inc r8
cmp byte [rdx + r8], sil
jne 0x140005640
lea rcx, [rsp + 0x30]
call fcn.140001310
lea rdx, [rsp + 0x30]
mov rcx, qword [r14 + 0x90]
call fcn.140004b40
mov rbx, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400056a4
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000569f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005917
call fcn.140009efc
test rbx, rbx
jne 0x1400057e2
mov edx, dword [rsp + 0x130]
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x140005a32
lea rdx, [rdi + 2]
add rdx, rcx
nop
inc r8
cmp byte [rdx + r8], sil
jne 0x1400056d0
lea rcx, [rsp + 0x30]
call fcn.140001310
mov rax, qword [rsp + 0x120]
mov r14, qword [rax + 0x90]
mov qword [rsp + 0x50], rbx
movabs rax, 0x9bd22f211755f02a
mov qword [rsp + 0x58], rax
movabs rax, 0x4f9788c06a6fa223
mov qword [rsp + 0x80], rax
movabs rax, 0x9bd22f21722d9504
mov qword [rsp + 0x88], rax
movdqa xmm0, xmmword [rsp + 0x50]
xorps xmm0, xmmword [rsp + 0x80]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x140005756
mov rbx, rsi
jmp 0x14000578c
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdx, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x14000577d
mov rbx, rsi
jmp 0x14000578c
sub r14, rdi
add rbx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400057c9
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400057c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000591e
call fcn.140009efc
test rbx, rbx
je 0x140005925
mov rdi, qword [rsp + 0x138]
mov r14, qword [rsp + 0x120]
mov qword [r13], rbx
add r12, 8
add r13, 8
mov rax, qword [r12]
mov rcx, rax
test rax, rax
movabs rbx, 0x23f9faab1900d64d
mov r8, 0xffffffffffffffff
jne 0x140005620
mov rax, qword [rsp + 0x60]
add rax, 0x14
mov qword [rsp + 0x60], rax
cmp dword [rax + 0xc], esi
jne 0x1400055f0
movabs r12, 0x9bd22f211755f02a
movabs rax, 0x2eef8af2903d671
mov qword [rsp + 0x60], rax
movabs rax, 0x9bd22f580042f861
mov qword [rsp + 0x68], rax
movabs rdi, 0x4f9788c06a6fa223
mov qword [rsp + 0x80], rdi
movabs rax, 0x9bd22f21722d9504
mov qword [rsp + 0x88], rax
movdqa xmm0, xmmword [rsp + 0x60]
xorps xmm0, xmmword [rsp + 0x80]
movdqa xmmword [rsp + 0x60], xmm0
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea rax, [rsp + 0x60]
nop dword [rax]
inc r8
cmp byte [rax + r8], sil
jne 0x1400058a0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.140001310
mov r13, qword [rsp + 0x120]
mov r14, qword [r13 + 0x90]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x80], rdi
movabs rax, 0x9bd22f21722d9504
mov qword [rsp + 0x88], rax
movdqa xmm0, xmmword [rsp + 0x50]
xorps xmm0, xmmword [rsp + 0x80]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x140005945
mov rbx, rsi
jmp 0x14000597b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov edx, dword [rsp + 0x130]
mov r8d, 0x8000
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x140005a32
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdx, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x14000596c
mov rbx, rsi
jmp 0x14000597b
sub r14, rdi
add rbx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400059bb
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400059b6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400059b6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009efc
test rbx, rbx
je 0x140005a32
mov r14d, dword [rsp + 0x130]
mov r9d, r14d
mov qword [rsp + 0x20], rsi
mov r8, qword [rsp + 0x138]
mov rdx, qword [rsp + 0x70]
mov rcx, rbx
call fcn.140004fe0
mov edx, r14d
mov r8d, 0x8000
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [r13 + 0x90]
mov rcx, qword [rsp + 0xa0]
call fcn.140004fe0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r13
call fcn.1400050d0
test al, al
jne 0x140005a80
mov rcx, qword [r15]
test rcx, rcx
je 0x140005a76
mov rdx, qword [r15 + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140005a66
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005ba4
mov rcx, r8
call fcn.140009efc
mov qword [r15], rsi
mov qword [r15 + 8], rsi
mov qword [r15 + 0x10], rsi
mov eax, 1
jmp 0x140005b91
mov edx, 0x320
mov ecx, 0x2ee
call qword [sym.imp.KERNEL32.dll_Beep]
nop
mov rcx, qword [r15]
test rcx, rcx
je 0x140005b06
mov rdx, qword [r15 + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140005af6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jmp 0x140005aed
mov rcx, qword [r15]
test bl, bl
je 0x140005b10
test rcx, rcx
je 0x140005b06
mov rdx, qword [r15 + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140005af6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
add rcx, 0xfffffffffffffff8
cmp rcx, 0x1f
ja 0x140005ba4
mov rcx, r8
call fcn.140009efc
mov qword [r15], rsi
mov qword [r15 + 8], rsi
mov qword [r15 + 0x10], rsi
mov eax, 3
jmp 0x140005b91
test rcx, rcx
je 0x140005b91
mov rdx, qword [r15 + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140005b3d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005ba4
mov rcx, r8
call fcn.140009efc
mov qword [r15], rsi
mov qword [r15 + 8], rsi
mov qword [r15 + 0x10], rsi
jmp 0x140005b91
mov rcx, qword [r15]
test rcx, rcx
je 0x140005b8f
mov rdx, qword [r15 + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140005b7f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005ba4
mov rcx, r8
call fcn.140009efc
mov qword [r15], rsi
mov qword [r15 + 8], rsi
mov qword [r15 + 0x10], rsi
xor eax, eax
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3