Function at 0x18006d1d0
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 [0x18011a070]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor esi, esi
mov rax, qword [0x1801258a0]
test rax, rax
je 0x18006d21e
mov rbx, qword [rax + 0x98]
test rbx, rbx
jne 0x18006d242
jmp 0x18006d221
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 [0x1801258a0]
cmp qword [rbx + 0x18], rsi
jne 0x18006d263
test rax, rax
je 0x18006d263
mov rcx, qword [rax + 0x98]
test rcx, rcx
je 0x18006d263
cmp qword [rcx], rsi
je 0x18006d263
call fcn.180031e60
call fcn.180032fd0
call fcn.180007a30
movzx eax, byte [reloc.WS2_32.dll_accept]
movzx edi, al
mov rbx, qword [0x1801258a0]
test rbx, rbx
jne 0x18006d2ab
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 [0x1801258a0]
mov byte [rbx + 0x58], dil
test al, al
je 0x18006d5e9
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, [0x180078f00]
lea r14, [0x180000000]
mov rax, qword [0x180126360]
test rax, rax
je 0x18006d339
mov rdx, rsi
nop word [rax + rax]
cmp rax, r15
je 0x18006d328
inc ecx
mov edx, ecx
mov rax, qword [r14 + rcx*8 + 0x126360]
test rax, rax
jne 0x18006d310
jmp 0x18006d339
mov r8, qword [r14 + rdx*8 + 0x126040]
test r8, r8
jne 0x18006d41f
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 0x18006d360
mov r8, rsi
jmp 0x18006d3fe
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 0x18006d370
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 [0x180126680]
mov qword [r14 + rax*8 + 0x126360], r15
mov qword [r14 + rax*8 + 0x126040], r8
inc rax
mov qword [0x180126680], 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, [0x180078d70]
mov rax, qword [0x180126690]
test rax, rax
je 0x18006d4bb
mov rdx, rsi
cmp rax, r15
je 0x18006d4aa
inc ecx
mov edx, ecx
mov rax, qword [r14 + rcx*8 + 0x126690]
test rax, rax
jne 0x18006d492
jmp 0x18006d4bb
mov r8, qword [r14 + rdx*8 + 0x125d20]
test r8, r8
jne 0x18006d59f
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 0x18006d4e2
mov r8, rsi
jmp 0x18006d57e
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 0x18006d4f0
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 [0x1801269b0]
mov qword [r14 + rax*8 + 0x126690], r15
mov qword [r14 + rax*8 + 0x125d20], r8
inc rax
mov qword [0x1801269b0], 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 0x18006d5e2
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 0x18006d5e9
mov byte [rbx + 0xe50], 0
movaps xmm0, xmmword [0x180105ca0]
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 0x18006d630
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 0x18006d666
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.180075f90
nop
mov dword [rsp + 0x20], edi
movss xmm3, dword [0x180104e70]
lea r8, [rbp - 9]
lea rdx, [rbp + 7]
mov rcx, qword [0x180125af0]
call fcn.180052440
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x18006d6dd
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006d6d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006d6d8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800df64c
movaps xmm0, xmmword [0x180105ca0]
movups xmmword [rbp - 9], xmm0
lea rcx, [rbp - 9]
call fcn.180003c50
mov edi, eax
mov dword [rbp - 9], 0x41200000
movss xmm0, dword [0x180104e80]
movss dword [rbp - 5], xmm0
mov r9, qword [0x1801258a0]
test r9, r9
jne 0x18006d734
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 [0x1801258a0]
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 0x18006d760
mov byte [rbp - 0x32], 0
lea rax, [rbp - 0x39]
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x18006d780
mov r9, rbx
lea r8, [rbp - 0x39]
mov rcx, rdx
call fcn.18007e700
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 [0x180104e68]
lea r8, [rbp - 9]
lea rdx, [rbp + 7]
mov rcx, qword [0x180125c00]
call fcn.180052830
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x18006d81b
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006d815
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006d815
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800df64c
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x18006d859
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006d854
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006d854
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800df64c
movaps xmm0, xmmword [0x180105b20]
movups xmmword [rbp - 0x39], xmm0
mov eax, dword [0x180125ab4]
cdq
sub eax, edx
sar eax, 1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbp - 9], xmm0
mov eax, dword [0x180125ab0]
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 [0x180104e6c]
lea r8, [rbp - 9]
lea rdx, [0x180124708]
mov rcx, qword [0x180125c00]
call fcn.180052830
cmp byte [0x1801258a9], 0
je 0x18006d8d1
call fcn.18005d150
call fcn.180009db0
mov rcx, qword [0x180125c50]
mov rax, qword [rcx]
xor r8d, r8d
lea edx, [r8 + 7]
call qword [rax + 0x1c8]
mov rcx, qword [0x180125c50]
mov rax, qword [rcx]
xor r8d, r8d
lea edx, [r8 + 0x1b]
call qword [rax + 0x1c8]
mov rcx, qword [0x180125c50]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, 0xae
call qword [rax + 0x1c8]
mov rcx, qword [0x180125c50]
mov rax, qword [rcx]
mov dword [rsp + 0x30], esi
movss xmm0, dword [0x180104dd8]
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 [0x180125c50]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x18006d9ba
call fcn.18000a270
mov rbx, qword [0x1801258a0]
cmp dword [rbx + 0x4ad8], 0
jg 0x18006d990
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 [0x180125c50]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x180125c50]
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 0x18006da31
mov rcx, qword [0x180125c50]
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
cmp eax, 0x88760869
jne 0x18006da31
call fcn.1800320f0
mov rcx, qword [0x180125c50]
mov rax, qword [rcx]
lea rdx, [0x180125c10]
call qword [rax + 0x80]
mov rax, qword [0x1801258a0]
test rax, rax
je 0x18006da31
mov rax, qword [rax + 0x98]
test rax, rax
je 0x18006da31
cmp qword [rax], 0
je 0x18006da31
call fcn.180031e60
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1800df390
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