Function at 0x402470
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 0x454eb0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x472050]
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 - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 4], 0
mov esi, dword [ebx + 0x18]
mov dword [ebp - 0x34], esi
test esi, esi
jne 0x40250b
mov edx, dword [ebx + 0x1c]
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
cmp edx, 0x10
jb 0x40298d
mov ecx, dword [ebx + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402505
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4029b2
push edx
jmp 0x402984
test dl, dl
je 0x40265c
lea eax, [ebx + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402270
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 - 0x34], ecx
add eax, ecx
cmp edx, 0x10
mov dword [ebp - 0x30], 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.00435370
add esp, 0xc
mov ecx, edi
test eax, eax
cmovne ecx, eax
mov esi, ecx
cmp ecx, edi
je 0x402587
inc ecx
cmp ecx, edi
je 0x402587
mov al, byte [ecx]
cmp al, 0xa
je 0x40257c
mov byte [esi], al
inc esi
inc ecx
cmp ecx, edi
jne 0x402573
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov edx, esi
cmovae eax, dword [ebp - 0x2c]
sub dword [ebp - 0x30], esi
sub edx, eax
mov esi, dword [ebp - 0x34]
mov eax, esi
mov ecx, dword [ebp - 0x30]
sub eax, edx
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
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.00433d70
mov edi, dword [ebp - 0x40]
lea edx, [ebp - 0x2c]
push 0
mov ecx, edi
call fcn.00401ff0
mov edx, dword [ebp - 0x18]
add esp, 0x10
cmp edx, 0x10
jb 0x402613
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402609
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4029ad
push edx
push ecx
call fcn.0043215a
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 0x40298d
mov ecx, dword [ebx + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402505
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4029ad
jmp 0x402505
mov eax, esi
mov dword [ebp - 0x18], 0xf
shr eax, 2
xor edi, 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.00402020
mov ecx, dword [ebx + 8]
test esi, esi
mov esi, dword [ebx + 0x1c]
je 0x402941
nop
cmp esi, 0x10
lea eax, [ebx + 8]
cmovae eax, ecx
mov dl, byte [eax + edi + 1]
lea eax, [edx - 0x41]
cmp al, 0x19
ja 0x4026ac
movzx edx, dl
sub edx, 0x41
jmp 0x4026ee
lea eax, [edx - 0x61]
cmp al, 0x19
ja 0x4026bb
movzx edx, dl
sub edx, 0x47
jmp 0x4026ee
lea eax, [edx - 0x30]
cmp al, 9
ja 0x4026ca
movzx edx, dl
add edx, 4
jmp 0x4026ee
cmp dl, 0x2b
je 0x4026e9
cmp dl, 0x2d
je 0x4026e9
cmp dl, 0x2f
je 0x4026e2
cmp dl, 0x5f
jne 0x4029b7
mov edx, 0x3f
jmp 0x4026ee
mov edx, 0x3e
cmp esi, 0x10
mov dword [ebp - 0x30], edx
lea eax, [ebx + 8]
cmovae eax, ecx
mov al, byte [eax + edi]
lea ecx, [eax - 0x41]
cmp cl, 0x19
ja 0x402709
sub al, 0x41
jmp 0x40273b
lea ecx, [eax - 0x61]
cmp cl, 0x19
ja 0x402715
sub al, 0x47
jmp 0x40273b
lea ecx, [eax - 0x30]
cmp cl, 9
ja 0x402721
add al, 4
jmp 0x40273b
cmp al, 0x2b
je 0x402739
cmp al, 0x2d
je 0x402739
cmp al, 0x2f
je 0x402735
cmp al, 0x5f
jne 0x4029b7
mov al, 0x3f
jmp 0x40273b
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 - 0x44], dl
cmp ecx, esi
jae 0x40276d
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 0x402780
push dword [ebp - 0x44]
mov byte [ebp - 0x48], 0
push dword [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004029f0
lea eax, [edi + 2]
cmp eax, dword [ebp - 0x34]
jae 0x40292f
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 0x402935
cmp esi, 0x10
lea eax, [ebx + 8]
cmovae eax, ecx
cmp byte [eax + edi + 2], 0x2e
je 0x402935
cmp esi, 0x10
lea eax, [ebx + 8]
cmovae eax, ecx
mov cl, byte [eax + edi + 2]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x4027d6
movzx edx, cl
sub edx, 0x41
jmp 0x402818
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x4027e5
movzx edx, cl
sub edx, 0x47
jmp 0x402818
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x4027f4
movzx edx, cl
add edx, 4
jmp 0x402818
cmp cl, 0x2b
je 0x402813
cmp cl, 0x2d
je 0x402813
cmp cl, 0x2f
je 0x40280c
cmp cl, 0x5f
jne 0x4029b7
mov edx, 0x3f
jmp 0x402818
mov edx, 0x3e
mov eax, dword [ebp - 0x30]
mov ecx, edx
mov esi, dword [ebp - 0x1c]
shr ecx, 2
and cl, 0xf
shl al, 4
xor cl, al
mov dword [ebp - 0x38], edx
mov byte [ebp - 0x4c], cl
cmp esi, dword [ebp - 0x18]
jae 0x402851
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 0x402867
push dword [ebp - 0x4c]
mov byte [ebp - 0x50], 0
push dword [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004029f0
mov edx, dword [ebp - 0x38]
lea eax, [edi + 3]
cmp eax, dword [ebp - 0x34]
jae 0x40292f
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 0x402935
cmp esi, 0x10
lea eax, [ebx + 8]
cmovae eax, ecx
cmp byte [eax + edi + 3], 0x2e
je 0x402935
cmp esi, 0x10
lea eax, [ebx + 8]
cmovae eax, ecx
mov cl, byte [eax + edi + 3]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x4028ba
sub cl, 0x41
jmp 0x4028f0
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x4028c6
sub cl, 0x47
jmp 0x4028f0
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x4028d2
add cl, 4
jmp 0x4028f0
cmp cl, 0x2b
je 0x4028ee
cmp cl, 0x2d
je 0x4028ee
cmp cl, 0x2f
je 0x4028ea
cmp cl, 0x5f
jne 0x4029d2
mov cl, 0x3f
jmp 0x4028f0
mov cl, 0x3e
mov esi, dword [ebp - 0x18]
shl dl, 6
add dl, cl
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 0x54], dl
cmp ecx, esi
jae 0x40291c
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 0x40292f
push dword [ebp - 0x54]
mov byte [ebp - 0x3c], 0
push dword [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004029f0
mov esi, dword [ebx + 0x1c]
mov ecx, dword [ebx + 8]
add edi, 4
cmp edi, dword [ebp - 0x34]
jb 0x402690
mov edi, dword [ebp - 0x40]
movups xmm0, xmmword [ebp - 0x2c]
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 0x40298d
inc esi
mov eax, ecx
cmp esi, 0x1000
jb 0x402983
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4029b2
push esi
push ecx
call fcn.0043215a
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.00432119
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00436cd9
call fcn.00436cd9
push str.Input_is_not_valid_base64_encoded_data.
lea ecx, [ebp - 0x60]
call fcn.00401f70
push 0x471284
lea eax, [ebp - 0x60]
push eax
call fcn.00433d04
push str.Input_is_not_valid_base64_encoded_data.
lea ecx, [ebp - 0x6c]
call fcn.00401f70
push 0x471284
lea eax, [ebp - 0x6c]
push eax
call fcn.00433d04
int3