Function at 0x180048610
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
movaps xmmword [rsp + 0xe0], xmm6
mov rax, qword [0x180109070]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r14d, r9d
mov rsi, rdx
mov rbx, rcx
mov qword [rbp - 0x79], r8
mov rax, qword [0x18015b2a0]
test rax, rax
jne 0x180048678
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 + 0x3938], 0x3f400000
mov rcx, rbx
call fcn.180033f40
mov rdi, qword [0x18015b2a0]
cmp dword [rdi + 0x4ad8], 0
jg 0x1800486b4
mov r8d, 0x782
lea rdx, str.C:UsersmetaphorDesktopmetaowningwarzoneiiidrugdrug.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 [rdi + 0x4ae0]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax]
call fcn.1800069b0
movaps xmm6, xmmword [0x1800f5600]
mov rdi, qword [0x18015b2a0]
mov dword [rbp - 0x61], reloc.WS2_32.dll_setsockopt
movups xmm0, xmmword [rdi + 0x3b24]
movups xmmword [rbp - 0x5d], xmm0
lea rcx, [rdi + 0x4a40]
lea rdx, [rbp - 0x61]
call fcn.18001dd60
cmp dword [rdi + 0x4a3c], 0x15
je 0x18004870f
movups xmmword [rdi + 0x3b24], xmm6
movaps xmm6, xmmword [0x1800f5750]
mov rdi, qword [0x18015b2a0]
mov dword [rbp - 0x61], reloc.WLDAP32.dll_Ordinal_22
movups xmm0, xmmword [rdi + 0x3b34]
movups xmmword [rbp - 0x5d], xmm0
lea rcx, [rdi + 0x4a40]
lea rdx, [rbp - 0x61]
call fcn.18001dd60
cmp dword [rdi + 0x4a3c], 0x16
je 0x18004874f
movups xmmword [rdi + 0x3b34], xmm6
movaps xmm6, xmmword [0x1800f5570]
mov rdi, qword [0x18015b2a0]
mov dword [rbp - 0x61], reloc.WS2_32.dll_socket
movups xmm0, xmmword [rdi + 0x3b44]
movups xmmword [rbp - 0x5d], xmm0
lea rcx, [rdi + 0x4a40]
lea rdx, [rbp - 0x61]
call fcn.18001dd60
cmp dword [rdi + 0x4a3c], 0x17
je 0x18004878f
movups xmmword [rdi + 0x3b44], xmm6
mov rcx, qword [0x18015b4b8]
call fcn.180010e30
xor r15d, r15d
mov qword [rbp - 0x61], r15
mov qword [rbp - 0x51], r15
mov qword [rbp - 0x49], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x61], r15b
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x1800487c0
mov rdx, rbx
lea rcx, [rbp - 0x61]
call fcn.180047020
nop
mov dword [rbp - 0x69], 0x100a1a2
mov rcx, r15
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x7f]
xor byte [rbp + rcx - 0x69], al
inc rcx
cmp rcx, 2
jb 0x1800487f0
mov byte [rbp - 0x66], 0
lea r8, [rbp - 0x61]
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 1]
call fcn.180069dc0
nop
mov dword [rbp - 0x71], 0xa0a1bd
mov byte [rbp - 0x6d], 1
mov rcx, r15
nop dword [rax]
nop dword [rax + rax]
lea eax, [rcx - 0x7f]
xor byte [rbp + rcx - 0x71], al
inc rcx
cmp rcx, 3
jb 0x180048830
mov byte [rbp - 0x6d], 0
lea r8, [rbp - 0x61]
lea rdx, [rbp - 0x71]
lea rcx, [rbp - 0x21]
call fcn.180069dc0
nop
mov dword [rbp - 0x71], 0xa0a1bf
mov byte [rbp - 0x6d], 1
mov rcx, r15
nop dword [rax]
nop dword [rax + rax]
lea eax, [rcx - 0x7f]
xor byte [rbp + rcx - 0x71], al
inc rcx
cmp rcx, 3
jb 0x180048870
mov byte [rbp - 0x6d], 0
lea r8, [rbp - 0x61]
lea rdx, [rbp - 0x71]
lea rcx, [rbp - 0x41]
call fcn.180069dc0
nop
mov rdi, qword [0x18015b2a0]
mov rax, qword [rdi + 0x4008]
mov byte [rax + 0xc0], 1
mov rax, qword [rdi + 0x4008]
movss xmm0, dword [rax + 0x2c]
subss xmm0, dword [rax + 0x90]
movss xmm2, dword [rbp - 0x75]
addss xmm2, dword [0x1800f4ec4]
addss xmm2, xmm0
movss xmm1, dword [rax + 0x28]
subss xmm1, dword [rax + 0x8c]
movss xmm6, dword [rbp - 0x79]
movaps xmm0, xmm6
addss xmm0, dword [0x1800f4f78]
addss xmm1, xmm0
movss dword [rax + 0x110], xmm1
movss dword [rax + 0x114], xmm2
mov byte [rax + 0x151], 1
mov rax, qword [rdi + 0x4008]
lea rcx, [rax + 0x1d8]
lea rbx, [rax + 0x1cc]
mov rdx, rbx
call fcn.18001e240
mov dword [rbx], 0x43480000
and dword [rdi + 0x4958], 0xfffffffe
lea rcx, [rbp - 1]
cmp qword [rbp + 0x17], 0x10
cmovae rcx, qword [rbp - 1]
mov dword [rbp - 0x69], r14d
mov dword [rbp - 0x71], 1
lea rax, [0x1800e9cc4]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x69]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x71]
mov r8, rsi
mov edx, 4
call fcn.1800367a0
mov rcx, qword [0x18015b2a0]
mov rax, qword [rcx + 0x4008]
mov byte [rax + 0xc0], 1
mov rax, qword [rcx + 0x4008]
movss xmm2, dword [rax + 0x2c]
subss xmm2, dword [rax + 0x90]
addss xmm2, dword [rbp - 0x75]
movss xmm1, dword [rax + 0x28]
subss xmm1, dword [rax + 0x8c]
movaps xmm0, xmm6
addss xmm0, dword [0x1800f4f58]
addss xmm1, xmm0
movss dword [rax + 0x110], xmm1
movss dword [rax + 0x114], xmm2
mov byte [rax + 0x151], 1
mov dword [rbp - 0x71], 0x42480000
mov dword [rbp - 0x6d], 0x41c80000
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 0x10
cmovae rcx, qword [rbp - 0x21]
lea rdx, [rbp - 0x71]
call fcn.180034850
test al, al
je 0x180048a06
mov eax, dword [rsi]
cmp eax, 1
jle 0x180048a06
dec eax
mov dword [rsi], eax
mov rcx, qword [0x18015b2a0]
mov rax, qword [rcx + 0x4008]
mov byte [rax + 0xc0], 1
mov rax, qword [rcx + 0x4008]
movss xmm1, dword [rax + 0x2c]
subss xmm1, dword [rax + 0x90]
addss xmm1, dword [rbp - 0x75]
movss xmm0, dword [rax + 0x28]
subss xmm0, dword [rax + 0x8c]
addss xmm6, dword [0x1800f4fcc]
addss xmm0, xmm6
movss dword [rax + 0x110], xmm0
movss dword [rax + 0x114], xmm1
mov byte [rax + 0x151], 1
mov dword [rbp - 0x79], 0x42480000
mov dword [rbp - 0x75], 0x41c80000
lea rcx, [rbp - 0x41]
cmp qword [rbp - 0x29], 0x10
cmovae rcx, qword [rbp - 0x41]
lea rdx, [rbp - 0x79]
call fcn.180034850
test al, al
je 0x180048a98
mov eax, dword [rsi]
cmp eax, r14d
jge 0x180048a98
inc eax
mov dword [rsi], eax
call fcn.180010f60
mov ecx, 3
call fcn.180004220
mov rax, qword [0x18015b2a0]
test rax, rax
jne 0x180048ad4
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 + 0x3938], r15d
mov rdx, qword [rbp - 0x29]
cmp rdx, 0x10
jb 0x180048b19
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180048b14
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180048b14
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d15ac
mov qword [rbp - 0x31], r15
mov qword [rbp - 0x29], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x41], 0
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x180048b67
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180048b62
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180048b62
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d15ac
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x21], 0
mov rdx, qword [rbp + 0x17]
cmp rdx, 0x10
jb 0x180048bb5
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180048bb0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180048bb0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d15ac
mov qword [rbp + 0xf], r15
mov qword [rbp + 0x17], reloc.WS2_32.dll_ntohs
mov byte [rbp - 1], 0
mov rdx, qword [rbp - 0x49]
cmp rdx, 0x10
jb 0x180048c03
inc rdx
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180048bfe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180048bfe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d15ac
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1800d12f0
mov rbx, qword [rsp + 0x138]
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret