Function at 0x441430
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x4e0070]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], edx
mov dword [ebp - 0xb8], edi
mov eax, dword [edi]
mov dword [eax + 8], 0
call fcn.00440aa0
test eax, eax
jne 0x441481
mov edx, dword [edi]
mov ecx, edi
push eax
mov edx, dword [edx + 8]
call fcn.00440310
jmp 0x4419e1
mov eax, dword [edi]
mov ecx, dword [eax + 8]
mov dword [ebp - 0xac], ecx
cmp ecx, 3
jne 0x4414b7
cmp dword [edi + 0x47ec], ecx
je 0x4414ab
cmp dword [edi + 0x47e8], 0
jne 0x4414b7
cmp dword [edi + 0x47e4], 0
jne 0x4414b7
mov dword [ebp - 0xb0], 1
jmp 0x4414c1
mov dword [ebp - 0xb0], 0
test ecx, ecx
jg 0x4414d5
mov edx, ecx
mov ecx, edi
push 0
call fcn.00440310
jmp 0x4419e1
mov dword [ebp - 0x94], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xa8], xmm0
test ecx, ecx
jle 0x4415e7
lea ebx, [edi + 0x46a0]
lea esi, [ebp - 0x7c]
mov dword [ebp - 0x90], ebx
mov eax, dword [eax]
add eax, 3
push eax
call fcn.00482f17
add esp, 4
mov dword [ebx + 0x34], eax
test eax, eax
je 0x4419c1
mov eax, dword [edi + 0x4684]
cdq
idiv dword [ebx]
mov dword [esi + 0xc], 0
mov dword [ebp - 0x98], eax
mov dword [esi - 4], eax
mov eax, dword [edi + 0x4688]
cdq
idiv dword [ebx + 4]
xor edx, edx
mov ebx, eax
mov eax, dword [edi]
mov ecx, ebx
mov dword [esi], ebx
sar ecx, 1
mov dword [esi + 8], ecx
mov ecx, dword [eax]
mov eax, dword [ebp - 0x98]
dec eax
add eax, ecx
mov ecx, dword [ebp - 0x98]
div ecx
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x90]
mov eax, dword [eax + 0x28]
mov dword [esi - 8], eax
mov dword [esi - 0xc], eax
cmp ecx, 1
jne 0x441590
cmp ebx, ecx
jne 0x441582
mov dword [esi - 0x10], 0x440cb0
jmp 0x4415ba
cmp ebx, 2
jne 0x441590
mov dword [esi - 0x10], 0x440cc0
jmp 0x4415ba
cmp ecx, 2
jne 0x4415b3
cmp ebx, 1
jne 0x4415a3
mov dword [esi - 0x10], 0x440d10
jmp 0x4415ba
cmp ebx, 2
jne 0x4415b3
mov eax, dword [edi + 0x4814]
mov dword [esi - 0x10], eax
jmp 0x4415ba
mov dword [esi - 0x10], 0x441060
mov eax, dword [ebp - 0x94]
add esi, 0x20
mov ebx, dword [ebp - 0x90]
inc eax
add ebx, 0x48
mov dword [ebp - 0x94], eax
cmp eax, dword [ebp - 0xac]
mov eax, dword [edi]
mov dword [ebp - 0x90], ebx
jl 0x441500
mov eax, dword [edi]
mov ecx, 4
push 1
mov ebx, dword [eax + 4]
mov esi, dword [eax]
mov edx, esi
push ebx
call fcn.0043be90
add esp, 8
test eax, eax
je 0x4419c1
imul esi, ebx
lea eax, [esi*4 + 1]
push eax
call fcn.00482f17
mov esi, eax
add esp, 4
mov dword [ebp - 0xb4], esi
test esi, esi
je 0x4419c1
mov ecx, dword [edi]
xor edx, edx
mov dword [ebp - 0x90], edx
cmp dword [ecx + 4], edx
jbe 0x441984
mov ebx, dword [ebp - 0xa8]
mov eax, dword [ecx]
imul eax, edx
cmp dword [ebp - 0xac], 0
mov dword [ebp - 0x94], 0
lea esi, [esi + eax*4]
mov dword [ebp - 0x98], esi
jle 0x441706
lea ebx, [edi + 0x46bc]
mov edi, dword [ebp - 0xac]
lea esi, [ebp - 0x74]
mov eax, dword [esi - 8]
mov ecx, dword [esi]
sar eax, 1
cmp ecx, eax
jl 0x441688
mov edx, dword [esi - 0x14]
jmp 0x44168b
mov edx, dword [esi - 0x10]
cmp ecx, eax
jl 0x441694
mov eax, dword [esi - 0x10]
jmp 0x441697
mov eax, dword [esi - 0x14]
push dword [esi - 0xc]
push dword [esi - 4]
push edx
push eax
push dword [ebx + 0x18]
call dword [esi - 0x18]
mov ecx, dword [ebp - 0x94]
add esp, 0x14
mov dword [ebp + ecx*4 - 0xa8], eax
mov eax, dword [esi]
inc eax
mov dword [esi], eax
cmp eax, dword [esi - 8]
jl 0x4416dd
inc dword [esi + 4]
mov eax, dword [esi + 4]
mov edx, dword [esi - 0x10]
mov dword [esi], 0
mov dword [esi - 0x14], edx
cmp eax, dword [ebx]
jge 0x4416dd
mov eax, dword [ebx + 4]
add eax, edx
mov dword [esi - 0x10], eax
inc ecx
add esi, 0x20
add ebx, 0x48
mov dword [ebp - 0x94], ecx
cmp ecx, edi
jl 0x441678
mov edi, dword [ebp - 0xb8]
mov ebx, dword [ebp - 0xa8]
mov esi, dword [ebp - 0x98]
mov edx, dword [ebp - 0x90]
mov eax, dword [edi]
mov ecx, dword [eax + 8]
cmp ecx, 3
jne 0x4417a4
cmp dword [ebp - 0xb0], 0
je 0x441782
xor esi, esi
cmp dword [eax], esi
jbe 0x44196c
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp - 0xa4]
add ecx, 2
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x94], ebx
sub ebx, edx
sub eax, edx
mov dword [ebp - 0x94], eax
nop dword [eax]
movzx eax, byte [ebx + edx]
lea ecx, [ecx + 4]
mov byte [ecx - 6], al
lea edx, [edx + 1]
movzx eax, byte [edx - 1]
inc esi
mov byte [ecx - 5], al
mov eax, dword [ebp - 0x94]
movzx eax, byte [eax + edx - 1]
mov byte [ecx - 4], al
mov byte [ecx - 3], 0xff
mov eax, dword [edi]
cmp esi, dword [eax]
jb 0x441750
jmp 0x441960
push 4
push dword [eax]
mov eax, dword [edi + 0x4810]
push dword [ebp - 0xa0]
push dword [ebp - 0xa4]
push ebx
push esi
call eax
add esp, 0x18
jmp 0x441966
cmp ecx, 4
jne 0x441931
mov ecx, dword [edi + 0x47e8]
test ecx, ecx
jne 0x44187e
mov dword [ebp - 0x94], ecx
cmp dword [eax], ecx
jbe 0x44196c
mov edx, dword [ebp - 0x9c]
add esi, 2
mov ecx, dword [ebp - 0xa4]
mov ebx, edx
mov eax, dword [ebp - 0xa8]
sub ecx, edx
mov dword [ebp - 0x98], ecx
sub eax, edx
mov ecx, dword [ebp - 0xa0]
sub ecx, edx
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], ecx
nop
movzx ecx, byte [eax + ebx]
lea esi, [esi + 4]
movzx edx, byte [ebx]
lea ebx, [ebx + 1]
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [esi - 6], al
mov eax, dword [ebp - 0x98]
movzx ecx, byte [eax + ebx - 1]
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [esi - 5], al
mov eax, dword [ebp - 0xbc]
movzx ecx, byte [eax + ebx - 1]
imul ecx, edx
mov byte [esi - 3], 0xff
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
mov ecx, dword [ebp - 0x94]
shr eax, 8
inc ecx
mov byte [esi - 4], al
mov eax, dword [edi]
mov dword [ebp - 0x94], ecx
cmp ecx, dword [eax]
mov eax, dword [ebp - 0xc0]
jb 0x441800
jmp 0x441960
push 4
push dword [eax]
mov eax, dword [edi + 0x4810]
push dword [ebp - 0xa0]
push dword [ebp - 0xa4]
push dword [ebp - 0xa8]
push esi
cmp ecx, 2
jne 0x44192a
call eax
mov eax, dword [edi]
xor ebx, ebx
add esp, 0x18
cmp dword [eax], ebx
jbe 0x441960
add esi, 2
nop dword [eax + eax]
mov eax, dword [ebp - 0x9c]
lea esi, [esi + 4]
movzx edx, byte [ebx + eax]
inc ebx
movzx eax, byte [esi - 6]
not al
movzx ecx, al
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [esi - 6], al
movzx eax, byte [esi - 5]
not al
movzx ecx, al
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [esi - 5], al
movzx eax, byte [esi - 4]
not al
movzx ecx, al
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [esi - 4], al
mov eax, dword [edi]
cmp ebx, dword [eax]
jb 0x4418c0
jmp 0x441960
call eax
add esp, 0x18
jmp 0x441960
xor edx, edx
cmp dword [eax], edx
jbe 0x441966
lea ecx, [esi + 1]
nop word [eax + eax]
mov eax, dword [ebp - 0xa8]
lea ecx, [ecx + 4]
mov al, byte [edx + eax]
inc edx
mov byte [ecx - 3], al
mov byte [ecx - 4], al
mov byte [ecx - 5], al
mov byte [ecx - 2], 0xff
mov eax, dword [edi]
cmp edx, dword [eax]
jb 0x441940
mov ebx, dword [ebp - 0xa8]
mov edx, dword [ebp - 0x90]
mov ecx, dword [edi]
inc edx
mov esi, dword [ebp - 0xb4]
mov dword [ebp - 0x90], edx
cmp edx, dword [ecx + 4]
jb 0x441644
mov edx, dword [edi]
mov ecx, edi
push 0
mov edx, dword [edx + 8]
call fcn.00440310
mov eax, dword [edi]
add esp, 4
mov ecx, dword [ebp - 0xc4]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [edi]
mov ecx, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ecx], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0045d520
mov esp, ebp
pop ebp
ret
mov edx, dword [edi]
mov ecx, edi
push 0
mov edx, dword [edx + 8]
call fcn.00440310
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 8], str.outofmem
mov ecx, dword [ebp - 8]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0045d520
mov esp, ebp
pop ebp
ret