Function at 0x1800e4340
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rdi
push r14
sub rsp, 0x58
mov rax, qword [rcx]
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov r14, rcx
call qword [rax + 0x20]
test al, al
jne 0x1800e4376
mov rcx, r14
call fcn.1800a53c0
mov qword [rsp + 0x50], rsi
cmp rbp, 4
jb 0x1800e48a6
mov rcx, rbp
mov qword [rsp + 0x48], r12
shr rcx, 2
imul rax, rcx, 0xfffffffffffffffc
mov qword [rsp + 0x40], r13
add rbp, rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0x28], rcx
nop
mov eax, dword [rdi + 0x1c]
mov r10d, dword [rdi]
mov r15d, dword [rdi + 4]
mov r11d, dword [rdi + 8]
mov r12d, dword [rdi + 0xc]
mov esi, dword [rdi + 0x10]
mov r13d, dword [rdi + 0x14]
mov ebp, dword [rdi + 0x18]
mov edi, 4
mov rbx, qword [r14 + 0x20]
mov r9, qword [r14 + 8]
add rbx, 8
bswap eax
mov dword [rsp + 0x20], eax
mov r14d, eax
bswap r10d
bswap r15d
bswap r11d
bswap r12d
bswap esi
bswap r13d
bswap ebp
nop dword [rax]
mov eax, dword [rbx - 8]
xor r10d, eax
xor r11d, eax
mov r8d, dword [rbx - 4]
xor esi, eax
xor ebp, eax
mov eax, r10d
shr eax, 0x10
movzx ecx, al
mov eax, r10d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r10d
shr eax, 8
movzx ecx, al
movzx eax, r10b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, r11d
shr eax, 0x10
xor edx, r8d
movzx ecx, al
xor r15d, edx
mov eax, r11d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r11d
shr eax, 8
movzx ecx, al
movzx eax, r11b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, esi
shr eax, 0x10
xor edx, r8d
movzx ecx, al
xor r12d, edx
mov eax, esi
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, esi
shr eax, 8
movzx ecx, al
movzx eax, sil
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, ebp
shr eax, 0x10
xor edx, r8d
movzx ecx, al
xor r13d, edx
mov eax, ebp
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, ebp
shr eax, 8
movzx ecx, al
movzx eax, bpl
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, r15d
shr eax, 0x10
xor edx, r8d
mov r8d, dword [rbx]
xor r14d, edx
movzx ecx, al
mov eax, r15d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r15d
shr eax, 8
movzx ecx, al
movzx eax, r15b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
xor edx, r8d
xor r10d, edx
mov eax, r12d
shr eax, 0x10
movzx ecx, al
mov eax, r12d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r12d
shr eax, 8
movzx ecx, al
movzx eax, r12b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, r13d
shr eax, 0x10
xor edx, r8d
movzx ecx, al
xor r11d, edx
mov eax, r13d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r13d
shr eax, 8
movzx ecx, al
movzx eax, r13b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, r14d
shr eax, 0x10
xor edx, r8d
movzx ecx, al
xor esi, edx
mov eax, r14d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r14d
shr eax, 8
movzx ecx, al
movzx eax, r14b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, r10d
shr eax, 0x10
xor edx, r8d
mov r8d, dword [rbx + 4]
xor ebp, edx
movzx ecx, al
mov eax, r10d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r10d
shr eax, 8
movzx ecx, al
movzx eax, r10b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, r11d
shr eax, 0x10
xor edx, r8d
movzx ecx, al
xor r15d, edx
mov eax, r11d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r11d
shr eax, 8
movzx ecx, al
movzx eax, r11b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, esi
xor edx, r8d
xor r12d, edx
shr eax, 0x10
movzx ecx, al
mov eax, esi
mov edx, dword [r9 + rcx*4 + 0x400]
shr rax, 0x18
add edx, dword [r9 + rax*4]
mov eax, esi
shr eax, 8
movzx ecx, al
movzx eax, sil
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, ebp
shr eax, 0x10
xor edx, r8d
movzx ecx, al
xor r13d, edx
mov eax, ebp
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, ebp
shr eax, 8
movzx ecx, al
movzx eax, bpl
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, r15d
shr eax, 0x10
xor edx, r8d
movzx ecx, al
xor r14d, edx
mov eax, r15d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r15d
shr eax, 8
movzx ecx, al
movzx eax, r15b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, r12d
shr eax, 0x10
xor r10d, edx
movzx ecx, al
mov eax, r12d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r12d
shr eax, 8
movzx ecx, al
movzx eax, r12b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, r13d
shr eax, 0x10
xor r11d, edx
movzx ecx, al
mov eax, r13d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r13d
shr eax, 8
movzx ecx, al
movzx eax, r13b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
mov eax, r14d
shr eax, 0x10
xor esi, edx
movzx ecx, al
mov eax, r14d
shr rax, 0x18
mov edx, dword [r9 + rcx*4 + 0x400]
add edx, dword [r9 + rax*4]
mov eax, r14d
shr eax, 8
movzx ecx, al
movzx eax, r14b
xor edx, dword [r9 + rcx*4 + 0x800]
add edx, dword [r9 + rax*4 + 0xc00]
xor ebp, edx
lea rbx, [rbx + 0x10]
sub rdi, 1
jne 0x1800e4400
mov rbx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov dword [rsp + 0x20], r14d
add rdi, 0x20
mov r14, qword [rsp + 0x80]
mov qword [rsp + 0x88], rdi
mov rax, qword [r14 + 0x20]
mov edx, dword [rax + 0x40]
mov ecx, dword [rax + 0x44]
mov eax, ecx
xor eax, r15d
bswap eax
mov dword [rbx], eax
mov eax, edx
xor eax, r10d
bswap eax
mov dword [rbx + 4], eax
mov eax, ecx
xor eax, r12d
bswap eax
mov dword [rbx + 8], eax
mov eax, edx
xor eax, r11d
bswap eax
mov dword [rbx + 0xc], eax
mov eax, ecx
xor ecx, dword [rsp + 0x20]
xor eax, r13d
bswap eax
mov dword [rbx + 0x10], eax
mov eax, edx
xor eax, esi
xor edx, ebp
bswap eax
bswap ecx
bswap edx
mov dword [rbx + 0x14], eax
mov dword [rbx + 0x18], ecx
mov dword [rbx + 0x1c], edx
add rbx, 0x20
sub qword [rsp + 0x28], 1
mov qword [rsp + 0x90], rbx
jne 0x1800e43b0
mov r15, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x98]
test rbp, rbp
je 0x1800e498d
sub rdi, rbx
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rdi + rbx]
xor r11d, r11d
mov r10d, dword [rdi + rbx + 4]
mov rsi, qword [r14 + 0x20]
mov r9, qword [r14 + 8]
bswap eax
bswap r10d
nop dword [rax + rax]
xor eax, dword [rsi + r11*4]
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
mov ecx, eax
shr rcx, 0x18
mov r8d, dword [r9 + rdx*4 + 0x400]
add r8d, dword [r9 + rcx*4]
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, al
xor r8d, dword [r9 + rdx*4 + 0x800]
add r8d, dword [r9 + rcx*4 + 0xc00]
xor r8d, dword [rsi + r11*4 + 4]
add r11, 2
xor r10d, r8d
mov ecx, r10d
shr ecx, 0x10
movzx edx, cl
mov ecx, r10d
shr rcx, 0x18
mov r8d, dword [r9 + rdx*4 + 0x400]
add r8d, dword [r9 + rcx*4]
mov ecx, r10d
shr ecx, 8
movzx edx, cl
movzx ecx, r10b
xor r8d, dword [r9 + rdx*4 + 0x800]
add r8d, dword [r9 + rcx*4 + 0xc00]
xor eax, r8d
cmp r11, 0x10
jne 0x1800e48e0
xor r10d, dword [rsi + 0x44]
mov edx, dword [rsi + 0x40]
xor edx, eax
bswap edx
bswap r10d
mov dword [rbx + 4], edx
mov dword [rbx], r10d
add rbx, 8
sub rbp, 1
jne 0x1800e48c0
mov rsi, qword [rsp + 0x50]
add rsp, 0x58
pop r14
pop rdi
pop rbp
pop rbx
ret