Function at 0x140108570
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov qword [rsp + 8], r9
mov rsi, qword [rdx]
test rsi, rsi
je 0x140108c97
mov rax, qword [rdx + 8]
test rax, rax
je 0x140108c97
mov rbx, rcx
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x140108c97
add rcx, rsi
jb 0x140108c97
mov r10, rsi
sub r10, rax
jb 0x140108c97
cmp qword [rsp + 8], 0x11
jb 0x140108c97
mov rax, rcx
shr rax, 0x3d
jne 0x140108c97
mov rbp, r8
mov eax, dword [rdx + 0x18]
mov rdx, rcx
shr rdx, 0x20
mov r8, rcx
shl r8, 0x20
lea r9d, [rax - 0x20]
test rdx, rdx
cmovne r8, rcx
cmovne r9d, eax
mov rcx, r8
shr rcx, 0x30
mov rdx, r8
shl rdx, 0x10
lea r11d, [r9 - 0x10]
test rcx, rcx
cmovne rdx, r8
cmovne r11d, r9d
mov rcx, rdx
shr rcx, 0x38
mov r8, rdx
shl r8, 8
lea r9d, [r11 - 8]
test rcx, rcx
cmovne r8, rdx
cmovne r9d, r11d
mov rcx, r8
shr rcx, 0x3c
mov rdi, r8
shl rdi, 4
test rcx, rcx
cmovne rdi, r8
lea ecx, [r9 - 4]
cmovne ecx, r9d
mov r8, rdi
shr r8, 0x3e
lea rdx, [rdi*4]
lea r11d, [rcx - 2]
test r8, r8
cmovne rdx, rdi
cmovne r11d, ecx
xor ecx, ecx
test rdx, rdx
setns cl
shl rdx, cl
sub r11d, ecx
sub ax, r11w
js 0x140108c97
and eax, 0x3f
mov r8, 0xffffffffffffffff
mov ecx, eax
shr r8, cl
cmp r10, r8
ja 0x140108c97
mov ecx, eax
shl r10, cl
cmp rsi, r8
ja 0x140108c97
mov ecx, 0xffffffa0
sub ecx, r11d
movsx ecx, cx
lea ecx, [rcx + rcx*4]
shl ecx, 4
add ecx, 0x153b0
movsxd rcx, ecx
imul r8, rcx, 0x7b4dc993
mov rcx, r8
shr rcx, 0x3f
sar r8, 0x2a
add r8d, ecx
cmp r8d, 0x51
jae 0x140108c97
mov qword [rsp + 0x20], rbx
mov ecx, eax
shl rsi, cl
mov eax, r8d
shl rax, 4
lea r8, [0x1401c7ea8]
mov rbx, qword [rax + r8]
movzx ecx, word [rax + r8 + 0xa]
mov dword [rsp], ecx
mov rdi, rdx
shr rdi, 0x20
mov edx, edx
mov rcx, rsi
mov esi, ebx
shr rbx, 0x20
mov r15, rbx
imul r15, rdx
mov r12, rsi
imul r12, rdi
imul rdx, rsi
shr rdx, 0x20
mov r9d, r12d
add r9, rdx
mov r13d, r15d
add r11w, word [rax + r8 + 8]
add r13, r9
mov r8, r10
shr r8, 0x20
mov eax, r10d
mov rdx, rbx
imul rdx, r8
mov qword [rsp + 0x30], rdx
mov r14, rbx
imul r14, rax
imul r8, rsi
imul rax, rsi
shr rax, 0x20
mov edx, r8d
add rdx, rax
mov eax, r14d
add rax, rdx
mov r9, rcx
shr r9, 0x20
mov edx, ecx
mov r10, rbx
imul r10, rdx
mov rcx, rsi
imul rcx, r9
imul rsi, rdx
shr rsi, 0x20
mov edx, ecx
add rdx, rsi
mov esi, r10d
add rsi, rdx
mov rdx, rbx
imul rdx, rdi
sub r13, 0xffffffff80000000
shr r12, 0x20
shr r15, 0x20
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x48], rdx
add rdx, r12
add rdx, r15
shr r13, 0x20
neg r11d
sub rax, 0xffffffff80000000
shr r8, 0x20
mov r12, r8
shr r14, 0x20
shr rax, 0x20
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x60], r9
imul rbx, r9
sub rsi, 0xffffffff80000000
shr rcx, 0x20
mov qword [rsp + 0x58], rcx
add rbx, rcx
shr r10, 0x20
lea r9, [rdx + r13]
add rdx, r13
inc rdx
and r11d, 0x3f
mov qword [rsp + 0x10], rdx
mov ecx, r11d
shr rdx, cl
mov r8d, 1
shl r8, cl
mov qword [rsp + 0x50], r10
add rbx, r10
mov qword [rsp + 0x28], rbx
shr rsi, 0x20
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x90], r8
lea rcx, [r8 - 1]
mov qword [rsp + 0x40], rcx
cmp edx, 0x2710
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x68], r13
jae 0x140108896
cmp edx, 0x64
jae 0x1401088c0
xor ecx, ecx
cmp edx, 0xa
setae cl
lea r15d, [rcx + rcx*8]
inc r15d
mov r10d, dword [rsp]
jmp 0x140108928
cmp edx, 0xf4240
jae 0x1401088e2
cmp edx, 0x186a0
setb cl
mov r8d, 0x2710
mov r15d, 0x186a0
cmovb r15d, r8d
xor cl, 5
mov r10d, dword [rsp]
jmp 0x140108928
cmp edx, 0x3e8
setb cl
mov r8d, 0x64
mov r15d, 0x3e8
cmovb r15d, r8d
xor cl, 3
mov r10d, dword [rsp]
jmp 0x140108928
cmp edx, 0x5f5e100
mov r10d, dword [rsp]
jae 0x14010890c
cmp edx, 0x989680
setb cl
mov r8d, 0xf4240
mov r15d, 0x989680
cmovb r15d, r8d
xor cl, 7
jmp 0x140108928
cmp edx, 0x3b9aca00
setb cl
mov r8d, 0x5f5e100
mov r15d, 0x3b9aca00
cmovb r15d, r8d
xor cl, 9
mov r8, qword [rsp + 0x38]
add qword [rsp + 0x28], r8
mov rdi, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x40]
and rdi, rbx
movzx r8d, cl
mov ecx, r8d
sub ecx, r10d
inc ecx
mov dword [rsp + 0x1c], ecx
mov rsi, r12
add rsi, qword [rsp + 0x30]
add rsi, r14
add rsi, rax
mov qword [rsp + 0x30], rsi
sub r9, rsi
mov qword [rsp], r9
add r9, 2
mov r10, r9
and r10, rbx
xor r14d, r14d
mov r13d, 0xcccccccd
nop dword [rax]
mov eax, edx
xor edx, edx
div r15d
cmp qword [rsp + 8], r14
je 0x140108c97
add al, 0x30
mov r12d, edx
mov ecx, r11d
shl r12, cl
mov rbx, rbp
mov byte [rbp + r14], al
lea rbp, [r12 + rdi]
mov rsi, r9
sub rsi, rbp
ja 0x1401089d9
cmp r8, r14
je 0x140108ae8
mov eax, r15d
imul rax, r13
shr rax, 0x23
inc r14
cmp r15d, 0xa
mov r15d, eax
mov rbp, rbx
jae 0x140108980
jmp 0x140108c97
mov edx, r15d
mov ecx, r11d
shl rdx, cl
cmp r14, qword [rsp + 8]
jae 0x140108c97
mov r8, qword [rsp + 0x10]
sub r8, qword [rsp + 0x28]
lea r9, [r8 + 1]
dec r8
cmp rsi, rdx
setae r11b
mov qword [rsp + 0x10], r8
cmp r8, rbp
mov rcx, qword [rsp]
jbe 0x140108bea
cmp rsi, rdx
jb 0x140108bea
mov qword [rsp + 8], r9
mov rsi, qword [rsp + 0x78]
mov r13, qword [rsp + 0x70]
lea r9, [rsi + r13]
mov rbp, qword [rsp + 0x68]
add r9, rbp
add r9, qword [rsp + 0x48]
mov r10, r9
sub r10, qword [rsp + 0x28]
sub r10, r12
sub r10, rdi
sub r9, qword [rsp + 0x30]
lea r8, [rdi + rdx]
sub r9, r8
sub r9, r12
mov r15, qword [rsp + 0x58]
add r15, r8
add r15, qword [rsp + 0x50]
add r15, qword [rsp + 0x38]
mov r11, qword [rsp + 0x60]
sub r11, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
imul rcx, r11
add rcx, r15
sub rcx, r13
sub rcx, rsi
sub rcx, rbp
add r9, 2
mov r13, rbx
mov rbp, qword [rsp + 0x10]
lea r15, [r12 + r8]
cmp r15, rbp
jb 0x140108ab6
lea r11, [r12 + rcx]
cmp r10, r11
jb 0x140108bd8
dec al
mov rsi, r9
sub rsi, rdx
setae r11b
add rdi, rdx
mov byte [r13 + r14], al
cmp r15, rbp
jae 0x140108ae0
sub r10, rdx
add rcx, rdx
add r8, rdx
cmp r9, rdx
mov r9, rsi
jae 0x140108aa0
add r12, rdi
jmp 0x140108bde
inc r14
mov esi, 1
mov r13, rbx
mov rax, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x40]
nop word cs:[rax + rax]
cmp r14, qword [rsp + 8]
jae 0x140108c97
mov r12, rsi
add rdi, rdi
lea rdx, [rdi + rdi*4]
mov rdi, rdx
and rdi, rbx
lea rcx, [rsi + rsi]
lea rsi, [rcx + rcx*4]
mov r8, r10
add r8, r10
lea r10, [r8 + r8*4]
mov ecx, r11d
shr rdx, cl
lea ecx, [rdx + 0x30]
mov byte [r13 + r14], cl
inc r14
mov r9, r10
sub r9, rdi
jbe 0x140108b10
sub rax, qword [rsp + 0x28]
imul rax, rsi
lea rcx, [rax + rsi]
cmp r9, rbp
setae r11b
jb 0x140108c23
sub rax, rsi
mov r9, rax
sub r9, rdi
jbe 0x140108c23
add dl, 0x2f
lea rsi, [r8 + r8*4]
sub rsi, rbp
sub rsi, rdi
mov rbx, rbp
sub rbx, rax
nop word cs:[rax + rax]
lea r8, [rdi + rbp]
cmp r8, rax
jb 0x140108bb2
lea r11, [rbx + rdi]
cmp r9, r11
jb 0x140108c20
mov r15, rsi
sub r15, rbp
setae r11b
mov byte [r13 + r14 - 1], dl
cmp r8, rax
jae 0x140108c26
dec dl
sub r9, rbp
mov rdi, r8
cmp rsi, rbp
mov rsi, r15
jae 0x140108ba0
jmp 0x140108c26
add r12, rdi
mov r11b, 1
mov rbp, r12
mov rcx, qword [rsp]
mov r9, qword [rsp + 8]
mov rax, r9
sub rax, rbp
jbe 0x140108c04
test r11b, r11b
je 0x140108c04
add rdx, rbp
sub rdx, r9
jb 0x140108c77
cmp rax, rdx
jae 0x140108c77
cmp rbp, 2
mov rax, qword [rsp + 0x20]
jb 0x140108c7c
add rcx, 0xfffffffffffffffe
cmp rbp, rcx
ja 0x140108c7c
inc r14
mov qword [rax], rbx
jmp 0x140108c69
mov r11b, 1
mov r8, rdi
mov rdx, rcx
sub rdx, r8
jbe 0x140108c40
test r11b, r11b
je 0x140108c40
add rbp, r8
sub rbp, rcx
jb 0x140108c77
cmp rdx, rbp
jae 0x140108c77
lea rcx, [r12*4]
lea rcx, [rcx + rcx*4]
cmp rcx, r8
mov rax, qword [rsp + 0x20]
ja 0x140108c7c
shl r12, 3
lea rcx, [r12 + r12*4]
sub r10, rcx
cmp r8, r10
ja 0x140108c7c
mov qword [rax], r13
mov qword [rax + 8], r14
mov ecx, dword [rsp + 0x1c]
mov word [rax + 0x10], cx
jmp 0x140108c83
mov rax, qword [rsp + 0x20]
mov qword [rax], 0
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2