Function at 0x4200be
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 eax, eax
cmp dword [esi + 0x28], ecx
mov dword [ebp - 0x24], eax
jle 0x42063e
push ebx
push edi
mov edi, dword [esi + 0x24]
mov dword [ebp - 0x20], ecx
cmp edi, ecx
jle 0x42062d
cmp dword [esi + 0xc0], ecx
mov dword [ebp - 0xc], ecx
jle 0x4203ba
lea eax, [esi + 0xd9c]
lea ebx, [esi + 0x30]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], 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 - 0x2c], eax
mov eax, dword [esi + 0x20]
cdq
idiv dword [ebx + 4]
pop ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
cdq
idiv ebx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x30]
cdq
idiv ebx
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [esi + 0x20], eax
mov dword [ebp - 0x10], eax
jle 0x420399
and dword [ebp - 4], 0
test ecx, ecx
jle 0x42038a
mov ecx, dword [ebp - 0x24]
add eax, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
imul eax, edi
imul edi, dword [ebp - 8]
add eax, dword [ebp - 4]
mov ecx, dword [ecx]
push 8
add eax, dword [ebp - 0x20]
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 0x420188
lea eax, [ebp - 0x88]
mov ecx, esi
push eax
lea eax, [ebp - 0x188]
push eax
push dword [ebp - 0x48]
call fcn.00420641
mov ecx, dword [esi + 0x24]
mov eax, dword [ebp - 0x28]
imul eax, ecx
add eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x44]
add eax, dword [ebp - 0x20]
mov edx, dword [edx]
cmp ebx, 1
lea eax, [edx + eax*4]
jne 0x42024e
cmp dword [ebp - 8], ebx
jne 0x420307
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 0x420207
jmp 0x420373
cmp ebx, 2
jne 0x420307
cmp dword [ebp - 8], ebx
jne 0x420307
lea ecx, [eax + ecx*4]
lea edx, [ebp - 0x87]
mov dword [ebp - 0x1c], 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 - 0x1c]
jne 0x420270
jmp 0x420373
and dword [ebp - 0x18], 0
mov dword [ebp - 0x3c], 8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x40], 8
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
test ecx, ecx
jle 0x420352
mov dword [ebp - 0x34], ecx
test ebx, ebx
jle 0x420347
mov ecx, edx
mov edi, ebx
mov ebx, dword [ebp - 0x18]
movzx ebx, byte [ebp + ebx - 0x88]
mov dword [ecx], ebx
add ecx, 4
dec edi
jne 0x420331
mov ebx, dword [ebp - 0x44]
mov ecx, dword [esi + 0x24]
dec dword [ebp - 0x34]
lea edx, [edx + ecx*4]
jne 0x420329
inc dword [ebp - 0x18]
mov ecx, ebx
shl ecx, 2
add dword [ebp - 0x1c], ecx
dec dword [ebp - 0x40]
jne 0x42031c
mov edi, dword [esi + 0x24]
mov ecx, edi
imul ecx, dword [ebp - 8]
dec dword [ebp - 0x3c]
lea eax, [eax + ecx*4]
jne 0x420312
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x1c]
add eax, dword [ebp - 0x2c]
cmp eax, ecx
mov dword [ebp - 4], eax
jl 0x420164
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x30]
cmp eax, dword [esi + 0x20]
mov dword [ebp - 0x10], eax
jl 0x420150
inc dword [ebp - 0xc]
mov ebx, dword [ebp - 0x38]
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x14], 4
add ebx, 0x14
cmp eax, dword [esi + 0xc0]
mov dword [ebp - 0x38], ebx
jl 0x420108
xor ecx, ecx
cmp dword [esi + 0xc4], ecx
je 0x420616
mov eax, dword [esi + 0xc0]
cmp eax, 3
jne 0x4204e6
cmp dword [esi + 0x20], ecx
mov dword [ebp - 0x10], ecx
jle 0x420616
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
imul eax, dword [esi + 0x24]
add eax, dword [ebp - 0x20]
shl eax, 2
mov ebx, eax
mov edx, eax
add ebx, dword [esi + 0xda0]
add eax, dword [esi + 0xda4]
add edx, dword [esi + 0xd9c]
cmp dword [esi + 0x1c], ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], eax
jle 0x4204cf
mov ecx, dword [ebx]
mov eax, dword [eax]
mov ebx, 0x80
mov edi, dword [edx]
sub eax, ebx
sub ecx, ebx
mov ebx, eax
imul eax, eax, 0xffff492e
imul ebx, ebx, 0x166e9
shl edi, 0x10
mov dword [ebp - 0x18], edi
lea ebx, [ebx + edi + 0x8000]
mov edi, 0x180
sar ebx, 0x10
add ebx, edi
and ebx, 0x3ff
movzx ebx, byte [ebx + 0x52ddf4]
mov dword [edx], ebx
mov ebx, ecx
imul ebx, ebx, 0x5819
imul ecx, ecx, 0x1c5a2
sub eax, ebx
mov ebx, dword [ebp - 0x18]
add edx, 4
lea eax, [eax + ebx + 0x8000]
mov ebx, dword [ebp - 8]
sar eax, 0x10
add eax, edi
and eax, 0x3ff
movzx eax, byte [eax + 0x52ddf4]
mov dword [ebx], eax
mov eax, dword [ebp - 0x18]
add ebx, 4
lea eax, [ecx + eax + 0x8000]
mov dword [ebp - 8], ebx
sar eax, 0x10
add eax, edi
and eax, 0x3ff
movzx ecx, byte [eax + 0x52ddf4]
mov eax, dword [ebp - 0x14]
mov dword [eax], ecx
add eax, 4
inc dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [esi + 0x1c]
jl 0x42041c
xor ecx, ecx
inc dword [ebp - 0x10]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
cmp eax, dword [esi + 0x20]
jl 0x4203e7
jmp 0x420616
cmp eax, 4
jne 0x420616
cmp dword [esi + 0x20], ecx
mov dword [ebp - 0x10], ecx
jle 0x420616
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
imul eax, dword [esi + 0x24]
add eax, dword [ebp - 0x20]
shl eax, 2
mov edi, eax
mov edx, eax
add edi, dword [esi + 0xda0]
add eax, dword [esi + 0xda4]
add edx, dword [esi + 0xd9c]
cmp dword [esi + 0x1c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jle 0x420604
mov ecx, dword [edi]
mov eax, dword [eax]
mov edi, 0x80
mov ebx, dword [edx]
sub eax, edi
sub ecx, edi
mov edi, eax
imul eax, eax, 0xffff492e
imul edi, edi, 0x166e9
shl ebx, 0x10
mov dword [ebp - 0x18], ebx
lea edi, [edi + ebx + 0x8000]
mov ebx, 0xff
sar edi, 0x10
add edi, 0x180
and edi, 0x3ff
movzx edi, byte [edi + 0x52ddf4]
sub ebx, edi
mov edi, ecx
imul edi, edi, 0x5819
imul ecx, ecx, 0x1c5a2
sub eax, edi
mov edi, dword [ebp - 0x18]
mov dword [edx], ebx
mov ebx, 0xff
lea edi, [eax + edi + 0x8000]
mov eax, 0x180
sar edi, 0x10
add edi, eax
add edx, 4
and edi, 0x3ff
movzx edi, byte [edi + 0x52ddf4]
sub ebx, edi
mov edi, dword [ebp - 8]
mov dword [edi], ebx
mov ebx, dword [ebp - 0x18]
add edi, 4
lea ecx, [ecx + ebx + 0x8000]
mov dword [ebp - 8], edi
sar ecx, 0x10
add ecx, eax
and ecx, 0x3ff
movzx eax, byte [ecx + 0x52ddf4]
mov ecx, 0xff
sub ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax], ecx
add eax, 4
inc dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [esi + 0x1c]
jl 0x420536
xor ecx, ecx
inc dword [ebp - 0x10]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
cmp eax, dword [esi + 0x20]
jl 0x420501
mov eax, dword [ebp - 0x20]
mov edi, dword [esi + 0x24]
add eax, dword [esi + 0x1c]
cmp eax, edi
mov dword [ebp - 0x20], eax
jl 0x4200ea
mov eax, dword [ebp - 0x24]
add eax, dword [esi + 0x20]
cmp eax, dword [esi + 0x28]
mov dword [ebp - 0x24], eax
jl 0x4200dc
pop edi
pop ebx
pop esi
leave
ret