Function at 0x4208e0
Capabilities:
Encode data using base64
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push edi
push esi
push ebx
sub esp, 0x104
mov edi, ecx
mov dword [esp + 0xfc], edx
mov esi, eax
call fcn.00421c50
mov dword [edi + 0x168], 0xd
movaps xmm0, xmmword [0x53ee60]
movaps xmmword [esp + 0xe0], xmm0
mov eax, 0xc0
movaps xmm0, xmmword [eax + 0x53ed90]
movaps xmmword [esp + eax + 0x10], xmm0
movaps xmm1, xmmword [eax + 0x53ed80]
movaps xmmword [esp + eax], xmm1
movaps xmm2, xmmword [eax + 0x53ed70]
movaps xmmword [esp + eax - 0x10], xmm2
movaps xmm3, xmmword [eax + str.Sapphireae.lic]
movaps xmmword [esp + eax - 0x20], xmm3
sub eax, 0x40
jne 0x42091d
cmp dword [esp + 0x20], 0
lea eax, [edi + 0x168]
lea edx, [edi + 0x16c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xd8], edx
je 0x420a9b
mov dword [esp + 0xf0], esi
mov dword [esp + 0xf4], edi
xor eax, eax
xor ebx, ebx
mov esi, eax
mov edi, dword [esp + ebx + 0x20]
movsx edx, byte [edi]
test edx, edx
je 0x420a2c
push 0x3d
push edi
call dword [sym.imp.MSVCR80.dll_strchr]
add esp, 8
test eax, eax
je 0x420b2a
sub eax, edi
mov edx, eax
and edx, 0x80000003
jge 0x4209ec
sub edx, 1
or edx, 0xfffffffc
inc edx
test eax, eax
je 0x420a2c
test edx, edx
jl 0x4209f9
cmp edx, 1
jle 0x4209fe
cmp edx, 2
jne 0x420a10
mov edx, eax
sar edx, 1
shr edx, 0x1e
add edx, eax
sar edx, 2
lea eax, [edx + edx*2]
inc eax
jmp 0x420a2e
mov ecx, eax
sar ecx, 1
shr ecx, 0x1e
add ecx, eax
sar ecx, 2
lea edi, [ecx + ecx*2 + 1]
lea eax, [ecx + ecx*2 + 2]
cmp edx, 3
cmovne eax, edi
jmp 0x420a2e
xor eax, eax
inc eax
xor edx, edx
xor ecx, ecx
call fcn.004085e0
mov edi, eax
mov eax, dword [esp + ebx + 0x20]
mov dword [esp + 0xf8], eax
mov edx, edi
call fcn.00412560
mov eax, dword [esp + 0xf8]
call fcn.00412890
mov byte [eax + edi], 0
movzx eax, byte [edi]
lea ecx, [edi + 1]
mov edx, edi
test eax, eax
je 0x420a78
xor eax, 0xaa
mov byte [edx], al
movzx eax, byte [ecx]
inc edx
inc ecx
test eax, eax
jne 0x420a68
mov dword [esp + ebx + 0x20], edi
inc esi
mov ebx, esi
shl ebx, 4
cmp dword [esp + ebx + 0x20], 0
jne 0x4209ba
mov esi, dword [esp + 0xf0]
mov edi, dword [esp + 0xf4]
mov dword [esp + 0xf4], edi
xor edx, edx
xor ebx, ebx
mov edi, esi
mov dword [esp + 0xf8], ebx
mov esi, edx
mov edx, dword [esp + 0xfc]
mov dword [esp + 0x10], 0
xor ecx, ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x14], 1
mov dword [esp + 0xc], eax
mov eax, edi
call fcn.00420d10
cmp eax, 0xffffffff
je 0x420b60
cmp eax, 1
je 0x420b55
cmp eax, 3
je 0x420b1c
cmp eax, 4
jne 0x420af9
mov ebx, dword [0x56e760]
jmp 0x420ab1
cmp eax, 0x3f
jne 0x420ab1
mov edi, dword [esp + 0xf4]
mov dword [edi + 0x168], 7
add esp, 0x104
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x56e760]
mov dword [esp + 0xf8], eax
jmp 0x420ab1
mov edx, edi
mov ecx, edx
and edx, 0xfffffff0
pxor xmm0, xmm0
pcmpeqb xmm0, xmmword [edx]
pmovmskb eax, xmm0
and ecx, 0xf
shr eax, cl
bsf eax, eax
jne 0x420b50
mov eax, edx
add edx, ecx
call fcn.00425520
jmp 0x4209db
mov esi, dword [0x56e760]
jmp 0x420ab1
mov edx, esi
mov esi, edi
mov edi, dword [esp + 0xf4]
test edx, edx
je 0x420c6a
push 0x3a
push edx
mov dword [esp + 0xf8], edx
call dword [sym.imp.MSVCR80.dll_strchr]
mov edx, dword [esp + 0xf8]
add esp, 8
mov dword [esp + 0xf4], eax
test eax, eax
je 0x420be1
mov byte [eax], 0
inc eax
lea ecx, [edi + 0x170]
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf0], ecx
push 0x100
push edx
push ecx
call dword [sym.imp.MSVCR80.dll_strncpy]
mov eax, dword [esp + 0xfc]
push dword [esp + 0x100]
mov byte [eax + 0xff], 0
call dword [sym.imp.MSVCR80.dll_atoi]
add esp, 0x10
mov dword [edi + 0x470], eax
cmp dword [esp + 0xf4], 0
je 0x420cc4
cmp dword [edi + 0x470], 0
je 0x420cc4
test ebx, ebx
je 0x420c2d
push 0x100
push ebx
lea eax, [edi + 0x270]
push eax
mov dword [esp + 0xfc], eax
call dword [sym.imp.MSVCR80.dll_strncpy]
mov eax, dword [esp + 0xfc]
add esp, 0xc
mov byte [eax + 0xff], 0
jmp 0x420c34
mov byte [edi + 0x270], 0
cmp dword [esp + 0xf8], 0
je 0x420c63
push 0x100
push dword [esp + 0xfc]
lea ebx, [edi + 0x370]
push ebx
call dword [sym.imp.MSVCR80.dll_strncpy]
add esp, 0xc
mov byte [ebx + 0xff], 0
jmp 0x420c6a
mov byte [edi + 0x370], 0
cmp dword [esp + 0x20], 0
je 0x420c92
xor ebx, ebx
xor eax, eax
mov eax, dword [esp + eax + 0x20]
test eax, eax
je 0x420c85
push eax
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
inc ebx
mov eax, ebx
shl eax, 4
cmp dword [esp + eax + 0x20], 0
jne 0x420c75
mov ecx, dword [0x56e75c]
mov eax, dword [edi + 0x168]
sub esi, ecx
mov edx, esi
call fcn.00421e00
mov dword [edi + 0x168], eax
cmp eax, 4
je 0x420cdb
call fcn.00421e50
add esp, 0x104
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x168], 7
add esp, 0x104
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [0x56e72c], 0
jne 0x420cb2
call fcn.00408e70
mov eax, dword [0x56e714]
test eax, eax
je 0x420cb2
push eax
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
xor eax, eax
mov dword [0x56e714], eax
mov dword [0x56e710], eax
mov dword [0x56e718], eax
jmp 0x420cb2