Function at 0x10077b00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xd0
mov eax, dword [0x10200e40]
xor eax, esp
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xd4]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], edi
mov eax, dword [edi]
mov dword [eax + 8], 0
call fcn.10076f60
mov edx, dword [edi]
mov ebp, dword [edx + 8]
mov dword [esp + 0x18], ebp
test eax, eax
jne 0x10077b58
push 0
mov edx, ebp
mov ecx, edi
call fcn.10076700
jmp 0x10078097
cmp ebp, 3
jne 0x10077b85
cmp dword [edi + 0x47ec], ebp
je 0x10077b77
cmp dword [edi + 0x47e8], 0
jne 0x10077b85
cmp dword [edi + 0x47e4], 0
jne 0x10077b85
mov dword [esp + 0x34], 1
mov dword [esp + 0x18], ebp
jmp 0x10077b91
mov dword [esp + 0x34], 0
test ebp, ebp
jle 0x10077b48
xorps xmm0, xmm0
mov dword [esp + 0x38], 0
lea esi, [edi + 0x46a0]
movups xmmword [esp + 0x24], xmm0
lea ebx, [esp + 0x68]
mov dword [esp + 0x14], esi
nop
mov eax, dword [edi]
mov eax, dword [eax]
add eax, 3
push eax
call fcn.1012189d
add esp, 4
mov dword [esi + 0x34], eax
test eax, eax
je 0x10078070
mov eax, dword [edi + 0x4684]
cdq
idiv dword [esi]
mov dword [ebx + 0xc], 0
mov dword [esp + 0x20], eax
mov dword [ebx - 4], eax
mov eax, dword [edi + 0x4688]
cdq
idiv dword [esi + 4]
xor edx, edx
mov esi, eax
mov eax, dword [esp + 0x20]
mov ecx, esi
mov dword [ebx], esi
sar ecx, 1
dec eax
mov dword [ebx + 8], ecx
mov ecx, dword [edi]
add eax, dword [ecx]
mov ecx, dword [esp + 0x20]
div ecx
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x28]
mov dword [ebx - 8], eax
mov dword [ebx - 0xc], eax
cmp ecx, 1
jne 0x10077c34
cmp esi, ecx
jne 0x10077c28
mov eax, 0x100771e0
jmp 0x10077c57
cmp esi, 2
jne 0x10077c52
mov eax, 0x100771f0
jmp 0x10077c57
cmp ecx, 2
jne 0x10077c52
cmp esi, 1
jne 0x10077c45
mov eax, 0x100773c0
jmp 0x10077c57
cmp esi, 2
jne 0x10077c52
mov eax, dword [edi + 0x4814]
jmp 0x10077c57
mov eax, 0x100776e0
mov esi, dword [esp + 0x14]
mov dword [ebx - 0x10], eax
add esi, 0x48
mov eax, dword [esp + 0x38]
add ebx, 0x20
inc eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x38], eax
cmp eax, ebp
jl 0x10077bb0
mov eax, dword [edi]
mov ecx, dword [eax]
mov esi, dword [eax + 4]
test ecx, ecx
js 0x10078070
jne 0x10077c93
lea ebx, [ecx*4]
jmp 0x10077cb3
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x10078070
lea ebx, [ecx*4]
test ebx, ebx
js 0x10078070
test esi, esi
js 0x10078070
je 0x10077ccd
mov eax, 0x7fffffff
cdq
idiv esi
cmp ebx, eax
jg 0x10078070
imul ecx, esi
lea eax, [ecx*4 + 1]
push eax
call fcn.1012189d
mov edx, dword [edi]
mov ecx, eax
add esp, 4
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x10078072
xor ebp, ebp
mov dword [esp + 0x48], ebp
cmp dword [edx + 4], ebp
jbe 0x10078046
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], ecx
jmp 0x10077d14
mov ecx, dword [esp + 0x14]
mov eax, dword [edx]
imul eax, ebp
xor ebp, ebp
lea edx, [ecx + eax*4]
mov dword [esp + 0x20], edx
cmp dword [esp + 0x18], ebp
jle 0x10077e0c
lea ebx, [edi + 0x46bc]
mov edi, dword [esp + 0x18]
lea esi, [esp + 0x70]
jmp 0x10077d44
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
lea edx, [esi - 0x14]
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], eax
mov eax, dword [esi - 8]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x14], ecx
lea ecx, [esi - 0x10]
sar eax, 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x18], edx
cmp dword [esi], eax
jl 0x10077d8d
mov eax, dword [edx]
mov edx, ecx
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x34], ecx
jmp 0x10077d9d
mov eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], eax
mov eax, dword [ecx]
push dword [esi - 0xc]
mov ecx, dword [esi - 0x18]
push dword [esi - 4]
push eax
push dword [edx]
push dword [ebx + 0x18]
call dword [0x1013f2d4]
call dword [esi - 0x18]
mov dword [esp + ebp*4 + 0x38], eax
add esp, 0x14
mov eax, dword [esi]
inc eax
mov dword [esi], eax
cmp eax, dword [esi - 8]
jl 0x10077ded
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
inc dword [esi + 4]
mov dword [esi], 0
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [esi + 4]
cmp eax, dword [ebx]
jge 0x10077ded
mov eax, dword [ebx + 4]
add eax, ecx
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
inc ebp
add esi, 0x20
add ebx, 0x48
cmp ebp, edi
jl 0x10077d40
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x4c]
mov eax, dword [edi]
mov ecx, dword [eax + 8]
cmp ecx, 3
jne 0x10077e92
cmp dword [esp + 0x34], 0
je 0x10077e6c
xor esi, esi
cmp dword [eax], esi
jbe 0x10078032
mov eax, dword [esp + 0x2c]
lea ecx, [edx + 2]
mov edx, dword [esp + 0x28]
mov ebp, ebx
sub ebp, edx
sub eax, edx
mov ebx, eax
nop word [eax + eax]
movzx eax, byte [edx + ebp]
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
movzx eax, byte [ebx + edx - 1]
mov byte [ecx - 4], al
mov byte [ecx - 3], 0xff
mov eax, dword [edi]
cmp esi, dword [eax]
jb 0x10077e40
jmp 0x1007802e
mov esi, dword [edi + 0x4810]
mov ecx, esi
push 4
push dword [eax]
push dword [esp + 0x34]
push dword [esp + 0x34]
push ebx
push edx
call dword [0x1013f2d4]
call esi
add esp, 0x18
jmp 0x10078032
cmp ecx, 4
jne 0x10078005
mov ecx, dword [edi + 0x47e8]
test ecx, ecx
jne 0x10077f4c
xor ebp, ebp
cmp dword [eax], ebp
jbe 0x10078032
mov esi, dword [esp + 0x30]
lea ebx, [edx + 2]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
sub ecx, esi
mov dword [esp + 0x1c], ecx
sub eax, esi
mov ecx, dword [esp + 0x2c]
sub ecx, esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
nop dword [eax + eax]
movzx ecx, byte [eax + esi]
lea ebx, [ebx + 4]
movzx edx, byte [esi]
lea esi, [esi + 1]
imul ecx, edx
inc ebp
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [ebx - 6], al
mov eax, dword [esp + 0x1c]
movzx ecx, byte [eax + esi - 1]
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [ebx - 5], al
mov eax, dword [esp + 0x40]
movzx ecx, byte [eax + esi - 1]
imul ecx, edx
mov byte [ebx - 3], 0xff
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [ebx - 4], al
mov eax, dword [edi]
cmp ebp, dword [eax]
mov eax, dword [esp + 0x3c]
jb 0x10077ee0
jmp 0x1007802e
mov eax, dword [eax]
cmp ecx, 2
mov esi, dword [edi + 0x4810]
mov ecx, esi
push 4
push eax
push dword [esp + 0x34]
push dword [esp + 0x34]
push dword [esp + 0x34]
push edx
jne 0x10077ff8
call dword [0x1013f2d4]
call esi
mov eax, dword [edi]
xor ebx, ebx
add esp, 0x18
cmp dword [eax], ebx
jbe 0x1007802e
mov esi, dword [esp + 0x20]
add esi, 2
nop dword [eax]
mov eax, dword [esp + 0x30]
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 0x10077f90
jmp 0x1007802e
call dword [0x1013f2d4]
call esi
add esp, 0x18
jmp 0x1007802e
xor edx, edx
cmp dword [eax], edx
jbe 0x10078032
mov ecx, dword [esp + 0x20]
inc ecx
mov eax, dword [esp + 0x24]
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 0x10078010
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x48]
mov edx, dword [edi]
inc ebp
mov dword [esp + 0x48], ebp
cmp ebp, dword [edx + 4]
jb 0x10077d10
mov edx, dword [edx + 8]
mov ecx, edi
push 0
call fcn.10076700
mov ecx, dword [edi]
add esp, 4
mov eax, dword [esp + 0x50]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov ecx, dword [edi]
mov eax, dword [esp + 0x54]
mov ecx, dword [ecx + 4]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
jmp 0x1007809c
mov edx, dword [edi]
mov edx, dword [edx + 8]
mov ecx, edi
push 0
call fcn.10076700
mov ecx, dword [0x10203278]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x10], str.outofmem
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10109e3a
add esp, 0xd0
ret