Function at 0x100012f0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000ab78
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1000f010]
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, 0x55555556
mov esi, dword [ebp + 0x18]
push ecx
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
lea ecx, [esi + 2]
mov byte [ebx], 0
imul ecx
mov ecx, ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
shl eax, 2
push eax
call fcn.10005320
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x10001365
mov eax, dword [ebx]
lea ecx, [esi - 2]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
test ecx, ecx
jle 0x1000141d
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_]
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_]
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_]
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_]
mov byte [eax + 3], cl
add eax, 4
cmp ebx, dword [ebp - 0x14]
jl 0x10001375
mov dword [ebp - 0x10], eax
cmp ebx, esi
jge 0x100014c6
lfence
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_]
mov byte [eax], cl
lea ecx, [esi - 1]
cmp ebx, ecx
lea ecx, [ebp + 8]
lfence
jne 0x10001474
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_]
mov byte [eax + 1], cl
lea ecx, [eax + 2]
jmp 0x100014c0
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_]
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_]
mov byte [ecx], dl
mov byte [ecx + 1], 0x3d
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x100014fc
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100014f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100014f2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1000a1ec
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