Function at 0x557650
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582f09
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 0x5576a8
mov eax, dword [edi]
jmp 0x5576aa
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 0x557985
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 0x5577d4
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 [0x603f18], 0x10
mov eax, 0x603f04
movzx ecx, byte [ebp + ebx - 0x18]
cmovae eax, dword [0x603f04]
mov dl, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov eax, ecx
not eax
mov byte [ebp - 0xd], dl
cmp eax, 1
jbe 0x557809
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x557809
cmp dword [edi + 0x14], esi
jae 0x55778c
push ecx
push esi
mov ecx, edi
call fcn.00456930
mov dl, byte [ebp - 0xd]
test esi, esi
je 0x5577bf
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x5577a7
mov eax, dword [edi]
jmp 0x5577a9
test esi, esi
jne 0x55777f
mov dword [edi + 0x10], esi
cmp dword [edi + 0x14], 0x10
jb 0x5577a0
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x5577bf
mov eax, edi
mov byte [eax], 0
jmp 0x5577bf
mov eax, edi
mov byte [eax + ecx], dl
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x5577b9
mov eax, dword [edi]
jmp 0x5577bb
mov eax, edi
mov byte [eax + esi], 0
inc ebx
cmp ebx, 4
jl 0x557730
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 0x5576d0
test ebx, ebx
je 0x557985
mov eax, ebx
cmp ebx, 3
jge 0x557819
cmp eax, 3
jae 0x557814
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x5577f1
mov cl, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
jmp 0x55781c
push str.string_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
call fcn.00536fa4
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 0x557904
nop word [eax + eax]
cmp dword [0x603f18], 0x10
mov eax, 0x603f04
movzx ecx, byte [ebp + edx - 0x18]
cmovae eax, dword [0x603f04]
mov al, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov byte [ebp + 0x13], al
mov eax, ecx
not eax
cmp eax, 1
jbe 0x557809
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x557809
cmp dword [edi + 0x14], esi
jae 0x5578bc
push ecx
push esi
mov ecx, edi
call fcn.00456930
mov edx, dword [ebp - 0x14]
test esi, esi
je 0x5578f5
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x5578d7
mov eax, dword [edi]
jmp 0x5578d9
test esi, esi
jne 0x5578af
mov dword [edi + 0x10], esi
cmp dword [edi + 0x14], 0x10
jb 0x5578d0
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x5578f5
mov eax, edi
mov byte [eax], 0
jmp 0x5578f5
mov eax, edi
mov dl, byte [ebp + 0x13]
mov byte [ecx + eax], dl
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x5578ec
mov eax, dword [edi]
jmp 0x5578ee
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 0x557860
cmp ebx, 3
jge 0x557985
nop dword [eax]
mov ecx, dword [edi + 0x10]
inc ebx
mov eax, ecx
not eax
cmp eax, 1
jbe 0x557809
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x557809
cmp dword [edi + 0x14], esi
jae 0x55794c
push ecx
push esi
mov ecx, edi
call fcn.00456930
test esi, esi
je 0x557980
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x557967
mov eax, dword [edi]
jmp 0x557969
test esi, esi
jne 0x55793f
mov dword [edi + 0x10], esi
cmp dword [edi + 0x14], 0x10
jb 0x557960
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x557980
mov eax, edi
mov byte [eax], 0
jmp 0x557980
mov eax, edi
mov byte [ecx + eax], 0x3d
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x55797a
mov eax, dword [edi]
jmp 0x55797c
mov eax, edi
mov byte [eax + esi], 0
cmp ebx, 3
jl 0x557910
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