Function at 0x402540
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470349
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4954f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x30], esi
mov ecx, edx
mov dword [ebp - 0x24], 0
cmp dword [edx + 0x14], 0x10
jb 0x402581
mov ecx, dword [edx]
mov eax, dword [edx + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
xor edi, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 1
test eax, eax
je 0x402797
nop dword [eax]
dec eax
mov dword [ebp - 0x1c], eax
mov al, byte [ecx]
inc ecx
mov byte [ebp + edi - 0x10], al
inc edi
mov bl, byte [ebp - 0xe]
mov dl, byte [ebp - 0x10]
mov bh, byte [ebp - 0xf]
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 0x1e], bl
mov byte [ebp - 0x1d], dl
cmp edi, 3
jne 0x402674
mov al, dl
mov cl, dl
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, bl
mov byte [ebp - 0x17], cl
mov cl, bh
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, bl
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
xor edi, edi
nop dword [eax]
cmp dword [0x495ec8], 0x10
mov ecx, 0x495eb4
movzx eax, byte [ebp + edi - 0x18]
cmovae ecx, dword [0x495eb4]
mov edx, dword [esi + 0x14]
mov bl, byte [eax + ecx]
mov ecx, dword [esi + 0x10]
mov byte [ebp - 0x14], bl
cmp ecx, edx
jae 0x402651
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x402647
mov eax, dword [esi]
mov byte [eax + ecx], bl
mov byte [eax + ecx + 1], 0
jmp 0x402663
push dword [ebp - 0x14]
mov byte [ebp - 0x28], 0
push dword [ebp - 0x28]
push ecx
mov ecx, esi
call fcn.00409480
inc edi
cmp edi, 4
jl 0x402610
mov ecx, dword [ebp - 0x2c]
xor edi, edi
mov dl, byte [ebp - 0x1d]
mov bl, byte [ebp - 0x1e]
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4025b0
mov dword [ebp - 0x14], edi
test edi, edi
je 0x402797
mov eax, edi
cmp edi, 3
jge 0x4026ae
cmp eax, 3
jae 0x4027ab
mov byte [ebp + eax - 0x10], 0
inc eax
cmp eax, 3
jl 0x402694
mov bl, byte [ebp - 0xe]
mov bh, byte [ebp - 0xf]
mov dl, byte [ebp - 0x10]
mov al, dl
and dl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, bh
shr al, 4
and bh, 0xf
shl dl, 4
add dl, al
shl bh, 2
mov al, bl
mov byte [ebp - 0x17], dl
shr al, 6
and bl, 0x3f
add bh, al
mov byte [ebp - 0x15], bl
lea eax, [edi + 1]
mov byte [ebp - 0x16], bh
xor ebx, ebx
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x40274e
mov edi, eax
nop word [eax + eax]
cmp dword [0x495ec8], 0x10
mov ecx, 0x495eb4
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [0x495eb4]
mov edx, dword [esi + 0x14]
mov al, byte [eax + ecx]
mov ecx, dword [esi + 0x10]
mov byte [ebp - 0x10], al
cmp ecx, edx
jae 0x402734
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x402727
mov eax, dword [esi]
mov dl, byte [ebp - 0x10]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x402746
push dword [ebp - 0x10]
mov byte [ebp - 0x1c], 0
push dword [ebp - 0x1c]
push ecx
mov ecx, esi
call fcn.00409480
inc ebx
cmp ebx, edi
jl 0x4026f0
mov edi, dword [ebp - 0x14]
cmp edi, 3
jge 0x402797
mov ebx, 3
sub ebx, edi
nop word [eax + eax]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jae 0x402781
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x402779
mov eax, dword [esi]
mov word [eax + ecx], 0x3d
jmp 0x402792
push 0x3d
mov byte [ebp - 0x1c], 0
push dword [ebp - 0x1c]
push ecx
mov ecx, esi
call fcn.00409480
sub ebx, 1
jne 0x402760
mov eax, esi
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.004445cd
int3