Function at 0x18005d780
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1fc0]
mov eax, 0x20c0
call fcn.18005fe60
sub rsp, rax
mov rax, qword [0x180081de0]
xor rax, rsp
mov qword [rbp + 0x1fb0], rax
lea eax, [rcx + 0xf]
mov dword [rsp + 0x58], ecx
mov dword [rbp - 0x70], eax
mov rdi, r8
mov r12, rdx
cmp ecx, eax
jae case.0x18005d80b.235
xor ebx, ebx
mov r14d, ecx
lea esi, [rbx + 0x64]
lea r10d, [rbx + 0x73]
lea r11d, [rbx + 0x32]
lea r8d, [rbx + 0x6c]
lea eax, [r14 - 0xdd]
lea rdx, [0x180000000]
cmp eax, 0x32
ja case.0x18005d80b.236
movzx eax, byte [rdx + rax + 0x5e1e8]
mov ecx, dword [rdx + rax*4 + 0x5e1a8]
add rcx, rdx
jmp rcx
movsxd r10, dword [rdi + 4]
mov eax, 1
mov r8d, eax
cmp r10d, eax
jle 0x18005d83a
mov rdx, qword [rdi + 8]
mov ecx, dword [rdx + rax*4 - 4]
test ecx, ecx
je 0x18005d83a
cmp dword [rdx + rax*4], ecx
jl 0x18005d83a
inc r8d
inc rax
cmp rax, r10
jl 0x18005d822
cmp r8d, r10d
mov r14d, 0x10b
mov r8d, 0x6c
lea r10d, [r8 + 7]
jne case.0x18005d80b.236
mov dword [rbp - 0x74], 1
jmp case.0x18005d80b.236
mov dword [rbp - 0x80], ebx
jmp case.0x18005d80b.236
mov dword [rbp - 0x5e], 0x2e0032
jmp case.0x18005d80b.236
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov r9d, 0x60
lea rax, [rsp + 0x58]
mov dword [rbp - 0x74], ebx
mov qword [rsp + 0x28], rax
mov r8, r12
xor edx, edx
mov qword [rsp + 0x20], rbx
xor ecx, ecx
mov dword [rsp + 0x50], 0x18
mov dword [rsp + 0x58], 0x564342
call fcn.18002bb20
mov eax, dword [rdi]
mov r9d, 0x60
mov dword [rsp + 0x58], eax
mov r8, r12
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
xor edx, edx
lea rax, [rsp + 0x58]
mov dword [rsp + 0x50], 0x10
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.18002bb20
mov eax, dword [rdi + 4]
mov r9d, 0x60
mov dword [rsp + 0x58], eax
mov r8, r12
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
xor edx, edx
lea rax, [rsp + 0x58]
mov dword [rsp + 0x50], 0x18
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.18002bb20
jmp 0x18005e0bf
lea rax, [rbp - 0x78]
mov dword [rsp + 0x50], 0xfa
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
mov r9d, 0x7f
mov qword [rsp + 0x20], rbx
xor edx, edx
mov rcx, rdi
call fcn.1800409d0
jmp 0x18005e0bf
cmp dword [rbp - 0x78], 1
jne 0x18005d982
xor r8d, r8d
mov rdx, rdi
lea ecx, [r8 + 0x43]
call fcn.1800097f0
jmp 0x18005e0bf
cmp dword [rbp - 0x78], 2
jne case.0x18005d80b.236
mov edx, 0x20
mov rcx, rdi
call fcn.180006e60
jmp 0x18005e0bf
mov dword [rbp - 0x68], 0x730077
mov word [rbp - 0x64], r11w
mov dword [rbp - 0x62], 0x33005f
jmp case.0x18005d80b.236
mov dword [rbp - 0x5a], 0x6c0064
mov dword [rbp - 0x56], 0x6c
jmp case.0x18005d80b.236
mov eax, dword [rdi + 0x10]
mov r9d, 0x60
mov dword [rsp + 0x58], eax
mov r8, r12
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
xor edx, edx
lea rax, [rsp + 0x58]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.18002bb20
mov ecx, dword [rdi + 0x10]
test ecx, ecx
je 0x18005dc2c
sub ecx, 1
je 0x18005da21
cmp ecx, 1
jne 0x18005e0e4
mov r15d, 0x107
nop word [rax + rax]
cmp r15d, 0x104
jbe 0x18005e0e4
mov eax, r15d
sub eax, 0x105
je 0x18005dc27
sub eax, 1
je 0x18005db2e
cmp eax, 1
jne 0x18005dc1f
cmp qword [rdi + 0x28], rbx
je 0x18005e0e4
mov eax, dword [rdi + 0x14]
mov r9d, 0x60
mov dword [rsp + 0x58], eax
mov r8, r12
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
xor edx, edx
lea rax, [rsp + 0x58]
mov dword [rsp + 0x50], 0x20
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.18002bb20
mov eax, dword [rdi + 0x18]
mov r9d, 0x60
mov dword [rsp + 0x58], eax
mov r8, r12
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
xor edx, edx
lea rax, [rsp + 0x58]
mov dword [rsp + 0x50], 0x20
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.18002bb20
mov eax, dword [rdi + 0x1c]
mov r9d, 0x60
dec eax
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x58], eax
mov r8, r12
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x30], rax
xor edx, edx
lea rax, [rsp + 0x58]
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call fcn.18002bb20
dec r15d
jmp 0x18005da30
mov eax, dword [rdi + 0x20]
mov r9d, 0x60
mov dword [rsp + 0x58], eax
mov r8, r12
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
xor edx, edx
lea rax, [rsp + 0x58]
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.18002bb20
mov ecx, dword [rdi + 0x10]
sub ecx, 1
je 0x18005db89
cmp ecx, 1
je 0x18005db81
mov eax, 0xffffffff
jmp 0x18005dbb5
mov eax, dword [rdi + 4]
imul eax, dword [rdi]
jmp 0x18005dbb5
mov qword [rsp + 0x40], rbx
xor r9d, r9d
mov qword [rsp + 0x38], rbx
xor r8d, r8d
mov qword [rsp + 0x30], rbx
xor edx, edx
mov qword [rsp + 0x28], rbx
mov rcx, rdi
mov dword [rsp + 0x20], 0x10d
call fcn.18004ffb0
movsxd r14, eax
mov r15d, 0x106
mov rsi, rbx
test eax, eax
jle 0x18005dc1f
nop word [rax + rax]
mov eax, dword [rdi + 0x1c]
mov r9d, 0x60
mov dword [rsp + 0x50], eax
mov r8, r12
mov rax, qword [rdi + 0x28]
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov eax, dword [rax + rsi*4]
cdq
xor eax, edx
sub eax, edx
xor edx, edx
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call fcn.18002bb20
inc rsi
cmp rsi, r14
jl 0x18005dbd0
dec r15d
jmp 0x18005da30
mov esi, 0x64
mov r14d, 0x10d
jmp 0x18005e0bf
cmp dword [rsp + 0x78], ebx
jge case.0x18005d80b.236
mov byte [rbp - 0x80], bl
mov rax, qword [rbp - 0x80]
mov rcx, qword [rbp + 0x1fb0]
xor rcx, rsp
call fcn.18005fed0
mov rbx, qword [rsp + 0x2100]
add rsp, 0x20c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x30], 0x10
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rbx
mov r9d, 0x46
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
call fcn.1800503f0
mov r9, rdi
mov qword [rsp + 0x28], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor edx, edx
mov ecx, 0x82
mov rsi, rax
call fcn.180032b20
test al, al
je 0x18005dc41
mov rcx, qword [rdi]
lea rdx, [rbp - 0x50]
xor r9d, r9d
mov r8d, 0x2000
call rsi
mov dword [rsp + 0x78], eax
cmp eax, 0
je 0x18005dc41
jmp 0x18005e0ba
cmp dword [rbp - 0x74], ebx
je 0x18005deaa
mov r13d, 9
mov dword [rsp + 0x50], r13d
cmp r13d, 9
je 0x18005de48
cmp r13d, 0x29a
jne 0x18005de8c
mov rax, qword [rdi + 8]
mov r9d, 0x60
mov qword [rsp + 0x38], rbx
mov r8, r12
xor edx, edx
mov dword [rsp + 0x60], 5
mov ecx, dword [rax]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
dec ecx
lea rax, [rsp + 0x68]
mov dword [rsp + 0x68], ecx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.18002bb20
mov ecx, dword [rdi + 4]
mov esi, 1
cmp ecx, esi
jle 0x18005de0c
mov r13d, dword [rsp + 0x70]
mov r15d, 4
nop dword [rax]
mov rax, qword [rdi + 8]
mov edx, dword [rax + r15]
mov r8d, dword [rax + r15 - 4]
cmp edx, r8d
jle 0x18005ddf9
sub edx, r8d
mov r14d, edx
nop dword [rax + rax]
mov eax, dword [rdi + 4]
lea rdx, [rsp + 0x68]
sub eax, r13d
mov r8d, 0x6b
xor ecx, ecx
mov dword [rsp + 0x68], eax
call fcn.180056460
mov dword [rsp + 0x60], eax
mov r9d, 0x60
mov qword [rsp + 0x38], rbx
mov eax, esi
sub eax, r13d
mov r8, r12
mov dword [rsp + 0x70], eax
xor edx, edx
lea rax, [rsp + 0x60]
xor ecx, ecx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call fcn.18002bb20
mov r13d, esi
sub r14, 1
jne 0x18005dd90
mov ecx, dword [rdi + 4]
mov dword [rsp + 0x70], esi
inc esi
add r15, 4
cmp esi, ecx
jl 0x18005dd70
mov r13d, dword [rsp + 0x50]
sub ecx, dword [rsp + 0x70]
lea rdx, [rsp + 0x68]
mov dword [rsp + 0x68], ecx
mov r8d, 0x6b
xor ecx, ecx
call fcn.180056460
sub esi, dword [rsp + 0x70]
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], esi
jmp 0x18005de70
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov dword [rsp + 0x70], ebx
mov dword [rsp + 0x68], 1
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x28], rax
mov r9d, 0x60
mov r8, r12
mov qword [rsp + 0x20], rbx
xor edx, edx
xor ecx, ecx
call fcn.18002bb20
add r13d, 0x291
mov dword [rsp + 0x50], r13d
cmp r13d, 0x522
jbe 0x18005dcf6
jmp 0x18005e0b5
mov r15d, 0xa0
cmp r15d, 0xa0
jne 0x18005e0a5
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9d, [r15 - 0x40]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x68], 1
mov qword [rsp + 0x28], rax
mov r8, r12
xor edx, edx
mov qword [rsp + 0x20], rbx
xor ecx, ecx
mov dword [rsp + 0x60], ebx
call fcn.18002bb20
movsxd r9, dword [rdi + 4]
mov edx, ebx
mov rcx, rbx
test r9d, r9d
jle 0x18005df22
mov rax, qword [rdi + 8]
nop dword [rax]
cmp dword [rax], ebx
je 0x18005df22
inc edx
inc rcx
add rax, 4
cmp rcx, r9
jl 0x18005df10
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov r15d, 0xa0
lea rax, [rsp + 0x60]
mov dword [rsp + 0x58], 0x10c
xor ecx, ecx
mov qword [rsp + 0x28], rax
cmp edx, r9d
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x68], 1
lea r9d, [r15 - 0x40]
mov r8, r12
jne 0x18005dfd7
xor edx, edx
mov dword [rsp + 0x60], ebx
call fcn.18002bb20
mov r14d, ebx
cmp dword [rdi + 4], ebx
jle 0x18005e0a5
mov rsi, rbx
nop
mov rax, qword [rdi + 8]
mov r9d, 0x60
mov qword [rsp + 0x38], rbx
mov r8, r12
xor edx, edx
mov dword [rsp + 0x68], 5
mov ecx, dword [rax + rsi]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
dec ecx
lea rax, [rsp + 0x60]
mov dword [rsp + 0x60], ecx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.18002bb20
inc r14d
lea rsi, [rsi + 4]
cmp r14d, dword [rdi + 4]
jl 0x18005df80
jmp 0x18005e0a5
xor edx, edx
mov dword [rsp + 0x60], 1
call fcn.18002bb20
mov r14d, ebx
cmp dword [rdi + 4], ebx
jle 0x18005e0a5
mov rsi, rbx
nop word [rax + rax]
mov rax, qword [rdi + 8]
xor edx, edx
mov qword [rsp + 0x38], rbx
xor ecx, ecx
mov dword [rsp + 0x68], 1
mov r9d, 0x60
mov r8, r12
cmp dword [rsi + rax], ebx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
jne 0x18005e042
mov dword [rsp + 0x60], ebx
jmp 0x18005e08f
mov dword [rsp + 0x60], 1
call fcn.18002bb20
mov rax, qword [rdi + 8]
xor edx, edx
mov qword [rsp + 0x38], rbx
mov r9d, 0x60
mov dword [rsp + 0x68], 5
mov r8, r12
mov ecx, dword [rax + rsi]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
dec ecx
lea rax, [rsp + 0x60]
mov dword [rsp + 0x60], ecx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.18002bb20
inc r14d
add rsi, 4
cmp r14d, dword [rdi + 4]
jl 0x18005e000
dec r15d
cmp r15d, 0x9f
ja 0x18005deb0
mov r14d, dword [rsp + 0x58]
mov esi, 0x64
mov r11d, 0x32
lea r10d, [r11 + 0x41]
lea r8d, [r11 + 0x3a]
inc r14d
mov dword [rsp + 0x58], r14d
cmp r14d, dword [rbp - 0x70]
jae case.0x18005d80b.235
jmp 0x18005d7e2
mov dword [rbp - 0x80], 0xffffffff
jmp case.0x18005d80b.235
mov rdx, qword [r12 + 0x18]
mov rcx, qword [r12 + 0x10]
mov rax, rdx
movsxd rdi, dword [rsp + 0x78]
sub rax, rcx
cmp rdi, rax
ja 0x18005e13d
lea rax, [rcx + rdi]
mov qword [r12 + 0x10], rax
cmp rdx, 0x10
jb 0x18005e11d
mov r12, qword [r12]
lea rbx, [r12 + rcx]
mov r8, rdi
mov rcx, rbx
lea rdx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
mov byte [rbp - 0x80], 1
jmp case.0x18005d80b.235
lea r9, [rbp - 0x50]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rdi
mov rcx, r12
call fcn.180002490
mov byte [rbp - 0x80], 1
jmp case.0x18005d80b.235
mov rsi, qword [rdi]
mov rdi, qword [rdi + 8]
cmp rsi, rdi
je 0x18005e196
nop dword [rax]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov rcx, rsi
lea edx, [r9 + 0x61]
call fcn.180053ed0
cmp eax, dword [r12]
je 0x18005e19e
add rsi, 0x10
cmp rsi, rdi
jne 0x18005e170
mov rax, rbx
jmp 0x18005dc48
mov rax, rsi
jmp 0x18005dc48