Function at 0x4b0e68
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4b1099
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41a67c]
call fcn.00403d00
mov dword [ebp - 8], eax
mov eax, esi
call fcn.0044e070
mov edx, dword [esi + 0x214]
add edx, dword [esi + 0x218]
sub eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x220]
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4b1083
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jl 0x4b1083
mov dl, 1
mov eax, dword [0x41a67c]
call fcn.00403d00
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x4b107c
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [esi + 0x68]
mov eax, dword [esi + 0x208]
call fcn.00429974
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x4b0f52
inc eax
mov dword [ebp - 0x1c], eax
xor ebx, ebx
lea ecx, [ebp - 0x20]
mov eax, dword [esi + 0x220]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x20]
mov eax, dword [esi + 0x208]
call fcn.004298b4
mov edx, eax
mov eax, dword [esi + 0x21c]
add eax, 2
add eax, eax
add edx, eax
mov eax, dword [ebp - 8]
call fcn.0041cd84
mov edx, ebx
mov eax, dword [ebp - 0x18]
call fcn.0041cd84
inc ebx
dec dword [ebp - 0x1c]
jne 0x4b0f0d
mov eax, dword [esi + 0x23c]
test eax, eax
je 0x4b0f9b
mov edi, dword [eax + 0x34]
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x4b0f9b
inc eax
mov dword [ebp - 0x1c], eax
xor ebx, ebx
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xd0]
test eax, eax
jl 0x4b0f95
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0041cf30
mov ecx, eax
add ecx, edi
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0041d07c
inc ebx
dec dword [ebp - 0x1c]
jne 0x4b0f6d
xor esi, esi
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x4b0fea
mov eax, dword [ebp - 0x14]
cdq
idiv dword [ebp - 0x10]
mov esi, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0xc]
dec ebx
cmp ebx, 0
jl 0x4b0fea
mov edx, ebx
mov eax, dword [ebp - 0x18]
call fcn.0041cf30
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.0041cf30
cmp eax, esi
jg 0x4b0fe4
sub dword [ebp - 0x14], eax
dec dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp - 0x18]
call fcn.0041cdd0
dec ebx
cmp ebx, 0xffffffff
jne 0x4b0fbc
cmp dword [ebp - 0x10], 0
jle 0x4b0ff8
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jne 0x4b0fa4
cmp dword [ebp - 0x10], 0
jle 0x4b1066
mov eax, dword [ebp - 0x14]
cdq
idiv esi
dec edx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x4b103e
inc eax
mov dword [ebp - 0x1c], eax
xor ebx, ebx
mov edx, ebx
mov eax, dword [ebp - 0x18]
call fcn.0041cf30
mov edx, eax
cmp ebx, dword [ebp - 0xc]
setl cl
and ecx, 0xff
add ecx, esi
mov eax, dword [ebp - 8]
call fcn.0041d07c
inc ebx
dec dword [ebp - 0x1c]
jne 0x4b1016
cmp dword [ebp - 4], 0
je 0x4b1066
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0041d12c
mov ecx, dword [ebp - 0x10]
shl ecx, 2
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
call fcn.00402ae4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1083
mov eax, dword [ebp - 0x18]
call fcn.00403d30
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b10a0
lea eax, [ebp - 0x20]
call fcn.00404a9c
ret