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

Disassembly:
mov ecx, dword [esp + 0x18]
sub esp, 0xc
push edi
mov edi, dword [esp + 0x14]
movzx eax, byte [edi]
cmp ecx, eax
je 0x47f41c
push edi
push eax
push ecx
push 0x4adf88
push 0
call fcn.0047d142
add esp, 0x14
xor eax, eax
pop edi
add esp, 0xc
ret
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x20]
add ecx, ecx
xor edx, edx
div ecx
mov ecx, dword [esp + 0x30]
shr ecx, 5
mov dword [esp + 0x14], eax
cmp eax, ecx
jb 0x47f43e
mov eax, ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
add ecx, 0x1f
shr ecx, 5
cmp eax, ecx
jb 0x47f452
mov eax, ecx
mov dword [esp + 0x14], eax
movsx edx, word [edi + 8]
movsx ecx, word [edi + 0xa]
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
mov dword [esp + 0x28], ecx
fld qword [0x4adf80]
xor ecx, ecx
mov dword [esp + 4], ecx
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 8]
fild dword [esp + 0x28]
fmulp st(1)
fstp dword [esp + 0xc]
cmp eax, ecx
jbe 0x47fa3f
fld dword [esp + 8]
push esi
fld dword [esp + 0x10]
mov esi, dword [esp + 0x20]
fld qword [0x4adf78]
push ebx
mov dword [esp + 0x30], ecx
push ebp
xor ebp, ebp
cmp byte [edi], 0
jbe 0x47fa1a
lea ebx, [edi + 0x30]
movzx dx, byte [esi]
movzx ax, byte [esi + 1]
shl dx, 8
or dx, ax
movzx eax, dx
test eax, 0x8000
jne 0x47fa32
movzx ecx, word [edi + 2]
mov edx, ecx
xor edx, eax
and edx, 0x1fff
inc edx
movsx eax, dx
mov dx, word [edi + 4]
mov dword [esp + 0x18], eax
imul dx, cx
fild dword [esp + 0x18]
fmul qword [0x4ac1b8]
fstp dword [esp + 0x14]
add dx, word [edi + 6]
mov ecx, dword [esp + 0x38]
mov eax, 0x7fff
and dx, ax
mov word [edi + 2], dx
mov edx, dword [esi + 2]
fld dword [ebx - 4]
mov ecx, dword [ecx + ebp*4]
fstp dword [esp + 0x18]
add ecx, dword [esp + 0x34]
fld dword [ebx]
add esi, 2
fmul st(2)
mov eax, edx
fld dword [esp + 0x18]
shr eax, 4
fld st(0)
and eax, 0xf
fmul st(5)
faddp st(2)
fld dword [eax*4 + 0x4adf38]
mov eax, edx
fld dword [esp + 0x14]
and eax, 0xf
fld st(0)
fmulp st(2)
fxch st(3)
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx]
fmul st(5)
fld st(4)
fmulp st(2)
faddp st(1)
fld dword [eax*4 + 0x4adf38]
mov eax, edx
fmul st(2)
shr eax, 0xc
and eax, 0xf
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx + 4]
fmul st(4)
fld dword [ecx]
fmul st(4)
faddp st(1)
fld dword [eax*4 + 0x4adf38]
mov eax, edx
fmul st(2)
shr eax, 8
and eax, 0xf
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx + 8]
fmul st(4)
fld dword [ecx + 4]
fmul st(4)
faddp st(1)
fld dword [eax*4 + 0x4adf38]
fmul st(2)
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx + 0xc]
fmul st(4)
fld st(3)
fmul dword [ecx + 8]
mov eax, edx
shr eax, 0x14
and eax, 0xf
faddp st(1)
fld dword [eax*4 + 0x4adf38]
mov eax, edx
fmul st(2)
shr eax, 0x10
and eax, 0xf
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx + 0x10]
fmul st(4)
fld dword [ecx + 0xc]
fmul st(4)
faddp st(1)
fld dword [eax*4 + 0x4adf38]
mov eax, edx
fmul st(2)
shr eax, 0x1c
shr edx, 0x18
and edx, 0xf
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx + 0x14]
fmul st(4)
fld dword [ecx + 0x10]
fmul st(4)
faddp st(1)
fld dword [eax*4 + 0x4adf38]
fmul st(2)
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx + 0x18]
fmul st(4)
fld dword [ecx + 0x14]
fmul st(4)
faddp st(1)
fld dword [edx*4 + 0x4adf38]
fmul st(2)
faddp st(1)
fstp dword [ecx + 0x1c]
mov edx, dword [esi + 4]
fld dword [ecx + 0x18]
mov eax, edx
fmul st(3)
shr eax, 4
fld st(4)
and eax, 0xf
fmul dword [ecx + 0x1c]
faddp st(1)
fld dword [eax*4 + 0x4adf38]
mov eax, edx
fmul st(2)
and eax, 0xf
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx + 0x20]
fmul st(4)
fld st(3)
fmul dword [ecx + 0x1c]
faddp st(1)
fld dword [eax*4 + 0x4adf38]
mov eax, edx
fmul st(2)
shr eax, 0xc
and eax, 0xf
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx + 0x24]
fmul st(4)
fld st(3)
fmul dword [ecx + 0x20]
faddp st(1)
fld dword [eax*4 + 0x4adf38]
fmul st(2)
mov eax, edx
shr eax, 8
and eax, 0xf
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx + 0x28]
fmul st(4)
fld dword [ecx + 0x24]
fmul st(4)
faddp st(1)
fld dword [eax*4 + 0x4adf38]
mov eax, edx
fmul st(2)
shr eax, 0x14
and eax, 0xf
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx + 0x2c]
fmul st(4)
fld dword [ecx + 0x28]
fmul st(4)
faddp st(1)
fld dword [eax*4 + 0x4adf38]
mov eax, edx
fmul st(2)
shr eax, 0x10
and eax, 0xf
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx + 0x30]
fmul st(4)
fld dword [ecx + 0x2c]
fmul st(4)
faddp st(1)
fld dword [eax*4 + 0x4adf38]
mov eax, edx
fmul st(2)
shr eax, 0x1c
shr edx, 0x18
and edx, 0xf
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx + 0x34]
fmul st(4)
fld st(3)
fmul dword [ecx + 0x30]
faddp st(1)
fld dword [eax*4 + 0x4adf38]
fmul st(2)
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx + 0x38]
fmul st(4)
fld dword [ecx + 0x34]
fmul st(4)
faddp st(1)
fld dword [edx*4 + 0x4adf38]
fmul st(2)
faddp st(1)
fstp dword [ecx + 0x3c]
mov edx, dword [esi + 8]
fld dword [ecx + 0x3c]
mov eax, edx
fmul st(4)
shr eax, 4
fld dword [ecx + 0x38]
and eax, 0xf
fmul st(4)
faddp st(1)
fld dword [eax*4 + 0x4adf38]
fmul st(2)
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx + 0x40]
fld dword [ecx + 0x3c]
mov eax, edx
fmul st(4)
and eax, 0xf
fld st(5)
fmulp st(2)
faddp st(1)
fld dword [eax*4 + 0x4adf38]
mov eax, edx
fmul st(2)
shr eax, 0xc
and eax, 0xf
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx + 0x44]
fmul st(4)
fld dword [ecx + 0x40]
fmul st(4)
faddp st(1)
fld dword [eax*4 + 0x4adf38]
mov eax, edx
fmul st(2)
shr eax, 8
and eax, 0xf
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx + 0x48]
fmul st(4)
fld st(3)
fmul dword [ecx + 0x44]
faddp st(1)
fld dword [eax*4 + 0x4adf38]
mov eax, edx
fmul st(2)
shr eax, 0x14
and eax, 0xf
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx + 0x4c]
fmul st(4)
fld dword [ecx + 0x48]
fmul st(4)
faddp st(1)
fld dword [eax*4 + 0x4adf38]
mov eax, edx
fmul st(2)
shr eax, 0x10
and eax, 0xf
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx + 0x50]
fmul st(4)
fld dword [ecx + 0x4c]
fmul st(4)
faddp st(1)
fld dword [eax*4 + 0x4adf38]
mov eax, edx
fmul st(2)
shr eax, 0x1c
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx + 0x54]
fmul st(4)
fld dword [ecx + 0x50]
fmul st(4)
faddp st(1)
fld dword [eax*4 + 0x4adf38]
fmul st(2)
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx + 0x58]
fld st(3)
fmul dword [ecx + 0x54]
fld st(5)
fmulp st(2)
faddp st(1)
shr edx, 0x18
and edx, 0xf
fld dword [edx*4 + 0x4adf38]
fmul st(2)
faddp st(1)
fstp dword [ecx + 0x5c]
mov edx, dword [esi + 0xc]
fld dword [ecx + 0x5c]
mov eax, edx
fmul st(4)
shr eax, 4
fld dword [ecx + 0x58]
and eax, 0xf
fmul st(4)
faddp st(1)
fld dword [eax*4 + 0x4adf38]
mov eax, edx
fmul st(2)
and eax, 0xf
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx + 0x60]
fmul st(4)
fld dword [ecx + 0x5c]
fmul st(4)
faddp st(1)
fld dword [eax*4 + 0x4adf38]
mov eax, edx
fmul st(2)
shr eax, 0xc
and eax, 0xf
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx + 0x64]
fld dword [ecx + 0x60]
fmul st(4)
fld st(5)
fmulp st(2)
faddp st(1)
fld dword [eax*4 + 0x4adf38]
mov eax, edx
fmul st(2)
shr eax, 8
and eax, 0xf
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx + 0x68]
fld dword [ecx + 0x64]
fmul st(4)
fld st(5)
fmulp st(2)
faddp st(1)
fld dword [eax*4 + 0x4adf38]
mov eax, edx
fmul st(2)
shr eax, 0x14
and eax, 0xf
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx + 0x6c]
fmul st(4)
fld st(3)
fmul dword [ecx + 0x68]
faddp st(1)
fld dword [eax*4 + 0x4adf38]
mov eax, edx
fmul st(2)
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx + 0x70]
fld dword [ecx + 0x6c]
fmul st(4)
fld st(5)
fmulp st(2)
faddp st(1)
shr eax, 0x10
and eax, 0xf
fld dword [eax*4 + 0x4adf38]
mov eax, edx
fmul st(2)
shr eax, 0x1c
shr edx, 0x18
and edx, 0xf
faddp st(1)
inc ebp
add esi, 0x10
add ebx, 8
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx + 0x74]
fld dword [ecx + 0x70]
fmul st(4)
fld st(5)
fmulp st(2)
faddp st(1)
fld dword [eax*4 + 0x4adf38]
fmul st(2)
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx + 0x78]
fld dword [ecx + 0x74]
fmul st(4)
fld st(5)
fmulp st(2)
faddp st(1)
fld dword [edx*4 + 0x4adf38]
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [ecx + 0x7c]
fadd st(1)
fstp dword [ebx - 0xc]
fld dword [ecx + 0x78]
fadd st(1)
fstp dword [ebx - 8]
movzx ecx, byte [edi]
cmp ebp, ecx
jb 0x47f4b3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
sub dword [esp + 0x34], 0xffffff80
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, eax
jb 0x47f4a5
jmp 0x47fa36
mov ecx, dword [esp + 0x10]
fstp st(2)
pop ebp
fstp st(0)
pop ebx
fstp st(0)
pop esi
movzx eax, byte [edi]
imul eax, ecx
lea edx, [eax + eax*8]
mov eax, dword [esp + 0x24]
add edx, edx
mov dword [eax], edx
mov eax, ecx
shl eax, 5
pop edi
add esp, 0xc
ret