Function at 0x140004f40
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r13
push r14
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x1401310c8]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rsi, qword [rbp + 0x1b0]
xor ebx, ebx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x38], r8d
movsx r10d, byte [rsi + 1]
movsx eax, word [rsi + 2]
movzx r13d, byte [rsi]
add eax, 0x3f
cdq
mov byte [rsp + 0x31], r13b
and edx, 0x3f
mov edi, r10d
add eax, edx
mov edx, r10d
sar eax, 6
movsx ecx, al
mov r8d, eax
dec ecx
mov dword [rsp + 0x34], eax
movsxd rcx, ecx
lea r14, [rcx*8]
mov qword [rbp + r14 - 0x50], rbx
mov qword [rbp + r14 + 0x70], rbx
mov qword [rbp + r14 - 0x70], rbx
test r10b, r10b
je 0x140005006
lea rcx, [rbp + 0x70]
mov r8, r9
add rcx, rdi
lea rax, [rbp + 0x70]
sub r8, rax
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r8 + rcx - 1]
lea rcx, [rcx - 1]
mov byte [rcx], al
add edi, 0xffffffff
jne 0x140004ff0
mov r8d, dword [rsp + 0x34]
movsx rdi, r10b
add rdi, r9
test edx, edx
je 0x140005030
lea rcx, [rbp - 0x70]
add rcx, rdx
lea rax, [rbp - 0x70]
sub rdi, rax
nop
movzx eax, byte [rdi + rcx - 1]
lea rcx, [rcx - 1]
mov byte [rcx], al
add edx, 0xffffffff
jne 0x140005020
mov qword [rsp + 0x290], r12
mov rcx, rbx
test r13b, r13b
jle 0x140005834
movzx r12d, r13b
lea rax, [rbp + 0x70]
mov edx, r12d
nop
or rcx, qword [rax]
lea rax, [rax + 8]
sub rdx, 1
jne 0x140005050
test rcx, rcx
je 0x140005834
mov rcx, rbx
lea rax, [rbp - 0x70]
mov rdx, r12
or rcx, qword [rax]
lea rax, [rax + 8]
sub rdx, 1
jne 0x140005070
test rcx, rcx
je 0x140005834
mov qword [rsp + 0x298], r15
movzx r15d, r8b
sub r15b, 1
mov byte [rsp + 0x30], r15b
movzx ecx, r15b
js 0x1400050bb
movsx rax, cl
mov rdx, qword [rsi + rax*8 + 0x28]
mov rax, qword [rbp + rax*8 + 0x70]
cmp rdx, rax
ja 0x1400050f3
jb 0x1400050bb
sub cl, 1
jns 0x1400050a1
xor eax, eax
mov r15, qword [rsp + 0x298]
mov r12, qword [rsp + 0x290]
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1400784c0
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x260
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
movzx ecx, r15b
test r15b, r15b
js 0x1400050bb
nop dword [rax]
movsx rax, cl
mov rdx, qword [rsi + rax*8 + 0x28]
mov rax, qword [rbp + rax*8 - 0x70]
cmp rdx, rax
ja 0x14000511c
jb 0x1400050bb
sub cl, 1
jns 0x140005100
jmp 0x1400050bb
movzx r9d, r8b
lea rdx, [rbp - 0x70]
lea r8, [rsi + 0x28]
lea rcx, [rsp + 0x70]
call fcn.1400036b0
mov r8d, dword [rsp + 0x38]
lea rcx, [rbp - 0x70]
mov rdx, qword [rsp + 0x48]
mov r9, rsi
mov qword [rbp + r14 - 0x70], rbx
call fcn.140004df0
mov r14d, dword [rsp + 0x34]
lea r8, [rsp + 0x70]
movzx r9d, r14b
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0xd0]
call fcn.140002d70
movzx r9d, r14b
lea r8, [rsi + 0x28]
lea rdx, [rbp + 0xd0]
lea rcx, [rbp - 0x70]
call fcn.140003390
movzx r9d, r14b
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0xd0]
call fcn.140002d70
movzx r9d, r14b
lea r8, [rsi + 0x28]
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0xb0]
call fcn.140003390
mov rdx, qword [rsp + 0x40]
lea rcx, [rbp + 0x110]
mov r8, r12
shl r8, 3
call fcn.14009b2c0
mov rdx, qword [rsp + 0x40]
lea r14, [rbp + 0x110]
movsx rdi, r13b
mov r8, r12
shl r8, 3
lea rcx, [rdi*8]
add r14, rcx
mov qword [rsp + 0x38], rcx
add rdx, rcx
mov rcx, r14
call fcn.14009b2c0
mov r8, r12
lea rdx, [rsi + 0x48]
shl r8, 3
lea rcx, [rbp - 0x10]
call fcn.14009b2c0
add rdi, 9
lea rcx, [rbp + 0x50]
mov r8, r12
shl r8, 3
lea rdx, [rsi + rdi*8]
call fcn.14009b2c0
mov rcx, rbx
mov r8, r12
mov rdi, rbx
nop word [rax + rax]
mov rdx, qword [rbp + rcx + 0x110]
mov rax, rdx
sub rax, qword [rbp + rcx - 0x10]
sub rax, rdi
cmp rax, rdx
je 0x14000525f
mov rdi, rbx
seta dil
mov qword [rsp + rcx + 0x70], rax
add rcx, 8
sub r8, 1
jne 0x140005240
test rdi, rdi
je 0x1400052b7
lea rdx, [rsp + 0x70]
mov r9, rsi
sub r9, rdx
lea rcx, [rsp + 0x70]
mov rdi, rbx
mov r8, r12
nop dword [rax]
mov rdx, qword [rcx]
mov rax, qword [r9 + rcx + 8]
add rax, rdi
add rax, rdx
cmp rax, rdx
je 0x1400052aa
mov rdi, rbx
setb dil
mov qword [rcx], rax
add rcx, 8
sub r8, 1
jne 0x140005290
mov r9, r14
mov qword [rsp + 0x20], rsi
lea r8, [rbp + 0x110]
lea rdx, [rbp + 0x50]
lea rcx, [rbp - 0x10]
call fcn.1400048d0
lea r8, [rsi + 8]
movzx r9d, r13b
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.1400036b0
mov r9, rsi
lea r8, [rsp + 0x70]
mov rdx, r14
lea rcx, [rbp + 0x110]
call fcn.1400047f0
mov qword [rsp + 0x50], rbx
lea rax, [rsi + 0x48]
mov qword [rsp + 0x58], rax
movzx ecx, r15b
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x110]
mov qword [rsp + 0x68], rax
test r15b, r15b
js 0x140005343
nop
movsx rax, cl
cmp qword [rbp + rax*8 + 0xb0], rbx
jne 0x140005343
sub cl, 1
jns 0x140005330
add cl, 1
jne 0x14000534e
movzx r14d, bx
jmp 0x14000537f
movsx eax, cl
dec eax
cdqe
mov rdx, qword [rbp + rax*8 + 0xb0]
mov rax, rbx
test rdx, rdx
je 0x14000536d
inc rax
shr rdx, 1
jne 0x140005365
movsx r14d, cl
shl r14w, 6
sub r14w, 0x40
add r14w, ax
movzx ecx, r15b
test r15b, r15b
js 0x1400053a0
nop dword [rax + rax]
movsx rax, cl
cmp qword [rbp + rax*8 - 0x70], rbx
jne 0x1400053a0
sub cl, 1
jns 0x140005390
add cl, 1
jne 0x1400053aa
movzx ecx, bx
jmp 0x1400053d6
movsx eax, cl
dec eax
cdqe
mov rdx, qword [rbp + rax*8 - 0x70]
mov rax, rbx
test rdx, rdx
je 0x1400053c8
nop
inc rax
shr rdx, 1
jne 0x1400053c0
movsx ecx, cl
shl cx, 6
sub cx, 0x40
add cx, ax
cmp cx, r14w
mov edi, 1
cmovg r14w, cx
lea edx, [r14 - 1]
movsx ecx, dx
and ecx, 0x3f
movsx rax, dx
sar rax, 6
shl rdi, cl
lea rcx, [rax*8]
mov rax, qword [rbp + rcx + 0xb0]
and rax, rdi
neg rax
mov rax, rbx
sbb rdx, rdx
and edx, 2
test qword [rbp + rcx - 0x70], rdi
lea rcx, [rbp - 0x50]
setne al
or rdx, rax
lea rax, [rbp - 0x50]
mov r8, qword [rsp + rdx*8 + 0x50]
mov rdx, r12
mov rdi, r8
sub rdi, rax
nop dword [rax]
mov rax, qword [rdi + rcx]
mov qword [rcx], rax
lea rcx, [rcx + 8]
sub rdx, 1
jne 0x140005440
mov rdi, qword [rsp + 0x38]
lea rdx, [rbp + 0x90]
sub rdi, rdx
lea rcx, [rbp + 0x90]
add rdi, r8
mov rdx, r12
nop dword [rax]
mov rax, qword [rdi + rcx]
mov qword [rcx], rax
lea rcx, [rcx + 8]
sub rdx, 1
jne 0x140005470
xor eax, eax
lea rdi, [rsp + 0x70]
sub r14w, 2
mov rcx, r12
rep stosq qword [rdi], rax
mov qword [rsp + 0x70], 1
js 0x1400056e6
mov r15, qword [rsp + 0x38]
movsx r13, r14w
nop dword [rax + rax]
mov r9, rsi
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x50]
call qword [rsi + 0xa8]
movsx ecx, r14w
mov rax, r13
sar rax, 6
and ecx, 0x3f
mov edi, 1
shl rdi, cl
lea rcx, [rax*8]
mov rax, qword [rbp + rcx + 0xb0]
and rax, rdi
neg rax
mov rax, rbx
sbb rdx, rdx
and edx, 2
test qword [rbp + rcx - 0x70], rdi
setne al
or rdx, rax
mov r8, qword [rsp + rdx*8 + 0x50]
test r8, r8
je 0x1400056cc
lea rax, [rbp - 0x10]
mov rdi, r8
sub rdi, rax
lea rcx, [rbp - 0x10]
mov rdx, r12
nop dword [rax + rax]
mov rax, qword [rdi + rcx]
mov qword [rcx], rax
lea rcx, [rcx + 8]
sub rdx, 1
jne 0x140005530
lea rdx, [rbp + 0x50]
mov rdi, r15
sub rdi, rdx
lea rcx, [rbp + 0x50]
add rdi, r8
mov rdx, r12
nop word [rax + rax]
mov rax, qword [rdi + rcx]
mov qword [rcx], rax
lea rcx, [rcx + 8]
sub rdx, 1
jne 0x140005560
movzx r8d, byte [rsi]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x10]
call fcn.140003000
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x30]
call qword [rsi + 0xb8]
movzx r9d, byte [rsi]
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x10]
call fcn.140002d70
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x10]
call qword [rsi + 0xb8]
movzx r9d, byte [rsi]
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x10]
call fcn.140002d70
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x30]
call qword [rsi + 0xb8]
movzx r9d, byte [rsi]
lea r8, [rbp - 0x30]
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x10]
call fcn.140002d70
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x50]
call qword [rsi + 0xb8]
mov rcx, rbx
mov r8, r12
mov rdi, rbx
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [rbp + rcx - 0x50]
mov rax, rdx
sub rax, qword [rbp + rcx - 0x10]
sub rax, rdi
cmp rax, rdx
je 0x14000562c
mov rdi, rbx
seta dil
mov qword [rbp + rcx + 0xd0], rax
add rcx, 8
sub r8, 1
jne 0x140005610
test rdi, rdi
je 0x140005687
lea rdx, [rbp + 0xd0]
mov r9, rsi
sub r9, rdx
lea rcx, [rbp + 0xd0]
mov rdi, rbx
mov r8, r12
nop dword [rax]
mov rdx, qword [rcx]
mov rax, qword [r9 + rcx + 8]
add rax, rdx
add rax, rdi
cmp rax, rdx
je 0x14000567a
mov rdi, rbx
setb dil
mov qword [rcx], rax
add rcx, 8
sub r8, 1
jne 0x140005660
lea r9, [rbp + 0x90]
mov qword [rsp + 0x20], rsi
lea r8, [rbp - 0x50]
lea rdx, [rbp + 0x50]
lea rcx, [rbp - 0x10]
call fcn.1400048d0
movzx r9d, byte [rsi]
lea r8, [rbp + 0xd0]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x10]
call fcn.140002d70
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x70]
call qword [rsi + 0xb8]
dec r13
sub r14w, 1
jns 0x1400054b0
movzx r15d, byte [rsp + 0x30]
movzx r13d, byte [rsp + 0x31]
movzx r9d, r13b
lea r8, [rsi + 8]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.1400036b0
movzx r8d, byte [rsi]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x10]
call fcn.140003000
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x30]
call qword [rsi + 0xb8]
movzx r9d, byte [rsi]
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x10]
call fcn.140002d70
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x50]
call qword [rsi + 0xb8]
movzx r9d, byte [rsi]
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x10]
call fcn.140002d70
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x30]
call qword [rsi + 0xb8]
movzx r9d, byte [rsi]
lea r8, [rbp - 0x30]
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0x10]
call fcn.140002d70
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x90]
call qword [rsi + 0xb8]
test r15b, r15b
js 0x1400057ad
movsx rax, r15b
mov rcx, qword [rsi + rax*8 + 0x28]
mov rdx, qword [rbp + rax*8 - 0x50]
cmp rcx, rdx
ja 0x1400057f7
jb 0x1400057ad
sub r15b, 1
jns 0x140005792
mov eax, dword [rsp + 0x34]
mov rdi, rbx
test al, al
jle 0x1400057f7
lea rdx, [rbp - 0x50]
movzx r8d, al
sub rsi, rdx
lea rcx, [rbp - 0x50]
nop word [rax + rax]
mov rdx, qword [rcx]
mov rax, rdx
sub rax, qword [rsi + rcx + 0x28]
sub rax, rdi
cmp rax, rdx
je 0x1400057ea
mov rdi, rbx
seta dil
mov qword [rcx], rax
add rcx, 8
sub r8, 1
jne 0x1400057d0
sub r13b, 1
mov rdx, rbx
js 0x140005827
movsx rax, r13b
shl rax, 3
nop dword [rax + rax]
mov rcx, qword [rbp + rax + 0x70]
xor rcx, qword [rbp + rax - 0x50]
lea rax, [rax - 8]
or rdx, rcx
sub r13b, 1
jns 0x140005810
test rdx, rdx
sete bl
mov eax, ebx
jmp 0x1400050bd
xor eax, eax
jmp 0x1400050c5