Function at 0x180057480
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x110
mov rax, qword [0x180189e48]
xor rax, rsp
mov qword [rsp + 0x108], rax
mov r14, r8
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], r8
xor edi, edi
mov dword [rsp + 0x20], edi
cmp qword [r8 + 0x10], rdi
jne 0x1800574ed
call fcn.180006e50
mov dword [rsp + 0x20], 1
mov rcx, rsi
call fcn.180007560
nop
mov rcx, r14
call fcn.180007560
jmp 0x180057990
mov rax, qword [rdx + 0x10]
test rax, rax
jne 0x1800575a2
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], rdi
mov r15, qword [rdx + 0x10]
mov r12, rsi
cmp qword [rdx + 0x18], 0x10
jb 0x180057519
mov r12, qword [rdx]
movabs rdi, 0x7fffffffffffffff
cmp r15, rdi
ja 0x180057c4a
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
cmp r15, 0x10
jae 0x180057548
mov qword [rcx + 0x10], r15
movups xmm0, xmmword [r12]
movups xmmword [rcx], xmm0
jmp 0x1800574cf
mov r8, qword [rcx + 0x18]
mov rcx, r15
or rcx, 0xf
cmp rcx, rdi
ja 0x180057577
mov rdx, r8
shr rdx, 1
mov rax, rdi
sub rax, rdx
cmp r8, rax
ja 0x180057577
lea rax, [r8 + rdx]
mov rdi, rcx
cmp rcx, rax
cmovb rdi, rax
lea rdx, [rdi + 1]
mov rcx, rbx
call fcn.180007230
mov qword [rbx], rax
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], rdi
lea r8, [r15 + 1]
mov rdx, r12
mov rcx, rax
call fcn.1800f5130
jmp 0x1800574cf
cmp rax, 9
jae 0x1800575b2
call fcn.180006e50
jmp 0x1800574cf
xorps xmm0, xmm0
movups xmmword [rsp + 0xc0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0xd0], xmm1
movdqa xmm0, xmmword [0x18016c440]
movdqu xmmword [rsp + 0xd0], xmm0
mov byte [rsp + 0xc0], 0
mov rcx, r14
cmp qword [r8 + 0x18], 0x10
jb 0x1800575ef
mov rcx, qword [r8]
lea r8, [rsp + 0xc0]
mov edx, dword [r14 + 0x10]
call fcn.18006c7f0
mov r8, qword [rsi + 0x10]
sub r8, 9
mov r9d, 9
lea rdx, [rsp + 0xa0]
mov rcx, rsi
call fcn.180007340
nop
mov r9d, 9
lea r8d, [r9 - 7]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0xc0]
call fcn.180007340
nop
lea rdx, [rsp + 0x80]
cmp qword [rsp + 0x98], 0x10
cmovae rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 0x10
cmovae rcx, qword [rsp + 0xa0]
mov r8, qword [rsp + 0xb0]
cmp r8, qword [rsp + 0x90]
jne 0x180057b0e
call fcn.1800f5860
test eax, eax
jne 0x180057b0e
mov r9, qword [rsi + 0x10]
sub r9, 9
xor r8d, r8d
lea rdx, [rsp + 0xe0]
mov rcx, rsi
call fcn.180007340
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x60], 0
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x30]
call fcn.180056ea0
nop
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.18002c030
nop
lea rcx, [rsp + 0x30]
call fcn.180007560
nop
mov r9, rdi
cmp qword [rsp + 0x70], rdi
jbe 0x180057748
nop dword [rax]
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rax, qword [rsp + 0x60]
movzx ecx, byte [rax + r9]
xor cl, 0x10
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rax, qword [rsp + 0x60]
mov byte [rax + r9], cl
inc r9
cmp r9, qword [rsp + 0x70]
jb 0x180057710
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rbx + 0x10], xmm1
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x60], 0
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x60], 0
mov rdx, qword [rsp + 0xf8]
cmp rdx, 0x10
jb 0x1800577ca
inc rdx
mov rcx, qword [rsp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800577c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180057c50
call fcn.1800f2740
movdqa xmm0, xmmword [0x18016c440]
movdqu xmmword [rsp + 0xf0], xmm0
mov byte [rsp + 0xe0], 0
mov rdx, qword [rsp + 0x98]
cmp rdx, 0x10
jb 0x180057826
inc rdx
mov rcx, qword [rsp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180057821
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180057c5c
call fcn.1800f2740
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x98], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x80], 0
mov rdx, qword [rsp + 0xb8]
cmp rdx, 0x10
jb 0x180057885
inc rdx
mov rcx, qword [rsp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180057880
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180057c62
call fcn.1800f2740
mov qword [rsp + 0xb0], rdi
mov qword [rsp + 0xb8], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0xa0], 0
mov rdx, qword [rsp + 0xd8]
cmp rdx, 0x10
jb 0x1800578e4
inc rdx
mov rcx, qword [rsp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800578df
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180057c68
call fcn.1800f2740
movdqa xmm0, xmmword [0x18016c440]
movdqu xmmword [rsp + 0xd0], xmm0
mov byte [rsp + 0xc0], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x180057937
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x180057932
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180057c56
mov rcx, r8
call fcn.1800f2740
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], 0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x180057980
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x18005797b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180057c44
mov rcx, r8
call fcn.1800f2740
mov byte [r14], 0
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
mov qword [r14 + 0x10], rdi
mov rax, rbx
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.1800f23a0
mov rbx, qword [rsp + 0x158]
add rsp, 0x110
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov rdx, rsi
mov rcx, rbx
call fcn.180006e50
mov dword [rsp + 0x20], 1
mov rdx, qword [rsp + 0x98]
cmp rdx, 0x10
jb 0x180057b64
inc rdx
mov rcx, qword [rsp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180057b5f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180057c5c
call fcn.1800f2740
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x98], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x80], 0
mov rdx, qword [rsp + 0xb8]
cmp rdx, 0x10
jb 0x180057bc3
inc rdx
mov rcx, qword [rsp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180057bbe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180057c62
call fcn.1800f2740
mov qword [rsp + 0xb0], rdi
mov qword [rsp + 0xb8], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0xa0], 0
mov rdx, qword [rsp + 0xd8]
cmp rdx, 0x10
jb 0x180057c1e
inc rdx
mov rcx, qword [rsp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180057c19
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180057c68
call fcn.1800f2740
movdqa xmm0, xmmword [0x18016c440]
movdqu xmmword [rsp + 0xd0], xmm0
mov byte [rsp + 0xc0], 0
mov rcx, rsi
call fcn.180007560
jmp 0x180057946
call fcn.1800f98d4
nop
call fcn.180006f40
nop
call fcn.1800f98d4
nop
call fcn.1800f98d4
nop
call fcn.1800f98d4
nop
call fcn.1800f98d4
nop
call fcn.1800f98d4
int3