Function at 0x180004280
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rdi, rcx
lea rdx, [rcx + 0x10]
lea rcx, [rbp - 0x58]
call fcn.180001c30
cmp qword [rdi + 8], 0
jbe 0x18000483b
xor esi, esi
mov dword [rbp + 0x1c0], 0xd5c1b7
mov qword [rbp + 0x1c8], rsi
mov rax, qword [rbp + 0x1c8]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x1c8]
mov rax, qword [rbp + 0x1c8]
sub cl, 0x4a
xor cl, byte [rbp + rax + 0x1c1]
mov rax, qword [rbp + 0x1c8]
mov byte [rbp + rax + 0x1c1], cl
mov rax, qword [rbp + 0x1c8]
inc rax
mov qword [rbp + 0x1c8], rax
mov rax, qword [rbp + 0x1c8]
cmp rax, 2
jb 0x1800042d0
cmp qword [rdi + 0x30], 0x10
lea rcx, [rdi + 0x18]
lea rax, [rbp + 0x1c1]
mov byte [rbp + 0x1c3], sil
mov qword [rbp + 0x30], rax
jb 0x180004334
mov rcx, qword [rcx]
lea rax, [0x180366234]
mov qword [rsp + 0x38], 0xd8d81e6
add rax, 0xd8d81e6
mov qword [rbp + 0x38], rcx
mov qword [rsp + 0x30], rax
lea rdx, [rbp + 0x1c1]
movups xmm0, xmmword [rsp + 0x30]
add rax, 0xfffffffff2727e1a
movups xmmword [rbp + 0x170], xmm0
call rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x18000483b
mov rax, qword [rdi]
mov qword [rsp + 0x298], rbx
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov rbx, qword [rax]
cmp rbx, rax
je 0x180004496
mov eax, dword [rbx + 0x18]
lea r9, [rbp + 0x1d0]
sub eax, dword [rbx + 0x10]
lea r8, [rbp + 0x1d0]
mov dword [rbp + 0x1d0], eax
mov qword [rsp + 0x30], 2
mov qword [rbp + 0x1c8], 2
mov rcx, qword [rbp + 0x1c8]
mov rax, qword [rsp + 0x30]
add rcx, rax
mov qword [rbp + 0x1c8], rcx
lea rcx, [rsp + 0x40]
mov rax, qword [rbp + 0x1c8]
mov rdx, qword [rsp + 0x48]
add r9, rax
call fcn.1803577a0
mov r9, qword [rbx + 0x18]
lea rcx, [rsp + 0x40]
mov r8, qword [rbx + 0x10]
mov rdx, qword [rsp + 0x48]
call fcn.1803577a0
mov eax, dword [rbx + 0x30]
lea r9, [rbp + 0x1d0]
sub eax, dword [rbx + 0x28]
lea r8, [rbp + 0x1d0]
mov dword [rbp + 0x1d0], eax
mov qword [rsp + 0x30], 3
mov qword [rbp + 0x1c8], 1
mov rcx, qword [rbp + 0x1c8]
mov rax, qword [rsp + 0x30]
add rcx, rax
mov qword [rbp + 0x1c8], rcx
lea rcx, [rsp + 0x40]
mov rax, qword [rbp + 0x1c8]
mov rdx, qword [rsp + 0x48]
add r9, rax
call fcn.1803577a0
mov r9, qword [rbx + 0x30]
lea rcx, [rsp + 0x40]
mov r8, qword [rbx + 0x28]
mov rdx, qword [rsp + 0x48]
call fcn.1803577a0
mov rbx, qword [rbx]
cmp rbx, qword [rdi]
jne 0x1800043a2
mov dword [rbp + 0x1c8], esi
mov eax, dword [rbp + 0x1c8]
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [rbp + 0x1c8]
mov eax, dword [rbp + 0x1c8]
mov byte [rsp + rax + 0x58], cl
mov eax, dword [rbp + 0x1c8]
inc eax
mov dword [rbp + 0x1c8], eax
mov eax, dword [rbp + 0x1c8]
cmp eax, 0x20
jb 0x1800044b0
mov rdx, qword [rsp + 0x48]
lea rcx, [rbp - 0x80]
sub rdx, qword [rsp + 0x40]
call fcn.180351c70
movzx eax, byte [rsp + 0x58]
lea rdx, [rsp + 0x58]
mov byte [rbp + 0x14], al
lea rcx, [rbp - 0x50]
movzx eax, byte [rsp + 0x59]
mov byte [rbp + 0x15], al
movzx eax, byte [rsp + 0x5a]
mov byte [rbp + 0x16], al
movzx eax, byte [rsp + 0x5b]
mov byte [rbp + 0x17], al
movzx eax, byte [rsp + 0x5c]
mov byte [rbp + 0x18], al
movzx eax, byte [rsp + 0x5d]
mov byte [rbp + 0x19], al
movzx eax, byte [rsp + 0x5e]
mov byte [rbp + 0x1a], al
movzx eax, byte [rsp + 0x5f]
mov byte [rbp + 0x1b], al
movzx eax, byte [rsp + 0x60]
mov byte [rbp + 0x1c], al
movzx eax, byte [rsp + 0x61]
mov byte [rbp + 0x1d], al
movzx eax, byte [rsp + 0x62]
mov byte [rbp + 0x1e], al
movzx eax, byte [rsp + 0x63]
mov byte [rbp + 0x1f], al
movzx eax, byte [rsp + 0x64]
mov byte [rbp + 0x20], al
movzx eax, byte [rsp + 0x65]
mov byte [rbp + 0x21], al
movzx eax, byte [rsp + 0x66]
mov byte [rbp + 0x22], al
movzx eax, byte [rsp + 0x67]
mov byte [rbp + 0x23], al
call fcn.180001ea0
mov r8d, dword [rsp + 0x48]
lea rcx, [rbp - 0x50]
mov rdx, qword [rsp + 0x40]
mov r9, qword [rbp - 0x80]
sub r8d, edx
call fcn.180002750
mov qword [rsp + 0x30], 0x14
lea rdx, [rsp + 0x58]
mov qword [rbp + 0x1c8], 0xc
mov rcx, qword [rbp + 0x1c8]
mov rax, qword [rsp + 0x30]
add rcx, rax
mov qword [rbp + 0x1c8], rcx
lea rcx, [rbp + 0x60]
mov r8, qword [rbp + 0x1c8]
call fcn.180002c10
mov eax, dword [rbp - 0x78]
mov r10, qword [rbp - 0x80]
sub eax, r10d
je 0x1800046f8
mov r11d, eax
nop word [rax + rax]
mov dword [rsp + 0x30], 0xe2
lea r9, [rbp + 0x60]
mov dword [rbp + 0x1c8], 0x1e
lea r10, [r10 + 1]
mov ecx, dword [rbp + 0x1c8]
xor edx, edx
mov eax, dword [rsp + 0x30]
add ecx, eax
movzx eax, byte [rbp + 0x160]
mov dword [rbp + 0x1c8], ecx
inc eax
mov ecx, dword [rbp + 0x1c8]
div ecx
mov byte [rbp + 0x160], dl
xor edx, edx
mov dword [rsp + 0x30], 0x17
mov dword [rbp + 0x1c8], 0xe9
mov ecx, dword [rbp + 0x1c8]
mov eax, dword [rsp + 0x30]
add ecx, eax
movzx eax, byte [rbp + 0x160]
add r9, rax
mov dword [rbp + 0x1c8], ecx
movzx ecx, byte [rbp + 0x161]
movzx eax, byte [r9]
add eax, ecx
mov ecx, dword [rbp + 0x1c8]
div ecx
mov byte [rbp + 0x161], dl
movzx r8d, byte [r9]
movzx eax, dl
movzx ecx, byte [rbp + rax + 0x60]
mov byte [r9], cl
movzx eax, byte [rbp + 0x161]
mov byte [rbp + rax + 0x60], r8b
mov dword [rsp + 0x30], 0x5a
mov dword [rbp + 0x1c8], 0xa6
mov ecx, dword [rbp + 0x1c8]
mov eax, dword [rsp + 0x30]
add ecx, eax
mov dword [rbp + 0x1c8], ecx
mov r8d, dword [rbp + 0x1c8]
movzx eax, byte [rbp + 0x161]
movzx ecx, byte [rbp + 0x160]
movzx eax, byte [rbp + rax + 0x60]
movzx edx, byte [rbp + rcx + 0x60]
add eax, edx
xor edx, edx
div r8d
movzx eax, byte [rbp + rdx + 0x60]
xor byte [r10 - 1], al
sub r11, 1
jne 0x1800045f0
mov dword [rsp + 0x30], 0x1baf48df
lea rbx, [fcn.1803671a0]
mov dword [rbp + 0x1c8], 0x2b9f07aa
mov edx, 1
mov ecx, dword [rbp + 0x1c8]
mov eax, dword [rsp + 0x30]
add ecx, eax
mov dword [rbp + 0x1c8], ecx
mov eax, dword [rbp + 0x1c8]
mov dword [rbp + 0x1d8], eax
mov qword [rsp + 0x30], rsi
mov qword [rbp + 0x1c8], 4
mov rcx, qword [rbp + 0x1c8]
mov rax, qword [rsp + 0x30]
add rcx, rax
mov qword [rbp + 0x1c8], rcx
lea rcx, [rbp + 0x1d8]
mov rax, qword [rbp + 0x1c8]
mov r9, qword [rsp + 0x78]
mov qword [rbp - 0x60], rax
lea rax, [rbp + 0x1d8]
mov r8, qword [rbp - 0x60]
mov qword [rbp + 0x40], rax
mov rax, rbx
mov dword [rbp - 0x68], 1
call rax
mov rdi, qword [rbp - 0x80]
mov rax, rbx
mov r8, qword [rbp - 0x78]
mov edx, 1
mov r9, qword [rsp + 0x78]
sub r8, rdi
mov rcx, rdi
mov qword [rbp + 0x48], r8
mov dword [rbp - 0x64], 1
mov qword [rbp + 0x50], rdi
call rax
mov rcx, qword [rsp + 0x78]
lea rax, [fcn.1803664bc]
call rax
mov rbx, qword [rsp + 0x298]
test rdi, rdi
je 0x180004803
mov rdx, qword [rbp - 0x70]
mov rax, rdi
sub rdx, rdi
cmp rdx, 0x1000
jb 0x1800047fb
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000484e
mov rcx, rdi
call fcn.180360d9c
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x18000483b
mov rdx, qword [rsp + 0x50]
mov rax, rcx
sub rdx, rcx
cmp rdx, 0x1000
jb 0x180004836
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000484e
call fcn.180360d9c
mov rcx, qword [rbp - 0x58]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
jmp fcn.180001ae0
call fcn.1803687c0
int3