Function at 0x140161d40
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
mov eax, Ordinal_50
call fcn.1401ef830
sub rsp, rax
cmp dword [rbp + 0x58], 0
mov r11d, r8d
mov rbx, rdx
mov r14, rcx
je 0x140161ff0
mov rdi, qword [rbp + 0x50]
lea esi, [r11 - 8]
mov qword [rbp - 8], rdi
movzx r10d, byte [rdi]
movzx eax, byte [rdi + 1]
movzx r8d, byte [rdi + 4]
shl eax, 0x10
shl r10d, 0x18
or r10d, eax
shl r8d, 0x18
movzx eax, byte [rdi + 2]
shl eax, 8
or r10d, eax
movzx eax, byte [rdi + 3]
or r10d, eax
movzx eax, byte [rdi + 5]
shl eax, 0x10
or r8d, eax
movzx eax, byte [rdi + 6]
shl eax, 8
or r8d, eax
movzx eax, byte [rdi + 7]
or r8d, eax
test esi, esi
js 0x140161eae
mov rdi, qword [rbp + 0x48]
lea r15d, [rsi + 8]
shr r15, 3
mov eax, r15d
neg eax
lea esi, [rsi + rax*8]
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r14]
movzx eax, byte [r14 + 1]
movzx ecx, byte [r14 + 4]
shl eax, 0x10
shl edx, 0x18
or edx, eax
shl ecx, 0x18
movzx eax, byte [r14 + 2]
shl eax, 8
or edx, eax
movzx eax, byte [r14 + 3]
or edx, eax
movzx eax, byte [r14 + 5]
shl eax, 0x10
xor edx, r10d
or ecx, eax
mov dword [rbp - 0x10], edx
movzx eax, byte [r14 + 6]
mov rdx, rdi
shl eax, 8
or ecx, eax
movzx eax, byte [r14 + 7]
or ecx, eax
add r14, 8
xor ecx, r8d
mov dword [rbp - 0xc], ecx
lea rcx, [rbp - 0x10]
call fcn.1401613a0
mov r10d, dword [rbp - 0x10]
mov eax, r10d
mov r8d, dword [rbp - 0xc]
shr eax, 0x18
mov byte [rbx], al
mov eax, r10d
shr eax, 0x10
mov byte [rbx + 1], al
mov eax, r10d
shr eax, 8
mov byte [rbx + 2], al
movzx eax, r10b
mov byte [rbx + 3], al
mov eax, r8d
shr eax, 0x18
mov byte [rbx + 4], al
mov eax, r8d
shr eax, 0x10
mov byte [rbx + 5], al
mov eax, r8d
shr eax, 8
mov byte [rbx + 6], al
movzx eax, r8b
mov byte [rbx + 7], al
add rbx, 8
sub r15, 1
jne 0x140161df0
mov rdi, qword [rbp - 8]
cmp esi, 0xfffffff8
je 0x140161fa2
lea eax, [rsi + 8]
add esi, 7
movsxd rcx, eax
add r14, rcx
xor ecx, ecx
mov edx, ecx
cmp esi, 7
ja case.default.0x140161ee1
lea r9, [0x140000000]
movsxd rax, esi
mov eax, dword [r9 + rax*4 + 0x162270]
add rax, r9
jmp rax
movzx ecx, byte [r14 - 1]
dec r14
movzx eax, byte [r14 - 1]
dec r14
shl eax, 8
or ecx, eax
movzx eax, byte [r14 - 1]
dec r14
shl eax, 0x10
or ecx, eax
movzx eax, byte [r14 - 1]
dec r14
shl eax, 0x18
or ecx, eax
movzx edx, byte [r14 - 1]
dec r14
movzx eax, byte [r14 - 1]
dec r14
shl eax, 8
or edx, eax
movzx eax, byte [r14 - 1]
dec r14
shl eax, 0x10
or edx, eax
movzx eax, byte [r14 - 1]
shl eax, 0x18
or edx, eax
xor edx, r10d
xor ecx, r8d
mov dword [rbp - 0x10], edx
mov rdx, qword [rbp + 0x48]
mov dword [rbp - 0xc], ecx
lea rcx, [rbp - 0x10]
call fcn.1401613a0
mov r10d, dword [rbp - 0x10]
mov eax, r10d
mov r8d, dword [rbp - 0xc]
shr eax, 0x18
mov byte [rbx], al
mov eax, r10d
shr eax, 0x10
mov byte [rbx + 1], al
mov eax, r10d
shr eax, 8
mov byte [rbx + 2], al
movzx eax, r10b
mov byte [rbx + 3], al
mov eax, r8d
shr eax, 0x18
mov byte [rbx + 4], al
mov eax, r8d
shr eax, 0x10
mov byte [rbx + 5], al
mov eax, r8d
shr eax, 8
mov byte [rbx + 6], al
movzx eax, r8b
mov byte [rbx + 7], al
mov eax, r10d
shr eax, 0x18
mov byte [rdi], al
mov eax, r10d
shr eax, 0x10
mov byte [rdi + 1], al
mov eax, r10d
shr eax, 8
mov byte [rdi + 2], al
mov eax, r8d
shr eax, 0x18
mov byte [rdi + 3], r10b
mov byte [rdi + 4], al
mov eax, r8d
shr eax, 0x10
mov byte [rdi + 5], al
mov eax, r8d
shr eax, 8
mov byte [rdi + 6], al
mov byte [rdi + 7], r8b
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov r15, qword [rbp + 0x50]
lea edi, [r8 - 8]
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r13
mov qword [rbp - 8], r15
movzx r12d, byte [r15]
movzx eax, byte [r15 + 1]
movzx r13d, byte [r15 + 4]
shl eax, 0x10
shl r12d, 0x18
or r12d, eax
shl r13d, 0x18
movzx eax, byte [r15 + 2]
shl eax, 8
or r12d, eax
movzx eax, byte [r15 + 3]
or r12d, eax
movzx eax, byte [r15 + 5]
shl eax, 0x10
or r13d, eax
movzx eax, byte [r15 + 6]
shl eax, 8
or r13d, eax
movzx eax, byte [r15 + 7]
or r13d, eax
test edi, edi
js 0x14016212b
lea r15d, [rdi + 8]
shr r15, 3
mov eax, r15d
neg eax
lea edi, [rdi + rax*8]
mov dword [rbp + 0x58], edi
nop
movzx eax, byte [r14 + 1]
lea rcx, [rbp - 0x10]
movzx esi, byte [r14]
mov rdx, r9
movzx edi, byte [r14 + 4]
shl eax, 0x10
shl esi, 0x18
or esi, eax
shl edi, 0x18
movzx eax, byte [r14 + 2]
shl eax, 8
or esi, eax
movzx eax, byte [r14 + 3]
or esi, eax
movzx eax, byte [r14 + 5]
shl eax, 0x10
or edi, eax
mov dword [rbp - 0x10], esi
movzx eax, byte [r14 + 6]
shl eax, 8
or edi, eax
movzx eax, byte [r14 + 7]
or edi, eax
add r14, 8
mov dword [rbp - 0xc], edi
call fcn.140161870
mov ecx, dword [rbp - 0x10]
mov edx, dword [rbp - 0xc]
xor ecx, r12d
mov r9, qword [rbp + 0x48]
xor edx, r13d
mov eax, ecx
mov r12d, esi
shr eax, 0x18
mov r13d, edi
mov byte [rbx], al
mov eax, ecx
shr eax, 0x10
mov byte [rbx + 1], al
mov eax, ecx
shr eax, 8
mov byte [rbx + 2], al
mov eax, edx
shr eax, 0x18
mov byte [rbx + 3], cl
mov byte [rbx + 4], al
mov eax, edx
shr eax, 0x10
mov byte [rbx + 5], al
mov eax, edx
shr eax, 8
mov byte [rbx + 6], al
mov byte [rbx + 7], dl
add rbx, 8
sub r15, 1
jne 0x140162070
mov r15, qword [rbp - 8]
mov edi, dword [rbp + 0x58]
cmp edi, 0xfffffff8
je 0x14016220f
movzx eax, byte [r14 + 1]
movzx edx, byte [r14 + 4]
movzx ecx, byte [r14 + 6]
movzx esi, byte [r14]
shl eax, 0x10
shl edx, 0x18
shl esi, 0x18
or esi, eax
shl ecx, 8
movzx eax, byte [r14 + 2]
shl eax, 8
or esi, eax
movzx eax, byte [r14 + 3]
or esi, eax
movzx eax, byte [r14 + 5]
shl eax, 0x10
or edx, eax
mov dword [rbp - 0x10], esi
movzx eax, byte [r14 + 7]
or ecx, eax
or edx, ecx
lea rcx, [rbp - 0x10]
mov dword [rbp + 0x58], edx
mov dword [rbp - 0xc], edx
mov rdx, r9
call fcn.140161870
mov edx, dword [rbp - 0x10]
lea eax, [rdi + 8]
mov r8d, dword [rbp - 0xc]
xor edx, r12d
movsxd rcx, eax
xor r8d, r13d
add rbx, rcx
add edi, 7
cmp edi, 7
ja case.default.0x1401621c1
lea r9, [0x140000000]
movsxd rax, edi
mov eax, dword [r9 + rax*4 + 0x162290]
add rax, r9
jmp rax
dec rbx
mov byte [rbx], r8b
dec rbx
mov eax, r8d
shr eax, 8
mov byte [rbx], al
dec rbx
mov eax, r8d
shr eax, 0x10
mov byte [rbx], al
dec rbx
shr r8d, 0x18
mov byte [rbx], r8b
dec rbx
mov byte [rbx], dl
dec rbx
mov eax, edx
shr eax, 8
mov byte [rbx], al
dec rbx
mov eax, edx
shr eax, 0x10
mov byte [rbx], al
shr edx, 0x18
mov byte [rbx - 1], dl
mov r13d, dword [rbp + 0x58]
mov r12d, esi
mov rbx, qword [rsp + 0x70]
mov eax, r12d
shr eax, 0x18
mov byte [r15], al
mov eax, r12d
shr eax, 0x10
mov byte [r15 + 1], al
mov eax, r12d
shr eax, 8
mov byte [r15 + 2], al
mov eax, r13d
shr eax, 0x18
mov byte [r15 + 3], r12b
mov r12, qword [rsp + 0x60]
mov byte [r15 + 4], al
mov eax, r13d
shr eax, 0x10
mov byte [r15 + 5], al
mov eax, r13d
shr eax, 8
mov byte [r15 + 6], al
mov byte [r15 + 7], r13b
mov r13, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret