Function at 0x18003f610
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0xb8], rbx
mov ebp, r8d
mov r13, rdx
mov rsi, rcx
mov qword [rsp + 0x48], rcx
mov rdx, qword [rcx + 0x150]
mov rcx, qword [rcx + 0x148]
cmp rcx, 0x1238
je 0x18003f672
mov rdi, rdx
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rdx
call fcn.1800401a0
mov ecx, 0x1238
call fcn.180040120
mov rdx, rax
mov qword [rsi + 0x150], rdx
mov qword [rsi + 0x148], 0x1238
mov qword [rsi + 0x140], 0xffffffffffffffff
mov qword [rsi + 0x140], 0
mov r15d, ebp
shr r15d, 2
lea eax, [r15 + 6]
mov dword [rsi + 0x18], eax
lea r14, [rsi + 0x20]
lea eax, [rax*4 + 4]
mov edx, eax
mov rcx, r14
call fcn.18003efb0
mov rdi, qword [rsi + 0x130]
movzx eax, byte [0x1800f4758]
test al, al
jne 0x18003f6db
call fcn.180050dc0
movzx eax, byte [0x1800f4758]
cmp byte [0x1800f475d], 0
je 0x18003f72a
test al, al
jne 0x18003f6ed
call fcn.180050dc0
cmp byte [0x1800f475b], 0
je 0x18003f72a
mov rdx, rbp
mov r8, rdi
mov rcx, r13
call fcn.1800517e0
lea rcx, [rsi + 8]
mov rax, qword [rcx]
call qword [rax + 0x38]
test al, al
jne 0x180040019
mov edx, dword [rsi + 0x18]
mov rcx, qword [rsi + 0x130]
call fcn.180051770
jmp 0x180040019
mov r12, rbp
mov rbx, rbp
shr rbx, 2
mov qword [rsp + 0x20], rbp
mov r9, r13
mov r8, rbx
mov rdx, rdi
mov ecx, 1
call fcn.18003e8e0
lea eax, [r15 - 1]
lea r13, [rax*4]
mov edx, dword [rdi + r13]
mov eax, edx
shr eax, 0x10
movzx ecx, al
lea r9, [0x180000000]
movzx r8d, byte [rcx + r9 + 0xadd70]
shl r8d, 8
mov eax, edx
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r9 + 0xadd70]
xor r8d, eax
shl r8d, 8
movzx eax, dl
movzx eax, byte [rax + r9 + 0xadd70]
xor r8d, eax
shl r8d, 8
shr edx, 0x18
movzx eax, dl
movzx eax, byte [rax + r9 + 0xadd70]
xor r8d, eax
xor r8d, dword [rdi]
xor r8d, dword [0x1800adf70]
mov dword [rdi + rbx*4], r8d
lea r11, [0x1800adf74]
mov edx, r8d
xor edx, dword [rdi + 4]
lea eax, [r15 + 1]
lea rax, [rax*4]
mov qword [rsp + 0x30], rax
mov dword [rax + rdi], edx
mov r8d, dword [rdi + 8]
xor r8d, edx
lea eax, [r15 + 2]
lea rax, [rax*4]
mov qword [rsp + 0x38], rax
mov dword [rax + rdi], r8d
lea eax, [r15 + 3]
lea rcx, [rax*4]
mov qword [rsp + 0x40], rcx
mov eax, dword [rdi + 0xc]
xor eax, r8d
mov dword [rcx + rdi], eax
mov rcx, qword [r14 + 0x108]
mov rax, qword [r14 + 0x110]
lea rdx, [rax + rcx*4]
lea rax, [rdi + 0x10]
lea rax, [rax + rbx*4]
cmp rax, rdx
je 0x18003f9b5
shr r12, 2
lea r10, [rdi + r12*4]
mov rbx, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
cmp ebp, 0x18
jne 0x18003f86f
mov ecx, dword [rdi + 0x24]
xor ecx, dword [rdi + 0x10]
mov dword [rdi + 0x28], ecx
mov eax, dword [rdi + 0x14]
xor eax, ecx
mov dword [rdi + 0x2c], eax
jmp 0x18003f8ec
cmp ebp, 0x20
jne 0x18003f8ec
mov edx, dword [rdi + 0x2c]
mov eax, edx
shr eax, 0x18
movzx ecx, al
movzx r8d, byte [rcx + r9 + 0xadd70]
shl r8d, 8
mov eax, edx
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r9 + 0xadd70]
xor r8d, eax
shl r8d, 8
mov eax, edx
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r9 + 0xadd70]
xor r8d, eax
shl r8d, 8
movzx eax, dl
movzx eax, byte [rax + r9 + 0xadd70]
xor r8d, eax
xor r8d, dword [rdi + 0x10]
mov dword [rdi + 0x30], r8d
mov eax, dword [rdi + 0x14]
xor eax, r8d
mov dword [rdi + 0x34], eax
mov ecx, dword [rdi + 0x18]
xor ecx, eax
mov dword [rdi + 0x38], ecx
mov eax, dword [rdi + 0x1c]
xor eax, ecx
mov dword [rdi + 0x3c], eax
mov r9, r10
mov rdi, r10
mov edx, dword [r10 + r13]
lea r10, [r10 + r12*4]
mov eax, edx
shr eax, 0x10
movzx ecx, al
lea rax, [0x180000000]
movzx r8d, byte [rcx + rax + 0xadd70]
shl r8d, 8
mov eax, edx
shr eax, 8
movzx ecx, al
lea rax, [0x180000000]
movzx eax, byte [rcx + rax + 0xadd70]
xor r8d, eax
shl r8d, 8
movzx eax, dl
lea rcx, [0x180000000]
movzx eax, byte [rax + rcx + 0xadd70]
xor r8d, eax
shl r8d, 8
shr edx, 0x18
movzx eax, dl
movzx eax, byte [rax + rcx + 0xadd70]
xor r8d, eax
xor r8d, dword [r11]
xor r8d, dword [rdi]
mov dword [r10], r8d
add r11, 4
mov eax, dword [rdi + 4]
xor eax, r8d
mov dword [rbx + rdi], eax
mov ecx, dword [rdi + 8]
xor ecx, eax
mov dword [r15 + rdi], ecx
mov eax, dword [rdi + 0xc]
xor eax, ecx
mov dword [rsi + rdi], eax
mov rcx, qword [r14 + 0x108]
mov rax, qword [r14 + 0x110]
lea rdx, [rax + rcx*4]
lea rax, [r12 + 4]
lea rax, [rdi + rax*4]
cmp rax, rdx
lea r9, [0x180000000]
jne 0x18003f854
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsi + 0x130]
lea rcx, [rsi + 8]
mov rax, qword [rcx]
call qword [rax + 0x38]
test al, al
je 0x18003fa08
movzx eax, byte [0x1800f45a0]
test al, al
jne 0x18003f9da
call fcn.18003ef10
mov r8d, 0x10
mov rdx, rbx
mov rcx, rbx
call fcn.18003e820
mov eax, dword [rsi + 0x18]
shl eax, 2
lea rcx, [rbx + rax*4]
mov r8d, 0x10
mov rdx, rcx
call fcn.18003e820
jmp 0x18003ffea
movzx eax, byte [0x1800f45a1]
test al, al
jne 0x18003fa18
call fcn.18003ed70
mov ebp, 4
mov eax, dword [rsi + 0x18]
lea r11d, [rax*4 - 4]
lea r12, [0x180000000]
cmp r11d, ebp
jbe 0x18003fdb5
lea r14d, [r11 + 2]
lea r15d, [rbp + 2]
mov eax, ebp
lea r10, [rbx + rax*4]
mov edi, dword [r10]
mov eax, edi
shr eax, 0x18
movzx ecx, al
movzx edx, byte [rcx + r12 + 0xadd70]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0xadd70]
mov r9d, dword [r12 + rdx*8 + 0xf3da4]
xor r9d, dword [r12 + rax*8 + 0xf3da1]
shr edi, 8
movzx eax, dil
movzx ecx, byte [rax + r12 + 0xadd70]
xor r9d, dword [r12 + rcx*8 + 0xf3da2]
movzx eax, byte [r10]
movzx ecx, byte [rax + r12 + 0xadd70]
xor r9d, dword [r12 + rcx*8 + 0xf3da3]
lea r8, [rbx + r11*4]
mov edi, dword [r8]
mov eax, edi
shr eax, 0x18
movzx ecx, al
movzx edx, byte [rcx + r12 + 0xadd70]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0xadd70]
mov edx, dword [r12 + rdx*8 + 0xf3da4]
xor edx, dword [r12 + rax*8 + 0xf3da1]
shr edi, 8
movzx eax, dil
movzx ecx, byte [rax + r12 + 0xadd70]
xor edx, dword [r12 + rcx*8 + 0xf3da2]
movzx eax, byte [r8]
movzx ecx, byte [rax + r12 + 0xadd70]
xor edx, dword [r12 + rcx*8 + 0xf3da3]
mov dword [r10], edx
mov dword [r8], r9d
lea eax, [r15 - 1]
lea r10, [rbx + rax*4]
mov edi, dword [r10]
mov eax, edi
shr eax, 0x18
movzx ecx, al
movzx edx, byte [rcx + r12 + 0xadd70]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0xadd70]
mov r9d, dword [r12 + rdx*8 + 0xf3da4]
xor r9d, dword [r12 + rax*8 + 0xf3da1]
shr edi, 8
movzx eax, dil
movzx ecx, byte [rax + r12 + 0xadd70]
xor r9d, dword [r12 + rcx*8 + 0xf3da2]
movzx eax, byte [r10]
movzx ecx, byte [rax + r12 + 0xadd70]
xor r9d, dword [r12 + rcx*8 + 0xf3da3]
lea eax, [r14 - 1]
lea r8, [rbx + rax*4]
mov edi, dword [r8]
mov eax, edi
shr eax, 0x18
movzx ecx, al
movzx edx, byte [rcx + r12 + 0xadd70]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0xadd70]
mov edx, dword [r12 + rdx*8 + 0xf3da4]
xor edx, dword [r12 + rax*8 + 0xf3da1]
shr edi, 8
movzx eax, dil
movzx ecx, byte [rax + r12 + 0xadd70]
xor edx, dword [r12 + rcx*8 + 0xf3da2]
movzx eax, byte [r8]
movzx ecx, byte [rax + r12 + 0xadd70]
xor edx, dword [r12 + rcx*8 + 0xf3da3]
mov dword [r10], edx
mov dword [r8], r9d
mov eax, r15d
lea r10, [rbx + rax*4]
mov edi, dword [r10]
mov eax, edi
shr eax, 0x18
movzx ecx, al
movzx edx, byte [rcx + r12 + 0xadd70]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0xadd70]
mov r9d, dword [r12 + rdx*8 + 0xf3da4]
xor r9d, dword [r12 + rax*8 + 0xf3da1]
shr edi, 8
movzx eax, dil
movzx ecx, byte [rax + r12 + 0xadd70]
xor r9d, dword [r12 + rcx*8 + 0xf3da2]
movzx eax, byte [r10]
movzx ecx, byte [rax + r12 + 0xadd70]
xor r9d, dword [r12 + rcx*8 + 0xf3da3]
lea r8, [rbx + r14*4]
mov edi, dword [r8]
mov eax, edi
shr eax, 0x18
movzx ecx, al
movzx edx, byte [rcx + r12 + 0xadd70]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0xadd70]
mov edx, dword [r12 + rdx*8 + 0xf3da4]
xor edx, dword [r12 + rax*8 + 0xf3da1]
shr edi, 8
movzx eax, dil
movzx ecx, byte [rax + r12 + 0xadd70]
xor edx, dword [r12 + rcx*8 + 0xf3da2]
movzx eax, byte [r8]
movzx ecx, byte [rax + r12 + 0xadd70]
xor edx, dword [r12 + rcx*8 + 0xf3da3]
mov dword [r10], edx
mov dword [r8], r9d
lea eax, [r15 + 1]
lea r10, [rbx + rax*4]
mov edi, dword [r10]
mov eax, edi
shr eax, 0x18
movzx ecx, al
movzx edx, byte [rcx + r12 + 0xadd70]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0xadd70]
mov r9d, dword [r12 + rdx*8 + 0xf3da4]
xor r9d, dword [r12 + rax*8 + 0xf3da1]
shr edi, 8
movzx eax, dil
movzx ecx, byte [rax + r12 + 0xadd70]
xor r9d, dword [r12 + rcx*8 + 0xf3da2]
movzx eax, byte [r10]
movzx ecx, byte [rax + r12 + 0xadd70]
xor r9d, dword [r12 + rcx*8 + 0xf3da3]
lea eax, [r14 + 1]
lea r8, [rbx + rax*4]
mov edi, dword [r8]
mov eax, edi
shr eax, 0x18
movzx ecx, al
movzx edx, byte [rcx + r12 + 0xadd70]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0xadd70]
mov edx, dword [r12 + rdx*8 + 0xf3da4]
xor edx, dword [r12 + rax*8 + 0xf3da1]
shr edi, 8
movzx eax, dil
movzx ecx, byte [rax + r12 + 0xadd70]
xor edx, dword [r12 + rcx*8 + 0xf3da2]
movzx eax, byte [r8]
movzx ecx, byte [rax + r12 + 0xadd70]
xor edx, dword [r12 + rcx*8 + 0xf3da3]
mov dword [r10], edx
mov dword [r8], r9d
add ebp, 4
add r15d, 4
add r11d, 0xfffffffc
lea r14d, [r14 - 4]
cmp ebp, r11d
jb 0x18003fa40
mov eax, ebp
lea r8, [rbx + rax*4]
mov edi, dword [r8]
mov eax, edi
shr eax, 0x18
movzx ecx, al
movzx edx, byte [rcx + r12 + 0xadd70]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0xadd70]
mov edx, dword [r12 + rdx*8 + 0xf3da4]
xor edx, dword [r12 + rax*8 + 0xf3da1]
shr edi, 8
movzx eax, dil
movzx ecx, byte [rax + r12 + 0xadd70]
xor edx, dword [r12 + rcx*8 + 0xf3da2]
movzx eax, byte [r8]
movzx ecx, byte [rax + r12 + 0xadd70]
xor edx, dword [r12 + rcx*8 + 0xf3da3]
mov dword [r8], edx
lea eax, [rbp + 1]
lea r8, [rbx + rax*4]
mov edi, dword [r8]
mov eax, edi
shr eax, 0x18
movzx ecx, al
movzx edx, byte [rcx + r12 + 0xadd70]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0xadd70]
mov edx, dword [r12 + rdx*8 + 0xf3da4]
xor edx, dword [r12 + rax*8 + 0xf3da1]
shr edi, 8
movzx eax, dil
movzx ecx, byte [rax + r12 + 0xadd70]
xor edx, dword [r12 + rcx*8 + 0xf3da2]
movzx eax, byte [r8]
movzx ecx, byte [rax + r12 + 0xadd70]
xor edx, dword [r12 + rcx*8 + 0xf3da3]
mov dword [r8], edx
lea eax, [rbp + 2]
lea r8, [rbx + rax*4]
mov edi, dword [r8]
mov eax, edi
shr eax, 0x18
movzx ecx, al
movzx edx, byte [rcx + r12 + 0xadd70]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0xadd70]
mov edx, dword [r12 + rdx*8 + 0xf3da4]
xor edx, dword [r12 + rax*8 + 0xf3da1]
shr edi, 8
movzx eax, dil
movzx ecx, byte [rax + r12 + 0xadd70]
xor edx, dword [r12 + rcx*8 + 0xf3da2]
movzx eax, byte [r8]
movzx ecx, byte [rax + r12 + 0xadd70]
xor edx, dword [r12 + rcx*8 + 0xf3da3]
mov dword [r8], edx
lea eax, [rbp + 3]
lea r8, [rbx + rax*4]
mov edi, dword [r8]
mov eax, edi
shr eax, 0x18
movzx ecx, al
movzx edx, byte [rcx + r12 + 0xadd70]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0xadd70]
mov edx, dword [r12 + rdx*8 + 0xf3da4]
xor edx, dword [r12 + rax*8 + 0xf3da1]
shr edi, 8
movzx eax, dil
movzx ecx, byte [rax + r12 + 0xadd70]
xor edx, dword [r12 + rcx*8 + 0xf3da2]
movzx eax, byte [r8]
movzx ecx, byte [rax + r12 + 0xadd70]
xor edx, dword [r12 + rcx*8 + 0xf3da3]
mov dword [r8], edx
mov edx, dword [rbx]
bswap edx
mov eax, dword [rsi + 0x18]
shl eax, 2
mov ecx, dword [rbx + rax*4]
bswap ecx
mov dword [rbx], ecx
mov eax, dword [rsi + 0x18]
shl eax, 2
mov dword [rbx + rax*4], edx
mov edx, dword [rbx + 4]
bswap edx
mov eax, dword [rsi + 0x18]
lea eax, [rax*4 + 1]
mov eax, dword [rbx + rax*4]
bswap eax
mov dword [rbx + 4], eax
mov eax, dword [rsi + 0x18]
lea eax, [rax*4 + 1]
mov dword [rbx + rax*4], edx
mov edx, dword [rbx + 8]
bswap edx
mov eax, dword [rsi + 0x18]
lea eax, [rax*4 + 2]
mov eax, dword [rbx + rax*4]
bswap eax
mov dword [rbx + 8], eax
mov eax, dword [rsi + 0x18]
lea eax, [rax*4 + 2]
mov dword [rbx + rax*4], edx
mov edx, dword [rbx + 0xc]
bswap edx
mov eax, dword [rsi + 0x18]
lea eax, [rax*4 + 3]
mov eax, dword [rbx + rax*4]
bswap eax
mov dword [rbx + 0xc], eax
mov eax, dword [rsi + 0x18]
lea eax, [rax*4 + 3]
mov dword [rbx + rax*4], edx
cmp byte [0x1800f4758], 0
jne 0x18003fff8
call fcn.180050dc0
cmp byte [0x1800f475d], 0
je 0x180040019
mov r8d, dword [rsi + 0x18]
shl r8d, 4
sub r8d, 0x10
lea rcx, [rbx + 0x10]
mov rdx, rcx
call fcn.18003e820
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret