Function at 0x4066e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xd896e9
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0xdd50c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x54]
push 0x41
push 0
push eax
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], 0
call fcn.00d62a80
add esp, 0xc
xor ecx, ecx
nop word [eax + eax]
mov al, cl
add al, 0x41
mov byte [ebp + ecx - 0x54], al
inc ecx
cmp ecx, 0x1a
jl 0x406730
xor ecx, ecx
mov al, cl
add al, 0x61
mov byte [ebp + ecx - 0x3a], al
inc ecx
cmp ecx, 0x1a
jl 0x406740
xor ecx, ecx
mov al, cl
add al, 0x30
mov byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 0xa
jl 0x406750
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov word [ebp - 0x16], 0x2f2b
mov dword [edi + 0x10], 0
jb 0x40678a
mov eax, dword [edi]
jmp 0x40678c
mov eax, edi
mov byte [eax], 0
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x68], 1
test eax, eax
je 0x406a35
mov ecx, dword [ebp + 0xc]
nop dword [eax]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [ecx]
inc ecx
mov byte [ebp + ebx - 0x5c], al
inc ebx
mov ah, byte [ebp - 0x5a]
mov dl, byte [ebp - 0x5b]
mov dh, byte [ebp - 0x5c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x55], ah
mov byte [ebp - 0x62], dl
mov byte [ebp - 0x63], dh
cmp ebx, 3
jne 0x4068a2
mov al, dh
mov cl, dh
shr al, 2
and cl, 3
mov byte [ebp - 0x60], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x5f], 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 - 0x5e], cl
mov byte [ebp - 0x5d], al
xor ebx, ebx
nop
movzx eax, byte [ebp + ebx - 0x60]
mov ecx, dword [edi + 0x10]
mov dl, byte [ebp + eax - 0x54]
mov eax, ecx
not eax
mov byte [ebp - 0x61], dl
cmp eax, 1
jbe 0x4068d7
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x4068d7
cmp dword [edi + 0x14], esi
jae 0x40685a
push ecx
push esi
mov ecx, edi
call fcn.00406540
mov dl, byte [ebp - 0x61]
test esi, esi
je 0x40688d
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x406875
mov eax, dword [edi]
jmp 0x406877
test esi, esi
jne 0x40684d
mov dword [edi + 0x10], esi
cmp dword [edi + 0x14], 0x10
jb 0x40686e
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x40688d
mov eax, edi
mov byte [eax], 0
jmp 0x40688d
mov eax, edi
mov byte [eax + ecx], dl
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x406887
mov eax, dword [edi]
jmp 0x406889
mov eax, edi
mov byte [eax + esi], 0
inc ebx
cmp ebx, 4
jl 0x406810
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov dl, byte [ebp - 0x62]
mov dh, byte [ebp - 0x63]
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4067b0
test ebx, ebx
je 0x406a35
mov eax, ebx
cmp ebx, 3
jge 0x4068e6
cmp eax, 3
jae 0x4068e1
mov byte [ebp + eax - 0x5c], 0
inc eax
cmp eax, 3
jl 0x4068bf
mov cl, byte [ebp - 0x5a]
mov dl, byte [ebp - 0x5b]
mov dh, byte [ebp - 0x5c]
jmp 0x4068e9
push 0xd8c620
call fcn.00d1018a
call fcn.00d116d5
mov cl, byte [ebp - 0x55]
mov al, dh
and dh, 3
shr al, 2
mov byte [ebp - 0x60], 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 - 0x5f], dh
shr al, 6
and cl, 0x3f
add dl, al
mov byte [ebp - 0x5d], cl
mov byte [ebp - 0x5e], dl
lea eax, [ebx + 1]
xor edx, edx
mov dword [ebp - 0x5c], edx
test eax, eax
jle 0x4069ba
nop word [eax + eax]
movzx eax, byte [ebp + edx - 0x60]
mov ecx, dword [edi + 0x10]
mov al, byte [ebp + eax - 0x54]
mov byte [ebp - 0x55], al
mov eax, ecx
not eax
cmp eax, 1
jbe 0x4068d7
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x4068d7
cmp dword [edi + 0x14], esi
jae 0x406972
push ecx
push esi
mov ecx, edi
call fcn.00406540
mov edx, dword [ebp - 0x5c]
test esi, esi
je 0x4069ab
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x40698d
mov eax, dword [edi]
jmp 0x40698f
test esi, esi
jne 0x406965
mov dword [edi + 0x10], esi
cmp dword [edi + 0x14], 0x10
jb 0x406986
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x4069ab
mov eax, edi
mov byte [eax], 0
jmp 0x4069ab
mov eax, edi
mov dl, byte [ebp - 0x55]
mov byte [ecx + eax], dl
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x4069a2
mov eax, dword [edi]
jmp 0x4069a4
mov eax, edi
mov edx, dword [ebp - 0x5c]
mov byte [esi + eax], 0
inc edx
lea eax, [ebx + 1]
mov dword [ebp - 0x5c], edx
cmp edx, eax
jl 0x406930
cmp ebx, 3
jge 0x406a35
nop
mov ecx, dword [edi + 0x10]
inc ebx
mov eax, ecx
not eax
cmp eax, 1
jbe 0x4068d7
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x4068d7
cmp dword [edi + 0x14], esi
jae 0x4069fc
push ecx
push esi
mov ecx, edi
call fcn.00406540
test esi, esi
je 0x406a30
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x406a17
mov eax, dword [edi]
jmp 0x406a19
test esi, esi
jne 0x4069ef
mov dword [edi + 0x10], esi
cmp dword [edi + 0x14], 0x10
jb 0x406a10
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x406a30
mov eax, edi
mov byte [eax], 0
jmp 0x406a30
mov eax, edi
mov byte [ecx + eax], 0x3d
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x406a2a
mov eax, dword [edi]
jmp 0x406a2c
mov eax, edi
mov byte [eax + esi], 0
cmp ebx, 3
jl 0x4069c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00d117b1
mov esp, ebp
pop ebp
ret 0xc