Function at 0x6c5c1980
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov esi, dword [esp + 0xa0]
mov eax, dword [esp + 0xb0]
mov edi, dword [esp + 0xac]
mov ebx, dword [esi]
imul ebx, dword [esi + 4]
mov dword [esp + 0x68], eax
fld qword [esi + 0x10]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], edi
lea edx, [ebx*4]
fstp qword [esp + 0x18]
fld qword [esi + 0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp], eax
fstp qword [esp + 0x10]
call sym._memcpy
mov ebp, dword [esi + 0x2c]
test ebx, ebx
je 0x6c5c1fcf
fnstcw word [esp + 0x6e]
fld qword [esp + 0x10]
fmul dword [0x6c5c50f4]
lea esi, [ebx - 1]
fadd dword [0x6c5c50f8]
mov ebx, edi
movzx eax, word [esp + 0x6e]
or ah, 0xc
mov word [esp + 0x6c], ax
fchs
fstp qword [esp + 0x20]
jmp 0x6c5c1acf
cmp eax, edx
mov ecx, edx
cmovge ecx, eax
cmp eax, edi
cmovg eax, edi
add eax, ecx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fld dword [0x6c5c50ec]
fmul st(1), st(0)
fadd st(1), st(0)
fxch st(1)
fldcw word [esp + 0x6c]
fistp dword [esp + 0x10]
fldcw word [esp + 0x6e]
mov eax, dword [esp + 0x10]
movzx eax, al
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fld dword [0x6c5c50fc]
fdivp st(1)
fsubrp st(1)
fmul qword [esp + 0x20]
fstp qword [esp]
call sym._exp
fadd dword [0x6c5c5100]
xor eax, eax
fld qword [0x6c5c5118]
fdivr st(1), st(0)
fxch st(1)
fmul qword [esp + 0x18]
fldz
fcompi st(1)
ja 0x6c5c1af8
fnstcw word [esp + 0x6e]
fcomi st(1)
fstp st(1)
mov eax, 0xffffffff
ja 0x6c5c1b10
movzx eax, word [esp + 0x6e]
or ah, 0xc
mov word [esp + 0x6c], ax
fldcw word [esp + 0x6c]
fistp word [esp + 0x10]
fldcw word [esp + 0x6e]
movzx eax, word [esp + 0x10]
add ebx, 4
mov byte [ebp], al
add ebp, 4
mov byte [ebp - 3], al
mov byte [ebp - 2], al
movzx eax, byte [ebx - 1]
mov byte [ebp - 1], al
sub esi, 1
jb 0x6c5c1b21
movzx edi, byte [ebx + 1]
movzx edx, byte [ebx]
movzx eax, byte [ebx + 2]
cmp edi, edx
jl 0x6c5c1a18
cmp eax, edi
cmovge edi, eax
cmp eax, edx
cmovg eax, edx
mov ecx, edi
jmp 0x6c5c1a24
fstp st(0)
fstp st(0)
fnstcw word [esp + 0x6e]
movzx edx, word [esp + 0x6e]
or dh, 0xc
mov word [esp + 0x6c], dx
jmp 0x6c5c1ab4
fstp st(0)
movzx edx, word [esp + 0x6e]
or dh, 0xc
mov word [esp + 0x6c], dx
jmp 0x6c5c1ab4
mov eax, dword [esp + 0x60]
mov ebp, dword [eax + 0x2c]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], 0
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0x28]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov dword [esp + 0x50], ecx
cmp edi, esi
mov edx, esi
mov dword [esp + 0x34], esi
cmovge edx, edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x10], edx
fild qword [esp + 0x10]
fmul qword [eax + 8]
fmul dword [0x6c5c50ec]
fldcw word [esp + 0x6c]
fistp qword [esp + 0x10]
fldcw word [esp + 0x6e]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x4c], ebx
test ebx, ebx
jne 0x6c5c1bf4
mov eax, esi
mov dword [esp + 4], ebp
imul eax, edi
mov dword [esp], ecx
shl eax, 2
mov dword [esp + 8], eax
call sym._memcpy
mov edi, dword [esp + 0x60]
fld qword [edi + 0x20]
fld qword [0x6c5c5108]
mov eax, dword [edi]
imul eax, dword [edi + 4]
mov edx, dword [edi + 0x30]
fcompi st(1)
jae 0x6c5c1dde
fld qword [0x6c5c5110]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x64]
fcompi st(1)
fstp st(0)
mov dword [esp + 0xa4], eax
jb 0x6c5c1dcf
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
jmp dbg.overlay
mov esi, dword [esp + 0x34]
mov edi, dword [eax + 0x14]
mov ebx, dword [eax + 0x10]
mov dword [esp + 4], 0
add esi, 1
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x48]
mov eax, esi
mov dword [esp], ebx
shl eax, 6
add edi, 1
mov dword [esp + 0x54], esi
mov dword [esp + 8], eax
mov dword [esp + 0x2c], edi
call sym._memset
test edi, edi
jne 0x6c5c1e13
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x34]
mov esi, eax
shl edi, 2
lea eax, [eax + eax + 1]
neg esi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x38], eax
lea esi, [esi]
nop
mov eax, dword [esp + 0x34]
test eax, eax
je 0x6c5c1db1
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x38]
mov edx, 0
lea ecx, [esp + 0x70]
mov esi, dword [esp + 0x48]
test edi, edi
cmovns edx, edi
add eax, edi
mov edi, dword [esp + 0x54]
cmp eax, esi
cmovg eax, esi
mov esi, edi
imul esi, edx
imul edi, eax
sub eax, edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x20], esi
mov dword [esp + 0x3c], eax
mov esi, dword [esp + 0x50]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x58]
lea esi, [esi]
nop
mov ebx, dword [esp + 0x38]
test edi, edi
mov eax, 0
mov edx, dword [esp + 0x2c]
cmovns eax, edi
mov dword [esp + 0x30], ecx
lea ebp, [ebx + edi]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x18], eax
cmp ebp, ebx
cmovg ebp, ebx
mov ebx, ebp
sub ebx, eax
imul ebx, dword [esp + 0x40]
lea eax, [ebp + edx]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + eax*4]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x10]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x2c]
mov edx, dword [edx + eax*4]
mov eax, ecx
add eax, 4
mov ecx, dword [edx]
add edx, 4
sub dword [eax - 4], ecx
lea ecx, [esp + 0x80]
cmp eax, ecx
jne 0x6c5c1d21
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
add ebp, dword [esp + 0x20]
mov edx, dword [eax + ebp*4]
mov eax, ecx
add eax, 4
mov ebp, dword [edx]
add edx, 4
sub dword [eax - 4], ebp
lea ebp, [esp + 0x80]
cmp eax, ebp
jne 0x6c5c1d48
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x20]
mov edx, dword [edx + eax*4]
mov eax, ecx
add eax, 4
mov ebp, dword [edx]
add edx, 4
add dword [eax - 4], ebp
lea ebp, [esp + 0x80]
cmp eax, ebp
jne 0x6c5c1d6f
xor ebp, ebp
mov eax, dword [ecx + ebp*4]
xor edx, edx
div ebx
mov byte [esi + ebp], al
add ebp, 1
cmp ebp, 4
jne 0x6c5c1d87
add esi, 4
add edi, 1
cmp dword [esp + 0x3c], edi
jne 0x6c5c1cc0
mov esi, dword [esp + 0x5c]
add dword [esp + 0x50], esi
add dword [esp + 0x44], 1
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
add esi, eax
cmp dword [esp + 0x48], esi
ja 0x6c5c1c60
jmp 0x6c5c1b93
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
jmp dbg.add
fstp st(0)
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0xa4], eax
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
jmp dbg.screen
mov eax, dword [esp + 0x54]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov esi, eax
mov dword [esp + 0x78], 0
shl esi, 4
mov dword [esp + 0x7c], 0
add ebx, esi
mov dword [esp + 0x18], esi
lea ecx, [ebx + 0x10]
mov dword [esp + 0x30], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [esp + 0x20], ecx
cmp eax, 1
jbe 0x6c5c1ecb
mov dword [esp + 0x20], ebp
mov ebx, ebp
xor eax, eax
mov edi, 1
lea esi, [esp + 0x70]
mov ebp, ecx
xor edx, edx
movzx ecx, byte [ebx + edx]
add eax, ecx
mov dword [esi + edx*4], eax
mov dword [ebp + edx*4], eax
add edx, 1
cmp edx, 4
je 0x6c5c1e9c
mov eax, dword [esi + edx*4]
jmp 0x6c5c1e82
add ebx, 4
add ebp, 0x10
lea edx, [edi + 1]
cmp dword [esp + 0x34], edi
je 0x6c5c1eb3
mov eax, dword [esp + 0x70]
mov edi, edx
jmp 0x6c5c1e80
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
lea ebp, [ebp + eax*4]
mov eax, dword [esp + 0x30]
add eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
cmp dword [esp + 0x2c], 2
jbe 0x6c5c1fe5
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], 2
lea esi, [esp + 0x70]
mov dword [esp + 0x30], ebp
neg eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
shl eax, 2
mov dword [esp + 0x3c], eax
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x18]
add eax, edi
mov dword [esp], edi
mov dword [esp + 8], ebx
lea ebx, [edi + 0x10]
mov dword [esp + 4], eax
call sym._memcpy
cmp dword [esp + 0x54], 1
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
jbe 0x6c5c1fc9
mov edi, dword [esp + 0x30]
xor ecx, ecx
mov ebp, 1
lea esi, [esi]
xor eax, eax
movzx edx, byte [edi + eax]
add ecx, edx
add dword [ebx + eax*4], ecx
mov dword [esi + eax*4], ecx
add eax, 1
cmp eax, 4
je 0x6c5c1f88
mov ecx, dword [esi + eax*4]
jmp 0x6c5c1f6a
add edi, 4
add ebx, 0x10
lea eax, [ebp + 1]
cmp dword [esp + 0x34], ebp
je 0x6c5c1f9f
mov ecx, dword [esp + 0x70]
mov ebp, eax
jmp 0x6c5c1f68
mov edi, dword [esp + 0x3c]
add dword [esp + 0x30], edi
mov edi, dword [esp + 0x18]
add dword [esp + 0x20], edi
mov edi, dword [esp + 0x2c]
lea eax, [edi + 1]
cmp dword [esp + 0x48], edi
je 0x6c5c1c35
mov dword [esp + 0x2c], eax
jmp 0x6c5c1efb
mov dword [esp + 0x20], ebx
jmp 0x6c5c1faf
fnstcw word [esp + 0x6e]
movzx eax, word [esp + 0x6e]
or ah, 0xc
mov word [esp + 0x6c], ax
jmp 0x6c5c1b28
mov edx, dword [esp + 0x48]
test edx, edx
je 0x6c5c1b93
jmp 0x6c5c1c35