Function at 0x491340
Capabilities:
Encrypt data using rc4 ksa
Enumerate pe sections

Disassembly:
sub esp, 0x188
mov eax, dword [0x63d20c]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
push ebp
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [esi + 0x10], edi
mov dword [esp + 0x10], edi
jle 0x491b5f
lea esp, [esp]
cmp dword [esi + 0xcc], 0
jle 0x4913b8
cmp dword [esi + 0xdb4], 0
jne 0x4913b8
mov ecx, esi
call fcn.0048c6b0
mov ecx, dword [esi + 0xdb8]
cmp eax, ecx
jne 0x491c35
lea eax, [ecx + 1]
mov dword [esi + 0xdb8], eax
cmp eax, 0xd8
jne 0x4913b1
mov dword [esi + 0xdb8], 0xd0
mov ecx, esi
call fcn.0048c080
cmp dword [esi + 0xbc], 0
mov dword [esp + 0x18], 0
jle 0x491b49
lea eax, [esi + 0x8c]
lea edi, [esi + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], edi
mov edi, edi
mov eax, dword [esi + 0x18]
cdq
idiv dword [edi - 4]
mov ecx, dword [esi + 0x1c]
mov ebx, eax
mov eax, ecx
cdq
idiv dword [edi]
mov dword [esp + 0x48], ebx
mov ebp, eax
mov eax, ebx
cdq
and edx, 7
add eax, edx
mov ebx, eax
mov eax, ebp
cdq
and edx, 7
add eax, edx
sar eax, 3
sar ebx, 3
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], eax
test ecx, ecx
jle 0x491b24
lea esp, [esp]
xor ebp, ebp
cmp dword [esi + 0x18], ebp
mov dword [esp + 0x1c], ebp
jle 0x491b13
jmp 0x491445
mov ebp, dword [esp + 0x1c]
lea ecx, [esp + 0x54]
push ecx
lea eax, [edi + 8]
push eax
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 0x10]
imul edx, edx, 0x156
lea ecx, [edx + esi + 0x82c]
mov edx, dword [eax]
imul edx, edx, 0x156
push ecx
lea eax, [edx + esi + 0x2d4]
push eax
mov ecx, esi
call fcn.00490630
test eax, eax
je 0x491c4e
mov eax, dword [edi + 4]
lea ecx, [esp + 0x154]
push ecx
lea edx, [esp + 0x58]
shl eax, 7
lea ecx, [eax + esi + 0xd0]
push edx
push ecx
mov ecx, esi
call fcn.0048c0d0
mov edx, 1
cmp ebx, edx
jne 0x491748
cmp dword [esp + 0x24], edx
jne 0x491a1c
mov eax, dword [esp + 0x10]
lea ecx, [eax + ebp + 8]
cmp ecx, dword [esi + 0x10]
jg 0x491a1c
mov edi, dword [esp + 0x28]
inc edi
lea eax, [esp + 0x155]
mov dword [esp + 0x14], 2
jmp 0x4914e6
mov ebp, dword [esp + 0x1c]
movzx edx, byte [eax - 1]
lea ecx, [edi - 1]
imul ecx, dword [esi + 0x10]
add ecx, ebp
add ecx, dword [esp + 0x10]
movzx ebx, byte [eax]
imul ecx, dword [esi + 0xbc]
add ecx, dword [esi + 0xd8c]
add ecx, dword [esp + 0x18]
mov byte [ecx], dl
mov edx, dword [esi + 0xbc]
mov byte [ecx + edx], bl
mov edx, dword [esi + 0xbc]
movzx ebx, byte [eax + 1]
mov byte [ecx + edx*2], bl
mov ebp, dword [esi + 0xbc]
movzx ebx, byte [eax + 2]
lea edx, [ecx + ebp*2]
mov byte [edx + ebp], bl
mov edx, dword [esi + 0xbc]
movzx ebx, byte [eax + 3]
mov byte [ecx + edx*4], bl
mov ebp, dword [esi + 0xbc]
movzx ebx, byte [eax + 4]
lea edx, [ecx + ebp*4]
mov byte [edx + ebp], bl
mov edx, dword [esi + 0xbc]
movzx ebx, byte [eax + 5]
lea edx, [edx + edx*2]
mov byte [ecx + edx*2], bl
mov edx, dword [esi + 0xbc]
lea ebx, [edx*8]
sub ebx, edx
movzx edx, byte [eax + 6]
mov byte [ebx + ecx], dl
mov ecx, dword [esi + 0x10]
imul ecx, edi
add ecx, dword [esp + 0x1c]
movzx edx, byte [eax + 7]
add ecx, dword [esp + 0x10]
movzx ebx, byte [eax + 8]
imul ecx, dword [esi + 0xbc]
add ecx, dword [esi + 0xd8c]
add ecx, dword [esp + 0x18]
mov byte [ecx], dl
mov edx, dword [esi + 0xbc]
mov byte [ecx + edx], bl
mov edx, dword [esi + 0xbc]
movzx ebx, byte [eax + 9]
mov byte [ecx + edx*2], bl
mov ebp, dword [esi + 0xbc]
movzx ebx, byte [eax + 0xa]
lea edx, [ecx + ebp*2]
mov byte [edx + ebp], bl
mov edx, dword [esi + 0xbc]
movzx ebx, byte [eax + 0xb]
mov byte [ecx + edx*4], bl
mov ebp, dword [esi + 0xbc]
movzx ebx, byte [eax + 0xc]
lea edx, [ecx + ebp*4]
mov byte [edx + ebp], bl
mov edx, dword [esi + 0xbc]
movzx ebx, byte [eax + 0xd]
lea edx, [edx + edx*2]
mov byte [ecx + edx*2], bl
mov edx, dword [esi + 0xbc]
lea ebx, [edx*8]
sub ebx, edx
movzx edx, byte [eax + 0xe]
mov byte [ebx + ecx], dl
movzx edx, byte [eax + 0xf]
lea ecx, [edi + 1]
imul ecx, dword [esi + 0x10]
add ecx, dword [esp + 0x1c]
movzx ebx, byte [eax + 0x10]
add ecx, dword [esp + 0x10]
imul ecx, dword [esi + 0xbc]
add ecx, dword [esi + 0xd8c]
add ecx, dword [esp + 0x18]
mov byte [ecx], dl
mov edx, dword [esi + 0xbc]
mov byte [ecx + edx], bl
mov edx, dword [esi + 0xbc]
movzx ebx, byte [eax + 0x11]
mov byte [ecx + edx*2], bl
mov ebp, dword [esi + 0xbc]
movzx ebx, byte [eax + 0x12]
lea edx, [ecx + ebp*2]
mov byte [edx + ebp], bl
mov edx, dword [esi + 0xbc]
movzx ebx, byte [eax + 0x13]
mov byte [ecx + edx*4], bl
mov ebp, dword [esi + 0xbc]
movzx ebx, byte [eax + 0x14]
lea edx, [ecx + ebp*4]
mov byte [edx + ebp], bl
mov edx, dword [esi + 0xbc]
movzx ebx, byte [eax + 0x15]
lea edx, [edx + edx*2]
mov byte [ecx + edx*2], bl
mov edx, dword [esi + 0xbc]
lea ebx, [edx*8]
sub ebx, edx
movzx edx, byte [eax + 0x16]
mov byte [ebx + ecx], dl
movzx edx, byte [eax + 0x17]
lea ecx, [edi + 2]
imul ecx, dword [esi + 0x10]
add ecx, dword [esp + 0x1c]
movzx ebx, byte [eax + 0x18]
add ecx, dword [esp + 0x10]
add edi, 4
imul ecx, dword [esi + 0xbc]
add ecx, dword [esi + 0xd8c]
add eax, 0x20
add ecx, dword [esp + 0x18]
mov byte [ecx], dl
mov edx, dword [esi + 0xbc]
mov byte [ecx + edx], bl
mov edx, dword [esi + 0xbc]
movzx ebx, byte [eax - 7]
mov byte [ecx + edx*2], bl
mov ebp, dword [esi + 0xbc]
movzx ebx, byte [eax - 6]
lea edx, [ecx + ebp*2]
mov byte [edx + ebp], bl
mov edx, dword [esi + 0xbc]
movzx ebx, byte [eax - 5]
mov byte [ecx + edx*4], bl
mov ebp, dword [esi + 0xbc]
movzx ebx, byte [eax - 4]
lea edx, [ecx + ebp*4]
mov byte [edx + ebp], bl
mov edx, dword [esi + 0xbc]
movzx ebx, byte [eax - 3]
lea edx, [edx + edx*2]
mov byte [ecx + edx*2], bl
mov edx, dword [esi + 0xbc]
lea ebx, [edx*8]
sub ebx, edx
sub dword [esp + 0x14], 1
movzx edx, byte [eax - 2]
mov byte [ebx + ecx], dl
jne 0x4914e2
mov ebx, dword [esp + 0x30]
jmp 0x491af6
cmp ebx, 2
jne 0x491a1c
cmp dword [esp + 0x24], ebx
jne 0x491a1c
mov eax, dword [esp + 0x10]
lea ecx, [eax + ebp + 0x10]
cmp ecx, dword [esi + 0x10]
jg 0x491a1c
xor eax, eax
mov dword [esp + 0x14], eax
lea edi, [esp + 0x155]
lea esp, [esp]
mov edx, dword [esi + 0x10]
mov ecx, dword [esp + 0x28]
mov ebp, dword [esi + 0xbc]
add eax, ecx
imul eax, edx
add eax, dword [esp + 0x1c]
mov ecx, ebp
add eax, dword [esp + 0x10]
imul ecx, edx
movzx edx, byte [edi - 1]
imul eax, ebp
add eax, dword [esi + 0xd8c]
add eax, dword [esp + 0x18]
add ecx, eax
mov byte [ecx + ebp], dl
mov edx, dword [esi + 0xbc]
mov dl, byte [ecx + edx]
mov byte [ecx], dl
mov ebx, dword [esi + 0xbc]
mov byte [eax + ebx], dl
mov edx, dword [esi + 0xbc]
movzx edx, byte [eax + edx]
mov byte [eax], dl
mov ebp, dword [esi + 0xbc]
movzx ebx, byte [edi]
lea edx, [ecx + ebp*2]
mov byte [edx + ebp], bl
mov ebp, dword [esi + 0xbc]
lea edx, [ecx + ebp*2]
movzx edx, byte [edx + ebp]
mov byte [ecx + ebp*2], dl
mov ebp, dword [esi + 0xbc]
movzx ebx, byte [ecx + ebp*2]
lea edx, [eax + ebp*2]
mov byte [edx + ebp], bl
mov ebp, dword [esi + 0xbc]
movzx ebx, byte [edi + 1]
lea edx, [eax + ebp*2]
movzx edx, byte [edx + ebp]
mov byte [eax + ebp*2], dl
mov ebp, dword [esi + 0xbc]
lea edx, [ecx + ebp*4]
mov byte [edx + ebp], bl
mov ebp, dword [esi + 0xbc]
lea edx, [ecx + ebp*4]
movzx edx, byte [edx + ebp]
mov byte [ecx + ebp*4], dl
mov ebp, dword [esi + 0xbc]
movzx ebx, byte [ecx + ebp*4]
lea edx, [eax + ebp*4]
mov byte [edx + ebp], bl
mov ebp, dword [esi + 0xbc]
lea edx, [eax + ebp*4]
movzx edx, byte [edx + ebp]
mov byte [eax + ebp*4], dl
mov edx, dword [esi + 0xbc]
lea ebx, [edx*8]
sub ebx, edx
movzx edx, byte [edi + 2]
mov byte [ebx + ecx], dl
mov edx, dword [esi + 0xbc]
lea ebx, [edx*8]
sub ebx, edx
movzx ebx, byte [ebx + ecx]
lea edx, [edx + edx*2]
mov byte [ecx + edx*2], bl
mov edx, dword [esi + 0xbc]
lea ebp, [edx*8]
sub ebp, edx
lea ebx, [edx + edx*2]
movzx edx, byte [ecx + ebx*2]
mov byte [eax + ebp], dl
mov edx, dword [esi + 0xbc]
lea ebx, [edx*8]
sub ebx, edx
movzx ebx, byte [ebx + eax]
lea edx, [edx + edx*2]
mov byte [eax + edx*2], bl
mov ebp, dword [esi + 0xbc]
movzx ebx, byte [edi + 3]
lea edx, [ecx + ebp*8]
mov byte [edx + ebp], bl
mov ebp, dword [esi + 0xbc]
lea edx, [ecx + ebp*8]
movzx edx, byte [edx + ebp]
mov byte [ecx + ebp*8], dl
mov ebp, dword [esi + 0xbc]
movzx ebx, byte [ecx + ebp*8]
lea edx, [eax + ebp*8]
mov byte [edx + ebp], bl
mov ebp, dword [esi + 0xbc]
movzx ebx, byte [edi + 4]
lea edx, [eax + ebp*8]
movzx edx, byte [edx + ebp]
mov byte [eax + ebp*8], dl
mov edx, dword [esi + 0xbc]
imul edx, edx, 0xb
mov byte [edx + ecx], bl
mov edx, dword [esi + 0xbc]
mov ebx, edx
imul ebx, ebx, 0xb
movzx ebx, byte [ebx + ecx]
lea edx, [edx + edx*4]
mov byte [ecx + edx*2], bl
mov ebp, dword [esi + 0xbc]
lea edx, [ebp + ebp*4]
imul ebp, ebp, 0xb
movzx edx, byte [ecx + edx*2]
mov byte [eax + ebp], dl
mov edx, dword [esi + 0xbc]
mov ebx, edx
imul ebx, ebx, 0xb
movzx ebx, byte [ebx + eax]
lea edx, [edx + edx*4]
mov byte [eax + edx*2], bl
mov edx, dword [esi + 0xbc]
movzx ebx, byte [edi + 5]
imul edx, edx, 0xd
mov byte [edx + ecx], bl
mov edx, dword [esi + 0xbc]
mov ebx, edx
imul ebx, ebx, 0xd
movzx ebx, byte [ebx + ecx]
lea edx, [edx + edx*2]
mov byte [ecx + edx*4], bl
mov ebp, dword [esi + 0xbc]
lea edx, [ebp + ebp*2]
imul ebp, ebp, 0xd
movzx edx, byte [ecx + edx*4]
mov byte [eax + ebp], dl
mov edx, dword [esi + 0xbc]
mov ebx, edx
imul ebx, ebx, 0xd
movzx ebx, byte [ebx + eax]
lea edx, [edx + edx*2]
mov byte [eax + edx*4], bl
mov edx, dword [esi + 0xbc]
mov ebx, edx
shl ebx, 4
sub ebx, edx
movzx edx, byte [edi + 6]
mov byte [ebx + ecx], dl
mov edx, dword [esi + 0xbc]
mov ebx, edx
lea ebp, [edx*8]
sub ebp, edx
shl ebx, 4
sub ebx, edx
movzx edx, byte [ebx + ecx]
mov byte [ecx + ebp*2], dl
mov edx, dword [esi + 0xbc]
lea ebx, [edx*8]
sub ebx, edx
movzx ecx, byte [ecx + ebx*2]
mov ebp, edx
shl ebp, 4
sub ebp, edx
mov byte [eax + ebp], cl
mov ecx, dword [esi + 0xbc]
mov edx, ecx
shl edx, 4
sub edx, ecx
lea ebx, [ecx*8]
sub ebx, ecx
movzx ecx, byte [edx + eax]
mov byte [eax + ebx*2], cl
mov eax, dword [esp + 0x14]
add eax, 2
add edi, 8
cmp eax, 0x10
mov dword [esp + 0x14], eax
jl 0x491780
mov ebx, dword [esp + 0x30]
jmp 0x491af6
mov edi, dword [esi + 0x10]
imul edi, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
add edi, ebp
add edi, eax
imul edi, dword [esi + 0xbc]
add edi, dword [esi + 0xd8c]
xor ecx, ecx
add edi, dword [esp + 0x18]
add ebp, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x40], 8
jmp 0x491a60
mov eax, dword [esp + 0x50]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], 8
xor ebp, ebp
cmp dword [esp + 0x24], ebp
jle 0x491ad2
xor eax, eax
test ebx, ebx
jle 0x491ac5
mov edx, dword [esp + 0x38]
lea ebx, [ebx]
mov ecx, dword [esi + 0x10]
cmp edx, ecx
jge 0x491ac5
mov ebx, dword [esp + 0x14]
add ebx, ebp
imul ebx, ecx
mov ecx, dword [esp + 0x20]
mov cl, byte [esp + ecx + 0x154]
add ebx, eax
add ebx, dword [esp + 0x34]
inc eax
imul ebx, dword [esi + 0xbc]
mov byte [ebx + edi], cl
mov ebx, dword [esp + 0x30]
inc edx
cmp eax, ebx
jl 0x491a90
mov edx, 1
add ebp, edx
cmp ebp, dword [esp + 0x24]
jl 0x491a80
add dword [esp + 0x20], edx
add dword [esp + 0x34], ebx
add dword [esp + 0x38], ebx
sub dword [esp + 0x44], edx
jne 0x491a78
mov eax, dword [esp + 0x24]
add dword [esp + 0x14], eax
sub dword [esp + 0x40], edx
jne 0x491a60
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x48]
mov edi, dword [esp + 0x2c]
cmp eax, dword [esi + 0x18]
mov dword [esp + 0x1c], eax
jl 0x491441
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x4c]
cmp eax, dword [esi + 0x1c]
mov dword [esp + 0x28], eax
jl 0x491430
mov eax, dword [esp + 0x18]
add dword [esp + 0x3c], 4
inc eax
add edi, 0x14
cmp eax, dword [esi + 0xbc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], edi
jl 0x4913e0
mov edi, dword [esp + 0x10]
add edi, dword [esi + 0x18]
dec dword [esi + 0xdb4]
cmp edi, dword [esi + 0x10]
mov dword [esp + 0x10], edi
jl 0x491370
xor edx, edx
cmp dword [esi + 0xc0], edx
je 0x491d2e
mov eax, dword [esi + 0xbc]
cmp eax, 3
jne 0x491c55
mov eax, dword [esi + 0x1c]
imul eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xd8c]
test eax, eax
jle 0x491d2e
movzx eax, byte [ecx + 2]
movzx ebp, byte [ecx]
add eax, 0xffffff80
movzx edi, byte [ecx + 1]
mov ebx, eax
imul eax, eax, 0xffff492e
imul ebx, ebx, 0x166e9
shl ebp, 0x10
lea ebx, [ebx + ebp + 0x8000]
sar ebx, 0x10
add ebx, 0x180
and ebx, 0x3ff
mov bl, byte [ebx + 0x63e0e8]
mov byte [ecx], bl
add edi, 0xffffff80
mov ebx, edi
imul edi, edi, 0x1c5a2
imul ebx, ebx, 0x5819
sub eax, ebx
lea eax, [eax + ebp + 0x8000]
sar eax, 0x10
add eax, 0x180
and eax, 0x3ff
movzx eax, byte [eax + 0x63e0e8]
mov byte [ecx + 1], al
lea eax, [edi + ebp + 0x8000]
sar eax, 0x10
add eax, 0x180
and eax, 0x3ff
movzx eax, byte [eax + 0x63e0e8]
mov byte [ecx + 2], al
mov eax, dword [esi + 0x1c]
imul eax, dword [esi + 0x10]
inc edx
add ecx, 3
cmp edx, eax
jl 0x491b91
jmp 0x491d2e
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
push str.Bad_DCT_data:_incorrect_restart_marker
mov ecx, esi
call eax
push eax
push 1
call fcn.00489570
add esp, 0xc
xor eax, eax
jmp 0x491d72
cmp eax, 4
jne 0x491d2e
mov ecx, dword [esi + 0xd8c]
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0x1c]
imul edx, dword [esi + 0x10]
test edx, edx
jle 0x491d2e
jmp 0x491c80
movzx eax, byte [ecx + 2]
movzx ebp, byte [ecx]
movzx edi, byte [ecx + 1]
add eax, 0xffffff80
mov edx, eax
imul eax, eax, 0xffff492e
imul edx, edx, 0x166e9
shl ebp, 0x10
lea edx, [edx + ebp + 0x8000]
sar edx, 0x10
add edx, 0x180
and edx, 0x3ff
add edi, 0xffffff80
or bl, 0xff
sub bl, byte [edx + 0x63e0e8]
mov edx, edi
imul edi, edi, 0x1c5a2
imul edx, edx, 0x5819
sub eax, edx
lea eax, [eax + ebp + 0x8000]
sar eax, 0x10
add eax, 0x180
and eax, 0x3ff
or dl, 0xff
mov byte [ecx], bl
sub dl, byte [eax + 0x63e0e8]
lea eax, [edi + ebp + 0x8000]
sar eax, 0x10
mov byte [ecx + 1], dl
add eax, 0x180
and eax, 0x3ff
or dl, 0xff
sub dl, byte [eax + 0x63e0e8]
mov eax, dword [esp + 0x20]
mov byte [ecx + 2], dl
mov edx, dword [esi + 0x1c]
imul edx, dword [esi + 0x10]
inc eax
add ecx, 4
cmp eax, edx
mov dword [esp + 0x20], eax
jl 0x491c80
mov edx, dword [esi + 0xdb0]
mov edi, dword [esi + 0x1c]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0xd8c]
lea ebx, [edx + edi]
cmp ebx, eax
mov dword [esi + 0xd90], ecx
jg 0x491d58
mov eax, dword [esi + 0xbc]
imul eax, edi
jmp 0x491d61
sub eax, edx
imul eax, dword [esi + 0xbc]
imul eax, dword [esi + 0x10]
add eax, ecx
mov dword [esi + 0xd94], eax
mov eax, 1
mov ecx, dword [esp + 0x194]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00551b9a
add esp, 0x188
ret