Function at 0x42dac0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5523d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ecx + 4]
sub esi, dword [ecx]
mov dword [ebp - 0x14], ecx
sar esi, 4
mov dword [ebp - 0x28], esi
test esi, esi
jne 0x42daf7
lea eax, [esi + 1]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493825
mov esp, ebp
pop ebp
ret
lea ebx, [esi*8]
mov eax, 0x51eb851f
mul ebx
shr edx, 5
lea eax, [edx + ebx + 8]
mov dword [ebp - 0x18], eax
cmp dword [edi + 0x554], ebx
jae 0x42db65
mov eax, dword [edi + 0x550]
test eax, eax
je 0x42db34
push eax
call fcn.00493f71
add esp, 4
mov dword [edi + 0x550], 0
lea ecx, [ebx + 1]
push ecx
call fcn.0049381a
add esp, 4
mov dword [edi + 0x550], eax
test eax, eax
jne 0x42db5c
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493825
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x554], ebx
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [edi + 0x550]
cmp ecx, dword [edx + 4]
je 0x42dc24
lea esp, [esp]
mov eax, dword [ecx]
sub eax, dword [edi + 0x168]
mov esi, dword [edi + 0x53c]
xor edx, edx
div esi
add ecx, 0x10
add ebx, 8
mov edx, eax
shr edx, 8
and edx, 0xff
shl eax, 8
or edx, eax
mov eax, dword [ecx - 0xc]
sub eax, dword [edi + 0x16c]
mov word [ebp - 0x24], dx
xor edx, edx
div esi
mov edx, eax
shr edx, 8
and edx, 0xff
shl eax, 8
or edx, eax
mov eax, dword [ecx - 8]
sub eax, dword [ecx - 0x10]
mov word [ebp - 0x22], dx
xor edx, edx
div esi
mov edx, eax
shr edx, 8
and edx, 0xff
shl eax, 8
or edx, eax
mov eax, dword [ecx - 4]
sub eax, dword [ecx - 0xc]
mov word [ebp - 0x20], dx
xor edx, edx
div esi
mov edx, eax
shr edx, 8
shl eax, 8
and edx, 0xff
or edx, eax
mov eax, dword [ebp - 0x24]
mov word [ebp - 0x1e], dx
mov edx, dword [ebp - 0x20]
mov dword [ebx - 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx - 4], edx
cmp ecx, dword [eax + 4]
jne 0x42db80
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmp dword [edi + 0x54c], ecx
jae 0x42dc7a
mov eax, dword [edi + 0x548]
test eax, eax
je 0x42dc4c
push eax
call fcn.00493f71
add esp, 4
mov dword [edi + 0x548], 0
mov edx, dword [ebp - 0x18]
add edx, 0x3e8
push edx
call fcn.0049381a
add esp, 4
mov dword [edi + 0x548], eax
test eax, eax
je 0x42db4a
mov eax, dword [ebp - 0x18]
add eax, 0x3e7
mov dword [edi + 0x54c], eax
mov ecx, dword [edi + 0x550]
lea eax, [esi*8]
push eax
mov eax, dword [edi + 0x548]
push ecx
lea edx, [ebp - 0x18]
push edx
push eax
call fcn.004b9e00
add esp, 0x10
test eax, eax
jne 0x42db4a
mov edx, dword [ebp - 0x18]
lea ecx, [esi*8]
sub ecx, esi
add ecx, ecx
push ecx
push edx
push esi
push 0x541a34
mov eax, 9
mov ecx, 0x59c290
call fcn.00403f50
mov eax, esi
sar eax, 8
and eax, 0xff
shl esi, 8
or eax, esi
mov esi, dword [edi + 0x198]
mov word [ebp - 0x10], ax
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0xe], ecx
mov word [ebp - 0xa], ax
mov eax, dword [ebp - 0x18]
mov ecx, eax
and ecx, 0xff0000
mov edx, eax
shr edx, 0x10
or ecx, edx
mov edx, eax
and edx, 0xff00
shl eax, 0x10
or edx, eax
shr ecx, 8
shl edx, 8
or ecx, edx
add esp, 0x10
mov dword [ebp - 8], 0x700ffff
mov dword [ebp - 0x1c], ecx
cmp dword [esi + 8], 0xffffffff
je 0x42db4a
cmp byte [esi + 0x18], 0
mov ebx, 0xc
je 0x42dd7b
mov eax, dword [esi + 0x10]
cmp byte [eax + 0x21], 0
je 0x42dd7b
cmp byte [esi + 0x68], 0
je 0x42dd61
mov eax, dword [esi + 0x64]
add eax, dword [esi + 0x6c]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
add dword [esi + 0x6c], ebx
jmp 0x42dd96
push ebx
lea edx, [ebp - 0x10]
push edx
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.004705d0
mov ebx, dword [ebp - 0x14]
jmp 0x42dd7e
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.0046ffc0
xor ecx, ecx
cmp eax, ebx
sete cl
mov eax, ecx
test eax, eax
je 0x42db4a
mov esi, dword [edi + 0x198]
cmp dword [esi + 8], 0xffffffff
je 0x42db4a
cmp byte [esi + 0x18], 0
mov ebx, 4
je 0x42ddea
mov edx, dword [esi + 0x10]
cmp byte [edx + 0x21], 0
je 0x42ddea
cmp byte [esi + 0x68], 0
je 0x42ddd0
mov eax, dword [esi + 0x64]
add eax, dword [esi + 0x6c]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
add dword [esi + 0x6c], ebx
jmp 0x42de05
push ebx
lea edx, [ebp - 0x1c]
push edx
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.004705d0
mov ebx, dword [ebp - 0x14]
jmp 0x42dded
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.0046ffc0
xor ecx, ecx
cmp eax, ebx
sete cl
mov eax, ecx
test eax, eax
je 0x42db4a
mov ecx, dword [ebp - 0x18]
mov eax, dword [edi + 0x548]
mov edx, dword [edi + 0x198]
call fcn.004701e0
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
pop esi
xor ecx, ebp
neg eax
pop ebx
call fcn.00493825
mov esp, ebp
pop ebp
ret