Function at 0x667ec0
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [0x93d128]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x10c]
cmp eax, dword [ecx + 8]
jbe 0x668716
sub esp, 0x18c
movzx ecx, byte [esp + 0x190]
cmp cl, 0x13
ja 0x66803b
cmp cl, 0xc
je 0x667f2f
cmp cl, 0x12
jne 0x667f11
mov eax, dword [esp + 0x198]
mov ecx, dword [esp + 0x194]
xor edx, edx
jmp 0x66862f
cmp cl, 0x13
jne 0x66815e
mov ecx, dword [esp + 0x198]
mov edx, dword [esp + 0x194]
xor eax, eax
jmp 0x6684a6
mov eax, dword [esp + 0x194]
mov dword [esp], eax
mov ecx, dword [esp + 0x198]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x19c]
mov dword [esp + 8], edx
call fcn.004729c0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x667fe6
call fcn.0068bdf0
mov eax, dword [esp + 4]
mov dword [esp + 0x50], eax
nop
mov ecx, dword [esp]
mov dword [esp + 0x178], ecx
lea edx, [0x75a420]
mov dword [esp], edx
call fcn.0040ca90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x50]
mov dword [eax + 4], ecx
mov ecx, dword [0x93d218]
test ecx, ecx
jne 0x667fa5
mov ecx, dword [esp + 0x178]
jmp 0x667fb3
call fcn.0045f0d0
mov ecx, dword [esp + 0x178]
mov dword [edi], ecx
mov dword [eax], ecx
mov dword [esp + 0x1a0], 0
mov dword [esp + 0x1a4], 0
lea ecx, [0x7da180]
mov dword [esp + 0x1a8], ecx
mov dword [esp + 0x1ac], eax
add esp, 0x18c
ret
mov dword [esp], 0
mov eax, dword [esp + 0x194]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x198]
mov dword [esp + 8], eax
call fcn.0044b7a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1a0], eax
mov dword [esp + 0x1a4], ecx
mov dword [esp + 0x1a8], 0
mov dword [esp + 0x1ac], 0
add esp, 0x18c
ret
cmp cl, 0x14
je 0x66830a
cmp cl, 0x16
je 0x668202
cmp cl, 0x1e
jne 0x66815e
mov eax, dword [esp + 0x198]
test eax, 1
jne 0x6680d9
cmp eax, 2
jl 0x668087
mov ecx, dword [esp + 0x194]
movzx edx, byte [eax + ecx - 1]
test dl, dl
jne 0x66808e
movzx edx, byte [eax + ecx - 2]
test dl, dl
jne 0x66808e
add eax, 0xfffffffe
jmp 0x66808e
mov ecx, dword [esp + 0x194]
mov dword [esp + 0x164], eax
lea ecx, [0x74b060]
mov dword [esp], ecx
mov dword [esp + 4], 0
shr eax, 1
mov dword [esp + 0x58], eax
mov dword [esp + 8], eax
call fcn.00448800
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x19c]
mov ebx, dword [esp + 0x194]
mov ebp, dword [esp + 0x164]
xor esi, esi
jmp 0x668381
call fcn.0068bec0
mov eax, dword [esp + 4]
mov dword [esp + 0x4c], eax
nop
mov ecx, dword [esp]
mov dword [esp + 0x174], ecx
lea edx, [0x75a420]
mov dword [esp], edx
call fcn.0040ca90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
mov ecx, dword [0x93d218]
test ecx, ecx
jne 0x66811d
mov ecx, dword [esp + 0x174]
jmp 0x66812b
call fcn.0045f0d0
mov ecx, dword [esp + 0x174]
mov dword [edi], ecx
mov dword [eax], ecx
mov dword [esp + 0x1a0], 0
mov dword [esp + 0x1a4], 0
lea ecx, [0x7da180]
mov dword [esp + 0x1a8], ecx
mov dword [esp + 0x1ac], eax
add esp, 0x18c
ret
call fcn.0068c960
mov eax, dword [esp]
mov ecx, dword [esp + 4]
movzx edx, byte [esp + 0x190]
movzx edx, dl
lea ebx, [0x71db60]
lea edx, [ebx + edx*8]
mov dword [esp + 0x180], 0
mov dword [esp + 0x184], 0
lea ebx, [0x75b780]
mov dword [esp + 0x180], ebx
mov dword [esp + 0x184], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [esp + 0x180]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.005a0720
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1a0], 0
mov dword [esp + 0x1a4], 0
mov dword [esp + 0x1a8], eax
mov dword [esp + 0x1ac], ecx
add esp, 0x18c
ret
mov dword [esp], 0
mov eax, dword [esp + 0x194]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x198]
mov dword [esp + 8], eax
call fcn.0044b7a0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x17c], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x54], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00679ec0
mov eax, dword [esp + 8]
test eax, eax
je 0x6682d4
call fcn.0068c270
mov eax, dword [esp + 4]
mov dword [esp + 0x48], eax
nop
mov ecx, dword [esp]
mov dword [esp + 0x170], ecx
lea edx, [0x75a420]
mov dword [esp], edx
call fcn.0040ca90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], ecx
mov ecx, dword [0x93d218]
test ecx, ecx
jne 0x668293
mov ecx, dword [esp + 0x170]
jmp 0x6682a1
call fcn.0045f0d0
mov ecx, dword [esp + 0x170]
mov dword [edi], ecx
mov dword [eax], ecx
mov dword [esp + 0x1a0], 0
mov dword [esp + 0x1a4], 0
lea ecx, [0x7da180]
mov dword [esp + 0x1a8], ecx
mov dword [esp + 0x1ac], eax
add esp, 0x18c
ret
mov eax, dword [esp + 0x17c]
mov dword [esp + 0x1a0], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x1a4], eax
mov dword [esp + 0x1a8], 0
mov dword [esp + 0x1ac], 0
add esp, 0x18c
ret
mov dword [esp], 0
mov eax, dword [esp + 0x194]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x198]
mov dword [esp + 8], eax
call fcn.0044b7a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1a0], eax
mov dword [esp + 0x1a4], ecx
mov dword [esp + 0x1a8], 0
mov dword [esp + 0x1ac], 0
add esp, 0x18c
ret
mov word [eax + esi*2 - 2], bp
add edx, 0xfffffffe
mov ebp, edx
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, 2
add ebx, ebp
mov ebp, dword [esp + 0x164]
add ebp, 0xfffffffe
test ebp, ebp
je 0x6683ff
cmp ebp, 1
jbe 0x668499
mov dword [esp + 0x164], ebp
inc esi
movzx edi, byte [ebx]
shl edi, 8
movzx ebp, byte [ebx + 1]
add ebp, edi
cmp ecx, esi
jae 0x66835f
mov dword [esp + 0x160], edx
mov word [esp + 0x3e], bp
mov dword [esp + 0x188], ebx
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x74b060]
mov dword [esp + 0x10], eax
call fcn.004488c0
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x160]
mov ebx, dword [esp + 0x188]
movzx ebp, word [esp + 0x3e]
jmp 0x66835f
mov dword [esp + 0x15c], ecx
lea edi, [esp + 0x5c]
mov edx, eax
xor eax, eax
call fcn.0045f310
mov dword [esp], edx
mov dword [esp + 4], esi
mov ecx, dword [esp + 0x15c]
mov dword [esp + 8], ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0x40
call fcn.00467d40
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.0044b9f0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1a0], ecx
mov dword [esp + 0x1a4], edx
mov dword [esp + 0x1a8], 0
mov dword [esp + 0x1ac], 0
add esp, 0x18c
ret
mov eax, 1
mov ecx, eax
call fcn.0045f150
inc eax
cmp ecx, eax
jle 0x66851a
movzx ebx, byte [edx + eax]
lea ebp, [ebx - 0x61]
xchg ebp, eax
cmp al, 0x19
xchg ebp, eax
jbe 0x6684a5
lea ebp, [ebx - 0x41]
xchg ebp, eax
cmp al, 0x19
xchg ebp, eax
jbe 0x6684a5
lea ebp, [ebx - 0x30]
xchg ebp, eax
cmp al, 9
xchg ebp, eax
jbe 0x6684a5
lea ebp, [ebx - 0x27]
xchg ebp, eax
cmp al, 2
xchg ebp, eax
jbe 0x6684a5
lea ebp, [ebx - 0x2b]
xchg ebp, eax
cmp al, 4
xchg ebp, eax
jbe 0x6684a5
cmp bl, 0x20
je 0x6684a5
cmp bl, 0x3a
je 0x6684a5
cmp bl, 0x3d
je 0x6684a5
cmp bl, 0x3f
je 0x6684a5
cmp bl, 0x2a
je 0x6684a5
cmp bl, 0x26
je 0x6684a5
nop
mov dword [esp + 0x27], 0x4d19dc47
lea edi, [esp + 0x2a]
lea esi, [0x78c07b]
call fcn.0045f82e
xor eax, eax
jmp 0x668571
mov dword [esp], 0
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.0044b7a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1a0], eax
mov dword [esp + 0x1a4], ecx
mov dword [esp + 0x1a8], 0
mov dword [esp + 0x1ac], 0
add esp, 0x18c
ret
movzx ebp, byte [esp + eax + 0x27]
sub ebp, ebx
xchg ebp, ebx
mov byte [esp + eax + 0x27], bl
xchg ebp, ebx
inc eax
cmp eax, 0x17
jge 0x668587
lea edx, [0x78c061]
movzx ebx, byte [eax + edx]
jb 0x668561
jmp 0x668624
mov dword [esp], 0
lea eax, [esp + 0x27]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x17
call fcn.0044b7a0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], eax
nop
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x168], ecx
lea edx, [0x75a420]
mov dword [esp], edx
call fcn.0040ca90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], ecx
mov ecx, dword [0x93d218]
test ecx, ecx
jne 0x6685e3
mov ecx, dword [esp + 0x168]
jmp 0x6685f1
call fcn.0045f0d0
mov ecx, dword [esp + 0x168]
mov dword [edi], ecx
mov dword [eax], ecx
mov dword [esp + 0x1a0], 0
mov dword [esp + 0x1a4], 0
lea ecx, [0x7da180]
mov dword [esp + 0x1a8], ecx
mov dword [esp + 0x1ac], eax
add esp, 0x18c
ret
mov ecx, 0x17
call fcn.0045f150
inc edx
cmp eax, edx
jle 0x6686cf
movzx ebx, byte [edx + ecx]
lea ebp, [ebx - 0x30]
xchg ebp, eax
cmp al, 9
xchg ebp, eax
jbe 0x66862e
cmp bl, 0x20
je 0x66862e
call fcn.0068c680
mov eax, dword [esp + 4]
mov dword [esp + 0x44], eax
nop
mov ecx, dword [esp]
mov dword [esp + 0x16c], ecx
lea edx, [0x75a420]
mov dword [esp], edx
call fcn.0040ca90
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], ecx
mov ecx, dword [0x93d218]
test ecx, ecx
jne 0x66868e
mov ecx, dword [esp + 0x16c]
jmp 0x66869c
call fcn.0045f0d0
mov ecx, dword [esp + 0x16c]
mov dword [edi], ecx
mov dword [eax], ecx
mov dword [esp + 0x1a0], 0
mov dword [esp + 0x1a4], 0
lea ecx, [0x7da180]
mov dword [esp + 0x1a8], ecx
mov dword [esp + 0x1ac], eax
add esp, 0x18c
ret
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0044b7a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1a0], eax
mov dword [esp + 0x1a4], ecx
mov dword [esp + 0x1a8], 0
mov dword [esp + 0x1ac], 0
add esp, 0x18c
ret
call fcn.0045dcb0
jmp fcn.00667ec0