Function at 0x180051080
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x180109070]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov dword [rbp + 0x1f], 0xc9c8d1ce
mov dword [rbp + 0x23], 0xcbe9efe4
mov dword [rbp + 0x27], 0xfff8ebe5
mov word [rbp + 0x2b], 0x100
xor esi, esi
mov ecx, esi
nop dword [rax]
lea eax, [rcx - 0x7f]
xor byte [rbp + rcx + 0x1f], al
inc rcx
cmp rcx, 0xc
jb 0x1800510d0
mov byte [rbp + 0x2c], sil
xor edx, edx
lea rcx, [rbp + 0x1f]
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [0x18015b4a8], rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_SetMenu]
mov edx, reloc.WS2_32.dll_recvfrom
mov rcx, qword [0x18015b4a8]
call qword [sym.imp.USER32.dll_SetWindowDisplayAffinity]
mov edx, 0xfffffff0
mov r8d, 0x10000000
mov rcx, qword [0x18015b4a8]
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
mov edx, 0xffffffec
mov r8d, 0x80020
mov rcx, qword [0x18015b4a8]
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
lea r8, [0x180051000]
mov edx, 0xfffffffc
mov rcx, qword [0x18015b4a8]
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
mov dword [rsp + 0x30], 0x40
mov eax, dword [0x18015b758]
mov dword [rsp + 0x28], eax
mov eax, dword [0x18015b818]
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x18015b4a8]
call qword [sym.imp.USER32.dll_SetWindowPos]
movdqa xmm0, xmmword [0x1800f5070]
movdqu xmmword [rbp + 0x3f], xmm0
lea rdx, [rbp + 0x3f]
mov rcx, qword [0x18015b4a8]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov rcx, rax
mov qword [0x18015b838], rax
test rax, rax
je 0x18005175e
mov qword [0x18015b850], rsi
mov qword [0x18015b858], 1
mov qword [0x18015b870], 0x50
mov dword [0x18015b868], 1
mov dword [0x18015b848], 0x15
mov dword [0x18015b86c], 1
mov r9, qword [0x18015b4a8]
mov qword [0x18015b860], r9
mov eax, dword [0x18015b818]
mov dword [0x18015b840], eax
mov eax, dword [0x18015b758]
mov dword [0x18015b844], eax
mov dword [0x18015b878], esi
mov dword [0x18015b84c], 1
mov dword [0x18015b87c], 0x80000000
mov rax, qword [rcx]
lea rdx, [0x18015b880]
mov qword [rsp + 0x30], rdx
lea rdx, [0x18015b840]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
xor edx, edx
lea r8d, [rdx + 1]
call qword [rax + 0x80]
test eax, eax
js 0x18005175e
mov rdi, qword [0x18015b2a0]
mov rdx, qword [0x18015b2b0]
mov ecx, 0x61c8
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r9, rax
mov r8, qword [0x18015b2a0]
test r8, r8
je 0x180051302
mov r10d, dword [r8 + 0x3f60]
movsx rax, word [r8 + 0x6078]
lea rdx, [r8 + 0x607c]
lea rdx, [rdx + rax*8]
cmp dword [rdx], r10d
je 0x1800512f7
lea ecx, [rax + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6078], cx
movsx rax, cx
lea rdx, [r8 + 0x607c]
lea rdx, [rdx + rax*8]
mov dword [rdx], r10d
mov dword [rdx + 4], esi
inc word [rdx + 4]
inc dword [r8 + 0x6070]
mov qword [rbp + 0x2f], r9
lea rax, [rbp + 0x17]
mov qword [rbp + 0x37], rax
mov qword [rbp + 0x1f], r9
test r9, r9
je 0x180051323
xor edx, edx
mov rcx, r9
call fcn.180001690
jmp 0x180051326
mov rax, rsi
mov qword [0x18015b2a0], rax
call fcn.180005730
mov rbx, qword [0x18015b2a0]
test rdi, rdi
cmovne rbx, rdi
mov qword [0x18015b2a0], rbx
test rbx, rbx
jne 0x18005136d
mov r8d, 0x10b0
lea rdx, str.C:UsersmetaphorDesktopmetaowningwarzoneiiidrugdrug.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 rbx, qword [0x18015b2a0]
mov qword [rbx + 0x20], rsi
movdqa xmm0, xmmword [0x1800f5b00]
movdqu xmmword [rbp - 9], xmm0
mov dword [rbp + 7], 0xe6f6c4cd
mov dword [rbp + 0xb], 0xf9f9f7f1
mov dword [rbp + 0xf], 0xfaefeeb7
mov word [rbp + 0x13], 0x100
mov rcx, rsi
nop dword [rax]
lea eax, [rcx - 0x7f]
xor byte [rbp + rcx - 9], al
inc rcx
cmp rcx, 0x1c
jb 0x1800513a0
mov byte [rbp + 0x14], 0
movss xmm2, dword [0x1800f4ecc]
lea rdx, [rbp - 9]
mov rcx, qword [rbx + 0x38]
call fcn.18002a140
mov qword [0x18015b4b8], rax
movdqa xmm0, xmmword [0x1800f5b00]
movdqu xmmword [rbp - 9], xmm0
mov dword [rbp + 7], 0xe6f6c4cd
mov dword [rbp + 0xb], 0xf9f9f7f1
mov dword [rbp + 0xf], 0xfaefeeb7
mov word [rbp + 0x13], 0x100
mov rcx, rsi
nop dword [rax + rax]
lea eax, [rcx - 0x7f]
xor byte [rbp + rcx - 9], al
inc rcx
cmp rcx, 0x1c
jb 0x180051400
mov byte [rbp + 0x14], 0
movss xmm2, dword [0x1800f4ed8]
lea rdx, [rbp - 9]
mov rcx, qword [rbx + 0x38]
call fcn.18002a140
mov qword [0x18015b820], rax
movdqa xmm0, xmmword [0x1800f5b00]
movdqu xmmword [rbp - 9], xmm0
mov dword [rbp + 7], 0xe6f6c4cd
mov dword [rbp + 0xb], 0xf9f9f7f1
mov dword [rbp + 0xf], 0xfaefeeb7
mov word [rbp + 0x13], 0x100
mov rcx, rsi
nop dword [rax + rax]
lea eax, [rcx - 0x7f]
xor byte [rbp + rcx - 9], al
inc rcx
cmp rcx, 0x1c
jb 0x180051460
mov byte [rbp + 0x14], 0
movss xmm2, dword [0x1800f4ee4]
lea rdx, [rbp - 9]
mov rcx, qword [rbx + 0x38]
call fcn.18002a140
movdqa xmm0, xmmword [0x1800f5b00]
movdqu xmmword [rbp - 9], xmm0
mov dword [rbp + 7], 0xe6f6c4cd
mov dword [rbp + 0xb], 0xf9f9f7f1
mov dword [rbp + 0xf], 0xfaefeeb7
mov word [rbp + 0x13], 0x100
mov rcx, rsi
nop dword [rax]
nop dword [rax + rax]
lea eax, [rcx - 0x7f]
xor byte [rbp + rcx - 9], al
inc rcx
cmp rcx, 0x1c
jb 0x1800514c0
mov byte [rbp + 0x14], 0
movss xmm2, dword [0x1800f4ee8]
lea rdx, [rbp - 9]
mov rcx, qword [rbx + 0x38]
call fcn.18002a140
mov rax, qword [0x18015b2a0]
test rax, rax
jne 0x180051516
mov r8d, 0xbc4
lea rdx, str.C:UsersmetaphorDesktopmetaowningwarzoneiiidrugdrug.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 rax, qword [0x18015b2a0]
mov dword [rax + 0x3900], 0x3f800000
mov qword [rax + 0x391c], 0x3f800000
mov qword [rax + 0x3934], 0x3f800000
mov dword [rax + 0x3970], 0x3f800000
mov qword [rax + 0x38f8], rsi
mov dword [rax + 0x3904], 0x3f800000
movaps xmm0, xmmword [0x1800f5740]
movups xmmword [rax + 0x39d4], xmm0
movaps xmm1, xmmword [0x1800f54e0]
movups xmmword [rax + 0x39f4], xmm1
movaps xmm0, xmmword [0x1800f5630]
movups xmmword [rax + 0x3a04], xmm0
movaps xmm1, xmmword [0x1800f56f0]
movups xmmword [rax + 0x3a14], xmm1
movaps xmm0, xmmword [0x1800f5570]
movups xmmword [rax + 0x3a24], xmm0
movaps xmm1, xmmword [0x1800f5640]
movups xmmword [rax + 0x3a44], xmm1
movaps xmm0, xmmword [0x1800f5710]
movups xmmword [rax + 0x3a54], xmm0
movaps xmm1, xmm0
movups xmmword [rax + 0x3a64], xmm0
movaps xmm0, xmmword [0x1800f5630]
movups xmmword [rax + 0x3af4], xmm0
movaps xmm1, xmmword [0x1800f5600]
movups xmmword [rax + 0x3b04], xmm1
movups xmmword [rax + 0x3b14], xmm0
movaps xmm1, xmmword [0x1800f5640]
movups xmmword [rax + 0x3b24], xmm1
movaps xmm0, xmmword [0x1800f53f0]
movups xmmword [rax + 0x3b34], xmm0
movaps xmm1, xmm0
movups xmmword [rax + 0x3b44], xmm0
movaps xmm0, xmmword [0x1800f54c0]
movups xmmword [rax + 0x3b54], xmm0
movaps xmm1, xmm0
movups xmmword [rax + 0x3b64], xmm0
movaps xmm0, xmmword [0x1800f5530]
movups xmmword [rax + 0x3b74], xmm0
mov rcx, qword [0x18015b4a8]
call fcn.18002fbf0
mov rdi, qword [0x18015b880]
mov rbx, qword [0x18015b2a0]
test rbx, rbx
jne 0x18005166c
mov r8d, 0x10b0
lea rdx, str.C:UsersmetaphorDesktopmetaowningwarzoneiiidrugdrug.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 rbx, qword [0x18015b2a0]
cmp qword [rbx + 0x98], 0
je 0x180051690
mov r8d, 0x11f
lea rdx, str.C:UsersmetaphorDesktopmetaowningwarzoneiiidrugdrug_impl_dx9.cpp
lea rcx, str.io.BackendRendererUserData__nullptr___Already_initialized_a_renderer_backend__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rdx, qword [0x18015b2b0]
mov ecx, Ordinal_41
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rax
mov r9, qword [0x18015b2a0]
test r9, r9
je 0x180051710
mov r10d, dword [r9 + 0x3f60]
movsx r11, word [r9 + 0x6078]
lea rdx, [r9 + 0x607c]
lea rdx, [rdx + r11*8]
cmp dword [rdx], r10d
je 0x180051705
lea ecx, [r11 + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r9 + 0x6078], cx
movsx rax, cx
lea rdx, [r9 + 0x607c]
lea rdx, [rdx + rax*8]
mov dword [rdx], r10d
mov dword [rdx + 4], esi
inc word [rdx + 4]
inc dword [r9 + 0x6070]
test r8, r8
je 0x180051736
mov qword [r8], rsi
mov qword [r8 + 8], rsi
mov qword [r8 + 0x10], rsi
mov qword [r8 + 0x18], rsi
mov dword [r8 + 0x20], 0x1388
mov dword [r8 + 0x24], 0x2710
jmp 0x180051739
mov r8, rsi
mov qword [rbx + 0x98], r8
lea rax, str.drug_impl_dx9
mov qword [rbx + 0x88], rax
or dword [rbx + 0xc], 8
mov qword [r8], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1800d12f0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret