Function at 0xcd5c8a
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0xd2b0e8]
or dword [0xd2b0ec], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 8], edi
movzx esi, byte [edi + 0xd]
or esi, dword [ebx]
mov dword [ebp - 0x10], ecx
mov dword [ebx], esi
mov eax, dword [ecx + 0xc]
xor eax, esi
and eax, 0xff0000
xor dword [ecx + 0xc], eax
mov edx, dword [0xd2b0e0]
xor eax, eax
inc eax
shl edx, 0x14
or edx, eax
mov dword [ebp - 0x18], eax
mov eax, dword [0xd2b0e8]
or dword [0xd2b0ec], eax
mov dword [0xd2b0e0], edx
test byte [ecx + 0xc], 0x80
je 0xcd5cff
mov eax, dword [edi + 0xc]
push dword [ebx]
and eax, 3
push eax
call fcn.00cd5351
mov edi, dword [0xd2b0dc]
jmp 0xcd5d46
mov ecx, dword [0xd2b0dc]
mov eax, ecx
not eax
test al, 0xfa
push 0
pop eax
setne al
lea edi, [ecx + ecx]
mov ecx, dword [ebp - 0x10]
or edi, eax
cmp dword [ecx + 0x14], 0
mov dword [0xd2b0dc], edi
je 0xcd5d2b
cmp byte [ecx + 0xd], 0
jne 0xcd5d4c
mov al, byte [ebx]
mov byte [ecx + 0xd], al
mov eax, edi
not eax
push 0
test al, 0xfa
pop ecx
setne cl
add edi, edi
or edi, ecx
mov dword [0xd2b0dc], edi
mov edx, dword [0xd2b0e0]
test dword [ebx], 0x800000
je 0xcd5d73
mov edx, dword [ebp - 8]
lea ecx, [ebx + 4]
call fcn.00cd74ea
test eax, eax
jne 0xcd63f8
mov edx, dword [0xd2b0e0]
mov edi, dword [0xd2b0dc]
mov esi, dword [ebx]
and esi, 0x800000
neg esi
sbb esi, esi
and esi, 0x800001
inc edx
mov eax, 0xa20042d0
cmove edx, eax
push 0
push dword [ebp - 0x10]
xor eax, eax
inc eax
push eax
lea ecx, [ebp - 0x54]
mov dword [0xd2b0e0], edx
call fcn.00cd546b
push 0
mov eax, edi
not eax
test al, 0xfa
pop eax
push 1
mov ecx, 0x80000000
cmove eax, ecx
pop ecx
shr edi, 1
or edi, eax
mov eax, dword [0xd2b0e0]
push 0
push dword [ebp - 8]
test eax, eax
cmove eax, ecx
push esi
lea ecx, [ebp - 0x8c]
mov dword [0xd2b0dc], edi
mov dword [0xd2b0e0], eax
call fcn.00cd546b
mov eax, dword [0xd2b0e8]
or dword [0xd2b0ec], eax
push 0xc
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.00cd1c6b
mov edx, dword [0xd2b0f0]
xor edx, 0x26abc900
or edx, 0xa37e23f4
mov ecx, 0x20000
add esp, 0xc
mov dword [0xd2b0f0], edx
test dword [ebx], ecx
je 0xcd5f5d
test dword [ebx], 0x200000
je 0xcd5ed8
mov eax, dword [0xd2b020]
imul eax, eax, 0x343fd
add eax, 0x269ec3
xor edx, 0x1e16cdd0
mov dword [0xd2b020], eax
or edx, 0x8671a530
shr eax, 0x10
mov dword [0xd2b0f0], edx
and eax, 0x3f
test dword [ebx], ecx
je 0xcd5e69
mov edx, eax
lea ecx, [ebp + 0xc]
call fcn.00cd5bc1
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x54]
movzx eax, byte [eax + esi]
push eax
call fcn.00cd5858
cmp dword [0xd2b110], 0
jne 0xcd5e88
inc dword [0xd2b0e0]
mov eax, dword [0xd2b020]
imul eax, eax, 0x343fd
add eax, 0x269ec3
mov dword [0xd2b020], eax
shr eax, 0x10
and eax, 0x3f
test dword [ebx], 0x20000
je 0xcd5eb5
mov edx, eax
lea ecx, [ebp + 0xc]
call fcn.00cd5bc1
movzx eax, byte [eax + esi]
push eax
lea ecx, [ebp - 0x54]
call fcn.00cd5858
xor dword [0xd2b100], 0x8d1a3798
or dword [0xd2b100], 0x3e28db98
jmp 0xcd5f44
cmp edx, 0x470c6d54
mov eax, 0x505ccdd0
cmove edx, eax
mov dword [0xd2b0f0], edx
test dword [ebx], ecx
je 0xcd5efc
xor edx, edx
lea ecx, [ebp + 0xc]
call fcn.00cd5bc1
jmp 0xcd5efe
xor eax, eax
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x54]
movzx eax, byte [eax + esi]
push eax
call fcn.00cd5858
mov eax, dword [0xd2b0e0]
inc eax
mov ecx, 0x85063620
cmove eax, ecx
mov dword [0xd2b0e0], eax
test dword [ebx], 0x20000
je 0xcd5f35
xor edx, edx
lea ecx, [ebp + 0xc]
call fcn.00cd5bc1
jmp 0xcd5f37
xor eax, eax
movzx eax, byte [eax + esi]
push eax
lea ecx, [ebp - 0x54]
call fcn.00cd5858
mov ecx, dword [ebp + 0xc]
mov edx, dword [0xd2b0f0]
mov edi, dword [0xd2b0dc]
mov eax, ecx
rol eax, 0x10
xor ecx, eax
mov dword [ebp + 0xc], ecx
mov esi, dword [0xd2b0e0]
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x64]
and dword [ebp - 8], 0
and dword [ebp - 0x10], 0
xor esi, 0x6143a580
or esi, 0x7912ca7c
shr ecx, 0x18
mov dword [0xd2b0e0], esi
add ecx, dword [eax + 0x14]
sub ecx, dword [ebp - 0x60]
je 0xcd6391
mov dword [ebp - 0x1c], 0xa
and dword [ebp - 8], 0
xor esi, esi
lea eax, [ebp - 8]
inc esi
or dword [0xd2b100], esi
push eax
lea ecx, [ebp - 0x8c]
call fcn.00cd5655
mov ecx, dword [0xd2b0e8]
or dword [0xd2b0ec], ecx
mov ecx, dword [0xd2b0e0]
shl ecx, 0xc
or ecx, esi
mov byte [ebp - 0xa], al
lea eax, [ebp - 8]
mov dword [0xd2b0e0], ecx
push eax
lea ecx, [ebp - 0x8c]
call fcn.00cd5655
cmp dword [0xd2b0f0], 0
mov byte [ebp - 9], al
jne 0xcd5ff6
inc dword [0xd2b0e0]
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x8c]
call fcn.00cd5655
mov ecx, dword [0xd2b0e0]
shl ecx, 0xc
or ecx, esi
movzx esi, byte [ebp - 0xa]
mov byte [ebp + 0xb], al
mov eax, esi
mov dword [0xd2b0e0], ecx
shr eax, 2
test dword [ebx], 0x20000
je 0xcd6034
mov edx, eax
lea ecx, [ebp + 0xc]
call fcn.00cd5bc1
mov edi, dword [ebp + 0x10]
lea ecx, [ebp - 0x54]
movzx eax, byte [eax + edi]
push eax
call fcn.00cd5858
mov eax, dword [0xd2b0e0]
inc eax
mov ecx, 0x13d702a0
cmove eax, ecx
mov dword [0xd2b0e0], eax
movzx eax, byte [ebp - 9]
and esi, 3
mov dword [ebp - 0x14], eax
shl esi, 4
shr eax, 4
add eax, esi
test dword [ebx], 0x20000
je 0xcd607b
mov edx, eax
lea ecx, [ebp + 0xc]
call fcn.00cd5bc1
movzx eax, byte [eax + edi]
push eax
lea ecx, [ebp - 0x54]
call fcn.00cd5858
cmp dword [0xd2b100], 0
mov esi, dword [0xd2b0e0]
jne 0xcd609e
inc esi
mov dword [0xd2b0e0], esi
mov ecx, dword [0xd2b0dc]
mov eax, ecx
not eax
test al, 0xfa
push 0
pop edx
setne dl
lea eax, [ecx + ecx]
xor ecx, ecx
inc ecx
or edx, eax
mov eax, dword [ebp - 8]
mov dword [0xd2b0dc], edx
mov dword [ebp - 8], eax
cmp eax, ecx
jle 0xcd6103
movzx eax, byte [ebp + 0xb]
mov ecx, dword [ebp - 0x14]
and ecx, 0xf
shr eax, 6
test dword [ebx], 0x20000
lea eax, [eax + ecx*4]
je 0xcd60ea
mov edx, eax
lea ecx, [ebp + 0xc]
call fcn.00cd5bc1
movzx eax, byte [eax + edi]
push eax
lea ecx, [ebp - 0x54]
call fcn.00cd5858
mov esi, dword [0xd2b0e0]
mov edx, dword [0xd2b0dc]
mov ecx, dword [0xd2b0ec]
or ecx, dword [0xd2b0e8]
mov eax, edx
not eax
test al, 0xfa
push 0
pop edi
mov eax, 0x80000000
cmove edi, eax
shr edx, 1
or edi, edx
cmp dword [ebp - 8], 2
mov dword [0xd2b0ec], ecx
mov dword [0xd2b0dc], edi
jle 0xcd6171
movzx eax, byte [ebp + 0xb]
and eax, 0x3f
test dword [ebx], 0x20000
je 0xcd614f
mov edx, eax
lea ecx, [ebp + 0xc]
call fcn.00cd5bc1
mov ecx, dword [ebp + 0x10]
movzx eax, byte [eax + ecx]
push eax
lea ecx, [ebp - 0x54]
call fcn.00cd5858
mov esi, dword [0xd2b0e0]
mov edi, dword [0xd2b0dc]
mov ecx, dword [0xd2b0ec]
mov edx, dword [0xd2b0e8]
or ecx, edx
test byte [ebp + 0xb], 0xaa
push 0
pop eax
setne al
xor esi, 0x394b8460
or esi, 0xea202318
mov dword [0xd2b0ec], ecx
mov dword [0xd2b0e0], esi
add dword [ebp - 0x10], eax
mov eax, dword [ebx]
not eax
test eax, 0x420000
jne 0xcd62c3
cmp dword [ebp - 0x10], 0xfa
jbe 0xcd62c3
xor esi, 0xf669a4
or esi, 0xbf501b50
cmp esi, 0xc7157fa0
mov eax, 0x2430f40
cmove esi, eax
and dword [ebp - 0x10], 0
mov eax, edi
not eax
test al, 0xfa
push 0
pop ecx
setne cl
add edi, edi
xor edx, edx
or edi, ecx
mov ecx, dword [0xd2b020]
imul ecx, ecx, 0x343fd
add ecx, 0x269ec3
mov eax, ecx
shr eax, 0x10
and eax, 0x7fff
add eax, dword [ebp - 0x14]
mov dword [0xd2b0dc], edi
div dword [ebp - 0x1c]
cmp esi, 0x3342db10
mov dword [0xd2b020], ecx
lea eax, [edx + 0x3e8]
mov edx, 0x1626438
cmove esi, edx
mov dword [ebp - 0x14], eax
mov dword [0xd2b0e0], esi
test eax, eax
je 0xcd62b7
mov edi, dword [0xd2b0f0]
test edi, edi
jne 0xcd624a
inc esi
mov dword [0xd2b0e0], esi
imul ecx, ecx, 0x343fd
add ecx, 0x269ec3
mov dword [0xd2b020], ecx
shr ecx, 0x10
and ecx, 0x7fff
xor edx, edx
mov eax, ecx
div dword [0xd2b174]
mov eax, dword [0xd2b164]
mov al, byte [edx + eax]
test edi, edi
jne 0xcd6282
inc esi
mov dword [0xd2b0e0], esi
movzx eax, al
push eax
lea ecx, [ebp - 0x54]
call fcn.00cd5858
cmp dword [0xd2b100], 0
mov esi, dword [0xd2b0e0]
jne 0xcd62a4
inc esi
mov dword [0xd2b0e0], esi
dec dword [ebp - 0x14]
je 0xcd62b1
mov ecx, dword [0xd2b020]
jmp 0xcd6239
mov edi, dword [0xd2b0dc]
mov edx, dword [0xd2b0e8]
mov ecx, dword [0xd2b0ec]
mov eax, dword [ebx]
not eax
test eax, 0x60000
jne 0xcd6376
mov ah, byte [ebp + 0xb]
mov al, ah
and al, 7
cmp al, 7
jne 0xcd6376
test esi, esi
cmove esi, dword [ebp - 0x18]
or ecx, edx
and ah, 0xa0
mov dword [0xd2b0e0], esi
mov dword [0xd2b0ec], ecx
cmp ah, 0xa0
jne 0xcd6318
mov eax, edi
not eax
push 0
test al, 0xfa
pop ecx
setne cl
lea eax, [edi + edi]
push 0x20
or ecx, eax
mov dword [0xd2b0dc], ecx
jmp 0xcd6362
xor esi, 0x6484c290
or esi, 0x6cb87100
push 0xd
lea ecx, [ebp - 0x54]
mov dword [0xd2b0e0], esi
call fcn.00cd5858
mov eax, dword [0xd2b100]
cmp eax, 0x339bd1dc
mov ecx, 0x79d38c0
cmove eax, ecx
mov dword [0xd2b100], eax
mov eax, dword [0xd2b0e0]
inc eax
mov ecx, 0x1083fc50
cmove eax, ecx
push 0xa
mov dword [0xd2b0e0], eax
pop eax
push eax
lea ecx, [ebp - 0x54]
call fcn.00cd5858
mov edi, dword [0xd2b0dc]
mov esi, dword [0xd2b0e0]
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x64]
shr ecx, 0x18
add ecx, dword [eax + 0x14]
sub ecx, dword [ebp - 0x60]
jne 0xcd5f99
mov edx, dword [0xd2b0f0]
test dword [ebx], 0x10000
je 0xcd63e4
push 3
pop ebx
sub ebx, dword [ebp - 8]
test ebx, ebx
jle 0xcd63c2
push 0x3d
lea ecx, [ebp - 0x54]
call fcn.00cd5858
dec ebx
jne 0xcd63a3
mov edx, dword [0xd2b0f0]
mov esi, dword [0xd2b0e0]
mov edi, dword [0xd2b0dc]
test edx, edx
jne 0xcd63cd
inc esi
mov dword [0xd2b0e0], esi
mov eax, edi
not eax
test al, 0xfa
push 0
pop ecx
setne cl
lea eax, [edi + edi]
or ecx, eax
mov dword [0xd2b0dc], ecx
lea ecx, [ebp - 0x54]
call fcn.00cd5b03
xor ecx, ecx
push 0xfffffffffffffffc
test al, al
pop edx
cmove ecx, edx
mov eax, ecx
pop edi
pop esi
pop ebx
leave
ret