Function at 0x1001b990
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov ebx, ecx
mov eax, edx
xor edi, edi
mov dword [ebp - 8], eax
test ebx, ebx
je 0x1001bbc6
test eax, eax
je 0x1001bbc6
lea edx, [eax + 2]
mov eax, 0xaaaaaaab
mul edx
push esi
mov esi, dword [ebp + 8]
mov eax, edx
shr eax, 1
shl eax, 2
mov dword [ebp - 0xc], eax
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x10], ecx
cmp ecx, eax
ja 0x1001b9ff
cmp dword [esi + 0x14], eax
je 0x1001b9ff
push 1
push eax
mov ecx, esi
call fcn.1000dea0
test al, al
je 0x1001b9fc
cmp dword [esi + 0x14], 0x10
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x10], ecx
jb 0x1001b9f6
mov eax, dword [esi]
jmp 0x1001b9f8
mov eax, esi
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 0x10]
cmp eax, ecx
ja 0x1001ba1f
mov dword [esi + 0x10], eax
cmp dword [esi + 0x14], 0x10
jb 0x1001ba17
mov ecx, dword [esi]
mov byte [ecx + eax], 0
jmp 0x1001ba2b
mov ecx, esi
mov byte [ecx + eax], 0
jmp 0x1001ba2b
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.1000e2d0
mov eax, 0xaaaaaaab
mul dword [ebp - 8]
xor eax, eax
shr edx, 1
mov dword [ebp - 0xc], eax
lea ecx, [edx + edx*2]
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x1001bb0d
nop dword [eax + eax]
cmp dword [esi + 0x10], edi
jbe 0x1001bbdb
cmp dword [esi + 0x14], 0x10
jb 0x1001ba63
mov ecx, dword [esi]
jmp 0x1001ba65
mov ecx, esi
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + edi], al
inc edi
cmp dword [esi + 0x10], edi
jbe 0x1001bbdb
cmp dword [esi + 0x14], 0x10
jb 0x1001ba88
mov edx, dword [esi]
jmp 0x1001ba8a
mov edx, esi
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
add ecx, ecx
shr eax, 4
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + edi], al
inc edi
cmp dword [esi + 0x10], edi
jbe 0x1001bbdb
cmp dword [esi + 0x14], 0x10
jb 0x1001bab7
mov edx, dword [esi]
jmp 0x1001bab9
mov edx, esi
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
and ecx, 0xf
shr eax, 6
mov al, byte [eax + ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + edi], al
inc edi
cmp dword [esi + 0x10], edi
jbe 0x1001bbdb
cmp dword [esi + 0x14], 0x10
jb 0x1001bae5
mov ecx, dword [esi]
jmp 0x1001bae7
mov ecx, esi
movzx eax, byte [ebx + 2]
add ebx, 3
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + edi], al
inc edi
mov eax, dword [ebp - 0xc]
add eax, 3
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp - 0x10]
jb 0x1001ba50
mov ecx, dword [ebp - 8]
cmp eax, ecx
jae 0x1001bbbf
mov dl, byte [ebx]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, ecx
jae 0x1001bb2a
mov al, byte [ebx + 1]
mov byte [ebp - 1], al
jmp 0x1001bb2e
mov byte [ebp - 1], 0
cmp dword [esi + 0x10], edi
jbe 0x1001bbdb
cmp dword [esi + 0x14], 0x10
jb 0x1001bb41
mov ecx, dword [esi]
jmp 0x1001bb43
mov ecx, esi
movzx edx, dl
mov eax, edx
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + edi], al
inc edi
cmp dword [esi + 0x10], edi
jbe 0x1001bbe5
cmp dword [esi + 0x14], 0x10
jb 0x1001bb68
mov ebx, dword [esi]
jmp 0x1001bb6a
mov ebx, esi
movzx ecx, byte [ebp - 1]
and edx, 3
mov eax, ecx
add edx, edx
shr eax, 4
mov al, byte [eax + edx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 8]
mov byte [ebx + edi], al
inc edi
cmp dword [ebp - 0x10], edx
jae 0x1001bb97
and ecx, 0xf
mov cl, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x1001bb99
mov cl, 0x3d
cmp dword [esi + 0x10], edi
jbe 0x1001bbef
cmp dword [esi + 0x14], 0x10
jb 0x1001bba8
mov eax, dword [esi]
jmp 0x1001bbaa
mov eax, esi
mov byte [eax + edi], cl
inc edi
cmp dword [esi + 0x10], edi
jbe 0x1001bbf9
cmp dword [esi + 0x14], 0x10
jb 0x1001bbbb
mov esi, dword [esi]
mov byte [edi + esi], 0x3d
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push 0
push 0x100714cd
call fcn.1000e0a0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push str.invalid_string_position
call fcn.10036eb0
push str.invalid_string_position
call fcn.10036eb0
push str.invalid_string_position
call fcn.10036eb0
push str.invalid_string_position
call fcn.10036eb0
int3