Function at 0x140050e70
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov edi, r9d
mov bpl, r8b
mov rbx, rdx
mov rsi, rcx
cmp edi, 0xfb
jb 0x140050eb1
mov r15, rbx
add r15, 0x10
mov r14, qword [rbx + 0x10]
cmp qword [rbx], r14
sete al
cmp edi, 0x10000
jb 0x140050fc9
jmp 0x140050ef7
mov r14, rbx
add r14, 0x10
mov rdx, qword [rbx + 0x10]
cmp qword [rbx], rdx
je 0x140050ec3
jmp 0x140050ee3
mov rcx, rbx
mov r8d, 1
mov r9d, 1
mov qword [rsp + 0x20], 1
call fcn.140053080
mov rdx, qword [r14]
mov rax, qword [rbx + 8]
mov byte [rax + rdx], dil
add rdx, 1
mov qword [r14], rdx
jmp 0x140051146
test al, 1
jne 0x140050efd
jmp 0x140050f20
mov rcx, rbx
mov rdx, r14
mov r8d, 1
mov r9d, 1
mov qword [rsp + 0x20], 1
call fcn.140053080
mov r14, qword [r15]
mov r12, rbx
add r12, 8
mov rax, qword [rbx + 8]
mov byte [rax + r14], 0xfc
add r14, 1
mov qword [r15], r14
test bpl, 1
jne 0x140050f82
mov rcx, qword [rbx]
sub rcx, r14
cmp rcx, 4
jb 0x140050f4b
jmp 0x140050f72
mov rcx, rbx
mov rdx, r14
mov r8d, 4
mov r9d, 1
mov qword [rsp + 0x20], 1
call fcn.140053080
mov r14, qword [r15]
mov rax, qword [r12]
mov dword [rax + r14], edi
add r14, 4
mov qword [r15], r14
jmp 0x140051146
bswap edi
mov rcx, qword [rbx]
sub rcx, r14
cmp rcx, 4
jb 0x140050f92
jmp 0x140050fb9
mov rcx, rbx
mov rdx, r14
mov r8d, 4
mov r9d, 1
mov qword [rsp + 0x20], 1
call fcn.140053080
mov r14, qword [r15]
mov rax, qword [r12]
mov dword [rax + r14], edi
add r14, 4
mov qword [r15], r14
jmp 0x140051146
test al, 1
jne 0x140050fd2
mov rcx, r14
jmp 0x14005104d
mov eax, dword [0x1400d6310]
imul eax, dword [0x1400d6314]
and eax, 0xbc40dd32
imul eax, eax, 0xb8d14895
mov ecx, 0x7260ad05
xor edx, edx
div ecx
cmp eax, 0xd4bc67a
ja 0x14005115f
jmp 0x140051000
mov eax, dword [0x1400d6318]
sub eax, dword [0x1400d631c]
xor eax, 0xe4e9a0c8
imul r12d, eax, 0xa5869c14
add r12d, 0x625aa0e6
mov rcx, rbx
mov rdx, r14
mov r8d, 1
mov r9d, 1
mov qword [rsp + 0x20], 1
call fcn.140053080
mov rcx, qword [r15]
cmp r12d, 0xc50891a5
je 0x140051000
jmp 0x14005104d
mov eax, dword [str.:d_a__t]
xor edx, edx
div dword [0x1400d6324]
mov r8d, 0xcda5e50f
xor edx, edx
div r8d
add eax, 0xab013924
sub eax, 0x2ac4cab7
cmp eax, 0x39759803
je 0x14005118c
mov eax, dword [0x1400d6328]
and eax, dword [0x1400d632c]
and eax, 0xb5559a75
imul r8d, eax, 0x904d34ad
and r8d, 0x559906de
mov r14, rbx
add r14, 8
mov rax, qword [rbx + 8]
mov byte [rax + rcx], 0xfb
mov rdx, rcx
add rdx, 1
mov qword [r15], rdx
cmp r8d, 0x5b229777
jae 0x14005118c
test bpl, 1
jne 0x140051106
jmp 0x1400510c8
mov rcx, qword [rbx]
sub rcx, rdx
cmp rcx, 2
jb 0x1400510d6
jmp 0x1400510f9
mov rcx, rbx
mov r8d, 2
mov r9d, 1
mov qword [rsp + 0x20], 1
call fcn.140053080
mov rdx, qword [r15]
mov rax, qword [r14]
mov word [rax + rdx], di
add rdx, 2
mov qword [r15], rdx
jmp 0x140051146
rol di, 8
mov rcx, qword [rbx]
sub rcx, rdx
cmp rcx, 2
jb 0x140051118
jmp 0x14005113b
mov rcx, rbx
mov r8d, 2
mov r9d, 1
mov qword [rsp + 0x20], 1
call fcn.140053080
mov rdx, qword [r15]
mov rax, qword [r14]
mov word [rax + rdx], di
add rdx, 2
mov qword [r15], rdx
mov qword [rsi], 8
mov rax, rsi
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
invalid
or byte [rbx - 0x49], 0xc
mov edx, 0x48a8428d
mov eax, dword [rbx + 8]
mov byte [rax + rcx], 0xfb
mov rax, rcx
add rax, 1
mov qword [r15], rax
jmp 0x14005107b