Function at 0x1006f6a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0xffffffffffffffff
push 0x1015ef52
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x101af0fc]
xor eax, esp
mov dword [esp + 0x154], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101af0fc]
xor eax, esp
push eax
lea eax, [esp + 0x16c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x17c]
mov esi, dword [esp + 0x180]
xor edi, edi
push 0xff
lea ecx, [esp + 0x6d]
push edi
mov dword [esp + 0x58], edi
push ecx
mov dword [esp + 0x60], eax
mov byte [esp + 0x74], 0
call fcn.10102a00
add esp, 0xc
test cl, cl
mov dl, dl
push ecx
pop ecx
xor ebx, ebx
xor ebp, ebp
test edx, edx
mov bl, bl
test esi, esi
mov dword [esp + 0x14], edi
mov ch, ch
test eax, 0x5472
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x19c]
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x19c]
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x19c]
push ecx
mov ecx, dword [esp + 0x19c]
push edx
push eax
push ecx
push esi
call fcn.10054960
add esp, 0x28
test eax, eax
jne 0x1006f78d
mov esi, dword [esp + 0x54]
lea edx, [esp + 0x27]
push edx
lea eax, [esp + 0x6c]
push eax
mov ecx, esi
call fcn.100085d0
mov dword [esp + 0x174], edi
jmp 0x1006f8b7
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
xor edx, edx
cmp eax, edi
jle 0x1006f7f9
jmp 0x1006f7a0
xor ecx, ecx
test esi, esi
jle 0x1006f7f2
jmp 0x1006f7b0
mov eax, edx
imul eax, dword [esp + 0x18]
add eax, dword [esp + 0x14]
lea eax, [eax + ecx*4]
mov ah, ah
mov esi, esi
mov eax, dword [eax]
test ch, ch
mov esi, eax
shr esi, 0x10
and esi, 0xff
add edi, esi
test ebx, ebx
movzx esi, ah
add ebp, esi
mov dl, dl
movzx eax, al
add ebx, eax
test edi, edi
mov esi, dword [esp + 0x2c]
add ecx, 1
cmp ecx, esi
jl 0x1006f7b0
mov eax, dword [esp + 0x30]
add edx, 1
cmp edx, eax
jl 0x1006f7a0
imul esi, eax
mov eax, edi
xor edx, edx
div esi
mov esi, eax
test bh, bh
mov ecx, dword [esp + 0x2c]
imul ecx, dword [esp + 0x30]
mov eax, ebp
xor edx, edx
div ecx
mov edi, eax
test eax, 0x5ea8
mov ecx, dword [esp + 0x2c]
imul ecx, dword [esp + 0x30]
mov eax, ebx
xor edx, edx
div ecx
mov ebx, eax
test ebx, ebx
mov edx, dword [esp + 0x14]
push edx
call fcn.10101432
xor ebp, ebp
add esp, 4
mov dword [esp + 0x14], ebp
mov edx, edx
mov dl, 0x30
mov cl, 0x32
mov al, 0x78
mov byte [esp + 0x58], 0x25
mov byte [esp + 0x59], dl
mov byte [esp + 0x5a], cl
mov byte [esp + 0x5b], al
mov byte [esp + 0x5c], 0x25
mov byte [esp + 0x5d], dl
mov byte [esp + 0x5e], cl
mov byte [esp + 0x5f], al
mov byte [esp + 0x60], 0x25
mov byte [esp + 0x61], dl
mov byte [esp + 0x62], cl
mov byte [esp + 0x63], al
mov byte [esp + 0x64], 0
test ah, ah
push ebx
push edi
push esi
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x78]
push ecx
call fcn.10103959
add esp, 0x14
mov ch, ch
mov esi, dword [esp + 0x54]
lea edx, [esp + 0x27]
push edx
lea eax, [esp + 0x6c]
push eax
mov ecx, esi
call fcn.100085d0
mov dword [esp + 0x174], ebp
mov dword [esp + 0x50], 1
mov eax, esi
mov ecx, dword [esp + 0x16c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.1010190d
add esp, 0x164
ret