Function at 0x4b45f0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov esi, dword [eax]
mov eax, dword [eax + 4]
lea edx, [ebx + 8]
mov dword [ebx + 4], 0
mov byte [ebx + 8], 0
mov dword [ebp - 0x2c], edx
mov dword [ebx], edx
add eax, esi
mov dword [ebp - 0x38], esi
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
xor esi, esi
cmp edi, edx
je 0x4b4656
nop
lea esi, [esi]
add edi, 1
movzx edx, byte [edi - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x38], edi
cmp eax, 3
mov byte [ebp + esi - 0x1f], dl
je 0x4b4740
mov esi, eax
mov edi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
cmp edi, edx
jne 0x4b4630
test esi, esi
je 0x4b4830
cmp esi, 2
jg 0x4b466e
mov byte [ebp + esi - 0x1f], 0
je 0x4b466e
mov byte [ebp - 0x1d], 0
movzx ecx, byte [ebp - 0x1f]
movzx edx, byte [ebp - 0x1e]
mov eax, ecx
and ecx, 3
shl ecx, 4
shr al, 2
mov byte [ebp - 0x30], cl
mov ecx, edx
and edx, 0xf
shr cl, 4
mov byte [ebp - 0x1c], al
mov edi, ecx
movzx ecx, byte [ebp - 0x30]
mov byte [ebp - 0x30], dl
add ecx, edi
mov byte [ebp - 0x1b], cl
movzx ecx, byte [ebp - 0x1d]
mov edx, ecx
and ecx, 0x3f
shr dl, 6
mov byte [ebp - 0x19], cl
mov edi, edx
movzx edx, byte [ebp - 0x30]
mov dword [ebp - 0x30], 0
lea edx, [edi + edx*4]
mov byte [ebp - 0x1a], dl
jmp 0x4b46e9
movzx ecx, byte [ebp - 0x34]
add dword [ebp - 0x30], 1
mov byte [eax + edi], cl
lea eax, [edi + 1]
mov dword [ebx + 4], eax
mov eax, dword [ebx]
mov byte [eax + edi + 1], 0
mov eax, dword [ebp - 0x30]
cmp esi, eax
jl 0x4b4840
movzx eax, byte [ebp + eax - 0x1c]
movzx eax, al
mov edi, dword [ebx + 4]
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 0x34], al
lea eax, [edi + 1]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx]
cmp dword [ebp - 0x2c], eax
je 0x4b4820
mov edx, dword [ebx + 8]
cmp dword [ebp - 0x38], edx
jbe 0x4b46c1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov ecx, ebx
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.004e4bb0
sub esp, 0x10
mov eax, dword [ebx]
jmp 0x4b46c1
movzx edx, byte [ebp - 0x1f]
movzx ecx, byte [ebp - 0x1e]
mov eax, edx
and edx, 3
shr cl, 4
shl edx, 4
shr al, 2
add edx, ecx
movzx ecx, byte [ebp - 0x1d]
mov byte [ebp - 0x1c], al
mov byte [ebp - 0x1b], dl
movzx edx, byte [ebp - 0x1e]
and edx, 0xf
mov edi, edx
mov edx, ecx
and ecx, 0x3f
shr dl, 6
mov byte [ebp - 0x19], cl
mov esi, edx
lea edx, [esi + edi*4]
lea edi, [ebp - 0x1c]
mov byte [ebp - 0x1a], dl
movzx eax, al
mov esi, dword [ebx + 4]
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 0x30], al
lea eax, [esi + 1]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx]
cmp dword [ebp - 0x2c], eax
je 0x4b4810
mov edx, dword [ebx + 8]
cmp dword [ebp - 0x34], edx
ja 0x4b47d0
movzx ecx, byte [ebp - 0x30]
add edi, 1
mov byte [eax + esi], cl
lea eax, [esi + 1]
mov dword [ebx + 4], eax
mov eax, dword [ebx]
mov byte [eax + esi + 1], 0
lea eax, [ebp - 0x18]
cmp eax, edi
je 0x4b4800
movzx eax, byte [edi]
jmp 0x4b4781
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov ecx, ebx
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.004e4bb0
sub esp, 0x10
mov eax, dword [ebx]
jmp 0x4b47a6
xor eax, eax
mov esi, eax
jmp 0x4b464c
mov edx, 0xf
jmp 0x4b47a1
mov edx, 0xf
jmp 0x4b470d
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
cmp esi, 3
lea edi, [esi + 1]
jne 0x4b4869
jmp 0x4b4830
mov byte [eax + esi], 0x3d
lea eax, [esi + 1]
add edi, 1
cmp edi, 4
mov dword [ebx + 4], eax
mov eax, dword [ebx]
mov byte [eax + esi + 1], 0
je 0x4b4830
mov esi, dword [ebx + 4]
lea eax, [esi + 1]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx]
cmp dword [ebp - 0x2c], eax
je 0x4b48b0
mov edx, dword [ebx + 8]
cmp dword [ebp - 0x30], edx
jbe 0x4b4850
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov ecx, ebx
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.004e4bb0
sub esp, 0x10
mov eax, dword [ebx]
jmp 0x4b4850
mov edx, 0xf
jmp 0x4b487c