Function at 0x14007f840
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x128
movaps xmmword [rax - 0x58], xmm6
movaps xmmword [rax - 0x68], xmm7
xor edi, edi
mov dword [rbp + 0x80], edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x1401377c0]
movdqu xmmword [rsp + 0x70], xmm1
mov byte [rsp + 0x60], dil
call fcn.14008eb40
mov qword [rbp - 8], rax
test rax, rax
je 0x140080294
movdqa xmm6, xmmword [0x140138030]
movdqu xmmword [rsp + 0x20], xmm6
mov dword [rsp + 0x30], 0x5e465e00
mov byte [rsp + 0x34], 0x2e
mov r14d, 8
mov rax, qword gs:[0x58]
mov rbx, qword [rax]
mov qword [rbp - 0x10], rbx
lea rsi, [0x140273338]
mov eax, dword [r14 + rbx]
cmp dword [0x140273720], eax
jle 0x14007f94d
lea rcx, [0x140273720]
call fcn.1400c6f30
cmp dword [0x140273720], 0xffffffff
jne 0x14007f94d
mov edx, edi
movups xmmword [0x140273338], xmm6
mov eax, dword [rsp + 0x30]
mov dword [0x140273348], eax
mov byte [0x14027334c], 0x2e
nop word [rax + rax]
inc edx
cmp edx, 0x15
jb 0x14007f910
movsxd r8, edx
cmp r8, 0x15
jae 0x14007f935
movzx eax, byte [rsp + r8 + 0x20]
mov byte [r8 + rsi], al
inc edx
lea r8, [r8 + 1]
cmp edx, 0x15
jb 0x14007f920
lea rcx, [0x140106550]
call fcn.1400c72a0
lea rcx, [0x140273720]
call fcn.1400c6ec4
cmp byte [0x14027334c], 0
je 0x14007f98d
movdqa xmm1, xmmword [0x140137b00]
movdqu xmm0, xmmword [0x140273338]
xorps xmm1, xmm0
movdqu xmmword [0x140273338], xmm1
mov eax, reloc.WS2_32.dll_recv
nop word [rax + rax]
xor byte [rax + rsi], 0x2e
inc rax
cmp rax, 0x15
jb 0x14007f980
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
mov r12, 0xffffffffffffffff
mov r8, r12
inc r8
cmp byte [rsi + r8], 0
jne 0x14007f9a6
mov rdx, rsi
lea rcx, [rbp - 0x60]
call fcn.14008a990
nop
mov eax, dword [r14 + rbx]
cmp dword [0x140272724], eax
jle 0x14007f9ff
lea rcx, [0x140272724]
call fcn.1400c6f30
cmp dword [0x140272724], 0xffffffff
jne 0x14007f9ff
mov word [0x140272f74], 0x2e11
lea rcx, [0x140106540]
call fcn.1400c72a0
lea rcx, [0x140272724]
call fcn.1400c6ec4
movzx eax, byte [0x140272f75]
test al, al
je 0x14007fa19
xor byte [0x140272f74], 0x2e
xor al, 0x2e
mov byte [0x140272f75], al
lea rdx, [0x140272f74]
mov r8, r12
inc r8
cmp byte [rdx + r8], 0
jne 0x14007fa23
lea rcx, [rbp - 0x60]
call fcn.140087910
lea rcx, [rbp - 0x40]
call fcn.140083620
nop
cmp qword [rax + 0x18], 0xf
jbe 0x14007fa4a
mov rax, qword [rax]
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], rdi
mov r8, r12
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14007fa60
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.14008a990
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov r15, rdi
mov qword [rsp + 0x30], rdi
mov ebx, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x38], rbx
mov byte [rsp + 0x20], r15b
mov dword [rbp + 0x80], 1
mov rdx, qword [0x140271478]
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
mov r8, r12
nop dword [rax]
inc r8
cmp byte [rdx + r8], r15b
jne 0x14007fac0
lea rcx, [rsp + 0x40]
call fcn.14008a990
nop
mov eax, dword [rbp - 0x70]
mov r14d, edi
mov r8, qword [rbp - 0x80]
test eax, eax
je 0x140080284
mov rdx, rdi
mov rcx, rdi
movzx esi, byte [rbp + 0x79]
mov r9, qword [rbp - 0x68]
nop dword [rax]
nop dword [rax + rax]
dec eax
mov dword [rbp + 0x88], eax
lea rax, [rbp - 0x80]
cmp r9, 0xf
cmova rax, r8
cmp byte [rax + rdx], 0x3d
je 0x14007fd44
lea rax, [rbp - 0x80]
cmp r9, 0xf
cmova rax, r8
movzx eax, byte [rax + rdx]
mov byte [rbp + rcx + 0x78], al
inc r14d
inc rcx
inc rdx
mov qword [rbp - 0x18], rdx
cmp rcx, 4
jne 0x14007fd32
lea rbx, [rsp + 0x40]
mov rsi, qword [rsp + 0x40]
mov r13, qword [rsp + 0x58]
cmp r13, 0xf
cmova rbx, rsi
mov r14, qword [rsp + 0x50]
test r14, r14
je 0x14007fb83
movsx edx, byte [rbp + 0x78]
mov r8, r14
mov rcx, rbx
call fcn.1401026b0
test rax, rax
je 0x14007fb83
sub rax, rbx
jmp 0x14007fb86
mov rax, r12
mov byte [rbp + 0x78], al
lea rbx, [rsp + 0x40]
cmp r13, 0xf
cmova rbx, rsi
test r14, r14
je 0x14007fbb7
movsx edx, byte [rbp + 0x79]
mov r8, r14
mov rcx, rbx
call fcn.1401026b0
mov rsi, rax
test rax, rax
je 0x14007fbb7
sub rsi, rbx
jmp 0x14007fbba
mov rsi, r12
mov byte [rbp + 0x79], sil
lea r13, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova r13, qword [rsp + 0x40]
test r14, r14
je 0x14007fbf0
movsx edx, byte [rbp + 0x7a]
mov r8, r14
mov rcx, r13
call fcn.1401026b0
mov rbx, rax
test rax, rax
je 0x14007fbf0
sub rbx, r13
jmp 0x14007fbf3
mov rbx, r12
mov byte [rbp + 0x7a], bl
lea r13, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova r13, qword [rsp + 0x40]
test r14, r14
je 0x14007fc28
movsx edx, byte [rbp + 0x7b]
mov r8, r14
mov rcx, r13
call fcn.1401026b0
mov rcx, rax
test rax, rax
je 0x14007fc28
sub rcx, r13
jmp 0x14007fc2b
mov rcx, r12
mov byte [rbp + 0x7b], cl
movzx r14d, bl
shr r14b, 2
and r14b, 0xf
movzx eax, sil
shl al, 4
add r14b, al
shl bl, 6
add bl, cl
mov byte [rbp + 0x72], bl
movzx r9d, sil
shr r9b, 4
and r9b, 3
movzx eax, byte [rbp + 0x78]
shl al, 2
add r9b, al
mov rcx, qword [rsp + 0x38]
cmp r15, rcx
jae 0x14007fc90
lea rax, [r15 + 1]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x20]
cmp rcx, 0xf
cmova rax, qword [rsp + 0x20]
mov byte [rax + r15], r9b
mov byte [rax + r15 + 1], 0
jmp 0x14007fc9a
lea rcx, [rsp + 0x20]
call fcn.14008b260
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
cmp rcx, rdx
jae 0x14007fccc
lea rax, [rcx + 1]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x20]
cmp rdx, 0xf
cmova rax, qword [rsp + 0x20]
mov byte [rax + rcx], r14b
mov byte [rax + rcx + 1], 0
jmp 0x14007fcda
movzx r9d, r14b
lea rcx, [rsp + 0x20]
call fcn.14008b260
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
cmp rcx, rdx
jae 0x14007fd0b
lea rax, [rcx + 1]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x20]
cmp rdx, 0xf
cmova rax, qword [rsp + 0x20]
mov byte [rax + rcx], bl
mov byte [rax + rcx + 1], 0
jmp 0x14007fd19
movzx r9d, bl
lea rcx, [rsp + 0x20]
call fcn.14008b260
mov r14d, edi
mov rcx, rdi
mov r15, qword [rsp + 0x30]
mov rdx, qword [rbp - 0x18]
mov r8, qword [rbp - 0x80]
mov r9, qword [rbp - 0x68]
jmp 0x14007fd36
movzx esi, byte [rbp + 0x79]
mov eax, dword [rbp + 0x88]
test eax, eax
jne 0x14007fb00
mov qword [rbp + 0x88], r15
test r14d, r14d
je 0x14008027f
mov r13, qword [rsp + 0x40]
jle 0x14007fdbd
mov rbx, rdi
mov rax, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
movsxd r15, r14d
nop dword [rax + rax]
lea rsi, [rsp + 0x40]
cmp rdi, 0xf
cmova rsi, r13
test rax, rax
je 0x14007fd9c
movsx edx, byte [rbp + rbx + 0x78]
mov r8, rax
mov rcx, rsi
call fcn.1401026b0
test rax, rax
je 0x14007fd9c
sub rax, rsi
jmp 0x14007fd9f
mov rax, r12
mov byte [rbp + rbx + 0x78], al
inc rbx
cmp rbx, r15
mov rax, qword [rsp + 0x50]
jl 0x14007fd70
movzx esi, byte [rbp + 0x79]
xor edi, edi
mov r15, qword [rbp + 0x88]
movzx ecx, sil
shr cl, 4
and cl, 3
movzx eax, byte [rbp + 0x78]
shl al, 2
add cl, al
mov byte [rbp + 0x70], cl
movzx eax, byte [rbp + 0x7a]
shr al, 2
and al, 0xf
shl sil, 4
add al, sil
mov byte [rbp + 0x71], al
lea eax, [r14 - 1]
movsxd rsi, eax
test eax, eax
jle 0x14007fe59
mov rbx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx r9d, byte [rbp + rbx + 0x70]
mov r12, qword [rsp + 0x38]
cmp r15, r12
jae 0x14007fe34
lea rax, [r15 + 1]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x20]
cmp r12, 0xf
cmova rax, qword [rsp + 0x20]
mov byte [rax + r15], r9b
mov byte [rax + r15 + 1], 0
jmp 0x14007fe3e
lea rcx, [rsp + 0x20]
call fcn.14008b260
inc rbx
cmp rbx, rsi
jge 0x14007fe4d
mov r15, qword [rsp + 0x30]
jmp 0x14007fe00
mov r13, qword [rsp + 0x40]
mov r12, 0xffffffffffffffff
mov rbx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x58]
cmp rax, 0xf
jbe 0x14007fe9a
lea rdx, [rax + 1]
mov rax, r13
cmp rdx, 0x1000
jb 0x14007fe92
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400802a1
mov rcx, r13
call fcn.1400c72b8
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], 0
lea rdx, [rsp + 0x20]
cmp rbx, 0xf
cmova rdx, qword [rsp + 0x20]
nop dword [rax]
inc r12
cmp byte [rdx + r12], 0
jne 0x14007fec0
mov r8, r12
lea rcx, [rbp - 0x60]
call fcn.140087910
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14007ff15
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007ff0f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400802a7
call fcn.1400c72b8
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x14007ff51
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007ff4b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400802ad
call fcn.1400c72b8
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x14007ff8c
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007ff87
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400802b3
call fcn.1400c72b8
movdqa xmm6, xmmword [0x140138340]
movdqu xmmword [rbp - 0x40], xmm6
movdqa xmm7, xmmword [0x140138040]
movdqu xmmword [rbp - 0x30], xmm7
mov byte [rbp - 0x20], 0x2e
lea rsi, [0x140272128]
mov rbx, qword [rbp - 0x10]
mov r14d, 8
mov eax, dword [r14 + rbx]
cmp dword [0x140271840], eax
jle 0x14008003d
lea rcx, [0x140271840]
call fcn.1400c6f30
cmp dword [0x140271840], 0xffffffff
jne 0x14008003d
mov edx, edi
movups xmmword [0x140272128], xmm6
movups xmmword [0x140272138], xmm7
mov byte [0x140272148], 0x2e
inc edx
cmp edx, 0x21
jb 0x14007fff3
movsxd r8, edx
cmp r8, 0x21
jae 0x140080025
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbp + r8 - 0x40]
mov byte [r8 + rsi], al
inc edx
lea r8, [r8 + 1]
cmp edx, 0x21
jb 0x140080010
lea rcx, [0x140106520]
call fcn.1400c72a0
lea rcx, [0x140271840]
call fcn.1400c6ec4
cmp byte [0x140272148], 0
je 0x14008007d
movdqa xmm1, xmmword [0x140137b00]
nop
movdqu xmm0, xmmword [rdi + rsi]
xorps xmm0, xmm1
movdqu xmmword [rdi + rsi], xmm0
add rdi, 0x10
cmp rdi, 0x20
jb 0x140080050
cmp rdi, 0x21
jae 0x14008007d
nop dword [rax]
xor byte [rdi + rsi], 0x2e
inc rdi
cmp rdi, 0x21
jb 0x140080070
mov r8, rsi
lea rcx, [rbp - 0x60]
call fcn.1400877f0
lea r8, [rbp - 0x60]
cmp qword [rbp - 0x48], 0xf
cmova r8, qword [rbp - 0x60]
mov edx, 0x2712
mov rdi, qword [rbp - 8]
mov rcx, rdi
call fcn.140090f10
lea r8, [0x140084320]
mov edx, 0x4e2b
mov rcx, rdi
call fcn.140090f10
lea r8, [rsp + 0x60]
mov edx, 0x2711
mov rcx, rdi
call fcn.140090f10
mov rcx, rdi
call fcn.14008ec10
test eax, eax
jne 0x1400802b9
mov rcx, rdi
call fcn.14008eb20
mov eax, dword [r14 + rbx]
cmp dword [0x1402720a8], eax
jle 0x140080132
lea rcx, [0x1402720a8]
call fcn.1400c6f30
cmp dword [0x1402720a8], 0xffffffff
jne 0x140080132
mov dword [0x140271ce4], 0x4a4a4a56
mov word [0x140271ce8], 0x2e1f
lea rcx, [0x140106500]
call fcn.1400c72a0
lea rcx, [0x1402720a8]
call fcn.1400c6ec4
movzx eax, byte [0x140271ce9]
test al, al
je 0x140080168
xor byte [0x140271ce4], 0x2e
xor byte [0x140271ce5], 0x2e
xor byte [0x140271ce6], 0x2e
xor byte [0x140271ce7], 0x2e
xor byte [0x140271ce8], 0x2e
xor al, 0x2e
mov byte [0x140271ce9], al
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rcx, qword [rsp + 0x60]
lea rdx, [0x140271ce4]
call case.0x14000806e.3
lea rcx, [rsp + 0x60]
test rax, rax
jne 0x1400802c6
mov r8, qword [rsp + 0x60]
mov r9, qword [rsp + 0x78]
cmp r9, 0xf
cmova rcx, r8
lea rdx, [0x1402711b8]
sub rdx, rcx
nop
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400801b0
lea rdi, [rsp + 0x60]
cmp r9, 0xf
cmova rdi, r8
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x14008020f
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008020a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008038a
call fcn.1400c72b8
movdqa xmm0, xmmword [0x1401377c0]
movdqu xmmword [rbp - 0x50], xmm0
mov byte [rbp - 0x60], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140080259
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140080254
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008028e
call fcn.1400c72b8
xor eax, eax
movaps xmm6, xmmword [rsp + 0x110]
movaps xmm7, xmmword [rsp + 0x100]
add rsp, 0x128
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rbx, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
jmp 0x14007fe5e
call fcn.1400e16e0
nop
call fcn.140084350
xor ecx, ecx
call fcn.1400decb0
nop
call fcn.1400e16e0
nop
call fcn.1400e16e0
nop
call fcn.1400e16e0
nop
call fcn.1400e16e0
int3
call fcn.140084350
xor ecx, ecx
call fcn.1400decb0
int3
call fcn.140087730
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rcx, [rsp + 0x20]
call fcn.140083620
nop
mov rcx, rax
call fcn.140087730
mov rdx, rax
mov r8d, reloc.WS2_32.dll_socket
lea rcx, [rsp + 0x40]
call fcn.140083b00
mov rdi, rax
lea rcx, [rbp - 0x40]
call fcn.140083620
mov rsi, rax
mov edx, setsockopt
mov r8d, setsockopt
mov rcx, rdi
call fcn.140087780
mov rcx, rax
call fcn.140087730
mov rbx, rax
mov rcx, rsi
call fcn.140087730
mov rdi, rax
call fcn.140080390
mov rcx, rax
call fcn.140087430
mov rcx, rax
mov r8, rbx
mov rdx, rdi
call fcn.14004d370
nop
lea rcx, [rbp - 0x40]
call fcn.1400879b0
nop
lea rcx, [rsp + 0x40]
call fcn.1400879b0
nop
lea rcx, [rsp + 0x20]
call fcn.1400879b0
movss xmm0, dword [0x1401376e8]
call fcn.14004cfb0
call fcn.140084350
xor ecx, ecx
call fcn.1400decb0
nop
call fcn.1400e16e0
int3