Function at 0x10002010
Capabilities:
Encode data using base64

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10127a55
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x101c8c40]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x70], esi
mov edi, ecx
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x18], edi
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x5c], eax
test eax, eax
jne 0x10002085
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xf
mov byte [edi], al
jmp 0x100024e1
cmp byte [ebx + 8], 0
je 0x1000218a
push esi
lea ecx, [ebp - 0x48]
call fcn.10001de0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x48]
mov esi, dword [ebp - 0x34]
cmp esi, 0xf
mov edx, dword [ebp - 0x48]
cmova eax, edx
add eax, dword [ebp - 0x38]
cmp esi, 0xf
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x48]
cmova eax, edx
add eax, dword [ebp - 0x38]
cmp esi, 0xf
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x48]
mov esi, dword [ebp - 0x5c]
cmova eax, edx
push 0xa
push esi
push eax
call fcn.10122bd0
mov edi, eax
cmp edi, esi
je 0x100020f3
lea ecx, [edi + 1]
cmp ecx, esi
je 0x100020f3
mov al, byte [ecx]
cmp al, 0xa
je 0x100020ee
mov byte [edi], al
inc edi
inc ecx
cmp ecx, esi
jne 0x100020e5
cmp dword [ebp - 0x34], 0xf
lea eax, [ebp - 0x48]
mov esi, edi
cmova eax, dword [ebp - 0x48]
sub dword [ebp - 0x54], edi
sub esi, eax
mov edi, dword [ebp - 0x38]
mov eax, edi
mov edx, dword [ebp - 0x54]
sub eax, esi
cmp eax, edx
cmovb edx, eax
cmp dword [ebp - 0x34], 0xf
mov dword [ebp - 0x54], edx
lea edx, [ebp - 0x48]
cmova edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x54]
add edx, esi
sub edi, eax
add eax, edx
mov ecx, edi
sub ecx, esi
inc ecx
push ecx
push eax
push edx
call sub.VCRUNTIME140.dll_memmove
mov esi, dword [ebp - 0x60]
lea edx, [ebp - 0x48]
push 0
mov ecx, esi
mov dword [ebp - 0x38], edi
call fcn.10001cb0
mov ecx, dword [ebp - 0x34]
add esp, 0x10
cmp ecx, 0xf
jbe 0x10002183
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002179
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10002179
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10122d0a
add esp, 8
mov eax, esi
jmp 0x100024e3
shr eax, 2
xor ecx, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x58], ecx
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], ecx
lea eax, [eax + eax*2]
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], cl
mov dword [ebp - 4], 1
cmp eax, 0xf
jbe 0x100021c9
push dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
push eax
call fcn.10002530
xor eax, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x5c], 0
jbe 0x100024bc
mov edi, 2
nop dword [eax + eax]
lea eax, [edi - 1]
cmp dword [esi + 0x10], eax
jbe 0x1000251c
cmp dword [esi + 0x14], 0xf
mov ecx, esi
jbe 0x100021f6
mov ecx, dword [esi]
mov cl, byte [edi + ecx - 1]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x10002209
movzx edx, cl
sub edx, 0x41
jmp 0x1000224b
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x10002218
movzx edx, cl
sub edx, 0x47
jmp 0x1000224b
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x10002227
movzx edx, cl
add edx, 4
jmp 0x1000224b
cmp cl, 0x2b
je 0x10002246
cmp cl, 0x2d
je 0x10002246
cmp cl, 0x2f
je 0x1000223f
cmp cl, 0x5f
jne 0x10002501
mov edx, 0x3f
jmp 0x1000224b
mov edx, 0x3e
lea eax, [edi - 2]
mov dword [ebp - 0x54], edx
cmp dword [esi + 0x10], eax
jbe 0x1000251c
cmp dword [esi + 0x14], 0xf
mov ecx, esi
jbe 0x10002264
mov ecx, dword [esi]
mov cl, byte [ecx + edi - 2]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x10002274
sub cl, 0x41
jmp 0x100022aa
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x10002280
sub cl, 0x47
jmp 0x100022aa
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x1000228c
add cl, 4
jmp 0x100022aa
cmp cl, 0x2b
je 0x100022a8
cmp cl, 0x2d
je 0x100022a8
cmp cl, 0x2f
je 0x100022a4
cmp cl, 0x5f
jne 0x10002501
mov cl, 0x3f
jmp 0x100022aa
mov cl, 0x3e
shr edx, 4
shl cl, 2
and dl, 3
add dl, cl
mov ecx, dword [ebp - 0x58]
mov byte [ebp - 0x4c], dl
cmp ecx, dword [ebp - 0x1c]
jae 0x100022db
cmp dword [ebp - 0x1c], 0xf
lea eax, [ecx + 1]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
cmova eax, dword [ebp - 0x30]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x100022ea
push dword [ebp - 0x4c]
push dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x30]
call fcn.10002650
cmp edi, dword [ebp - 0x5c]
jae 0x100024a3
cmp dword [esi + 0x10], edi
jbe 0x1000251c
mov eax, dword [esi + 0x14]
mov ecx, esi
cmp eax, 0xf
jbe 0x10002308
mov ecx, dword [esi]
cmp byte [edi + ecx], 0x3d
je 0x100024a3
mov ecx, esi
cmp eax, 0xf
jbe 0x1000231b
mov ecx, dword [esi]
cmp byte [edi + ecx], 0x2e
je 0x100024a3
mov ecx, esi
cmp eax, 0xf
jbe 0x1000232e
mov ecx, dword [esi]
mov cl, byte [edi + ecx]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x10002340
movzx edx, cl
sub edx, 0x41
jmp 0x10002382
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x1000234f
movzx edx, cl
sub edx, 0x47
jmp 0x10002382
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x1000235e
movzx edx, cl
add edx, 4
jmp 0x10002382
cmp cl, 0x2b
je 0x1000237d
cmp cl, 0x2d
je 0x1000237d
cmp cl, 0x2f
je 0x10002376
cmp cl, 0x5f
jne 0x10002501
mov edx, 0x3f
jmp 0x10002382
mov edx, 0x3e
mov eax, dword [ebp - 0x54]
mov ecx, edx
shr ecx, 2
shl al, 4
and cl, 0xf
add cl, al
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x20]
mov byte [ebp - 0x50], cl
mov dword [ebp - 0x54], eax
cmp eax, dword [ebp - 0x1c]
jae 0x100023c2
mov esi, dword [ebp - 0x54]
inc eax
cmp dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
cmova eax, dword [ebp - 0x30]
mov byte [eax + esi], cl
mov byte [eax + esi + 1], 0
mov esi, dword [ebp - 0x70]
jmp 0x100023d4
push dword [ebp - 0x50]
push dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x30]
call fcn.10002650
mov edx, dword [ebp - 0x58]
lea eax, [edi + 1]
cmp eax, dword [ebp - 0x5c]
jae 0x100024a3
cmp dword [esi + 0x10], eax
jbe 0x1000251c
cmp dword [esi + 0x14], 0xf
mov dword [ebp - 0x58], esi
jbe 0x100023fa
mov eax, dword [esi]
mov dword [ebp - 0x58], eax
lea eax, [edi + 1]
mov ecx, dword [ebp - 0x58]
cmp byte [ecx + eax], 0x3d
mov ecx, dword [esi + 0x14]
je 0x100024a3
mov eax, esi
cmp ecx, 0xf
jbe 0x10002413
mov eax, dword [esi]
cmp byte [edi + eax + 1], 0x2e
je 0x100024a3
mov eax, esi
cmp ecx, 0xf
jbe 0x10002427
mov eax, dword [esi]
mov al, byte [edi + eax + 1]
lea ecx, [eax - 0x41]
cmp cl, 0x19
ja 0x10002437
sub al, 0x41
jmp 0x10002469
lea ecx, [eax - 0x61]
cmp cl, 0x19
ja 0x10002443
sub al, 0x47
jmp 0x10002469
lea ecx, [eax - 0x30]
cmp cl, 9
ja 0x1000244f
add al, 4
jmp 0x10002469
cmp al, 0x2b
je 0x10002467
cmp al, 0x2d
je 0x10002467
cmp al, 0x2f
je 0x10002463
cmp al, 0x5f
jne 0x10002501
mov al, 0x3f
jmp 0x10002469
mov al, 0x3e
mov ecx, dword [ebp - 0x20]
shl dl, 6
add dl, al
mov byte [ebp - 0x18], dl
cmp ecx, dword [ebp - 0x1c]
jae 0x10002494
cmp dword [ebp - 0x1c], 0xf
lea eax, [ecx + 1]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
cmova eax, dword [ebp - 0x30]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x100024a3
push dword [ebp - 0x18]
push dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x30]
call fcn.10002650
add edi, 4
lea eax, [edi - 2]
cmp eax, dword [ebp - 0x5c]
jae 0x100024b9
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x58], eax
jmp 0x100021e0
mov edi, dword [ebp - 0x60]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
movups xmm0, xmmword [ebp - 0x30]
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [edi + 0x10], xmm0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10122cc7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.Input_is_not_valid_base64_encoded_data.
lea ecx, [ebp - 0x6c]
call fcn.10001c10
push 0x101c6058
lea eax, [ebp - 0x6c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call fcn.10002000
int3