Function at 0x140053fc0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x110
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x88], 0xfffffffffffffffe
mov rsi, rcx
cmp qword [r8], rcx
jne 0x1400541d5
mov rdi, rdx
mov qword [rdx], rsi
xorps xmm0, xmm0
movups xmmword [rdx + 8], xmm0
movabs rax, 0x8000000000000000
mov qword [rdx + 0x18], rax
movzx eax, byte [rsi]
cmp eax, 2
je 0x140054035
cmp eax, 1
jne 0x1400540c7
lea rbx, [rdi + 8]
mov rcx, qword [rsi + 8]
mov rdx, qword [r8 + 8]
call fcn.140054bc0
mov qword [rbx], rax
jmp 0x1400541c0
mov r14, qword [rsi + 8]
mov rsi, qword [r14 + 8]
mov qword [rdi + 0x10], rsi
mov r15, qword [r8 + 0x10]
lea r12, [r15 + 0x10]
cmp r12, rsi
je 0x1400540a9
lea rbx, [rbp + 0x70]
nop word cs:[rax + rax]
movzx edx, byte [r12 - 0x10]
movzx eax, byte [r12]
mov rcx, qword [r12 + 8]
mov byte [r12], 0
mov qword [r12 + 8], 0
mov byte [r12 - 0x10], al
mov byte [rbp + 0x68], dl
mov rax, qword [r12 - 8]
mov qword [r12 - 8], rcx
mov qword [rbp + 0x70], rax
mov rcx, rbx
call fcn.140042c20
add r12, 0x10
cmp r12, rsi
jne 0x140054060
mov rsi, qword [r14 + 8]
movzx edx, byte [rsi - 0x10]
add rsi, 0xfffffffffffffff8
mov rcx, rsi
call fcn.140042c20
add qword [r14 + 8], 0xfffffffffffffff0
mov qword [rdi + 0x10], r15
jmp 0x1400541c0
mov qword [rdi + 0x18], 1
lea ecx, [rax - 3]
cmp cl, 5
ja 0x1400542ce
cmp qword [r8 + 0x18], 0
jne 0x14005428d
cmp eax, 8
je 0x140054157
cmp eax, 3
jne 0x1400541bd
mov rbx, qword [rsi + 8]
mov rax, qword [rbx + 0x18]
cmp rax, 0x10
jb 0x140054136
mov rcx, qword [rbx]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140054131
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x1400543c2
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.1400f0ba0
lea r14, [rsi + 8]
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rcx, qword [r14]
mov edx, 0x20
jmp 0x1400541b1
lea r14, [rsi + 8]
mov rbx, qword [rsi + 8]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400541a9
mov rdx, qword [rbx + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140054193
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x1400543c2
add rdx, 0x27
mov rcx, rax
call fcn.1400f0ba0
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov rbx, qword [r14]
mov edx, 0x28
mov rcx, rbx
call fcn.1400f0ba0
mov qword [r14], 0
mov byte [rsi], 0
mov rax, rdi
add rsp, 0x110
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
cmp byte [0x140185b46], 0
jne 0x140054251
xor ecx, ecx
movabs r8, 0xcccccccccccccccd
lea r9, [0x1400fc250]
lea r10, [0x140185b22]
nop dword [rax + rax]
mov rax, rcx
mul r8
shr rdx, 2
and rdx, 0xfffffffffffffffc
lea rax, [rdx + rdx*4]
lea rdx, [r9 + rcx]
sub rdx, rax
movzx eax, byte [rdx + 0x4528]
movzx edx, byte [rdx + 0x4529]
xor al, byte [rcx + r9 + 0x453c]
xor dl, byte [rcx + r9 + 0x453d]
mov byte [rcx + r10], al
mov byte [rcx + r10 + 1], dl
add rcx, 2
cmp rcx, 0x24
jne 0x140054200
mov byte [0x140185b46], 1
lea rdx, [0x140185b22]
lea rdi, [rbp + 0x68]
mov rcx, rdi
call fcn.140017480
lea rcx, [rbp - 0x60]
mov edx, 0xca
mov r8, rdi
mov r9, rsi
call fcn.140054690
lea rdx, [0x14015b690]
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
jmp 0x1400543c2
call fcn.14005b3d0
lea rdx, [0x140185b50]
lea rdi, [rbp + 0x68]
mov rcx, rdi
call fcn.140017480
lea rcx, [rbp - 0x28]
mov edx, 0xcd
mov r8, rdi
mov r9, rsi
call fcn.140054690
lea rdx, [0x14015b690]
lea rcx, [rbp - 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
jmp 0x1400543c2
mov rcx, rsi
call fcn.1400443f0
lea rcx, [rbp + 0x48]
mov rdx, rax
call fcn.140017480
cmp byte [0x140185b80], 0
jne 0x140054389
mov ecx, 1
xor r8d, r8d
movabs r10, 0xf0f0f0f0f0f0f0f1
lea r11, [0x1400fc250]
lea rdi, [0x140185b67]
mov rax, rcx
mul r10
mov r9, rdx
mov rax, r8
mul r10
mov rax, rdx
shr rax, 4
and rdx, 0xfffffffffffffff0
add rdx, rax
lea rax, [r11 + r8]
sub rax, rdx
movzx eax, byte [rax + 0x45c2]
xor al, byte [r8 + r11 + 0x45d3]
mov byte [r8 + rdi], al
cmp r8, 0x18
je 0x140054382
mov rax, r9
shr rax, 4
and r9, 0xfffffffffffffff0
add r9, rax
mov rax, r11
sub rax, r9
add rax, 0x45c3
movzx eax, byte [rax + r8]
xor al, byte [r8 + r11 + 0x45d4]
mov byte [r8 + rdi + 1], al
add r8, 2
add rcx, 2
jmp 0x14005430f
mov byte [0x140185b80], 1
lea rdx, [0x140185b67]
lea rcx, [rbp + 0x68]
lea r8, [rbp + 0x48]
call fcn.140038bd0
lea rcx, [rbp + 0x10]
lea r8, [rbp + 0x68]
mov edx, 0x133
mov r9, rsi
call fcn.140043bc0
lea rdx, [0x14015b610]
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3