Function at 0x180050f40
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x820]
sub rsp, 0x920
mov rax, qword [0x1800b43d8]
xor rax, rsp
mov qword [rbp + 0x810], rax
mov rsi, qword [rbp + 0x880]
mov eax, ecx
mov ebx, dword [rbp - 0x80]
mov r14d, ecx
mov dword [rsp + 0x64], ecx
xor r15d, r15d
mov dword [rbp - 0x44], ecx
mov rdi, r8
add ecx, 0x9f4
mov qword [rbp - 0x30], r8
mov qword [rbp - 0x78], rdx
mov r8, rdx
mov qword [rsp + 0x68], r9
mov r10, r9
mov qword [rbp + 8], rsi
lea rdx, [0x18005f980]
mov dword [rsp + 0x70], ecx
cmp eax, ecx
jae 0x1800516e4
mov ecx, dword [rbp - 0x80]
mov r12, qword [rbp - 0x60]
mov r13, qword [rbp - 0x68]
mov dword [rsp + 0x60], ecx
mov ecx, dword [rsp + 0x70]
mov dword [rbp - 0x58], ebx
lea r9, [0x1800a9369]
movabs r11, 0xaaaaaaaaaaaaaaab
cmp eax, 0x19c
ja 0x1800513e5
je 0x18005121a
cmp eax, 0x100
ja 0x180051160
je 0x180051132
sub eax, 0x10
je 0x1800510c5
sub eax, 0xc4
je 0x180051077
cmp eax, 4
jne 0x180051058
mov eax, dword [rsi]
add eax, dword [rdi]
cmp dword [r10 + 4], eax
jge 0x180051049
lea r8, [rbp - 0x70]
mov dword [rbp - 0x70], eax
mov rdx, r10
mov ecx, 0xdf
call fcn.180016740
test eax, eax
jne 0x180051a36
mov r10, qword [rsp + 0x68]
mov r8, qword [rbp - 0x78]
mov edx, dword [rsi]
add edx, dword [rdi]
mov dword [rbp - 0x70], edx
mov qword [rbp - 0x40], r15
mov ecx, dword [rsp + 0x70]
mov eax, dword [rbp - 0x44]
add eax, 0xc4
mov dword [rbp - 0x44], eax
cmp eax, ecx
jae 0x1800516ed
lea rdx, [0x18005f980]
jmp 0x180050fd2
test r8, r8
jne 0x180051058
lea r8, str._s___s:_u_
mov qword [rsp + 0x48], r15
lea rax, [rsp + 0x78]
mov qword [rsp + 0x40], r15
mov edx, 0xcd
mov qword [rsp + 0x38], r9
xor ecx, ecx
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x78], r15d
call fcn.180026490
mov r10, qword [rsp + 0x68]
mov r8, qword [rbp - 0x78]
jmp 0x180051054
test r10, r10
jne 0x180051118
mov qword [rsp + 0x48], r15
lea rax, [rsp + 0x78]
mov qword [rsp + 0x40], r15
lea r8, str.format_tree
mov qword [rsp + 0x38], r9
mov edx, 0xcd
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov qword [rsp + 0x28], r15
xor ecx, ecx
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x78], r15d
call fcn.180026490
mov r10, qword [rsp + 0x68]
lea r9, [0x1800a9369]
mov r8, qword [rbp - 0x78]
cmp qword [0x1800ee600], 0
jne 0x180051054
lea r8, str._option_value128
jmp 0x180051083
mov rcx, qword [rsi + 0x10]
mov rax, r11
add rcx, 2
xor r8d, r8d
mul rcx
mov rcx, rdi
shr rdx, 1
shl rdx, 2
call fcn.180048210
mov r10, qword [rsp + 0x68]
mov r8, qword [rbp - 0x78]
jmp 0x180051054
sub eax, 0x121
je 0x1800511ae
cmp eax, 0x77
jne 0x180051058
mov eax, dword [rdi]
lea rcx, [rsp + 0x78]
xor edx, edx
mov dword [rsp + 0x78], eax
mov r8d, 0xfe
call fcn.18005d8a0
mov dword [rsp + 0x60], eax
test eax, eax
jne 0x180051a36
mov r10, qword [rsp + 0x68]
mov r8, qword [rbp - 0x78]
mov dword [r10 + 4], 0xffffffff
mov qword [r10 + 8], r8
jmp 0x180051054
mov edi, 0x2710
mov qword [rbp - 0x68], rdx
lea r9, [rbp - 0x68]
lea rdx, [rsp + 0x78]
mov dword [rsp + 0x78], r15d
mov r8d, 0x19
xor ecx, ecx
call fcn.18005ba20
mov r9, rax
xor r8d, r8d
xor edx, edx
mov ecx, 0xff
call fcn.18004e490
lea rdx, [0x18005f980]
sub rdi, 1
jne 0x1800511b3
xor r8d, r8d
mov dword [rsp + 0x78], r15d
mov edx, 0x128
lea rcx, [rsp + 0x78]
call fcn.1800079b0
mov r10, qword [rsp + 0x68]
mov r8, qword [rbp - 0x78]
mov rdi, qword [rbp - 0x30]
jmp 0x180051054
movsxd r15, dword [r8]
mov edx, dword [rbp - 0x70]
cmp r15d, edx
jge 0x18005133a
mov ebx, dword [rbp - 0x1c]
lea r11, [rbp + 0x10]
mov r12d, dword [rbp - 0x20]
lea r11, [r11 + r15*4]
nop dword [rax + rax]
mov r8d, 0xfd
nop word [rax + rax]
mov eax, r8d
sub eax, 0xfd
je 0x1800512f1
sub eax, 0x45
je 0x1800512c1
sub eax, 0x45
je 0x18005127b
cmp eax, 0x45
jne 0x1800512ff
shr qword [rbp - 0x40], 0x1c
jmp 0x1800512ff
mov r10, qword [rbp - 0x40]
test ebx, ebx
jle 0x1800512b4
mov r9, qword [rbp - 8]
mov edx, ebx
nop dword [rax]
mov ecx, dword [r9]
sub r9, 4
mov eax, dword [r13]
add r13, 4
imul rcx, rax
add r10, rcx
sub rdx, 1
jne 0x180051290
mov qword [rbp - 0x40], r10
mov qword [rbp - 8], r9
mov eax, r10d
and eax, 0xfffffff
mov dword [r11], eax
jmp 0x1800512ff
mov rax, qword [rsi + 0x10]
mov edx, r15d
mov ebx, dword [rsi]
sub edx, r12d
movsxd rcx, edx
sub ebx, edx
lea r13, [rax + rcx*4]
mov rax, qword [rdi + 0x10]
movsxd rcx, r12d
lea r9, [rax + rcx*4]
lea eax, [r12 + 1]
mov qword [rbp - 8], r9
cmp ebx, eax
cmovge ebx, eax
jmp 0x1800512ff
mov eax, dword [rdi]
mov r12d, r15d
dec eax
cmp eax, r15d
cmovl r12d, eax
add r8d, 0x45
cmp r8d, 0x211
jb 0x180051250
mov edx, dword [rbp - 0x70]
inc r15d
add r11, 4
mov dword [rbp - 0x20], r12d
mov dword [rbp - 0x1c], ebx
cmp r15d, edx
jl 0x180051240
mov ebx, dword [rbp - 0x58]
mov r12, qword [rbp - 0x60]
mov r10, qword [rsp + 0x68]
mov r8, qword [rbp - 0x78]
mov r14d, dword [r10]
mov esi, 0x77
mov dword [r10], edx
mov eax, esi
sub eax, 0x76
je 0x180051393
cmp eax, 1
jne 0x1800513c6
movsxd r15, dword [r8]
mov rax, qword [r10 + 0x10]
movsxd rdi, edx
lea rax, [rax + r15*4]
mov qword [rbp - 0x38], rax
cmp r15, rdi
jge 0x1800513c6
sub rdi, r15
lea rdx, [rbp + 0x10]
mov r8, rdi
lea rdx, [rdx + r15*4]
shl r8, 2
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp - 0x38]
add r15d, edi
lea rax, [rax + rdi*4]
mov qword [rbp - 0x38], rax
jmp 0x1800513be
cmp r15d, r14d
jge 0x1800513c6
mov rcx, qword [rbp - 0x38]
mov eax, r14d
sub eax, r15d
xor edx, edx
movsxd rdi, eax
add r15d, eax
shl rdi, 2
mov r8, rdi
and r8, 0xfffffffffffffffc
call sub.VCRUNTIME140.dll_memset
add qword [rbp - 0x38], rdi
mov edx, dword [rbp - 0x70]
mov r10, qword [rsp + 0x68]
mov r8, qword [rbp - 0x78]
dec esi
cmp esi, 0x75
ja 0x180051345
mov rdi, qword [rbp - 0x30]
xor r15d, r15d
mov rsi, qword [rbp + 8]
jmp 0x180051054
cmp eax, 0x288
ja 0x1800515b9
je 0x1800514a9
sub eax, 0x1c4
je 0x180051479
sub eax, 0x21
je 0x18005144c
cmp eax, 0x7b
jne 0x180051058
mov qword [rsp + 0x50], r15
lea ecx, [rax + 0x6e]
mov qword [rsp + 0x48], r15
xor r9d, r9d
mov qword [rsp + 0x40], r15
mov r8, r10
mov qword [rsp + 0x38], r15
xor edx, edx
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call fcn.180032550
mov r10, qword [rsp + 0x68]
mov r8, qword [rbp - 0x78]
jmp 0x180051054
mov qword [rbp - 0x68], rdx
lea r9, [rbp - 0x68]
lea rdx, [rsp + 0x78]
mov dword [rsp + 0x78], r15d
mov r8d, 0x19
xor ecx, ecx
call fcn.18005ba20
mov r10, qword [rsp + 0x68]
mov r8, qword [rbp - 0x78]
jmp 0x180051054
cmp qword [rsi + 0x18], 0x10
mov qword [rbp - 0x50], rsi
jb 0x18005148b
mov rax, qword [rsi]
mov qword [rbp - 0x50], rax
cmp qword [rdi + 0x18], 0x10
mov r12, rdi
mov qword [rbp - 0x60], rdi
jb 0x180051058
mov r12, qword [rdi]
mov qword [rbp - 0x60], r12
jmp 0x180051058
mov rax, r11
mov qword [rbp], r15
mul qword [rsi + 0x10]
shr rdx, 1
lea rcx, [rdx + rdx*2]
test rcx, rcx
je 0x180051054
dec rcx
mov rax, r11
mul rcx
shr rdx, 1
inc rdx
lea rax, [rdx + rdx*2]
mov qword [rbp], rax
nop dword [rax + rax]
mov r8d, 0xc6
mov eax, r8d
sub eax, 0xc6
je 0x18005154f
sub eax, 1
je 0x180051526
cmp eax, 1
jne 0x180051592
mov r9, qword [rbp - 0x50]
mov rax, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx ecx, byte [r9 + 2]
and ecx, 0x3f
movzx ecx, byte [rcx + rax]
mov byte [r12], cl
inc r12
add r9, 3
mov qword [rbp - 0x50], r9
jmp 0x180051592
mov rax, qword [rbp - 0x50]
movzx ecx, byte [rax + 1]
movzx eax, byte [rax + 2]
and ecx, 0xf
shr eax, 6
lea ecx, [rax + rcx*4]
mov rax, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx ecx, byte [rcx + rax]
mov byte [r12], cl
inc r12
jmp 0x180051592
mov rax, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov r9, qword [rbp - 0x50]
movzx ecx, byte [r9]
shr rcx, 2
movzx ecx, byte [rcx + rax]
mov byte [r12], cl
movzx ecx, byte [r9]
movzx eax, byte [r9 + 1]
and ecx, 3
shl ecx, 4
shr eax, 4
add ecx, eax
mov rax, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx ecx, byte [rcx + rax]
mov byte [r12 + 1], cl
add r12, 2
inc r8d
cmp r8d, 0xc9
jb 0x1800514e6
mov qword [rbp - 0x60], r12
sub rdx, 1
jne 0x1800514e0
mov r8, qword [rbp - 0x78]
jmp 0x180051054
sub eax, 0x324
je 0x1800516d9
cmp eax, 0x28
jne 0x180051058
mov r11, qword [rbp]
cmp r11, qword [rsi + 0x10]
jae 0x180051058
mov ebx, dword [rbp - 0x48]
mov r8d, 0xc3
mov r10d, dword [rbp - 0x80]
mov edi, dword [rbp - 0x18]
nop dword [rax + rax]
mov eax, r8d
sub eax, 0xc3
je 0x180051688
sub eax, 0x7b
je 0x180051619
cmp eax, 0x7b
jne 0x1800516a5
mov byte [r12], 0x3d
inc r12
jmp 0x1800516a5
mov rax, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, edi
shr rcx, 2
movzx ecx, byte [rcx + rax]
mov eax, ebx
mov byte [r12], cl
mov ecx, edi
and ecx, 3
shr eax, 4
shl ecx, 4
add ecx, eax
mov rax, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx ecx, byte [rcx + rax]
lea rax, [r11 + 1]
mov byte [r12 + 1], cl
cmp rax, qword [rsi + 0x10]
jae 0x18005167b
mov ecx, ebx
mov eax, r10d
and ecx, 0xf
shr eax, 6
lea ecx, [rax + rcx*4]
mov rax, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edx, byte [rcx + rax]
mov byte [r12 + 2], dl
add r12, 3
jmp 0x1800516a5
mov dl, 0x3d
mov byte [r12 + 2], dl
add r12, 3
jmp 0x1800516a5
mov rcx, qword [rbp - 0x50]
lea rax, [r11 + 1]
movzx edi, byte [rcx]
cmp rax, qword [rsi + 0x10]
jae 0x18005169f
movzx ebx, byte [rcx + 1]
jmp 0x1800516a2
mov ebx, r15d
mov r10d, r15d
add r8d, 0x7b
cmp r8d, 0x234
jb 0x1800515f0
mov r8, qword [rbp - 0x78]
mov dword [rbp - 0x18], edi
mov rdi, qword [rbp - 0x30]
mov dword [rbp - 0x80], r10d
mov r10, qword [rsp + 0x68]
mov dword [rbp - 0x48], ebx
mov ebx, dword [rbp - 0x58]
mov qword [rbp - 0x60], r12
jmp 0x180051054
mov ebx, r15d
mov dword [rbp - 0x58], ebx
jmp 0x180051058
mov eax, dword [rbp - 0x80]
mov dword [rsp + 0x60], eax
jmp 0x1800516f2
mov r14d, dword [rsp + 0x64]
lea esi, [r14 - 0xd]
cmp r14d, esi
jbe case.0x180051752.7
mov rdi, qword [rbp - 0x68]
mov r14, qword [rbp - 0x68]
mov r15d, dword [rbp - 0x80]
mov r12, qword [rbp - 0x30]
mov r13, qword [rbp + 8]
mov edx, dword [rsp + 0x64]
lea r11, [0x180000000]
cmp edx, 0x120
ja case.0x180051752.17
je 0x1800519d9
lea eax, [rdx - 7]
cmp eax, 0xd1
ja case.0x180051752.17
movzx eax, byte [r11 + rax + 0x51a8c]
mov ecx, dword [r11 + rax*4 + 0x51a60]
add rcx, r11
jmp rcx
xor edi, edi
lea ecx, [rdi + 0x42]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
jne 0x180051a18
lea eax, [rdi + 0xd]
jmp 0x180051a36
movsxd rax, dword [r12]
mov r8, r13
mov edx, r15d
mov rcx, r14
lea r9, [rax + rax*4]
add r9, r9
call qword [r11 + r9*8 + 0xee7c8]
cmp eax, r15d
je 0x1800517cf
mov dword [rsp + 0x60], 9
lea r8, [rbp - 0x68]
mov dword [rsp + 0x64], 8
mov rdx, r14
mov qword [rbp - 0x68], 0x42
mov ecx, 0x127
call fcn.18005f5d0
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ebx, dword [rsp + 0x60]
jmp 0x180051a18
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], 0
lea r9, [rax + 0x28]
lea r8, [rax + 0x20]
lea rdx, [rax + 0x18]
lea rcx, [rax + 0x10]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
call fcn.1800360d0
mov dword [rsp + 0x60], eax
test eax, eax
jne case.0x180051752.8
lea r9d, [rax + 0x7b]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.18002b8b0
mov rdi, rax
test rax, rax
jne 0x180051a18
mov dword [rsp + 0x60], 0xd
jmp 0x1800519a7
mov rdx, qword [r10 + 8]
mov r8d, 0x10
mov rcx, qword [rdi + 8]
mov rdx, qword [rdx + 0x30]
call qword [0x1800ee680]
mov dword [rsp + 0x60], eax
test eax, eax
jne 0x1800519a7
mov rcx, qword [rdi + 0x10]
lea edx, [rax + 1]
call qword [0x1800ee638]
mov dword [rsp + 0x60], eax
test eax, eax
jne 0x1800519a7
mov rcx, qword [rsp + 0x68]
mov r8d, r15d
mov rdx, r14
mov rcx, qword [rcx + 0x28]
call qword [0x1800ee6a0]
mov dword [rsp + 0x60], eax
test eax, eax
jne 0x1800519a7
mov rax, qword [rsp + 0x68]
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rax + 0x28]
call qword [0x1800ee658]
cmp eax, 0xffffffff
je 0x180051a18
mov rax, qword [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rax + 0x28]
mov r9, rcx
call qword [0x1800ee6e0]
mov dword [rsp + 0x60], eax
test eax, eax
jne 0x1800519a7
jmp 0x180051a18
xor r8d, r8d
mov rdx, rdi
mov ecx, 0xc1
call fcn.1800452b0
mov rdx, qword [rbp - 0x28]
xor r8d, r8d
mov rcx, qword [rbp - 0x10]
call fcn.1800356a0
jmp 0x180051a18
mov r9, qword [rbp - 0x10]
lea r8, [r10 + 0x10]
mov rcx, qword [r10 + 0x28]
mov rdx, rdi
mov dword [rsp + 0x20], 1
call qword [0x1800ee750]
mov dword [rsp + 0x60], eax
test eax, eax
jne 0x1800519a7
mov r10, qword [rsp + 0x68]
xor ecx, ecx
mov dword [rsp + 0x60], ecx
mov dword [r10], 1
jmp 0x180051a1d
mov rdx, qword [r10 + 8]
mov r8d, 0x10
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rdx + 0x10]
call qword [0x1800ee680]
mov dword [rsp + 0x60], eax
test eax, eax
jne 0x1800519a7
mov rax, qword [rsp + 0x68]
mov r8d, 0x10
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rax + 8]
mov rdx, qword [rdx + 0x20]
call qword [0x1800ee680]
mov dword [rsp + 0x60], eax
test eax, eax
jne 0x1800519a7
mov rax, qword [rsp + 0x68]
mov r8d, 0x10
mov rcx, qword [rdi]
mov rdx, qword [rax + 8]
mov rdx, qword [rdx + 0x28]
call qword [0x1800ee680]
mov dword [rsp + 0x60], eax
test eax, eax
je 0x180051a18
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], 0
mov r9, qword [rax + 0x28]
mov r8, qword [rax + 0x20]
mov rdx, qword [rax + 0x18]
mov rcx, qword [rax + 0x10]
call fcn.1800356a0
mov dword [rsp + 0x64], 0xa
jmp 0x180051a18
mov r15d, dword [r8]
jmp case.0x180051752.17
xor r8d, r8d
mov dword [rbp - 0x80], 1
mov edx, 0x128
lea rcx, [rbp - 0x80]
call fcn.1800079b0
lea rax, [0x18005f980]
mov dword [rbp - 0x80], 0
lea r9, [rbp - 0x68]
mov qword [rbp - 0x68], rax
mov r8d, 0x19
lea rdx, [rbp - 0x80]
xor ecx, ecx
call fcn.18005ba20
mov r10, qword [rsp + 0x68]
mov edx, dword [rsp + 0x64]
dec edx
mov dword [rsp + 0x64], edx
cmp edx, esi
jbe case.0x180051752.7
mov r8, qword [rbp - 0x78]
jmp 0x180051717
mov eax, ebx
mov rcx, qword [rbp + 0x810]
xor rcx, rsp
call fcn.1800602e0
mov rbx, qword [rsp + 0x960]
add rsp, 0x920
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret