Function at 0x48f83f
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
xor esi, esi
mov dword [ebp - 0xc], edx
and dword [ebp - 0x14], esi
and dword [ebp - 0x18], esi
push edi
xor edi, edi
mov dword [ebp - 0x1c], ecx
test ebx, ebx
mov dword [ebp - 8], edi
push 3
sete al
mov dword [ebp - 0x10], eax
lea eax, [edx + 2]
xor edx, edx
pop ecx
div ecx
xor ecx, ecx
shl eax, 2
lea edx, [eax + 0x3f]
shr edx, 6
cmp dword [ebp + 0x10], 2
cmovne ecx, edx
add eax, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x48fb05
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax]
jbe 0x48f8a3
test ebx, ebx
jne 0x48fb05
mov eax, dword [ebp - 0xc]
cmp eax, 2
jbe 0x48f9c8
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
push dword [ebp - 0x10]
push 0
mov al, byte [ecx + esi + 1]
mov dl, byte [ecx + esi]
push dword [edi]
mov byte [ebp + 0xb], al
mov al, byte [ecx + esi + 2]
add ecx, 3
mov byte [ebp - 1], al
lea eax, [ebp - 8]
push eax
mov byte [ebp - 2], dl
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
push ebx
shr dl, 2
call fcn.0048f785
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x48f9c2
push dword [ebp - 0x10]
mov dl, byte [ebp - 2]
mov ecx, dword [ebp + 0x10]
and dl, 3
push eax
push dword [edi]
lea eax, [ebp - 8]
shl dl, 4
push eax
mov al, byte [ebp + 0xb]
shr al, 4
push ebx
or dl, al
call fcn.0048f785
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x48f9c2
push dword [ebp - 0x10]
mov dl, byte [ebp + 0xb]
mov ecx, dword [ebp + 0x10]
and dl, 0xf
push eax
push dword [edi]
lea eax, [ebp - 8]
shl dl, 2
push eax
mov al, byte [ebp - 1]
shr al, 6
push ebx
or dl, al
call fcn.0048f785
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x48f9c2
push dword [ebp - 0x10]
mov dl, byte [ebp - 1]
mov ecx, dword [ebp + 0x10]
and dl, 0x3f
push eax
push dword [edi]
lea eax, [ebp - 8]
push eax
push ebx
call fcn.0048f785
mov esi, eax
add esp, 0x14
mov eax, dword [ebp - 0xc]
test esi, esi
jne 0x48f9c5
sub eax, 3
cmp dword [ebp + 0x10], 2
mov dword [ebp - 0xc], eax
je 0x48f9b7
mov ecx, dword [ebp - 0x18]
inc ecx
mov dword [ebp - 0x18], ecx
test cl, 0xf
jne 0x48f9b7
test eax, eax
je 0x48f9b7
push dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 8]
push 1
push dword [edi]
mov dl, 0xa
push eax
push ebx
call fcn.0048f785
mov esi, eax
add esp, 0x14
mov eax, dword [ebp - 0xc]
test esi, esi
jne 0x48f9c5
cmp eax, 2
ja 0x48f8b2
jmp 0x48f9c5
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
test eax, eax
je 0x48faa3
test esi, esi
jne 0x48face
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
mov dl, byte [ecx + esi]
mov byte [ebp - 2], dl
cmp eax, 2
jne 0x48f9ef
mov al, byte [ecx + esi + 1]
jmp 0x48f9f1
xor al, al
push dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov byte [ebp + 0xb], al
and al, 0xf
shl al, 2
push 0
push dword [edi]
mov byte [ebp - 1], al
lea eax, [ebp - 8]
push eax
push ebx
shr dl, 2
call fcn.0048f785
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x48facb
push dword [ebp - 0x10]
mov dl, byte [ebp - 2]
mov cl, byte [ebp + 0xb]
and dl, 3
push eax
push dword [edi]
lea eax, [ebp - 8]
shr cl, 4
shl dl, 4
push eax
or dl, cl
mov ecx, dword [ebp + 0x10]
push ebx
call fcn.0048f785
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x48facb
cmp dword [ebp - 0xc], 2
movzx eax, byte [ebp - 1]
push 0x3d
pop ecx
push dword [ebp - 0x10]
cmove ecx, eax
xor eax, eax
cmp dword [ebp - 0xc], 2
mov dl, cl
mov ecx, dword [ebp + 0x10]
setne al
push eax
push dword [edi]
lea eax, [ebp - 8]
push eax
push ebx
call fcn.0048f785
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x48facb
push dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 8]
push 1
push dword [edi]
mov dl, 0x3d
push eax
push ebx
call fcn.0048f785
mov edi, dword [ebp - 8]
add esp, 0x14
mov esi, eax
test esi, esi
jne 0x48face
cmp dword [ebp + 0x10], 2
je 0x48face
push dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov dl, 0xa
mov ecx, dword [ebp + 0x10]
push 1
push dword [eax]
lea eax, [ebp - 8]
push eax
push ebx
call fcn.0048f785
add esp, 0x14
mov esi, eax
mov edi, dword [ebp - 8]
cmp edi, dword [ebp - 0x20]
je 0x48fade
test esi, esi
jne 0x48fade
mov eax, 0xffffff66
jmp 0x48fb0a
mov eax, dword [ebp + 0xc]
test ebx, ebx
je 0x48faed
cmp dword [eax], edi
jbe 0x48faed
mov byte [edi + ebx], 0
mov dword [eax], edi
test esi, esi
jne 0x48fb01
xor eax, eax
mov ecx, 0xffffff36
test ebx, ebx
cmove eax, ecx
jmp 0x48fb0a
mov eax, esi
jmp 0x48fb0a
mov eax, 0xffffff53
pop edi
pop esi
pop ebx
leave
ret