Function at 0x402280
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50508e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
xor eax, eax
push edi
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], 0
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xf
mov byte [edi], al
mov dword [ebp - 4], eax
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 1
test eax, eax
je 0x4024d1
push ebx
lea ebx, [ebx]
dec eax
mov dword [ebp + 8], eax
mov al, byte [edx]
inc edx
mov byte [ebp + esi - 0x14], al
inc esi
mov ah, byte [ebp - 0x12]
mov bl, byte [ebp - 0x14]
mov bh, byte [ebp - 0x13]
mov dword [ebp - 0x28], edx
mov byte [ebp - 0xe], ah
mov byte [ebp - 0xd], bl
cmp esi, 3
jne 0x4023a3
mov al, bl
mov cl, bl
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, bh
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
and ah, 0x3f
mov cl, bh
shr al, 6
and cl, 0xf
mov byte [ebp - 0x15], ah
shl cl, 2
add cl, al
xor esi, esi
mov byte [ebp - 0x16], cl
jmp 0x402340
cmp dword [0x534cf8], 0x10
mov ecx, 0x534ce4
jb 0x402354
mov ecx, dword [0x534ce4]
movzx eax, byte [ebp + esi - 0x18]
mov edx, dword [edi + 0x14]
mov bl, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov byte [ebp - 0x20], bl
cmp ecx, edx
jae 0x402382
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x402378
mov eax, dword [edi]
mov byte [eax + ecx], bl
mov byte [eax + ecx + 1], 0
jmp 0x402395
push dword [ebp - 0x20]
mov byte [ebp - 0x24], 0
mov ecx, edi
push dword [ebp - 0x24]
push 1
call fcn.00402bc0
inc esi
cmp esi, 4
jl 0x402340
mov edx, dword [ebp - 0x28]
xor esi, esi
mov bl, byte [ebp - 0xd]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4022e0
test esi, esi
je 0x4024be
mov ecx, 3
sub ecx, esi
mov dword [ebp + 8], ecx
cmp esi, 3
jge 0x4023e1
push ecx
lea eax, [ebp - 0x14]
add eax, esi
push 0
push eax
call fcn.004e14f0
mov cl, byte [ebp - 0x12]
add esp, 0xc
mov bh, byte [ebp - 0x13]
mov bl, byte [ebp - 0x14]
jmp 0x4023e4
mov cl, byte [ebp - 0xe]
mov al, bl
and bl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, bh
shr al, 4
and bh, 0xf
shl bl, 4
add bl, al
shl bh, 2
mov al, cl
mov byte [ebp - 0x17], bl
shr al, 6
and cl, 0x3f
add bh, al
mov byte [ebp - 0x15], cl
mov byte [ebp - 0x16], bh
lea eax, [esi + 1]
xor ebx, ebx
test eax, eax
jle 0x402480
jmp 0x402420
cmp dword [0x534cf8], 0x10
mov ecx, 0x534ce4
jb 0x402434
mov ecx, dword [0x534ce4]
movzx eax, byte [ebp + ebx - 0x18]
mov edx, dword [edi + 0x14]
mov al, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov byte [ebp - 0x14], al
cmp ecx, edx
jae 0x402465
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x402458
mov eax, dword [edi]
mov dl, byte [ebp - 0x14]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x402478
push dword [ebp - 0x14]
mov byte [ebp - 0x28], 0
mov ecx, edi
push dword [ebp - 0x28]
push 1
call fcn.00402bc0
inc ebx
lea eax, [esi + 1]
cmp ebx, eax
jl 0x402420
cmp esi, 3
jge 0x4024be
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
cmp ecx, edx
jae 0x4024a6
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x40249e
mov eax, dword [edi]
mov word [eax + ecx], 0x3d
jmp 0x4024b8
push 0x3d
mov byte [ebp - 0x28], 0
mov ecx, edi
push dword [ebp - 0x28]
push 1
call fcn.00402bc0
sub dword [ebp + 8], 1
jne 0x402485
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret