Function at 0x100611f0
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x24], edx
mov ecx, dword [esp + 0x3c]
mov ebp, ecx
push edi
sar ebp, 8
mov ebx, dword [esi + 0x78]
mov edi, ebx
mov eax, dword [esi + 0x54]
sar edi, 8
mov dword [esp + 0x34], ebp
cmp edi, eax
jl 0x1006121d
cmp ebp, eax
jge 0x10061228
mov eax, dword [esi + 0x50]
cmp edi, eax
jge 0x10061238
cmp ebp, eax
jge 0x10061238
pop edi
mov dword [esi + 0x74], edx
mov dword [esi + 0x78], ecx
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4
mov eax, dword [esi + 0x74]
mov ecx, eax
mov ebp, dword [esp + 0x28]
sar edx, 8
mov dword [esp + 0x18], ebp
sub dword [esp + 0x18], eax
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x24], edx
movzx edx, al
mov eax, dword [esp + 0x40]
sub eax, dword [esi + 0x78]
sar ecx, 8
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edx
movzx ebx, bl
mov dword [esp + 0x20], eax
cmp ecx, dword [esp + 0x24]
jne 0x1006127e
cmp edi, ebp
je 0x100614b8
test eax, eax
jne 0x10061293
mov edx, dword [esp + 0x24]
mov ecx, esi
push ebp
call fcn.10061180
jmp 0x100614d7
cmp dword [esp + 0x18], 0
jne 0x10061307
test eax, eax
jle 0x100612d7
nop
mov eax, 0x100
inc edi
sub eax, ebx
add dword [esi + 0x5c], eax
mov eax, 0x100
sub eax, ebx
xor ebx, ebx
imul eax, edx
mov edx, ecx
push edi
mov ecx, esi
add eax, eax
add dword [esi + 0x58], eax
call fcn.10061180
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
cmp edi, ebp
jne 0x100612a0
jmp 0x100614b8
sub dword [esi + 0x5c], ebx
mov eax, edx
imul eax, ebx
dec edi
mov edx, ecx
mov ebx, 0x100
push edi
mov ecx, esi
neg eax
add eax, eax
add dword [esi + 0x58], eax
call fcn.10061180
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
cmp edi, ebp
jne 0x100612d7
jmp 0x100614b8
mov ebp, dword [esp + 0x18]
imul ebp, ebx
imul eax, edx
sub ebp, eax
cmp ecx, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
je 0x1006132b
mov eax, 0xffffff
cdq
idiv ecx
mov dword [esp + 0x2c], eax
jmp 0x10061333
mov dword [esp + 0x2c], 0
cmp edi, dword [esp + 0x34]
je 0x10061349
mov eax, 0xffffff
cdq
idiv dword [esp + 0x20]
mov dword [esp + 0x30], eax
jmp 0x10061351
mov dword [esp + 0x30], 0
mov eax, ecx
shl eax, 8
mov edx, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], edx
mov ecx, ebp
sub ecx, edx
test ebp, ebp
jg 0x100613af
test ecx, ecx
jle 0x100613b3
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
neg eax
imul ecx, ebp
shl eax, 8
add ebp, eax
shr ecx, 0x18
mov eax, ecx
sub eax, ebx
add dword [esi + 0x5c], eax
mov eax, ecx
sub eax, ebx
mov ebx, ecx
imul eax, dword [esp + 0x10]
mov dword [esp + 0x10], 0x100
add dword [esi + 0x58], eax
mov eax, dword [esp + 0x38]
dec dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jmp 0x10061488
test ecx, ecx
jg 0x10061403
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
shl eax, 8
add eax, ebp
test eax, eax
jle 0x10061403
mov edx, dword [esp + 0x30]
mov ebp, ecx
mov ecx, dword [esp + 0x10]
mov eax, 0x100
imul edx, ebp
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 [esp + 0x10], edx
imul ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
add dword [esi + 0x58], ecx
inc edi
jmp 0x10061488
mov ecx, dword [esp + 0x20]
mov eax, ecx
sub eax, dword [esp + 0x18]
shl eax, 8
add eax, ebp
test eax, eax
jg 0x1006145d
mov eax, ecx
shl eax, 8
add eax, ebp
js 0x1006145d
mov edx, dword [esp + 0x2c]
mov ebp, eax
imul edx, ebp
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 [esp + 0x10]
add eax, 0x100
mov dword [esp + 0x10], 0
imul ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
add dword [esi + 0x58], ecx
inc dword [esp + 0x1c]
jmp 0x10061488
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
sub dword [esi + 0x5c], ebx
imul ecx, ebp
add ebp, edx
mov dword [esp + 0x14], edx
neg ecx
shr ecx, 0x18
add eax, ecx
mov dword [esp + 0x10], ecx
imul eax, ebx
mov ebx, 0x100
sub dword [esi + 0x58], eax
dec edi
mov edx, dword [esp + 0x1c]
mov ecx, esi
push edi
call fcn.10061180
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x1c], eax
jne 0x10061360
mov dword [esp + 0x14], edx
cmp edi, dword [esp + 0x34]
jne 0x10061360
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
movzx ecx, al
mov eax, ecx
sub ecx, ebx
sub eax, ebx
add dword [esi + 0x5c], eax
mov eax, dword [esp + 0x28]
movzx eax, al
add eax, edx
imul eax, ecx
add dword [esi + 0x58], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x78], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4