Function at 0x453b70
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
test eax, eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x18], edx
push edi
mov edi, dword [ebp + 0x14]
mov ecx, 3
cmovns ecx, eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], ecx
mov dword [edi], 0
cmp ecx, 0x14
jg 0x454215
cmp ecx, 1
jl 0x453bb8
cmp ecx, 2
jg 0x453bb8
mov eax, dword [ebp + 0x18]
test dword [eax], ecx
jne 0x454215
test esi, esi
je 0x45421b
add esi, dword [ebp + 8]
mov ebx, edx
sub ebx, dword [ebp + 8]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0xffffffff
cmp ebx, 3
jb 0x453d3a
cmp word [esi], 0xd8ff
jne 0x453d3a
cmp byte [esi + 2], 0xff
jne 0x453d3a
cmp word [esi], 0xd8ff
mov edx, str.image_jpeg
mov dword [ebp - 0xc], edx
jne 0x453d32
cmp byte [esi + 2], 0xff
jne 0x453d32
mov eax, 2
nop dword [eax + eax]
cmp eax, ebx
jae 0x453c4f
cmp byte [eax + esi], 0xff
je 0x453c41
inc eax
cmp eax, ebx
jb 0x453c34
jmp 0x453c4f
mov dword [ebp - 0xc], edx
cmp byte [eax + esi], 0xff
jne 0x453c4f
inc eax
cmp eax, ebx
jb 0x453c44
movzx ecx, byte [eax + esi]
inc eax
mov dword [ebp - 0x14], ecx
cmp eax, ebx
jae 0x453e2d
cmp ecx, 0xd8
jb 0x453c73
cmp ecx, 0xda
jbe 0x453e2d
mov dword [ebp - 0xc], edx
cmp ecx, 0xd0
jb 0x453c89
mov dword [ebp - 0xc], edx
cmp ecx, 0xd7
jbe 0x453c30
mov ecx, ebx
sub ecx, eax
mov dword [ebp - 0x24], ecx
cmp ecx, 2
jb 0x453e2d
movzx edi, byte [eax + esi]
lea ecx, [eax + esi]
mov dword [ebp - 0x20], ecx
movzx ecx, byte [ecx + 1]
shl edi, 8
or edi, ecx
cmp edi, 2
jb 0x453e2d
cmp dword [ebp - 0x24], edi
jb 0x453e2d
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xc0
je 0x453ce1
add ecx, 0xffffff3f
cmp ecx, 0xe
ja 0x453cda
test byte [ebp - 0x14], 3
jne 0x453ce1
add eax, edi
jmp 0x453c30
cmp edi, 8
jb 0x453e2d
mov ecx, dword [ebp - 0x20]
movzx eax, byte [ecx + 3]
shl eax, 8
mov dword [ebp - 4], eax
movzx eax, byte [ecx + 4]
or dword [ebp - 4], eax
movzx eax, byte [ecx + 5]
shl eax, 8
mov dword [ebp - 8], eax
movzx eax, byte [ecx + 6]
mov esi, dword [ebp - 8]
or esi, eax
movzx eax, byte [ecx + 7]
mov dword [ebp - 0x10], eax
movzx eax, byte [ecx + 2]
mov ecx, dword [ebp - 0x10]
imul ecx, eax
xor edi, edi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ecx
jmp 0x453e1e
mov dword [ebp - 0xc], edx
jmp 0x453e2d
cmp ebx, 8
jb 0x453d99
cmp dword [esi], 0x474e5089
jne 0x453d99
cmp dword [esi + 4], 0xa1a0a0d
jne 0x453d99
lea eax, [ebp - 8]
mov dword [ebp - 0xc], str.image_png
push eax
lea eax, [ebp - 0x24]
mov edx, ebx
push eax
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004539e0
mov esi, dword [ebp - 0x14]
add esp, 0x14
mov eax, dword [ebp - 0x10]
mov edx, str.image_png
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 8], esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edi
jmp 0x453e21
mov edx, ebx
mov ecx, esi
call fcn.004539b0
test eax, eax
je 0x454215
mov edx, str.image_gif
mov dword [ebp - 0xc], edx
cmp ebx, 6
jb 0x453e2d
cmp dword [esi], 0x38464947
jne 0x453e2d
cmp word [esi + 4], 0x6137
je 0x453dd7
cmp dword [esi], 0x38464947
jne 0x453e2d
cmp word [esi + 4], 0x6139
jne 0x453e2d
cmp ebx, 0xe
jb 0x453e2d
movzx ecx, byte [esi + 7]
movzx eax, byte [esi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 8]
mov dword [ebp - 8], ecx
movzx ecx, byte [esi + 9]
shl ecx, 8
or ecx, eax
mov eax, 0x18
mov dword [ebp - 4], ecx
movzx ecx, byte [esi + 0xa]
mov esi, dword [ebp - 8]
and ecx, 7
mov dword [ebp - 0x10], eax
inc ecx
mov eax, 1
shl eax, cl
mov ecx, 0x18
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
test esi, esi
je 0x453e2d
test eax, eax
je 0x453e2d
test ecx, ecx
jne 0x453e3f
xor eax, eax
xor edi, edi
xor esi, esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
cmp dword [ebp - 0x1c], 1
jne 0x453ebb
cmp esi, 0x20
jne 0x454185
cmp eax, esi
jne 0x454185
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x453e60
sub ecx, esi
cmp ecx, 9
jne 0x454185
mov eax, str.image_png
mov dword [ebp - 0x24], 0
sub eax, edx
mov edi, edx
mov dword [ebp - 0x20], eax
movsx ecx, byte [eax + edi]
movsx esi, byte [edi]
lea eax, [ecx - 0x61]
cmp eax, 0x19
lea edx, [ecx - 0x20]
lea eax, [esi - 0x61]
cmova edx, ecx
cmp eax, 0x19
ja 0x453ea3
sub esi, 0x20
sub edx, esi
jne 0x454185
mov eax, dword [ebp - 0x24]
inc edi
inc eax
mov dword [ebp - 0x24], eax
cmp eax, 9
mov eax, dword [ebp - 0x20]
jl 0x453e85
mov edi, dword [ebp - 0x28]
mov eax, ebx
mov esi, dword [ebp + 8]
shr eax, 0x18
mov ecx, dword [ebp - 0x14]
mov byte [edi + esi - 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + esi - 3], al
mov eax, ebx
shr eax, 8
mov byte [edi + esi - 2], al
mov eax, ecx
shr eax, 0x18
mov byte [edi + esi - 1], bl
mov byte [edi + esi - 8], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + esi - 7], al
mov eax, ecx
shr eax, 8
mov byte [edi + esi - 6], al
mov byte [edi + esi - 5], cl
mov ecx, dword [ebp - 0x10]
mov eax, ecx
shr eax, 0x18
mov byte [edi + esi - 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + esi - 0xb], al
mov eax, ecx
shr eax, 8
mov byte [edi + esi - 0xa], al
mov byte [edi + esi - 9], cl
mov ecx, dword [ebp - 4]
mov eax, ecx
shr eax, 0x18
mov byte [edi + esi - 0x10], al
mov eax, ecx
mov ebx, dword [ebp + 0x10]
shr eax, 0x10
mov byte [edi + esi - 0xf], al
mov eax, ecx
shr eax, 8
mov byte [edi + esi - 0xe], al
mov byte [edi + esi - 0xd], cl
sub esi, 0x14
mov ecx, dword [ebp - 8]
mov eax, ecx
shr eax, 0x18
mov byte [edi + esi], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + esi + 1], al
mov eax, ecx
mov byte [edi + esi + 3], cl
mov ecx, ebx
shr eax, 8
mov byte [edi + esi + 2], al
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x453f72
sub ecx, edx
sub esi, ecx
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x453f82
sub ecx, edx
lea eax, [edi + esi]
push ecx
push ebx
push eax
call fcn.00459900
mov ecx, ebx
add esp, 0xc
sub esi, 4
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x453fa1
sub ecx, edx
shr ecx, 0x18
mov byte [edi + esi], cl
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x453fb5
sub ecx, edx
shr ecx, 0x10
mov byte [edi + esi + 1], cl
mov ecx, ebx
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x453fd0
sub ecx, edx
shr ecx, 8
mov byte [edi + esi + 2], cl
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x453fe3
sub ebx, ecx
mov byte [edi + esi + 3], bl
mov ebx, dword [ebp - 0xc]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x453ff8
sub ecx, edx
sub esi, ecx
push ecx
push ebx
lea eax, [edi + esi]
push eax
call fcn.00459900
mov ecx, ebx
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x454016
sub ecx, edx
shr ecx, 0x18
mov byte [edi + esi - 4], cl
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x454030
sub ecx, edx
shr ecx, 0x10
mov byte [edi + esi - 3], cl
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x454045
sub ecx, edx
shr ecx, 8
mov byte [edi + esi - 2], cl
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x454058
mov edx, dword [ebp - 0x1c]
sub ebx, ecx
mov byte [edi + esi - 1], bl
mov eax, edx
sar eax, 0x18
sub esi, 8
mov byte [edi + esi], al
lea ecx, [edi + esi]
mov eax, edx
mov byte [ecx + 3], dl
sar eax, 0x10
lea ebx, [ecx + 2]
mov byte [ecx + 1], al
mov eax, edx
sar eax, 8
mov byte [ebx], al
mov eax, dword [ebp - 0x18]
sub eax, esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], eax
lea ecx, [eax + 2]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea eax, [edx*4 + 1]
push eax
call fcn.00464c46
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
test edi, edi
je 0x454203
mov eax, 0x55555556
xor esi, esi
imul dword [ebp - 0x18]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x24], eax
test eax, eax
jle 0x454148
add edi, 2
mov dword [ebp - 0x28], eax
nop dword [eax]
movzx ecx, byte [ebx - 2]
lea ebx, [ebx + 3]
movzx edx, byte [ebx - 4]
lea edi, [edi + 4]
movzx esi, byte [ebx - 3]
mov eax, ecx
shr eax, 2
and ecx, 3
shl ecx, 4
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_C]
mov byte [edi - 6], al
mov eax, edx
shr eax, 4
and edx, 0xf
or ecx, eax
shl edx, 2
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_C]
mov byte [edi - 5], al
mov eax, esi
shr eax, 6
and esi, 0x3f
or edx, eax
sub dword [ebp - 0x24], 1
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_C]
mov byte [edi - 4], al
movzx eax, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_C]
mov byte [edi - 3], al
jne 0x4540e0
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
lea edx, [esi + esi*2]
sub eax, edx
cmp eax, 1
jne 0x454197
mov eax, dword [ebp - 0x20]
movzx ecx, byte [edx + eax]
mov eax, ecx
mov word [edi + esi*4 + 2], 0x3d3d
shr eax, 2
and ecx, 3
shl ecx, 4
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_C]
mov byte [edi + esi*4], al
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_C]
mov byte [edi + esi*4 + 1], al
jmp 0x4541e3
mov eax, dword [ebp + 0x14]
pop edi
pop esi
pop ebx
mov dword [eax], 0xffffffdf
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x4541e4
mov eax, dword [ebp - 0x20]
movzx ecx, byte [edx + eax]
movzx edx, byte [edx + eax + 1]
mov eax, ecx
shr eax, 2
and ecx, 3
shl ecx, 4
mov byte [edi + esi*4 + 3], 0x3d
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_C]
mov byte [edi + esi*4], al
mov eax, edx
shr eax, 4
or ecx, eax
and edx, 0xf
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_C]
mov byte [edi + esi*4 + 1], al
movzx eax, byte [edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_C]
mov byte [edi + esi*4 + 2], al
inc esi
mov ecx, dword [ebp - 0x1c]
mov byte [edi + esi*4], 0
cmp ecx, 1
jl 0x45420c
cmp ecx, 2
jg 0x45420c
mov eax, dword [ebp + 0x18]
or dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov dword [eax], 0xffffffef
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi], 0xffffffe0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret