Function at 0x140019070
Capabilities:
Encode data using base64

Disassembly:
push rbx
push rsi
push rdi
push r13
push r14
sub rsp, 0xc0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r9
mov r14, rdx
mov rsi, rcx
mov rbx, qword [rsp + 0x110]
mov dword [rsp + 0x38], 1
cmp byte [rsp + 0x118], 0
je 0x140019342
lea rdx, str._binary_name__S_
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.1400ca830
movzx r11d, byte [rsp + 0x120]
test r11b, r11b
jne 0x14001922b
mov rdx, rdi
mov qword [rsp + 0x40], rdx
mov rcx, rbx
mov qword [rsp + 0x30], rbx
test rcx, rcx
je 0x140019130
movzx eax, byte [rdx]
cmp al, 0x20
jge 0x14001911e
cmp al, 0xa
je 0x14001911e
cmp al, 0xd
je 0x14001911e
cmp al, 9
jne 0x14001922b
inc rdx
mov qword [rsp + 0x40], rdx
dec rcx
mov qword [rsp + 0x30], rcx
jmp 0x140019102
test r11b, r11b
jne 0x14001922b
lea rdx, [0x1401ed66c]
mov rcx, r14
call fcn.1400ca830
mov r11, rdi
mov qword [rsp + 0x40], rdi
xor ecx, ecx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x30], rbx
nop dword [rax]
test rbx, rbx
je 0x14001919c
movzx eax, byte [r11]
cmp al, 0x3c
je 0x140019171
cmp al, 0x26
jne 0x140019179
inc rcx
mov qword [rsp + 0x58], rcx
cmp al, 0x5d
jne 0x14001918a
cmp byte [r11 + 1], al
jne 0x14001918a
cmp byte [r11 + 2], 0x3e
je 0x14001919c
inc r11
mov qword [rsp + 0x40], r11
dec rbx
mov qword [rsp + 0x30], rbx
jmp 0x140019160
test rcx, rcx
je 0x1400191d4
test rbx, rbx
jne 0x1400191d4
lea rdx, str.___CDATA_
mov rcx, r14
call fcn.1400ca830
mov rdx, rdi
mov rcx, r14
call fcn.1400ca830
lea rdx, [0x1401ed65c]
mov rcx, r14
call fcn.1400ca830
jmp 0x140019336
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov edx, 0xfde9
mov r8d, edx
mov rcx, rdi
call fcn.140093360
mov rbx, rax
mov qword [rsp + 0x50], rax
mov rdx, rax
mov rcx, r14
call fcn.1400ca830
nop
test rbx, rbx
je 0x140019336
mov rcx, rbx
call fcn.140085540
mov qword [rsp + 0x50], 0
jmp 0x140019336
lea rdx, str._encoding_base64__
mov rcx, r14
call fcn.1400ca830
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x30], rbx
mov byte [rsp + 0x74], 0
lea rsi, [0x1401ecde0]
test rbx, rbx
je 0x140019336
movzx eax, byte [rdi]
shr rax, 2
movzx eax, byte [rax + rsi]
mov byte [rsp + 0x70], al
movzx eax, byte [rdi]
and eax, 3
shl eax, 4
cmp rbx, 1
jbe 0x140019303
lea rdx, [rdi + 1]
movsxd rcx, eax
movzx eax, byte [rdx]
shr eax, 4
or rcx, rax
movzx eax, byte [rcx + rsi]
mov byte [rsp + 0x71], al
mov rdi, rdx
mov qword [rsp + 0x48], rdx
dec rbx
mov qword [rsp + 0x30], rbx
cmp rbx, 1
jbe 0x1400192e9
inc rdx
movzx eax, byte [rdi]
and eax, 0xf
shl eax, 2
movsxd rcx, eax
movzx eax, byte [rdx]
shr eax, 6
or rcx, rax
movzx eax, byte [rcx + rsi]
mov byte [rsp + 0x72], al
movzx eax, byte [rdx]
and eax, 0x3f
movzx eax, byte [rax + rsi]
mov byte [rsp + 0x73], al
mov rdi, rdx
mov qword [rsp + 0x48], rdx
dec rbx
mov qword [rsp + 0x30], rbx
jmp 0x140019314
movzx eax, byte [rdx]
and eax, 0xf
shl eax, 2
cdqe
movzx eax, byte [rax + rsi]
mov byte [rsp + 0x72], al
mov byte [rsp + 0x73], 0x3d
jmp 0x140019314
cdqe
movzx eax, byte [rax + rsi]
mov byte [rsp + 0x71], al
mov word [rsp + 0x72], 0x3d3d
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.1400ca830
inc rdi
mov qword [rsp + 0x48], rdi
dec rbx
mov qword [rsp + 0x30], rbx
jmp 0x140019250
lea rdx, str.__binary_
jmp 0x1400193d3
mov qword [rsp + 0x20], rbx
mov r9, qword [rcx + 0x18]
lea rdx, str._binary_name__S__offset__X__size__X____
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_wsprintfA]
cmp qword [rsi + 0x10], 0
jne 0x14001936c
mov qword [rsi + 0x18], 0
mov rax, qword [rsi + 0x18]
lea rcx, [rax + rbx + 1]
call fcn.14010a204
mov r13, rax
mov qword [rsp + 0x40], rax
mov rdx, qword [rsi + 0x10]
test rdx, rdx
je 0x140019397
mov r8, qword [rsi + 0x18]
mov rcx, rax
call fcn.14010c9b0
mov rax, qword [rsi + 0x18]
lea rcx, [r13 + rax]
mov r8, rbx
mov rdx, rdi
call fcn.14010c9b0
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x1400193b9
call fcn.14010d304
mov qword [rsi + 0x10], r13
add qword [rsi + 0x18], rbx
mov rax, qword [rsi + 0x18]
mov byte [rax + r13], 0
inc qword [rsi + 0x18]
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.1400ca830
mov dword [rsp + 0x38], 0
xor eax, eax
jmp 0x1400193eb
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14010d170
add rsp, 0xc0
pop r14
pop r13
pop rdi
pop rsi
pop rbx
ret