Function at 0x10001cc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
push ebx
mov ebx, dword [esp + 0x38]
push ebp
mov ebp, dword [esp + 0x50]
push esi
push edi
mov edi, dword [esp + 0x60]
mov esi, dword [0x1005f914]
mov dword [esp + 0x30], esi
movzx eax, byte [eax + edi + 2]
xor eax, ebx
inc ebx
mov dword [esp + 0x28], eax
movzx eax, byte [0x1005f8e8]
mov dword [esp + 0x14], eax
mov eax, dword [0x1005f904]
mov dword [esp + 0x44], ebx
mov byte [esp + 0x13], bl
movzx ecx, word [edx + eax*2]
movzx eax, byte [edi + 0x1543]
or ecx, eax
mov al, byte [0x1005f90c]
mov byte [esp + 0x50], al
mov eax, dword [0x1005f8f8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + ebp*4]
mov eax, dword [0x1005f924]
mov dword [esp + 0x18], ecx
movzx eax, word [edx + eax*2 + 0xc]
cmp ecx, eax
jne 0x10001ea3
mov bx, word [esp + 0x5c]
lea eax, [ebp + 1]
add eax, edi
lea ebp, [ecx + ecx*2]
mov dword [esp + 0x34], eax
mov byte [eax], bl
and dword [esi*4 + 0x778], 0xf9a
movzx esi, byte [edi + ebp]
mov edi, dword [0x1005f8d4]
cmp esi, edi
jb 0x10001e79
movzx eax, byte [esp + 0x50]
xor edx, edx
mov ecx, dword [esp + 0x1c]
lea ebx, [ecx + eax*2]
mov eax, 0x5b0
div dword [esp + 0x54]
movzx eax, byte [esp + 0x13]
shl eax, 2
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], edx
lea eax, [eax + esi*4]
add eax, 0x94
mov dword [esp + 0x58], eax
nop dword [eax]
movzx ecx, word [ebx]
xor edx, edx
mov eax, 0x17a6
dec dword [esp + 0x44]
sub eax, edi
div ecx
mov ecx, dword [esp + 0x14]
xor edx, edx
mov word [ebx], ax
mov eax, dword [0x1005f918]
mov ebx, eax
inc eax
mov dword [0x1005f918], eax
mov ax, word [0x1005f920]
inc ax
mov word [0x1005f920], ax
mov ecx, dword [ecx + 0x23a0]
movzx edi, ax
mov eax, dword [0x1005f928]
add edi, 0x7e0
movzx eax, byte [eax + ebp]
sub ecx, eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, 0x17b6
movzx eax, word [eax + esi*2]
div ecx
push edx
push dword [esp + 0x4c]
push dword [esp + 0x2c]
push edi
push esi
push ebx
push esi
call fcn.100045e0
mov ecx, dword [0x1005f900]
inc esi
mov edx, dword [esp + 0x44]
add esp, 0x20
mov ebx, dword [esp + 0x2c]
mov dword [edx + ecx], eax
mov ecx, dword [0x1005f904]
mov eax, dword [0x1005f928]
movzx eax, byte [eax + ecx + 6]
mov ecx, dword [esp + 0x58]
add eax, dword [0x1005f8dc]
or eax, dword [esp + 0x28]
mov dword [ecx], eax
add ecx, 4
mov edi, dword [0x1005f8d4]
mov dword [esp + 0x58], ecx
cmp esi, edi
jae 0x10001db0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x48]
mov bx, word [esp + 0x5c]
mov eax, dword [0x1005f924]
inc ecx
mov esi, dword [esp + 0x30]
add ebp, 3
mov edi, dword [esp + 0x60]
mov dword [esp + 0x18], ecx
movzx eax, word [edx + eax*2 + 0xc]
cmp ecx, eax
mov eax, dword [esp + 0x34]
je 0x10001d52
mov ebx, dword [esp + 0x44]
movzx eax, byte [esp + 0x3c]
lea ecx, [edx + eax*8]
mov ax, word [esp + 0x64]
and word [ecx], ax
mov eax, 0xffff
add word [0x1005f920], ax
mov eax, dword [0x1005f8d8]
movzx edx, byte [esp + 0x50]
lea esi, [edx + edi]
pop edi
lea ecx, [eax + edx*2]
movzx eax, byte [0x1005f8e4]
and al, byte [0x1005f8ec]
xor edx, edx
and byte [ecx + 0x1a], al
movzx ecx, byte [esi]
movzx eax, byte [0x1005f8e8]
or eax, 0x186b
div ecx
mov ecx, dword [esp + 0x44]
mov byte [esi], al
mov eax, dword [0x1005f8dc]
lea esi, [ecx + eax*2]
mov eax, dword [0x1005f8f0]
cdq
idiv ebx
movzx ecx, word [esi]
movzx eax, ax
imul eax, ecx
mov word [esi], ax
add dword [0x1005f8e4], 0xf63
mov eax, dword [esp + 0x3c]
pop esi
pop ebp
pop ebx
add esp, 0x28
ret