Function at 0x1001ee70
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1001f06d
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1001f06d
cmp dword [ebp + 0x14], 0
je 0x1001f06d
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0xc]
push eax
push ebx
call fcn.1001edd0
mov ecx, dword [ebp + 0x14]
add esp, 8
cmp dword [ecx], eax
jge 0x1001eeb9
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x55555556
imul ebx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea edx, [ecx*4]
mov eax, 0x6bca1af3
imul edx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov eax, 0x13
mov dword [ebp + 8], 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
js 0x1001efd7
mov edx, dword [ebp + 0x18]
and edx, 2
mov dword [ebp - 0xc], edx
cmp dword [ebp - 4], ebx
jne 0x1001ef26
mov edx, ebx
imul edx, edx, 0x4c
lea eax, [ecx*4]
sub eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 8], eax
test eax, eax
jle 0x1001ef9a
mov edx, eax
lea esp, [esp]
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
shl ecx, 8
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__02x]
mov byte [esi], al
shl ecx, 6
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__02x]
shl ecx, 6
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__02x]
shr ecx, 0x14
and ecx, 0x3f
mov byte [esi + 2], al
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__02x]
mov byte [esi + 3], cl
add edi, 3
add esi, 4
sub edx, 1
jne 0x1001ef30
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
cmp dword [ebp - 0xc], 0
mov edx, dword [ebp + 8]
lea edx, [edx + eax*4]
mov dword [ebp + 8], edx
jne 0x1001efb5
mov byte [esi], 0xd
inc esi
mov byte [esi], 0xa
inc esi
add dword [ebp + 8], 2
mov edx, dword [ebp - 4]
inc edx
cmp edx, ebx
mov dword [ebp - 4], edx
jle 0x1001ef07
cmp dword [ebp + 8], 0
je 0x1001efd7
cmp dword [ebp - 0xc], 0
jne 0x1001efd7
sub esi, 2
sub dword [ebp + 8], 2
lea eax, [ecx + ecx*2]
mov ecx, dword [ebp + 0xc]
sub ecx, eax
je 0x1001f059
lea edx, [ecx + 1]
test edx, edx
je 0x1001f059
xor eax, eax
test ecx, ecx
jle 0x1001eff2
movzx eax, byte [edi]
inc edi
shl eax, 8
cmp ecx, 1
jle 0x1001f000
movzx ebx, byte [edi]
or eax, ebx
inc edi
shl eax, 8
cmp ecx, 2
jle 0x1001f00d
movzx ecx, byte [edi]
or eax, ecx
shl eax, 8
test edx, edx
jle 0x1001f036
mov ecx, edx
jmp 0x1001f020
mov edi, eax
shr edi, 0x1a
mov bl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__02x]
mov byte [esi], bl
inc esi
shl eax, 6
sub ecx, 1
jne 0x1001f020
add dword [ebp + 8], edx
test byte [ebp + 0x18], 1
jne 0x1001f059
mov edi, 4
sub edi, edx
test edi, edi
jle 0x1001f056
push edi
push 0x3d
push esi
call fcn.1002e520
add esp, 0xc
add dword [ebp + 8], edi
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
pop ebx
pop edi
mov dword [edx], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret