Function at 0x557640
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582ef9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5fad8c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
mov edi, dword [ebp + 8]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x557698
mov eax, dword [edi]
jmp 0x55769a
mov eax, edi
mov byte [eax], 0
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
test eax, eax
je 0x557975
mov ecx, dword [ebp + 0xc]
nop dword [eax + eax]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [ecx]
inc ecx
mov byte [ebp + ebx - 0x14], al
inc ebx
mov ah, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x10], ah
mov byte [ebp - 0xe], dl
mov byte [ebp - 0xf], dh
cmp ebx, 3
jne 0x5577c4
mov al, dh
mov cl, dh
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ah
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
xor ebx, ebx
nop
cmp dword [0x603f20], 0x10
mov eax, 0x603f0c
movzx ecx, byte [ebp + ebx - 0x18]
cmovae eax, dword [0x603f0c]
mov dl, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov eax, ecx
not eax
mov byte [ebp - 0xd], dl
cmp eax, 1
jbe 0x5577f9
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x5577f9
cmp dword [edi + 0x14], esi
jae 0x55777c
push ecx
push esi
mov ecx, edi
call fcn.00456930
mov dl, byte [ebp - 0xd]
test esi, esi
je 0x5577af
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x557797
mov eax, dword [edi]
jmp 0x557799
test esi, esi
jne 0x55776f
mov dword [edi + 0x10], esi
cmp dword [edi + 0x14], 0x10
jb 0x557790
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x5577af
mov eax, edi
mov byte [eax], 0
jmp 0x5577af
mov eax, edi
mov byte [eax + ecx], dl
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x5577a9
mov eax, dword [edi]
jmp 0x5577ab
mov eax, edi
mov byte [eax + esi], 0
inc ebx
cmp ebx, 4
jl 0x557720
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov dl, byte [ebp - 0xe]
mov dh, byte [ebp - 0xf]
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x5576c0
test ebx, ebx
je 0x557975
mov eax, ebx
cmp ebx, 3
jge 0x557809
cmp eax, 3
jae 0x557804
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x5577e1
mov cl, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
jmp 0x55780c
push str.string_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
call fcn.00537094
mov cl, byte [ebp - 0x10]
mov al, dh
and dh, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl dh, 4
add dh, al
shl dl, 2
mov al, cl
mov byte [ebp - 0x17], dh
shr al, 6
and cl, 0x3f
add dl, al
mov byte [ebp - 0x15], cl
mov byte [ebp - 0x16], dl
lea eax, [ebx + 1]
xor edx, edx
mov dword [ebp - 0x14], edx
test eax, eax
jle 0x5578f4
nop word [eax + eax]
cmp dword [0x603f20], 0x10
mov eax, 0x603f0c
movzx ecx, byte [ebp + edx - 0x18]
cmovae eax, dword [0x603f0c]
mov al, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov byte [ebp + 0x13], al
mov eax, ecx
not eax
cmp eax, 1
jbe 0x5577f9
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x5577f9
cmp dword [edi + 0x14], esi
jae 0x5578ac
push ecx
push esi
mov ecx, edi
call fcn.00456930
mov edx, dword [ebp - 0x14]
test esi, esi
je 0x5578e5
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x5578c7
mov eax, dword [edi]
jmp 0x5578c9
test esi, esi
jne 0x55789f
mov dword [edi + 0x10], esi
cmp dword [edi + 0x14], 0x10
jb 0x5578c0
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x5578e5
mov eax, edi
mov byte [eax], 0
jmp 0x5578e5
mov eax, edi
mov dl, byte [ebp + 0x13]
mov byte [ecx + eax], dl
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x5578dc
mov eax, dword [edi]
jmp 0x5578de
mov eax, edi
mov edx, dword [ebp - 0x14]
mov byte [esi + eax], 0
inc edx
lea eax, [ebx + 1]
mov dword [ebp - 0x14], edx
cmp edx, eax
jl 0x557850
cmp ebx, 3
jge 0x557975
nop dword [eax]
mov ecx, dword [edi + 0x10]
inc ebx
mov eax, ecx
not eax
cmp eax, 1
jbe 0x5577f9
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x5577f9
cmp dword [edi + 0x14], esi
jae 0x55793c
push ecx
push esi
mov ecx, edi
call fcn.00456930
test esi, esi
je 0x557970
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x557957
mov eax, dword [edi]
jmp 0x557959
test esi, esi
jne 0x55792f
mov dword [edi + 0x10], esi
cmp dword [edi + 0x14], 0x10
jb 0x557950
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x557970
mov eax, edi
mov byte [eax], 0
jmp 0x557970
mov eax, edi
mov byte [ecx + eax], 0x3d
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x55796a
mov eax, dword [edi]
jmp 0x55796c
mov eax, edi
mov byte [eax + esi], 0
cmp ebx, 3
jl 0x557900
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret