Function at 0x180047e10
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
movaps xmmword [rax - 0x88], xmm11
movaps xmmword [rax - 0x98], xmm12
mov rax, qword [0x180109070]
xor rax, rsp
mov qword [rbp - 0x20], rax
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x58], r8
mov rax, qword [0x18015b2a0]
test rax, rax
jne 0x180047e91
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]
mov rax, qword [rdi + 0x4008]
mov byte [rax + 0xc0], 1
mov rax, qword [rdi + 0x4008]
mov r14, qword [rax + 0x2a8]
movaps xmm6, xmmword [str._nW__nW__nW_]
mov dword [rsp + 0x40], reloc.WS2_32.dll_setsockopt
movups xmm0, xmmword [rdi + 0x3b24]
movups xmmword [rsp + 0x44], xmm0
lea rcx, [rdi + 0x4a40]
lea rdx, [rsp + 0x40]
call fcn.18001dd60
cmp dword [rdi + 0x4a3c], 0x15
je 0x180047f02
movups xmmword [rdi + 0x3b24], xmm6
movaps xmm6, xmmword [0x1800f5450]
mov rdi, qword [0x18015b2a0]
mov dword [rsp + 0x40], reloc.WLDAP32.dll_Ordinal_22
movups xmm0, xmmword [rdi + 0x3b34]
movups xmmword [rsp + 0x44], xmm0
lea rcx, [rdi + 0x4a40]
lea rdx, [rsp + 0x40]
call fcn.18001dd60
cmp dword [rdi + 0x4a3c], 0x16
je 0x180047f45
movups xmmword [rdi + 0x3b34], xmm6
movaps xmm6, xmmword [0x1800f5460]
mov rdi, qword [0x18015b2a0]
mov dword [rsp + 0x40], reloc.WS2_32.dll_socket
movups xmm0, xmmword [rdi + 0x3b44]
movups xmmword [rsp + 0x44], xmm0
lea rcx, [rdi + 0x4a40]
lea rdx, [rsp + 0x40]
call fcn.18001dd60
cmp dword [rdi + 0x4a3c], 0x17
je 0x180047f88
movups xmmword [rdi + 0x3b44], xmm6
mov rcx, qword [0x18015b4b8]
call fcn.180010e30
xor r12d, r12d
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x60], r12b
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x180047fb6
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.180047020
nop
mov dword [rsp + 0x40], 0xf1a1a2
mov byte [rsp + 0x44], 1
mov rcx, r12
nop
lea eax, [rcx - 0x7f]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 3
jb 0x180047fe0
mov byte [rsp + 0x44], 0
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x40]
call fcn.180069dc0
nop
mov dword [rsp + 0x40], 0xe4a1a2
mov byte [rsp + 0x44], 1
mov rcx, r12
nop dword [rax]
lea eax, [rcx - 0x7f]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 3
jb 0x180048020
mov byte [rsp + 0x44], 0
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.180069dc0
nop
mov dword [rsp + 0x40], 0xe1a1a2
mov byte [rsp + 0x44], 1
mov rcx, r12
nop dword [rax]
lea eax, [rcx - 0x7f]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 3
jb 0x180048060
mov byte [rsp + 0x44], 0
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.180069dc0
nop
movss xmm7, dword [rsp + 0x58]
movaps xmm9, xmm7
addss xmm9, dword [0x1800f4f4c]
movss xmm10, dword [rsp + 0x5c]
movaps xmm6, xmm10
addss xmm6, dword [0x1800f4ea8]
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]
movaps xmm2, xmm6
addss xmm2, xmm0
movss xmm1, dword [rax + 0x28]
subss xmm1, dword [rax + 0x8c]
addss xmm1, xmm9
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], 0x42c80000
and dword [rdi + 0x4958], 0xfffffffe
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rcx, qword [rbp - 0x40]
movss xmm11, dword [0x1800f4e20]
mov dword [rsp + 0x58], 0x3f800000
xorps xmm12, xmm12
mov dword [rsp + 0x40], 0
lea r15, str._.3f
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov r8, rsi
mov edx, 8
call fcn.1800367a0
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]
movaps xmm2, xmm6
addss xmm2, xmm0
movss xmm1, dword [rax + 0x28]
subss xmm1, dword [rax + 0x8c]
movaps xmm0, xmm7
addss xmm0, dword [0x1800f4f80]
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], 0x42c80000
and dword [rdi + 0x4958], 0xfffffffe
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rcx, qword [rbp - 0x60]
mov dword [rsp + 0x40], 0x3f800000
mov dword [rsp + 0x58], 0
lea r8, [rsi + 4]
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
mov edx, 8
call fcn.1800367a0
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]
addss xmm6, xmm0
movss xmm1, dword [rax + 0x28]
subss xmm1, dword [rax + 0x8c]
addss xmm7, dword [0x1800f4fb0]
addss xmm1, xmm7
movss dword [rax + 0x110], xmm1
movss dword [rax + 0x114], xmm6
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], 0x42c80000
and dword [rdi + 0x4958], 0xfffffffe
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rcx, qword [rbp - 0x80]
mov dword [rsp + 0x40], 0x3f800000
mov dword [rsp + 0x58], 0
lea r8, [rsi + 8]
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
mov edx, 8
call fcn.1800367a0
mov rcx, qword [0x18015b2a0]
mov rax, qword [rcx + 0x4008]
mov byte [rax + 0xc0], 1
mov rax, qword [rcx + 0x4008]
movss xmm0, dword [rax + 0x2c]
subss xmm0, dword [rax + 0x90]
subss xmm10, dword [0x1800f4ea8]
addss xmm10, xmm0
movss xmm1, dword [rax + 0x28]
subss xmm1, dword [rax + 0x8c]
addss xmm1, xmm9
movss dword [rax + 0x110], xmm1
movss dword [rax + 0x114], xmm10
mov byte [rax + 0x151], 1
mov rax, qword [rcx + 0x4008]
movss xmm6, dword [rax + 0x110]
movss xmm7, dword [rax + 0x114]
movaps xmm0, xmmword [0x1800f5570]
movups xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.180003b20
movaps xmm1, xmm7
addss xmm1, dword [0x1800f4eb8]
movaps xmm0, xmm6
addss xmm0, dword [0x1800f4f88]
movss dword [rsp + 0x40], xmm0
movss dword [rsp + 0x44], xmm1
movss dword [rsp + 0x58], xmm6
movss dword [rsp + 0x5c], xmm7
movss dword [rsp + 0x30], xmm11
movss dword [rsp + 0x20], xmm12
mov r9d, eax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
mov rcx, r14
call fcn.180028b70
mov rcx, rsi
call fcn.180003b20
movaps xmm1, xmm7
addss xmm1, dword [0x1800f4eac]
movaps xmm0, xmm6
addss xmm0, dword [0x1800f4f84]
movss dword [rsp + 0x40], xmm0
movss dword [rsp + 0x44], xmm1
addss xmm7, xmm11
addss xmm6, xmm11
movss dword [rsp + 0x58], xmm6
movss dword [rsp + 0x5c], xmm7
mov dword [rsp + 0x28], r12d
movss dword [rsp + 0x20], xmm12
mov r9d, eax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
mov rcx, r14
call fcn.180028c70
call fcn.180010f60
mov ecx, 3
call fcn.180004220
mov rax, qword [0x18015b2a0]
test rax, rax
jne 0x180048495
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], r12d
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x1800484da
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800484d5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800484d5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d15ac
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x80], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x180048528
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180048523
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180048523
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d15ac
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x60], 0
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x180048576
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180048571
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180048571
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d15ac
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x40], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x1800485c6
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800485c1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800485c1
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 - 0x20]
xor rcx, rsp
call fcn.1800d12f0
lea r11, [rsp + 0x150]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm9, xmmword [r11 - 0x30]
movaps xmm10, xmmword [r11 - 0x40]
movaps xmm11, xmmword [r11 - 0x50]
movaps xmm12, xmmword [r11 - 0x60]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret