Function at 0x100017a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100c29a8
push 0x10024300
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x100c7140]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edx, ecx
mov dword [ebp - 0x434], edx
mov dword [ebp - 0x448], edx
cmp byte [edx + 0x3c], 0
jne 0x10001aa0
mov ebx, dword [edx + 0x40]
mov dword [ebp - 0x42c], ebx
test ebx, ebx
jne 0x1000180b
cmp dword [edx + 0x44], ebx
je 0x10001aa0
test ebx, ebx
je 0x1000181c
mov esi, dword [edx + 0x44]
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x100018c0
xor esi, esi
mov dword [ebp - 0x424], esi
mov edi, dword [ebx + 0x3c]
add edi, ebx
movzx eax, word [edi + 6]
xor ecx, ecx
test eax, eax
je 0x100018ba
mov edx, dword [edi + 0x74]
dec eax
mov dword [ebp - 0x430], eax
xor eax, eax
mov dword [ebp - 0x420], eax
nop dword [eax]
add edx, eax
mov eax, dword [edi + edx*8 + 0x88]
test eax, eax
jne 0x10001864
mov eax, dword [edi + edx*8 + 0x80]
test dword [edi + edx*8 + 0x9c], 0x20000000
je 0x1000187c
mov esi, dword [edi + edx*8 + 0x84]
add esi, ebx
add esi, eax
cmp ecx, dword [ebp - 0x430]
jne 0x10001893
test esi, esi
jne 0x10001893
mov esi, dword [edi + edx*8 + 0x8c]
add esi, ebx
add esi, eax
inc ecx
mov eax, dword [ebp - 0x420]
add eax, 5
mov dword [ebp - 0x420], eax
movzx edx, word [edi + 6]
cmp ecx, edx
mov edx, dword [edi + 0x74]
jl 0x10001850
mov dword [ebp - 0x424], esi
mov edx, dword [ebp - 0x434]
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x420], edx
cmp dword [edx + 0x14], 0xf
jbe 0x100018d4
mov eax, dword [edx]
mov dword [ebp - 0x420], eax
lea ecx, [edx + 0x18]
mov dword [ebp - 0x430], ecx
cmp dword [ecx + 0x14], 0xf
jbe 0x100018eb
mov eax, dword [ecx]
mov dword [ebp - 0x430], eax
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x428], eax
mov eax, dword [ecx + 0x10]
jbe 0x100018fb
mov ecx, dword [ecx]
or edi, 0xffffffff
test eax, eax
je 0x1000191f
dec eax
mov edx, edi
cmp eax, edi
cmovb edx, eax
add edx, ecx
cmp byte [edx], 0xff
jne 0x1000191b
cmp edx, ecx
je 0x1000191f
dec edx
cmp byte [edx], 0xff
je 0x10001911
sub edx, ecx
jmp 0x10001922
or edx, 0xffffffff
cmp edx, 0xffffffff
cmove edx, edi
mov dword [ebp - 0x43c], edx
mov dword [ebp - 0x440], 0
lea eax, [ebp - 0x43c]
lea ecx, [ebp - 0x440]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x10001962
push 0x400
push 0
lea eax, [ebp - 0x41c]
push eax
call fcn.100249e0
add esp, 0xc
jmp 0x10001971
mov ecx, 0x100
mov eax, edx
lea edi, [ebp - 0x41c]
rep stosd dword es:[edi], eax
xor edi, edi
mov eax, dword [ebp - 0x428]
test eax, eax
jle 0x100019bd
mov ebx, dword [ebp - 0x420]
mov esi, eax
nop word [eax + eax]
movzx eax, byte [ebx + edi]
lea edx, [ebp - 0x41c]
lea edx, [edx + eax*4]
mov eax, edi
cmp dword [edx], edi
cmovge eax, dword [edx]
mov dword [edx], eax
inc edi
cmp edi, esi
jl 0x10001990
mov ebx, dword [ebp - 0x42c]
mov esi, dword [ebp - 0x424]
mov eax, dword [ebp - 0x428]
mov dword [ebp - 4], 0
sub esi, eax
mov dword [ebp - 0x424], esi
mov edi, dword [ebp - 0x420]
mov dword [ebp - 0x438], ebx
cmp ebx, esi
ja 0x10001a6a
mov dword [ebp - 0x42c], ebx
mov edx, dword [ebp - 0x430]
dec eax
mov dword [ebp - 0x444], eax
test eax, eax
js 0x10001a06
mov cl, byte [eax + ebx]
and cl, byte [eax + edx]
cmp byte [eax + edi], cl
je 0x100019ec
test eax, eax
jns 0x10001a38
mov esi, dword [ebp - 0x434]
lea eax, [ebp - 0x42c]
push eax
lea ecx, [esi + 0x30]
call fcn.10001650
mov eax, dword [esi + 0x34]
sub eax, dword [esi + 0x30]
sar eax, 2
cmp eax, dword [ebp + 8]
je 0x10001a6a
inc ebx
mov esi, dword [ebp - 0x424]
mov eax, dword [ebp - 0x428]
jmp 0x100019d2
movzx ecx, byte [eax + ebx]
sub eax, dword [ebp + ecx*4 - 0x41c]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x44c], 1
mov ecx, 1
cmp eax, ecx
cmovg ecx, eax
add ebx, ecx
mov eax, dword [ebp - 0x428]
jmp 0x100019d2
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x434]
jmp 0x10001a9c
mov byte [eax + 0x3c], 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100230bc
mov esp, ebp
pop ebp
ret 4