Function at 0x1072ab2
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x1072ac9
cmp dword [ebp + 0x18], edi
jne 0x1072b01
mov dword [ebp - 4], 0x80070057
mov eax, dword [0x12d2c30]
cmp eax, 0x12d2c30
je 0x1072af7
test byte [eax + 0x3c], 2
je 0x1072af7
push dword [ebp - 4]
push 0x1005000
push 0x12
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01032571
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14
lea eax, [ebp - 8]
push eax
push 2
push dword [ebp + 0xc]
call fcn.010335cd
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x1072ad0
mov eax, dword [ebp - 8]
push 3
xor edx, edx
pop ecx
div ecx
mov ebx, 0x1004ecc
mov esi, 0x80070216
test eax, eax
je 0x1072c30
mov ecx, eax
shl ecx, 2
mov edx, ecx
shr edx, 2
cmp edx, eax
je 0x1072c28
mov edi, esi
mov eax, dword [0x12d2c30]
cmp eax, 0x12d2c30
je 0x1072b67
test byte [eax + 0x3c], 2
je 0x1072b67
push esi
push ebx
push 0xc
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01032571
mov dword [ebp - 4], edi
test edi, edi
jl 0x1072ad0
mov eax, dword [ebp + 0x10]
and eax, 1
mov dword [ebp - 0x10], eax
je 0x1072c01
lea eax, [ebp - 0xc]
push eax
push 0x3f
push dword [ebp - 8]
call fcn.010335cd
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x1072ad0
mov eax, dword [ebp - 0xc]
shr eax, 6
cmp eax, edi
je 0x1072c3f
lea ecx, [eax + eax]
mov edx, ecx
shr edx, 1
cmp edx, eax
je 0x1072c3a
mov edi, esi
mov eax, dword [0x12d2c30]
cmp eax, 0x12d2c30
je 0x1072bdc
test byte [eax + 0x3c], 2
je 0x1072bdc
push esi
push ebx
push 0xc
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01032571
mov dword [ebp - 4], edi
test edi, edi
jl 0x1072ad0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.010335cd
mov dword [ebp - 4], eax
test eax, eax
jl 0x1072ad0
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x1072c44
push dword [ebp + 0x18]
push 1
push dword [ebp - 8]
call fcn.010335cd
mov dword [ebp - 4], eax
test eax, eax
jl 0x1072ad0
and dword [ebp - 4], esi
jmp 0x1072af7
mov dword [ebp - 8], ecx
jmp 0x1072b67
and dword [ebp - 8], edi
xor edi, edi
jmp 0x1072b67
mov dword [ebp - 0xc], ecx
jmp 0x1072bdc
mov dword [ebp - 0xc], edi
jmp 0x1072bdc
lea eax, [ebp - 0xc]
push eax
push 1
push dword [ebp - 8]
call fcn.010335cd
mov dword [ebp - 4], eax
test eax, eax
jl 0x1072ad0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x18]
cmp dword [ecx], eax
jae 0x1072c73
mov dword [ebp - 4], 0x8007007a
jmp 0x1072ad0
and dword [ebp + 0x14], 0
cmp dword [ebp + 0xc], 0
lea edx, [esi + eax*2]
mov ecx, esi
mov dword [ebp - 8], edx
jle 0x1072d9b
lea ebx, [esi + 6]
add esi, 2
cmp dword [ebp - 0x10], 0
je 0x1072cc6
cmp dword [ebp + 0x14], 0x10
jne 0x1072cc3
and dword [ebp + 0x14], 0
cmp esi, dword [ebp - 8]
jae 0x1072dbe
push 0xd
pop eax
mov word [ecx], ax
push 2
pop eax
add ecx, eax
push 0xa
add esi, eax
pop edx
add ebx, eax
mov word [ecx], dx
add ecx, eax
add esi, eax
add ebx, eax
inc dword [ebp + 0x14]
xor eax, eax
lea edi, [ebp + 0x10]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
inc dword [ebp + 8]
cmp dword [ebp + 0xc], 1
mov al, byte [eax]
jbe 0x1072cf8
mov edx, dword [ebp + 8]
mov dl, byte [edx]
inc dword [ebp + 8]
cmp dword [ebp + 0xc], 2
mov byte [ebp + 0x11], dl
jbe 0x1072cf8
mov edx, dword [ebp + 8]
mov dl, byte [edx]
inc dword [ebp + 8]
mov byte [ebp + 0x12], dl
cmp ebx, dword [ebp - 8]
jae 0x1072dbe
movzx eax, al
mov edx, eax
shr edx, 2
movzx dx, byte [edx + 0x1005890]
mov word [ecx], dx
movzx edx, byte [ebp + 0x11]
inc ecx
mov edi, edx
shr edi, 4
shl eax, 4
inc ecx
or edi, eax
inc esi
and edi, 0x3f
movzx ax, byte [edi + 0x1005890]
inc esi
inc ebx
push 2
pop edi
inc ebx
mov word [ecx], ax
add ecx, edi
add esi, edi
add ebx, edi
cmp dword [ebp + 0xc], 1
jbe 0x1072d5d
movzx eax, byte [ebp + 0x12]
shr eax, 6
shl edx, 2
or eax, edx
and eax, 0x3f
movzx eax, byte [eax + 0x1005890]
jmp 0x1072d60
push 0x3d
pop eax
mov word [ecx], ax
add ecx, edi
add esi, edi
add ebx, edi
cmp dword [ebp + 0xc], edi
jbe 0x1072d7e
movzx eax, byte [ebp + 0x12]
and eax, 0x3f
movzx eax, byte [eax + 0x1005890]
jmp 0x1072d81
push 0x3d
pop eax
sub dword [ebp + 0xc], 3
mov word [ecx], ax
add ecx, edi
add esi, edi
add ebx, edi
cmp dword [ebp + 0xc], 0
jg 0x1072c8f
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x10], 0
je 0x1072db9
lea edx, [ecx + 2]
cmp edx, dword [ebp - 8]
jae 0x1072dbe
push 0xd
pop esi
mov word [ecx], si
mov ecx, edx
push 0xa
pop edx
mov word [ecx], dx
inc ecx
inc ecx
cmp ecx, dword [ebp - 8]
jb 0x1072dca
mov dword [ebp - 4], 0x8000ffff
jmp 0x1072ad0
xor edx, edx
mov word [ecx], dx
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jmp 0x1072af7