Function at 0x1400331c0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xb0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rsp + 0x100], rbx
mov rax, qword [0x14015a7a0]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r15, rdx
mov rsi, rcx
mov rax, qword [rdx]
lea rdx, [rbp - 0x21]
mov rcx, r15
call qword [rax + 0xa0]
mov r12, qword [rax + 8]
xor ebx, ebx
mov edi, ebx
mov rcx, rsi
call fcn.14002d2b0
cmp eax, 0xb
jne 0x14003338d
mov rcx, rsi
call fcn.140075360
test al, al
je 0x14003338d
mov r8, rsi
mov rdx, r15
mov rcx, r12
call fcn.140028390
mov r14, rax
mov rcx, rax
call fcn.14007a470
test al, al
je 0x14003338d
mov r8, rsi
mov rdx, r15
lea rcx, [rbp - 0x11]
call fcn.140025850
nop
mov r8, rsi
mov rdx, r15
lea rcx, [rbp - 0x59]
call fcn.140025850
nop
mov rcx, rsi
call fcn.140075480
mov r15, qword [rax + 0x28]
mov rcx, rsi
call fcn.140075480
mov rsi, qword [rax + 0x28]
mov rax, qword [r14]
lea rdx, [rbp - 0x11]
mov rcx, r14
call qword [rax + 0x28]
mov rax, qword [r14]
lea rdx, [rbp - 0x59]
mov rcx, r14
call qword [rax + 0x30]
mov rcx, qword [rbp - 9]
mov rax, qword [rcx]
lea r8, [rbp - 0x59]
lea rdx, [rbp - 0x11]
call qword [rax + 0x20]
test al, al
jne 0x140033322
nop
lea rdx, [rbp - 1]
mov rcx, r15
call fcn.140036460
lea rbx, [rax + 2]
lea rdx, [rbp + 0xf]
lea rcx, [rsi + 0x98]
call fcn.140036680
add rbx, rax
mov ecx, ebx
or ecx, 1
bsr edx, ecx
lea edx, [rdx + rdx*8]
add edx, 0x49
shr rdx, 6
add rdx, rbx
add rdi, rdx
mov rcx, qword [rbp - 9]
mov rax, qword [rcx]
lea rdx, [rbp - 0x11]
call qword [rax + 0x88]
mov rcx, qword [rbp - 9]
mov rax, qword [rcx]
lea r8, [rbp - 0x59]
lea rdx, [rbp - 0x11]
call qword [rax + 0x20]
test al, al
je 0x1400332c0
mov rcx, qword [rbp - 0x51]
mov rax, qword [rcx]
lea rdx, [rbp - 0x59]
call qword [rax + 0x78]
cmp dword [rbp - 0x41], 9
jne 0x140033355
mov rbx, qword [rbp - 0x49]
test rbx, rbx
je 0x140033355
mov rcx, rbx
call fcn.1400235f0
mov edx, 0x20
mov rcx, rbx
call fcn.1400d391c
nop
mov rcx, qword [rbp - 9]
mov rax, qword [rcx]
lea rdx, [rbp - 0x11]
call qword [rax + 0x78]
cmp dword [rbp + 7], 9
jne 0x140033388
mov rbx, qword [rbp - 1]
test rbx, rbx
je 0x140033388
mov rcx, rbx
call fcn.1400235f0
mov edx, 0x20
mov rcx, rbx
call fcn.1400d391c
nop
jmp case.default.0x140033401
cmp dword [rsi + 0x3c], 3
jne 0x1400333a6
mov r8, rsi
mov rdx, r15
mov rcx, r12
call fcn.1400279c0
mov r14d, eax
jmp 0x1400333db
mov rax, qword [rsi + 0x50]
mov rcx, qword [rax + 0x20]
cmp byte [rcx + 0x4b], bl
je 0x1400333bb
mov r14d, 1
jmp 0x1400333db
mov r8, rsi
mov rdx, r15
mov rcx, r12
call fcn.1400297b0
mov rcx, rbx
mov r14d, 1
test al, al
cmovne rcx, r14
mov r14, rcx
mov rcx, rsi
call fcn.14002d2b0
dec eax
cmp eax, 0x11
ja case.default.0x140033401
cdqe
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x338e8]
add rcx, rdx
jmp rcx
cmp dword [rsi + 0x3c], 3
jne 0x140033450
test r14, r14
je case.default.0x140033401
mov r9d, ebx
mov r8, rsi
mov rdx, r15
mov rcx, r12
call fcn.140028b90
test eax, eax
jns 0x14003342e
mov eax, 0xa
jmp 0x14003343e
or eax, 1
bsr eax, eax
lea eax, [rax + rax*8]
add eax, 0x49
shr rax, 6
add rdi, rax
inc ebx
movsxd rax, ebx
cmp rax, r14
jb 0x140033412
jmp case.default.0x140033401
mov r8, rsi
mov rdx, r15
mov rcx, r12
call fcn.140028210
test eax, eax
jns 0x14003346c
mov edi, 0xa
jmp case.default.0x140033401
or eax, 1
bsr eax, eax
jmp 0x1400338af
cmp dword [rsi + 0x3c], 3
jne 0x1400334c5
test r14, r14
je case.default.0x140033401
nop word [rax + rax]
mov r9d, ebx
mov r8, rsi
mov rdx, r15
mov rcx, r12
call fcn.140028c60
or rax, 1
bsr rcx, rax
lea ecx, [rcx + rcx*8]
add ecx, 0x49
shr rcx, 6
add rdi, rcx
inc ebx
movsxd rax, ebx
cmp rax, r14
jb 0x140033490
jmp case.default.0x140033401
mov r8, rsi
mov rdx, r15
mov rcx, r12
call fcn.1400282d0
or rax, 1
bsr rcx, rax
lea edi, [rcx*8 + 0x49]
add edi, ecx
jmp 0x1400338b8
cmp dword [rsi + 0x3c], 3
jne 0x14003353f
test r14, r14
je case.default.0x140033401
nop dword [rax + rax]
mov r9d, ebx
mov r8, rsi
mov rdx, r15
mov rcx, r12
call fcn.140028b90
mov ecx, eax
sar ecx, 0x1f
add eax, eax
xor ecx, eax
or ecx, 1
bsr eax, ecx
lea ecx, [rax*8 + 0x49]
add ecx, eax
shr rcx, 6
add rdi, rcx
inc ebx
movsxd rax, ebx
cmp rax, r14
jb 0x140033500
jmp case.default.0x140033401
mov r8, rsi
mov rdx, r15
mov rcx, r12
call fcn.140028210
mov ecx, eax
sar ecx, 0x1f
add eax, eax
xor ecx, eax
jmp 0x1400338a9
cmp dword [rsi + 0x3c], 3
jne 0x1400335b5
test r14, r14
je case.default.0x140033401
nop word [rax + rax]
mov r9d, ebx
mov r8, rsi
mov rdx, r15
mov rcx, r12
call fcn.140028c60
mov rcx, rax
sar rcx, 0x3f
add rax, rax
xor rcx, rax
or rcx, 1
bsr rax, rcx
lea ecx, [rax*8 + 0x49]
add ecx, eax
shr rcx, 6
add rdi, rcx
inc ebx
movsxd rax, ebx
cmp rax, r14
jb 0x140033570
jmp case.default.0x140033401
mov r8, rsi
mov rdx, r15
mov rcx, r12
call fcn.1400282d0
mov rcx, rax
sar rcx, 0x3f
add rax, rax
xor rcx, rax
or rcx, 1
bsr rax, rcx
jmp 0x1400338af
cmp dword [rsi + 0x3c], 3
jne 0x140033623
test r14, r14
je case.default.0x140033401
nop dword [rax]
mov r9d, ebx
mov r8, rsi
mov rdx, r15
mov rcx, r12
call fcn.140028fe0
or eax, 1
bsr ecx, eax
lea ecx, [rcx + rcx*8]
add ecx, 0x49
shr rcx, 6
add rdi, rcx
inc ebx
movsxd rax, ebx
cmp rax, r14
jb 0x1400335f0
jmp case.default.0x140033401
mov r8, rsi
mov rdx, r15
mov rcx, r12
call fcn.140029350
or eax, 1
bsr ecx, eax
lea edi, [rcx*8 + 0x49]
add edi, ecx
jmp 0x1400338b8
cmp dword [rsi + 0x3c], 3
jne 0x140033689
test r14, r14
je case.default.0x140033401
mov r9d, ebx
mov r8, rsi
mov rdx, r15
mov rcx, r12
call fcn.1400290b0
or rax, 1
bsr rcx, rax
lea ecx, [rcx + rcx*8]
add ecx, 0x49
shr rcx, 6
add rdi, rcx
inc ebx
movsxd rax, ebx
cmp rax, r14
jb 0x140033654
jmp case.default.0x140033401
mov r8, rsi
mov rdx, r15
mov rcx, r12
call fcn.140029410
jmp 0x1400334d3
lea rdi, [r14*4]
jmp case.default.0x140033401
lea rdi, [r14*8]
jmp case.default.0x140033401
mov rdi, r14
jmp case.default.0x140033401
cmp dword [rsi + 0x3c], 3
jne 0x1400336fc
test r14, r14
je case.default.0x140033401
nop dword [rax]
mov r9d, ebx
mov r8, rsi
mov rdx, r15
mov rcx, r12
call fcn.140028d30
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x50]
add rdi, rax
inc ebx
movsxd rax, ebx
cmp rax, r14
jb 0x1400336d0
jmp case.default.0x140033401
xor r9d, r9d
mov r8, rsi
mov rdx, r15
mov rcx, r12
call fcn.140028400
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x50]
mov rdi, rax
jmp case.default.0x140033401
cmp dword [rsi + 0x3c], 3
jne 0x14003375b
test r14, r14
je case.default.0x140033401
nop dword [rax]
mov r9d, ebx
mov r8, rsi
mov rdx, r15
mov rcx, r12
call fcn.140028d30
mov rcx, rax
call fcn.14002f130
add rdi, rax
inc ebx
movsxd rax, ebx
cmp rax, r14
jb 0x140033730
jmp case.default.0x140033401
xor r9d, r9d
mov r8, rsi
mov rdx, r15
mov rcx, r12
call fcn.140028400
mov rcx, rax
call fcn.14002f130
mov rdi, rax
jmp case.default.0x140033401
cmp dword [rsi + 0x3c], 3
jne 0x1400337d1
test r14, r14
je case.default.0x140033401
nop dword [rax + rax]
mov r9d, ebx
mov r8, rsi
mov rdx, r15
mov rcx, r12
call fcn.140028910
mov ecx, dword [rax + 0x10]
test ecx, ecx
jns 0x1400337af
mov eax, 0xa
jmp 0x1400337bf
or ecx, 1
bsr eax, ecx
lea eax, [rax + rax*8]
add eax, 0x49
shr rax, 6
add rdi, rax
inc ebx
movsxd rax, ebx
cmp rax, r14
jb 0x140033790
jmp case.default.0x140033401
mov r8, rsi
mov rdx, r15
mov rcx, r12
call fcn.140027da0
mov ecx, dword [rax + 0x10]
test ecx, ecx
js 0x140033462
jmp 0x1400338a9
mov r13d, ebx
test r14, r14
je case.default.0x140033401
nop dword [rax + rax]
mov qword [rbp - 1], rbx
mov qword [rbp + 7], 0xf
mov byte [rbp - 0x11], 0
mov r8, rsi
mov rdx, r15
mov rcx, r12
cmp dword [rsi + 0x3c], 3
jne 0x140033832
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
mov r9d, r13d
call fcn.140028f10
jmp 0x14003383b
lea r9, [rbp - 0x11]
call fcn.140029270
mov rdx, qword [rax + 0x10]
mov eax, edx
or eax, 1
bsr ecx, eax
lea ecx, [rcx + rcx*8]
add ecx, 0x49
shr rcx, 6
add rcx, rdx
add rdi, rcx
mov rax, qword [rbp + 7]
cmp rax, 0x10
jb 0x140033893
mov rcx, qword [rbp - 0x11]
inc rax
cmp rax, 0x1000
jb 0x14003388e
test cl, 0x1f
jne 0x1400338a3
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1400338a3
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
ja 0x1400338a3
mov rcx, rax
call fcn.1400d417c
inc r13d
movsxd rax, r13d
cmp rax, r14
jae case.default.0x140033401
jmp 0x140033800
call fcn.1400dac14
int3
or ecx, 1
bsr eax, ecx
lea edi, [rax*8 + 0x49]
add edi, eax
shr rdi, 6
mov rax, rdi
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400d38c0
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret