Function at 0x10077220
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x100775a0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov ecx, esi
mov dword fs:[0], eax
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
xor ebx, ebx
jmp 0x10077286
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
sub edx, 1
jb 0x1007735b
mov al, byte [ecx]
inc ecx
mov byte [ebp + ebx - 0x23], al
inc ebx
cmp ebx, 3
jne 0x10077286
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], edx
mov cl, byte [ebp - 0x23]
mov al, byte [ebp - 0x22]
mov edx, ecx
shr dl, 2
mov byte [ebp - 0x27], dl
mov edx, eax
shr dl, 4
shl cl, 4
or cl, dl
and cl, 0x3f
mov byte [ebp - 0x26], cl
mov cl, byte [ebp - 0x21]
mov edx, ecx
shr dl, 6
shl al, 2
or al, dl
and al, 0x3f
mov byte [ebp - 0x25], al
and cl, 0x3f
mov byte [ebp - 0x24], cl
xor ebx, ebx
xor ecx, ecx
jmp 0x100772ef
mov byte [esi + ecx], al
mov byte [esi + ecx + 1], 0
mov ecx, dword [ebp - 0x30]
inc ecx
mov edi, dword [ebp + 8]
cmp ecx, 3
ja 0x10077280
mov eax, 0x100a457c
cmp dword [0x100a4590], 0x10
jb 0x10077307
mov eax, dword [0x100a457c]
mov dword [ebp - 0x30], ecx
movzx ecx, byte [ebp + ecx - 0x27]
movzx eax, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
cmp ecx, edx
jae 0x10077330
lea esi, [ecx + 1]
mov dword [edi + 0x10], esi
mov esi, edi
cmp edx, 0x10
jb 0x100772e0
mov esi, dword [edi]
jmp 0x100772e0
mov dword [ebp - 0x10], 0
movzx ecx, byte [ebp - 0x20]
mov byte [esp + 4], cl
movsx eax, al
mov dword [esp + 8], eax
mov dword [esp], 1
mov ecx, edi
call fcn.10012f60
sub esp, 0xc
xor ebx, ebx
jmp 0x100772e8
test ebx, ebx
je 0x100774b0
cmp ebx, 2
jg 0x10077387
lea eax, [ebp + ebx - 0x23]
mov ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.10084550
mov cl, byte [ebp - 0x23]
mov al, byte [ebp - 0x22]
mov edx, ecx
shr dl, 2
mov byte [ebp - 0x27], dl
mov edx, eax
shr dl, 4
shl cl, 4
or cl, dl
and cl, 0x3f
mov byte [ebp - 0x26], cl
mov cl, byte [ebp - 0x21]
mov edx, ecx
shr dl, 6
shl al, 2
or al, dl
and al, 0x3f
mov byte [ebp - 0x25], al
and cl, 0x3f
mov byte [ebp - 0x24], cl
xor ecx, ecx
mov dword [ebp - 0x2c], ebx
jmp 0x100773df
mov byte [esi + ecx], al
mov byte [esi + ecx + 1], 0
mov ecx, dword [ebp - 0x30]
inc ecx
mov edi, dword [ebp + 8]
cmp ecx, ebx
jg 0x1007745a
mov eax, 0x100a457c
cmp dword [0x100a4590], 0x10
jb 0x100773f6
mov eax, dword [0x100a457c]
mov dword [ebp - 0x30], ecx
movzx ecx, byte [ebp + ecx - 0x27]
movzx eax, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
cmp ecx, edx
jae 0x10077420
lea esi, [ecx + 1]
mov dword [edi + 0x10], esi
mov esi, edi
cmp edx, 0x10
jb 0x100773d0
mov esi, dword [edi]
jmp 0x100773d0
mov dword [ebp - 0x10], 0
movzx ecx, byte [ebp - 0x20]
mov byte [esp + 4], cl
movsx eax, al
mov dword [esp + 8], eax
mov dword [esp], 1
mov ecx, edi
call fcn.10012f60
sub esp, 0xc
mov ebx, dword [ebp - 0x2c]
jmp 0x100773d8
mov word [edx + eax], 0x3d
inc ebx
mov edi, dword [ebp + 8]
cmp ebx, 2
jg 0x100774b0
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
cmp eax, ecx
jae 0x10077480
lea edx, [eax + 1]
mov dword [edi + 0x10], edx
mov edx, edi
cmp ecx, 0x10
jb 0x10077450
mov edx, dword [edi]
jmp 0x10077450
mov dword [ebp - 0x10], 0
movzx eax, byte [ebp - 0x20]
mov byte [esp + 4], al
mov dword [esp + 8], 0x3d
mov dword [esp], 1
mov ecx, edi
mov dword [ebp - 0x2c], ebx
call fcn.10012f60
sub esp, 0xc
mov ebx, dword [ebp - 0x2c]
jmp 0x10077456
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret