Function at 0x18004126a
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1800b8c50
jmp 0x1800b8bb0
mov r8d, r8d
jmp 0x18003f181
push rbp
push rsi
sub rsp, 0x38
mov rbp, r8
mov rsi, rdx
test rdx, rdx
jne 0x1800b8c6b
xor eax, eax
add rsp, 0x38
pop rsi
pop rbp
ret
lea r10, [0x180000000]
not ecx
cmp r8, 0x17
jb 0x1800b8ef4
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
test sil, 3
je 0x1800b8cb7
movzx edx, byte [rsi]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
inc rsi
xor ecx, dword [r10 + rax*4 + 0xf4e70]
sub rbp, 1
jne 0x1800b8c92
xor r15d, r15d
movabs rax, 0xcccccccccccccccd
mul rbp
mov r12d, r15d
mov r13d, r15d
mov r14, rdx
mov edx, r15d
shr r14, 4
mov dword [rsp + 0x58], edx
lea rax, [r14 + r14*4]
shl rax, 2
sub rbp, rax
sub r14, 1
je 0x1800b8e9e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rdi
nop word [rax + rax]
xor edx, dword [rsi + 0x10]
lea r8, [0x180000000]
xor ecx, dword [rsi]
xor r15d, dword [rsi + 4]
xor r12d, dword [rsi + 8]
xor r13d, dword [rsi + 0xc]
add rsi, 0x14
mov edi, edx
mov r9d, ecx
mov r11d, r12d
mov ebx, r13d
movzx eax, r15b
movzx ecx, cl
mov ecx, dword [r10 + rcx*4 + 0xf5270]
mov r10d, r15d
mov r15d, dword [r8 + rax*4 + 0xf5270]
movzx eax, r12b
mov r12d, dword [r8 + rax*4 + 0xf5270]
movzx eax, r13b
mov r13d, dword [r8 + rax*4 + 0xf5270]
movzx eax, dl
mov edx, dword [r8 + rax*4 + 0xf5270]
mov eax, r9d
shr rax, 0x10
movzx r8d, al
mov eax, r9d
shr rax, 8
mov dword [rsp + 0x58], edx
movzx edx, al
lea rax, [0x180000000]
mov eax, dword [rax + r8*4 + 0xf5a70]
lea r8, [0x180000000]
shr r9, 0x18
xor eax, dword [r8 + rdx*4 + 0xf5670]
xor eax, dword [r8 + r9*4 + 0xf5e70]
lea r9, [0x180000000]
xor ecx, eax
mov eax, r10d
shr rax, 0x10
movzx r8d, al
mov eax, r10d
shr rax, 8
movzx edx, al
shr r10, 0x18
mov eax, dword [r9 + r8*4 + 0xf5a70]
xor eax, dword [r9 + rdx*4 + 0xf5670]
xor eax, dword [r9 + r10*4 + 0xf5e70]
lea r10, [0x180000000]
xor r15d, eax
mov eax, r11d
shr rax, 0x10
movzx r8d, al
mov eax, r11d
shr rax, 8
movzx edx, al
shr r11, 0x18
mov eax, dword [r10 + r8*4 + 0xf5a70]
xor eax, dword [r10 + rdx*4 + 0xf5670]
xor eax, dword [r10 + r11*4 + 0xf5e70]
xor r12d, eax
mov eax, ebx
shr rax, 0x10
movzx r8d, al
mov eax, ebx
shr rax, 8
movzx edx, al
shr rbx, 0x18
mov eax, dword [r10 + r8*4 + 0xf5a70]
xor eax, dword [r10 + rdx*4 + 0xf5670]
xor eax, dword [r10 + rbx*4 + 0xf5e70]
xor r13d, eax
mov eax, edi
shr rax, 0x10
movzx r8d, al
mov eax, edi
shr rax, 8
movzx edx, al
shr rdi, 0x18
mov eax, dword [r10 + r8*4 + 0xf5a70]
xor eax, dword [r10 + rdx*4 + 0xf5670]
xor eax, dword [r10 + rdi*4 + 0xf5e70]
mov edx, dword [rsp + 0x58]
xor edx, eax
mov dword [rsp + 0x58], edx
sub r14, 1
jne 0x1800b8d00
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
xor ecx, dword [rsi]
call fcn.1800b9100
xor eax, dword [rsi + 4]
xor eax, r15d
mov ecx, eax
call fcn.1800b9100
xor eax, dword [rsi + 8]
xor eax, r12d
mov ecx, eax
call fcn.1800b9100
xor eax, dword [rsi + 0xc]
xor eax, r13d
mov ecx, eax
call fcn.1800b9100
xor eax, dword [rsi + 0x10]
mov ecx, dword [rsp + 0x58]
xor ecx, eax
call fcn.1800b9100
mov r15, qword [rsp + 0x20]
mov ecx, eax
mov r14, qword [rsp + 0x28]
add rsi, 0x14
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x68]
cmp rbp, 8
jb 0x1800b8fd5
mov r8, rbp
shr r8, 3
imul rax, r8, 0xfffffffffffffff8
add rbp, rax
nop dword [rax]
movzx edx, byte [rsi]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
movzx edx, byte [rsi + 1]
xor ecx, dword [r10 + rax*4 + 0xf4e70]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [rsi + 2]
xor ecx, dword [r10 + rax*4 + 0xf4e70]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [rsi + 3]
xor ecx, dword [r10 + rax*4 + 0xf4e70]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [rsi + 4]
xor ecx, dword [r10 + rax*4 + 0xf4e70]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [rsi + 5]
xor ecx, dword [r10 + rax*4 + 0xf4e70]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [rsi + 6]
xor ecx, dword [r10 + rax*4 + 0xf4e70]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [rsi + 7]
add rsi, 8
xor ecx, dword [r10 + rax*4 + 0xf4e70]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r10 + rax*4 + 0xf4e70]
sub r8, 1
jne 0x1800b8f10
test rbp, rbp
je 0x1800b9000
nop word [rax + rax]
movzx edx, byte [rsi]
lea rsi, [rsi + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r10 + rax*4 + 0xf4e70]
sub rbp, 1
jne 0x1800b8fe0
not ecx
mov eax, ecx
add rsp, 0x38
pop rsi
pop rbp
ret