Function at 0x10007860
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call fcn.10010060
test al, al
je 0x1000788f
pop ecx
push ebx
pop eax
push esp
push edx
push esp
pop eax
pop esp
pop ebp
push esi
pop edi
push eax
pop edi
push eax
pop esi
push ebp
push ebx
push eax
pop esi
push edx
pop ebx
pop ecx
push ebx
push esi
pop ebx
pop edx
push edx
push ebp
push eax
push ebx
push esp
call fcn.1000fff0
test al, al
je 0x100078b6
pop eax
push edi
pop ebx
push esp
pop edi
push esp
pop ebp
push ecx
pop ecx
push edi
push ecx
pop edi
push eax
pop esp
push edx
push ecx
pop esi
push eax
pop ecx
push ebx
pop edi
push ebp
push ecx
push ecx
push eax
pop esp
pop esp
pop esp
push eax
push ebx
call fcn.100107d0
test al, al
je 0x100078da
push ebp
pop ebx
push esi
pop edx
pop eax
push esp
push edx
pop edx
push ebp
push eax
pop ecx
push edi
pop esp
pop edx
pop esp
pop edi
push ebx
pop edi
pop edx
pop ebx
push ebx
pop eax
push ebx
push edx
push edi
push esp
push edx
mov ebx, dword [ebp + 0xc]
xor esi, esi
xor edx, edx
xor ecx, ecx
test ebx, ebx
jle 0x10007a36
mov edi, dword [ebp + 8]
nop
mov al, byte [ecx + edi]
cmp al, 0x3d
jne 0x100078fd
inc edx
cmp edx, 2
jg 0x10007949
cmp al, 0x7f
ja 0x10007949
movzx eax, al
mov al, byte [eax + 0x100452e0]
cmp al, 0x7f
je 0x10007949
cmp al, 0x40
jae 0x10007916
test edx, edx
jne 0x10007949
inc ecx
inc esi
mov dword [ebp - 4], ecx
cmp ecx, ebx
jl 0x100078f0
test esi, esi
je 0x10007a36
mov ecx, dword [ebp + 0x14]
lea eax, [esi + esi*2]
lea eax, [eax*2 + 7]
sar eax, 3
cmp dword [ecx], eax
jge 0x10007955
mov dword [ecx], eax
mov eax, 0xfffffff0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xffffffee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10010a70
test al, al
je 0x10007973
pop eax
push ebx
pop ecx
push ebx
pop ebp
push edx
pop ebp
pop edx
pop edi
pop eax
pop esp
push edi
push ecx
push edx
push ebx
push eax
push esp
pop esi
pop ecx
push edx
push esp
call fcn.10010060
test al, al
je 0x1000798e
pop edi
push ebp
push edx
pop esp
push esp
pop esi
pop ebx
pop ebp
pop eax
pop ebx
pop esp
pop edi
pop edx
pop edx
pop ebx
pop ebx
push ebx
push ebp
call fcn.10010ae0
test al, al
je 0x100079b5
pop esi
push edi
pop edi
pop edi
pop ebx
push eax
push ebx
pop edi
push edi
push esi
push eax
pop ebx
push ebp
push ecx
push ebp
push ebp
push ecx
pop ecx
pop edx
pop ebp
pop eax
pop eax
pop edx
push edi
push ebx
push eax
push edx
push ecx
pop esp
push edi
mov esi, dword [ebp - 4]
xor eax, eax
xor ebx, ebx
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov edi, 3
mov edx, eax
test esi, esi
jle 0x10007a2f
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov cl, byte [eax + 0x100452e0]
xor eax, eax
cmp cl, 0x40
sete al
shl ebx, 6
sub edi, eax
movzx eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 0x3f
inc ecx
or ebx, eax
mov dword [ebp + 0xc], ecx
cmp ecx, 4
jne 0x10007a20
xor eax, eax
mov dword [ebp + 0xc], eax
test edi, edi
jle 0x10007a0b
mov eax, ebx
shr eax, 0x10
mov byte [edx], al
inc edx
cmp edi, 1
jle 0x10007a18
mov eax, ebx
shr eax, 8
mov byte [edx], al
inc edx
cmp edi, 2
jle 0x10007a20
mov byte [edx], bl
inc edx
mov eax, dword [ebp + 8]
dec esi
inc eax
mov dword [ebp + 8], eax
test esi, esi
jg 0x100079d0
mov eax, dword [ebp + 0x10]
sub edx, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret