Function at 0x1002f7bb
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push esi
mov dword [ebp - 0x58], 0x243f6a88
mov dword [ebp - 0x54], 0x85a308d3
mov dword [ebp - 0x50], 0x13198a2e
mov dword [ebp - 0x4c], 0x3707344
mov dword [ebp - 0x48], 0xa4093822
mov dword [ebp - 0x44], 0x299f31d0
mov dword [ebp - 0x40], 0x82efa98
mov dword [ebp - 0x3c], 0xec4e6c89
mov dword [ebp - 0x38], 0x452821e6
mov dword [ebp - 0x34], 0x38d01377
mov dword [ebp - 0x30], 0xbe5466cf
mov dword [ebp - 0x2c], 0x34e90c6c
mov dword [ebp - 0x28], 0xc0ac29b7
mov dword [ebp - 0x24], 0xc97c50dd
mov dword [ebp - 0x20], 0x3f84d5b5
mov dword [ebp - 0x1c], 0xb5470917
mov dword [ebp - 0x18], 0x9216d5d9
mov dword [ebp - 0x14], 0x8979fb1b
mov dword [ebp - 0x10], 0
jmp 0x1002f855
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x12
jge 0x1002f871
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x58]
mov dword [edx + ecx*4 + 0x1000], eax
jmp 0x1002f84c
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], 0
jmp 0x1002f889
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 4
jge 0x1002fbfe
mov dword [ebp - 0x5c], 0
jmp 0x1002f8a5
mov eax, dword [ebp - 0x5c]
add eax, 1
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0x100
jge 0x1002fbf9
mov dword [ebp - 0x88], pe_nt_image_headers32
mov eax, dword [ebp - 8]
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 8]
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x78], edx
mov eax, 0x1df5e0d
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x84], eax
mov eax, 0x1df5e0d
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x80], edx
mov ecx, dword [ebp - 0x78]
imul ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x7c]
imul edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x78]
imul eax, dword [ebp - 0x84]
add eax, edx
xor edx, edx
mov esi, 0x2710
div esi
mov eax, edx
imul eax, eax, 0x2710
add eax, ecx
xor edx, edx
mov ecx, 0x5f5e100
div ecx
mov eax, edx
add eax, 1
xor edx, edx
mov ecx, 0x5f5e100
div ecx
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 0x2710
div ecx
imul eax, dword [ebp - 0x88]
xor edx, edx
mov ecx, 0x2710
div ecx
and eax, 0xff
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x9c], pe_nt_image_headers32
mov eax, dword [ebp - 8]
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 8]
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x8c], edx
mov eax, 0x1df5e0d
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x98], eax
mov eax, 0x1df5e0d
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0x94], edx
mov ecx, dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x94]
mov edx, dword [ebp - 0x90]
imul edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x8c]
imul eax, dword [ebp - 0x98]
add eax, edx
xor edx, edx
mov esi, 0x2710
div esi
mov eax, edx
imul eax, eax, 0x2710
add eax, ecx
xor edx, edx
mov ecx, 0x5f5e100
div ecx
mov eax, edx
add eax, 1
xor edx, edx
mov ecx, 0x5f5e100
div ecx
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 0x2710
div ecx
imul eax, dword [ebp - 0x9c]
xor edx, edx
mov ecx, 0x2710
div ecx
and eax, 0xff
mov dword [ebp - 0x68], eax
mov dword [ebp - 0xb0], pe_nt_image_headers32
mov eax, dword [ebp - 8]
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 8]
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0xa0], edx
mov eax, 0x1df5e0d
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0xac], eax
mov eax, 0x1df5e0d
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0xa8], edx
mov ecx, dword [ebp - 0xa0]
imul ecx, dword [ebp - 0xa8]
mov edx, dword [ebp - 0xa4]
imul edx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0xa0]
imul eax, dword [ebp - 0xac]
add eax, edx
xor edx, edx
mov esi, 0x2710
div esi
mov eax, edx
imul eax, eax, 0x2710
add eax, ecx
xor edx, edx
mov ecx, 0x5f5e100
div ecx
mov eax, edx
add eax, 1
xor edx, edx
mov ecx, 0x5f5e100
div ecx
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 0x2710
div ecx
imul eax, dword [ebp - 0xb0]
xor edx, edx
mov ecx, 0x2710
div ecx
and eax, 0xff
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0xc4], pe_nt_image_headers32
mov eax, dword [ebp - 8]
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 8]
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0xb4], edx
mov eax, 0x1df5e0d
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0xc0], eax
mov eax, 0x1df5e0d
cdq
mov ecx, 0x2710
idiv ecx
mov dword [ebp - 0xbc], edx
mov ecx, dword [ebp - 0xb4]
imul ecx, dword [ebp - 0xbc]
mov edx, dword [ebp - 0xb8]
imul edx, dword [ebp - 0xbc]
mov eax, dword [ebp - 0xb4]
imul eax, dword [ebp - 0xc0]
add eax, edx
xor edx, edx
mov esi, 0x2710
div esi
mov eax, edx
imul eax, eax, 0x2710
add eax, ecx
xor edx, edx
mov ecx, 0x5f5e100
div ecx
mov eax, edx
add eax, 1
xor edx, edx
mov ecx, 0x5f5e100
div ecx
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 0x2710
div ecx
imul eax, dword [ebp - 0xc4]
xor edx, edx
mov ecx, 0x2710
div ecx
and eax, 0xff
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x10]
shl edx, 0xa
mov eax, dword [ebp + 8]
add eax, edx
mov ecx, dword [ebp - 0x6c]
shl ecx, 8
mov edx, dword [ebp - 0x68]
shl edx, 0x10
mov esi, dword [ebp - 0x74]
shl esi, 0x18
or esi, edx
or esi, ecx
or esi, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x5c]
mov dword [eax + ecx*4], esi
jmp 0x1002f89c
jmp 0x1002f880
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x5c], 0
jmp 0x1002fc17
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x12
jge 0x1002fc89
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
jmp 0x1002fc36
mov eax, dword [ebp - 0x60]
add eax, 1
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 4
jge 0x1002fc6a
mov ecx, dword [ebp - 0x64]
shl ecx, 8
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x5c]
movsx eax, byte [edx]
or ecx, eax
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x5c]
add ecx, 1
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
cmp edx, dword [ebp + 0x10]
jl 0x1002fc68
mov dword [ebp - 0x5c], 0
jmp 0x1002fc2d
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4 + 0x1000]
xor edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [ecx + eax*4 + 0x1000], edx
jmp 0x1002fc0e
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
jmp 0x1002fca9
mov edx, dword [ebp - 0x10]
add edx, 2
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x12
jge 0x1002fce5
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1002fd5e
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx + eax*4 + 0x1000], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [ecx + eax*4 + 0x1004], edx
jmp 0x1002fca0
mov dword [ebp - 0x10], 0
jmp 0x1002fcf7
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 4
jge 0x1002fd59
mov dword [ebp - 0x5c], 0
jmp 0x1002fd0f
mov ecx, dword [ebp - 0x5c]
add ecx, 2
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x5c], 0x100
jge 0x1002fd57
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1002fd5e
add esp, 0xc
mov edx, dword [ebp - 0x10]
shl edx, 0xa
mov eax, dword [ebp + 8]
add eax, edx
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 4]
mov dword [eax + ecx*4], edx
mov eax, dword [ebp - 0x10]
shl eax, 0xa
mov ecx, dword [ebp + 8]
add ecx, eax
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0xc]
mov dword [ecx + edx*4 + 4], eax
jmp 0x1002fd06
jmp 0x1002fcee
pop esi
mov esp, ebp
pop ebp
ret