Function at 0x1001ce60
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009578d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100ce00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
mov eax, 0xaaaaaaab
mov esi, dword [ebp + 0x18]
push ecx
lea ecx, [esi + 2]
mul ecx
mov ecx, ebx
shr edx, 1
shl edx, 2
push edx
call fcn.1001e350
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x1001cebf
mov eax, dword [ebx]
lea ecx, [esi - 2]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x1001cf78
nop
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
lea edi, [ebp + 8]
cmovae ecx, dword [ebp + 8]
movzx ecx, byte [ecx + ebx]
shr ecx, 2
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_________________________________________________456789:_________]
mov byte [eax], cl
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae ecx, dword [ebp + 8]
cmovae edi, dword [ebp + 8]
movzx edx, byte [ecx + ebx + 1]
movsx ecx, byte [edi + ebx]
lea edi, [ebp + 8]
and ecx, 3
shr edx, 4
shl ecx, 4
or edx, ecx
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_________________________________________________456789:_________]
mov byte [eax + 1], cl
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae ecx, dword [ebp + 8]
cmovae edi, dword [ebp + 8]
movzx edx, byte [ecx + ebx + 2]
movsx ecx, byte [edi + ebx + 1]
and ecx, 0xf
shr edx, 6
shl ecx, 2
or edx, ecx
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_________________________________________________456789:_________]
mov byte [eax + 2], cl
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae ecx, dword [ebp + 8]
movsx ecx, byte [ecx + ebx + 2]
add ebx, 3
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_________________________________________________456789:_________]
mov byte [eax + 3], cl
add eax, 4
cmp ebx, dword [ebp - 0x14]
jb 0x1001ced0
mov dword [ebp - 0x10], eax
cmp ebx, esi
jae 0x1001d01b
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
movzx ecx, byte [ecx + ebx]
shr ecx, 2
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_________________________________________________456789:_________]
mov byte [eax], cl
lea ecx, [esi - 1]
cmp ebx, ecx
lea ecx, [ebp + 8]
jne 0x1001cfc9
cmp dword [ebp + 0x1c], 0x10
mov dl, 0x3d
cmovae ecx, dword [ebp + 8]
movsx ecx, byte [ecx + ebx]
and ecx, 3
shl ecx, 4
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_________________________________________________456789:_________]
mov byte [eax + 1], cl
lea ecx, [eax + 2]
jmp 0x1001d015
cmp dword [ebp + 0x1c], 0x10
lea edi, [ebp + 8]
cmovae ecx, dword [ebp + 8]
cmovae edi, dword [ebp + 8]
movzx edx, byte [ecx + ebx + 1]
movsx ecx, byte [edi + ebx]
and ecx, 3
shr edx, 4
shl ecx, 4
or edx, ecx
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_________________________________________________456789:_________]
mov byte [eax + 1], cl
lea eax, [ebp + 8]
mov ecx, dword [ebp - 0x10]
add ecx, 2
cmp dword [ebp + 0x1c], 0x10
cmovae eax, dword [ebp + 8]
movsx eax, byte [eax + ebx + 1]
and eax, 0xf
mov dl, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_________________________________________________456789:_________]
mov byte [ecx], dl
mov byte [ecx + 1], 0x3d
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x1001d051
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001d047
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001d047
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10093968
add esp, 8
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret