Function at 0x4a768c
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a79b4
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 0xc], eax
mov byte [ebp - 0xd], 0x3d
mov dword [ebp - 0x24], 0x3e
lea eax, [ebp - 0x20]
call fcn.00404ba8
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x24]
call fcn.004051f4
mov eax, dword [ebp - 0x20]
call fcn.00405068
mov dword [ebp - 0x14], eax
mov cx, 2
xor edx, edx
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x14]
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4a74dc]
call fcn.004a7538
mov dword [ebp - 0x1c], eax
xor ecx, ecx
push ebp
push 0x4a7956
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0x10]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
cmp ebx, dword [ebp - 0x18]
jb 0x4a7747
xor ecx, ecx
mov edx, ebx
mov eax, dword [ebp - 0x1c]
call fcn.004a75d4
test al, al
je 0x4a7940
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0x10]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
mov al, byte [ebx]
mov byte [ebp - 0xe], al
inc ebx
xor eax, eax
mov al, byte [ebp - 0xe]
shr eax, 2
mov al, byte [eax + 0x4b64d8]
mov edx, dword [ebp - 0x14]
mov byte [edx], al
inc dword [ebp - 0x14]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jl 0x4a77b9
mov byte [ebp - 0xf], 0
mov al, byte [ebp - 0xe]
and al, 3
and eax, 0xff
shl eax, 4
mov dl, byte [ebp - 0xf]
and dl, 0xf0
and edx, 0xff
shr edx, 4
or eax, edx
mov al, byte [eax + 0x4b64d8]
mov edx, dword [ebp - 0x14]
mov byte [edx], al
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov dl, byte [ebp - 0xd]
mov byte [eax], dl
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov dl, byte [ebp - 0xd]
mov byte [eax], dl
inc dword [ebp - 0x14]
jmp 0x4a78c4
cmp ebx, dword [ebp - 0x18]
jb 0x4a77e1
xor ecx, ecx
mov edx, ebx
mov eax, dword [ebp - 0x1c]
call fcn.004a75d4
test al, al
je 0x4a7940
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0x10]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
mov al, byte [ebx]
mov byte [ebp - 0xf], al
inc ebx
mov al, byte [ebp - 0xe]
and al, 3
and eax, 0xff
shl eax, 4
mov dl, byte [ebp - 0xf]
and dl, 0xf0
and edx, 0xff
shr edx, 4
or eax, edx
mov al, byte [eax + 0x4b64d8]
mov edx, dword [ebp - 0x14]
mov byte [edx], al
inc dword [ebp - 0x14]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jl 0x4a7856
xor edx, edx
mov al, byte [ebp - 0xf]
and al, 0xf
and eax, 0xff
shl eax, 2
and dl, 0xc0
and edx, 0xff
shr edx, 6
or eax, edx
mov al, byte [eax + 0x4b64d8]
mov edx, dword [ebp - 0x14]
mov byte [edx], al
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov dl, byte [ebp - 0xd]
mov byte [eax], dl
inc dword [ebp - 0x14]
jmp 0x4a78c4
cmp ebx, dword [ebp - 0x18]
jb 0x4a787e
xor ecx, ecx
mov edx, ebx
mov eax, dword [ebp - 0x1c]
call fcn.004a75d4
test al, al
je 0x4a7940
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0x10]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
mov dl, byte [ebx]
inc ebx
mov al, byte [ebp - 0xf]
and al, 0xf
and eax, 0xff
shl eax, 2
mov ecx, edx
and cl, 0xc0
and ecx, 0xff
shr ecx, 6
or eax, ecx
mov al, byte [eax + 0x4b64d8]
mov ecx, dword [ebp - 0x14]
mov byte [ecx], al
inc dword [ebp - 0x14]
inc dword [ebp - 8]
and dl, 0x3f
xor eax, eax
mov al, dl
mov al, byte [eax + 0x4b64d8]
mov edx, dword [ebp - 0x14]
mov byte [edx], al
inc dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ecx, 0x2d
cdq
idiv ecx
test edx, edx
je 0x4a78e2
mov eax, dword [ebp - 0x14]
dec eax
mov al, byte [eax]
cmp al, byte [ebp - 0xd]
jne 0x4a771f
mov eax, dword [ebp - 0x14]
dec eax
mov al, byte [eax]
cmp al, byte [ebp - 0xd]
je 0x4a7907
mov eax, dword [ebp - 0x14]
mov byte [eax], 0xd
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov byte [eax], 0xa
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov byte [eax], 0
jmp 0x4a791b
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x24]
call fcn.004051f4
mov eax, dword [ebp - 0x20]
call fcn.00405068
mov edx, eax
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x10]
mov eax, dword [ebp - 0x20]
call fcn.00405068
mov dword [ebp - 0x14], eax
jmp 0x4a771f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a795d
mov eax, dword [ebp - 0x1c]
call fcn.00403d3c
ret