Function at 0x180048234
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov r12d, dword [0x180257e30]
mov r10, rdx
movzx ebx, byte [0x180257e0f]
mov esi, 1
mov r13, qword [rsp + 0xd0]
mov rdi, r8
mov r8, qword [rsp + 0xe0]
mov eax, ebx
xor rax, 0x4a8
movzx r11d, cx
mov qword [rsp + 0x48], rax
movsxd rax, dword [0x180257e5c]
or rax, 0x1d15
movsxd r15, r9d
mov qword [rsp + 0x40], rax
lea eax, [r12 + r12*2]
movsxd r9, eax
sub r12d, esi
mov eax, r15d
shl eax, 2
movsxd rdx, eax
mov eax, dword [r8 + r9*4]
mov r9d, dword [0x180257e78]
add r9d, esi
imul eax, dword [rdi + rdx*4]
movzx edx, word [0x180257e00]
mov rdi, qword [rsp + 0xf8]
add dx, si
mov word [0x180257e00], dx
mov dword [0x180257e78], r9d
movsxd rcx, eax
lea eax, [r11 - 0x18c]
cdqe
sub r11w, si
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], rcx
mov ecx, 0x14ef
mov dword [0x180257e30], r12d
movzx eax, dx
movzx ebp, r11w
sub ecx, dword [rdi + rax*4 + 0x14]
movsxd rax, ecx
mov qword [rsp + 0x58], rax
mov eax, 0xffff
add dx, ax
mov word [0x180257e00], dx
mov edx, dword [0x180257e4c]
add edx, esi
mov dword [0x180257e4c], edx
lea eax, [rdx + rdx*2]
movsxd rcx, eax
mov eax, dword [r8 + rcx*4]
imul eax, edx
movsxd rcx, eax
lea rax, [r10 + 1]
mov qword [rsp + 0x38], rcx
movsxd rcx, dword [rdi + 0x24d4]
mov rdi, qword [r13 + 0xa680]
sub dword [0x180257e3c], esi
imul rcx, rax
movzx eax, word [r8 + 0x4d60]
movsxd r8, dword [rsp + 0xf0]
mov qword [rsp + 0xb8], rcx
mov ecx, 0x199d
add ax, cx
mov word [rsp + 0xb0], ax
lea eax, [r8 + 2]
lea eax, [rax + rax*2]
cdqe
mov r10, qword [r13 + rax*8]
movsxd rax, dword [0x180257e7c]
or rax, 0x1367
mov qword [rsp + 0xd0], rax
mov rax, qword [0x180257e40]
imul r14, qword [rax + rbp*8 + 0x88], 0x119
mov rax, qword [0x180257e18]
mov ecx, eax
imul ecx, eax
mov dword [rsp + 0xc8], ecx
lea rcx, [rax + rax*2]
mov rax, qword [0x180257df0]
movzx eax, word [rax + rcx*2 + 6]
sub eax, ebx
cdqe
mov qword [rsp + 0xe0], rax
movsxd rax, dword [0x180257e08]
movsxd rcx, dword [rax + r8*4]
movsxd rax, r9d
cmp rcx, qword [rax + r8*8]
jb 0x1800486c8
movsxd rax, dword [r14]
mov rsi, qword [rsp + 0xd8]
movzx r8d, byte [0x180257e02]
movzx ecx, word [rsi + rax*2]
cmp r8d, ecx
je 0x18004849a
mov r11, qword [rsp + 0xe8]
lea r9, [r13 + 0x90]
sub r11, r13
lea r9, [r9 + r8*8]
mov r13d, 1
movzx eax, word [r10]
xor edx, edx
movzx ecx, word [r14 + rax*4]
mov word [r11 + r9 - 0x90], cx
movzx eax, word [rdi + 0xc0]
add eax, r8d
add r8d, r13d
or dword [0x180257e3c], eax
movsxd rax, dword [0x180257e78]
xor rax, 0x16a9
div qword [r9]
mov qword [r9], rdx
lea r9, [r9 + 8]
movsxd rax, dword [r14]
movzx ecx, word [rsi + rax*2]
cmp r8d, ecx
jne 0x180048441
mov bl, byte [0x180257e0f]
mov r12d, dword [0x180257e30]
jmp 0x1800484a0
mov r13d, 1
mov r11, qword [rsp + 0x38]
mov al, r15b
and al, byte [rsp + 0xe0]
movzx eax, al
imul ecx, eax, 0xe2
lea eax, [r12*2 + 4]
mov r12d, 0x163c
xor bl, cl
movsxd rcx, eax
mov byte [0x180257e0f], bl
movzx edx, word [r10]
mov rbx, qword [rsp + 0x30]
movzx eax, word [r10 + rcx*2]
mov rcx, qword [rsp + 0xb8]
or ax, word [rcx + rbp*4]
sub ax, word [rbx + rdx*2]
mov word [rbx + rdx*2], ax
movzx ecx, word [0x180257e50]
movzx edx, byte [0x180257e34]
mov rax, qword [0x180257df0]
imul edx, ecx
mov word [rax + 0x58ec], dx
movzx eax, word [0x180257e7c]
or ax, word [rsp + 0xb0]
xor word [0x180257e58], ax
mov ecx, dword [r11 + r15*4]
cmp dword [0x180257e5c], ecx
jle 0x1800486c8
movzx ecx, word [r10]
mov rax, qword [0x180257df0]
mov dl, byte [rax + rcx*2]
lea rcx, [rbp*2]
sub dl, byte [0x180257e02]
add rcx, rbp
mov byte [0x180257e02], dl
xor edx, edx
add word [r10], r13w
movzx eax, word [r10]
lea r8, [rax + rax*2]
movzx eax, word [rbx + rcx*2]
sub eax, dword [0x180257e08]
cdqe
div qword [rsp + 0x40]
mov eax, 0x14f1
xor word [rdi + r8*2], dx
xor word [0x180257e0c], ax
mov rax, qword [rsp + 0xd0]
mov rcx, qword [0x180257e18]
add rcx, rcx
movzx eax, byte [rax + 0x24]
or eax, 0x1ba2
add dword [r11 + rcx*8], eax
movzx eax, word [0x180257e48]
mov rcx, qword [rsp + 0x48]
movsxd rbx, dword [rcx + rax*4]
cmp ebx, 0x109d
jle 0x1800486c8
movsxd rsi, dword [rsp + 0xc8]
mov eax, ebp
cdq
mov rcx, rbx
idiv dword [rsp + 0xf0]
xor rsi, rbp
mov rbp, qword [rsp + 0x50]
movsxd r13, eax
lea r14, [rdi + rcx*8]
mov rax, qword [rsp + 0xc0]
add rbp, rbx
add ebx, ebx
lea rdi, [rax + rcx*4]
mov rax, qword [rsp + 0x58]
mov r9, rsi
movzx ecx, word [0x180257e58]
movzx edx, r12w
movsxd r8, dword [rax + rdx*4]
mov rax, qword [0x180257e40]
xor r8, 0x51b
mov rdx, qword [rax + rdx*8]
mov eax, 0xffff
mov qword [rsp + 0x28], rdx
add r12w, ax
mov qword [rsp + 0x20], r8
mov edx, ebx
mov r8, r13
call fcn.1800412b8
mov word [0x180257e0c], ax
mov r8d, 1
mov eax, dword [0x180257df8]
add r15d, r8d
xor dword [rdi], eax
add ebx, 2
movzx ecx, byte [rbp]
lea rdi, [rdi + 4]
movzx edx, byte [0x180257e0f]
add rbp, r8
mov eax, dword [0x180257e5c]
add ecx, edx
or ecx, 0x1966
add dl, r8b
imul eax, ecx
mov byte [0x180257e0f], dl
movsxd rdx, r15d
mov dword [0x180257e5c], eax
movzx ecx, word [r14]
lea r14, [r14 + 8]
sub ecx, dword [0x180257e4c]
movzx eax, word [0x180257e58]
or ecx, eax
mov rax, qword [rsp + 0xf8]
xor dword [rax + rdx*4], ecx
add dword [0x180257e4c], r8d
cmp ebx, 0x213a
jg 0x1800485fd
mov eax, 0x16e0
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret