Function at 0x10019fe0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
mov ecx, dword [ebp + 0x10]
test ecx, ecx
mov eax, dword [0x101b9578]
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov dword [esp + 0x148], eax
push edi
jne 0x1001a01e
mov eax, edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001a010
sub eax, esi
mov dword [ebp + 0x10], eax
mov ecx, eax
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], edx
lea eax, [ecx - 3]
xor edx, edx
test eax, eax
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], ebx
jle 0x1001a185
lea ecx, [eax - 1]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
inc edx
lea eax, [edx*4]
lea ecx, [edx + edx*2]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x14]
mov edx, dword [edx]
mov ecx, 0x10
mov esi, 0x10169ad0
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
mov eax, edx
shr eax, 2
and eax, 0x3f
movsb byte es:[edi], byte [esi]
jl 0x1001a08d
cmp eax, 0x40
jge 0x1001a08d
mov al, byte [esp + eax + 0x70]
jmp 0x1001a08f
mov al, 0x3d
movsx eax, al
mov dword [esp + 0x1c], eax
mov eax, edx
mov ecx, edx
and ecx, 3
shr eax, 0xc
shl ecx, 4
and eax, 0xf
or eax, ecx
mov ecx, 0x10
mov esi, 0x10169ad0
lea edi, [esp + 0x100]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jl 0x1001a0cc
cmp eax, 0x40
jge 0x1001a0cc
mov al, byte [esp + eax + 0x100]
jmp 0x1001a0ce
mov al, 0x3d
movsx eax, al
mov dword [esp + 0x24], eax
mov eax, edx
shr eax, 8
mov ecx, edx
shr ecx, 0x16
and eax, 0xf
and ecx, 3
shl eax, 2
or eax, ecx
mov ecx, 0x10
mov esi, 0x10169ad0
lea edi, [esp + 0xb8]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jl 0x1001a10e
cmp eax, 0x40
jge 0x1001a10e
mov al, byte [esp + eax + 0xb8]
jmp 0x1001a110
mov al, 0x3d
mov ecx, 0x10
mov esi, 0x10169ad0
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
shr edx, 0x10
and edx, 0x3f
movsx ebx, al
movsb byte es:[edi], byte [esi]
jl 0x1001a137
cmp edx, 0x40
jge 0x1001a137
mov al, byte [esp + edx + 0x28]
jmp 0x1001a139
mov al, 0x3d
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
movsx edx, al
mov eax, dword [esp + 0xc]
shl edx, 8
or edx, ebx
mov ebx, dword [esp + 0x24]
shl edx, 8
or edx, ebx
shl edx, 8
or edx, esi
mov dword [eax], edx
add eax, 4
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
add ecx, 3
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jne 0x1001a061
mov ecx, dword [ebp + 0x10]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
cmp edx, ecx
jge 0x1001a2c6
sub ecx, edx
xor eax, eax
test ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
jle 0x1001a1b7
mov esi, dword [esp + 0x14]
mov eax, ecx
shr ecx, 2
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov ecx, 0x10
mov esi, 0x10169ad0
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov edx, eax
shr edx, 2
and edx, 0x3f
movsb byte es:[edi], byte [esi]
jl 0x1001a1dd
cmp edx, 0x40
jge 0x1001a1dd
mov dl, byte [esp + edx + 0x28]
jmp 0x1001a1df
mov dl, 0x3d
mov byte [ebx], dl
mov edx, eax
mov ecx, eax
and ecx, 3
shr edx, 0xc
shl ecx, 4
and edx, 0xf
or edx, ecx
mov ecx, 0x10
mov esi, 0x10169ad0
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jl 0x1001a211
cmp edx, 0x40
jge 0x1001a211
mov dl, byte [esp + edx + 0x28]
jmp 0x1001a213
mov dl, 0x3d
cmp dword [esp + 0xc], 1
mov byte [ebx + 1], dl
jle 0x1001a250
mov edx, eax
shr edx, 8
mov ecx, eax
shr ecx, 0x16
and edx, 0xf
and ecx, 3
shl edx, 2
or edx, ecx
mov ecx, 0x10
mov esi, 0x10169ad0
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jl 0x1001a250
cmp edx, 0x40
jge 0x1001a250
mov dl, byte [esp + edx + 0x28]
jmp 0x1001a252
mov dl, 0x3d
cmp dword [esp + 0xc], 2
mov byte [ebx + 2], dl
jle 0x1001a2a1
mov ecx, 0x10
mov esi, 0x10169ad0
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
shr eax, 0x10
and eax, 0x3f
movsb byte es:[edi], byte [esi]
jl 0x1001a2a1
cmp eax, 0x40
jge 0x1001a2a1
mov al, byte [esp + eax + 0x28]
mov byte [ebx + 3], al
mov eax, dword [esp + 0x18]
add ebx, 4
add eax, 4
mov byte [ebx], 0
mov ecx, dword [esp + 0x14c]
call fcn.1010122d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 0x3d
mov byte [ebx + 3], al
mov eax, dword [esp + 0x18]
add ebx, 4
add eax, 4
mov byte [ebx], 0
mov ecx, dword [esp + 0x14c]
call fcn.1010122d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14c]
mov eax, dword [esp + 0x18]
mov byte [ebx], 0
call fcn.1010122d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret