Function at 0x18006d3c0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x180119070]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor esi, esi
mov rax, qword [0x1801248a0]
test rax, rax
je 0x18006d40e
mov rbx, qword [rax + 0x98]
test rbx, rbx
jne 0x18006d432
jmp 0x18006d411
mov rbx, rsi
mov r8d, 0x17c
lea rdx, str.D:_nolifeDocumentsonevade_fivemdrugdrug_impl_dx9.cpp
lea rcx, str.bd___nullptr___Did_you_call_DrUg_ImplDX9_Init____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [0x1801248a0]
cmp qword [rbx + 0x18], rsi
jne 0x18006d453
test rax, rax
je 0x18006d453
mov rcx, qword [rax + 0x98]
test rcx, rcx
je 0x18006d453
cmp qword [rcx], rsi
je 0x18006d453
call fcn.180031e60
call fcn.180032fd0
call fcn.180007a30
movzx eax, byte [reloc.WS2_32.dll_accept]
movzx edi, al
mov rbx, qword [0x1801248a0]
test rbx, rbx
jne 0x18006d49b
mov r8d, 0x10b0
lea rdx, str.D:_nolifeDocumentsonevade_fivemdrugdrug.cpp
lea rcx, str.GDrUg___0___No_current_context._Did_you_call_DrUg::CreateContext___and_DrUg::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movzx eax, byte [reloc.WS2_32.dll_accept]
mov rbx, qword [0x1801248a0]
mov byte [rbx + 0x58], dil
test al, al
je 0x18006d7d9
lea rax, [rbp - 9]
mov qword [rbp - 0x39], rax
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
lea r12, [rbp + 0x5f]
movabs r13, 0xff00ff00ff00ff00
mov qword [rbp + 0xf], r13
mov qword [rbp + 0x17], r12
mov rdi, qword [r12]
xor rdi, r13
mov qword [rbp + 7], rdi
mov qword [r12], rsi
mov ecx, esi
lea r15, [0x180078930]
lea r14, [0x180000000]
mov rax, qword [0x180125360]
test rax, rax
je 0x18006d529
mov rdx, rsi
nop word [rax + rax]
cmp rax, r15
je 0x18006d518
inc ecx
mov edx, ecx
mov rax, qword [r14 + rcx*8 + 0x125360]
test rax, rax
jne 0x18006d500
jmp 0x18006d529
mov r8, qword [r14 + rdx*8 + 0x125040]
test r8, r8
jne 0x18006d60f
mov edx, 0x1f4
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rax
test rax, rax
jne 0x18006d550
mov r8, rsi
jmp 0x18006d5ee
mov rax, r15
mov rcx, r8
mov edx, 3
nop dword [rax + rax]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x18006d560
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
mov eax, dword [rax + 0x70]
mov dword [rcx + 0x70], eax
mov rax, qword [0x180125680]
mov qword [r14 + rax*8 + 0x125360], r15
mov qword [r14 + rax*8 + 0x125040], r8
inc rax
mov qword [0x180125680], rax
lea rdx, [rbp - 0x39]
mov rcx, qword [sym.imp.USER32.dll_GetCursorPos]
call r8
nop
xor rdi, r13
mov qword [r12], rdi
movd xmm0, dword [rbp - 5]
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0xe4c], xmm0
movd xmm1, dword [rbp - 9]
cvtdq2ps xmm1, xmm1
movss dword [rbx + 0xe48], xmm1
mov dword [rbp - 0x39], 1
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0xf], r13
mov qword [rbp + 0x17], r12
mov rdi, qword [r12]
xor rdi, r13
mov qword [rbp + 7], rdi
mov qword [r12], rsi
mov ecx, esi
lea r15, [0x180078740]
mov rax, qword [0x180125690]
test rax, rax
je 0x18006d6ab
mov rdx, rsi
cmp rax, r15
je 0x18006d69a
inc ecx
mov edx, ecx
mov rax, qword [r14 + rcx*8 + 0x125690]
test rax, rax
jne 0x18006d682
jmp 0x18006d6ab
mov r8, qword [r14 + rdx*8 + 0x124d20]
test r8, r8
jne 0x18006d78f
mov edx, 0x1f4
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rax
test rax, rax
jne 0x18006d6d2
mov r8, rsi
jmp 0x18006d76e
mov rax, r15
mov rcx, r8
mov edx, 3
nop dword [rax]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x18006d6e0
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
mov eax, dword [rax + 0x70]
mov dword [rcx + 0x70], eax
mov rax, qword [0x1801259b0]
mov qword [r14 + rax*8 + 0x125690], r15
mov qword [r14 + rax*8 + 0x124d20], r8
inc rax
mov qword [0x1801259b0], rax
lea rdx, [rbp - 0x39]
mov rcx, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call r8
nop
xor rdi, r13
mov qword [r12], rdi
test ax, ax
je 0x18006d7d2
mov byte [rbx + 0xe50], 1
mov byte [rbx + 0x3868], 1
mov eax, dword [rbx + 0xe48]
mov dword [rbx + 0x3818], eax
mov eax, dword [rbx + 0xe4c]
mov dword [rbx + 0x381c], eax
jmp 0x18006d7d9
mov byte [rbx + 0xe50], 0
movaps xmm0, xmmword [0x180104c90]
movups xmmword [rbp - 9], xmm0
lea rcx, [rbp - 9]
call fcn.180003c50
mov edi, eax
mov dword [rbp - 9], 0x41200000
mov dword [rbp - 5], 0x41200000
mov dword [rbp - 0x39], 0x2e5a4678
mov dword [rbp - 0x35], 0x3b232c
mov byte [rbp - 0x31], 1
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx + 0x3d]
xor byte [rbp + rcx - 0x39], al
inc rcx
cmp rcx, 7
jb 0x18006d820
mov byte [rbp - 0x31], 0
mov qword [rbp + 7], rsi
mov qword [rbp + 0x17], rsi
mov qword [rbp + 0x1f], reloc.WS2_32.dll_ntohs
mov byte [rbp + 7], 0
lea rax, [rbp - 0x39]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x18006d856
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.180075c60
nop
mov dword [rsp + 0x20], edi
movss xmm3, dword [0x180103e80]
lea r8, [rbp - 9]
lea rdx, [rbp + 7]
mov rcx, qword [0x180124af0]
call fcn.1800526a0
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x18006d8cd
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006d8c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006d8c8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800df07c
movaps xmm0, xmmword [0x180104c90]
movups xmmword [rbp - 9], xmm0
lea rcx, [rbp - 9]
call fcn.180003c50
mov edi, eax
mov dword [rbp - 9], 0x41200000
movss xmm0, dword [0x180103e90]
movss dword [rbp - 5], xmm0
mov r9, qword [0x1801248a0]
test r9, r9
jne 0x18006d924
mov r8d, 0x10b0
lea rdx, str.D:_nolifeDocumentsonevade_fivemdrugdrug.cpp
lea rcx, str.GDrUg___0___No_current_context._Did_you_call_DrUg::CreateContext___and_DrUg::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov r9, qword [0x1801248a0]
cvttss2si edx, dword [r9 + 0xd4]
lea rcx, [rbp - 0x29]
call fcn.18004d0c0
mov rdx, rax
mov dword [rbp - 0x39], 0x606c6e7b
mov dword [rbp - 0x35], 0x100627b
mov rcx, rsi
nop word [rax + rax]
lea eax, [rcx + 0x3d]
xor byte [rbp + rcx - 0x39], al
inc rcx
cmp rcx, 6
jb 0x18006d950
mov byte [rbp - 0x32], 0
lea rax, [rbp - 0x39]
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x18006d970
mov r9, rbx
lea r8, [rbp - 0x39]
mov rcx, rdx
call fcn.18007e130
movups xmm0, xmmword [rax]
movups xmmword [rbp + 7], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x17], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], edi
movss xmm3, dword [0x180103e78]
lea r8, [rbp - 9]
lea rdx, [rbp + 7]
mov rcx, qword [0x180124c00]
call fcn.180052a90
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x18006da0b
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006da05
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006da05
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800df07c
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x18006da49
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006da44
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006da44
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800df07c
movaps xmm0, xmmword [0x180104b10]
movups xmmword [rbp - 0x39], xmm0
mov eax, dword [0x180124ab4]
cdq
sub eax, edx
sar eax, 1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbp - 9], xmm0
mov eax, dword [0x180124ab0]
cdq
sub eax, edx
sar eax, 1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbp - 5], xmm0
lea rcx, [rbp - 0x39]
call fcn.180003c50
mov byte [rsp + 0x28], 1
mov dword [rsp + 0x20], eax
movss xmm3, dword [0x180103e7c]
lea r8, [rbp - 9]
lea rdx, [0x180123708]
mov rcx, qword [0x180124c00]
call fcn.180052a90
cmp byte [0x1801248a9], 0
je 0x18006dac1
call fcn.18005d370
call fcn.180009db0
mov rcx, qword [0x180124c50]
mov rax, qword [rcx]
xor r8d, r8d
lea edx, [r8 + 7]
call qword [rax + 0x1c8]
mov rcx, qword [0x180124c50]
mov rax, qword [rcx]
xor r8d, r8d
lea edx, [r8 + 0x1b]
call qword [rax + 0x1c8]
mov rcx, qword [0x180124c50]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, 0xae
call qword [rax + 0x1c8]
mov rcx, qword [0x180124c50]
mov rax, qword [rcx]
mov dword [rsp + 0x30], esi
movss xmm0, dword [0x180103de8]
movss dword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], esi
mov r9d, 3
xor r8d, r8d
xor edx, edx
call qword [rax + 0x158]
mov rcx, qword [0x180124c50]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x18006dbaa
call fcn.18000a270
mov rbx, qword [0x1801248a0]
cmp dword [rbx + 0x4ad8], 0
jg 0x18006db80
mov r8d, 0x782
lea rdx, str.D:_nolifeDocumentsonevade_fivemdrugdrug.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbx + 0x4ae0]
mov rcx, qword [rax]
add rcx, 0x48
cmp byte [rcx], 0
cmove rcx, rsi
call fcn.180031850
mov rcx, qword [0x180124c50]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x180124c50]
mov rax, qword [rcx]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x18006dc21
mov rcx, qword [0x180124c50]
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
cmp eax, 0x88760869
jne 0x18006dc21
call fcn.1800320f0
mov rcx, qword [0x180124c50]
mov rax, qword [rcx]
lea rdx, [0x180124c10]
call qword [rax + 0x80]
mov rax, qword [0x1801248a0]
test rax, rax
je 0x18006dc21
mov rax, qword [rax + 0x98]
test rax, rax
je 0x18006dc21
cmp qword [rax], 0
je 0x18006dc21
call fcn.180031e60
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1800dedc0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret