Function at 0x140017c80
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x278]
sub rsp, 0x378
mov rax, qword [0x140063040]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov qword [rsp + 0x20], rcx
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
cmp r8, 0x180
jbe 0x140017cc6
mov eax, 0xffffffc8
jmp 0x140018000
mov qword [rsp + 0x370], r13
lea rcx, [rbp + 0xb0]
mov qword [rsp + 0x368], r14
xor edx, edx
mov r8d, 0x1a0
mov qword [rsp + 0x360], r15
call fcn.1400326f0
mov eax, ebx
mov byte [rbp + 0xc7], 0x30
bswap eax
mov r8, rbx
mov dword [rbp + 0xc0], eax
mov rdx, rdi
lea rcx, [rbp + 0xc8]
call fcn.140032040
xor r15d, r15d
mov byte [rbp + rbx + 0xc8], pe_nt_image_headers64
mov eax, r15d
lea r13, [rbx + 0x19]
lea rcx, [rbp + 0x90]
nop
mov byte [rcx], al
lea rcx, [rcx + 1]
inc eax
cmp eax, 0x20
jl 0x140017d30
lea rcx, [rsp + 0x30]
call fcn.14001b5a0
mov r8d, 0x100
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x30]
call fcn.14001b840
mov r14d, eax
mov r10d, reloc.WS2_32.dll_recv
test eax, eax
jne 0x140017f8b
mov qword [rsp + 0x3b8], r12
mov r12, r15
nop word [rax + rax]
xorps xmm0, xmm0
mov rdi, r13
movups xmmword [rbp + 0x50], xmm0
test r13, r13
je 0x140017ef9
lea rsi, [rbp + 0x50]
lea rax, [rbp + 0xb0]
sub rsi, rax
lea rbx, [rbp + 0xbf]
nop dword [rax + rax]
mov rax, r15
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rbx + rax - 0xf]
xor qword [rbp + rax + 0x50], rcx
add rax, 8
lea rcx, [rax + 8]
cmp rcx, 0x10
jbe 0x140017dc0
mov rdx, r10
sub rdx, rax
cmp rax, 0x10
jae 0x140017eb0
cmp rdx, 0x40
jb 0x140017e90
lea r9, [rax - 0xf]
lea rcx, [rbp + 0x50]
add r9, rbx
add rcx, rax
cmp rcx, rbx
ja 0x140017e12
lea rcx, [rbp + 0x5f]
cmp rcx, r9
jae 0x140017e90
and edx, 0x3f
mov r8, r10
sub r8, rdx
lea rcx, [r9 + 0x20]
nop
movdqu xmm0, xmmword [rcx + rsi - 0x20]
add rax, 0x40
movdqu xmm1, xmmword [rcx - 0x20]
lea rcx, [rcx + 0x40]
pxor xmm1, xmm0
movdqu xmmword [rcx + rsi - 0x60], xmm1
movdqu xmm0, xmmword [rcx + rsi - 0x50]
movdqu xmm1, xmmword [rcx - 0x50]
pxor xmm1, xmm0
movdqu xmmword [rcx + rsi - 0x50], xmm1
movdqu xmm0, xmmword [rcx + rsi - 0x40]
movdqu xmm1, xmmword [rcx - 0x40]
pxor xmm1, xmm0
movdqu xmmword [rcx + rsi - 0x40], xmm1
movdqu xmm0, xmmword [rcx + rsi - 0x30]
movdqu xmm1, xmmword [rcx - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rcx + rsi - 0x30], xmm1
cmp rax, r8
jb 0x140017e20
cmp rax, 0x10
jae 0x140017eb0
nop word [rax + rax]
lea rdx, [rbp + 0x50]
add rdx, rax
lea r8, [rbp + 0x5f]
mov rcx, rdx
inc rax
sub rcx, r8
movzx ecx, byte [rcx + rbx]
xor byte [rdx], cl
cmp rax, 0x10
jb 0x140017e90
mov rax, rdi
lea r9, [rbp + 0x50]
add rbx, 0x10
lea r8, [rbp + 0x50]
sub rsi, 0x10
lea rcx, [rsp + 0x30]
cmp rdi, 0x10
mov edx, 1
cmovae rax, r10
sub rdi, rax
call fcn.14001b560
mov r14d, eax
test eax, eax
jne 0x140017f7e
lea r10d, [rax + 0x10]
test rdi, rdi
jne 0x140017db0
movups xmm0, xmmword [rbp + 0x50]
inc byte [rbp + 0xb3]
movups xmmword [rbp + r12 + 0x60], xmm0
add r12, 0x10
cmp r12, 0x30
jl 0x140017d80
mov r8d, 0x100
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.14001b840
mov rsi, qword [rsp + 0x20]
mov r14d, eax
test eax, eax
jne 0x140017f83
mov rbx, rsi
nop word [rax + rax]
lea r9, [rbp + 0x80]
mov edx, 1
lea r8, [rbp + 0x80]
lea rcx, [rsp + 0x30]
call fcn.14001b560
mov r14d, eax
test eax, eax
jne 0x140017f83
movups xmm0, xmmword [rbp + 0x80]
add r15d, 0x10
movups xmmword [rbx], xmm0
add rbx, 0x10
cmp r15d, 0x30
jl 0x140017f40
jmp 0x140017f83
mov rsi, qword [rsp + 0x20]
mov r12, qword [rsp + 0x3b8]
lea rcx, [rsp + 0x30]
call fcn.14001b590
mov edx, 0x1a0
lea rcx, [rbp + 0xb0]
call fcn.140018c90
mov edx, 0x30
lea rcx, [rbp + 0x60]
call fcn.140018c90
mov edx, 0x20
lea rcx, [rbp + 0x90]
call fcn.140018c90
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rbp + 0x50]
call fcn.140018c90
mov r15, qword [rsp + 0x360]
mov r13, qword [rsp + 0x370]
test r14d, r14d
je 0x140017ff5
mov edx, 0x30
mov rcx, rsi
call fcn.140018c90
mov eax, r14d
mov r14, qword [rsp + 0x368]
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.1400310d0
add rsp, 0x378
pop rdi
pop rsi
pop rbx
pop rbp
ret