Function at 0x10076910
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb8
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x40
lea eax, [esp + 0x7c]
mov esi, ecx
push ebx
xor edi, edi
push eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], ebx
call fcn.101527d0
fld dword [esi + 0x20254]
fadd qword [0x1023a7b8]
add esp, 0xc
call fcn.10153880
mov edx, 0xa
cmp eax, edx
jge 0x10076966
mov dword [esp + 0x28], 0x96
jmp 0x10076987
cmp eax, 0xc
jle 0x10076975
mov dword [esp + 0x28], 0x14
jmp 0x10076987
mov ecx, 0xe
sub ecx, eax
lea eax, [ecx + ecx*4]
add eax, eax
add eax, eax
mov dword [esp + 0x28], eax
fldz
fcomp dword [esi + 0x20250]
fnstsw ax
test ah, 0x44
jnp 0x1007699e
mov dword [esp + 0x28], 0x50
movzx ecx, word [esi + 0xac]
sub ecx, 0xe
cmp ecx, 0xe
mov dword [esp + 0x14], 0xe
jle 0x10076d44
movzx eax, word [esi + 0xae]
mov dword [esp + 0x74], eax
movzx eax, word [esi + 0xac]
add eax, 0xfffffff2
mov dword [esp + 0x10], eax
cmp dword [esp + 0x74], edx
mov dword [esp + 0x24], edx
jle 0x10076d27
movzx ecx, word [esi + 0xb6]
movzx edx, word [esi + 0x409dc]
mov eax, dword [esi + 0x40860]
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 0x98]
mov dword [esp + 0x18], edx
movzx edx, word [esi + 0xae]
mov dword [esp + 0x2c], ecx
mov ecx, 0x14
mov dword [esp + 0x20], eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x38], ecx
mov eax, 2
mov ebp, eax
sub ebp, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], ebp
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x2c]
lea esi, [eax - 2]
mov ecx, esi
sar ecx, 1
add edx, ecx
mov ecx, dword [esp + 0x18]
mov edi, esi
and edi, 1
add edi, dword [esp + 0x24]
add ebp, 0xfffffffe
sar edi, cl
lea ecx, [edx*4]
and ecx, 0x1c
and ebp, 2
or ecx, ebp
shr ebx, cl
mov ecx, dword [esp + 0x18]
sar edx, cl
mov ebp, dword [esp + 0x20]
and ebx, 3
and esi, 4
imul edx, dword [esp + 0x30]
add edx, edi
lea edx, [ebx + edx*4]
movzx edx, word [ebp + edx*2]
add esi, ebx
mov dword [esp + esi*4 + 0x48], edx
mov esi, dword [esp + 0x14]
lea ebx, [eax - 1]
mov edx, ebx
sar edx, 1
add edx, esi
lea ebp, [edx*4]
lea esi, [eax - 1]
and esi, 1
add esi, dword [esp + 0x24]
and ebp, 0x1c
sar esi, cl
mov ecx, 0xfffffffe
sub ecx, dword [esp + 0x34]
and ebx, 4
and ecx, 2
or ecx, ebp
mov ebp, dword [esp + 0x2c]
shr ebp, cl
mov ecx, dword [esp + 0x18]
sar edx, cl
and ebp, 3
add ebx, ebp
imul edx, dword [esp + 0x30]
add edx, esi
lea ecx, [ebp + edx*4]
mov edx, dword [esp + 0x20]
movzx ecx, word [edx + ecx*2]
mov ebp, dword [esp + 0x1c]
mov dword [esp + ebx*4 + 0x48], ecx
mov ecx, dword [esp + 0x14]
mov edx, eax
sar edx, 1
add edx, ecx
lea ebx, [edx*4]
and ebx, 0x1c
lea ecx, [ebp - 2]
and ecx, 2
or ecx, ebx
mov ebx, dword [esp + 0x2c]
shr ebx, cl
mov ecx, dword [esp + 0x18]
sar edx, cl
mov ecx, dword [esp + 0x20]
and ebx, 3
imul edx, dword [esp + 0x30]
add edx, edi
lea edx, [ebx + edx*4]
movzx edx, word [ecx + edx*2]
mov ecx, eax
and ecx, 4
add ecx, ebx
mov dword [esp + ecx*4 + 0x48], edx
lea edi, [eax + 1]
mov ecx, dword [esp + 0x14]
mov edx, edi
sar edx, 1
add edx, ecx
lea ecx, [edx*4]
and ecx, 0x1c
mov ebx, ebp
and ebx, 2
or ecx, ebx
mov ebx, dword [esp + 0x2c]
add dword [esp + 0x34], 8
shr ebx, cl
mov ecx, dword [esp + 0x18]
sar edx, cl
mov ecx, dword [esp + 0x20]
and ebx, 3
add eax, 4
imul edx, dword [esp + 0x30]
add edx, esi
lea edx, [ebx + edx*4]
movzx edx, word [ecx + edx*2]
and edi, 4
add edi, ebx
sub ebp, 8
lea ecx, [eax - 2]
cmp ecx, 8
mov dword [esp + edi*4 + 0x48], edx
mov dword [esp + 0x1c], ebp
jl 0x10076a2f
xor eax, eax
jmp 0x10076ba0
mov ecx, dword [esp + eax*4 + 0x48]
cmp ecx, 0x96
jl 0x10076cfe
cmp ecx, 0x5dc
jg 0x10076cfe
inc eax
cmp eax, 8
jl 0x10076ba0
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x48]
sub eax, dword [esp + ecx*4 + 0x58]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x32
jg 0x10076cfe
inc ecx
cmp ecx, 4
jl 0x10076bc4
lea edx, [esp + 0x68]
xor ebx, ebx
mov dword [esp + 0x1c], edx
lea ebp, [esp + 0xb8]
lea esi, [esp + 0x48]
xor ecx, ecx
mov edi, dword [esi]
mov eax, dword [esi + 4]
sub eax, edi
shl eax, 0xa
cdq
idiv edi
mov edx, ecx
sar edx, 1
add edx, ebx
add ecx, 2
add esi, 8
cmp ecx, 4
mov dword [esp + edx*4 + 0xb8], eax
jl 0x10076bf7
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
push eax
push ebp
call fcn.10076800
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
add ebx, 2
add ecx, 4
add ebp, 8
cmp ebx, 4
mov dword [esp + 0x1c], ecx
jl 0x10076bf5
mov esi, dword [esp + 0x6c]
or esi, dword [esp + 0x68]
cmp esi, 1
jg 0x10076cfe
xor ecx, ecx
lea edx, [esp + 0xbc]
lea eax, [esp + 0x4c]
cmp dword [esp + ecx*4 + 0x68], 0
je 0x10076c8c
mov edi, dword [edx - 4]
add edi, 0x400
imul edi, dword [eax - 4]
sar edi, 0xa
mov dword [eax], edi
mov edi, dword [edx]
add edi, 0x400
imul edi, dword [eax + 4]
sar edi, 0xa
mov dword [eax + 8], edi
inc ecx
add edx, 8
add eax, 0x10
cmp ecx, 2
jl 0x10076c61
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov eax, esi
shl eax, 5
add dword [esp + eax + 0x78], ecx
add dword [esp + eax + 0x7c], edx
mov ecx, dword [esp + 0x50]
add dword [esp + eax + 0x80], ecx
mov edx, dword [esp + 0x54]
add dword [esp + eax + 0x84], edx
mov ecx, dword [esp + 0x58]
add dword [esp + eax + 0x88], ecx
mov edx, dword [esp + 0x5c]
add dword [esp + eax + 0x8c], edx
mov ecx, dword [esp + 0x60]
add dword [esp + eax + 0x90], ecx
mov edx, dword [esp + 0x64]
add dword [esp + eax + 0x94], edx
inc dword [esp + esi*4 + 0x40]
lea eax, [esp + eax + 0x94]
lea eax, [esp + esi*4 + 0x40]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
add eax, 2
add ecx, 4
cmp eax, dword [esp + 0x70]
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], ecx
jl 0x10076a1e
mov esi, dword [esp + 0x3c]
mov edx, 0xa
mov eax, dword [esp + 0x14]
add eax, 4
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
jl 0x100769d2
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
mov eax, ebx
or eax, edi
je 0x10076dec
imul edi, edi, 0xc8
xor eax, eax
cmp edi, ebx
setl al
shl eax, 5
mov ecx, dword [esp + eax + 0x88]
add ecx, dword [esp + eax + 0x78]
mov edx, dword [esp + eax + 0x8c]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
add edx, dword [esp + eax + 0x7c]
fld1
mov ecx, dword [esp + eax + 0x90]
fld st(0)
mov dword [esp + 0x10], edx
fdivrp st(2)
add ecx, dword [esp + eax + 0x80]
mov edx, dword [esp + eax + 0x94]
add edx, dword [esp + eax + 0x84]
fxch st(1)
fstp dword [esi + 0x15c]
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fdivr st(1)
fstp dword [esi + 0x160]
fild dword [esp + 0x10]
mov dword [esp + 0x10], edx
fdivr st(1)
fstp dword [esi + 0x164]
fild dword [esp + 0x10]
fdivp st(1)
fstp dword [esi + 0x168]
mov eax, dword [esi + 0xc8]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [esi + 0xc8], eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret