Function at 0x10012980
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068989
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x1008b008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], 0
call fcn.10005770
mov dword [ebp - 4], 0
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], 1
test eax, eax
je 0x1001307d
nop dword [eax]
dec eax
mov dword [ebp + 8], eax
mov al, byte [edi]
inc edi
mov byte [ebp + esi - 0x20], al
inc esi
mov ch, byte [ebp - 0x1e]
mov dl, byte [ebp - 0x1f]
mov cl, byte [ebp - 0x20]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x4c], edi
mov byte [ebp - 0x1c], ch
mov byte [ebp - 0x15], dl
mov byte [ebp - 0x16], cl
cmp esi, 3
jne 0x10012c4c
mov al, cl
xor esi, esi
shr al, 2
and cl, 3
mov byte [ebp - 0x28], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov dword [ebp - 0x38], esi
mov byte [ebp - 0x27], cl
mov al, ch
mov cl, dl
shr al, 6
and cl, 0xf
shl cl, 2
add cl, al
mov al, ch
mov byte [ebp - 0x26], cl
and al, 0x3f
mov ecx, 0x1008d738
mov byte [ebp - 0x25], al
call fcn.100029a0
mov edi, eax
mov ecx, ebx
mov dword [ebp - 0x48], edi
call fcn.100029a0
mov ebx, eax
nop dword [eax + eax]
cmp dword [edi + 0x14], 0x10
mov ecx, edi
jb 0x10012a6a
mov ecx, dword [edi]
movzx eax, byte [ebp + esi - 0x28]
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x44], edi
mov al, byte [eax + ecx]
mov ecx, dword [ebx + 0x14]
mov byte [ebp - 0xd], al
mov byte [ebp - 0x14], al
mov dword [ebp - 0x2c], ecx
cmp edi, ecx
jae 0x10012abd
lea eax, [edi + 1]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp ecx, 0x10
jb 0x10012a97
mov eax, dword [ebx]
lea esi, [eax + edi]
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.1000423e
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0
push eax
lea eax, [esi + 1]
push eax
call fcn.1000423e
add esp, 0x10
jmp 0x10012c25
mov esi, dword [ebp - 0x24]
mov ecx, esi
call fcn.10002364
sub eax, edi
cmp eax, 1
jb 0x10013097
mov ecx, esi
call fcn.10002364
lea ecx, [edi + 1]
mov esi, eax
or ecx, 0xf
mov dword [ebp - 0x40], ecx
cmp ecx, esi
ja 0x10012b17
mov ecx, dword [ebp - 0x24]
call fcn.100029a0
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x10012b17
lea eax, [edx + ecx]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10002a23
add esp, 8
mov esi, dword [eax]
lea ecx, [esi + 1]
cmp ecx, 0x1000
jb 0x10012b4d
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.10045a5f
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10013092
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x10012b5e
test ecx, ecx
je 0x10012b5c
push ecx
call fcn.10045a5f
add esp, 4
jmp 0x10012b5e
xor eax, eax
cmp dword [ebp - 0x2c], 0x10
mov cl, byte [ebp - 0xd]
mov dword [ebp - 0x30], eax
lea eax, [edi + 1]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], esi
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x14], cl
jb 0x10012bdd
mov esi, dword [ebp - 0x44]
mov edi, dword [ebx]
push esi
push edi
push eax
call fcn.1000422c
add esi, dword [ebp - 0x34]
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.1000423e
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0
push eax
lea eax, [esi + 1]
push eax
call fcn.1000423e
mov ecx, dword [ebp - 0x2c]
add esp, 0x1c
inc ecx
cmp ecx, 0x1000
jb 0x10012bcc
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x10013092
mov edi, edx
push ecx
push edi
call fcn.10045a8f
mov eax, dword [ebp - 0x30]
add esp, 8
mov dword [ebx], eax
jmp 0x10012c25
push edi
push ebx
push eax
call fcn.1000422c
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x14]
push eax
add esi, edi
push esi
call fcn.1000423e
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0
push eax
lea eax, [esi + 1]
push eax
call fcn.1000423e
lea eax, [ebp - 0x30]
push eax
call fcn.10002bc4
push ebx
mov esi, eax
call fcn.10002bc4
push eax
push 4
call fcn.1000235c
mov ecx, dword [esi]
add esp, 0x2c
mov dword [eax], ecx
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x48]
inc esi
mov dword [ebp - 0x38], esi
cmp esi, 4
jl 0x10012a60
mov ebx, dword [ebp - 0x24]
xor esi, esi
mov dl, byte [ebp - 0x15]
mov cl, byte [ebp - 0x16]
mov edi, dword [ebp - 0x4c]
mov ch, byte [ebp - 0x1c]
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp + 8]
test eax, eax
jne 0x100129e0
test esi, esi
je 0x1001307d
mov eax, esi
cmp esi, 3
jge 0x10012c83
cmp eax, 3
jae 0x1001309c
mov byte [ebp + eax - 0x20], 0
inc eax
cmp eax, 3
jl 0x10012c69
mov ch, byte [ebp - 0x1e]
mov dl, byte [ebp - 0x1f]
mov cl, byte [ebp - 0x20]
mov al, cl
xor ebx, ebx
shr al, 2
and cl, 3
mov byte [ebp - 0x28], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x27], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x25], ch
lea eax, [esi + 1]
mov byte [ebp - 0x26], dl
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x44], eax
test eax, eax
jle 0x10012eb2
mov ecx, 0x1008d738
call fcn.100029a0
mov ecx, dword [ebp - 0x24]
mov esi, eax
mov dword [ebp - 0x40], esi
call fcn.100029a0
mov edi, eax
nop dword [eax]
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x10012cea
mov ecx, dword [esi]
movzx eax, byte [ebp + ebx - 0x28]
mov esi, dword [edi + 0x10]
mov al, byte [eax + ecx]
mov ecx, dword [edi + 0x14]
mov byte [ebp + 0xb], al
mov byte [ebp - 0x1c], al
mov dword [ebp - 0x38], ecx
cmp esi, ecx
jae 0x10012d39
lea eax, [esi + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp ecx, 0x10
jb 0x10012d14
mov eax, dword [edi]
add esi, eax
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.1000423e
lea eax, [ebp + 0xb]
mov byte [ebp + 0xb], 0
push eax
lea eax, [esi + 1]
push eax
call fcn.1000423e
add esp, 0x10
jmp 0x10012e9e
mov ebx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.10002364
sub eax, esi
cmp eax, 1
jb 0x10013097
mov ecx, ebx
call fcn.10002364
lea ecx, [esi + 1]
mov ebx, eax
or ecx, 0xf
mov dword [ebp - 0x48], ecx
cmp ecx, ebx
ja 0x10012d93
mov ecx, dword [ebp - 0x24]
call fcn.100029a0
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, ebx
sub eax, ecx
cmp edx, eax
ja 0x10012d93
lea eax, [edx + ecx]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.10002a23
add esp, 8
mov ebx, dword [eax]
lea ecx, [ebx + 1]
cmp ecx, 0x1000
jb 0x10012dc9
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.10045a5f
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10013092
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x10012dda
test ecx, ecx
je 0x10012dd8
push ecx
call fcn.10045a5f
add esp, 4
jmp 0x10012dda
xor eax, eax
cmp dword [ebp - 0x38], 0x10
mov cl, byte [ebp + 0xb]
mov dword [ebp - 0x30], eax
lea eax, [esi + 1]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ebx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
push esi
mov byte [ebp + 8], cl
jb 0x10012e56
mov ebx, dword [edi]
push ebx
push eax
call fcn.1000422c
add esi, dword [ebp - 0x34]
lea eax, [ebp + 8]
push eax
push esi
call fcn.1000423e
lea eax, [ebp + 0xb]
mov byte [ebp + 0xb], 0
push eax
lea eax, [esi + 1]
push eax
call fcn.1000423e
mov ecx, dword [ebp - 0x38]
add esp, 0x1c
inc ecx
cmp ecx, 0x1000
jb 0x10012e45
mov edx, dword [ebx - 4]
add ecx, 0x23
sub ebx, edx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x10013092
mov ebx, edx
push ecx
push ebx
call fcn.10045a8f
mov eax, dword [ebp - 0x30]
add esp, 8
mov dword [edi], eax
jmp 0x10012e9b
push edi
push eax
call fcn.1000422c
add esi, dword [ebp - 0x34]
lea eax, [ebp + 8]
push eax
push esi
call fcn.1000423e
lea eax, [ebp + 0xb]
mov byte [ebp + 0xb], 0
push eax
lea eax, [esi + 1]
push eax
call fcn.1000423e
lea eax, [ebp - 0x30]
push eax
call fcn.10002bc4
push edi
mov esi, eax
call fcn.10002bc4
push eax
push 4
call fcn.1000235c
mov ecx, dword [esi]
add esp, 0x2c
mov dword [eax], ecx
mov ebx, dword [ebp - 0x20]
inc ebx
mov dword [ebp - 0x20], ebx
cmp ebx, dword [ebp - 0x44]
jge 0x10012eaf
mov esi, dword [ebp - 0x40]
jmp 0x10012ce0
mov esi, dword [ebp - 0x2c]
cmp esi, 3
jge 0x1001307d
mov ebx, dword [ebp - 0x24]
mov ecx, ebx
mov byte [ebp + 8], 0x3d
call fcn.100029a0
mov edi, eax
nop dword [eax + eax]
mov ecx, dword [edi + 0x14]
inc esi
mov dword [ebp - 0x2c], esi
mov esi, dword [edi + 0x10]
mov dword [ebp - 0x38], ecx
cmp esi, ecx
jae 0x10012f15
lea eax, [esi + 1]
mov dword [edi + 0x10], eax
mov eax, edi
cmp ecx, 0x10
jb 0x10012ef0
mov eax, dword [edi]
add esi, eax
lea eax, [ebp + 8]
push eax
push esi
call fcn.1000423e
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1c], 0
push eax
lea eax, [esi + 1]
push eax
call fcn.1000423e
add esp, 0x10
jmp 0x10013071
mov ecx, ebx
call fcn.10002364
sub eax, esi
cmp eax, 1
jb 0x10013097
mov ecx, ebx
call fcn.10002364
lea ecx, [esi + 1]
mov ebx, eax
or ecx, 0xf
mov dword [ebp - 0x48], ecx
cmp ecx, ebx
ja 0x10012f6c
mov ecx, dword [ebp - 0x24]
call fcn.100029a0
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, ebx
sub eax, ecx
cmp edx, eax
ja 0x10012f6c
lea eax, [edx + ecx]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.10002a23
add esp, 8
mov ebx, dword [eax]
lea ecx, [ebx + 1]
cmp ecx, 0x1000
jb 0x10012fa2
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.10045a5f
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10013092
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x10012fb3
test ecx, ecx
je 0x10012fb1
push ecx
call fcn.10045a5f
add esp, 4
jmp 0x10012fb3
xor eax, eax
cmp dword [ebp - 0x38], 0x10
mov dword [ebp - 0x30], eax
lea eax, [esi + 1]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ebx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x1c], 0x3d
push esi
jb 0x10013029
mov ebx, dword [edi]
push ebx
push eax
call fcn.1000422c
add esi, dword [ebp - 0x34]
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.1000423e
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1c], 0
push eax
lea eax, [esi + 1]
push eax
call fcn.1000423e
mov ecx, dword [ebp - 0x38]
add esp, 0x1c
inc ecx
cmp ecx, 0x1000
jb 0x10013018
mov edx, dword [ebx - 4]
add ecx, 0x23
sub ebx, edx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x10013092
mov ebx, edx
push ecx
push ebx
call fcn.10045a8f
mov eax, dword [ebp - 0x30]
add esp, 8
mov dword [edi], eax
jmp 0x1001306e
push edi
push eax
call fcn.1000422c
add esi, dword [ebp - 0x34]
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.1000423e
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1c], 0
push eax
lea eax, [esi + 1]
push eax
call fcn.1000423e
lea eax, [ebp - 0x30]
push eax
call fcn.10002bc4
push edi
mov esi, eax
call fcn.10002bc4
push eax
push 4
call fcn.1000235c
mov ecx, dword [esi]
add esp, 0x2c
mov dword [eax], ecx
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x2c]
cmp esi, 3
jl 0x10012ed0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1004eec7
call fcn.10002e9f
call fcn.1004597c
int3