Function at 0x100441c9
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x2c], ebx
je 0x10044438
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov dword [ebp - 4], esi
test byte [esi + 0x19], 1
je 0x10044438
mov ecx, 0x300
test word [edi + 0x18], cx
jne 0x1004420b
push eax
push 1
mov ecx, edi
call fcn.10044590
jmp 0x1004443a
mov dword [ebp - 8], esi
mov edx, esi
mov dword [ebp - 0xc], esi
test esi, esi
je 0x1004421f
inc dword [esi + 4]
mov edx, dword [eax]
mov dword [ebp - 0xc], edx
mov eax, dword [edx + 0xc]
lea ecx, [edi + 0x10]
mov dword [ebp + 8], ecx
cmp eax, dword [edi + 0xc]
jne 0x10044236
mov eax, dword [edx + 0x10]
cmp eax, dword [ecx]
je 0x1004428b
jmp 0x10044239
mov dword [ebp + 8], ecx
push ebx
lea ecx, [ebp - 0x10]
call fcn.10033f27
mov ecx, dword [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x14]
push dword [edi + 0xc]
push eax
call fcn.10060404
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 8]
mov dword [eax], ebx
call fcn.10026226
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10044277
sub dword [ecx + 4], 1
jne 0x10044277
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov dword [ebp - 4], esi
test esi, esi
je 0x10044434
movzx edx, word [edi + 0x18]
mov eax, edx
shr eax, 8
test al, 1
je 0x1004436f
push 0x108
mov ecx, edi
call fcn.10043b91
test al, al
je 0x10044422
mov eax, dword [ebp + 8]
mov edx, ebx
mov dword [ebp - 0xc], edx
cmp dword [eax], ebx
jle 0x10044420
mov ecx, dword [edi + 0x14]
imul ecx, edx
mov dword [ebp - 8], ebx
add ecx, dword [edi + 0x2c]
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 0x14]
imul ecx, edx
add ecx, dword [esi + 0x2c]
cmp byte [esi + 0x18], 1
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi + 0xc]
jne 0x10044324
test ecx, ecx
jle 0x1004435e
mov esi, ebx
mov eax, esi
and eax, 0x80000007
jns 0x100442f8
dec eax
or eax, 0xfffffff8
inc eax
push 7
xor edx, edx
pop ecx
sub ecx, eax
inc edx
shl edx, cl
mov eax, esi
test eax, eax
jns 0x1004430b
add eax, 7
sar eax, 3
mov ecx, dword [ebp - 0x14]
test byte [eax + ecx], dl
jne 0x1004431c
mov eax, dword [ebp - 0x10]
mov byte [esi + eax], bl
inc esi
cmp esi, dword [edi + 0xc]
jl 0x100442ea
jmp 0x10044355
test ecx, ecx
jle 0x1004435e
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + ebx]
xor edx, edx
movzx eax, byte [esi]
imul eax, ecx
mov ecx, 0xff
div ecx
mov byte [esi], al
inc esi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [edi + 0xc]
jl 0x10044331
xor ebx, ebx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 4]
inc edx
mov dword [ebp - 0xc], edx
cmp edx, dword [eax]
jl 0x100442c0
jmp 0x10044420
mov eax, 0x220
cmp dx, ax
jne 0x100443f7
cmp byte [esi + 0x18], 1
je 0x10044422
mov edx, ebx
mov dword [ebp - 0x10], edx
cmp dword [ecx], ebx
jle 0x10044420
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x2c]
imul ecx, edx
add eax, 3
mov dword [ebp - 0x14], ebx
add eax, ecx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x14]
imul eax, edx
add eax, dword [esi + 0x2c]
cmp dword [edi + 0xc], 0
mov dword [ebp - 0xc], eax
mov eax, ebx
jle 0x100443ea
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
movzx ecx, byte [eax + esi]
xor edx, edx
movzx eax, byte [ebx]
imul eax, ecx
mov ecx, 0xff
div ecx
mov byte [ebx], al
lea ebx, [ebx + 4]
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [edi + 0xc]
jl 0x100443be
mov esi, dword [ebp - 4]
xor ebx, ebx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
inc edx
mov dword [ebp - 0x10], edx
cmp edx, dword [eax]
jl 0x10044390
jmp 0x10044420
mov dword [ebp + 8], esi
test esi, esi
je 0x10044401
inc dword [esi + 4]
mov ecx, dword [edi + 8]
lea eax, [ebp + 8]
push eax
call fcn.100441c9
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10044420
sub dword [ecx + 4], 1
jne 0x10044420
mov eax, dword [ecx]
push 1
call dword [eax]
mov bl, 1
test esi, esi
je 0x10044434
sub dword [esi + 4], 1
jne 0x10044434
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
mov al, bl
jmp 0x1004443a
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4