Function at 0x100e6ec2
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x10]
mov ecx, eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
sar ecx, 8
mov dword [ebp - 0xc], ecx
mov ebx, dword [esi + 0x78]
mov edi, ebx
sar edi, 8
cmp edi, dword [esi + 0x54]
jl 0x100e6eef
cmp ecx, dword [esi + 0x54]
jge 0x100e715b
cmp edi, dword [esi + 0x50]
jge 0x100e6efd
cmp ecx, dword [esi + 0x50]
jl 0x100e715b
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 0x74]
mov edx, eax
sar ecx, 8
mov dword [ebp - 0x18], ecx
movzx ecx, al
mov dword [ebp + 8], ecx
mov ecx, dword [ebp + 0xc]
sub ecx, eax
sar edx, 8
mov eax, dword [ebp + 0x10]
sub eax, dword [esi + 0x78]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
movzx ebx, bl
mov dword [ebp - 0x14], eax
cmp edx, dword [ebp - 0x18]
jne 0x100e6f3b
cmp edi, ecx
je 0x100e713a
test eax, eax
jne 0x100e6f51
push ecx
push dword [ebp - 0x18]
push esi
call fcn.100e7169
add esp, 0xc
jmp 0x100e7158
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x100e6fbf
test eax, eax
jle 0x100e6f91
mov eax, 0x100
sub eax, ebx
add dword [esi + 0x5c], eax
mov eax, 0x100
sub eax, ebx
xor ebx, ebx
imul eax, dword [ebp + 8]
add eax, eax
add dword [esi + 0x58], eax
inc edi
push edi
push edx
push esi
call fcn.100e7169
mov edx, dword [ebp - 4]
add esp, 0xc
cmp edi, dword [ebp - 0xc]
jne 0x100e6f5c
jmp 0x100e713a
mov eax, dword [ebp + 8]
sub dword [esi + 0x5c], ebx
imul eax, ebx
mov ebx, 0x100
neg eax
add eax, eax
add dword [esi + 0x58], eax
dec edi
push edi
push edx
push esi
call fcn.100e7169
mov edx, dword [ebp - 4]
add esp, 0xc
cmp edi, dword [ebp - 0xc]
jne 0x100e6f91
jmp 0x100e713a
imul eax, dword [ebp + 8]
imul ecx, ebx
sub ecx, eax
mov dword [ebp - 8], ecx
cmp edx, dword [ebp - 0x18]
je 0x100e6fde
mov eax, 0xffffff
cdq
idiv dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
jmp 0x100e6fe2
and dword [ebp - 0x1c], 0
cmp edi, dword [ebp - 0xc]
je 0x100e6ff5
mov eax, 0xffffff
cdq
idiv dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
jmp 0x100e6ff9
and dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x10]
shl edx, 8
mov dword [ebp - 0x24], edx
test ecx, ecx
jg 0x100e704a
mov eax, ecx
sub eax, edx
test eax, eax
jle 0x100e704a
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x14], 0xffffff00
imul ecx, edx
add edx, eax
shr ecx, 0x18
mov eax, ecx
mov dword [ebp - 8], edx
sub eax, ebx
add dword [esi + 0x5c], eax
mov eax, ecx
sub eax, ebx
mov ebx, ecx
imul eax, dword [ebp + 8]
mov dword [ebp + 8], 0x100
add dword [esi + 0x58], eax
mov eax, dword [ebp - 4]
dec eax
jmp 0x100e70e1
mov eax, ecx
sub eax, edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov edx, eax
sub edx, dword [ebp - 0x10]
cmp dword [ebp - 0x28], 0
jg 0x100e70a2
mov eax, edx
shl eax, 8
add eax, ecx
test eax, eax
jle 0x100e709f
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
imul edx, eax
mov dword [ebp - 8], eax
mov eax, 0x100
sub eax, ebx
add dword [esi + 0x5c], eax
mov eax, 0x100
sub eax, ebx
xor ebx, ebx
neg edx
shr edx, 0x18
add ecx, edx
mov dword [ebp + 8], edx
imul ecx, eax
add dword [esi + 0x58], ecx
inc edi
jmp 0x100e7111
mov eax, dword [ebp - 0x14]
shl edx, 8
add edx, ecx
test edx, edx
jg 0x100e70e6
shl eax, 8
add eax, ecx
js 0x100e70e6
mov edx, dword [ebp - 0x1c]
imul edx, eax
mov dword [ebp - 8], eax
shr edx, 0x18
mov eax, edx
mov ecx, edx
sub eax, ebx
sub ecx, ebx
add dword [esi + 0x5c], eax
mov ebx, edx
mov eax, dword [ebp + 8]
and dword [ebp + 8], 0
add eax, 0x100
imul ecx, eax
mov eax, dword [ebp - 4]
add dword [esi + 0x58], ecx
inc eax
mov dword [ebp - 4], eax
jmp 0x100e7114
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
sub dword [esi + 0x5c], ebx
imul ecx, eax
add eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
neg ecx
shr ecx, 0x18
add eax, ecx
mov dword [ebp + 8], ecx
imul eax, ebx
mov ebx, 0x100
sub dword [esi + 0x58], eax
dec edi
mov eax, dword [ebp - 4]
push edi
push eax
push esi
call fcn.100e7169
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x24]
cmp dword [ebp - 4], eax
jne 0x100e7002
cmp edi, dword [ebp - 0xc]
jne 0x100e7002
mov eax, dword [ebp + 0x10]
movzx ecx, al
mov eax, ecx
sub ecx, ebx
sub eax, ebx
add dword [esi + 0x5c], eax
mov eax, dword [ebp + 0xc]
movzx eax, al
add eax, dword [ebp + 8]
imul eax, ecx
add dword [esi + 0x58], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
pop edi
mov dword [esi + 0x74], ecx
mov dword [esi + 0x78], eax
pop esi
pop ebx
leave
ret