Function at 0x10001a3d
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
mov eax, edx
mov dword [ebp - 0xc], eax
push esi
movzx esi, byte [eax + 0xd]
mov eax, dword [ebp + 8]
mov ebx, ecx
or esi, dword [eax]
push edi
mov dword [eax], esi
mov eax, dword [ebx + 0xc]
xor eax, esi
and eax, 0xff0000
xor dword [ebx + 0xc], eax
mov eax, dword [0x10075624]
add eax, 0x2e38584
mov dword [0x10075644], eax
mov dword [ebp - 8], 0x15
call dword [0x1005e264]
mov ecx, dword [ebp - 8]
xor edi, edi
mov dword [ecx*4 + 0x10075618], eax
mov edx, dword [ebx + 0xc]
test dl, dl
jns 0x10001ab8
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
movzx ecx, byte [esi]
mov eax, dword [eax + 0xc]
shl ecx, 8
and eax, 3
or ecx, eax
and edx, 0xffff0000
or ecx, edx
mov dword [ebx + 0xc], ecx
jmp 0x10001af5
cmp dword [ebx + 0x14], edi
je 0x10001ac3
cmp byte [ebx + 0xd], 0
jne 0x10001acd
mov esi, dword [ebp + 8]
mov al, byte [esi]
mov byte [ebx + 0xd], al
jmp 0x10001ad0
mov esi, dword [ebp + 8]
cmp byte [0x1006b554], 0x61
jne 0x10001af5
call dword [0x1005e264]
test eax, eax
jne 0x10001af5
push dword [0x10075644]
push edi
call dword [0x1005e27c]
mov dword [0x10075648], eax
test dword [esi], 0x800000
je 0x10001b3b
mov dword [ebp - 8], edi
cmp dword [ebp - 8], 0x2be785d5
jne 0x10001b18
push 0x1006b5dc
push edi
push edi
call dword [0x1005e158]
jmp 0x10001b1e
inc dword [0x10075644]
mov edx, dword [ebp - 0xc]
lea ecx, [esi + 4]
call fcn.10002ef4
test eax, eax
jne 0x1000203b
mov eax, dword [0x1007561c]
mov dword [0x10075620], eax
mov esi, dword [esi]
and esi, 0x800000
neg esi
sbb esi, esi
mov dword [ebp - 8], 6
and esi, 0x800001
call dword [0x1005e264]
mov ecx, dword [ebp - 8]
push edi
push ebx
mov dword [ecx*4 + 0x10075618], eax
push 1
lea ecx, [ebp - 0x4c]
call fcn.100012b4
push edi
push dword [ebp - 0xc]
lea ecx, [ebp - 0x84]
push esi
call fcn.100012b4
mov ebx, dword [ebp + 8]
push 0xc
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.10041410
add esp, 0xc
mov ecx, 0x20000
push 2
pop edx
test dword [ebx], ecx
je 0x10001c9b
test dword [ebx], 0x200000
je 0x10001c47
mov eax, dword [0x1007564c]
cmp eax, 1
cmove eax, edx
xor dword [0x10075620], 0xfffffa95
mov dword [0x1007564c], eax
mov eax, dword [0x10075558]
imul eax, eax, 0x343fd
add eax, 0x269ec3
mov dword [0x10075558], eax
shr eax, 0x10
and eax, 0x3f
test dword [ebx], ecx
je 0x10001bf1
mov edx, eax
lea ecx, [ebp + 0xc]
call fcn.10001992
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x4c]
movzx eax, byte [eax + esi]
push eax
call fcn.10001679
mov eax, dword [0x10075558]
imul eax, eax, 0x343fd
add eax, 0x269ec3
mov dword [0x10075558], eax
shr eax, 0x10
and eax, 0x3f
test dword [ebx], 0x20000
je 0x10001c2e
mov edx, eax
lea ecx, [ebp + 0xc]
call fcn.10001992
movzx eax, byte [eax + esi]
push eax
lea ecx, [ebp - 0x4c]
call fcn.10001679
xor dword [0x10075620], 0xfffffa89
jmp 0x10001c8e
xor edx, edx
lea ecx, [ebp + 0xc]
call fcn.10001992
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x4c]
movzx eax, byte [eax + esi]
push eax
call fcn.10001679
xor dword [0x1007561c], 0xfffffa7a
test dword [ebx], 0x20000
je 0x10001c7f
xor edx, edx
lea ecx, [ebp + 0xc]
call fcn.10001992
jmp 0x10001c81
mov eax, edi
movzx eax, byte [eax + esi]
push eax
lea ecx, [ebp - 0x4c]
call fcn.10001679
mov ecx, dword [ebp + 0xc]
mov eax, ecx
rol eax, 0x10
xor ecx, eax
mov dword [ebp + 0xc], ecx
mov eax, dword [0x10075624]
mov ecx, dword [ebp - 0x54]
xor dword [0x1007561c], 0xfffffa69
add eax, 0x4c6496e
mov dword [0x10075644], eax
mov eax, dword [ebp - 0x5c]
shr ecx, 0x18
add ecx, dword [eax + 0x14]
mov dword [ebp - 0xc], edi
sub ecx, dword [ebp - 0x58]
je 0x10001fed
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x14], edi
call fcn.1000147e
mov byte [ebp - 0xe], al
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x84]
call fcn.1000147e
mov dword [ebp + 8], edi
cmp dword [ebp + 8], 0x3df2cf01
mov byte [ebp - 0xd], al
jne 0x10001d0e
push 0x1006b620
push edi
push edi
call dword [0x1005e158]
jmp 0x10001d14
inc dword [0x10075644]
mov dword [ebp + 8], 0x11
call dword [0x1005e264]
mov ecx, dword [ebp + 8]
mov dword [ecx*4 + 0x10075618], eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x84]
call fcn.1000147e
movzx esi, byte [ebp - 0xe]
mov byte [ebp + 0xb], al
mov eax, esi
shr eax, 2
test dword [ebx], 0x20000
je 0x10001d58
mov edx, eax
lea ecx, [ebp + 0xc]
call fcn.10001992
mov ecx, dword [ebp + 0x10]
movzx eax, byte [eax + ecx]
push eax
lea ecx, [ebp - 0x4c]
call fcn.10001679
movzx eax, byte [ebp - 0xd]
xor dword [0x10075620], 0xfffffa36
and esi, 3
mov dword [ebp - 8], eax
shl esi, 4
shr eax, 4
add eax, esi
test dword [ebx], 0x20000
je 0x10001d96
mov edx, eax
lea ecx, [ebp + 0xc]
call fcn.10001992
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x4c]
movzx eax, byte [eax + esi]
push eax
call fcn.10001679
cmp dword [ebp - 0x14], 1
jle 0x10001ddb
movzx eax, byte [ebp + 0xb]
mov ecx, dword [ebp - 8]
and ecx, 0xf
shr eax, 6
test dword [ebx], 0x20000
lea eax, [eax + ecx*4]
je 0x10001dce
mov edx, eax
lea ecx, [ebp + 0xc]
call fcn.10001992
movzx eax, byte [eax + esi]
push eax
lea ecx, [ebp - 0x4c]
call fcn.10001679
push 2
pop eax
cmp dword [ebp - 0x14], eax
jle 0x10001e09
movzx eax, byte [ebp + 0xb]
and eax, 0x3f
test dword [ebx], 0x20000
je 0x10001dfc
mov edx, eax
lea ecx, [ebp + 0xc]
call fcn.10001992
movzx eax, byte [eax + esi]
push eax
lea ecx, [ebp - 0x4c]
call fcn.10001679
test byte [ebp + 0xb], 0xaa
mov esi, dword [ebp - 0xc]
push 0
pop eax
setne al
add esi, eax
cmp byte [0x1006b554], 0x61
mov dword [ebp - 0xc], esi
jne 0x10001e40
call dword [0x1005e264]
test eax, eax
jne 0x10001e40
push dword [0x10075644]
push edi
call dword [0x1005e27c]
mov dword [0x10075648], eax
mov eax, dword [ebx]
not eax
test eax, 0x420000
jne 0x10001f78
cmp esi, 0xfa
jbe 0x10001f78
cmp byte [0x1006b554], 0x61
jne 0x10001e80
call dword [0x1005e264]
test eax, eax
jne 0x10001e80
push dword [0x10075644]
push edi
call dword [0x1005e27c]
mov dword [0x10075648], eax
cmp dword [0x100bed0c], edi
jne 0x10001ea6
push 0x1c
call fcn.1004127e
pop ecx
test eax, eax
je 0x10001e9f
push ecx
push ecx
mov ecx, eax
call fcn.100025b8
jmp 0x10001ea1
mov eax, edi
mov dword [0x100bed0c], eax
mov dword [ebp - 0xc], 7
call dword [0x1005e264]
mov ecx, dword [ebp - 0xc]
push 0xa
mov dword [ecx*4 + 0x10075618], eax
mov eax, dword [0x10075558]
imul eax, eax, 0x343fd
add eax, 0x269ec3
mov dword [0x10075558], eax
shr eax, 0x10
and eax, 0x7fff
add eax, dword [ebp - 8]
xor edx, edx
pop ecx
div ecx
mov eax, dword [0x1007561c]
mov dword [ebp - 0xc], edi
mov dword [0x10075620], eax
mov esi, edx
add esi, 0x3e8
je 0x10001f78
mov dword [ebp - 8], edi
cmp dword [ebp - 8], 0x15e888cd
jne 0x10001f16
push 0x1006b660
push edi
push edi
call dword [0x1005e158]
jmp 0x10001f1c
inc dword [0x10075644]
mov eax, dword [0x10075558]
mov ecx, dword [0x100bed0c]
imul eax, eax, 0x343fd
add eax, 0x269ec3
mov dword [0x10075558], eax
shr eax, 0x10
and eax, 0x7fff
xor edx, edx
div dword [ecx + 0x14]
mov eax, dword [ecx + 4]
lea ecx, [ebp - 0x4c]
movzx eax, byte [edx + eax]
push eax
call fcn.10001679
mov dword [ebp - 8], edi
cmp dword [ebp - 8], 0xbacaaebd
jne 0x10001f6f
push 0x1006b6a0
push edi
push edi
call dword [0x1005e158]
jmp 0x10001f75
inc dword [0x10075644]
dec esi
jne 0x10001efb
mov eax, dword [ebx]
not eax
test eax, 0x60000
jne 0x10001fd5
mov al, byte [ebp + 0xb]
and al, 7
cmp al, 7
jne 0x10001fd5
mov dword [ebp - 8], 7
call dword [0x1005e264]
mov ecx, dword [ebp - 8]
mov dword [ecx*4 + 0x10075618], eax
mov al, byte [ebp + 0xb]
and al, 0xa0
lea ecx, [ebp - 0x4c]
cmp al, 0xa0
jne 0x10001fc2
push 0x20
call fcn.10001679
xor dword [0x1007561c], 0xfffff9bb
jmp 0x10001fd5
push 0xd
call fcn.10001679
push 0xa
pop eax
push eax
lea ecx, [ebp - 0x4c]
call fcn.10001679
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x5c]
shr ecx, 0x18
add ecx, dword [eax + 0x14]
sub ecx, dword [ebp - 0x58]
jne 0x10001ccc
mov edi, dword [ebp - 0x14]
test dword [ebx], 0x10000
je 0x1000201e
mov eax, dword [0x1007564c]
push 2
pop ecx
cmp eax, 1
push 3
cmove eax, ecx
pop ebx
sub ebx, edi
mov dword [0x1007564c], eax
test ebx, ebx
jle 0x1000201e
push 0x3d
lea ecx, [ebp - 0x4c]
call fcn.10001679
dec ebx
jne 0x10002011
lea ecx, [ebp - 0x4c]
call fcn.10001909
test al, al
jne 0x1000202f
push 0xfffffffffffffffc
pop eax
jmp 0x1000203b
xor dword [0x10075620], 0xfffff98a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret