Function at 0x405bc0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xd72699
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0xdbd0c4]
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.00d4ba60
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 0x405c10
xor ecx, ecx
mov al, cl
add al, 0x61
mov byte [ebp + ecx - 0x3a], al
inc ecx
cmp ecx, 0x1a
jl 0x405c20
xor ecx, ecx
mov al, cl
add al, 0x30
mov byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 0xa
jl 0x405c30
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 0x405c6a
mov eax, dword [edi]
jmp 0x405c6c
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 0x405f15
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 0x405d82
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 0x405db7
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x405db7
cmp dword [edi + 0x14], esi
jae 0x405d3a
push ecx
push esi
mov ecx, edi
call fcn.00405a20
mov dl, byte [ebp - 0x61]
test esi, esi
je 0x405d6d
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x405d55
mov eax, dword [edi]
jmp 0x405d57
test esi, esi
jne 0x405d2d
mov dword [edi + 0x10], esi
cmp dword [edi + 0x14], 0x10
jb 0x405d4e
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x405d6d
mov eax, edi
mov byte [eax], 0
jmp 0x405d6d
mov eax, edi
mov byte [eax + ecx], dl
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x405d67
mov eax, dword [edi]
jmp 0x405d69
mov eax, edi
mov byte [eax + esi], 0
inc ebx
cmp ebx, 4
jl 0x405cf0
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 0x405c90
test ebx, ebx
je 0x405f15
mov eax, ebx
cmp ebx, 3
jge 0x405dc6
cmp eax, 3
jae 0x405dc1
mov byte [ebp + eax - 0x5c], 0
inc eax
cmp eax, 3
jl 0x405d9f
mov cl, byte [ebp - 0x5a]
mov dl, byte [ebp - 0x5b]
mov dh, byte [ebp - 0x5c]
jmp 0x405dc9
push 0xd75620
call fcn.00cf917a
call fcn.00cfa6c5
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 0x405e9a
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 0x405db7
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x405db7
cmp dword [edi + 0x14], esi
jae 0x405e52
push ecx
push esi
mov ecx, edi
call fcn.00405a20
mov edx, dword [ebp - 0x5c]
test esi, esi
je 0x405e8b
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x405e6d
mov eax, dword [edi]
jmp 0x405e6f
test esi, esi
jne 0x405e45
mov dword [edi + 0x10], esi
cmp dword [edi + 0x14], 0x10
jb 0x405e66
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x405e8b
mov eax, edi
mov byte [eax], 0
jmp 0x405e8b
mov eax, edi
mov dl, byte [ebp - 0x55]
mov byte [ecx + eax], dl
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x405e82
mov eax, dword [edi]
jmp 0x405e84
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 0x405e10
cmp ebx, 3
jge 0x405f15
nop
mov ecx, dword [edi + 0x10]
inc ebx
mov eax, ecx
not eax
cmp eax, 1
jbe 0x405db7
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x405db7
cmp dword [edi + 0x14], esi
jae 0x405edc
push ecx
push esi
mov ecx, edi
call fcn.00405a20
test esi, esi
je 0x405f10
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x405ef7
mov eax, dword [edi]
jmp 0x405ef9
test esi, esi
jne 0x405ecf
mov dword [edi + 0x10], esi
cmp dword [edi + 0x14], 0x10
jb 0x405ef0
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x405f10
mov eax, edi
mov byte [eax], 0
jmp 0x405f10
mov eax, edi
mov byte [ecx + eax], 0x3d
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x405f0a
mov eax, dword [edi]
jmp 0x405f0c
mov eax, edi
mov byte [eax + esi], 0
cmp ebx, 3
jl 0x405ea0
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.00cfa7a1
mov esp, ebp
pop ebp
ret 0xc