Function at 0x401840
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 0x454a20
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x470074]
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 - 0x58], esi
mov eax, ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x4c], eax
mov edi, dword [esi + 0x10]
mov dword [ebp - 0x48], edi
test edi, edi
jne 0x4018aa
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
jmp 0x401d22
cmp byte [ebx + 8], 0
je 0x4019d8
push esi
lea ecx, [ebp - 0x2c]
call fcn.00401570
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x2c]
cmp edx, 0x10
mov edi, dword [ebp - 0x1c]
cmovae eax, esi
add eax, edi
cmp edx, 0x10
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x2c]
cmovae eax, esi
add eax, edi
cmp edx, 0x10
mov dword [ebp - 0x48], eax
cmovae ecx, esi
mov esi, eax
sub eax, ecx
push eax
push 0xa
push ecx
call fcn.00436a70
add esp, 0xc
mov ecx, esi
test eax, eax
cmovne ecx, eax
cmp ecx, esi
je 0x40193d
lea eax, [ecx + 1]
xor edx, edx
sub esi, eax
mov dword [ebp - 0x3c], edx
cmp eax, dword [ebp - 0x48]
cmova esi, edx
test esi, esi
je 0x40193d
cmp byte [eax], 0xa
mov edx, dword [ebp - 0x3c]
je 0x401931
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
mov edx, dword [ebp - 0x3c]
inc edx
inc eax
mov dword [ebp - 0x3c], edx
cmp edx, esi
jne 0x401921
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
cmp esi, 0x10
mov edx, ecx
cmovae eax, dword [ebp - 0x2c]
sub edx, eax
cmp edi, edx
jb 0x401d5b
sub dword [ebp - 0x40], ecx
mov eax, edi
mov ecx, dword [ebp - 0x40]
sub eax, edx
cmp eax, ecx
cmovb ecx, eax
cmp esi, 0x10
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x40]
add ecx, edx
sub edi, eax
add eax, ecx
mov dword [ebp - 0x1c], edi
sub edi, edx
inc edi
push edi
push eax
push ecx
call fcn.004353e0
mov esi, dword [ebp - 0x50]
lea edx, [ebp - 0x2c]
push 0
mov ecx, esi
call fcn.00401310
mov edx, dword [ebp - 0x18]
add esp, 0x10
cmp edx, 0x10
jb 0x401d20
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4019c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401d60
push edx
push ecx
call fcn.0041d9cd
add esp, 8
jmp 0x401d20
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.00401330
test edi, edi
je 0x401cfe
mov edi, 2
nop
lea eax, [edi - 1]
cmp dword [esi + 0x10], eax
jbe 0x401d5b
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x401a26
mov eax, dword [esi]
mov cl, byte [edi + eax - 1]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x401a39
movzx edx, cl
sub edx, 0x41
jmp 0x401a7b
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x401a48
movzx edx, cl
sub edx, 0x47
jmp 0x401a7b
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x401a57
movzx edx, cl
add edx, 4
jmp 0x401a7b
cmp cl, 0x2b
je 0x401a76
cmp cl, 0x2d
je 0x401a76
cmp cl, 0x2f
je 0x401a6f
cmp cl, 0x5f
jne 0x401d65
mov edx, 0x3f
jmp 0x401a7b
mov edx, 0x3e
lea eax, [edi - 2]
mov dword [ebp - 0x40], edx
cmp dword [esi + 0x10], eax
jbe 0x401d5b
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x401a94
mov eax, dword [esi]
mov al, byte [edi + eax - 2]
lea ecx, [eax - 0x41]
cmp cl, 0x19
ja 0x401aa4
sub al, 0x41
jmp 0x401ad6
lea ecx, [eax - 0x61]
cmp cl, 0x19
ja 0x401ab0
sub al, 0x47
jmp 0x401ad6
lea ecx, [eax - 0x30]
cmp cl, 9
ja 0x401abc
add al, 4
jmp 0x401ad6
cmp al, 0x2b
je 0x401ad4
cmp al, 0x2d
je 0x401ad4
cmp al, 0x2f
je 0x401ad0
cmp al, 0x5f
jne 0x401d65
mov al, 0x3f
jmp 0x401ad6
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 0x401b07
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 0x401b1a
push dword [ebp - 0x30]
mov byte [ebp - 0x54], 0
push dword [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401d90
cmp edi, dword [ebp - 0x48]
jae 0x401cef
cmp dword [esi + 0x10], edi
jbe 0x401d5b
mov eax, dword [esi + 0x14]
mov ecx, esi
cmp eax, 0x10
jb 0x401b38
mov ecx, dword [esi]
cmp byte [edi + ecx], 0x3d
je 0x401cef
mov ecx, esi
cmp eax, 0x10
jb 0x401b4b
mov ecx, dword [esi]
cmp byte [edi + ecx], 0x2e
je 0x401cef
mov ecx, esi
cmp eax, 0x10
jb 0x401b5e
mov ecx, dword [esi]
mov cl, byte [edi + ecx]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x401b70
movzx edx, cl
sub edx, 0x41
jmp 0x401bb2
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x401b7f
movzx edx, cl
sub edx, 0x47
jmp 0x401bb2
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x401b8e
movzx edx, cl
add edx, 4
jmp 0x401bb2
cmp cl, 0x2b
je 0x401bad
cmp cl, 0x2d
je 0x401bad
cmp cl, 0x2f
je 0x401ba6
cmp cl, 0x5f
jne 0x401d65
mov edx, 0x3f
jmp 0x401bb2
mov edx, 0x3e
mov eax, dword [ebp - 0x40]
mov ecx, edx
shr ecx, 2
shl al, 4
and cl, 0xf
xor cl, al
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 0x34], cl
mov dword [ebp - 0x40], eax
cmp eax, dword [ebp - 0x18]
jae 0x401bf2
mov esi, dword [ebp - 0x40]
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 - 0x58]
jmp 0x401c08
push dword [ebp - 0x34]
mov byte [ebp - 0x5c], 0
push dword [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401d90
mov edx, dword [ebp - 0x3c]
lea eax, [edi + 1]
cmp eax, dword [ebp - 0x48]
jae 0x401cef
cmp dword [esi + 0x10], eax
jbe 0x401d5b
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x3c], esi
jb 0x401c2e
mov eax, dword [esi]
mov dword [ebp - 0x3c], eax
lea eax, [edi + 1]
mov ecx, dword [ebp - 0x3c]
cmp byte [eax + ecx], 0x3d
mov ecx, dword [esi + 0x14]
je 0x401cef
mov dword [ebp - 0x3c], esi
cmp ecx, 0x10
jb 0x401c4b
mov ecx, dword [esi]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x3c]
cmp byte [edi + ecx + 1], 0x2e
mov ecx, dword [esi + 0x14]
je 0x401cef
mov dword [ebp - 0x3c], esi
cmp ecx, 0x10
jb 0x401c68
mov ecx, dword [esi]
jmp 0x401c6b
mov ecx, dword [ebp - 0x3c]
mov cl, byte [edi + ecx + 1]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x401c7b
sub cl, 0x41
jmp 0x401cb1
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x401c87
sub cl, 0x47
jmp 0x401cb1
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x401c93
add cl, 4
jmp 0x401cb1
cmp cl, 0x2b
je 0x401caf
cmp cl, 0x2d
je 0x401caf
cmp cl, 0x2f
je 0x401cab
cmp cl, 0x5f
jne 0x401d40
mov cl, 0x3f
jmp 0x401cb1
mov cl, 0x3e
shl dl, 6
add dl, cl
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 0x38], dl
cmp ecx, dword [ebp - 0x18]
jae 0x401cdc
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 0x401cef
push dword [ebp - 0x38]
mov byte [ebp - 0x4c], 0
push dword [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401d90
add edi, 4
lea eax, [edi - 2]
cmp eax, dword [ebp - 0x48]
jb 0x401a10
mov esi, dword [ebp - 0x50]
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.0041d98c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.Input_is_not_valid_base64_encoded_data.
lea ecx, [ebp - 0x74]
call fcn.00401250
push 0x46dbfc
lea eax, [ebp - 0x74]
push eax
call fcn.00434de7
call fcn.00401830
call fcn.00438969
push str.Input_is_not_valid_base64_encoded_data.
lea ecx, [ebp - 0x68]
call fcn.00401250
push 0x46dbfc
lea eax, [ebp - 0x68]
push eax
call fcn.00434de7
int3