Function at 0x10067d70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, ecx
xor ecx, ecx
cmp dword [ebp + 0x18], 0x10
push ebx
sete cl
mov dword [ebp - 0x48], eax
mov eax, dword [eax]
inc ecx
push esi
mov esi, ecx
imul esi, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov ebx, eax
push edi
mov edi, edx
imul ebx, ecx
mov ecx, dword [ebp + 0x10]
mov edx, esi
mov dword [ebp - 0xc], esi
imul edx, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x30], edx
test ecx, ecx
js 0x10068d95
mov eax, dword [ebp + 0x14]
test eax, eax
js 0x10068d95
je 0x10067ddc
xor edx, edx
mov eax, 0x7fffffff
div dword [ebp + 0x14]
cmp ecx, eax
jg 0x10068d95
mov eax, dword [ebp + 0x14]
imul ecx, eax
test ecx, ecx
js 0x10068d95
test esi, esi
js 0x10068d95
je 0x10067e01
mov eax, 0x7fffffff
cdq
idiv esi
cmp ecx, eax
jg 0x10068d95
mov eax, dword [ebp - 0x30]
imul eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x2c], ecx
mov dword [eax + 0xc], ecx
test ecx, ecx
je 0x10068d9f
mov ecx, dword [ebp - 0x28]
test ecx, ecx
js 0x10068d73
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10067e4c
xor edx, edx
mov eax, 0x7fffffff
div dword [ebp + 0x10]
cmp ecx, eax
jg 0x10068d73
mov edx, dword [ebp + 0x10]
imul ecx, edx
test ecx, ecx
js 0x10068d73
mov esi, dword [ebp + 0x18]
test esi, esi
js 0x10068d73
je 0x10067e78
xor edx, edx
mov eax, 0x7fffffff
div esi
cmp ecx, eax
jg 0x10068d73
mov edx, dword [ebp + 0x10]
mov eax, ecx
imul eax, esi
cmp eax, 0x7ffffff8
jg 0x10068d73
mov eax, ecx
imul eax, esi
add eax, 7
shr eax, 3
mov dword [ebp - 0x48], eax
inc eax
imul eax, dword [ebp + 0x14]
cmp dword [ebp + 8], eax
jae 0x10067ec2
mov ecx, dword [0x10099d0c]
mov eax, dword fs:[0x2c]
pop edi
pop esi
pop ebx
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.not_enough_pixels
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x1c], eax
jbe 0x100689ac
mov dword [ebp - 0x20], ecx
mov ecx, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x1c], ecx
imul eax, dword [ebp - 0x30]
add eax, ecx
mov ecx, eax
mov dword [ebp - 0x60], eax
movzx eax, byte [edi]
inc edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], eax
cmp eax, 4
ja 0x10068984
cmp esi, 8
jge 0x10067f2f
mov esi, dword [ebp - 0x48]
cmp esi, edx
ja 0x10068962
mov eax, dword [ebp + 0xc]
mov ebx, 1
imul eax, edx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x44], esi
sub eax, esi
add ecx, eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], ecx
mov esi, ecx
sub esi, dword [ebp - 0x30]
cmp dword [ebp - 0x38], 0
mov dword [ebp - 0x14], esi
jne 0x10067f47
movzx eax, byte [eax + 0x1007ef2c]
mov dword [ebp - 0x24], eax
test ebx, ebx
jle 0x10068058
mov eax, esi
mov edx, edi
sub eax, edi
sub ecx, edi
mov dword [ebp - 0x10], ecx
mov ecx, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], ecx
mov esi, edx
cmp eax, 6
ja case.default.0x10067f6c
jmp dword [eax*4 + 0x10068dc4]
inc edx
sub ecx, 1
mov dword [ebp - 0x34], ecx
jne 0x10067f65
jmp 0x10068052
mov ebx, dword [ebp - 0x10]
mov al, byte [edx]
inc edx
mov byte [esi + ebx], al
mov ebx, dword [ebp - 8]
sub ecx, 1
je 0x10068052
mov esi, edx
jmp case.0x10067f6c.0
mov ebx, dword [ebp - 0x10]
mov al, byte [edx]
inc edx
mov byte [esi + ebx], al
mov ebx, dword [ebp - 8]
sub ecx, 1
je 0x10068052
mov esi, edx
jmp case.0x10067f6c.1
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
mov al, byte [eax + esi]
add al, byte [edx]
inc edx
mov byte [esi + ebx], al
mov ebx, dword [ebp - 8]
sub ecx, 1
je 0x10068052
mov esi, edx
jmp case.0x10067f6c.2
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
mov al, byte [eax + esi]
shr al, 1
add al, byte [edx]
inc edx
mov byte [esi + ebx], al
mov ebx, dword [ebp - 8]
sub ecx, 1
je 0x10068052
mov esi, edx
jmp case.0x10067f6c.3
mov eax, dword [ebp - 4]
mov cl, byte [eax + esi]
xor al, al
cmp al, cl
sbb al, al
and al, cl
mov ecx, dword [ebp - 0x10]
add al, byte [edx]
inc edx
sub dword [ebp - 0x34], 1
mov byte [esi + ecx], al
je 0x10068052
mov esi, edx
jmp case.0x10067f6c.4
mov ebx, dword [ebp - 0x10]
mov al, byte [edx]
inc edx
mov byte [esi + ebx], al
mov ebx, dword [ebp - 8]
sub ecx, 1
je 0x10068052
mov esi, edx
jmp case.0x10067f6c.5
mov ebx, dword [ebp - 0x10]
nop dword [eax]
mov al, byte [edx]
inc edx
mov byte [esi + ebx], al
sub ecx, 1
je 0x1006804f
mov esi, edx
jmp 0x10068040
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x18]
cmp eax, 8
jne 0x10068081
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x28]
cmp edx, eax
je 0x1006806e
mov byte [ecx + edx], 0xff
add edi, edx
add esi, eax
add ecx, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], esi
mov edx, edi
mov dword [ebp - 0x18], ecx
jmp 0x100680c3
cmp eax, 0x10
jne 0x100680ac
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 0xc]
je 0x10068094
mov word [ecx + ebx], 0xffff
mov ecx, dword [ebp - 0x18]
add edi, ebx
add esi, dword [ebp - 0xc]
mov edx, edi
add ecx, dword [ebp - 0xc]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], ecx
jmp 0x100680c3
inc edi
inc esi
inc ecx
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], esi
mov edx, edi
mov dword [ebp - 0x18], ecx
cmp eax, 8
jl 0x100685ff
mov ebx, dword [ebp - 0x28]
cmp ebx, dword [ebp + 0xc]
mov ebx, dword [ebp - 8]
je 0x100685ff
cmp dword [ebp - 0x24], 6
ja case.default.0x100680e1
mov eax, dword [ebp - 0x24]
mov edi, edx
jmp dword [eax*4 + 0x10068de0]
mov esi, dword [ebp + 0x10]
mov edi, edx
mov eax, dword [ebp - 0xc]
dec esi
mov dword [ebp - 0x34], esi
cmp esi, 1
jb case.default.0x100680e1
nop dword [eax]
test ebx, ebx
jle 0x10068128
mov eax, edi
mov esi, ebx
sub eax, ecx
mov edx, ecx
mov dword [ebp - 0x40], eax
mov ebx, eax
mov al, byte [ebx + edx]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub esi, 1
jne 0x10068111
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x34]
mov byte [ebx + ecx], 0xff
add edi, ebx
add ecx, eax
sub esi, 1
mov dword [ebp - 0x34], esi
jne 0x10068100
jmp case.default.0x100680e1
mov esi, dword [ebp + 0x10]
mov edi, edx
mov eax, dword [ebp - 0xc]
dec esi
mov dword [ebp - 0x24], esi
cmp esi, 1
jb case.default.0x100680e1
mov edx, ecx
mov dword [ebp - 4], edi
sub edx, eax
mov dword [ebp - 0x34], edx
nop dword [eax]
xor esi, esi
test ebx, ebx
jle 0x1006818f
mov dword [ebp - 0x40], edi
sub edi, ecx
nop dword [eax + eax]
mov ebx, dword [ebp - 0x34]
lea edx, [esi + ecx]
mov al, byte [edx + edi]
add al, byte [ebx + esi]
inc esi
mov ebx, dword [ebp - 8]
mov byte [edx], al
cmp esi, ebx
jl 0x10068170
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x34]
mov byte [ecx + ebx], 0xff
add edi, ebx
add edx, eax
mov dword [ebp - 4], edi
add ecx, eax
mov dword [ebp - 0x34], edx
sub dword [ebp - 0x24], 1
jne 0x10068160
jmp case.default.0x100680e1
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
dec edi
mov dword [ebp - 0x14], edi
mov edi, edx
cmp dword [ebp - 0x14], 1
jb case.default.0x100680e1
lea edx, [ecx + ebx]
mov dword [ebp - 4], edi
mov dword [ebp - 0x24], edx
mov edx, 0x20
sub edx, ebx
mov dword [ebp - 0x40], edx
xor edx, edx
test ebx, ebx
jle 0x10068353
cmp ebx, 8
jb 0x1006831b
lea eax, [edi - 1]
add eax, ebx
cmp ecx, eax
ja 0x100681fc
lea eax, [ecx - 1]
add eax, ebx
cmp eax, edi
jae 0x1006831b
lea eax, [esi - 1]
add eax, ebx
cmp ecx, eax
ja 0x10068212
lea eax, [ecx - 1]
add eax, ebx
cmp eax, esi
jae 0x1006831b
cmp ebx, 0x40
jb 0x100682c9
mov eax, ebx
and eax, 0x8000003f
jns 0x10068229
dec eax
or eax, 0xffffffc0
inc eax
mov dword [ebp - 0x34], ebx
mov ebx, esi
sub dword [ebp - 0x34], eax
sub ebx, edi
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], ebx
mov ebx, ecx
sub ebx, edi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ebx
lea eax, [edi + 0x10]
mov edi, dword [ebp - 0x50]
mov ebx, esi
sub ebx, ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x54], ebx
mov ebx, dword [ebp - 0x4c]
nop dword [eax]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edx + esi]
lea ebx, [ebx + 0x40]
paddb xmm1, xmm0
movups xmmword [ebx - 0x60], xmm1
movups xmm1, xmmword [ecx + eax - 0x40]
mov ecx, dword [ebp - 0x54]
movups xmm0, xmmword [eax - 0x40]
paddb xmm1, xmm0
movups xmmword [edi + eax - 0x40], xmm1
movups xmm1, xmmword [ecx + ebx - 0x40]
mov ecx, dword [ebp - 0x3c]
movups xmm0, xmmword [eax - 0x30]
paddb xmm1, xmm0
movups xmmword [ebx - 0x40], xmm1
movups xmm1, xmmword [esi + edx + 0x30]
add edx, 0x40
movups xmm0, xmmword [eax - 0x20]
paddb xmm1, xmm0
movups xmmword [ebx - 0x30], xmm1
cmp edx, dword [ebp - 0x34]
jl 0x10068260
mov ebx, dword [ebp - 8]
mov eax, ebx
mov ecx, dword [ebp - 0x18]
and al, 0x3f
mov edi, dword [ebp - 4]
cmp al, 8
jb 0x10068317
mov eax, ebx
and eax, 0x80000007
jns 0x100682d7
dec eax
or eax, 0xfffffff8
inc eax
mov dword [ebp - 0x34], ebx
mov ebx, esi
sub dword [ebp - 0x34], eax
sub ebx, edi
mov dword [ebp - 0x54], ebx
lea eax, [edx + edi]
mov ebx, dword [ebp - 8]
sub ecx, edi
mov esi, dword [ebp - 0x54]
mov dword [ebp - 0x50], ecx
movq xmm1, qword [eax + esi]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add edx, 8
paddb xmm1, xmm0
movq qword [ecx + eax - 8], xmm1
cmp edx, dword [ebp - 0x34]
jl 0x100682f2
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
cmp edx, ebx
jge 0x10068350
mov eax, dword [ebp - 0x10]
lea esi, [edx + edi]
sub ecx, edi
mov dword [ebp - 0x54], ebx
sub eax, edi
mov dword [ebp - 0x4c], ecx
sub ebx, edx
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x4c]
mov ecx, eax
mov al, byte [esi + ecx]
lea esi, [esi + 1]
add al, byte [esi - 1]
mov byte [edx + esi - 1], al
sub ebx, 1
jne 0x10068335
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
add edi, ebx
add ecx, eax
mov dword [ebp - 4], edi
add esi, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], esi
mov byte [edx], 0xff
add edx, eax
sub dword [ebp - 0x14], 1
mov dword [ebp - 0x24], edx
jne 0x100681d3
jmp case.default.0x100680e1
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
dec edi
mov dword [ebp - 0x24], edi
mov edi, edx
cmp dword [ebp - 0x24], 1
jb case.default.0x100680e1
mov edx, ecx
mov dword [ebp - 4], edi
sub edx, eax
mov dword [ebp - 0x34], edx
nop dword [eax]
mov dword [ebp - 0x54], 0
test ebx, ebx
jle 0x100683ee
mov eax, dword [ebp - 0x10]
mov esi, edi
sub eax, edi
sub ecx, edi
mov dword [ebp - 0x4c], ecx
mov edi, eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
nop
movzx edx, byte [edx + ecx]
lea esi, [esi + 1]
movzx eax, byte [esi + edi - 1]
inc ecx
add edx, eax
mov eax, dword [ebp - 0x4c]
shr edx, 1
add dl, byte [esi - 1]
mov byte [eax + esi - 1], dl
mov edx, dword [ebp - 0x34]
cmp ecx, ebx
jl 0x100683c0
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov byte [ecx + ebx], 0xff
add edi, ebx
add ecx, eax
mov dword [ebp - 4], edi
add edx, eax
mov dword [ebp - 0x18], ecx
add esi, eax
mov dword [ebp - 0x34], edx
sub dword [ebp - 0x24], 1
mov dword [ebp - 0x10], esi
jne 0x100683a0
jmp case.default.0x100680e1
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
dec edi
mov dword [ebp - 0x34], edi
mov edi, edx
cmp dword [ebp - 0x34], 1
jb case.default.0x100680e1
mov edx, ecx
mov dword [ebp - 4], edi
sub edx, eax
mov dword [ebp - 0x40], edx
test ebx, ebx
jle 0x100684d6
mov dword [ebp - 0x54], edx
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x54]
mov edx, esi
sub edx, edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x58], eax
mov ecx, edi
mov dword [ebp - 0x5c], edx
movzx eax, byte [ebx + eax]
movzx edi, byte [ecx + edx]
movzx edx, byte [ebx]
mov dword [ebp - 0x3c], eax
mov esi, edx
sub esi, eax
mov dword [ebp - 0x4c], edi
add edi, esi
mov dword [ebp - 0x24], edx
mov eax, edi
sub edi, dword [ebp - 0x3c]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x54], eax
mov eax, esi
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x50], eax
mov eax, edi
cdq
mov esi, eax
mov eax, dword [ebp - 0x54]
xor esi, edx
sub esi, edx
mov edx, dword [ebp - 0x50]
cmp eax, edx
jg 0x1006849f
cmp eax, esi
jle 0x100684ab
mov eax, dword [ebp - 0x3c]
cmp edx, esi
cmovle eax, dword [ebp - 0x4c]
mov dword [ebp - 0x24], eax
mov al, byte [ecx]
inc ecx
mov edx, dword [ebp - 0xc]
add al, byte [ebp - 0x24]
mov byte [ebx + edx], al
inc ebx
sub dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x5c]
jne 0x10068455
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x40]
mov byte [ecx + ebx], 0xff
add edi, ebx
add ecx, eax
mov dword [ebp - 4], edi
add edx, eax
mov dword [ebp - 0x18], ecx
add esi, eax
mov dword [ebp - 0x40], edx
sub dword [ebp - 0x34], 1
mov dword [ebp - 0x10], esi
jne 0x10068431
jmp case.default.0x100680e1
mov esi, dword [ebp + 0x10]
mov edi, edx
mov eax, dword [ebp - 0xc]
dec esi
mov dword [ebp - 0x40], esi
cmp esi, 1
jb case.default.0x100680e1
mov edx, ecx
mov dword [ebp - 4], edi
sub edx, eax
mov dword [ebp - 0x34], edx
nop dword [eax]
xor esi, esi
test ebx, ebx
jle 0x1006854e
sub edi, ecx
mov dword [ebp - 0x5c], edi
nop dword [eax + eax]
mov eax, dword [ebp - 0x34]
lea edx, [esi + ecx]
mov al, byte [eax + esi]
inc esi
shr al, 1
add al, byte [edx + edi]
mov byte [edx], al
cmp esi, ebx
jl 0x10068530
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x34]
mov byte [ecx + ebx], 0xff
add edi, ebx
add edx, eax
mov dword [ebp - 4], edi
add ecx, eax
mov dword [ebp - 0x34], edx
sub dword [ebp - 0x40], 1
jne 0x10068520
jmp case.default.0x100680e1
mov esi, dword [ebp + 0x10]
mov edi, edx
mov eax, dword [ebp - 0xc]
dec esi
mov dword [ebp - 0x40], esi
cmp esi, 1
jb case.default.0x100680e1
mov edx, ecx
mov dword [ebp - 4], edi
sub edx, eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x5c], 0
test ebx, ebx
jle 0x100685b5
mov eax, edi
mov edi, dword [ebp - 0x5c]
sub eax, ecx
mov dword [ebp - 0x58], eax
lea esi, [edi + ecx]
mov al, byte [esi + eax]
add al, byte [edx + edi]
inc edi
mov edx, dword [ebp - 0x34]
mov byte [esi], al
mov eax, dword [ebp - 0x58]
cmp edi, ebx
jl 0x10068596
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x40]
mov byte [ecx + ebx], 0xff
add edi, ebx
add edx, eax
mov dword [ebp - 4], edi
add ecx, eax
mov dword [ebp - 0x34], edx
sub esi, 1
mov dword [ebp - 0x40], esi
jne 0x10068581
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
cmp esi, 0x10
jne 0x1006894e
test edx, edx
je 0x1006894e
mov ecx, dword [ebp - 0x60]
inc ecx
add ecx, ebx
nop dword [eax]
mov byte [ecx], 0xff
add ecx, eax
sub edx, 1
jne 0x100685f0
jmp 0x1006894b
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x24]
dec eax
imul eax, ebx
mov dword [ebp - 0x14], eax
cmp edx, 6
ja case.default.0x10068615
jmp dword [edx*4 + 0x10068dfc]
push eax
push edi
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp case.default.0x10068615
xor esi, esi
test eax, eax
jle case.default.0x10068615
mov eax, ecx
sub eax, ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x60], eax
mov eax, edi
mov edi, dword [ebp - 0x60]
sub eax, ecx
mov dword [ebp - 0x5c], eax
nop word [eax + eax]
lea edx, [ecx + esi]
mov al, byte [edx + eax]
add al, byte [edi + esi]
inc esi
mov byte [edx], al
mov eax, dword [ebp - 0x5c]
cmp esi, ebx
jl 0x10068650
jmp 0x1006893f
xor edx, edx
test eax, eax
jle case.default.0x10068615
cmp eax, 8
jb 0x100687be
dec eax
mov dword [ebp - 0x60], eax
lea ebx, [eax + ecx]
add eax, edi
mov dword [ebp - 0x40], ebx
cmp ecx, eax
ja 0x10068693
cmp ebx, edi
jae 0x100687be
mov eax, dword [ebp - 0x60]
add eax, esi
cmp ecx, eax
ja 0x100686a5
cmp dword [ebp - 0x40], esi
jae 0x100687be
mov eax, dword [ebp - 0x14]
cmp eax, 0x40
jb 0x1006875f
and eax, 0x8000003f
jns 0x100686bd
dec eax
or eax, 0xffffffc0
inc eax
mov ebx, dword [ebp - 0x14]
sub ebx, eax
lea eax, [ecx + 0x20]
mov dword [ebp - 0x54], ebx
mov ebx, esi
sub ebx, edi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x40], ebx
lea eax, [edi + 0x10]
mov ebx, ecx
sub ebx, edi
mov dword [ebp - 0x5c], ebx
mov ebx, esi
mov edi, dword [ebp - 0x5c]
sub ebx, ecx
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x58], ebx
mov ebx, dword [ebp - 0x60]
nop dword [eax]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x40]
movups xmm1, xmmword [esi + edx]
lea ebx, [ebx + 0x40]
paddb xmm1, xmm0
movups xmmword [ebx - 0x60], xmm1
movups xmm1, xmmword [ecx + eax - 0x40]
mov ecx, dword [ebp - 0x58]
movups xmm0, xmmword [eax - 0x40]
paddb xmm1, xmm0
movups xmmword [edi + eax - 0x40], xmm1
movups xmm1, xmmword [ecx + ebx - 0x40]
mov ecx, esi
movups xmm0, xmmword [eax - 0x30]
paddb xmm1, xmm0
movups xmmword [ebx - 0x40], xmm1
movups xmm1, xmmword [ecx + edx + 0x30]
mov ecx, dword [ebp - 0x40]
add edx, 0x40
movups xmm0, xmmword [eax - 0x20]
paddb xmm1, xmm0
movups xmmword [ebx - 0x30], xmm1
cmp edx, dword [ebp - 0x54]
jl 0x100686f0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
and al, 0x3f
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 4]
cmp al, 8
jb 0x100687b5
mov eax, dword [ebp - 0x14]
and eax, 0x80000007
jns 0x1006876b
dec eax
or eax, 0xfffffff8
inc eax
mov ebx, dword [ebp - 0x14]
sub ebx, eax
lea eax, [edi + edx]
mov dword [ebp - 0x58], ebx
mov ebx, esi
sub ebx, edi
mov dword [ebp - 0x60], ebx
mov ebx, ecx
sub ebx, edi
mov dword [ebp - 0x5c], ebx
mov ebx, dword [ebp - 0x60]
mov esi, dword [ebp - 0x5c]
nop word [eax + eax]
movq xmm1, qword [eax + ebx]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add edx, 8
paddb xmm1, xmm0
movq qword [esi + eax - 8], xmm1
cmp edx, dword [ebp - 0x58]
jl 0x10068790
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x14]
jge case.default.0x10068615
mov ebx, dword [ebp - 0x14]
lea eax, [edi + edx]
sub esi, edi
mov dword [ebp - 0x60], eax
sub ecx, edi
sub ebx, edx
mov edx, eax
nop
mov al, byte [edx + esi]
lea edx, [edx + 1]
add al, byte [edx - 1]
mov byte [ecx + edx - 1], al
sub ebx, 1
jne 0x100687d0
jmp 0x10068942
mov dword [ebp - 0x34], 0
test eax, eax
jle case.default.0x10068615
mov eax, ecx
mov dword [ebp - 0x60], edi
sub eax, ebx
sub esi, edi
mov dword [ebp - 0x5c], eax
sub ecx, edi
mov eax, dword [ebp - 0x34]
nop word [eax + eax]
mov ebx, dword [ebp - 0x5c]
lea edi, [edi + 1]
movzx edx, byte [edi + esi - 1]
movzx eax, byte [ebx + eax]
add edx, eax
mov eax, dword [ebp - 0x34]
shr edx, 1
inc eax
add dl, byte [edi - 1]
mov byte [ecx + edi - 1], dl
mov dword [ebp - 0x34], eax
cmp eax, dword [ebp - 0x14]
jl 0x10068810
jmp 0x1006893f
test eax, eax
jle case.default.0x10068615
mov edx, ecx
mov dword [ebp - 0x34], edi
sub edx, ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x60], edx
mov edx, esi
sub edx, ecx
mov ecx, dword [ebp - 0x34]
sub esi, edi
mov dword [ebp - 0x54], edx
mov edi, dword [ebp - 0x60]
mov dword [ebp - 0x10], esi
movzx eax, byte [edx + edi]
movzx esi, byte [esi + ecx]
movzx edx, byte [edi]
mov dword [ebp - 0x40], eax
mov ecx, edx
sub ecx, eax
mov dword [ebp - 0x58], esi
add esi, ecx
mov dword [ebp - 0x3c], edx
mov eax, esi
sub esi, dword [ebp - 0x40]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x60], eax
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x5c], eax
mov eax, esi
cdq
mov ecx, eax
mov eax, dword [ebp - 0x60]
xor ecx, edx
sub ecx, edx
mov edx, dword [ebp - 0x5c]
cmp eax, edx
jg 0x100688ac
cmp eax, ecx
jle 0x100688b8
mov eax, dword [ebp - 0x40]
cmp edx, ecx
cmovle eax, dword [ebp - 0x58]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x54]
mov al, byte [ecx]
inc ecx
add al, byte [ebp - 0x3c]
mov byte [edi + ebx], al
inc edi
sub dword [ebp - 0x24], 1
mov dword [ebp - 0x34], ecx
jne 0x10068862
mov edi, dword [ebp - 4]
jmp case.default.0x10068615
xor esi, esi
test eax, eax
jle case.default.0x10068615
mov eax, ecx
sub eax, ebx
mov dword [ebp - 0x60], eax
mov eax, edi
mov edi, dword [ebp - 0x60]
sub eax, ecx
mov dword [ebp - 0x5c], eax
mov al, byte [edi + esi]
lea edx, [ecx + esi]
mov ebx, dword [ebp - 0x5c]
inc esi
shr al, 1
add al, byte [edx + ebx]
mov byte [edx], al
cmp esi, dword [ebp - 0x14]
jl 0x100688f0
jmp 0x1006893f
mov dword [ebp - 0x60], 0
test eax, eax
jle case.default.0x10068615
mov eax, ecx
mov edx, edi
mov edi, dword [ebp - 0x60]
sub eax, ebx
mov ebx, dword [ebp - 0x14]
sub edx, ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], edx
mov dl, byte [eax + edi]
lea esi, [ecx + edi]
mov eax, dword [ebp - 0x5c]
inc edi
mov al, byte [esi + eax]
add al, dl
mov byte [esi], al
mov eax, dword [ebp - 0x58]
cmp edi, ebx
jl 0x10068927
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
add edi, dword [ebp - 0x14]
mov esi, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp eax, dword [ebp + 0x14]
jae 0x100689a6
mov ecx, dword [ebp - 0x1c]
jmp 0x10067ee6
mov ecx, dword [0x10099d0c]
mov eax, dword fs:[0x2c]
pop edi
pop esi
pop ebx
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.invalid_width
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x10099d0c]
mov eax, dword fs:[0x2c]
pop edi
pop esi
pop ebx
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.invalid_filter
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp + 0x18]
cmp edi, 8
jge 0x10068d2e
cmp dword [ebp + 0x14], 0
jbe 0x10068d67
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x1c]
imul eax, edx
sub eax, dword [ebp - 0x48]
add eax, ebx
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x1c], 0
mov edx, ebx
mov esi, eax
jne 0x100689e5
mov bl, byte [edi + 0x1007ef34]
jmp 0x100689e7
mov bl, 1
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x20], ecx
cmp edi, 4
jne 0x10068a51
mov eax, ecx
mov dword [ebp - 0x38], eax
cmp eax, 2
jl 0x10068a3f
mov edi, eax
shr edi, 1
mov eax, edi
neg eax
lea ecx, [ecx + eax*2]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x20], ecx
movzx ecx, byte [esi]
shr cl, 4
movzx ecx, cl
movzx eax, bl
imul ecx, eax
movzx eax, bl
mov byte [edx], cl
movzx ecx, byte [esi]
inc esi
and cl, 0xf
movzx ecx, cl
imul ecx, eax
mov byte [edx + 1], cl
add edx, 2
sub edi, 1
jne 0x10068a10
mov eax, dword [ebp - 0x38]
test eax, eax
jle 0x10068c9a
mov cl, byte [esi]
shr cl, 4
jmp 0x10068c8f
cmp edi, 2
jne 0x10068b14
mov edi, ecx
mov dword [ebp - 0x38], edi
cmp edi, 4
jl 0x10068ad0
shr edi, 2
mov eax, edi
neg eax
lea ecx, [ecx + eax*4]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x20], ecx
movzx ecx, byte [esi]
shr cl, 6
movzx ecx, cl
movzx eax, bl
imul ecx, eax
movzx eax, bl
mov byte [edx], cl
movzx ecx, byte [esi]
shr cl, 4
and cl, 3
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 1], cl
movzx ecx, byte [esi]
shr cl, 2
and cl, 3
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 2], cl
movzx ecx, byte [esi]
inc esi
and cl, 3
movzx ecx, cl
imul ecx, eax
mov byte [edx + 3], cl
add edx, 4
sub edi, 1
jne 0x10068a77
mov edi, dword [ebp - 0x38]
test edi, edi
jle 0x10068ae5
mov cl, byte [esi]
shr cl, 6
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
cmp edi, 1
jle 0x10068afe
mov cl, byte [esi]
shr cl, 4
and cl, 3
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
cmp edi, 2
jle 0x10068c9a
mov cl, byte [esi]
shr cl, 2
and cl, 3
jmp 0x10068c8f
cmp edi, 1
jne 0x10068c9d
mov edi, ecx
mov dword [ebp - 0x20], ecx
cmp edi, 8
jl 0x10068bf1
mov eax, edi
mov dword [ebp - 0x20], ecx
shr eax, 3
mov dword [ebp - 0x60], eax
neg eax
lea edi, [edi + eax*8]
mov dword [ebp - 0x5c], edi
mov edi, dword [ebp - 0x60]
movzx ecx, byte [esi]
shr cl, 7
movzx ecx, cl
movzx eax, bl
imul ecx, eax
movzx eax, bl
mov byte [edx], cl
movzx ecx, byte [esi]
shr cl, 6
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 1], cl
movzx ecx, byte [esi]
shr cl, 5
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 2], cl
movzx ecx, byte [esi]
shr cl, 4
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 3], cl
movzx ecx, byte [esi]
shr cl, 3
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 4], cl
movzx ecx, byte [esi]
shr cl, 2
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 5], cl
movzx ecx, byte [esi]
shr cl, 1
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 6], cl
movzx ecx, byte [esi]
inc esi
and cl, 1
movzx ecx, cl
imul ecx, eax
mov byte [edx + 7], cl
add edx, 8
sub edi, 1
jne 0x10068b41
mov edi, dword [ebp - 0x5c]
test edi, edi
jle 0x10068c06
mov cl, byte [esi]
shr cl, 7
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
cmp edi, 1
jle 0x10068c1f
mov cl, byte [esi]
shr cl, 6
and cl, 1
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
cmp edi, 2
jle 0x10068c38
mov cl, byte [esi]
shr cl, 5
and cl, 1
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
cmp edi, 3
jle 0x10068c51
mov cl, byte [esi]
shr cl, 4
and cl, 1
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
cmp edi, 4
jle 0x10068c6a
mov cl, byte [esi]
shr cl, 3
and cl, 1
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
cmp edi, 5
jle 0x10068c83
mov cl, byte [esi]
shr cl, 2
and cl, 1
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
cmp edi, 6
jle 0x10068c9a
mov cl, byte [esi]
shr cl, 1
and cl, 1
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x1c]
cmp edx, dword [ebp + 0xc]
je 0x10068d06
mov ecx, dword [ebp + 0x10]
dec ecx
cmp edx, 1
jne 0x10068cc7
test ecx, ecx
js 0x10068d06
mov byte [ebx + ecx*2 + 1], 0xff
mov al, byte [ecx + ebx]
mov byte [ebx + ecx*2], al
sub ecx, 1
jns 0x10068cb5
jmp 0x10068d03
test ecx, ecx
js 0x10068d06
lea esi, [ebx + 1]
lea esi, [esi + ecx*2]
lea edx, [ebx + 2]
add esi, ecx
lea edx, [edx + ecx*4]
nop dword [eax]
sub ecx, 1
mov byte [edx + 1], 0xff
movzx eax, byte [esi + 1]
lea esi, [esi - 3]
mov byte [edx], al
lea edx, [edx - 4]
movzx eax, byte [esi + 3]
mov byte [edx + 3], al
movzx eax, byte [esi + 2]
mov byte [edx + 2], al
jns 0x10068ce0
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x30]
add ebx, dword [ebp - 0x30]
sub dword [ebp + 0x14], 1
mov edi, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
jne 0x100689d3
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0x10
jne 0x10068d67
mov ebx, dword [ebp + 0xc]
mov edx, eax
imul ebx, dword [ebp + 0x10]
imul ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x10068d67
movzx ecx, byte [eax]
lea edx, [edx + 2]
movzx eax, byte [edx - 1]
shl cx, 8
or cx, ax
mov eax, dword [ebp - 0x2c]
add eax, 2
mov word [edx - 2], cx
mov dword [ebp - 0x2c], eax
sub ebx, 1
jne 0x10068d44
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x10099d0c]
mov eax, dword fs:[0x2c]
pop edi
pop esi
pop ebx
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.too_large
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x48]
mov dword [eax + 0xc], 0
mov ecx, dword [0x10099d0c]
mov eax, dword fs:[0x2c]
pop edi
pop esi
pop ebx
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], str.outofmem
xor eax, eax
mov esp, ebp
pop ebp
ret