Function at 0x100086c0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, 0xaaaaaaab
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x10]
mul ecx
mov dword [ebp - 0x14], ecx
mov eax, esi
shr edx, 1
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x18], edx
mov dword [esi + 0x10], 0
lea ebx, [edx + edx*2]
mov dword [ebp - 0x1c], ebx
jb 0x100086f8
mov eax, dword [esi]
xor ecx, ecx
mov byte [eax], 0
mov dword [ebp + 0xc], ecx
test edx, edx
je 0x10008d6e
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x10008712
mov eax, dword [edi]
mov edx, dword [esi + 0x10]
lea ecx, [ecx + ecx*2]
movzx eax, byte [ecx + eax]
mov ecx, dword [esi + 0x14]
shr eax, 2
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
mov al, byte [eax + 0x1005c998]
mov byte [ebp + 0xb], al
mov eax, ecx
sub eax, edx
cmp eax, 1
jb 0x10008764
lea eax, [edx + 1]
mov ebx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x10008749
mov ebx, dword [esi]
movsx ecx, byte [ebp + 0xb]
movzx eax, cl
shl cx, 8
or cx, ax
mov byte [ebx + edx], cl
mov byte [ebx + edx + 1], 0
jmp 0x1000888e
mov eax, SysReAllocString
sub eax, edx
cmp eax, 1
jb 0x10008e5b
lea ebx, [edx + 1]
or ebx, 0xf
cmp ebx, 0x7fffffff
jbe 0x10008789
mov ebx, SysReAllocString
jmp 0x100087a8
shr ecx, 1
mov eax, SysReAllocString
sub eax, ecx
cmp dword [ebp - 4], eax
jbe 0x1000879e
mov ebx, SysReAllocString
jmp 0x100087a8
mov eax, dword [ebp - 4]
add eax, ecx
cmp ebx, eax
cmovb ebx, eax
mov dword [ebp - 8], ebx
inc ebx
cmp ebx, 0x1000
jb 0x100087e0
lea eax, [ebx + 0x23]
mov ecx, 0xffffffff
cmp eax, ebx
cmovbe eax, ecx
push eax
call fcn.1003462a
add esp, 4
test eax, eax
je 0x10008e56
mov edx, dword [ebp - 0xc]
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x100087f6
test ebx, ebx
je 0x100087f4
push ebx
call fcn.1003462a
mov edx, dword [ebp - 0xc]
add esp, 4
mov ebx, eax
jmp 0x100087f6
xor ebx, ebx
cmp dword [ebp - 4], 0x10
lea eax, [edx + 1]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x14], eax
movsx eax, byte [ebp + 0xb]
mov dword [ebp - 0xc], eax
lea eax, [ebx + edx]
mov dword [ebp - 8], eax
push edx
jb 0x1000886c
mov eax, dword [esi]
push eax
push ebx
mov dword [ebp + 8], eax
call fcn.10036570
mov cl, byte [ebp - 0xc]
add esp, 0xc
movzx eax, cl
shl cx, 8
or cx, ax
mov eax, dword [ebp - 8]
mov byte [eax], cl
mov ecx, dword [ebp - 4]
inc ecx
mov byte [eax + 1], 0
mov eax, dword [ebp + 8]
cmp ecx, 0x1000
jb 0x10008860
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008e56
mov eax, edx
push ecx
push eax
call fcn.1003465a
add esp, 8
jmp 0x1000888c
push esi
push ebx
call fcn.10036570
mov cl, byte [ebp - 0xc]
add esp, 0xc
movzx eax, cl
shl cx, 8
or cx, ax
mov eax, dword [ebp - 8]
mov byte [eax], cl
mov byte [eax + 1], 0
mov dword [esi], ebx
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x10008898
mov edx, dword [edi]
mov ecx, edi
jb 0x1000889e
mov ecx, dword [edi]
mov eax, dword [ebp + 0xc]
lea ebx, [eax + eax*2]
movsx eax, byte [ebx + edx]
movzx ecx, byte [ebx + ecx + 1]
and eax, 3
mov edx, dword [esi + 0x10]
shl eax, 4
shr ecx, 4
or ecx, eax
mov dword [ebp - 0xc], edx
mov al, byte [ecx + 0x1005c998]
mov ecx, dword [esi + 0x14]
mov byte [ebp + 0xb], al
mov eax, ecx
sub eax, edx
mov dword [ebp - 4], ecx
cmp eax, 1
jb 0x10008900
lea eax, [edx + 1]
mov ebx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x100088e5
mov ebx, dword [esi]
movsx ecx, byte [ebp + 0xb]
movzx eax, cl
shl cx, 8
or cx, ax
mov byte [ebx + edx], cl
mov byte [ebx + edx + 1], 0
jmp 0x10008a2a
mov eax, SysReAllocString
sub eax, edx
cmp eax, 1
jb 0x10008e5b
lea ebx, [edx + 1]
or ebx, 0xf
cmp ebx, 0x7fffffff
jbe 0x10008925
mov ebx, SysReAllocString
jmp 0x10008944
shr ecx, 1
mov eax, SysReAllocString
sub eax, ecx
cmp dword [ebp - 4], eax
jbe 0x1000893a
mov ebx, SysReAllocString
jmp 0x10008944
mov eax, dword [ebp - 4]
add eax, ecx
cmp ebx, eax
cmovb ebx, eax
mov dword [ebp - 8], ebx
inc ebx
cmp ebx, 0x1000
jb 0x1000897c
lea eax, [ebx + 0x23]
mov ecx, 0xffffffff
cmp eax, ebx
cmovbe eax, ecx
push eax
call fcn.1003462a
add esp, 4
test eax, eax
je 0x10008e56
mov edx, dword [ebp - 0xc]
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x10008992
test ebx, ebx
je 0x10008990
push ebx
call fcn.1003462a
mov edx, dword [ebp - 0xc]
add esp, 4
mov ebx, eax
jmp 0x10008992
xor ebx, ebx
cmp dword [ebp - 4], 0x10
lea eax, [edx + 1]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x14], eax
movsx eax, byte [ebp + 0xb]
mov dword [ebp - 0xc], eax
lea eax, [ebx + edx]
mov dword [ebp - 8], eax
push edx
jb 0x10008a08
mov eax, dword [esi]
push eax
push ebx
mov dword [ebp + 8], eax
call fcn.10036570
mov cl, byte [ebp - 0xc]
add esp, 0xc
movzx eax, cl
shl cx, 8
or cx, ax
mov eax, dword [ebp - 8]
mov byte [eax], cl
mov ecx, dword [ebp - 4]
inc ecx
mov byte [eax + 1], 0
mov eax, dword [ebp + 8]
cmp ecx, 0x1000
jb 0x100089fc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008e56
mov eax, edx
push ecx
push eax
call fcn.1003465a
add esp, 8
jmp 0x10008a28
push esi
push ebx
call fcn.10036570
mov cl, byte [ebp - 0xc]
add esp, 0xc
movzx eax, cl
shl cx, 8
or cx, ax
mov eax, dword [ebp - 8]
mov byte [eax], cl
mov byte [eax + 1], 0
mov dword [esi], ebx
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x10008a34
mov edx, dword [edi]
mov ecx, edi
jb 0x10008a3a
mov ecx, dword [edi]
mov ebx, dword [ebp + 0xc]
lea eax, [ebx + ebx*2]
movzx ecx, byte [eax + ecx + 2]
movsx eax, byte [eax + edx + 1]
mov edx, dword [esi + 0x10]
and eax, 0xf
shl eax, 2
shr ecx, 6
or ecx, eax
mov dword [ebp - 0xc], edx
mov al, byte [ecx + 0x1005c998]
mov ecx, dword [esi + 0x14]
mov byte [ebp + 0xb], al
mov eax, ecx
sub eax, edx
mov dword [ebp - 4], ecx
cmp eax, 1
jb 0x10008a9d
lea eax, [edx + 1]
mov ebx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x10008a82
mov ebx, dword [esi]
movsx ecx, byte [ebp + 0xb]
movzx eax, cl
shl cx, 8
or cx, ax
mov byte [ebx + edx], cl
mov byte [ebx + edx + 1], 0
jmp 0x10008bc7
mov eax, SysReAllocString
sub eax, edx
cmp eax, 1
jb 0x10008e5b
lea ebx, [edx + 1]
or ebx, 0xf
cmp ebx, 0x7fffffff
jbe 0x10008ac2
mov ebx, SysReAllocString
jmp 0x10008ae1
shr ecx, 1
mov eax, SysReAllocString
sub eax, ecx
cmp dword [ebp - 4], eax
jbe 0x10008ad7
mov ebx, SysReAllocString
jmp 0x10008ae1
mov eax, dword [ebp - 4]
add eax, ecx
cmp ebx, eax
cmovb ebx, eax
mov dword [ebp - 8], ebx
inc ebx
cmp ebx, 0x1000
jb 0x10008b19
lea eax, [ebx + 0x23]
mov ecx, 0xffffffff
cmp eax, ebx
cmovbe eax, ecx
push eax
call fcn.1003462a
add esp, 4
test eax, eax
je 0x10008e56
mov edx, dword [ebp - 0xc]
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x10008b2f
test ebx, ebx
je 0x10008b2d
push ebx
call fcn.1003462a
mov edx, dword [ebp - 0xc]
add esp, 4
mov ebx, eax
jmp 0x10008b2f
xor ebx, ebx
cmp dword [ebp - 4], 0x10
lea eax, [edx + 1]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x14], eax
movsx eax, byte [ebp + 0xb]
mov dword [ebp - 0xc], eax
lea eax, [ebx + edx]
mov dword [ebp - 8], eax
push edx
jb 0x10008ba5
mov eax, dword [esi]
push eax
push ebx
mov dword [ebp + 8], eax
call fcn.10036570
mov cl, byte [ebp - 0xc]
add esp, 0xc
movzx eax, cl
shl cx, 8
or cx, ax
mov eax, dword [ebp - 8]
mov byte [eax], cl
mov ecx, dword [ebp - 4]
inc ecx
mov byte [eax + 1], 0
mov eax, dword [ebp + 8]
cmp ecx, 0x1000
jb 0x10008b99
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008e56
mov eax, edx
push ecx
push eax
call fcn.1003465a
add esp, 8
jmp 0x10008bc5
push esi
push ebx
call fcn.10036570
mov cl, byte [ebp - 0xc]
add esp, 0xc
movzx eax, cl
shl cx, 8
or cx, ax
mov eax, dword [ebp - 8]
mov byte [eax], cl
mov byte [eax + 1], 0
mov dword [esi], ebx
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x10008bd1
mov eax, dword [edi]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x10], edx
lea ebx, [ecx + ecx*2]
mov ecx, dword [esi + 0x14]
movsx eax, byte [ebx + eax + 2]
and eax, 0x3f
mov dword [ebp - 4], ecx
mov al, byte [eax + 0x1005c998]
mov byte [ebp + 0xb], al
mov eax, ecx
sub eax, edx
cmp eax, 1
jb 0x10008c27
lea eax, [edx + 1]
mov ebx, esi
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x10008c0c
mov ebx, dword [esi]
movsx ecx, byte [ebp + 0xb]
movzx eax, cl
shl cx, 8
or cx, ax
mov byte [ebx + edx], cl
mov byte [ebx + edx + 1], 0
jmp 0x10008d5b
mov eax, SysReAllocString
sub eax, edx
cmp eax, 1
jb 0x10008e5b
lea ebx, [edx + 1]
or ebx, 0xf
cmp ebx, 0x7fffffff
jbe 0x10008c4c
mov ebx, SysReAllocString
jmp 0x10008c70
mov eax, ecx
shr eax, 1
mov dword [ebp - 0xc], eax
mov eax, SysReAllocString
sub eax, dword [ebp - 0xc]
cmp ecx, eax
jbe 0x10008c66
mov ebx, SysReAllocString
jmp 0x10008c70
mov eax, dword [ebp - 0xc]
add eax, ecx
cmp ebx, eax
cmovb ebx, eax
mov dword [ebp - 8], ebx
inc ebx
cmp ebx, 0x1000
jb 0x10008cab
lea eax, [ebx + 0x23]
mov ecx, 0xffffffff
cmp eax, ebx
cmovbe eax, ecx
push eax
call fcn.1003462a
add esp, 4
test eax, eax
je 0x10008e56
mov edx, dword [ebp - 0x10]
lea ebx, [eax + 0x23]
mov ecx, dword [ebp - 4]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x10008cc4
test ebx, ebx
je 0x10008cc2
push ebx
call fcn.1003462a
mov edx, dword [ebp - 0x10]
add esp, 4
mov ecx, dword [ebp - 4]
mov ebx, eax
jmp 0x10008cc4
xor ebx, ebx
lea eax, [edx + 1]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x14], eax
movsx eax, byte [ebp + 0xb]
mov dword [ebp - 0x10], eax
lea eax, [ebx + edx]
mov dword [ebp - 0xc], eax
push edx
cmp ecx, 0x10
jb 0x10008d39
mov eax, dword [esi]
push eax
push ebx
mov dword [ebp + 8], eax
call fcn.10036570
mov cl, byte [ebp - 0x10]
add esp, 0xc
movzx eax, cl
shl cx, 8
or cx, ax
mov eax, dword [ebp - 0xc]
mov byte [eax], cl
mov ecx, dword [ebp - 4]
inc ecx
mov byte [eax + 1], 0
mov eax, dword [ebp + 8]
cmp ecx, 0x1000
jb 0x10008d2d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008e56
mov eax, edx
push ecx
push eax
call fcn.1003465a
add esp, 8
jmp 0x10008d59
push esi
push ebx
call fcn.10036570
mov cl, byte [ebp - 0x10]
add esp, 0xc
movzx eax, cl
shl cx, 8
or cx, ax
mov eax, dword [ebp - 0xc]
mov byte [eax], cl
mov byte [eax + 1], 0
mov dword [esi], ebx
mov ecx, dword [ebp + 0xc]
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, dword [ebp - 0x18]
jb 0x10008708
mov ebx, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], ebx
je 0x10008e4d
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x10008d81
mov eax, dword [edi]
movzx eax, byte [ebx + eax]
mov ecx, esi
shr eax, 2
movzx eax, byte [eax + 0x1005c998]
push eax
push 1
call fcn.10008e80
mov eax, dword [edi + 0x14]
lea ecx, [ebx + 1]
mov edx, edi
cmp dword [ebp - 0x14], ecx
jne 0x10008dda
cmp eax, 0x10
jb 0x10008daf
mov edx, dword [edi]
mov edi, edx
movsx eax, byte [edx + ebx]
movzx ecx, byte [edi + ebx + 1]
and eax, 3
shr ecx, 4
shl eax, 4
or ecx, eax
movzx eax, byte [ecx + 0x1005c998]
mov ecx, esi
push eax
push 1
call fcn.10008e80
mov byte [ebp + 8], 0x3d
jmp 0x10008e36
cmp eax, 0x10
jb 0x10008de1
mov edx, dword [edi]
mov ecx, edi
jb 0x10008de7
mov ecx, dword [edi]
movzx ecx, byte [ecx + ebx + 1]
movsx eax, byte [edx + ebx]
and eax, 3
shr ecx, 4
shl eax, 4
or ecx, eax
movzx eax, byte [ecx + 0x1005c998]
mov ecx, esi
push eax
push 1
call fcn.10008e80
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x10008e18
mov eax, dword [edi]
mov edi, eax
movsx eax, byte [eax + ebx + 1]
movzx ecx, byte [edi + ebx + 2]
and eax, 0xf
shl eax, 2
shr ecx, 6
or ecx, eax
mov al, byte [ecx + 0x1005c998]
mov byte [ebp + 8], al
push dword [ebp + 8]
mov ecx, esi
push 1
call fcn.10008e80
push 0x3d
push 1
mov ecx, esi
call fcn.10008e80
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10039dac
call fcn.100065b0
int3