Function at 0x180066210
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 [0x18010f070]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor esi, esi
mov rax, qword [0x18011f030]
test rax, rax
je 0x18006625e
mov rbx, qword [rax + 0x98]
test rbx, rbx
jne 0x180066282
jmp 0x180066261
mov rbx, rsi
mov r8d, 0x17c
lea rdx, str.C:Users_adminDocumentsonevade_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 [0x18011f030]
cmp qword [rbx + 0x18], rsi
jne 0x1800662a3
test rax, rax
je 0x1800662a3
mov rcx, qword [rax + 0x98]
test rcx, rcx
je 0x1800662a3
cmp qword [rcx], rsi
je 0x1800662a3
call fcn.180031d20
call fcn.180032e90
call fcn.1800078f0
movzx eax, byte [reloc.WS2_32.dll_accept]
movzx edi, al
mov rbx, qword [0x18011f030]
test rbx, rbx
jne 0x1800662eb
mov r8d, 0x10b0
lea rdx, str.C:Users_adminDocumentsonevade_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 [0x18011f030]
mov byte [rbx + 0x58], dil
test al, al
je 0x180066629
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, [0x18006f820]
lea r14, [0x180000000]
mov rax, qword [0x180138110]
test rax, rax
je 0x180066379
mov rdx, rsi
nop word [rax + rax]
cmp rax, r15
je 0x180066368
inc ecx
mov edx, ecx
mov rax, qword [r14 + rcx*8 + 0x138110]
test rax, rax
jne 0x180066350
jmp 0x180066379
mov r8, qword [r14 + rdx*8 + 0x137df0]
test r8, r8
jne 0x18006645f
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 0x1800663a0
mov r8, rsi
jmp 0x18006643e
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 0x1800663b0
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 [0x180138430]
mov qword [r14 + rax*8 + 0x138110], r15
mov qword [r14 + rax*8 + 0x137df0], r8
inc rax
mov qword [0x180138430], 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, [0x18006f7f0]
mov rax, qword [0x180138440]
test rax, rax
je 0x1800664fb
mov rdx, rsi
cmp rax, r15
je 0x1800664ea
inc ecx
mov edx, ecx
mov rax, qword [r14 + rcx*8 + 0x138440]
test rax, rax
jne 0x1800664d2
jmp 0x1800664fb
mov r8, qword [r14 + rdx*8 + 0x137ad0]
test r8, r8
jne 0x1800665df
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 0x180066522
mov r8, rsi
jmp 0x1800665be
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 0x180066530
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 [0x180138760]
mov qword [r14 + rax*8 + 0x138440], r15
mov qword [r14 + rax*8 + 0x137ad0], r8
inc rax
mov qword [0x180138760], 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 0x180066622
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 0x180066629
mov byte [rbx + 0xe50], 0
movaps xmm0, xmmword [0x1800fb080]
movups xmmword [rbp - 9], xmm0
lea rcx, [rbp - 9]
call fcn.180003b90
mov edi, eax
mov dword [rbp - 9], 0x41200000
mov dword [rbp - 5], 0x41200000
mov dword [rbp - 0x39], 0x1a1c0e36
mov dword [rbp - 0x35], 0x1000016
mov rcx, rsi
nop
lea eax, [rcx + 0x73]
xor byte [rbp + rcx - 0x39], al
inc rcx
cmp rcx, 6
jb 0x180066660
mov byte [rbp - 0x32], 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 0x180066696
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.18006d420
nop
mov dword [rsp + 0x20], edi
movss xmm3, dword [0x1800fa980]
lea r8, [rbp - 9]
lea rdx, [rbp + 7]
mov rcx, qword [0x18011f270]
call fcn.18004f540
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x18006670d
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180066708
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180066708
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d5f5c
movaps xmm0, xmmword [0x1800fb080]
movups xmmword [rbp - 9], xmm0
lea rcx, [rbp - 9]
call fcn.180003b90
mov edi, eax
mov dword [rbp - 9], 0x41200000
movss xmm0, dword [0x1800fa990]
movss dword [rbp - 5], xmm0
mov r9, qword [0x18011f030]
test r9, r9
jne 0x180066764
mov r8d, 0x10b0
lea rdx, str.C:Users_adminDocumentsonevade_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 [0x18011f030]
cvttss2si edx, dword [r9 + 0xd4]
lea rcx, [rbp - 0x29]
call fcn.18004a200
mov rdx, rax
mov dword [rbp - 0x39], 0x56262435
mov dword [rbp - 0x35], 0x100584d
mov rcx, rsi
nop word [rax + rax]
lea eax, [rcx + 0x73]
xor byte [rbp + rcx - 0x39], al
inc rcx
cmp rcx, 6
jb 0x180066790
mov byte [rbp - 0x32], 0
lea rax, [rbp - 0x39]
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1800667b0
mov r9, rbx
lea r8, [rbp - 0x39]
mov rcx, rdx
call fcn.180074400
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 [0x1800fa978]
lea r8, [rbp - 9]
lea rdx, [rbp + 7]
mov rcx, qword [0x18011f340]
call fcn.18004f930
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x18006684b
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180066845
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180066845
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d5f5c
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x180066889
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180066884
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180066884
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d5f5c
movaps xmm0, xmmword [0x1800faf00]
movups xmmword [rbp - 0x39], xmm0
mov eax, dword [0x18011f250]
cdq
sub eax, edx
sar eax, 1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbp - 9], xmm0
mov eax, dword [0x18011f03c]
cdq
sub eax, edx
sar eax, 1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbp - 5], xmm0
lea rcx, [rbp - 0x39]
call fcn.180003b90
mov byte [rsp + 0x28], 1
mov dword [rsp + 0x20], eax
movss xmm3, dword [0x1800fa97c]
lea r8, [rbp - 9]
lea rdx, [0x18011dec0]
mov rcx, qword [0x18011f340]
call fcn.18004f930
cmp byte [0x18011f039], 0
je 0x180066901
call fcn.180058640
call fcn.180009c70
mov rcx, qword [0x180137a30]
mov rax, qword [rcx]
xor r8d, r8d
lea edx, [r8 + 7]
call qword [rax + 0x1c8]
mov rcx, qword [0x180137a30]
mov rax, qword [rcx]
xor r8d, r8d
lea edx, [r8 + 0x1b]
call qword [rax + 0x1c8]
mov rcx, qword [0x180137a30]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, 0xae
call qword [rax + 0x1c8]
mov rcx, qword [0x180137a30]
mov rax, qword [rcx]
mov dword [rsp + 0x30], esi
movss xmm0, dword [0x1800fa8e8]
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 [0x180137a30]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x1800669ea
call fcn.18000a130
mov rbx, qword [0x18011f030]
cmp dword [rbx + 0x4ad8], 0
jg 0x1800669c0
mov r8d, 0x782
lea rdx, str.C:Users_adminDocumentsonevade_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.180031710
mov rcx, qword [0x180137a30]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x180137a30]
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 0x180066a61
mov rcx, qword [0x180137a30]
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
cmp eax, 0x88760869
jne 0x180066a61
call fcn.180031fb0
mov rcx, qword [0x180137a30]
mov rax, qword [rcx]
lea rdx, [0x1801379f0]
call qword [rax + 0x80]
mov rax, qword [0x18011f030]
test rax, rax
je 0x180066a61
mov rax, qword [rax + 0x98]
test rax, rax
je 0x180066a61
cmp qword [rax], 0
je 0x180066a61
call fcn.180031d20
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1800d5ca0
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