Function at 0x4b3720
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 0x4b3786
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 0x4b3870
mov esi, eax
mov edi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
cmp edi, edx
jne 0x4b3760
test esi, esi
je 0x4b3960
cmp esi, 2
jg 0x4b379e
mov byte [ebp + esi - 0x1f], 0
je 0x4b379e
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 0x4b3819
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 0x4b3970
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 0x4b3950
mov edx, dword [ebx + 8]
cmp dword [ebp - 0x38], edx
jbe 0x4b37f1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov ecx, ebx
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.004e3ce0
sub esp, 0x10
mov eax, dword [ebx]
jmp 0x4b37f1
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 0x4b3940
mov edx, dword [ebx + 8]
cmp dword [ebp - 0x34], edx
ja 0x4b3900
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 0x4b3930
movzx eax, byte [edi]
jmp 0x4b38b1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov ecx, ebx
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.004e3ce0
sub esp, 0x10
mov eax, dword [ebx]
jmp 0x4b38d6
xor eax, eax
mov esi, eax
jmp 0x4b377c
mov edx, 0xf
jmp 0x4b38d1
mov edx, 0xf
jmp 0x4b383d
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
cmp esi, 3
lea edi, [esi + 1]
jne 0x4b3999
jmp 0x4b3960
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 0x4b3960
mov esi, dword [ebx + 4]
lea eax, [esi + 1]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx]
cmp dword [ebp - 0x2c], eax
je 0x4b39e0
mov edx, dword [ebx + 8]
cmp dword [ebp - 0x30], edx
jbe 0x4b3980
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov ecx, ebx
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.004e3ce0
sub esp, 0x10
mov eax, dword [ebx]
jmp 0x4b3980
mov edx, 0xf
jmp 0x4b39ac