Function at 0x180047e50
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 [0x180151a70]
test rax, rax
jne 0x180047ed1
mov r8d, 0xbc4
lea rdx, str.C:UsersmetaphorPicturesCamera_Rollmetaowningwarzoneiiidrugdrug.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 [0x180151a70]
mov dword [rax + 0x3938], 0x3f400000
mov rcx, rbx
call fcn.180033f00
mov rdi, qword [0x180151a70]
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.18001dd20
cmp dword [rdi + 0x4a3c], 0x15
je 0x180047f42
movups xmmword [rdi + 0x3b24], xmm6
movaps xmm6, xmmword [0x1800f5a60]
mov rdi, qword [0x180151a70]
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.18001dd20
cmp dword [rdi + 0x4a3c], 0x16
je 0x180047f85
movups xmmword [rdi + 0x3b34], xmm6
movaps xmm6, xmmword [0x1800f5a70]
mov rdi, qword [0x180151a70]
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.18001dd20
cmp dword [rdi + 0x4a3c], 0x17
je 0x180047fc8
movups xmmword [rdi + 0x3b44], xmm6
mov rcx, qword [0x180151c88]
call fcn.180010df0
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 0x180047ff6
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.180047060
nop
mov dword [rsp + 0x40], 0x441617
mov byte [rsp + 0x44], 1
mov rcx, r12
nop
lea eax, [rcx + 0x34]
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 - 0x40]
call fcn.180069580
nop
mov dword [rsp + 0x40], 0x511617
mov byte [rsp + 0x44], 1
mov rcx, r12
nop dword [rax]
lea eax, [rcx + 0x34]
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 - 0x60]
call fcn.180069580
nop
mov dword [rsp + 0x40], 0x541617
mov byte [rsp + 0x44], 1
mov rcx, r12
nop dword [rax]
lea eax, [rcx + 0x34]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 3
jb 0x1800480a0
mov byte [rsp + 0x44], 0
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.180069580
nop
movss xmm7, dword [rsp + 0x58]
movaps xmm9, xmm7
addss xmm9, dword [0x1800f501c]
movss xmm10, dword [rsp + 0x5c]
movaps xmm6, xmm10
addss xmm6, dword [0x1800f4f78]
mov rdi, qword [0x180151a70]
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.18001e200
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 [0x1800f4ef0]
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.180036760
mov rdi, qword [0x180151a70]
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 [0x1800f5050]
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.18001e200
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.180036760
mov rdi, qword [0x180151a70]
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 [0x1800f5080]
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.18001e200
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.180036760
mov rcx, qword [0x180151a70]
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 [0x1800f4f78]
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 [0x1800f5b80]
movups xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.180003ae0
movaps xmm1, xmm7
addss xmm1, dword [0x1800f4f88]
movaps xmm0, xmm6
addss xmm0, dword [0x1800f5058]
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.180028b30
mov rcx, rsi
call fcn.180003ae0
movaps xmm1, xmm7
addss xmm1, dword [0x1800f4f7c]
movaps xmm0, xmm6
addss xmm0, dword [0x1800f5054]
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.180028c30
call fcn.180010f20
mov ecx, 3
call fcn.1800041e0
mov rax, qword [0x180151a70]
test rax, rax
jne 0x1800484d5
mov r8d, 0xbc4
lea rdx, str.C:UsersmetaphorPicturesCamera_Rollmetaowningwarzoneiiidrugdrug.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 [0x180151a70]
mov dword [rax + 0x3938], r12d
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x18004851a
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180048515
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180048515
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d0fac
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 0x180048568
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180048563
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180048563
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d0fac
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 0x1800485b6
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800485b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800485b1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d0fac
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 0x180048606
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180048601
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180048601
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d0fac
mov rcx, qword [rbp - 0x20]
xor rcx, rsp
call fcn.1800d0cf0
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