Function at 0x180047e30
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 [0x18015fa70]
test rax, rax
jne 0x180047eb1
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 [0x18015fa70]
mov dword [rax + 0x3938], 0x3f400000
mov rcx, rbx
call fcn.180033f60
mov rdi, qword [0x18015fa70]
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.18001dd80
cmp dword [rdi + 0x4a3c], 0x15
je 0x180047f22
movups xmmword [rdi + 0x3b24], xmm6
movaps xmm6, xmmword [0x1800f5820]
mov rdi, qword [0x18015fa70]
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.18001dd80
cmp dword [rdi + 0x4a3c], 0x16
je 0x180047f65
movups xmmword [rdi + 0x3b34], xmm6
movaps xmm6, xmmword [0x1800f5830]
mov rdi, qword [0x18015fa70]
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.18001dd80
cmp dword [rdi + 0x4a3c], 0x17
je 0x180047fa8
movups xmmword [rdi + 0x3b44], xmm6
mov rcx, qword [0x18015fc88]
call fcn.180010e50
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 0x180047fd6
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.180047040
nop
mov dword [rsp + 0x40], 0x3534c
mov byte [rsp + 0x44], 1
mov rcx, r12
nop
lea eax, [rcx + 0x6f]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 3
jb 0x180048000
mov byte [rsp + 0x44], 0
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x40]
call fcn.180069db0
nop
mov dword [rsp + 0x40], 0x16534c
mov byte [rsp + 0x44], 1
mov rcx, r12
nop dword [rax]
lea eax, [rcx + 0x6f]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 3
jb 0x180048040
mov byte [rsp + 0x44], 0
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.180069db0
nop
mov dword [rsp + 0x40], 0x13534c
mov byte [rsp + 0x44], 1
mov rcx, r12
nop dword [rax]
lea eax, [rcx + 0x6f]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 3
jb 0x180048080
mov byte [rsp + 0x44], 0
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.180069db0
nop
movss xmm7, dword [rsp + 0x58]
movaps xmm9, xmm7
addss xmm9, dword [0x1800f4ebc]
movss xmm10, dword [rsp + 0x5c]
movaps xmm6, xmm10
addss xmm6, dword [0x1800f4e18]
mov rdi, qword [0x18015fa70]
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.18001e260
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 [0x1800f4d90]
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.1800367c0
mov rdi, qword [0x18015fa70]
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 [0x1800f4ef0]
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.18001e260
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.1800367c0
mov rdi, qword [0x18015fa70]
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 [0x1800f4f20]
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.18001e260
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.1800367c0
mov rcx, qword [0x18015fa70]
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 [0x1800f4e18]
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 [0x1800f5940]
movups xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.180003b40
movaps xmm1, xmm7
addss xmm1, dword [0x1800f4e28]
movaps xmm0, xmm6
addss xmm0, dword [0x1800f4ef8]
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.180028b90
mov rcx, rsi
call fcn.180003b40
movaps xmm1, xmm7
addss xmm1, dword [0x1800f4e1c]
movaps xmm0, xmm6
addss xmm0, dword [0x1800f4ef4]
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.180028c90
call fcn.180010f80
mov ecx, 3
call fcn.180004240
mov rax, qword [0x18015fa70]
test rax, rax
jne 0x1800484b5
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 [0x18015fa70]
mov dword [rax + 0x3938], r12d
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x1800484fa
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800484f5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800484f5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d155c
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 0x180048548
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180048543
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180048543
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d155c
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 0x180048596
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180048591
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180048591
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d155c
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 0x1800485e6
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800485e1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800485e1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d155c
mov rcx, qword [rbp - 0x20]
xor rcx, rsp
call fcn.1800d12a0
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