Function at 0x4031d0
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 0x403201
mov eax, dword [esi]
mov dword [esi + 0x10], 0
mov byte [eax], 0
test ecx, ecx
je 0x4033f3
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x403222
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 + 0x8cceb0]
mov byte [ebp - 0xc], al
mov eax, ecx
sub eax, edx
cmp eax, 1
jb 0x40326b
lea eax, [edx + 1]
mov ebx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x403250
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 0x403280
push dword [ebp - 0xc]
mov byte [ebp - 0x24], 0
mov ecx, esi
push 1
push dword [ebp - 0x24]
push 1
call fcn.00403bc0
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x40328a
mov edx, dword [edi]
mov ecx, edi
jb 0x403290
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 + 0x8cceb0]
mov ecx, dword [esi + 0x14]
mov byte [ebp - 0x10], al
mov eax, ecx
sub eax, ebx
cmp eax, 1
jb 0x4032e3
lea eax, [ebx + 1]
mov edx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x4032cb
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 0x4032f8
push dword [ebp - 0x10]
mov byte [ebp - 0x28], 0
mov ecx, esi
push 1
push dword [ebp - 0x28]
push 1
call fcn.00403bc0
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x403302
mov edx, dword [edi]
mov ecx, edi
jb 0x403308
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 + 0x8cceb0]
mov ecx, dword [esi + 0x14]
mov byte [ebp - 0x14], al
mov eax, ecx
sub eax, ebx
cmp eax, 1
jb 0x40335f
lea eax, [ebx + 1]
mov edx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x403347
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 0x403374
push dword [ebp - 0x14]
mov byte [ebp - 0x2c], 0
mov ecx, esi
push 1
push dword [ebp - 0x2c]
push 1
call fcn.00403bc0
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x40337e
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 + 0x8cceb0]
mov byte [ebp - 0x18], al
mov eax, ecx
sub eax, edx
cmp eax, 1
jb 0x4033cb
lea eax, [edx + 1]
mov ebx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x4033b0
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 0x4033e0
push dword [ebp - 0x18]
mov byte [ebp - 0x30], 0
mov ecx, esi
push 1
push dword [ebp - 0x30]
push 1
call fcn.00403bc0
add ebx, 3
sub dword [ebp - 0x1c], 1
mov dword [ebp - 4], ebx
jne 0x403218
mov ebx, dword [ebp - 8]
cmp dword [ebp - 0x20], ebx
je 0x403649
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x403406
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 + 0x8cceb0]
mov byte [ebp - 0x1c], al
mov eax, ecx
sub eax, edx
cmp eax, 1
jb 0x40344f
lea eax, [edx + 1]
mov ebx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x403434
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 0x403464
push dword [ebp - 0x1c]
mov byte [ebp - 0x30], 0
mov ecx, esi
push 1
push dword [ebp - 0x30]
push 1
call fcn.00403bc0
mov eax, dword [edi + 0x14]
lea ecx, [ebx + 1]
mov edx, edi
cmp dword [ebp - 0x20], ecx
jne 0x40351e
cmp eax, 0x10
jb 0x40347e
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 + 0x8cceb0]
mov ecx, dword [esi + 0x14]
mov eax, ecx
sub eax, edx
mov byte [ebp - 0x30], bl
cmp eax, 1
jb 0x4034d0
lea eax, [edx + 1]
mov edi, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x4034b9
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 0x4034e5
push dword [ebp - 0x30]
mov byte [ebp - 0x2c], 0
mov ecx, esi
push 1
push dword [ebp - 0x2c]
push 1
call fcn.00403bc0
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x40350e
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x403503
mov eax, dword [esi]
mov word [eax + ecx], 0x3d
jmp 0x40360a
push 0x3d
push 1
mov byte [ebp - 0x30], 0
push dword [ebp - 0x30]
jmp 0x403601
cmp eax, 0x10
jb 0x403525
mov edx, dword [edi]
mov ecx, edi
jb 0x40352b
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 + 0x8cceb0]
mov ecx, dword [esi + 0x14]
mov byte [ebp - 0x20], al
mov eax, ecx
sub eax, edx
cmp eax, 1
jb 0x403581
lea eax, [edx + 1]
mov ebx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x403566
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 0x403596
push dword [ebp - 0x20]
mov byte [ebp - 0x30], 0
mov ecx, esi
push 1
push dword [ebp - 0x30]
push 1
call fcn.00403bc0
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x4035a2
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 + 0x8cceb0]
mov ecx, dword [esi + 0x14]
mov eax, ecx
sub eax, edx
mov byte [ebp - 0x30], bl
cmp eax, 1
jb 0x4035f5
lea eax, [edx + 1]
mov edi, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x4035de
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 0x40360a
push dword [ebp - 0x30]
mov byte [ebp - 0x2c], 0
push 1
push dword [ebp - 0x2c]
push 1
mov ecx, esi
call fcn.00403bc0
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x403635
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
cmp edx, 0x10
jb 0x403626
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.00403bc0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret