Function at 0x4037e0
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 0x403811
mov eax, dword [esi]
mov dword [esi + 0x10], 0
mov byte [eax], 0
test ecx, ecx
je 0x403a03
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x403832
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 + 0x8fba90]
mov byte [ebp - 0xc], al
mov eax, ecx
sub eax, edx
cmp eax, 1
jb 0x40387b
lea eax, [edx + 1]
mov ebx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x403860
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 0x403890
push dword [ebp - 0xc]
mov byte [ebp - 0x24], 0
mov ecx, esi
push 1
push dword [ebp - 0x24]
push 1
call fcn.004041d0
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x40389a
mov edx, dword [edi]
mov ecx, edi
jb 0x4038a0
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 + 0x8fba90]
mov ecx, dword [esi + 0x14]
mov byte [ebp - 0x10], al
mov eax, ecx
sub eax, ebx
cmp eax, 1
jb 0x4038f3
lea eax, [ebx + 1]
mov edx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x4038db
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 0x403908
push dword [ebp - 0x10]
mov byte [ebp - 0x28], 0
mov ecx, esi
push 1
push dword [ebp - 0x28]
push 1
call fcn.004041d0
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x403912
mov edx, dword [edi]
mov ecx, edi
jb 0x403918
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 + 0x8fba90]
mov ecx, dword [esi + 0x14]
mov byte [ebp - 0x14], al
mov eax, ecx
sub eax, ebx
cmp eax, 1
jb 0x40396f
lea eax, [ebx + 1]
mov edx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x403957
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 0x403984
push dword [ebp - 0x14]
mov byte [ebp - 0x2c], 0
mov ecx, esi
push 1
push dword [ebp - 0x2c]
push 1
call fcn.004041d0
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x40398e
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 + 0x8fba90]
mov byte [ebp - 0x18], al
mov eax, ecx
sub eax, edx
cmp eax, 1
jb 0x4039db
lea eax, [edx + 1]
mov ebx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x4039c0
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 0x4039f0
push dword [ebp - 0x18]
mov byte [ebp - 0x30], 0
mov ecx, esi
push 1
push dword [ebp - 0x30]
push 1
call fcn.004041d0
add ebx, 3
sub dword [ebp - 0x1c], 1
mov dword [ebp - 4], ebx
jne 0x403828
mov ebx, dword [ebp - 8]
cmp dword [ebp - 0x20], ebx
je 0x403c59
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x403a16
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 + 0x8fba90]
mov byte [ebp - 0x1c], al
mov eax, ecx
sub eax, edx
cmp eax, 1
jb 0x403a5f
lea eax, [edx + 1]
mov ebx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x403a44
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 0x403a74
push dword [ebp - 0x1c]
mov byte [ebp - 0x30], 0
mov ecx, esi
push 1
push dword [ebp - 0x30]
push 1
call fcn.004041d0
mov eax, dword [edi + 0x14]
lea ecx, [ebx + 1]
mov edx, edi
cmp dword [ebp - 0x20], ecx
jne 0x403b2e
cmp eax, 0x10
jb 0x403a8e
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 + 0x8fba90]
mov ecx, dword [esi + 0x14]
mov eax, ecx
sub eax, edx
mov byte [ebp - 0x30], bl
cmp eax, 1
jb 0x403ae0
lea eax, [edx + 1]
mov edi, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x403ac9
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 0x403af5
push dword [ebp - 0x30]
mov byte [ebp - 0x2c], 0
mov ecx, esi
push 1
push dword [ebp - 0x2c]
push 1
call fcn.004041d0
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x403b1e
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x403b13
mov eax, dword [esi]
mov word [eax + ecx], 0x3d
jmp 0x403c1a
push 0x3d
push 1
mov byte [ebp - 0x30], 0
push dword [ebp - 0x30]
jmp 0x403c11
cmp eax, 0x10
jb 0x403b35
mov edx, dword [edi]
mov ecx, edi
jb 0x403b3b
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 + 0x8fba90]
mov ecx, dword [esi + 0x14]
mov byte [ebp - 0x20], al
mov eax, ecx
sub eax, edx
cmp eax, 1
jb 0x403b91
lea eax, [edx + 1]
mov ebx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x403b76
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 0x403ba6
push dword [ebp - 0x20]
mov byte [ebp - 0x30], 0
mov ecx, esi
push 1
push dword [ebp - 0x30]
push 1
call fcn.004041d0
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x403bb2
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 + 0x8fba90]
mov ecx, dword [esi + 0x14]
mov eax, ecx
sub eax, edx
mov byte [ebp - 0x30], bl
cmp eax, 1
jb 0x403c05
lea eax, [edx + 1]
mov edi, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x403bee
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 0x403c1a
push dword [ebp - 0x30]
mov byte [ebp - 0x2c], 0
push 1
push dword [ebp - 0x2c]
push 1
mov ecx, esi
call fcn.004041d0
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x403c45
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
cmp edx, 0x10
jb 0x403c36
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.004041d0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret