Function at 0x180039610
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x48]
sub rsp, 0x130
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
mov rax, qword [0x1801165d8]
xor rax, rsp
mov qword [rbp - 8], rax
mov qword [rbp - 0x40], 0xffffffffffffffff
mov qword [rbp - 0x38], 0xffffffffffffffff
mov qword [rbp - 0x30], 0xffffffffffffffff
mov qword [rbp - 0x28], 0xffffffffffffffff
mov qword [rbp - 0x20], 0xffffffffffffffff
mov qword [rbp - 0x18], 0xffffffffffffffff
xor r15d, r15d
mov qword [rbp - 0x10], r15
movsd xmm0, qword [0x180102670]
movsd qword [rsp + 0x48], xmm0
mov eax, dword [0x180102678]
mov dword [rsp + 0x50], eax
movzx eax, word [0x18010267c]
mov word [rsp + 0x54], ax
lea edi, [r15 + 4]
lea esi, [rdi + 0x1b]
mov ebx, dword [reloc.WS2_32.dll_accept]
cmp byte [0x18010267d], r15b
je 0x180039810
mov r8d, r15d
cmp ebx, 2
jl 0x1800397cf
movdqa xmm4, xmmword [0x1801048f0]
movd xmm6, edi
movd xmm5, esi
movdqa xmm2, xmmword [0x180104490]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1801044e0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1801045a0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x180104600]
movd xmm0, dword [0x180102670]
pxor xmm2, xmm0
movd dword [rsp + 0x48], xmm2
movdqa xmm3, xmmword [0x1801044b0]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1801044e0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1801045a0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x180104600]
movd xmm0, dword [rsp + 0x4c]
pxor xmm2, xmm0
movd dword [rsp + 0x4c], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rsp + 0x48]
add r9, rax
nop word [rax + rax]
mov eax, 0x4bda12f7
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
sub al, cl
add al, 0x34
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xe
jl 0x1800397e0
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r10, rax
test rax, rax
je 0x180039a37
movups xmm0, xmmword [0x180102690]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [0x1801026a0]
movups xmmword [rbp - 0x80], xmm1
movsd xmm0, qword [0x1801026b0]
movsd qword [rbp - 0x70], xmm0
movzx ecx, byte [0x1801026b8]
mov byte [rbp - 0x68], cl
mov r8d, r15d
cmp ebx, 2
jl 0x1800399a7
movdqa xmm5, xmmword [0x180104490]
movdqa xmm4, xmmword [0x1801048f0]
movd xmm6, edi
movdqa xmm7, xmmword [0x1801044e0]
movd xmm8, esi
movdqa xmm0, xmmword [0x180104600]
movdqa xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x70]
mov edx, dword [rsp + 0x60]
nop dword [rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1801045a0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
pxor xmm2, xmm0
movd dword [rcx], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1801045a0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx + 4]
pxor xmm2, xmm0
movd dword [rcx + 4], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x28
jl 0x1800398a0
cmp r8d, 0x29
jge 0x1800399f0
movsxd rax, r8d
lea r9, [rsp + 0x70]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4bda12f7
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
sub al, cl
add al, 0x34
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x29
jl 0x1800399c0
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180039a37
mov r8, qword [0x1802dbd28]
mov rdx, qword [0x1802dbd20]
sub r8, rdx
mov qword [rsp + 0x30], r15
lea rcx, [0x1802dbb38]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x40]
mov rcx, qword [0x1802dbb48]
call rax
mov rbx, qword [0x1802dbb28]
test rbx, rbx
je 0x180039a49
inc dword [rbx + 0xf4]
mov ecx, 0x5e48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp - 0x48], rax
lea rcx, [rsp + 0x40]
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x58], rax
test rax, rax
je 0x180039a76
xor edx, edx
mov rcx, rax
call fcn.180008970
jmp 0x180039a79
mov rax, r15
mov qword [0x1802dbb28], rax
call fcn.18000c120
mov rdi, qword [0x1802dbb28]
test rbx, rbx
cmovne rdi, rbx
mov qword [0x1802dbb28], rdi
mov qword [rdi + 0x20], r15
xor ecx, ecx
call fcn.180028490
mov ecx, 0x1c3e78
call fcn.1800ac23c
mov rbx, rax
mov r8d, 0x1c3e78
lea rdx, [0x180116600]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
movss xmm3, dword [0x1801043b4]
mov r8d, 0x1c3e78
mov rdx, rbx
mov rcx, qword [rdi + 0x58]
call fcn.18002cec0
mov rcx, qword [0x1802dbbb8]
call fcn.1800322b0
mov r14, qword [0x1802dbb40]
mov rsi, qword [0x1802dbb48]
mov rdi, qword [0x1802dbb28]
test rdi, rdi
je 0x180039b17
inc dword [rdi + 0xf4]
mov ecx, 0x78
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
mov qword [rbp - 0x60], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x48], rbx
test rbx, rbx
je 0x180039b6b
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x50], xmm0
movups xmmword [rbx + 0x60], xmm0
mov dword [rbx + 0x70], 0x1388
mov dword [rbx + 0x74], 0x2710
jmp 0x180039b6e
mov rbx, r15
mov qword [rdi + 0xa0], rbx
lea rax, str.imgui_impl_dx11
mov qword [rdi + 0x90], rax
or dword [rdi + 0xc], 8
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], r15
mov rax, qword [rsi]
lea r8, [rbp - 0x58]
lea rdx, [0x180102398]
mov rcx, rsi
call qword [rax]
test eax, eax
jne 0x180039beb
mov rcx, qword [rbp - 0x58]
mov rax, qword [rcx]
lea r8, [rbp - 0x50]
lea rdx, [0x1801023a8]
call qword [rax + Ordinal_50]
test eax, eax
jne 0x180039beb
mov rcx, qword [rbp - 0x50]
mov rax, qword [rcx]
lea r8, [rbp - 0x48]
lea rdx, [0x1801023b8]
call qword [rax + Ordinal_50]
test eax, eax
jne 0x180039beb
mov qword [rbx], rsi
mov qword [rbx + 8], r14
mov rax, qword [rbp - 0x48]
mov qword [rbx + 0x10], rax
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x180039bfa
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x180039c09
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1800ac1d0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret