Function at 0x4b4240
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
je 0x4b4438
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4b4438
lea ecx, [eax + 2]
mov eax, 0xaaaaaaab
mul ecx
push ebx
push esi
push edi
shr edx, 1
lea ecx, [ebp - 0x1c]
push 0
shl edx, 2
push edx
call fcn.004b4070
mov eax, dword [ebp - 8]
lea ebx, [ebp - 0x1c]
mov edi, dword [ebp - 0x1c]
cmp eax, 0x10
mov ecx, dword [ebp + 0xc]
cmovae ebx, edi
xor esi, esi
test ecx, ecx
je 0x4b4389
mov eax, dword [ebp + 8]
mov edx, 1
sub edx, eax
mov dword [ebp - 0x24], 1
dec ecx
mov dword [ebp - 0x2c], edx
lea edi, [eax + 1]
mov eax, 0xaaaaaaab
mul ecx
mov eax, edx
shr eax, 1
inc eax
mov dword [ebp - 0x28], eax
jmp 0x4b42d0
movzx eax, byte [edi - 1]
lea ecx, [esi + 2]
shr eax, 2
mov al, byte [eax + 0x514530]
mov byte [esi + ebx], al
mov dl, byte [edi - 1]
mov eax, dword [ebp + 0xc]
and dl, 3
shl dl, 4
cmp dword [ebp - 0x24], eax
jae 0x4b4359
movzx eax, byte [edi]
shr al, 4
add al, dl
movzx eax, al
movzx eax, byte [eax + 0x514530]
mov byte [esi + ebx + 1], al
lea eax, [ecx + ebx]
mov dh, byte [edi]
inc ecx
mov dword [ebp - 0x30], eax
and dh, 0xf
mov eax, dword [ebp - 0x2c]
add eax, edi
shl dh, 2
cmp eax, dword [ebp + 0xc]
jae 0x4b433c
mov dl, byte [edi + 1]
movzx eax, dl
and eax, 0x3f
shr dl, 6
add dl, dh
mov al, byte [eax + 0x514530]
mov byte [ebp - 0x1d], al
jmp 0x4b4342
mov byte [ebp - 0x1d], 0x3d
mov dl, dh
movzx eax, dl
mov edx, dword [ebp - 0x30]
movzx eax, byte [eax + 0x514530]
mov byte [edx], al
mov al, byte [ebp - 0x1d]
mov byte [ecx + ebx], al
jmp 0x4b436f
movzx eax, dl
mov al, byte [eax + 0x514530]
mov byte [esi + ebx + 1], al
mov byte [ecx + ebx], 0x3d
inc ecx
mov byte [ecx + ebx], 0x3d
add dword [ebp - 0x24], 3
lea esi, [ecx + 1]
add edi, 3
sub dword [ebp - 0x28], 1
jne 0x4b42d0
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x34]
lea ecx, [ebp - 0x1c]
cmp ebx, ecx
je 0x4b43ee
mov ecx, dword [ebx + 0x14]
cmp ecx, 0x10
jb 0x4b43c2
mov eax, dword [ebx]
inc ecx
cmp ecx, 0x1000
jb 0x4b43b8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b4415
mov eax, edx
push ecx
push eax
call fcn.004bee2d
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword [ebx], edi
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x14], eax
mov eax, 0xf
mov byte [ebp - 0x1c], 0
mov edi, dword [ebp - 0x1c]
test esi, esi
setne bl
cmp eax, 0x10
jb 0x4b4425
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4b441b
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b441b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.004bee2d
add esp, 8
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret