Function at 0x403150
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov eax, 0xaaaaaaab
mov ecx, dword [edi + 0x10]
mul ecx
mov dword [ebp - 0x20], ecx
mov eax, esi
mov ecx, edx
shr ecx, 1
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x1c], ecx
lea ebx, [ecx + ecx*2]
mov dword [ebp - 8], ebx
jb 0x403181
mov eax, dword [esi]
mov dword [esi + 0x10], 0
mov byte [eax], 0
test ecx, ecx
je 0x403373
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x4031a2
mov eax, dword [edi]
movzx eax, byte [ebx + eax]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
shr eax, 2
mov al, byte [eax + 0x8ccec0]
mov byte [ebp - 0xc], al
mov eax, ecx
sub eax, edx
cmp eax, 1
jb 0x4031eb
lea eax, [edx + 1]
mov ebx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x4031d0
mov ebx, dword [esi]
movsx ecx, byte [ebp - 0xc]
movzx eax, cl
shl cx, 8
or cx, ax
mov byte [ebx + edx], cl
mov byte [ebx + edx + 1], 0
mov ebx, dword [ebp - 4]
jmp 0x403200
push dword [ebp - 0xc]
mov byte [ebp - 0x24], 0
mov ecx, esi
push 1
push dword [ebp - 0x24]
push 1
call fcn.00403b40
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x40320a
mov edx, dword [edi]
mov ecx, edi
jb 0x403210
mov ecx, dword [edi]
movzx ecx, byte [ebx + ecx + 1]
movsx eax, byte [ebx + edx]
mov ebx, dword [esi + 0x10]
and eax, 3
shl eax, 4
shr ecx, 4
or ecx, eax
mov al, byte [ecx + 0x8ccec0]
mov ecx, dword [esi + 0x14]
mov byte [ebp - 0x10], al
mov eax, ecx
sub eax, ebx
cmp eax, 1
jb 0x403263
lea eax, [ebx + 1]
mov edx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x40324b
mov edx, dword [esi]
movsx ecx, byte [ebp - 0x10]
movzx eax, cl
shl cx, 8
or cx, ax
mov byte [edx + ebx], cl
mov byte [edx + ebx + 1], 0
jmp 0x403278
push dword [ebp - 0x10]
mov byte [ebp - 0x28], 0
mov ecx, esi
push 1
push dword [ebp - 0x28]
push 1
call fcn.00403b40
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x403282
mov edx, dword [edi]
mov ecx, edi
jb 0x403288
mov ecx, dword [edi]
mov eax, dword [ebp - 4]
mov ebx, dword [esi + 0x10]
movzx ecx, byte [eax + ecx + 2]
movsx eax, byte [eax + edx + 1]
and eax, 0xf
shr ecx, 6
shl eax, 2
or ecx, eax
mov al, byte [ecx + 0x8ccec0]
mov ecx, dword [esi + 0x14]
mov byte [ebp - 0x14], al
mov eax, ecx
sub eax, ebx
cmp eax, 1
jb 0x4032df
lea eax, [ebx + 1]
mov edx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x4032c7
mov edx, dword [esi]
movsx ecx, byte [ebp - 0x14]
movzx eax, cl
shl cx, 8
or cx, ax
mov byte [edx + ebx], cl
mov byte [edx + ebx + 1], 0
jmp 0x4032f4
push dword [ebp - 0x14]
mov byte [ebp - 0x2c], 0
mov ecx, esi
push 1
push dword [ebp - 0x2c]
push 1
call fcn.00403b40
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x4032fe
mov eax, dword [edi]
mov ebx, dword [ebp - 4]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
movsx eax, byte [eax + ebx + 2]
and eax, 0x3f
mov al, byte [eax + 0x8ccec0]
mov byte [ebp - 0x18], al
mov eax, ecx
sub eax, edx
cmp eax, 1
jb 0x40334b
lea eax, [edx + 1]
mov ebx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x403330
mov ebx, dword [esi]
movsx ecx, byte [ebp - 0x18]
movzx eax, cl
shl cx, 8
or cx, ax
mov byte [ebx + edx], cl
mov byte [ebx + edx + 1], 0
mov ebx, dword [ebp - 4]
jmp 0x403360
push dword [ebp - 0x18]
mov byte [ebp - 0x30], 0
mov ecx, esi
push 1
push dword [ebp - 0x30]
push 1
call fcn.00403b40
add ebx, 3
sub dword [ebp - 0x1c], 1
mov dword [ebp - 4], ebx
jne 0x403198
mov ebx, dword [ebp - 8]
cmp dword [ebp - 0x20], ebx
je 0x4035c9
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x403386
mov eax, dword [edi]
movzx eax, byte [eax + ebx]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
shr eax, 2
mov al, byte [eax + 0x8ccec0]
mov byte [ebp - 0x1c], al
mov eax, ecx
sub eax, edx
cmp eax, 1
jb 0x4033cf
lea eax, [edx + 1]
mov ebx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x4033b4
mov ebx, dword [esi]
movsx ecx, byte [ebp - 0x1c]
movzx eax, cl
shl cx, 8
or cx, ax
mov byte [ebx + edx], cl
mov byte [ebx + edx + 1], 0
mov ebx, dword [ebp - 8]
jmp 0x4033e4
push dword [ebp - 0x1c]
mov byte [ebp - 0x30], 0
mov ecx, esi
push 1
push dword [ebp - 0x30]
push 1
call fcn.00403b40
mov eax, dword [edi + 0x14]
lea ecx, [ebx + 1]
mov edx, edi
cmp dword [ebp - 0x20], ecx
jne 0x40349e
cmp eax, 0x10
jb 0x4033fe
mov edx, dword [edi]
mov edi, edx
movsx eax, byte [edx + ebx]
movzx ecx, byte [edi + ebx + 1]
and eax, 3
mov edx, dword [esi + 0x10]
shl eax, 4
shr ecx, 4
or ecx, eax
mov bl, byte [ecx + 0x8ccec0]
mov ecx, dword [esi + 0x14]
mov eax, ecx
sub eax, edx
mov byte [ebp - 0x30], bl
cmp eax, 1
jb 0x403450
lea eax, [edx + 1]
mov edi, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x403439
mov edi, dword [esi]
movsx ecx, bl
movzx eax, cl
shl cx, 8
or cx, ax
mov byte [edi + edx], cl
mov byte [edi + edx + 1], 0
jmp 0x403465
push dword [ebp - 0x30]
mov byte [ebp - 0x2c], 0
mov ecx, esi
push 1
push dword [ebp - 0x2c]
push 1
call fcn.00403b40
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x40348e
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x403483
mov eax, dword [esi]
mov word [eax + ecx], 0x3d
jmp 0x40358a
push 0x3d
push 1
mov byte [ebp - 0x30], 0
push dword [ebp - 0x30]
jmp 0x403581
cmp eax, 0x10
jb 0x4034a5
mov edx, dword [edi]
mov ecx, edi
jb 0x4034ab
mov ecx, dword [edi]
movsx eax, byte [edx + ebx]
movzx ecx, byte [ecx + ebx + 1]
and eax, 3
mov edx, dword [esi + 0x10]
shl eax, 4
shr ecx, 4
or ecx, eax
mov al, byte [ecx + 0x8ccec0]
mov ecx, dword [esi + 0x14]
mov byte [ebp - 0x20], al
mov eax, ecx
sub eax, edx
cmp eax, 1
jb 0x403501
lea eax, [edx + 1]
mov ebx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x4034e6
mov ebx, dword [esi]
movsx ecx, byte [ebp - 0x20]
movzx eax, cl
shl cx, 8
or cx, ax
mov byte [ebx + edx], cl
mov byte [ebx + edx + 1], 0
mov ebx, dword [ebp - 8]
jmp 0x403516
push dword [ebp - 0x20]
mov byte [ebp - 0x30], 0
mov ecx, esi
push 1
push dword [ebp - 0x30]
push 1
call fcn.00403b40
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x403522
mov edx, dword [edi]
mov edi, edx
movsx eax, byte [edx + ebx + 1]
movzx ecx, byte [edi + ebx + 2]
and eax, 0xf
mov edx, dword [esi + 0x10]
shl eax, 2
shr ecx, 6
or ecx, eax
mov bl, byte [ecx + 0x8ccec0]
mov ecx, dword [esi + 0x14]
mov eax, ecx
sub eax, edx
mov byte [ebp - 0x30], bl
cmp eax, 1
jb 0x403575
lea eax, [edx + 1]
mov edi, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x40355e
mov edi, dword [esi]
movsx ecx, bl
movzx eax, cl
shl cx, 8
or cx, ax
mov byte [edi + edx], cl
mov byte [edi + edx + 1], 0
jmp 0x40358a
push dword [ebp - 0x30]
mov byte [ebp - 0x2c], 0
push 1
push dword [ebp - 0x2c]
push 1
mov ecx, esi
call fcn.00403b40
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x4035b5
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
cmp edx, 0x10
jb 0x4035a6
mov esi, dword [esi]
pop edi
mov word [esi + ecx], 0x3d
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x3d
push 1
mov byte [ebp - 0x30], 0
mov ecx, esi
push dword [ebp - 0x30]
push 1
call fcn.00403b40
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret