Function at 0x41c6d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x63a800]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0xc]
mov byte [ebp - 0x64], al
mov dword [ebp - 0x44], edx
movzx edx, al
mov eax, edx
imul eax, eax, 0x68
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
mov ecx, dword [esi + edx*4 + 0x1830]
lea eax, [eax + esi + 0x184]
push edi
movzx edi, byte [ecx + 0xd]
mov dword [ebp - 0x4c], eax
mov eax, dword [eax]
imul edi, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov ecx, edi
or ecx, eax
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], eax
jne 0x41c74d
or eax, 0xffffffff
or edx, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005ac396
mov esp, ebp
pop ebp
ret 0x50
cmp byte [ebp + 0x20], al
je 0x41c734
mov ecx, 0x10000
mov eax, 0xffff
cmp dword [ebp + 0x44], ecx
jb 0x41c772
ja 0x41c769
cmp dword [ebp + 0x40], 0
jb 0x41c772
mov ebx, dword [ebp + 0x40]
and dword [ebp + 0x44], eax
mov dword [ebp + 0x40], ebx
mov ebx, dword [ebp + 0x30]
cmp dword [ebp + 0x34], ecx
jb 0x41c786
ja 0x41c780
test ebx, ebx
jb 0x41c786
and dword [ebp + 0x34], eax
mov dword [ebp + 0x30], ebx
mov eax, dword [ebp + 0x28]
cmp dword [ebp + 0x2c], ecx
jb 0x41c79e
ja 0x41c794
test eax, eax
jb 0x41c79e
and dword [ebp + 0x2c], 0xffff
mov dword [ebp + 0x28], eax
cmp dword [ebp + 0x4c], ecx
jb 0x41c7b8
ja 0x41c7ab
cmp dword [ebp + 0x48], 0
jb 0x41c7b8
mov ecx, dword [ebp + 0x48]
and dword [ebp + 0x4c], 0xffff
mov dword [ebp + 0x48], ecx
mov ecx, dword [ebp + 0x40]
or ecx, dword [ebp + 0x44]
jne 0x41c7fd
mov ecx, ebx
sub ecx, eax
mov eax, dword [ebp + 0x34]
sbb eax, dword [ebp + 0x2c]
add ecx, 1
adc eax, 0
mov dword [ebp + 0x44], eax
movzx eax, byte [esi + 0x1925]
inc edx
mov dword [ebp + 0x40], ecx
cmp eax, edx
jne 0x41c7fd
mov ecx, dword [esi + 0x1958]
or ecx, dword [esi + 0x195c]
jne 0x41c7fd
cmp byte [esi + 0x1926], 1
je 0x41c734
or ebx, dword [ebp + 0x34]
je 0x41c734
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebp + 0x40]
push edx
push edi
push eax
push ecx
call fcn.005bd2c0
or ecx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
je 0x41c82a
add dword [ebp - 0x10], 1
adc dword [ebp - 0xc], 0
xor ebx, ebx
cmp byte [esi + 0x1926], 1
jne 0x41c890
mov eax, dword [ebp - 0x2c]
sub esp, 0x40
mov edi, esp
lea edx, [ebp - 0x38]
push edx
mov ecx, 0x10
lea esi, [ebp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x44]
push eax
push ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call fcn.00404860
add esp, 0x4c
cmp dword [ebp - 0x10], eax
jne 0x41c86b
cmp dword [ebp - 0xc], edx
je 0x41c88a
mov ecx, eax
or ecx, edx
je 0x41c88a
and eax, edx
cmp eax, 0xffffffff
je 0x41c88a
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov edx, eax
or edx, ecx
je 0x41c88a
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
mov edi, dword [ebp - 0x40]
mov esi, dword [ebp - 0x48]
movzx eax, byte [esi + 0x1925]
mov ecx, dword [ebp - 0x24]
inc ecx
cmp eax, ecx
jne 0x41c8d5
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x3c]
push ebx
push eax
push ecx
push edi
call fcn.005af120
cmp dword [esi + 0x1958], eax
jne 0x41c8c0
cmp dword [esi + 0x195c], edx
je 0x41c8d5
cmp byte [esi + 0x1926], 1
jne 0x41c8d5
mov dword [esi + 0x1958], eax
mov dword [esi + 0x195c], edx
mov edx, dword [ebp + 0x4c]
mov eax, dword [ebp + 0x48]
cmp dword [ebp + 0x44], edx
ja 0x41c8ea
jb 0x41c8e7
cmp dword [ebp + 0x40], eax
jae 0x41c8ea
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp - 0x4c]
mov ecx, dword [ecx]
xor edx, edx
div ecx
mov dword [ebp - 0x2c], eax
cmp edx, ebx
je 0x41c8fe
inc eax
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0x10]
movzx edx, byte [ebp + 0x21]
shr ecx, 3
mov dword [ebp - 0x7c], ecx
mov ecx, dword [ebp + 0x1c]
sub ecx, edx
mov edx, dword [ebp - 0x28]
sub ecx, 0x18
mov dword [ebp - 0x70], ecx
movzx ecx, word [ebp + 0x38]
add dword [ebp - 8], ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x28], ebx
cmp eax, ebx
jbe 0x41cbb4
mov eax, dword [ebp - 8]
lea edx, [eax + 1]
xor esi, esi
cmp edx, 0x400
ja 0x41cbb4
add dword [ebp - 0x20], 1
mov ecx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x1c]
mov al, byte [ecx + eax]
adc edi, esi
xor ecx, ecx
cmp edi, ecx
ja 0x41cbb4
jb 0x41c97e
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x70]
ja 0x41cbb4
test al, al
je 0x41cbb4
mov cl, al
and cl, 0xf
shr al, 4
mov byte [ebp - 0x11], al
cmp cl, 8
ja 0x41cbb4
cmp al, 8
ja 0x41cbb4
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
movzx esi, cl
lea ebx, [esi + edx]
cmp ebx, 0x400
ja 0x41cbb4
mov eax, dword [ebp - 0x44]
push esi
add eax, edx
push eax
lea ecx, [ebp - 0x60]
push ecx
mov dword [0x642a1c], 0x1000
mov dword [0x642a20], 0x5d
call fcn.005ae670
mov eax, esi
cdq
add esp, 0xc
add dword [ebp - 0x20], eax
adc edi, edx
xor eax, eax
mov dword [ebp - 0x1c], edi
cmp edi, eax
ja 0x41cbb4
jb 0x41ca04
mov edx, dword [ebp - 0x70]
cmp dword [ebp - 0x20], edx
ja 0x41cbb4
movzx edi, byte [ebp - 0x11]
xor esi, esi
lea eax, [edi + ebx]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], eax
cmp eax, 0x400
ja 0x41cbb4
mov eax, dword [ebp - 0x44]
push edi
add eax, ebx
push eax
lea ecx, [ebp - 0x10]
push ecx
mov dword [0x642a1c], 0x1000
mov dword [0x642a20], 0x5e
call fcn.005ae670
add esp, 0xc
cmp dword [ebp - 0x24], esi
jne 0x41ca55
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
jmp 0x41ca86
test byte [ebp + edi - 0x11], 0x80
je 0x41ca7a
lea ecx, [edi - 1]
cmp ecx, 7
jge 0x41ca7a
mov eax, 7
lea esp, [esp]
mov byte [ebp + eax - 0x10], 0xff
dec eax
cmp eax, ecx
jg 0x41ca70
mov esi, dword [ebp - 0x10]
add esi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0xc]
adc ebx, dword [ebp - 0x34]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
mov eax, edi
mov dword [ebp - 8], edx
cdq
add dword [ebp - 0x20], eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], ebx
adc ecx, edx
xor eax, eax
mov dword [ebp - 0x1c], ecx
cmp ecx, eax
ja 0x41cbb4
jb 0x41cab8
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x70]
ja 0x41cbb4
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x5c]
push ecx
mov ecx, dword [ebp - 0x60]
push edx
push eax
push ecx
call fcn.005af0e0
mov edi, eax
add dword [ebp - 0x58], edi
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], edx
adc eax, edx
mov dword [ebp - 0x54], eax
cmp eax, dword [ebp + 0x44]
ja 0x41cbb4
jb 0x41caf4
mov edx, dword [ebp + 0x40]
cmp dword [ebp - 0x58], edx
ja 0x41cbb4
mov eax, dword [ebp - 0x64]
push ebx
push esi
push eax
mov eax, dword [ebp - 0x48]
call fcn.0041f3c0
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x78], eax
mov eax, dword [ecx]
xor ecx, ecx
push ecx
mov dword [ebp - 0x74], edx
mov edx, dword [ebp - 0x5c]
push eax
push edx
push edi
call fcn.005bd2c0
or ecx, ebx
mov esi, eax
mov dword [ebp - 0x88], esi
mov edi, edx
je 0x41cb35
add esi, 1
mov dword [ebp - 0x88], esi
adc edi, 0
xor eax, eax
xor edx, edx
test edi, edi
jb 0x41cb97
ja 0x41cb43
test esi, esi
je 0x41cb97
mov esi, dword [ebp - 0x28]
add esi, eax
mov ecx, 0
adc ecx, edx
xor ebx, ebx
cmp ecx, ebx
ja 0x41cb91
jb 0x41cb5c
cmp esi, dword [ebp - 0x2c]
jae 0x41cb91
xor ebx, ebx
cmp ecx, ebx
ja 0x41cb91
jb 0x41cb69
cmp esi, dword [ebp - 0x7c]
jae 0x41cb91
mov ecx, dword [ebp - 0x50]
mov esi, eax
add esi, dword [ebp - 0x78]
mov ebx, edx
adc ebx, dword [ebp - 0x74]
mov dword [ecx + eax*8], esi
mov dword [ecx + eax*8 + 4], ebx
add eax, 1
adc edx, 0
cmp edx, edi
jb 0x41cb43
ja 0x41cb91
cmp eax, dword [ebp - 0x88]
jb 0x41cb43
mov esi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x50]
inc dword [ebp - 0x24]
lea ecx, [eax + esi*8]
mov eax, dword [ebp - 0x28]
add eax, esi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x28], eax
cmp eax, dword [ebp - 0x2c]
jb 0x41c943
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
xor edx, edx
pop ebx
call fcn.005ac396
mov esp, ebp
pop ebp
ret 0x50