Function at 0x1009ecd0
Capabilities:
Encrypt data using rc4 ksa
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x188
mov eax, dword [0x102832a0]
xor eax, esp
mov dword [esp + 0x184], eax
xor ecx, ecx
xor eax, eax
cmp dword [esi + 0x28], ecx
mov dword [esp + 0x14], eax
jle 0x1009f40b
push ebx
push ebp
push edi
jmp 0x1009ed00
cmp dword [esi + 0x24], ecx
mov dword [esp + 0x1c], ecx
jle 0x1009f3f8
lea ecx, [ecx]
cmp dword [esi + 0xc0], ecx
mov dword [esp + 0x38], ecx
jle 0x1009f19e
lea eax, [esi + 0xf90]
lea ebx, [esi + 0x30]
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ebx
mov ecx, dword [ebx + 8]
shl ecx, 7
lea edx, [ecx + esi + 0xd4]
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x44], edx
mov eax, ecx
cdq
idiv dword [ebx]
mov edi, dword [esi + 0x20]
mov ebp, eax
mov eax, edi
cdq
idiv dword [ebx + 4]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x34], eax
mov eax, ebp
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
cdq
and edx, 7
add eax, edx
mov ebp, eax
sar ebp, 3
xor eax, eax
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x18], eax
test edi, edi
jle 0x1009f17b
lea ecx, [ecx]
mov dword [esp + 0x14], 0
test ecx, ecx
jle 0x1009f16a
mov ecx, dword [esp + 0x20]
add eax, ecx
mov dword [esp + 0x40], eax
lea ebx, [ebx]
mov ecx, dword [esi + 0x24]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x10]
imul edx, ecx
imul ecx, ebp
add edx, dword [esp + 0x14]
mov eax, dword [eax]
add edx, dword [esp + 0x1c]
add ecx, ecx
add ecx, ecx
lea eax, [eax + edx*4]
mov edx, ecx
lea ecx, [esp + 0x54]
mov edi, 2
lea ecx, [ecx]
mov ebx, dword [eax]
mov dword [ecx - 4], ebx
mov ebx, dword [eax + 4]
mov dword [ecx], ebx
mov ebx, dword [eax + 8]
mov dword [ecx + 4], ebx
mov ebx, dword [eax + 0xc]
mov dword [ecx + 8], ebx
mov ebx, dword [eax + 0x10]
mov dword [ecx + 0xc], ebx
mov ebx, dword [eax + 0x14]
mov dword [ecx + 0x10], ebx
mov ebx, dword [eax + 0x18]
mov dword [ecx + 0x14], ebx
mov ebx, dword [eax + 0x1c]
mov dword [ecx + 0x18], ebx
mov ebx, dword [eax + edx]
mov dword [ecx + 0x1c], ebx
mov ebx, dword [eax + edx + 4]
mov dword [ecx + 0x20], ebx
mov ebx, dword [eax + edx + 8]
add eax, edx
mov dword [ecx + 0x24], ebx
mov ebx, dword [eax + 0xc]
mov dword [ecx + 0x28], ebx
mov ebx, dword [eax + 0x10]
mov dword [ecx + 0x2c], ebx
mov ebx, dword [eax + 0x14]
mov dword [ecx + 0x30], ebx
mov ebx, dword [eax + 0x18]
mov dword [ecx + 0x34], ebx
mov ebx, dword [eax + 0x1c]
mov dword [ecx + 0x38], ebx
mov ebx, dword [eax + edx]
mov dword [ecx + 0x3c], ebx
mov ebx, dword [eax + edx + 4]
add eax, edx
mov dword [ecx + 0x40], ebx
mov ebx, dword [eax + 8]
mov dword [ecx + 0x44], ebx
mov ebx, dword [eax + 0xc]
mov dword [ecx + 0x48], ebx
mov ebx, dword [eax + 0x10]
mov dword [ecx + 0x4c], ebx
mov ebx, dword [eax + 0x14]
mov dword [ecx + 0x50], ebx
mov ebx, dword [eax + 0x18]
mov dword [ecx + 0x54], ebx
mov ebx, dword [eax + 0x1c]
add eax, edx
mov dword [ecx + 0x58], ebx
mov ebx, dword [eax]
mov dword [ecx + 0x5c], ebx
mov ebx, dword [eax + 4]
mov dword [ecx + 0x60], ebx
mov ebx, dword [eax + 8]
mov dword [ecx + 0x64], ebx
mov ebx, dword [eax + 0xc]
mov dword [ecx + 0x68], ebx
mov ebx, dword [eax + 0x10]
mov dword [ecx + 0x6c], ebx
mov ebx, dword [eax + 0x14]
mov dword [ecx + 0x70], ebx
mov ebx, dword [eax + 0x18]
mov dword [ecx + 0x74], ebx
mov ebx, dword [eax + 0x1c]
mov dword [ecx + 0x78], ebx
add eax, edx
sub ecx, 0xffffff80
sub edi, 1
jne 0x1009ede0
lea ecx, [esp + 0x150]
push ecx
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x54]
push edx
call fcn.1009f420
mov eax, dword [esi + 0x24]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
imul ecx, eax
add ecx, dword [esp + 0x14]
mov edx, dword [edx]
add ecx, dword [esp + 0x1c]
lea edx, [edx + ecx*4]
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jne 0x1009f008
cmp ebp, ecx
jne 0x1009f0cb
lea eax, [esp + 0x151]
lea edi, [ecx + 1]
movzx ecx, byte [eax - 1]
mov dword [edx], ecx
movzx ecx, byte [eax]
mov dword [edx + 4], ecx
movzx ecx, byte [eax + 1]
mov dword [edx + 8], ecx
movzx ecx, byte [eax + 2]
mov dword [edx + 0xc], ecx
movzx ecx, byte [eax + 3]
mov dword [edx + 0x10], ecx
movzx ecx, byte [eax + 4]
mov dword [edx + 0x14], ecx
movzx ecx, byte [eax + 5]
mov dword [edx + 0x18], ecx
movzx ecx, byte [eax + 6]
mov dword [edx + 0x1c], ecx
mov ecx, dword [esi + 0x24]
lea ecx, [edx + ecx*4]
movzx edx, byte [eax + 7]
mov dword [ecx], edx
movzx edx, byte [eax + 8]
mov dword [ecx + 4], edx
movzx edx, byte [eax + 9]
mov dword [ecx + 8], edx
movzx edx, byte [eax + 0xa]
mov dword [ecx + 0xc], edx
movzx edx, byte [eax + 0xb]
mov dword [ecx + 0x10], edx
movzx edx, byte [eax + 0xc]
mov dword [ecx + 0x14], edx
movzx edx, byte [eax + 0xd]
mov dword [ecx + 0x18], edx
movzx edx, byte [eax + 0xe]
mov dword [ecx + 0x1c], edx
mov edx, dword [esi + 0x24]
lea ecx, [ecx + edx*4]
movzx edx, byte [eax + 0xf]
mov dword [ecx], edx
movzx edx, byte [eax + 0x10]
mov dword [ecx + 4], edx
movzx edx, byte [eax + 0x11]
mov dword [ecx + 8], edx
movzx edx, byte [eax + 0x12]
mov dword [ecx + 0xc], edx
movzx edx, byte [eax + 0x13]
mov dword [ecx + 0x10], edx
movzx edx, byte [eax + 0x14]
mov dword [ecx + 0x14], edx
movzx edx, byte [eax + 0x15]
mov dword [ecx + 0x18], edx
movzx edx, byte [eax + 0x16]
mov dword [ecx + 0x1c], edx
mov edx, dword [esi + 0x24]
lea ecx, [ecx + edx*4]
movzx edx, byte [eax + 0x17]
mov dword [ecx], edx
movzx edx, byte [eax + 0x18]
mov dword [ecx + 4], edx
movzx edx, byte [eax + 0x19]
mov dword [ecx + 8], edx
movzx edx, byte [eax + 0x1a]
mov dword [ecx + 0xc], edx
movzx edx, byte [eax + 0x1b]
mov dword [ecx + 0x10], edx
movzx edx, byte [eax + 0x1c]
mov dword [ecx + 0x14], edx
movzx edx, byte [eax + 0x1d]
mov dword [ecx + 0x18], edx
movzx edx, byte [eax + 0x1e]
mov dword [ecx + 0x1c], edx
mov edx, dword [esi + 0x24]
add eax, 0x20
sub edi, 1
lea edx, [ecx + edx*4]
jne 0x1009ef04
jmp 0x1009f14b
cmp ecx, 2
jne 0x1009f0cb
cmp ebp, ecx
jne 0x1009f0cb
lea eax, [edx + eax*4]
lea ecx, [esp + 0x151]
mov ebx, 8
jmp 0x1009f030
movzx edi, byte [ecx - 1]
mov dword [eax + 4], edi
mov dword [eax], edi
mov dword [edx + 4], edi
mov dword [edx], edi
movzx edi, byte [ecx]
mov dword [eax + 0xc], edi
mov dword [eax + 8], edi
mov dword [edx + 0xc], edi
mov dword [edx + 8], edi
movzx edi, byte [ecx + 1]
mov dword [eax + 0x14], edi
mov dword [eax + 0x10], edi
mov dword [edx + 0x14], edi
mov dword [edx + 0x10], edi
movzx edi, byte [ecx + 2]
mov dword [eax + 0x1c], edi
mov dword [eax + 0x18], edi
mov dword [edx + 0x1c], edi
mov dword [edx + 0x18], edi
movzx edi, byte [ecx + 3]
mov dword [eax + 0x24], edi
mov dword [eax + 0x20], edi
mov dword [edx + 0x24], edi
mov dword [edx + 0x20], edi
movzx edi, byte [ecx + 4]
mov dword [eax + 0x2c], edi
mov dword [eax + 0x28], edi
mov dword [edx + 0x2c], edi
mov dword [edx + 0x28], edi
movzx edi, byte [ecx + 5]
mov dword [eax + 0x34], edi
mov dword [eax + 0x30], edi
mov dword [edx + 0x34], edi
mov dword [edx + 0x30], edi
movzx edi, byte [ecx + 6]
mov dword [eax + 0x3c], edi
mov dword [eax + 0x38], edi
mov dword [edx + 0x3c], edi
mov dword [edx + 0x38], edi
mov edi, dword [esi + 0x24]
add edi, edi
add edi, edi
add edi, edi
add edx, edi
add eax, edi
add ecx, 8
sub ebx, 1
jne 0x1009f030
jmp 0x1009f14b
mov dword [esp + 0x28], 0
mov dword [esp + 0x3c], 8
jmp 0x1009f0e0
mov ebx, edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], 8
mov edi, edi
test ebp, ebp
jle 0x1009f11b
mov ecx, dword [esp + 0xc]
test ecx, ecx
jle 0x1009f10c
mov eax, dword [esp + 0x28]
movzx eax, byte [esp + eax + 0x150]
mov edi, ebx
rep stosd dword es:[edi], eax
sub ebp, 1
mov ecx, dword [esi + 0x24]
lea ebx, [ebx + ecx*4]
jne 0x1009f0f4
mov ebp, dword [esp + 0x4c]
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x30]
add eax, eax
mov ecx, 1
add dword [esp + 0x28], ecx
add eax, eax
add ebx, eax
sub dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ebx
jne 0x1009f0f0
mov eax, dword [esi + 0x24]
imul eax, ebp
sub dword [esp + 0x3c], ecx
lea edx, [edx + eax*4]
jne 0x1009f0e0
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x48]
mov ecx, dword [esi + 0x1c]
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x1009edb0
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
add eax, dword [esp + 0x34]
cmp eax, dword [esi + 0x20]
mov dword [esp + 0x18], eax
jl 0x1009ed90
mov eax, dword [esp + 0x38]
add dword [esp + 0x10], 4
inc eax
add ebx, 0x14
cmp eax, dword [esi + 0xc0]
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], ebx
jl 0x1009ed31
xor ecx, ecx
cmp dword [esi + 0xc4], ecx
je 0x1009f3e0
mov eax, dword [esi + 0xc0]
cmp eax, 3
jne 0x1009f2b6
cmp dword [esi + 0x20], ecx
mov dword [esp + 0x18], ecx
jle 0x1009f3e0
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x1c]
mov dword [esp + 0xc], ecx
mov ecx, dword [esi + 0x24]
imul ecx, dword [esp + 0xc]
add ecx, dword [esp + 0x1c]
mov edi, dword [esi + 0xf90]
mov ebx, dword [esi + 0xf94]
mov eax, dword [esi + 0xf98]
add ecx, ecx
add ecx, ecx
add eax, ecx
add edi, ecx
add ebx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
test edx, edx
jle 0x1009f29b
lea ecx, [ecx]
mov eax, dword [eax]
mov edx, dword [edi]
mov ecx, dword [ebx]
add eax, 0xffffff80
mov ebp, eax
imul eax, eax, 0xffff492e
imul ebp, ebp, 0x166e9
shl edx, 0x10
lea ebp, [edx + ebp + 0x8000]
sar ebp, 0x10
movzx ebp, byte [ebp + 0x102afda0]
add ecx, 0xffffff80
mov dword [edi], ebp
mov ebp, ecx
imul ecx, ecx, 0x1c5a2
imul ebp, ebp, 0x5819
sub eax, ebp
lea eax, [eax + edx + 0x8000]
sar eax, 0x10
movzx eax, byte [eax + 0x102afda0]
lea ecx, [ecx + edx + 0x8000]
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
sar ecx, 0x10
movzx edx, byte [ecx + 0x102afda0]
mov ecx, dword [esp + 0x14]
mov dword [eax], edx
mov edx, dword [esi + 0x1c]
inc ecx
add eax, 4
add edi, 4
add ebx, 4
cmp ecx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
jl 0x1009f210
mov eax, dword [esp + 0x18]
inc dword [esp + 0xc]
inc eax
cmp eax, dword [esi + 0x20]
mov dword [esp + 0x18], eax
jl 0x1009f1d1
jmp 0x1009f3de
cmp eax, 4
jne 0x1009f3e0
cmp dword [esi + 0x20], ecx
mov dword [esp + 0x18], ecx
jle 0x1009f3e0
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x1c]
mov dword [esp + 0xc], eax
jmp 0x1009f2e0
mov ecx, dword [esi + 0x24]
imul ecx, dword [esp + 0xc]
add ecx, dword [esp + 0x1c]
mov edi, dword [esi + 0xf90]
mov eax, dword [esi + 0xf94]
mov ebx, dword [esi + 0xf98]
add ecx, ecx
add ecx, ecx
add eax, ecx
add ebx, ecx
add edi, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0
test edx, edx
jle 0x1009f3c8
mov ecx, dword [eax]
mov eax, dword [ebx]
mov edx, dword [edi]
add eax, 0xffffff80
mov ebx, eax
imul eax, eax, 0xffff492e
imul ebx, ebx, 0x166e9
shl edx, 0x10
lea ebx, [ebx + edx + 0x8000]
sar ebx, 0x10
movzx ebx, byte [ebx + 0x102afda0]
add ecx, 0xffffff80
mov ebp, 0xff
sub ebp, ebx
mov ebx, ecx
imul ecx, ecx, 0x1c5a2
imul ebx, ebx, 0x5819
sub eax, ebx
lea eax, [eax + edx + 0x8000]
mov dword [edi], ebp
sar eax, 0x10
movzx eax, byte [eax + 0x102afda0]
lea ecx, [ecx + edx + 0x8000]
sar ecx, 0x10
mov ebx, 0xff
sub ebx, eax
mov eax, dword [esp + 0x24]
mov dword [eax], ebx
movzx edx, byte [ecx + 0x102afda0]
mov ebx, dword [esp + 0x10]
mov ecx, 0xff
sub ecx, edx
mov dword [ebx], ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x1c]
inc ecx
add eax, 4
add ebx, 4
add edi, 4
cmp ecx, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ecx
jl 0x1009f320
mov eax, dword [esp + 0x18]
inc dword [esp + 0xc]
inc eax
cmp eax, dword [esi + 0x20]
mov dword [esp + 0x18], eax
jl 0x1009f2e0
xor ecx, ecx
mov eax, dword [esp + 0x1c]
add eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x24]
mov dword [esp + 0x1c], eax
jl 0x1009ed10
mov eax, dword [esp + 0x20]
add eax, dword [esi + 0x20]
cmp eax, dword [esi + 0x28]
mov dword [esp + 0x20], eax
jl 0x1009ed00
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.1010583a
add esp, 0x188
ret