Function at 0x1801f6f10
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xb0
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rsp + 0xf8], rbx
mov rax, qword [0x18036d060]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov qword [rbp - 0x49], r9
mov r13, r8
mov qword [rbp - 0x51], r8
mov r15, rcx
mov qword [rbp - 0x59], rcx
mov rsi, qword [rbp + 0x7f]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x31], xmm0
mov qword [rbp - 0x21], rax
lea r8, [0x1802f3b10]
mov rdx, rsi
lea rcx, [rbp - 0x31]
call fcn.180105b50
nop
mov eax, dword [r13 + 0x10]
cdq
and edx, 7
lea edi, [rdx + rax]
sar edi, 3
lea rcx, [r13 + 0x18]
call fcn.1800bdfb0
mov r14, rax
lea rcx, [r13 + 0x18]
call fcn.1800be430
cmp eax, edi
jae 0x1801f6fbb
mov rax, qword [rsi]
lea rdx, str.Not_enough_key_material_for_twofish.
mov rcx, rsi
call qword [rax + 0x28]
xor bl, bl
jmp 0x1801f756d
mov eax, edi
cdq
and edx, 7
lea r12d, [rdx + rax]
sar r12d, 3
test edi, edi
jle 0x1801f6fdc
mov r8, rdi
mov rdx, r14
lea rcx, [rbp - 9]
call fcn.180210e90
lea r11, sym.LoaderKernel.dll_1_bID_MjfIzcypTm24yu_z_nD4S
test r12d, r12d
jle 0x1801f7092
lea r9, [rbp - 0x17]
lea rax, [rbp - 3]
mov r10, r12
nop word [rax + rax]
movzx edx, byte [rax + 1]
movzx ecx, byte [rax - 1]
mov r8d, dword [r11 + rdx*4 + 0x2f3710]
xor r8d, dword [r11 + rcx*4 + 0x2f2f10]
movzx ecx, byte [rax - 2]
xor r8d, dword [r11 + rcx*4 + 0x2f2b10]
movzx ecx, byte [rax - 3]
xor r8d, dword [r11 + rcx*4 + 0x2f2710]
movzx ecx, byte [rax - 4]
xor r8d, dword [r11 + rcx*4 + 0x2f2310]
movzx ecx, byte [rax - 5]
xor r8d, dword [r11 + rcx*4 + 0x2f1f10]
movzx ecx, byte [rax - 6]
xor r8d, dword [r11 + rcx*4 + 0x2f1b10]
movzx ecx, byte [rax]
xor r8d, dword [r11 + rcx*4 + 0x2f3310]
mov ecx, r8d
shr ecx, 0x18
mov byte [r9 + 1], cl
mov ecx, r8d
shr ecx, 0x10
mov byte [r9], cl
mov ecx, r8d
shr ecx, 8
mov byte [r9 - 1], cl
mov byte [r9 - 2], r8b
lea r9, [r9 + 4]
lea rax, [rax + 8]
sub r10, 1
jne 0x1801f7000
xor esi, esi
mov r14d, esi
add r15, 0x10b4
nop
movzx ebx, r14b
add bl, bl
mov byte [rbp - 0x39], bl
mov byte [rbp - 0x38], bl
mov byte [rbp - 0x37], bl
mov byte [rbp - 0x36], bl
mov dword [rsp + 0x20], esi
mov r9d, r12d
lea r8, [rbp - 9]
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x39]
call fcn.1801f8220
movzx edi, byte [rbp - 0x5e]
shl edi, 8
movzx eax, byte [rbp - 0x5f]
or edi, eax
shl edi, 8
movzx eax, byte [rbp - 0x60]
or edi, eax
shl edi, 8
movzx eax, byte [rbp - 0x61]
or edi, eax
inc bl
mov byte [rbp - 0x39], bl
mov byte [rbp - 0x38], bl
mov byte [rbp - 0x37], bl
mov byte [rbp - 0x36], bl
mov dword [rsp + 0x20], 1
mov r9d, r12d
lea r8, [rbp - 9]
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x39]
call fcn.1801f8220
movzx ecx, byte [rbp - 0x5e]
shl ecx, 8
movzx eax, byte [rbp - 0x5f]
or ecx, eax
shl ecx, 8
movzx eax, byte [rbp - 0x60]
or ecx, eax
shl ecx, 8
movzx eax, byte [rbp - 0x61]
or ecx, eax
rol ecx, 8
lea eax, [rcx + rdi]
mov dword [r15 - 4], eax
lea eax, [rdi + rcx*2]
rol eax, 9
mov dword [r15], eax
inc r14d
lea r15, [r15 + 8]
cmp r14d, 0x14
jl 0x1801f70a0
mov r10, qword [rbp - 0x59]
add r10, 0x4b0
mov r11d, 0x100
cmp r12d, 2
jne 0x1801f7277
mov r9, qword [rbp - 0x12]
mov rbx, qword [rbp - 0x13]
mov rdi, qword [rbp - 0x14]
mov r14, qword [rbp - 0x15]
mov r15, qword [rbp - 0x16]
mov r12, qword [rbp - 0x17]
lea r13, sym.LoaderKernel.dll_1_bID_MjfIzcypTm24yu_z_nD4S
movzx eax, sil
movzx edx, byte [rax + r13 + 0x2f0910]
movzx r8d, byte [rax + r13 + 0x2f0a10]
movzx eax, byte [rbp - 0x19]
xor rax, rdx
movzx ecx, byte [rax + r13 + 0x2f0910]
movzx eax, r14b
xor rcx, rax
movzx eax, byte [rcx + r13 + 0x2f0a10]
mov eax, dword [r13 + rax*4 + 0x2f0b10]
mov dword [r10 - 0x400], eax
movzx eax, byte [rbp - 0x18]
xor rax, r8
movzx ecx, byte [rax + r13 + 0x2f0910]
movzx eax, dil
xor rcx, rax
movzx eax, byte [rcx + r13 + 0x2f0910]
mov eax, dword [r13 + rax*4 + 0x2f0f10]
mov dword [r10], eax
movzx eax, r12b
xor rax, rdx
movzx ecx, byte [rax + r13 + 0x2f0a10]
movzx eax, bl
xor rcx, rax
movzx eax, byte [rcx + r13 + 0x2f0a10]
mov eax, dword [r13 + rax*4 + 0x2f1310]
mov dword [r10 + 0x400], eax
movzx eax, r15b
xor rax, r8
movzx ecx, byte [rax + r13 + 0x2f0a10]
movzx eax, r9b
xor rcx, rax
movzx eax, byte [rcx + r13 + 0x2f0910]
mov eax, dword [r13 + rax*4 + 0x2f1710]
mov dword [r10 + 0x800], eax
inc rsi
lea r10, [r10 + 4]
sub r11, 1
jne 0x1801f7190
mov r13, qword [rbp - 0x51]
jmp 0x1801f7525
lea r14, sym.LoaderKernel.dll_1_bID_MjfIzcypTm24yu_z_nD4S
cmp r12d, 3
jne 0x1801f73b8
movzx ebx, byte [rbp - 0xe]
movzx edi, byte [rbp - 0xf]
movzx r15d, byte [rbp - 0x10]
mov r12, qword [rbp - 0x11]
nop dword [rax]
movzx eax, sil
movzx r9d, byte [rax + r14 + 0x2f0910]
movzx r8d, byte [rax + r14 + 0x2f0a10]
movzx eax, byte [rbp - 0x19]
xor rax, r8
movzx ecx, byte [rax + r14 + 0x2f0910]
movzx eax, byte [rbp - 0x15]
xor rcx, rax
movzx edx, byte [rcx + r14 + 0x2f0910]
movzx eax, r12b
xor rdx, rax
movzx eax, byte [rdx + r14 + 0x2f0a10]
mov eax, dword [r14 + rax*4 + 0x2f0b10]
mov dword [r10 - 0x400], eax
movzx eax, byte [rbp - 0x18]
xor rax, r8
movzx ecx, byte [rax + r14 + 0x2f0a10]
movzx eax, byte [rbp - 0x14]
xor rcx, rax
movzx edx, byte [rcx + r14 + 0x2f0910]
xor rdx, r15
movzx eax, byte [rdx + r14 + 0x2f0910]
mov eax, dword [r14 + rax*4 + 0x2f0f10]
mov dword [r10], eax
movzx eax, byte [rbp - 0x17]
xor rax, r9
movzx ecx, byte [rax + r14 + 0x2f0910]
movzx eax, byte [rbp - 0x13]
xor rcx, rax
movzx edx, byte [rcx + r14 + 0x2f0a10]
xor rdx, rdi
movzx eax, byte [rdx + r14 + 0x2f0a10]
mov eax, dword [r14 + rax*4 + 0x2f1310]
mov dword [r10 + 0x400], eax
movzx eax, byte [rbp - 0x16]
xor rax, r9
movzx ecx, byte [rax + r14 + 0x2f0a10]
movzx eax, byte [rbp - 0x12]
xor rcx, rax
movzx ecx, byte [rcx + r14 + 0x2f0a10]
xor rcx, rbx
movzx eax, byte [rcx + r14 + 0x2f0910]
mov eax, dword [r14 + rax*4 + 0x2f1710]
mov dword [r10 + 0x800], eax
inc rsi
lea r10, [r10 + 4]
sub r11, 1
jne 0x1801f72a0
jmp 0x1801f7525
movzx ebx, byte [rbp - 0xa]
movzx edi, byte [rbp - 0xb]
movzx r15d, byte [rbp - 0xc]
movzx r12d, byte [rbp - 0xd]
nop word [rax + rax]
movzx eax, sil
movzx r8d, byte [rax + r14 + 0x2f0910]
movzx r9d, byte [rax + r14 + 0x2f0a10]
mov ecx, r9d
movzx eax, byte [rbp - 0x19]
xor rcx, rax
movzx ecx, byte [rcx + r14 + 0x2f0a10]
movzx eax, byte [rbp - 0x15]
xor rcx, rax
movzx edx, byte [rcx + r14 + 0x2f0910]
movzx eax, byte [rbp - 0x11]
xor rdx, rax
movzx ecx, byte [rdx + r14 + 0x2f0910]
xor rcx, r12
movzx eax, byte [rcx + r14 + 0x2f0a10]
mov eax, dword [r14 + rax*4 + 0x2f0b10]
mov dword [r10 - 0x400], eax
mov ecx, r8d
movzx eax, byte [rbp - 0x18]
xor rcx, rax
movzx edx, byte [rcx + r14 + 0x2f0a10]
movzx eax, byte [rbp - 0x14]
xor rdx, rax
movzx ecx, byte [rdx + r14 + 0x2f0a10]
movzx eax, byte [rbp - 0x10]
xor rcx, rax
movzx edx, byte [rcx + r14 + 0x2f0910]
xor rdx, r15
movzx eax, byte [rdx + r14 + 0x2f0910]
mov eax, dword [r14 + rax*4 + 0x2f0f10]
mov dword [r10], eax
movzx eax, byte [rbp - 0x17]
xor r8, rax
movzx ecx, byte [r8 + r14 + 0x2f0910]
movzx eax, byte [rbp - 0x13]
xor rcx, rax
movzx edx, byte [rcx + r14 + 0x2f0910]
movzx eax, byte [rbp - 0xf]
xor rdx, rax
movzx ecx, byte [rdx + r14 + 0x2f0a10]
xor rcx, rdi
movzx eax, byte [rcx + r14 + 0x2f0a10]
mov eax, dword [r14 + rax*4 + 0x2f1310]
mov dword [r10 + 0x400], eax
movzx eax, byte [rbp - 0x16]
xor r9, rax
movzx ecx, byte [r9 + r14 + 0x2f0910]
movzx eax, byte [rbp - 0x12]
xor rcx, rax
movzx edx, byte [rcx + r14 + 0x2f0a10]
movzx eax, byte [rbp - 0xe]
xor rdx, rax
movzx ecx, byte [rdx + r14 + 0x2f0a10]
xor rcx, rbx
movzx eax, byte [rcx + r14 + 0x2f0910]
mov eax, dword [r14 + rax*4 + 0x2f1710]
mov dword [r10 + 0x800], eax
inc rsi
lea r10, [r10 + 4]
sub r11, 1
jne 0x1801f73d0
mov r14, qword [rbp - 0x59]
mov rsi, qword [rbp - 0x49]
test rsi, rsi
je 0x1801f756b
mov eax, dword [r13 + 8]
sub eax, 3
cmp eax, 1
ja 0x1801f756b
lea rcx, [r13 + 0x50]
call fcn.1800be430
mov edi, eax
lea rcx, [r13 + 0x50]
call fcn.1800bdfb0
mov rdx, rax
lea rcx, [rsi + 0x4a0]
mov r9d, dword [r14 + 0xa8]
mov r8d, edi
call fcn.1801c8d90
mov bl, 1
lea rcx, [rbp - 0x31]
call fcn.180105c80
movzx eax, bl
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.18007b140
mov rbx, qword [rsp + 0xf8]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret