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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
push esi
mov esi, ecx
xor ecx, ecx
xor edx, edx
cmp dword [esi + 0x28], ecx
mov dword [ebp - 0x24], edx
jle 0x10041416
push ebx
push edi
mov edi, dword [esi + 0x24]
mov dword [ebp - 0x1c], ecx
cmp edi, ecx
jle 0x10041405
cmp dword [esi + 0xc0], ecx
mov dword [ebp - 0xc], ecx
jle 0x100411ca
lea eax, [esi + 0xf90]
lea ebx, [esi + 0x30]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], ebx
mov eax, dword [ebx + 8]
mov ecx, dword [esi + 0x1c]
shl eax, 7
push 8
lea eax, [eax + esi + 0xd4]
mov dword [ebp - 0x48], eax
mov eax, ecx
cdq
idiv dword [ebx]
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x20]
cdq
idiv dword [ebx + 4]
pop ebx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x44]
cdq
idiv ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x38]
cdq
idiv ebx
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [esi + 0x20], eax
mov dword [ebp - 0x14], eax
jle 0x100411a6
and dword [ebp - 4], 0
test ecx, ecx
jle 0x10041197
mov ecx, dword [ebp - 0x24]
add eax, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
imul eax, edi
imul edi, dword [ebp - 8]
add eax, dword [ebp - 4]
mov ecx, dword [ecx]
push 8
add eax, dword [ebp - 0x1c]
pop edx
shl edi, 2
lea eax, [ecx + eax*4]
lea ecx, [ebp - 0x184]
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
add eax, edi
add ecx, 0x20
dec edx
jne 0x10040f9a
lea eax, [ebp - 0x88]
mov ecx, esi
push eax
lea eax, [ebp - 0x188]
push eax
push dword [ebp - 0x48]
call fcn.10041419
mov ecx, dword [esi + 0x24]
mov eax, dword [ebp - 0x2c]
imul eax, ecx
add eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x20]
add eax, dword [ebp - 0x1c]
mov edx, dword [edx]
cmp ebx, 1
lea eax, [edx + eax*4]
jne 0x10041060
cmp dword [ebp - 8], ebx
jne 0x10041119
push 8
lea ecx, [ebp - 0x87]
pop edx
movzx edi, byte [ecx - 1]
mov dword [eax], edi
movzx edi, byte [ecx]
mov dword [eax + 4], edi
movzx edi, byte [ecx + 1]
mov dword [eax + 8], edi
movzx edi, byte [ecx + 2]
mov dword [eax + 0xc], edi
movzx edi, byte [ecx + 3]
mov dword [eax + 0x10], edi
movzx edi, byte [ecx + 4]
mov dword [eax + 0x14], edi
movzx edi, byte [ecx + 5]
mov dword [eax + 0x18], edi
movzx edi, byte [ecx + 6]
mov dword [eax + 0x1c], edi
mov edi, dword [esi + 0x24]
add ecx, 8
dec edx
lea eax, [eax + edi*4]
jne 0x10041019
jmp 0x10041180
cmp ebx, 2
jne 0x10041119
cmp dword [ebp - 8], ebx
jne 0x10041119
lea ecx, [eax + ecx*4]
lea edx, [ebp - 0x87]
mov dword [ebp - 0x18], 8
movzx edi, byte [edx - 1]
mov dword [ecx + 4], edi
mov dword [ecx], edi
mov dword [eax + 4], edi
mov dword [eax], edi
movzx edi, byte [edx]
mov dword [ecx + 0xc], edi
mov dword [ecx + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 8], edi
movzx edi, byte [edx + 1]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], edi
mov dword [eax + 0x14], edi
mov dword [eax + 0x10], edi
movzx edi, byte [edx + 2]
mov dword [ecx + 0x1c], edi
mov dword [ecx + 0x18], edi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x18], edi
movzx edi, byte [edx + 3]
mov dword [ecx + 0x24], edi
mov dword [ecx + 0x20], edi
mov dword [eax + 0x24], edi
mov dword [eax + 0x20], edi
movzx edi, byte [edx + 4]
mov dword [ecx + 0x2c], edi
mov dword [ecx + 0x28], edi
mov dword [eax + 0x2c], edi
mov dword [eax + 0x28], edi
movzx edi, byte [edx + 5]
mov dword [ecx + 0x34], edi
mov dword [ecx + 0x30], edi
mov dword [eax + 0x34], edi
mov dword [eax + 0x30], edi
movzx edi, byte [edx + 6]
mov dword [ecx + 0x3c], edi
mov dword [ecx + 0x38], edi
mov dword [eax + 0x3c], edi
mov dword [eax + 0x38], edi
mov edi, dword [esi + 0x24]
add edx, 8
mov ebx, edi
shl ebx, 3
add eax, ebx
add ecx, ebx
dec dword [ebp - 0x18]
jne 0x10041082
jmp 0x10041180
and dword [ebp - 0x28], 0
mov dword [ebp - 0x3c], 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x34], 8
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
test edx, edx
jle 0x1004115f
mov dword [ebp - 0x40], edx
xor edx, edx
test ebx, ebx
jle 0x10041154
mov edi, dword [ebp - 0x28]
movzx edi, byte [ebp + edi - 0x88]
mov dword [ecx + edx*4], edi
inc edx
cmp edx, ebx
jl 0x10041141
mov edx, dword [esi + 0x24]
dec dword [ebp - 0x40]
lea ecx, [ecx + edx*4]
jne 0x1004113b
inc dword [ebp - 0x28]
mov ecx, ebx
shl ecx, 2
add dword [ebp - 0x18], ecx
dec dword [ebp - 0x34]
jne 0x1004112e
mov edi, dword [esi + 0x24]
mov ecx, edi
imul ecx, dword [ebp - 8]
dec dword [ebp - 0x3c]
lea eax, [eax + ecx*4]
jne 0x10041124
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x1c]
add eax, dword [ebp - 0x44]
cmp eax, ecx
mov dword [ebp - 4], eax
jl 0x10040f76
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x38]
cmp eax, dword [esi + 0x20]
mov dword [ebp - 0x14], eax
jl 0x10040f62
inc dword [ebp - 0xc]
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x10], 4
add ebx, 0x14
cmp eax, dword [esi + 0xc0]
mov dword [ebp - 0x30], ebx
jl 0x10040f1a
mov edx, dword [ebp - 0x24]
xor ecx, ecx
cmp dword [esi + 0xc4], ecx
je 0x100413ee
mov eax, dword [esi + 0xc0]
cmp eax, 3
jne 0x100412d8
cmp dword [esi + 0x20], ecx
mov dword [ebp - 0x14], ecx
jle 0x100413ee
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0xc], edx
mov eax, dword [esi + 0x24]
mov edx, dword [esi + 0xf90]
imul eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x1c]
mov edi, dword [esi + 0xf94]
mov ebx, dword [esi + 0xf98]
and dword [ebp - 4], 0
shl eax, 2
add edx, eax
add edi, eax
add ebx, eax
mov dword [ebp - 8], edi
test ecx, ecx
mov dword [ebp - 0x10], ebx
jle 0x100412c1
mov eax, dword [edx]
mov ecx, dword [edi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
mov edi, 0x80
mov ebx, dword [ebp - 0x18]
sub eax, edi
sub ecx, edi
mov edi, eax
imul eax, eax, 0xffff492e
imul edi, edi, 0x166e9
shl ebx, 0x10
lea edi, [edi + ebx + 0x8000]
sar edi, 0x10
movzx edi, byte [edi + 0x101d1428]
mov dword [edx], edi
mov edi, ecx
imul edi, edi, 0x5819
imul ecx, ecx, 0x1c5a2
sub eax, edi
mov edi, dword [ebp - 8]
add edx, 4
lea eax, [eax + ebx + 0x8000]
sar eax, 0x10
movzx eax, byte [eax + 0x101d1428]
mov dword [edi], eax
lea eax, [ecx + ebx + 0x8000]
mov ebx, dword [ebp - 0x10]
add edi, 4
sar eax, 0x10
mov dword [ebp - 8], edi
movzx eax, byte [eax + 0x101d1428]
mov dword [ebx], eax
mov ecx, dword [esi + 0x1c]
add ebx, 4
inc dword [ebp - 4]
cmp dword [ebp - 4], ecx
mov dword [ebp - 0x10], ebx
jl 0x1004122e
inc dword [ebp - 0x14]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x20]
jl 0x100411f7
jmp 0x100413ec
cmp eax, 4
jne 0x100413ee
cmp dword [esi + 0x20], ecx
mov dword [ebp - 0x14], ecx
jle 0x100413ee
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0xc], edx
mov eax, dword [esi + 0x24]
mov edx, dword [esi + 0xf90]
imul eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x1c]
mov edi, dword [esi + 0xf94]
mov ebx, dword [esi + 0xf98]
and dword [ebp - 4], 0
shl eax, 2
add edx, eax
add edi, eax
add ebx, eax
mov dword [ebp - 8], edi
test ecx, ecx
mov dword [ebp - 0x10], ebx
jle 0x100413da
mov eax, dword [edx]
mov ecx, dword [edi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
mov edi, 0x80
sub eax, edi
sub ecx, edi
mov ebx, eax
mov edi, dword [ebp - 0x18]
imul ebx, ebx, 0x166e9
imul eax, eax, 0xffff492e
shl edi, 0x10
mov dword [ebp - 0x20], edi
lea edi, [ebx + edi + 0x8000]
mov ebx, 0xff
sar edi, 0x10
movzx edi, byte [edi + 0x101d1428]
sub ebx, edi
mov edi, ecx
imul edi, edi, 0x5819
imul ecx, ecx, 0x1c5a2
mov dword [edx], ebx
mov ebx, dword [ebp - 0x20]
sub eax, edi
mov edi, 0xff
add edx, 4
lea eax, [eax + ebx + 0x8000]
sar eax, 0x10
movzx eax, byte [eax + 0x101d1428]
sub edi, eax
mov eax, edi
mov edi, dword [ebp - 8]
mov dword [edi], eax
lea eax, [ecx + ebx + 0x8000]
mov ebx, dword [ebp - 0x10]
mov ecx, 0xff
sar eax, 0x10
add edi, 4
movzx eax, byte [eax + 0x101d1428]
sub ecx, eax
mov dword [ebp - 8], edi
mov dword [ebx], ecx
mov ecx, dword [esi + 0x1c]
add ebx, 4
inc dword [ebp - 4]
cmp dword [ebp - 4], ecx
mov dword [ebp - 0x10], ebx
jl 0x1004132a
inc dword [ebp - 0x14]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x20]
jl 0x100412f3
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edi, dword [esi + 0x24]
add eax, dword [esi + 0x1c]
mov edx, dword [ebp - 0x24]
cmp eax, edi
mov dword [ebp - 0x1c], eax
jl 0x10040efc
add edx, dword [esi + 0x20]
cmp edx, dword [esi + 0x28]
mov dword [ebp - 0x24], edx
jl 0x10040eee
pop edi
pop ebx
pop esi
leave
ret