Function at 0x14004a980
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x570
mov rax, qword [0x1401560e8]
xor rax, rsp
mov qword [rsp + 0x560], rax
xor r12d, r12d
mov dword [rsp + 0x38], r12d
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x370]
call fcn.1400c0f70
movabs rax, 0x195f8f924659f96a
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x190], rax
movabs rax, 0x6e7a40661a340768
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x198], rax
movabs rax, 0x6a38e1fb322d9c19
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x4a0], rax
movabs r13, 0x6e7a40661a426846
mov qword [rsp + 0x38], r13
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x4a8], rax
vmovdqu xmm0, xmmword [rsp + 0x190]
vpxor xmm1, xmm0, xmmword [rsp + 0x4a0]
vmovdqu xmmword [rsp + 0x190], xmm1
lea rax, [0x14012f880]
mov qword [rsp + 0x370], rax
mov qword [rsp + 0x428], r12
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [rsp + 0x450], xmm0
mov qword [rsp + 0x460], r12
mov dword [rsp + 0x38], 1
lea r15, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x420], r15
mov dword [rsp + 0x41c], 0x98
mov qword [rsp + 0x378], r12
xor r8d, r8d
lea rdx, [rsp + 0x380]
lea rcx, [rsp + 0x420]
call fcn.140041640
nop
mov rax, qword [rsp + 0x370]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x370], r14
mov rax, qword [rsp + 0x370]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x36c], edx
lea rcx, [rsp + 0x380]
call fcn.14004e730
nop
lea r8d, [r12 + 1]
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x380]
call fcn.14004e690
lea edi, [r12 + 6]
lea esi, [rdi - 4]
test rax, rax
jne 0x14004ab6c
mov rax, qword [rsp + 0x370]
movsxd rcx, dword [rax + 4]
mov eax, edi
cmp qword [rsp + rcx + 0x3b8], r12
cmovne eax, esi
or eax, dword [rsp + rcx + 0x380]
and eax, 0x17
mov dword [rsp + rcx + 0x380], eax
mov edx, dword [rsp + rcx + 0x384]
and edx, eax
jne 0x14004b3db
cmp qword [rsp + 0x400], 0
je 0x14004b328
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x350], xmm0
vmovdqu xmm1, xmmword [0x140138f10]
vmovdqu xmmword [rsp + 0x360], xmm1
mov byte [rsp + 0x350], 0
mov rax, qword [rsp + 0x370]
movsxd rcx, dword [rax + 4]
mov rax, qword [rsp + rcx + 0x3b0]
mov rcx, qword [rax + 8]
mov qword [rsp + 0xe8], rcx
mov rax, qword [rcx]
call qword [rax + htons]
nop
lea rcx, [rsp + 0xe0]
call fcn.14003e380
mov rcx, qword [rax]
mov r8, qword [rcx + 0x40]
mov dl, 0xa
mov rcx, rax
call r8
movzx ebx, al
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x14004ac10
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
test rax, rax
je 0x14004ac10
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
movzx r8d, bl
lea rdx, [rsp + 0x350]
lea rcx, [rsp + 0x370]
call fcn.14004f830
lea rdx, [rsp + 0x350]
lea rcx, [rsp + 0x330]
call fcn.1400260b0
mov r10d, r12d
cmp qword [rsp + 0x340], r10
jbe 0x14004aca2
mov r9, r12
nop
lea rcx, [rsp + 0x330]
cmp qword [rsp + 0x348], 0x10
setae r8b
cmovae rcx, qword [rsp + 0x330]
movzx ecx, byte [rcx + r9]
xor cl, 0x32
lea rax, [rsp + 0x330]
test r8b, r8b
cmovne rax, qword [rsp + 0x330]
mov byte [rax + r9], cl
inc r10d
lea r9, [r9 + 1]
movsxd rax, r10d
cmp rax, qword [rsp + 0x340]
jb 0x14004ac50
mov dword [rsp + 0x38], recv
mov qword [rsp + 0x288], r12
lea r8, [rsp + 0x250]
lea rdx, [rsp + 0x330]
lea rcx, [rsp + 0x320]
call fcn.140027fb0
nop
cmp byte [rsp + 0x320], 1
jne 0x14004b294
movabs rbx, 0xf5580954048ef6c
mov qword [rsp + 0x48], rbx
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x1b0], rax
mov qword [rsp + 0x48], r13
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x1b8], rax
movabs rax, 0x6a38e1fb322d9c19
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x4c0], rax
mov qword [rsp + 0x48], r13
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x4c8], rax
vmovdqu xmm0, xmmword [rsp + 0x1b0]
vpxor xmm1, xmm0, xmmword [rsp + 0x4c0]
vmovdqu xmmword [rsp + 0x1b0], xmm1
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x320]
call fcn.14004ec70
cmp rax, 1
jne 0x14004b294
mov qword [rsp + 0x30], rbx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x130], rax
mov qword [rsp + 0x30], r13
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x138], rax
movabs rax, 0x6a38e1fb322d9c19
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x4e0], rax
mov qword [rsp + 0x30], r13
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x4e8], rax
vmovdqu xmm0, xmmword [rsp + 0x130]
vpxor xmm1, xmm0, xmmword [rsp + 0x4e0]
vmovdqu xmmword [rsp + 0x130], xmm1
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x150], xmm0
mov qword [rsp + 0x160], r12
mov qword [rsp + 0x168], r12
lea rax, [rsp + 0x130]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14004ae20
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x150]
call fcn.1400288f0
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x320]
call fcn.1400259b0
cmp byte [rax], 3
jne 0x14004b294
movabs rax, 0xe4a8e8c415efd69
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x1d0], rax
mov qword [rsp + 0x30], r13
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x1d8], rax
movabs rax, 0x6a38e1fb322d9c19
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x500], rax
mov qword [rsp + 0x30], r13
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x508], rax
vmovdqu xmm0, xmmword [rsp + 0x1d0]
vpxor xmm1, xmm0, xmmword [rsp + 0x500]
vmovdqu xmmword [rsp + 0x1d0], xmm1
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0xb0], rax
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x320]
call fcn.14004ec70
cmp rax, 1
jne 0x14004b294
movabs rax, 0xe4a8e8c415efd69
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x30], r13
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x68], rax
movabs rax, 0x6a38e1fb322d9c19
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x520], rax
mov qword [rsp + 0x30], r13
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x528], rax
vmovdqu xmm0, xmmword [rsp + 0x60]
vpxor xmm1, xmm0, xmmword [rsp + 0x520]
vmovdqu xmmword [rsp + 0x60], xmm1
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x170], xmm0
mov qword [rsp + 0x180], r12
mov qword [rsp + 0x188], r12
lea rax, [rsp + 0x60]
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x14004af93
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x170]
call fcn.1400288f0
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x320]
call fcn.1400259b0
cmp byte [rax], 3
jne 0x14004b294
movabs rax, 0xf5580954048ef6c
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x30], r13
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xc8], rax
movabs rax, 0x6a38e1fb322d9c19
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x540], rax
mov qword [rsp + 0x30], r13
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x548], rax
vmovdqu xmm0, xmmword [rsp + 0xc0]
vpxor xmm1, xmm0, xmmword [rsp + 0x540]
vmovdqu xmmword [rsp + 0xc0], xmm1
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0xf0], xmm0
mov qword [rsp + 0x100], r12
mov qword [rsp + 0x108], r12
lea rax, [rsp + 0xc0]
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14004b070
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xf0]
call fcn.1400288f0
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x320]
call fcn.1400259b0
nop
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x90], xmm0
vmovdqu xmm1, xmmword [0x140138f10]
vmovdqu xmmword [rsp + 0xa0], xmm1
mov byte [rsp + 0x90], 0
mov dword [rsp + 0x38], 0x8d
cmp byte [rax], 3
jne 0x14004b435
mov rdx, qword [rax + 8]
lea rax, [rsp + 0x90]
cmp rax, rdx
je 0x14004b109
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x14004b0fb
mov rdx, qword [rdx]
lea rcx, [rsp + 0x90]
call fcn.140034980
nop
mov dword [rsp + 0x38], 0x4d
lea rdx, [rsp + 0x90]
cmp qword [rsp + 0xa8], 0x10
cmovae rdx, qword [rsp + 0x90]
mov r8d, 0x3f
lea rcx, [0x140175430]
call fcn.1400d5ec0
lea rcx, [rsp + 0x90]
call fcn.1400274a0
movabs rax, 0xe4a8e8c415efd69
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], r13
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
movabs rax, 0x6a38e1fb322d9c19
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x480], rax
mov qword [rsp + 0x40], r13
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x488], rax
vmovdqu xmm0, xmmword [rsp + 0x50]
vpxor xmm1, xmm0, xmmword [rsp + 0x480]
vmovdqu xmmword [rsp + 0x50], xmm1
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x110], xmm0
mov qword [rsp + 0x120], r12
mov qword [rsp + 0x128], r12
lea rax, [rsp + 0x50]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14004b1d7
mov r8, rbx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x110]
call fcn.1400288f0
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x320]
call fcn.1400259b0
nop
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x70], xmm0
vmovdqu xmm1, xmmword [0x140138f10]
vmovdqu xmmword [rsp + 0x80], xmm1
mov byte [rsp + 0x70], 0
mov dword [rsp + 0x38], WSAStartup
cmp byte [rax], 3
jne 0x14004b47f
mov rdx, qword [rax + 8]
lea rax, [rsp + 0x70]
cmp rax, rdx
je 0x14004b263
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x14004b258
mov rdx, qword [rdx]
lea rcx, [rsp + 0x70]
call fcn.140034980
nop
lea rdx, [rsp + 0x70]
cmp qword [rsp + 0x88], 0x10
cmovae rdx, qword [rsp + 0x70]
mov r8d, 0x3f
lea rcx, [0x1401753f0]
call fcn.1400d5ec0
lea rcx, [rsp + 0x70]
call fcn.1400274a0
nop
movzx edx, byte [rsp + 0x320]
lea rcx, [rsp + 0x328]
call fcn.140026e60
nop
jmp 0x14004b2c2
lea rcx, [rsp + 0x380]
call fcn.14004e590
test rax, rax
jne 0x14004b30c
mov rax, qword [rsp + 0x370]
movsxd rcx, dword [rax + 4]
cmp qword [rsp + rcx + 0x3b8], 0
cmovne edi, esi
or edi, dword [rsp + rcx + 0x380]
and edi, 0x17
mov dword [rsp + rcx + 0x380], edi
mov eax, dword [rsp + rcx + 0x384]
and eax, edi
jne 0x14004b4c9
lea rcx, [rsp + 0x330]
call fcn.1400274a0
nop
lea rcx, [rsp + 0x350]
call fcn.1400274a0
nop
mov rax, qword [rsp + 0x370]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x370], r14
mov rax, qword [rsp + 0x370]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x36c], edx
lea rcx, [rsp + 0x380]
call fcn.14004dc80
mov rax, qword [rsp + 0x370]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x370], r15
mov rax, qword [rsp + 0x370]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x36c], edx
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0x420], rax
lea rcx, [rsp + 0x420]
call fcn.1400bc560
nop
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.1400bdcf0
lea r11, [rsp + 0x570]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
test dl, 4
je 0x14004b3e9
lea rbx, str.ios_base::badbit_set
jmp 0x14004b3fe
test sil, dl
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140034d60
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x200]
call fcn.140035590
lea rdx, [0x140153468]
lea rcx, [rsp + 0x200]
call fcn.1400c07d4
nop
mov rcx, rax
call fcn.1400272d0
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x300]
call fcn.140034ae0
nop
mov r8, rax
mov edx, 0x12e
lea rcx, [rsp + 0x290]
call fcn.140028620
lea rdx, [0x140152fa8]
lea rcx, [rsp + 0x290]
call fcn.1400c07d4
nop
mov rcx, rax
call fcn.1400272d0
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x480]
call fcn.140034ae0
nop
mov r8, rax
mov edx, 0x12e
lea rcx, [rsp + 0x2c8]
call fcn.140028620
lea rdx, [0x140152fa8]
lea rcx, [rsp + 0x2c8]
call fcn.1400c07d4
nop
test al, 4
je 0x14004b4d6
lea rbx, str.ios_base::badbit_set
jmp 0x14004b4ea
test al, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x1f0]
call fcn.140034d60
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x228]
call fcn.140035590
lea rdx, [0x140153468]
lea rcx, [rsp + 0x228]
call fcn.1400c07d4
int3