Function at 0x574840
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59fba9
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x5ee034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], 0
call fcn.0041e610
call fcn.00404690
mov esi, eax
mov byte [ebp - 0x15], 0
lea edx, [ebp - 0x15]
mov ecx, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
call fcn.004198d0
mov dword [ebp - 4], 0
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], 1
test eax, eax
je 0x574adc
dec eax
mov dword [ebp + 8], eax
mov al, byte [ebx]
inc ebx
mov byte [ebp + edi - 0x1c], al
inc edi
mov ch, byte [ebp - 0x1a]
mov dl, byte [ebp - 0x1b]
mov cl, byte [ebp - 0x1c]
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x10], ch
mov byte [ebp - 0x21], dl
mov byte [ebp - 0x16], cl
cmp edi, 3
jne 0x57499e
mov al, cl
xor edi, edi
shr al, 2
and cl, 3
mov byte [ebp - 0x20], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x1f], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
and al, 0x3f
mov byte [ebp - 0x1e], cl
mov ecx, 0x5f4fcc
mov byte [ebp - 0x1d], al
call fcn.00404690
mov ebx, eax
nop dword [eax]
cmp dword [ebx + 0x14], 0x10
mov ecx, ebx
jb 0x57493a
mov ecx, dword [ebx]
movzx eax, byte [ebp + edi - 0x20]
mov edx, dword [esi + 0x14]
mov al, byte [eax + ecx]
mov ecx, dword [esi + 0x10]
mov byte [ebp - 0x14], al
cmp ecx, edx
jae 0x574977
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x57495e
mov eax, dword [esi]
add ecx, eax
lea edx, [ebp - 0x14]
call fcn.004198d0
inc ecx
mov byte [ebp - 0x15], 0
lea edx, [ebp - 0x15]
call fcn.004198d0
jmp 0x57498a
push dword [ebp - 0x14]
mov byte [ebp - 0x30], 0
push dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.00449020
inc edi
cmp edi, 4
jl 0x574930
mov ebx, dword [ebp - 0x28]
xor edi, edi
mov dl, byte [ebp - 0x21]
mov cl, byte [ebp - 0x16]
mov ch, byte [ebp - 0x10]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x5748c4
mov dword [ebp - 0x30], edi
test edi, edi
je 0x574adc
mov eax, edi
cmp edi, 3
jge 0x5749d8
cmp eax, 3
jae 0x574af1
mov byte [ebp + eax - 0x1c], 0
inc eax
cmp eax, 3
jl 0x5749be
mov ch, byte [ebp - 0x1a]
mov dl, byte [ebp - 0x1b]
mov cl, byte [ebp - 0x1c]
mov al, cl
xor ebx, ebx
shr al, 2
and cl, 3
mov byte [ebp - 0x20], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x1f], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x1d], ch
lea eax, [edi + 1]
mov byte [ebp - 0x1e], dl
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x574a83
mov ecx, 0x5f4fcc
call fcn.00404690
mov edi, eax
nop
cmp dword [edi + 0x14], 0x10
mov ecx, edi
jb 0x574a2a
mov ecx, dword [edi]
movzx eax, byte [ebp + ebx - 0x20]
mov edx, dword [esi + 0x14]
mov al, byte [eax + ecx]
mov ecx, dword [esi + 0x10]
mov byte [ebp - 0x14], al
cmp ecx, edx
jae 0x574a67
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x574a4e
mov eax, dword [esi]
add ecx, eax
lea edx, [ebp - 0x14]
call fcn.004198d0
inc ecx
mov byte [ebp - 0x10], 0
lea edx, [ebp - 0x10]
call fcn.004198d0
jmp 0x574a7a
push dword [ebp - 0x14]
mov byte [ebp - 0x28], 0
push dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.00449020
inc ebx
cmp ebx, dword [ebp - 0x1c]
jl 0x574a20
mov edi, dword [ebp - 0x30]
cmp edi, 3
jge 0x574adc
mov ebx, 3
mov byte [ebp - 0x10], 0x3d
sub ebx, edi
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x574ac5
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x574aac
mov eax, dword [esi]
add ecx, eax
lea edx, [ebp - 0x10]
call fcn.004198d0
inc ecx
mov byte [ebp - 0x16], 0
lea edx, [ebp - 0x16]
call fcn.004198d0
jmp 0x574ad7
push 0x3d
mov byte [ebp - 0x28], 0
push dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.00449020
sub ebx, 1
jne 0x574a93
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0057dae8
int3