Function at 0x100c1f20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ecx, ecx
xor ebp, ebp
push edi
mov eax, dword [esi + 0x20]
sub eax, 0x20
mov dword [esi + 0x5c], 0
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [esi + 0x58], eax
mov word [esi + 0x56], 0
mov dword [esi + 0x30], 0
mov dword [eax + 8], eax
xor eax, eax
mov word [esi + 0x54], ax
cmp cx, word [esi + 0x80]
jge 0x100c203d
mov eax, dword [esi + 0x8c]
push dword [esp + 0x1c]
mov dword [esi + 0x64], 0
mov dword [esi + 0x60], 0
movzx eax, word [eax + ebp*2]
push eax
push ecx
push esi
call fcn.100c2360
add esp, 0x10
test al, al
jne 0x100c2174
mov eax, dword [esi + 0x8c]
mov edi, dword [esi + 4]
mov edx, dword [esi + 0x48]
movzx eax, word [eax + ebp*2]
mov dword [esp + 0x10], eax
lea eax, [edi - 1]
test edx, eax
jne 0x100c1fd3
cmp edx, dword [esi + 0x4c]
jl 0x100c1fd3
cmp edx, dword [esi + 0x50]
jg 0x100c1fd3
mov ecx, dword [esi + 0x60]
test ecx, ecx
je 0x100c1fd3
mov eax, dword [esi + 0x58]
mov cl, byte [ecx + 0xc]
xor cl, byte [eax + 0xc]
test cl, 8
jne 0x100c1fd3
add dword [esi + 0x28], 0xfffffffc
mov ebx, dword [esi + 0x58]
mov eax, dword [esi + 0x28]
cmp eax, dword [ebx + 8]
je 0x100c1fef
test byte [ebx + 0xc], 8
je 0x100c1fef
neg edi
and edi, edx
sub edx, edi
cmp edx, dword [esi + 8]
jmp 0x100c1ffd
lea eax, [edi - 1]
neg edi
add eax, edx
and eax, edi
sub eax, edx
cmp eax, dword [esi + 8]
setge byte [esp + 0x18]
push dword [esp + 0x18]
push esi
call fcn.100c2af0
add esp, 8
test al, al
jne 0x100c2174
mov eax, dword [esi + 0x60]
test eax, eax
je 0x100c2021
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x10]
inc ebp
inc eax
movzx ecx, ax
movsx eax, word [esi + 0x80]
cmp ebp, eax
jl 0x100c1f66
movzx eax, word [esi + 0x54]
mov edi, dword [esi + 0x5c]
movzx ebp, ax
cmp ax, 1
jbe 0x100c217c
test edi, edi
je 0x100c217c
lea edx, [edi + 4]
mov dword [esp + 0x18], edx
cmp bp, 1
jbe 0x100c206d
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 8]
lea eax, [eax + ecx*4]
jmp 0x100c206f
xor eax, eax
mov dword [edx], eax
test byte [edi + 0xc], 8
mov ebx, dword [edi + 0x14]
mov edx, ebx
mov eax, dword [edi + 0x10]
je 0x100c2084
dec ebx
add ebx, eax
jmp 0x100c2094
sub edx, eax
lea eax, [eax*4 - 4]
inc edx
add dword [edi + 8], eax
mov dword [edi + 0x14], edx
mov eax, dword [esi + 0x30]
mov edi, dword [esi + 0x20]
lea ecx, [eax - 1]
shl eax, 2
sub edi, eax
test ecx, ecx
js 0x100c20cd
mov eax, dword [edi + ecx*4]
cmp edx, eax
jge 0x100c20b4
sub ecx, 1
jns 0x100c20a6
jmp 0x100c20cd
test ecx, ecx
js 0x100c20cd
cmp edx, eax
jle 0x100c20ed
nop dword [eax]
mov eax, dword [edi + ecx*4]
mov dword [edi + ecx*4], edx
sub ecx, 1
mov edx, eax
jns 0x100c20c0
add dword [esi + 0x24], 0xfffffffc
mov eax, dword [esi + 0x24]
cmp eax, dword [esi + 0x28]
jbe 0x100c216d
inc dword [esi + 0x30]
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x20]
shl eax, 2
sub ecx, eax
mov dword [ecx], edx
mov eax, dword [esi + 0x30]
lea edx, [ebx + 1]
mov edi, dword [esi + 0x20]
lea ecx, [eax - 1]
shl eax, 2
sub edi, eax
test ecx, ecx
js 0x100c212d
mov eax, dword [edi + ecx*4]
cmp edx, eax
jge 0x100c2110
sub ecx, 1
jns 0x100c2102
jmp 0x100c212d
test ecx, ecx
js 0x100c212d
cmp edx, eax
jle 0x100c2149
nop dword [eax + eax]
mov eax, dword [edi + ecx*4]
mov dword [edi + ecx*4], edx
sub ecx, 1
mov edx, eax
jns 0x100c2120
add dword [esi + 0x24], 0xfffffffc
mov eax, dword [esi + 0x24]
cmp eax, dword [esi + 0x28]
jbe 0x100c216d
inc dword [esi + 0x30]
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x20]
shl eax, 2
sub ecx, eax
mov dword [ecx], edx
mov edi, dword [esp + 0x18]
add ebp, 0xffff
mov edi, dword [edi]
test bp, bp
jne 0x100c2055
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x24]
pop edi
pop esi
pop ebp
setae al
pop ebx
pop ecx
ret
mov dword [esi + 0x2c], 0x62
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x24]
pop edi
mov dword [esi + 0x5c], 0
setae al
pop esi
pop ebp
pop ebx
pop ecx
ret