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

Disassembly:
sub esp, 0x184
mov eax, dword [0x102832a0]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push ebp
push esi
push edi
mov ebx, ecx
xor edi, edi
xor ebp, ebp
cmp dword [ebx + 0x14], edi
mov dword [esp + 0x28], ebx
jg 0x1009dda7
mov eax, 1
mov ecx, dword [esp + 0x190]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1010583a
add esp, 0x184
ret
xor edi, edi
cmp dword [ebx + 0xd0], edi
jle 0x1009dded
cmp dword [ebx + 0xfb0], edi
jne 0x1009dded
mov esi, ebx
call fcn.100a06d0
mov ecx, dword [ebx + 0xfb4]
cmp eax, ecx
jne 0x1009e423
lea eax, [ecx + 1]
mov dword [ebx + 0xfb4], eax
cmp eax, 0xd8
jne 0x1009dde6
mov dword [ebx + 0xfb4], 0xd0
mov eax, ebx
call fcn.1009dd10
cmp dword [ebx + 0xc0], edi
mov dword [esp + 0x18], edi
jle 0x1009e1f2
mov dword [esp + 0x10], edi
lea ecx, [ebx + 0x90]
lea edi, [ebx + 0x34]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edi
jmp 0x1009de18
mov edi, dword [esp + 0x24]
mov eax, dword [ebx + 0x1c]
cdq
idiv dword [edi - 4]
mov esi, dword [ebx + 0x20]
mov dword [esp + 0x14], 0
mov dword [esp + 0x48], eax
mov eax, esi
cdq
idiv dword [edi]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x48]
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, dword [esp + 0x30]
cdq
and edx, 7
add eax, edx
sar edi, 3
sar eax, 3
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], eax
test esi, esi
jle 0x1009e1cc
xor esi, esi
cmp dword [ebx + 0x1c], esi
jle 0x1009e1b7
mov edi, edi
mov edx, dword [ecx + 0x10]
mov ecx, dword [ecx]
imul edx, edx, 0x156
imul ecx, ecx, 0x156
lea eax, [esp + 0x50]
push eax
lea eax, [edx + ebx + 0x830]
push eax
lea eax, [ecx + ebx + 0x2d8]
mov ecx, dword [esp + 0x2c]
add ecx, 8
call fcn.1009e940
test eax, eax
je 0x1009e43b
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x150]
push edx
mov edx, dword [ecx + 4]
lea eax, [esp + 0x54]
shl edx, 7
push eax
lea ecx, [edx + ebx + 0xd4]
call fcn.1009f420
cmp edi, 1
jne 0x1009e01f
mov ecx, dword [esp + 0x34]
cmp ecx, edi
jne 0x1009e0fe
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add ecx, edx
lea eax, [esp + 0x151]
lea edi, [ebx + ecx*4 + 0xd94]
mov edx, 2
mov edi, edi
mov ecx, dword [edi - 4]
movzx ebx, byte [eax - 1]
add ecx, esi
mov byte [ecx + ebp], bl
movzx ebx, byte [eax]
mov byte [ecx + ebp + 1], bl
movzx ebx, byte [eax + 1]
mov byte [ecx + ebp + 2], bl
movzx ebx, byte [eax + 2]
mov byte [ecx + ebp + 3], bl
add ecx, ebp
movzx ebx, byte [eax + 3]
mov byte [ecx + 4], bl
movzx ebx, byte [eax + 4]
mov byte [ecx + 5], bl
movzx ebx, byte [eax + 5]
mov byte [ecx + 6], bl
movzx ebx, byte [eax + 6]
mov byte [ecx + 7], bl
mov ecx, dword [edi]
movzx ebx, byte [eax + 7]
add ecx, esi
mov byte [ecx + ebp], bl
movzx ebx, byte [eax + 8]
mov byte [ecx + ebp + 1], bl
movzx ebx, byte [eax + 9]
mov byte [ecx + ebp + 2], bl
movzx ebx, byte [eax + 0xa]
mov byte [ecx + ebp + 3], bl
movzx ebx, byte [eax + 0xb]
mov byte [ecx + ebp + 4], bl
add ecx, ebp
movzx ebx, byte [eax + 0xc]
mov byte [ecx + 5], bl
movzx ebx, byte [eax + 0xd]
mov byte [ecx + 6], bl
movzx ebx, byte [eax + 0xe]
mov byte [ecx + 7], bl
mov ecx, dword [edi + 4]
movzx ebx, byte [eax + 0xf]
add ecx, esi
mov byte [ecx + ebp], bl
movzx ebx, byte [eax + 0x10]
mov byte [ecx + ebp + 1], bl
movzx ebx, byte [eax + 0x11]
mov byte [ecx + ebp + 2], bl
movzx ebx, byte [eax + 0x12]
add ecx, ebp
mov byte [ecx + 3], bl
movzx ebx, byte [eax + 0x13]
mov byte [ecx + 4], bl
movzx ebx, byte [eax + 0x14]
mov byte [ecx + 5], bl
movzx ebx, byte [eax + 0x15]
mov byte [ecx + 6], bl
movzx ebx, byte [eax + 0x16]
mov byte [ecx + 7], bl
mov ecx, dword [edi + 8]
movzx ebx, byte [eax + 0x17]
add ecx, esi
mov byte [ecx + ebp], bl
movzx ebx, byte [eax + 0x18]
add ecx, ebp
mov byte [ecx + 1], bl
movzx ebx, byte [eax + 0x19]
mov byte [ecx + 2], bl
movzx ebx, byte [eax + 0x1a]
mov byte [ecx + 3], bl
movzx ebx, byte [eax + 0x1b]
mov byte [ecx + 4], bl
movzx ebx, byte [eax + 0x1c]
mov byte [ecx + 5], bl
movzx ebx, byte [eax + 0x1d]
mov byte [ecx + 6], bl
movzx ebx, byte [eax + 0x1e]
add edi, 0x10
add eax, 0x20
sub edx, 1
mov byte [ecx + 7], bl
jne 0x1009df00
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
jmp 0x1009e1a6
cmp edi, 2
jne 0x1009e0fa
cmp dword [esp + 0x34], edi
jne 0x1009e0fa
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
add eax, ecx
lea edi, [esp + 0x151]
lea ebx, [edx + eax*4 + 0xd94]
mov dword [esp + 0x20], 8
mov ecx, dword [ebx]
mov eax, dword [ebx - 4]
mov dl, byte [edi - 1]
add ecx, esi
mov byte [ecx + ebp + 1], dl
mov byte [ecx + ebp], dl
add ecx, ebp
add eax, esi
mov byte [eax + ebp + 1], dl
mov byte [eax + ebp], dl
mov dl, byte [edi]
add eax, ebp
mov byte [ecx + 3], dl
mov byte [ecx + 2], dl
mov byte [eax + 3], dl
mov byte [eax + 2], dl
mov dl, byte [edi + 1]
mov byte [ecx + 5], dl
mov byte [ecx + 4], dl
mov byte [eax + 5], dl
mov byte [eax + 4], dl
mov dl, byte [edi + 2]
mov byte [ecx + 7], dl
mov byte [ecx + 6], dl
mov byte [eax + 7], dl
mov byte [eax + 6], dl
mov dl, byte [edi + 3]
mov byte [ecx + 9], dl
mov byte [ecx + 8], dl
mov byte [eax + 9], dl
mov byte [eax + 8], dl
mov dl, byte [edi + 4]
mov byte [ecx + 0xb], dl
mov byte [ecx + 0xa], dl
mov byte [eax + 0xb], dl
mov byte [eax + 0xa], dl
mov dl, byte [edi + 5]
mov byte [ecx + 0xd], dl
mov byte [ecx + 0xc], dl
mov byte [eax + 0xd], dl
mov byte [eax + 0xc], dl
mov dl, byte [edi + 6]
mov byte [ecx + 0xf], dl
mov byte [ecx + 0xe], dl
add ebx, 8
add edi, 8
sub dword [esp + 0x20], 1
mov byte [eax + 0xf], dl
mov byte [eax + 0xe], dl
jne 0x1009e056
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
jmp 0x1009e1a6
mov ecx, dword [esp + 0x34]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x44], 8
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], 8
xor edx, edx
mov dword [esp + 0x4c], edx
test ecx, ecx
jle 0x1009e185
lea ebx, [ebx]
xor eax, eax
test edi, edi
jle 0x1009e17c
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
mov cl, byte [esp + ecx + 0x150]
add edi, edx
add edi, dword [esp + 0x20]
add edi, dword [esp + 0x14]
lea edx, [ebx + edi*4 + 0xd90]
mov edi, dword [esp + 0x38]
mov ebx, dword [edx]
add edi, eax
add edi, esi
add edi, ebp
inc eax
cmp eax, dword [esp + 0x2c]
mov byte [edi + ebx], cl
jl 0x1009e156
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
inc edx
cmp edx, ecx
mov dword [esp + 0x4c], edx
jl 0x1009e130
add dword [esp + 0x38], edi
mov eax, 1
add dword [esp + 0x3c], eax
sub dword [esp + 0x40], eax
jne 0x1009e120
add dword [esp + 0x20], ecx
sub dword [esp + 0x44], eax
jne 0x1009e110
add esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x1c]
cmp esi, dword [ebx + 0x1c]
jl 0x1009de70
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x30]
cmp eax, dword [ebx + 0x20]
mov dword [esp + 0x14], eax
jl 0x1009de63
mov eax, dword [esp + 0x18]
add dword [esp + 0x24], 0x14
add dword [esp + 0x10], 0x20
inc eax
add ecx, 4
cmp eax, dword [ebx + 0xc0]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jl 0x1009de14
dec dword [ebx + 0xfb0]
xor ecx, ecx
cmp dword [ebx + 0xc4], ecx
je 0x1009e412
mov eax, dword [ebx + 0xc0]
cmp eax, 3
jne 0x1009e30d
cmp dword [ebx + 0x20], ecx
mov dword [esp + 0x14], ecx
jle 0x1009e412
lea eax, [ebx + 0xe10]
mov dword [esp + 0x18], eax
lea esp, [esp]
xor esi, esi
cmp dword [ebx + 0x1c], esi
jle 0x1009e2ef
jmp 0x1009e240
mov edx, dword [eax - 0x80]
add edx, esi
lea ecx, [edx + ebp]
mov edx, dword [eax]
mov eax, dword [eax + 0x80]
add edx, esi
movzx edi, byte [edx + ebp]
add eax, esi
movzx eax, byte [eax + ebp]
add eax, 0xffffff80
mov dword [esp + 0x30], ecx
movzx ecx, byte [ecx]
mov edx, eax
imul eax, eax, 0xffff492e
imul edx, edx, 0x166e9
shl ecx, 0x10
mov dword [esp + 0x10], ecx
lea ecx, [edx + ecx + 0x8000]
sar ecx, 0x10
movzx edx, byte [ecx + 0x102afda0]
mov ecx, dword [esp + 0x30]
mov byte [ecx], dl
mov ecx, dword [esp + 0x10]
add edi, 0xffffff80
mov edx, edi
imul edi, edi, 0x1c5a2
imul edx, edx, 0x5819
sub eax, edx
lea edx, [eax + ecx + 0x8000]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
sar edx, 0x10
movzx edx, byte [edx + 0x102afda0]
add ecx, esi
mov byte [ecx + ebp], dl
mov ecx, dword [esp + 0x10]
lea edx, [edi + ecx + 0x8000]
mov ecx, dword [eax + 0x80]
sar edx, 0x10
movzx edx, byte [edx + 0x102afda0]
add ecx, esi
inc esi
mov byte [ecx + ebp], dl
cmp esi, dword [ebx + 0x1c]
jl 0x1009e240
mov ecx, dword [esp + 0x14]
inc ecx
add eax, 4
cmp ecx, dword [ebx + 0x20]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jl 0x1009e230
jmp 0x1009e412
cmp eax, 4
jne 0x1009e412
cmp dword [ebx + 0x20], ecx
mov dword [esp + 0x14], ecx
jle 0x1009e412
lea eax, [ebx + 0xe10]
mov dword [esp + 0x1c], eax
lea ecx, [ecx]
xor esi, esi
cmp dword [ebx + 0x1c], esi
jle 0x1009e3f9
jmp 0x1009e340
mov ecx, dword [eax - 0x80]
mov edi, dword [eax]
mov eax, dword [eax + 0x80]
add eax, esi
movzx eax, byte [eax + ebp]
add ecx, esi
add ecx, ebp
add eax, 0xffffff80
mov dword [esp + 0x18], ecx
movzx ecx, byte [ecx]
lea edx, [esi + ebp]
movzx edi, byte [edx + edi]
mov edx, eax
imul eax, eax, 0xffff492e
imul edx, edx, 0x166e9
shl ecx, 0x10
mov dword [esp + 0x10], ecx
lea ecx, [edx + ecx + 0x8000]
or dl, 0xff
sar ecx, 0x10
sub dl, byte [ecx + 0x102afda0]
mov ecx, dword [esp + 0x18]
mov byte [ecx], dl
mov ecx, dword [esp + 0x10]
add edi, 0xffffff80
mov edx, edi
imul edi, edi, 0x1c5a2
imul edx, edx, 0x5819
sub eax, edx
lea edx, [eax + ecx + 0x8000]
sar edx, 0x10
or al, 0xff
sub al, byte [edx + 0x102afda0]
mov edx, dword [esp + 0x1c]
mov edx, dword [edx]
lea ecx, [esi + ebp]
mov byte [ecx + edx], al
mov eax, dword [esp + 0x10]
lea ecx, [edi + eax + 0x8000]
mov eax, dword [esp + 0x1c]
sar ecx, 0x10
or dl, 0xff
sub dl, byte [ecx + 0x102afda0]
mov ecx, dword [eax + 0x80]
add ecx, esi
inc esi
mov byte [ecx + ebp], dl
cmp esi, dword [ebx + 0x1c]
jl 0x1009e340
mov ecx, dword [esp + 0x14]
inc ecx
add eax, 4
cmp ecx, dword [ebx + 0x20]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
jl 0x1009e330
add ebp, dword [ebx + 0x1c]
cmp ebp, dword [ebx + 0x14]
jl 0x1009dda5
jmp 0x1009dd87
mov edx, dword [ebx]
mov eax, dword [edx + 0x28]
push str.Bad_DCT_data:_incorrect_restart_marker
mov ecx, ebx
call eax
mov edx, eax
call fcn.1001d950
add esp, 4
xor eax, eax
jmp 0x1009dd8c