Function at 0x4beb5e
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [ebp - 0xc], eax
xor eax, eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x38]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x34], 0
je 0x4bebc4
cmp dword [ebp - 0x2c], 0
jne 0x4bebce
mov eax, 0xffffffff
jmp 0x4bf0bf
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call fcn.004be96f
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, 1
cmp dword [ebp - 0x30], eax
jae 0x4bebf8
mov eax, 0xffffffff
jmp 0x4bf0bf
cmp dword [ebp - 0x30], 0x7fffffef
jbe 0x4bec0b
mov eax, 0xffffffff
jmp 0x4bf0bf
mov eax, dword [ebp - 0x10]
test eax, eax
jns 0x4bec1c
mov eax, 0xffffffff
jmp 0x4bf0bf
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_memset
jmp 0x4bed8e
mov eax, dword [ebp - 0x20]
shl eax, 8
mov edx, eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
movzx eax, al
or eax, edx
mov dword [ebp - 0x20], eax
add dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], 3
jne 0x4bed8a
mov eax, dword [ebp - 0x20]
shr eax, 0x12
and eax, 0x3f
mov ecx, eax
mov eax, dword [ebp - 0x24]
lea edx, [eax + 1]
mov dword [ebp - 0x24], edx
movzx edx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_d___dest___ptrdiff_t_enclen]
mov byte [eax], dl
mov eax, dword [ebp - 0x3c]
and eax, 1
test eax, eax
je 0x4beca7
add dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
and eax, 0x3f
test eax, eax
jne 0x4beca7
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x24]
lea edx, [eax + 1]
mov dword [ebp - 0x24], edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0x20]
shr eax, 0xc
and eax, 0x3f
mov ecx, eax
mov eax, dword [ebp - 0x24]
lea edx, [eax + 1]
mov dword [ebp - 0x24], edx
movzx edx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_d___dest___ptrdiff_t_enclen]
mov byte [eax], dl
mov eax, dword [ebp - 0x3c]
and eax, 1
test eax, eax
je 0x4becef
add dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
and eax, 0x3f
test eax, eax
jne 0x4becef
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x24]
lea edx, [eax + 1]
mov dword [ebp - 0x24], edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0x20]
shr eax, 6
and eax, 0x3f
mov ecx, eax
mov eax, dword [ebp - 0x24]
lea edx, [eax + 1]
mov dword [ebp - 0x24], edx
movzx edx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_d___dest___ptrdiff_t_enclen]
mov byte [eax], dl
mov eax, dword [ebp - 0x3c]
and eax, 1
test eax, eax
je 0x4bed37
add dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
and eax, 0x3f
test eax, eax
jne 0x4bed37
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x24]
lea edx, [eax + 1]
mov dword [ebp - 0x24], edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0x20]
and eax, 0x3f
mov ecx, eax
mov eax, dword [ebp - 0x24]
lea edx, [eax + 1]
mov dword [ebp - 0x24], edx
movzx edx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_d___dest___ptrdiff_t_enclen]
mov byte [eax], dl
mov eax, dword [ebp - 0x3c]
and eax, 1
test eax, eax
je 0x4bed7c
add dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
and eax, 0x3f
test eax, eax
jne 0x4bed7c
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x24]
lea edx, [eax + 1]
mov dword [ebp - 0x24], edx
mov byte [eax], 0xa
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
add dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x14]
jb 0x4bec3b
cmp dword [ebp - 0x18], 2
je 0x4beece
cmp dword [ebp - 0x18], 2
jg 0x4befe4
cmp dword [ebp - 0x18], 0
je 0x4bf03d
cmp dword [ebp - 0x18], 1
jne 0x4befe4
shl dword [ebp - 0x20], 4
mov eax, dword [ebp - 0x20]
shr eax, 6
and eax, 0x3f
mov ecx, eax
mov eax, dword [ebp - 0x24]
lea edx, [eax + 1]
mov dword [ebp - 0x24], edx
movzx edx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_d___dest___ptrdiff_t_enclen]
mov byte [eax], dl
mov eax, dword [ebp - 0x3c]
and eax, 1
test eax, eax
je 0x4bee0e
add dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
and eax, 0x3f
test eax, eax
jne 0x4bee0e
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x24]
lea edx, [eax + 1]
mov dword [ebp - 0x24], edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0x20]
and eax, 0x3f
mov ecx, eax
mov eax, dword [ebp - 0x24]
lea edx, [eax + 1]
mov dword [ebp - 0x24], edx
movzx edx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_d___dest___ptrdiff_t_enclen]
mov byte [eax], dl
mov eax, dword [ebp - 0x3c]
and eax, 1
test eax, eax
je 0x4bee53
add dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
and eax, 0x3f
test eax, eax
jne 0x4bee53
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x24]
lea edx, [eax + 1]
mov dword [ebp - 0x24], edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0x24]
lea edx, [eax + 1]
mov dword [ebp - 0x24], edx
mov byte [eax], 0x3d
mov eax, dword [ebp - 0x3c]
and eax, 1
test eax, eax
je 0x4bee8a
add dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
and eax, 0x3f
test eax, eax
jne 0x4bee8a
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x24]
lea edx, [eax + 1]
mov dword [ebp - 0x24], edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0x24]
lea edx, [eax + 1]
mov dword [ebp - 0x24], edx
mov byte [eax], 0x3d
mov eax, dword [ebp - 0x3c]
and eax, 1
test eax, eax
je 0x4bf040
add dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
and eax, 0x3f
test eax, eax
jne 0x4bf040
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x24]
lea edx, [eax + 1]
mov dword [ebp - 0x24], edx
mov byte [eax], 0xa
jmp 0x4bf040
shl dword [ebp - 0x20], 2
mov eax, dword [ebp - 0x20]
shr eax, 0xc
and eax, 0x3f
mov ecx, eax
mov eax, dword [ebp - 0x24]
lea edx, [eax + 1]
mov dword [ebp - 0x24], edx
movzx edx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_d___dest___ptrdiff_t_enclen]
mov byte [eax], dl
mov eax, dword [ebp - 0x3c]
and eax, 1
test eax, eax
je 0x4bef1a
add dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
and eax, 0x3f
test eax, eax
jne 0x4bef1a
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x24]
lea edx, [eax + 1]
mov dword [ebp - 0x24], edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0x20]
shr eax, 6
and eax, 0x3f
mov ecx, eax
mov eax, dword [ebp - 0x24]
lea edx, [eax + 1]
mov dword [ebp - 0x24], edx
movzx edx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_d___dest___ptrdiff_t_enclen]
mov byte [eax], dl
mov eax, dword [ebp - 0x3c]
and eax, 1
test eax, eax
je 0x4bef62
add dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
and eax, 0x3f
test eax, eax
jne 0x4bef62
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x24]
lea edx, [eax + 1]
mov dword [ebp - 0x24], edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0x20]
and eax, 0x3f
mov ecx, eax
mov eax, dword [ebp - 0x24]
lea edx, [eax + 1]
mov dword [ebp - 0x24], edx
movzx edx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_d___dest___ptrdiff_t_enclen]
mov byte [eax], dl
mov eax, dword [ebp - 0x3c]
and eax, 1
test eax, eax
je 0x4befa7
add dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
and eax, 0x3f
test eax, eax
jne 0x4befa7
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x24]
lea edx, [eax + 1]
mov dword [ebp - 0x24], edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0x24]
lea edx, [eax + 1]
mov dword [ebp - 0x24], edx
mov byte [eax], 0x3d
mov eax, dword [ebp - 0x3c]
and eax, 1
test eax, eax
je 0x4bf043
add dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
and eax, 0x3f
test eax, eax
jne 0x4bf043
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x24]
lea edx, [eax + 1]
mov dword [ebp - 0x24], edx
mov byte [eax], 0xa
jmp 0x4bf043
mov eax, dword [0x4f7184]
test eax, eax
jne 0x4bf033
mov dword [0x4f7184], 1
mov dword [esp], str.src_lib_encoding_binascii.c
call fcn.004cc7ce
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.base64_encode
mov dword [esp + 4], 0x130
mov dword [esp], eax
call fcn.004cc59f
mov eax, 0xffffffff
jmp 0x4bf0bf
nop
jmp 0x4bf044
nop
jmp 0x4bf044
nop
mov eax, dword [ebp - 0x3c]
and eax, 1
test eax, eax
je 0x4bf060
cmp dword [ebp - 0x1c], 0
je 0x4bf060
mov eax, dword [ebp - 0x24]
lea edx, [eax + 1]
mov dword [ebp - 0x24], edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
mov edx, eax
mov eax, dword [ebp - 0x10]
cmp edx, eax
sete al
movzx eax, al
test eax, eax
jne 0x4bf0b0
mov dword [esp], str.src_lib_encoding_binascii.c
call fcn.004cc7ce
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x4ed1a0
mov dword [esp + 8], str.base64_encode
mov dword [esp + 4], 0x13d
mov dword [esp], eax
call fcn.004cc43c
call fcn.004cc7b4
mov eax, dword [ebp - 0x24]
lea edx, [eax + 1]
mov dword [ebp - 0x24], edx
mov byte [eax], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
xor ecx, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x4bf0cf
call sub.libssp_0.dll___stack_chk_fail
leave
ret