Function at 0x18008c970
Capabilities:
Encode data using xor

Disassembly:
jmp 0x18008c970
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r12
mov eax, 0x20
call fcn.180001055
sub rsp, rax
mov rax, qword [rsp + 0x70]
mov rbx, rdx
mov rbp, rcx
mov r11, r9
mov r12d, r8d
movzx ecx, byte [rax]
lea rdx, [rax + 1]
movzx eax, byte [rax + 2]
shl eax, 0x10
cmp dword [rsp + 0x78], 0
je 0x18008cbc8
movzx r10d, byte [rdx]
lea edi, [r12 - 8]
movzx r8d, byte [rdx + 3]
shl r10d, 8
or r10d, ecx
movzx ecx, byte [rdx + 6]
or r10d, eax
shl ecx, 8
movzx eax, byte [rdx + 2]
shl eax, 0x18
or r10d, eax
movzx eax, byte [rdx + 4]
shl eax, 8
or r8d, eax
movzx eax, byte [rdx + 5]
or ecx, eax
shl ecx, 0x10
or r8d, ecx
test edi, edi
js 0x18008cad1
lea esi, [rdi + 8]
shr rsi, 3
mov eax, esi
neg eax
lea edi, [rdi + rax*8]
mov dword [rsp + 0x78], edi
mov rdi, qword [rsp + 0x68]
movzx edx, byte [rbp]
movzx ecx, byte [rbp + 4]
movzx eax, byte [rbp + 1]
shl eax, 8
or edx, eax
movzx eax, byte [rbp + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [rbp + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [rbp + 5]
shl eax, 8
xor edx, r10d
or ecx, eax
mov dword [rsp + 0x70], edx
movzx eax, byte [rbp + 6]
mov rdx, rdi
shl eax, 0x10
or ecx, eax
movzx eax, byte [rbp + 7]
shl eax, 0x18
add rbp, 8
or ecx, eax
xor ecx, r8d
mov r8d, 1
mov dword [rsp + 0x74], ecx
lea rcx, [rsp + 0x70]
call sym.libcrypto_1_1_x64.dll_DES_encrypt1
mov r10d, dword [rsp + 0x70]
mov eax, r10d
mov r8d, dword [rsp + 0x74]
shr eax, 8
mov byte [rbx], r10b
mov byte [rbx + 1], al
mov eax, r10d
shr eax, 0x10
mov byte [rbx + 2], al
mov eax, r10d
shr eax, 0x18
mov byte [rbx + 3], al
mov eax, r8d
shr eax, 8
mov byte [rbx + 4], r8b
mov byte [rbx + 5], al
mov eax, r8d
shr eax, 0x10
mov byte [rbx + 6], al
mov eax, r8d
shr eax, 0x18
mov byte [rbx + 7], al
add rbx, 8
sub rsi, 1
jne 0x18008ca10
mov edi, dword [rsp + 0x78]
mov r11, qword [rsp + 0x68]
cmp edi, 0xfffffff8
je 0x18008cde9
lea eax, [rdi + 8]
add edi, 7
movsxd rcx, eax
add rbp, rcx
xor ecx, ecx
mov edx, ecx
cmp edi, 7
ja case.default.0x18008cb04
lea r9, [0x180000000]
movsxd rax, edi
mov eax, dword [r9 + rax*4 + 0x8cdf4]
add rax, r9
jmp rax
movzx ecx, byte [rbp - 1]
dec rbp
shl ecx, 0x18
movzx eax, byte [rbp - 1]
dec rbp
shl eax, 0x10
or ecx, eax
movzx eax, byte [rbp - 1]
dec rbp
shl eax, 8
or ecx, eax
movzx eax, byte [rbp - 1]
dec rbp
or ecx, eax
movzx edx, byte [rbp - 1]
dec rbp
shl edx, 0x18
movzx eax, byte [rbp - 1]
dec rbp
shl eax, 0x10
or edx, eax
movzx eax, byte [rbp - 1]
dec rbp
shl eax, 8
or edx, eax
movzx eax, byte [rbp - 1]
or edx, eax
xor ecx, r8d
xor edx, r10d
mov dword [rsp + 0x70], edx
mov r8d, 1
mov dword [rsp + 0x74], ecx
mov rdx, r11
lea rcx, [rsp + 0x70]
call sym.libcrypto_1_1_x64.dll_DES_encrypt1
mov ecx, dword [rsp + 0x70]
movzx eax, byte [rsp + 0x70]
mov byte [rbx], al
mov eax, ecx
shr eax, 8
mov byte [rbx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [rbx + 2], al
movzx eax, byte [rsp + 0x74]
shr ecx, 0x18
mov byte [rbx + 3], cl
mov ecx, dword [rsp + 0x74]
mov byte [rbx + 4], al
mov eax, ecx
shr eax, 8
mov byte [rbx + 5], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [rbx + 6], al
mov byte [rbx + 7], cl
add rsp, 0x20
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov qword [rsp + 0x50], r13
movzx r13d, byte [rdx + 3]
mov qword [rsp + 0x58], r14
movzx r14d, byte [rdx]
shl r14d, 8
or r14d, ecx
movzx ecx, byte [rdx + 6]
or r14d, eax
shl ecx, 8
movzx eax, byte [rdx + 2]
shl eax, 0x18
or r14d, eax
movzx eax, byte [rdx + 4]
shl eax, 8
or r13d, eax
movzx eax, byte [rdx + 5]
or ecx, eax
shl ecx, 0x10
or r13d, ecx
add r12d, 0xfffffff8
js 0x18008ccfc
mov qword [rsp + 0x60], r15
lea r15d, [r12 + 8]
shr r15, 3
mov eax, r15d
neg eax
lea r12d, [r12 + rax*8]
mov dword [rsp + 0x78], r12d
mov r12, qword [rsp + 0x68]
nop word [rax + rax]
movzx eax, byte [rbp + 1]
lea rcx, [rsp + 0x70]
movzx esi, byte [rbp]
xor r8d, r8d
movzx edi, byte [rbp + 4]
mov rdx, r12
shl eax, 8
or esi, eax
movzx eax, byte [rbp + 2]
shl eax, 0x10
or esi, eax
movzx eax, byte [rbp + 3]
shl eax, 0x18
or esi, eax
movzx eax, byte [rbp + 5]
shl eax, 8
or edi, eax
mov dword [rsp + 0x70], esi
movzx eax, byte [rbp + 6]
shl eax, 0x10
or edi, eax
movzx eax, byte [rbp + 7]
shl eax, 0x18
add rbp, 8
or edi, eax
mov dword [rsp + 0x74], edi
call sym.libcrypto_1_1_x64.dll_DES_encrypt1
mov ecx, dword [rsp + 0x70]
mov edx, dword [rsp + 0x74]
xor ecx, r14d
mov byte [rbx], cl
xor edx, r13d
mov eax, ecx
mov r14d, esi
shr eax, 8
mov r13d, edi
mov byte [rbx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [rbx + 2], al
mov eax, edx
shr eax, 8
shr ecx, 0x18
mov byte [rbx + 3], cl
mov byte [rbx + 4], dl
mov byte [rbx + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [rbx + 6], al
mov byte [rbx + 7], dl
add rbx, 8
sub r15, 1
jne 0x18008cc40
mov r12d, dword [rsp + 0x78]
mov r11, qword [rsp + 0x68]
mov r15, qword [rsp + 0x60]
cmp r12d, 0xfffffff8
je case.default.0x18008cd95
movzx ecx, byte [rbp]
xor r8d, r8d
movzx edx, byte [rbp + 4]
movzx eax, byte [rbp + 1]
shl eax, 8
or ecx, eax
movzx eax, byte [rbp + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [rbp + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [rbp + 5]
mov dword [rsp + 0x70], ecx
movzx ecx, byte [rbp + 7]
shl ecx, 8
shl eax, 8
or edx, eax
movzx eax, byte [rbp + 6]
or ecx, eax
shl ecx, 0x10
or ecx, edx
mov rdx, r11
mov dword [rsp + 0x74], ecx
lea rcx, [rsp + 0x70]
call sym.libcrypto_1_1_x64.dll_DES_encrypt1
mov edx, dword [rsp + 0x70]
lea eax, [r12 + 8]
mov r8d, dword [rsp + 0x74]
xor edx, r14d
movsxd rcx, eax
xor r8d, r13d
add rbx, rcx
add r12d, 7
cmp r12d, 7
ja case.default.0x18008cd95
lea r9, [0x180000000]
movsxd rax, r12d
mov eax, dword [r9 + rax*4 + 0x8ce14]
add rax, r9
jmp rax
dec rbx
mov eax, r8d
shr eax, 0x18
mov byte [rbx], al
dec rbx
mov eax, r8d
shr eax, 0x10
mov byte [rbx], al
dec rbx
mov eax, r8d
shr eax, 8
mov byte [rbx], al
dec rbx
mov byte [rbx], r8b
dec rbx
mov eax, edx
shr eax, 0x18
mov byte [rbx], al
dec rbx
mov eax, edx
shr eax, 0x10
mov byte [rbx], al
dec rbx
mov eax, edx
shr eax, 8
mov byte [rbx], al
mov byte [rbx - 1], dl
mov r13, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x20
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret