Function at 0x402230
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 0x5aea10
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x623fcc]
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 0x40229a
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
jmp 0x402712
cmp byte [ebx + 8], 0
je 0x4023c8
push esi
lea ecx, [ebp - 0x2c]
call fcn.00402010
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.00585a40
add esp, 0xc
mov ecx, esi
test eax, eax
cmovne ecx, eax
cmp ecx, esi
je 0x40232d
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 0x40232d
cmp byte [eax], 0xa
mov edx, dword [ebp - 0x3c]
je 0x402321
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 0x402311
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 0x40274b
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.00583f40
mov esi, dword [ebp - 0x50]
lea edx, [ebp - 0x2c]
push 0
mov ecx, esi
call fcn.00401db0
mov edx, dword [ebp - 0x18]
add esp, 0x10
cmp edx, 0x10
jb 0x402710
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4023b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402750
push edx
push ecx
call fcn.0054f560
add esp, 8
jmp 0x402710
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.00401de0
test edi, edi
je 0x4026ee
mov edi, 2
nop
lea eax, [edi - 1]
cmp dword [esi + 0x10], eax
jbe 0x40274b
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x402416
mov eax, dword [esi]
mov cl, byte [edi + eax - 1]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x402429
movzx edx, cl
sub edx, 0x41
jmp 0x40246b
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x402438
movzx edx, cl
sub edx, 0x47
jmp 0x40246b
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x402447
movzx edx, cl
add edx, 4
jmp 0x40246b
cmp cl, 0x2b
je 0x402466
cmp cl, 0x2d
je 0x402466
cmp cl, 0x2f
je 0x40245f
cmp cl, 0x5f
jne 0x402755
mov edx, 0x3f
jmp 0x40246b
mov edx, 0x3e
lea eax, [edi - 2]
mov dword [ebp - 0x40], edx
cmp dword [esi + 0x10], eax
jbe 0x40274b
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x402484
mov eax, dword [esi]
mov al, byte [edi + eax - 2]
lea ecx, [eax - 0x41]
cmp cl, 0x19
ja 0x402494
sub al, 0x41
jmp 0x4024c6
lea ecx, [eax - 0x61]
cmp cl, 0x19
ja 0x4024a0
sub al, 0x47
jmp 0x4024c6
lea ecx, [eax - 0x30]
cmp cl, 9
ja 0x4024ac
add al, 4
jmp 0x4024c6
cmp al, 0x2b
je 0x4024c4
cmp al, 0x2d
je 0x4024c4
cmp al, 0x2f
je 0x4024c0
cmp al, 0x5f
jne 0x402755
mov al, 0x3f
jmp 0x4024c6
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 0x4024f7
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 0x40250a
push dword [ebp - 0x30]
mov byte [ebp - 0x54], 0
push dword [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00402780
cmp edi, dword [ebp - 0x48]
jae 0x4026df
cmp dword [esi + 0x10], edi
jbe 0x40274b
mov eax, dword [esi + 0x14]
mov ecx, esi
cmp eax, 0x10
jb 0x402528
mov ecx, dword [esi]
cmp byte [edi + ecx], 0x3d
je 0x4026df
mov ecx, esi
cmp eax, 0x10
jb 0x40253b
mov ecx, dword [esi]
cmp byte [edi + ecx], 0x2e
je 0x4026df
mov ecx, esi
cmp eax, 0x10
jb 0x40254e
mov ecx, dword [esi]
mov cl, byte [edi + ecx]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x402560
movzx edx, cl
sub edx, 0x41
jmp 0x4025a2
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x40256f
movzx edx, cl
sub edx, 0x47
jmp 0x4025a2
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x40257e
movzx edx, cl
add edx, 4
jmp 0x4025a2
cmp cl, 0x2b
je 0x40259d
cmp cl, 0x2d
je 0x40259d
cmp cl, 0x2f
je 0x402596
cmp cl, 0x5f
jne 0x402755
mov edx, 0x3f
jmp 0x4025a2
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 0x4025e2
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 0x4025f8
push dword [ebp - 0x34]
mov byte [ebp - 0x5c], 0
push dword [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00402780
mov edx, dword [ebp - 0x3c]
lea eax, [edi + 1]
cmp eax, dword [ebp - 0x48]
jae 0x4026df
cmp dword [esi + 0x10], eax
jbe 0x40274b
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x3c], esi
jb 0x40261e
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 0x4026df
mov dword [ebp - 0x3c], esi
cmp ecx, 0x10
jb 0x40263b
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 0x4026df
mov dword [ebp - 0x3c], esi
cmp ecx, 0x10
jb 0x402658
mov ecx, dword [esi]
jmp 0x40265b
mov ecx, dword [ebp - 0x3c]
mov cl, byte [edi + ecx + 1]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x40266b
sub cl, 0x41
jmp 0x4026a1
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x402677
sub cl, 0x47
jmp 0x4026a1
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x402683
add cl, 4
jmp 0x4026a1
cmp cl, 0x2b
je 0x40269f
cmp cl, 0x2d
je 0x40269f
cmp cl, 0x2f
je 0x40269b
cmp cl, 0x5f
jne 0x402730
mov cl, 0x3f
jmp 0x4026a1
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 0x4026cc
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 0x4026df
push dword [ebp - 0x38]
mov byte [ebp - 0x4c], 0
push dword [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00402780
add edi, 4
lea eax, [edi - 2]
cmp eax, dword [ebp - 0x48]
jb 0x402400
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.0054f54f
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.00401cf0
push 0x61f7f0
lea eax, [ebp - 0x74]
push eax
call fcn.005844b4
call fcn.00402220
call fcn.005875a9
push str.Input_is_not_valid_base64_encoded_data.
lea ecx, [ebp - 0x68]
call fcn.00401cf0
push 0x61f7f0
lea eax, [ebp - 0x68]
push eax
call fcn.005844b4
int3