Function at 0x100ea980
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 4], ebx
push edi
mov eax, dword [esi + 0x1c]
sub eax, 0x20
mov dword [esi + 0x54], 0
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x50], eax
mov word [esi + 0x4e], 0
mov dword [esi + 0x2c], 0
mov dword [eax + 8], eax
xor eax, eax
mov word [esi + 0x4c], ax
cmp cx, word [esi + 0x78]
jge 0x100eaaa5
nop dword [eax]
mov eax, dword [esi + 0x84]
push dword [ebp + 0xc]
mov dword [esi + 0x5c], 0
mov dword [esi + 0x58], 0
movzx eax, word [eax + ebx*2]
push eax
push ecx
push esi
call fcn.100eae10
add esp, 0x10
test al, al
jne 0x100eabda
mov eax, dword [esi + 0x84]
mov edi, dword [esi + 4]
mov edx, dword [esi + 0x40]
movzx eax, word [eax + ebx*2]
mov dword [ebp - 8], eax
lea eax, [edi - 1]
test edx, eax
jne 0x100eaa3b
cmp edx, dword [esi + 0x44]
jl 0x100eaa3b
cmp edx, dword [esi + 0x48]
jg 0x100eaa3b
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x100eaa3b
mov eax, dword [esi + 0x50]
mov cl, byte [ecx + 0xc]
xor cl, byte [eax + 0xc]
test cl, 8
jne 0x100eaa3b
add dword [esi + 0x24], 0xfffffffc
mov ebx, dword [esi + 0x50]
mov eax, dword [esi + 0x24]
cmp eax, dword [ebx + 8]
je 0x100eaa57
test byte [ebx + 0xc], 8
je 0x100eaa57
neg edi
and edi, edx
sub edx, edi
cmp edx, dword [esi + 8]
jmp 0x100eaa65
lea eax, [edi - 1]
neg edi
add eax, edx
and eax, edi
sub eax, edx
cmp eax, dword [esi + 8]
setge byte [ebp + 8]
push dword [ebp + 8]
push esi
call fcn.100eb5a0
add esp, 8
test al, al
jne 0x100eabda
mov eax, dword [esi + 0x58]
test eax, eax
je 0x100eaa87
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 4]
inc eax
inc ebx
movzx ecx, ax
movsx eax, word [esi + 0x78]
mov dword [ebp - 4], ebx
cmp ebx, eax
jl 0x100ea9d0
movzx eax, word [esi + 0x4c]
mov edi, dword [esi + 0x54]
movzx ecx, ax
mov dword [ebp + 8], ecx
cmp ax, 1
jbe 0x100eabe3
test edi, edi
je 0x100eabe3
lea edx, [edi + 4]
mov dword [ebp - 8], edx
cmp cx, 1
jbe 0x100eaad7
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 8]
lea eax, [eax + ecx*4]
jmp 0x100eaad9
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 0x100eaaee
dec ebx
add ebx, eax
jmp 0x100eaafe
sub edx, eax
lea eax, [eax*4 - 4]
inc edx
add dword [edi + 8], eax
mov dword [edi + 0x14], edx
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x1c]
lea ecx, [eax - 1]
shl eax, 2
sub edi, eax
test ecx, ecx
js 0x100eab33
mov eax, dword [edi + ecx*4]
cmp edx, eax
jge 0x100eab1e
sub ecx, 1
jns 0x100eab10
jmp 0x100eab33
test ecx, ecx
js 0x100eab33
cmp edx, eax
jle 0x100eab53
mov eax, dword [edi + ecx*4]
mov dword [edi + ecx*4], edx
sub ecx, 1
mov edx, eax
jns 0x100eab26
add dword [esi + 0x20], 0xfffffffc
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 0x24]
jbe 0x100eabd3
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x1c]
shl eax, 2
sub ecx, eax
mov dword [ecx], edx
mov eax, dword [esi + 0x2c]
lea edx, [ebx + 1]
mov edi, dword [esi + 0x1c]
lea ecx, [eax - 1]
shl eax, 2
sub edi, eax
test ecx, ecx
js 0x100eab8d
mov eax, dword [edi + ecx*4]
cmp edx, eax
jge 0x100eab76
sub ecx, 1
jns 0x100eab68
jmp 0x100eab8d
test ecx, ecx
js 0x100eab8d
cmp edx, eax
jle 0x100eaba9
nop
mov eax, dword [edi + ecx*4]
mov dword [edi + ecx*4], edx
sub ecx, 1
mov edx, eax
jns 0x100eab80
add dword [esi + 0x20], 0xfffffffc
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 0x24]
jbe 0x100eabd3
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x1c]
shl eax, 2
sub ecx, eax
mov dword [ecx], edx
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 8]
add ecx, 0xffff
mov dword [ebp + 8], ecx
mov edi, dword [edi]
test cx, cx
jne 0x100eaac0
mov eax, dword [esi + 0x24]
cmp eax, dword [esi + 0x20]
pop edi
pop esi
setae al
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x28], 0x62
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x24]
cmp eax, dword [esi + 0x20]
pop edi
mov dword [esi + 0x54], 0
setae al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret