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

Disassembly:
sub esp, 0x180
mov eax, dword [0x59c6b8]
xor eax, esp
mov dword [esp + 0x17c], eax
push ebx
push ebp
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [esp + 0x10], edi
cmp dword [esi + 0x14], edi
jle 0x472ebb
lea esp, [esp]
cmp dword [esi + 0xd0], 0
jle 0x472728
cmp dword [esi + 0xdb8], 0
jne 0x472728
mov ecx, esi
call fcn.0046c670
mov ecx, dword [esi + 0xdbc]
cmp eax, ecx
jne 0x472f94
lea eax, [ecx + 1]
mov dword [esi + 0xdbc], eax
cmp eax, 0xd8
jne 0x472721
mov dword [esi + 0xdbc], 0xd0
mov ecx, esi
call fcn.0046c120
cmp dword [esi + 0xc0], 0
mov dword [esp + 0x1c], 0
jle 0x472ea5
lea eax, [esi + 0x90]
lea edi, [esi + 0x30]
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], edi
mov edi, edi
mov eax, dword [esi + 0x1c]
cdq
idiv dword [edi]
mov ecx, dword [esi + 0x20]
mov ebx, eax
mov eax, ecx
cdq
idiv dword [edi + 4]
mov dword [esp + 0x48], ebx
mov ebp, eax
mov eax, ebx
cdq
and edx, 7
lea ebx, [edx + 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 + 0x44], ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], eax
test ecx, ecx
jle 0x472e80
jmp 0x4727a0
xor ebp, ebp
mov dword [esp + 0x18], ebp
cmp dword [esi + 0x1c], ebp
jle 0x472e6f
jmp 0x4727b5
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [eax]
imul ecx, ecx, 0x156
imul eax, eax, 0x156
lea edx, [edi + 0xc]
push edx
lea edx, [ecx + esi + 0x830]
lea ecx, [eax + esi + 0x2d8]
push edx
push ecx
mov ecx, esi
call fcn.00471c70
test eax, eax
je 0x472fae
mov ecx, dword [edi + 8]
lea edx, [esp + 0x14c]
push edx
shl ecx, 7
lea eax, [esp + 0x50]
lea edx, [ecx + esi + 0xd4]
push eax
push edx
mov ecx, esi
call fcn.0046c170
mov ecx, 1
cmp ebx, ecx
jne 0x472ab7
cmp dword [esp + 0x24], ecx
jne 0x472d8a
mov eax, dword [esp + 0x10]
lea edx, [eax + ebp + 8]
cmp edx, dword [esi + 0x14]
jg 0x472d8a
mov edi, dword [esp + 0x28]
inc edi
lea eax, [esp + 0x14d]
mov dword [esp + 0x14], 2
jmp 0x472856
mov ebp, dword [esp + 0x18]
movzx edx, byte [eax - 1]
lea ecx, [edi - 1]
imul ecx, dword [esi + 0x14]
add ecx, ebp
add ecx, dword [esp + 0x10]
movzx ebx, byte [eax]
imul ecx, dword [esi + 0xc0]
add ecx, dword [esi + 0xd90]
add ecx, dword [esp + 0x1c]
mov byte [ecx], dl
mov edx, dword [esi + 0xc0]
mov byte [ecx + edx], bl
mov edx, dword [esi + 0xc0]
movzx ebx, byte [eax + 1]
mov byte [ecx + edx*2], bl
mov ebp, dword [esi + 0xc0]
movzx ebx, byte [eax + 2]
lea edx, [ecx + ebp*2]
mov byte [edx + ebp], bl
mov edx, dword [esi + 0xc0]
movzx ebx, byte [eax + 3]
mov byte [ecx + edx*4], bl
mov ebp, dword [esi + 0xc0]
movzx ebx, byte [eax + 4]
lea edx, [ecx + ebp*4]
mov byte [edx + ebp], bl
mov edx, dword [esi + 0xc0]
movzx ebx, byte [eax + 5]
lea edx, [edx + edx*2]
mov byte [ecx + edx*2], bl
mov edx, dword [esi + 0xc0]
lea ebx, [edx*8]
sub ebx, edx
movzx edx, byte [eax + 6]
mov byte [ebx + ecx], dl
mov ecx, dword [esi + 0x14]
imul ecx, edi
add ecx, dword [esp + 0x18]
movzx edx, byte [eax + 7]
add ecx, dword [esp + 0x10]
movzx ebx, byte [eax + 8]
imul ecx, dword [esi + 0xc0]
add ecx, dword [esi + 0xd90]
add ecx, dword [esp + 0x1c]
mov byte [ecx], dl
mov edx, dword [esi + 0xc0]
mov byte [ecx + edx], bl
mov edx, dword [esi + 0xc0]
movzx ebx, byte [eax + 9]
mov byte [ecx + edx*2], bl
mov ebp, dword [esi + 0xc0]
movzx ebx, byte [eax + 0xa]
lea edx, [ecx + ebp*2]
mov byte [edx + ebp], bl
mov edx, dword [esi + 0xc0]
movzx ebx, byte [eax + 0xb]
mov byte [ecx + edx*4], bl
mov ebp, dword [esi + 0xc0]
movzx ebx, byte [eax + 0xc]
lea edx, [ecx + ebp*4]
mov byte [edx + ebp], bl
mov edx, dword [esi + 0xc0]
movzx ebx, byte [eax + 0xd]
lea edx, [edx + edx*2]
mov byte [ecx + edx*2], bl
mov edx, dword [esi + 0xc0]
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 + 0x14]
add ecx, dword [esp + 0x18]
movzx ebx, byte [eax + 0x10]
add ecx, dword [esp + 0x10]
imul ecx, dword [esi + 0xc0]
add ecx, dword [esi + 0xd90]
add ecx, dword [esp + 0x1c]
mov byte [ecx], dl
mov edx, dword [esi + 0xc0]
mov byte [ecx + edx], bl
mov edx, dword [esi + 0xc0]
movzx ebx, byte [eax + 0x11]
mov byte [ecx + edx*2], bl
mov ebp, dword [esi + 0xc0]
movzx ebx, byte [eax + 0x12]
lea edx, [ecx + ebp*2]
mov byte [edx + ebp], bl
mov edx, dword [esi + 0xc0]
movzx ebx, byte [eax + 0x13]
mov byte [ecx + edx*4], bl
mov ebp, dword [esi + 0xc0]
movzx ebx, byte [eax + 0x14]
lea edx, [ecx + ebp*4]
mov byte [edx + ebp], bl
mov edx, dword [esi + 0xc0]
movzx ebx, byte [eax + 0x15]
lea edx, [edx + edx*2]
mov byte [ecx + edx*2], bl
mov edx, dword [esi + 0xc0]
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 + 0x14]
add ecx, dword [esp + 0x18]
movzx ebx, byte [eax + 0x18]
add ecx, dword [esp + 0x10]
add edi, 4
imul ecx, dword [esi + 0xc0]
add ecx, dword [esi + 0xd90]
add eax, 0x20
add ecx, dword [esp + 0x1c]
mov byte [ecx], dl
mov edx, dword [esi + 0xc0]
mov byte [ecx + edx], bl
mov edx, dword [esi + 0xc0]
movzx ebx, byte [eax - 7]
mov byte [ecx + edx*2], bl
mov ebp, dword [esi + 0xc0]
movzx ebx, byte [eax - 6]
lea edx, [ecx + ebp*2]
mov byte [edx + ebp], bl
mov edx, dword [esi + 0xc0]
movzx ebx, byte [eax - 5]
mov byte [ecx + edx*4], bl
mov ebp, dword [esi + 0xc0]
movzx ebx, byte [eax - 4]
lea edx, [ecx + ebp*4]
mov byte [edx + ebp], bl
mov edx, dword [esi + 0xc0]
movzx ebx, byte [eax - 3]
lea edx, [edx + edx*2]
mov byte [ecx + edx*2], bl
mov edx, dword [esi + 0xc0]
lea ebx, [edx*8]
sub ebx, edx
dec dword [esp + 0x14]
movzx edx, byte [eax - 2]
mov byte [ebx + ecx], dl
jne 0x472852
mov ebx, dword [esp + 0x34]
jmp 0x472e52
cmp ebx, 2
jne 0x472d8a
cmp dword [esp + 0x24], ebx
jne 0x472d8a
mov eax, dword [esp + 0x10]
lea edx, [eax + ebp + 0x10]
cmp edx, dword [esi + 0x14]
jg 0x472d8a
xor eax, eax
mov dword [esp + 0x14], eax
lea edi, [esp + 0x14d]
jmp 0x472af0
mov edx, dword [esi + 0x14]
add eax, dword [esp + 0x28]
mov ebp, dword [esi + 0xc0]
imul eax, edx
add eax, dword [esp + 0x18]
mov ecx, ebp
add eax, dword [esp + 0x10]
imul ecx, edx
movzx edx, byte [edi - 1]
imul eax, ebp
add eax, dword [esi + 0xd90]
add eax, dword [esp + 0x1c]
add ecx, eax
mov byte [ecx + ebp], dl
mov edx, dword [esi + 0xc0]
mov dl, byte [ecx + edx]
mov byte [ecx], dl
mov ebx, dword [esi + 0xc0]
mov byte [eax + ebx], dl
mov edx, dword [esi + 0xc0]
movzx edx, byte [eax + edx]
mov byte [eax], dl
mov ebp, dword [esi + 0xc0]
movzx ebx, byte [edi]
lea edx, [ecx + ebp*2]
mov byte [edx + ebp], bl
mov ebp, dword [esi + 0xc0]
lea edx, [ecx + ebp*2]
movzx edx, byte [edx + ebp]
mov byte [ecx + ebp*2], dl
mov ebp, dword [esi + 0xc0]
movzx ebx, byte [ecx + ebp*2]
lea edx, [eax + ebp*2]
mov byte [edx + ebp], bl
mov ebp, dword [esi + 0xc0]
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 + 0xc0]
lea edx, [ecx + ebp*4]
mov byte [edx + ebp], bl
mov ebp, dword [esi + 0xc0]
lea edx, [ecx + ebp*4]
movzx edx, byte [edx + ebp]
mov byte [ecx + ebp*4], dl
mov ebp, dword [esi + 0xc0]
movzx ebx, byte [ecx + ebp*4]
lea edx, [eax + ebp*4]
mov byte [edx + ebp], bl
mov ebp, dword [esi + 0xc0]
lea edx, [eax + ebp*4]
movzx edx, byte [edx + ebp]
mov byte [eax + ebp*4], dl
mov edx, dword [esi + 0xc0]
lea ebx, [edx*8]
sub ebx, edx
movzx edx, byte [edi + 2]
mov byte [ebx + ecx], dl
mov edx, dword [esi + 0xc0]
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 + 0xc0]
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 + 0xc0]
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 + 0xc0]
movzx ebx, byte [edi + 3]
lea edx, [ecx + ebp*8]
mov byte [edx + ebp], bl
mov ebp, dword [esi + 0xc0]
lea edx, [ecx + ebp*8]
movzx edx, byte [edx + ebp]
mov byte [ecx + ebp*8], dl
mov ebp, dword [esi + 0xc0]
movzx ebx, byte [ecx + ebp*8]
lea edx, [eax + ebp*8]
mov byte [edx + ebp], bl
mov ebp, dword [esi + 0xc0]
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 + 0xc0]
imul edx, edx, 0xb
mov byte [edx + ecx], bl
mov edx, dword [esi + 0xc0]
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 + 0xc0]
lea edx, [ebp + ebp*4]
imul ebp, ebp, 0xb
movzx edx, byte [ecx + edx*2]
mov byte [eax + ebp], dl
mov edx, dword [esi + 0xc0]
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 + 0xc0]
movzx ebx, byte [edi + 5]
imul edx, edx, 0xd
mov byte [edx + ecx], bl
mov edx, dword [esi + 0xc0]
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 + 0xc0]
lea edx, [ebp + ebp*2]
imul ebp, ebp, 0xd
movzx edx, byte [ecx + edx*4]
mov byte [eax + ebp], dl
mov edx, dword [esi + 0xc0]
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 + 0xc0]
mov ebx, edx
shl ebx, 4
sub ebx, edx
movzx edx, byte [edi + 6]
mov byte [ebx + ecx], dl
mov edx, dword [esi + 0xc0]
mov ebx, edx
shl ebx, 4
sub ebx, edx
lea ebp, [edx*8]
sub ebp, edx
movzx edx, byte [ebx + ecx]
mov byte [ecx + ebp*2], dl
mov edx, dword [esi + 0xc0]
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 + 0xc0]
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
mov dword [esp + 0x14], eax
cmp eax, 0x10
jl 0x472af0
mov ebx, dword [esp + 0x34]
jmp 0x472e52
mov edi, dword [esi + 0x14]
imul edi, dword [esp + 0x28]
add edi, ebp
add edi, dword [esp + 0x10]
mov dword [esp + 0x3c], 8
imul edi, dword [esi + 0xc0]
add edi, dword [esi + 0xd90]
add edi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
jmp 0x472dc0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x40], 8
xor ebp, ebp
cmp dword [esp + 0x24], ebp
jle 0x472e32
xor eax, eax
test ebx, ebx
jle 0x472e25
mov ecx, dword [esp + 0x2c]
add ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x10]
lea ebx, [ebx]
mov edx, dword [esi + 0x14]
cmp ecx, edx
jge 0x472e25
mov ebx, dword [esp + 0x14]
add ebx, ebp
imul ebx, edx
mov edx, dword [esp + 0x20]
mov dl, byte [esp + edx + 0x14c]
add ebx, eax
add ebx, dword [esp + 0x2c]
inc eax
imul ebx, dword [esi + 0xc0]
mov byte [ebx + edi], dl
mov ebx, dword [esp + 0x34]
inc ecx
cmp eax, ebx
jl 0x472df0
mov ecx, 1
add ebp, ecx
cmp ebp, dword [esp + 0x24]
jl 0x472dd8
add dword [esp + 0x20], ecx
add dword [esp + 0x2c], ebx
sub dword [esp + 0x40], ecx
jne 0x472dd0
mov eax, dword [esp + 0x24]
add dword [esp + 0x14], eax
sub dword [esp + 0x3c], ecx
jne 0x472dc0
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x48]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x18], eax
cmp eax, dword [esi + 0x1c]
jl 0x4727b1
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x44]
mov dword [esp + 0x28], eax
cmp eax, dword [esi + 0x20]
jl 0x4727a0
mov eax, dword [esp + 0x1c]
add dword [esp + 0x38], 4
inc eax
add edi, 0x14
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], edi
cmp eax, dword [esi + 0xc0]
jl 0x472750
mov edi, dword [esp + 0x10]
add edi, dword [esi + 0x1c]
dec dword [esi + 0xdb8]
mov dword [esp + 0x10], edi
cmp edi, dword [esi + 0x14]
jl 0x4726e0
xor edx, edx
cmp dword [esi + 0xc4], edx
je 0x47308e
mov eax, dword [esi + 0xc0]
cmp eax, 3
jne 0x472fb5
mov eax, dword [esi + 0x20]
imul eax, dword [esi + 0x14]
mov ecx, dword [esi + 0xd90]
test eax, eax
jle 0x47308e
lea ecx, [ecx]
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 + 0x59da90]
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 + 0x59da90]
mov byte [ecx + 1], al
lea eax, [edi + ebp + 0x8000]
sar eax, 0x10
add eax, 0x180
and eax, 0x3ff
movzx eax, byte [eax + 0x59da90]
mov byte [ecx + 2], al
mov eax, dword [esi + 0x20]
imul eax, dword [esi + 0x14]
inc edx
add ecx, 3
cmp edx, eax
jl 0x472ef0
jmp 0x47308e
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
push str.Bad_DCT_data:_incorrect_restart_marker
mov ecx, esi
call eax
push edx
push eax
push 1
call fcn.00412330
add esp, 0x10
xor eax, eax
jmp 0x4730d2
cmp eax, 4
jne 0x47308e
mov ecx, dword [esi + 0xd90]
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0x20]
imul edx, dword [esi + 0x14]
test edx, edx
jle 0x47308e
jmp 0x472fe0
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 + 0x59da90]
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 + 0x59da90]
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 + 0x59da90]
mov eax, dword [esp + 0x20]
mov byte [ecx + 2], dl
mov edx, dword [esi + 0x20]
imul edx, dword [esi + 0x14]
inc eax
add ecx, 4
mov dword [esp + 0x20], eax
cmp eax, edx
jl 0x472fe0
mov edx, dword [esi + 0xdb4]
mov edi, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0xd90]
lea ebx, [edx + edi]
mov dword [esi + 0xd94], ecx
cmp ebx, eax
jg 0x4730b8
mov eax, dword [esi + 0xc0]
imul eax, edi
jmp 0x4730c1
sub eax, edx
imul eax, dword [esi + 0xc0]
imul eax, dword [esi + 0x14]
add eax, ecx
mov dword [esi + 0xd98], eax
mov eax, 1
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00511afd
add esp, 0x180
ret