Function at 0x403160
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 0x403191
mov eax, dword [esi]
mov dword [esi + 0x10], 0
mov byte [eax], 0
test ecx, ecx
je 0x403383
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x4031b2
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 + 0x8d0280]
mov byte [ebp - 0xc], al
mov eax, ecx
sub eax, edx
cmp eax, 1
jb 0x4031fb
lea eax, [edx + 1]
mov ebx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x4031e0
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 0x403210
push dword [ebp - 0xc]
mov byte [ebp - 0x24], 0
mov ecx, esi
push 1
push dword [ebp - 0x24]
push 1
call fcn.00403b50
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x40321a
mov edx, dword [edi]
mov ecx, edi
jb 0x403220
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 + 0x8d0280]
mov ecx, dword [esi + 0x14]
mov byte [ebp - 0x10], al
mov eax, ecx
sub eax, ebx
cmp eax, 1
jb 0x403273
lea eax, [ebx + 1]
mov edx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x40325b
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 0x403288
push dword [ebp - 0x10]
mov byte [ebp - 0x28], 0
mov ecx, esi
push 1
push dword [ebp - 0x28]
push 1
call fcn.00403b50
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x403292
mov edx, dword [edi]
mov ecx, edi
jb 0x403298
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 + 0x8d0280]
mov ecx, dword [esi + 0x14]
mov byte [ebp - 0x14], al
mov eax, ecx
sub eax, ebx
cmp eax, 1
jb 0x4032ef
lea eax, [ebx + 1]
mov edx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x4032d7
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 0x403304
push dword [ebp - 0x14]
mov byte [ebp - 0x2c], 0
mov ecx, esi
push 1
push dword [ebp - 0x2c]
push 1
call fcn.00403b50
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x40330e
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 + 0x8d0280]
mov byte [ebp - 0x18], al
mov eax, ecx
sub eax, edx
cmp eax, 1
jb 0x40335b
lea eax, [edx + 1]
mov ebx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x403340
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 0x403370
push dword [ebp - 0x18]
mov byte [ebp - 0x30], 0
mov ecx, esi
push 1
push dword [ebp - 0x30]
push 1
call fcn.00403b50
add ebx, 3
sub dword [ebp - 0x1c], 1
mov dword [ebp - 4], ebx
jne 0x4031a8
mov ebx, dword [ebp - 8]
cmp dword [ebp - 0x20], ebx
je 0x4035d9
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x403396
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 + 0x8d0280]
mov byte [ebp - 0x1c], al
mov eax, ecx
sub eax, edx
cmp eax, 1
jb 0x4033df
lea eax, [edx + 1]
mov ebx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x4033c4
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 0x4033f4
push dword [ebp - 0x1c]
mov byte [ebp - 0x30], 0
mov ecx, esi
push 1
push dword [ebp - 0x30]
push 1
call fcn.00403b50
mov eax, dword [edi + 0x14]
lea ecx, [ebx + 1]
mov edx, edi
cmp dword [ebp - 0x20], ecx
jne 0x4034ae
cmp eax, 0x10
jb 0x40340e
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 + 0x8d0280]
mov ecx, dword [esi + 0x14]
mov eax, ecx
sub eax, edx
mov byte [ebp - 0x30], bl
cmp eax, 1
jb 0x403460
lea eax, [edx + 1]
mov edi, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x403449
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 0x403475
push dword [ebp - 0x30]
mov byte [ebp - 0x2c], 0
mov ecx, esi
push 1
push dword [ebp - 0x2c]
push 1
call fcn.00403b50
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x40349e
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x403493
mov eax, dword [esi]
mov word [eax + ecx], 0x3d
jmp 0x40359a
push 0x3d
push 1
mov byte [ebp - 0x30], 0
push dword [ebp - 0x30]
jmp 0x403591
cmp eax, 0x10
jb 0x4034b5
mov edx, dword [edi]
mov ecx, edi
jb 0x4034bb
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 + 0x8d0280]
mov ecx, dword [esi + 0x14]
mov byte [ebp - 0x20], al
mov eax, ecx
sub eax, edx
cmp eax, 1
jb 0x403511
lea eax, [edx + 1]
mov ebx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x4034f6
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 0x403526
push dword [ebp - 0x20]
mov byte [ebp - 0x30], 0
mov ecx, esi
push 1
push dword [ebp - 0x30]
push 1
call fcn.00403b50
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x403532
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 + 0x8d0280]
mov ecx, dword [esi + 0x14]
mov eax, ecx
sub eax, edx
mov byte [ebp - 0x30], bl
cmp eax, 1
jb 0x403585
lea eax, [edx + 1]
mov edi, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x40356e
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 0x40359a
push dword [ebp - 0x30]
mov byte [ebp - 0x2c], 0
push 1
push dword [ebp - 0x2c]
push 1
mov ecx, esi
call fcn.00403b50
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x4035c5
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
cmp edx, 0x10
jb 0x4035b6
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.00403b50
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret