Function at 0x10007159
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push dword [ebp + 0x14]
call fcn.10016afb
xor edx, edx
mov esi, eax
mov dword [ebp - 0x10], edx
mov byte [ebp - 1], dl
test esi, esi
jne 0x1000717e
push 2
pop eax
jmp 0x10007418
mov eax, dword [esi + 0x30]
test eax, eax
je 0x10007199
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000eba8
jmp 0x10007418
cmp dword [esi + 0x6c], edx
je 0x100071a9
push 4
pop eax
mov dword [esi + 0x34], eax
jmp 0x10007418
cmp dword [esi + 0x54], edx
jne 0x100071b6
mov ecx, dword [esi + 0x64]
mov dword [ebp - 0x14], ecx
jmp 0x100071bc
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0xc]
lea ebx, [esi + 0x98]
mov dword [ebp - 0xc], eax
cmp dword [ebx], 0
jle 0x10007278
cmp dword [esi + 0xf8], 0
jne 0x10007245
cmp dword [esi + 0xa4], 0
je 0x10007240
mov eax, dword [esi + 0xa0]
sub eax, dword [ebx]
imul eax, dword [esi + 0x64]
add eax, dword [esi + 0x80]
cmp dword [esi + 0x54], 0
jne 0x10007233
push 1
push dword [esi + 0x3c]
push dword [esi + 0x40]
push eax
push edi
call fcn.10016afb
cmp dword [esi + 0xf0], 0
je 0x10007240
mov ecx, dword [esi + 0x40]
add ecx, 7
sar ecx, 3
mov edx, edi
test ecx, ecx
jle 0x10007240
or al, 0xff
sub al, byte [edx]
mov byte [edx], al
inc edx
dec ecx
jne 0x10007227
jmp 0x10007240
push dword [esi + 0x40]
push eax
push edi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add edi, dword [ebp - 0x14]
jmp 0x10007267
push dword [esi + 0x40]
push dword [esi + 0x84]
push edi
call sub.MSVCR100.dll_memcpy
push dword [esi + 0x40]
push 0
push dword [esi + 0x84]
call sub.MSVCR100.dll_memset
add esp, 0x18
dec dword [ebx]
mov eax, dword [ebp - 0xc]
inc dword [esi + 0x58]
dec eax
mov dword [ebp - 0xc], eax
jmp 0x10007401
cmp dword [esi + 0x8c], 0
jne 0x10007309
push dword [esi + 0x70]
lea ebx, [esi + 0x7c]
push dword [ebx]
push dword [esi + 0x78]
call sub.MSVCR100.dll_memcpy
mov eax, dword [esi + 0x78]
add esp, 0xc
add eax, dword [esi + 0x70]
mov dword [ebx], eax
jmp 0x100072e8
push 1
lea eax, [ebp - 1]
push eax
push dword [esi]
call dword [esi + 0x20]
xor ecx, ecx
inc ecx
add esp, 0xc
cmp eax, ecx
jne 0x1000740b
mov al, byte [ebp - 1]
test al, al
je 0x100072f8
movzx eax, al
push eax
push dword [ebx]
push dword [esi]
call dword [esi + 0x20]
movzx ecx, byte [ebp - 1]
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, ecx
jne 0x1000740b
add dword [esi + 0x70], eax
movzx eax, byte [ebp - 1]
add dword [ebx], eax
movzx eax, word [esi + 0x74]
sub eax, 0x100
cmp dword [esi + 0x70], eax
jb 0x100072a2
jmp 0x100072fe
mov dword [esi + 0x8c], ecx
mov eax, dword [esi + 0x78]
mov dword [ebx], eax
lea ebx, [esi + 0x98]
push dword [esi + 0x94]
push dword [esi + 0x84]
push dword [esi + 0x80]
call sub.MSVCR100.dll_memcpy
mov eax, dword [esi + 0x94]
lea ecx, [esi + 0x80]
add eax, dword [ecx]
add esp, 0xc
mov dword [esi + 0x84], eax
movzx eax, word [esi + 0x76]
mov dword [ebp - 8], eax
cmp dword [esi + 0xf8], 0
jne 0x10007372
lea eax, [ebp - 8]
push eax
push dword [esi + 0x70]
movzx eax, word [esi + 0x76]
push eax
push dword [esi + 0x7c]
push dword [esi + 0x84]
push dword [esi + 0xba]
call fcn.10016afb
mov dword [ebp - 0x10], eax
lea ecx, [esi + 0x80]
jmp 0x10007375
mov eax, dword [ebp - 0x10]
test eax, eax
jg 0x10007383
mov dword [esi + 0xf8], 1
mov edx, dword [esi + 0x70]
movzx eax, ax
cmp eax, edx
jg 0x10007413
cmp dword [esi + 0xf8], 0
jne 0x100073dc
sub edx, eax
mov dword [esi + 0x70], edx
mov edx, dword [ebp - 0x10]
movzx ecx, dx
add dword [esi + 0x7c], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [esi + 0x94]
add eax, ecx
cdq
idiv dword [esi + 0x64]
mov dword [ebx], eax
mov eax, dword [ebp - 8]
add eax, ecx
cdq
idiv dword [esi + 0x64]
mov eax, dword [ebx]
mov dword [esi + 0xa0], eax
imul eax, dword [esi + 0x64]
add eax, dword [esi + 0x80]
mov dword [esi + 0x94], edx
jmp 0x100073f8
mov eax, dword [esi + 0x94]
add eax, dword [ecx]
and dword [esi + 0x94], 0
add dword [esi + 0x7c], edx
and dword [esi + 0x70], 0
mov dword [ebx], 1
mov dword [esi + 0x84], eax
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x100071cd
jmp 0x10007416
push 0xa
pop eax
mov dword [esi + 0x34], eax
jmp 0x10007416
push 6
pop eax
pop edi
pop ebx
pop esi
leave
ret