Function at 0x1000f940
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov eax, 0xaaaaaaab
mov ecx, dword [edi + 0x10]
mul ecx
mov dword [ebp - 0x20], ecx
mov eax, esi
mov ecx, edx
shr ecx, 1
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x1c], ecx
lea ebx, [ecx + ecx*2]
mov dword [ebp - 8], ebx
jb 0x1000f971
mov eax, dword [esi]
mov dword [esi + 0x10], 0
mov byte [eax], 0
test ecx, ecx
je 0x1000fb63
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x1000f992
mov eax, dword [edi]
movzx eax, byte [ebx + eax]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 0xc], al
mov eax, ecx
sub eax, edx
cmp eax, 1
jb 0x1000f9db
lea eax, [edx + 1]
mov ebx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x1000f9c0
mov ebx, dword [esi]
movsx ecx, byte [ebp - 0xc]
movzx eax, cl
shl cx, 8
or cx, ax
mov byte [ebx + edx], cl
mov byte [ebx + edx + 1], 0
mov ebx, dword [ebp - 4]
jmp 0x1000f9f0
push dword [ebp - 0xc]
mov byte [ebp - 0x24], 0
mov ecx, esi
push 1
push dword [ebp - 0x24]
push 1
call fcn.10007a30
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x1000f9fa
mov edx, dword [edi]
mov ecx, edi
jb 0x1000fa00
mov ecx, dword [edi]
movzx ecx, byte [ebx + ecx + 1]
movsx eax, byte [ebx + edx]
mov ebx, dword [esi + 0x10]
and eax, 3
shl eax, 4
shr ecx, 4
or ecx, eax
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, dword [esi + 0x14]
mov byte [ebp - 0x10], al
mov eax, ecx
sub eax, ebx
cmp eax, 1
jb 0x1000fa53
lea eax, [ebx + 1]
mov edx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x1000fa3b
mov edx, dword [esi]
movsx ecx, byte [ebp - 0x10]
movzx eax, cl
shl cx, 8
or cx, ax
mov byte [edx + ebx], cl
mov byte [edx + ebx + 1], 0
jmp 0x1000fa68
push dword [ebp - 0x10]
mov byte [ebp - 0x28], 0
mov ecx, esi
push 1
push dword [ebp - 0x28]
push 1
call fcn.10007a30
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x1000fa72
mov edx, dword [edi]
mov ecx, edi
jb 0x1000fa78
mov ecx, dword [edi]
mov eax, dword [ebp - 4]
mov ebx, dword [esi + 0x10]
movzx ecx, byte [eax + ecx + 2]
movsx eax, byte [eax + edx + 1]
and eax, 0xf
shr ecx, 6
shl eax, 2
or ecx, eax
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, dword [esi + 0x14]
mov byte [ebp - 0x14], al
mov eax, ecx
sub eax, ebx
cmp eax, 1
jb 0x1000facf
lea eax, [ebx + 1]
mov edx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x1000fab7
mov edx, dword [esi]
movsx ecx, byte [ebp - 0x14]
movzx eax, cl
shl cx, 8
or cx, ax
mov byte [edx + ebx], cl
mov byte [edx + ebx + 1], 0
jmp 0x1000fae4
push dword [ebp - 0x14]
mov byte [ebp - 0x2c], 0
mov ecx, esi
push 1
push dword [ebp - 0x2c]
push 1
call fcn.10007a30
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x1000faee
mov eax, dword [edi]
mov ebx, dword [ebp - 4]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
movsx eax, byte [eax + ebx + 2]
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 0x18], al
mov eax, ecx
sub eax, edx
cmp eax, 1
jb 0x1000fb3b
lea eax, [edx + 1]
mov ebx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x1000fb20
mov ebx, dword [esi]
movsx ecx, byte [ebp - 0x18]
movzx eax, cl
shl cx, 8
or cx, ax
mov byte [ebx + edx], cl
mov byte [ebx + edx + 1], 0
mov ebx, dword [ebp - 4]
jmp 0x1000fb50
push dword [ebp - 0x18]
mov byte [ebp - 0x30], 0
mov ecx, esi
push 1
push dword [ebp - 0x30]
push 1
call fcn.10007a30
add ebx, 3
sub dword [ebp - 0x1c], 1
mov dword [ebp - 4], ebx
jne 0x1000f988
mov ebx, dword [ebp - 8]
cmp dword [ebp - 0x20], ebx
je 0x1000fdb9
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x1000fb76
mov eax, dword [edi]
movzx eax, byte [eax + ebx]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 0x1c], al
mov eax, ecx
sub eax, edx
cmp eax, 1
jb 0x1000fbbf
lea eax, [edx + 1]
mov ebx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x1000fba4
mov ebx, dword [esi]
movsx ecx, byte [ebp - 0x1c]
movzx eax, cl
shl cx, 8
or cx, ax
mov byte [ebx + edx], cl
mov byte [ebx + edx + 1], 0
mov ebx, dword [ebp - 8]
jmp 0x1000fbd4
push dword [ebp - 0x1c]
mov byte [ebp - 0x30], 0
mov ecx, esi
push 1
push dword [ebp - 0x30]
push 1
call fcn.10007a30
mov eax, dword [edi + 0x14]
lea ecx, [ebx + 1]
mov edx, edi
cmp dword [ebp - 0x20], ecx
jne 0x1000fc8e
cmp eax, 0x10
jb 0x1000fbee
mov edx, dword [edi]
mov edi, edx
movsx eax, byte [edx + ebx]
movzx ecx, byte [edi + ebx + 1]
and eax, 3
mov edx, dword [esi + 0x10]
shl eax, 4
shr ecx, 4
or ecx, eax
mov bl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, dword [esi + 0x14]
mov eax, ecx
sub eax, edx
mov byte [ebp - 0x30], bl
cmp eax, 1
jb 0x1000fc40
lea eax, [edx + 1]
mov edi, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x1000fc29
mov edi, dword [esi]
movsx ecx, bl
movzx eax, cl
shl cx, 8
or cx, ax
mov byte [edi + edx], cl
mov byte [edi + edx + 1], 0
jmp 0x1000fc55
push dword [ebp - 0x30]
mov byte [ebp - 0x2c], 0
mov ecx, esi
push 1
push dword [ebp - 0x2c]
push 1
call fcn.10007a30
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x1000fc7e
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x1000fc73
mov eax, dword [esi]
mov word [eax + ecx], 0x3d
jmp 0x1000fd7a
push 0x3d
push 1
mov byte [ebp - 0x30], 0
push dword [ebp - 0x30]
jmp 0x1000fd71
cmp eax, 0x10
jb 0x1000fc95
mov edx, dword [edi]
mov ecx, edi
jb 0x1000fc9b
mov ecx, dword [edi]
movsx eax, byte [edx + ebx]
movzx ecx, byte [ecx + ebx + 1]
and eax, 3
mov edx, dword [esi + 0x10]
shl eax, 4
shr ecx, 4
or ecx, eax
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, dword [esi + 0x14]
mov byte [ebp - 0x20], al
mov eax, ecx
sub eax, edx
cmp eax, 1
jb 0x1000fcf1
lea eax, [edx + 1]
mov ebx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x1000fcd6
mov ebx, dword [esi]
movsx ecx, byte [ebp - 0x20]
movzx eax, cl
shl cx, 8
or cx, ax
mov byte [ebx + edx], cl
mov byte [ebx + edx + 1], 0
mov ebx, dword [ebp - 8]
jmp 0x1000fd06
push dword [ebp - 0x20]
mov byte [ebp - 0x30], 0
mov ecx, esi
push 1
push dword [ebp - 0x30]
push 1
call fcn.10007a30
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x1000fd12
mov edx, dword [edi]
mov edi, edx
movsx eax, byte [edx + ebx + 1]
movzx ecx, byte [edi + ebx + 2]
and eax, 0xf
mov edx, dword [esi + 0x10]
shl eax, 2
shr ecx, 6
or ecx, eax
mov bl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, dword [esi + 0x14]
mov eax, ecx
sub eax, edx
mov byte [ebp - 0x30], bl
cmp eax, 1
jb 0x1000fd65
lea eax, [edx + 1]
mov edi, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x1000fd4e
mov edi, dword [esi]
movsx ecx, bl
movzx eax, cl
shl cx, 8
or cx, ax
mov byte [edi + edx], cl
mov byte [edi + edx + 1], 0
jmp 0x1000fd7a
push dword [ebp - 0x30]
mov byte [ebp - 0x2c], 0
push 1
push dword [ebp - 0x2c]
push 1
mov ecx, esi
call fcn.10007a30
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x1000fda5
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
cmp edx, 0x10
jb 0x1000fd96
mov esi, dword [esi]
pop edi
mov word [esi + ecx], 0x3d
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x3d
push 1
mov byte [ebp - 0x30], 0
mov ecx, esi
push dword [ebp - 0x30]
push 1
call fcn.10007a30
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret