Function at 0x401890
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 0x474da0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x496074]
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 - 0x54], esi
mov eax, ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x48], eax
mov edi, dword [esi + 0x10]
mov dword [ebp - 0x44], edi
test edi, edi
jne 0x4018fa
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
jmp 0x401d01
cmp byte [ebx + 8], 0
je 0x4019e8
push esi
lea ecx, [ebp - 0x2c]
call fcn.004015c0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x18]
lea edi, [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
cmp esi, 0x10
cmovae eax, edx
add eax, dword [ebp - 0x1c]
cmp esi, 0x10
mov dword [ebp - 0x3c], eax
cmovae edi, edx
add edi, dword [ebp - 0x1c]
cmp esi, 0x10
mov eax, edi
cmovae ecx, edx
sub eax, ecx
push eax
push 0xa
push ecx
call fcn.00452270
add esp, 0xc
mov ecx, edi
test eax, eax
cmovne ecx, eax
cmp ecx, edi
je 0x401989
lea eax, [ecx + 1]
xor edx, edx
mov esi, edi
mov dword [ebp - 0x38], edx
sub esi, eax
cmp eax, edi
cmova esi, edx
test esi, esi
je 0x401989
nop
cmp byte [eax], 0xa
mov edx, dword [ebp - 0x38]
je 0x401980
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
mov edx, dword [ebp - 0x38]
inc edx
inc eax
mov dword [ebp - 0x38], edx
cmp edx, esi
jne 0x401970
push dword [ebp - 0x3c]
lea eax, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402000
mov esi, dword [ebp - 0x4c]
lea edx, [ebp - 0x2c]
push 0
mov ecx, esi
call fcn.00401320
mov edx, dword [ebp - 0x18]
add esp, 4
cmp edx, 0x10
jb 0x401cff
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4019d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401d24
push edx
push ecx
call fcn.00439350
add esp, 8
jmp 0x401cff
mov eax, edi
mov dword [ebp - 0x1c], 0
shr eax, 2
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea eax, [eax + eax*2]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.00401340
test edi, edi
je 0x401cdd
mov edi, 2
nop
lea eax, [edi - 1]
cmp dword [esi + 0x10], eax
jbe 0x401d1f
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x401a36
mov eax, dword [esi]
mov cl, byte [edi + eax - 1]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x401a49
movzx edx, cl
sub edx, 0x41
jmp 0x401a8b
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x401a58
movzx edx, cl
sub edx, 0x47
jmp 0x401a8b
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x401a67
movzx edx, cl
add edx, 4
jmp 0x401a8b
cmp cl, 0x2b
je 0x401a86
cmp cl, 0x2d
je 0x401a86
cmp cl, 0x2f
je 0x401a7f
cmp cl, 0x5f
jne 0x401d29
mov edx, 0x3f
jmp 0x401a8b
mov edx, 0x3e
lea eax, [edi - 2]
mov dword [ebp - 0x3c], edx
cmp dword [esi + 0x10], eax
jbe 0x401d1f
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x401aa4
mov eax, dword [esi]
mov al, byte [edi + eax - 2]
lea ecx, [eax - 0x41]
cmp cl, 0x19
ja 0x401ab4
sub al, 0x41
jmp 0x401ae6
lea ecx, [eax - 0x61]
cmp cl, 0x19
ja 0x401ac0
sub al, 0x47
jmp 0x401ae6
lea ecx, [eax - 0x30]
cmp cl, 9
ja 0x401acc
add al, 4
jmp 0x401ae6
cmp al, 0x2b
je 0x401ae4
cmp al, 0x2d
je 0x401ae4
cmp al, 0x2f
je 0x401ae0
cmp al, 0x5f
jne 0x401d29
mov al, 0x3f
jmp 0x401ae6
mov al, 0x3e
mov ecx, dword [ebp - 0x1c]
shr edx, 4
and dl, 3
shl al, 2
add dl, al
mov byte [ebp - 0x30], dl
cmp ecx, dword [ebp - 0x18]
jae 0x401b17
cmp dword [ebp - 0x18], 0x10
lea eax, [ecx + 1]
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 0x401b2a
push dword [ebp - 0x30]
mov byte [ebp - 0x50], 0
push dword [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401d60
cmp edi, dword [ebp - 0x44]
jae 0x401cce
cmp dword [esi + 0x10], edi
jbe 0x401d1f
mov eax, dword [esi + 0x14]
mov ecx, esi
cmp eax, 0x10
jb 0x401b48
mov ecx, dword [esi]
cmp byte [ecx + edi], 0x3d
je 0x401cce
mov ecx, esi
cmp eax, 0x10
jb 0x401b5b
mov ecx, dword [esi]
cmp byte [ecx + edi], 0x2e
je 0x401cce
mov ecx, esi
cmp eax, 0x10
jb 0x401b6e
mov ecx, dword [esi]
mov cl, byte [ecx + edi]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x401b80
movzx edx, cl
sub edx, 0x41
jmp 0x401bc2
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x401b8f
movzx edx, cl
sub edx, 0x47
jmp 0x401bc2
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x401b9e
movzx edx, cl
add edx, 4
jmp 0x401bc2
cmp cl, 0x2b
je 0x401bbd
cmp cl, 0x2d
je 0x401bbd
cmp cl, 0x2f
je 0x401bb6
cmp cl, 0x5f
jne 0x401d29
mov edx, 0x3f
jmp 0x401bc2
mov edx, 0x3e
mov eax, dword [ebp - 0x3c]
mov ecx, edx
shr ecx, 2
shl al, 4
and cl, 0xf
xor cl, al
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 0x34], cl
mov dword [ebp - 0x3c], eax
cmp eax, dword [ebp - 0x18]
jae 0x401c02
mov esi, dword [ebp - 0x3c]
inc eax
cmp dword [ebp - 0x18], 0x10
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
mov esi, dword [ebp - 0x54]
jmp 0x401c18
push dword [ebp - 0x34]
mov byte [ebp - 0x48], 0
push dword [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401d60
mov edx, dword [ebp - 0x38]
lea eax, [edi + 1]
cmp eax, dword [ebp - 0x44]
jae 0x401cce
cmp dword [esi + 0x10], eax
jbe 0x401d1f
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x38], esi
jb 0x401c3e
mov eax, dword [esi]
mov dword [ebp - 0x38], eax
lea eax, [edi + 1]
mov ecx, dword [ebp - 0x38]
cmp byte [ecx + eax], 0x3d
mov ecx, dword [esi + 0x14]
je 0x401cce
mov dword [ebp - 0x38], esi
cmp ecx, 0x10
jb 0x401c5b
mov ecx, dword [esi]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x38]
cmp byte [ecx + edi + 1], 0x2e
mov ecx, dword [esi + 0x14]
je 0x401cce
mov dword [ebp - 0x38], esi
cmp ecx, 0x10
jb 0x401c74
mov ecx, dword [esi]
jmp 0x401c77
mov ecx, dword [ebp - 0x38]
mov cl, byte [ecx + edi + 1]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x401c87
sub cl, 0x41
jmp 0x401cbd
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x401c93
sub cl, 0x47
jmp 0x401cbd
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x401c9f
add cl, 4
jmp 0x401cbd
cmp cl, 0x2b
je 0x401cbb
cmp cl, 0x2d
je 0x401cbb
cmp cl, 0x2f
je 0x401cb7
cmp cl, 0x5f
jne 0x401d44
mov cl, 0x3f
jmp 0x401cbd
mov cl, 0x3e
shl dl, 6
add dl, cl
lea ecx, [ebp - 0x2c]
movzx eax, dl
push eax
call fcn.004014e0
add edi, 4
lea eax, [edi - 2]
cmp eax, dword [ebp - 0x44]
jb 0x401a20
mov esi, dword [ebp - 0x4c]
movups xmm0, xmmword [ebp - 0x2c]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [esi + 0x10], xmm0
mov eax, esi
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.0043930f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00401880
call fcn.004542d9
push str.Input_is_not_valid_base64_encoded_data.
lea ecx, [ebp - 0x60]
call fcn.00401260
push 0x494a34
lea eax, [ebp - 0x60]
push eax
call fcn.00450757
push str.Input_is_not_valid_base64_encoded_data.
lea ecx, [ebp - 0x6c]
call fcn.00401260
push 0x494a34
lea eax, [ebp - 0x6c]
push eax
call fcn.00450757
int3