Function at 0x10001360
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 0x1004bc80
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x10063058]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 4], 0
mov esi, dword [ebx + 0x18]
mov dword [ebp - 0x40], esi
test esi, esi
jne 0x100013fd
mov edx, dword [ebx + 0x1c]
mov dword [edi], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
cmp edx, 0x10
jb 0x10001887
mov ecx, dword [ebx + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100013f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100018ac
push edx
jmp 0x1000187e
test dl, dl
je 0x1000154e
lea eax, [ebx + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10001ae0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
lea edi, [ebp - 0x2c]
mov esi, dword [ebp - 0x2c]
cmp edx, 0x10
mov ecx, dword [ebp - 0x1c]
cmovae eax, esi
mov dword [ebp - 0x40], ecx
add eax, ecx
cmp edx, 0x10
mov dword [ebp - 0x3c], eax
cmovae edi, esi
add edi, ecx
cmp edx, 0x10
lea ecx, [ebp - 0x2c]
mov eax, edi
cmovae ecx, esi
sub eax, ecx
push eax
push 0xa
push ecx
call fcn.1002ae80
add esp, 0xc
mov ecx, edi
test eax, eax
cmovne ecx, eax
mov esi, ecx
cmp ecx, edi
je 0x10001479
inc ecx
cmp ecx, edi
je 0x10001479
mov al, byte [ecx]
cmp al, 0xa
je 0x1000146e
mov byte [esi], al
inc esi
inc ecx
cmp ecx, edi
jne 0x10001465
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov edx, esi
cmovae eax, dword [ebp - 0x2c]
sub dword [ebp - 0x3c], esi
sub edx, eax
mov esi, dword [ebp - 0x40]
mov eax, esi
mov ecx, dword [ebp - 0x3c]
sub eax, edx
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x3c]
add ecx, edx
sub esi, eax
add eax, ecx
mov dword [ebp - 0x1c], esi
sub esi, edx
inc esi
push esi
push eax
push ecx
call fcn.1002a790
mov edi, dword [ebp - 0x4c]
lea edx, [ebp - 0x2c]
push 0
mov ecx, edi
call fcn.10001130
mov edx, dword [ebp - 0x18]
add esp, 0x10
cmp edx, 0x10
jb 0x10001505
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100014fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100018a7
push edx
push ecx
call fcn.10028ef0
add esp, 8
mov edx, dword [ebx + 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp edx, 0x10
jb 0x10001887
mov ecx, dword [ebx + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100013f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100018a7
jmp 0x100013f7
mov eax, esi
mov dword [ebp - 0x18], 0xf
shr eax, 2
xor edi, edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
lea eax, [eax + eax*2]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.10001160
mov ecx, dword [ebx + 8]
test esi, esi
mov esi, dword [ebx + 0x1c]
je 0x10001835
cmp esi, 0x10
lea eax, [ebx + 8]
cmovae eax, ecx
mov dl, byte [eax + edi + 1]
lea eax, [edx - 0x41]
cmp al, 0x19
ja 0x100015a0
movzx edx, dl
sub edx, 0x41
jmp 0x100015e2
lea eax, [edx - 0x61]
cmp al, 0x19
ja 0x100015af
movzx edx, dl
sub edx, 0x47
jmp 0x100015e2
lea eax, [edx - 0x30]
cmp al, 9
ja 0x100015be
movzx edx, dl
add edx, 4
jmp 0x100015e2
cmp dl, 0x2b
je 0x100015dd
cmp dl, 0x2d
je 0x100015dd
cmp dl, 0x2f
je 0x100015d6
cmp dl, 0x5f
jne 0x100018b1
mov edx, 0x3f
jmp 0x100015e2
mov edx, 0x3e
cmp esi, 0x10
mov dword [ebp - 0x3c], edx
lea eax, [ebx + 8]
cmovae eax, ecx
mov al, byte [eax + edi]
lea ecx, [eax - 0x41]
cmp cl, 0x19
ja 0x100015fd
sub al, 0x41
jmp 0x1000162f
lea ecx, [eax - 0x61]
cmp cl, 0x19
ja 0x10001609
sub al, 0x47
jmp 0x1000162f
lea ecx, [eax - 0x30]
cmp cl, 9
ja 0x10001615
add al, 4
jmp 0x1000162f
cmp al, 0x2b
je 0x1000162d
cmp al, 0x2d
je 0x1000162d
cmp al, 0x2f
je 0x10001629
cmp al, 0x5f
jne 0x100018b1
mov al, 0x3f
jmp 0x1000162f
mov al, 0x3e
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
shr edx, 4
and dl, 3
shl al, 2
add dl, al
mov byte [ebp - 0x30], dl
cmp ecx, esi
jae 0x10001661
lea eax, [ecx + 1]
cmp esi, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x10001674
push dword [ebp - 0x30]
mov byte [ebp - 0x50], 0
push dword [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.100018f0
lea eax, [edi + 2]
cmp eax, dword [ebp - 0x40]
jae 0x10001823
mov esi, dword [ebx + 0x1c]
lea eax, [ebx + 8]
mov ecx, dword [ebx + 8]
cmp esi, 0x10
cmovae eax, ecx
cmp byte [eax + edi + 2], 0x3d
je 0x10001829
cmp esi, 0x10
lea eax, [ebx + 8]
cmovae eax, ecx
cmp byte [eax + edi + 2], 0x2e
je 0x10001829
cmp esi, 0x10
lea eax, [ebx + 8]
cmovae eax, ecx
mov cl, byte [eax + edi + 2]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x100016ca
movzx edx, cl
sub edx, 0x41
jmp 0x1000170c
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x100016d9
movzx edx, cl
sub edx, 0x47
jmp 0x1000170c
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x100016e8
movzx edx, cl
add edx, 4
jmp 0x1000170c
cmp cl, 0x2b
je 0x10001707
cmp cl, 0x2d
je 0x10001707
cmp cl, 0x2f
je 0x10001700
cmp cl, 0x5f
jne 0x100018b1
mov edx, 0x3f
jmp 0x1000170c
mov edx, 0x3e
mov eax, dword [ebp - 0x3c]
mov ecx, edx
mov esi, dword [ebp - 0x1c]
shr ecx, 2
and cl, 0xf
shl al, 4
xor cl, al
mov dword [ebp - 0x44], edx
mov byte [ebp - 0x34], cl
cmp esi, dword [ebp - 0x18]
jae 0x10001745
cmp dword [ebp - 0x18], 0x10
lea eax, [esi + 1]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov byte [eax + esi], cl
mov byte [eax + esi + 1], 0
jmp 0x1000175b
push dword [ebp - 0x34]
mov byte [ebp - 0x54], 0
push dword [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.100018f0
mov edx, dword [ebp - 0x44]
lea eax, [edi + 3]
cmp eax, dword [ebp - 0x40]
jae 0x10001823
mov esi, dword [ebx + 0x1c]
lea eax, [ebx + 8]
mov ecx, dword [ebx + 8]
cmp esi, 0x10
cmovae eax, ecx
cmp byte [eax + edi + 3], 0x3d
je 0x10001829
cmp esi, 0x10
lea eax, [ebx + 8]
cmovae eax, ecx
cmp byte [eax + edi + 3], 0x2e
je 0x10001829
cmp esi, 0x10
lea eax, [ebx + 8]
cmovae eax, ecx
mov cl, byte [eax + edi + 3]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x100017ae
sub cl, 0x41
jmp 0x100017e4
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x100017ba
sub cl, 0x47
jmp 0x100017e4
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x100017c6
add cl, 4
jmp 0x100017e4
cmp cl, 0x2b
je 0x100017e2
cmp cl, 0x2d
je 0x100017e2
cmp cl, 0x2f
je 0x100017de
cmp cl, 0x5f
jne 0x100018cc
mov cl, 0x3f
jmp 0x100017e4
mov cl, 0x3e
mov esi, dword [ebp - 0x18]
shl dl, 6
add dl, cl
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 0x38], dl
cmp ecx, esi
jae 0x10001810
lea eax, [ecx + 1]
cmp esi, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x10001823
push dword [ebp - 0x38]
mov byte [ebp - 0x48], 0
push dword [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.100018f0
mov esi, dword [ebx + 0x1c]
mov ecx, dword [ebx + 8]
add edi, 4
cmp edi, dword [ebp - 0x40]
jb 0x10001584
mov edi, dword [ebp - 0x4c]
movups xmm0, xmmword [ebp - 0x2c]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [edi + 0x10], xmm0
cmp esi, 0x10
jb 0x10001887
inc esi
mov eax, ecx
cmp esi, 0x1000
jb 0x1000187d
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100018ac
push esi
push ecx
call fcn.10028ef0
add esp, 8
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.10028ebf
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1002d5ef
call fcn.1002d5ef
push str.Input_is_not_valid_base64_encoded_data.
lea ecx, [ebp - 0x60]
call fcn.10002080
push 0x10061260
lea eax, [ebp - 0x60]
push eax
call fcn.1002a71c
push str.Input_is_not_valid_base64_encoded_data.
lea ecx, [ebp - 0x6c]
call fcn.10002080
push 0x10061260
lea eax, [ebp - 0x6c]
push eax
call fcn.1002a71c
int3