Function at 0x41ddb0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x63a800]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp - 0x50], ecx
push edi
mov ecx, 0x10
lea esi, [ebp + 0x18]
lea edi, [ebp - 0x98]
rep movsd dword es:[edi], dword [esi]
movzx ecx, al
mov ebx, dword [ebp + 0x14]
mov byte [ebp - 0xac], al
mov eax, ecx
imul eax, eax, 0x68
mov dword [ebp - 0x18], ecx
mov ecx, dword [edx + ecx*4 + 0x1830]
movzx edi, byte [ecx + 0xd]
mov cl, byte [edx + 0x1926]
lea eax, [eax + edx + 0x184]
mov dword [ebp - 0x4c], eax
mov eax, dword [eax]
imul edi, eax
xor esi, esi
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 8], edi
cmp cl, 1
jne 0x41de64
test edi, edi
jne 0x41de70
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], eax
mov eax, dword [edx + 0x1958]
or eax, dword [edx + 0x195c]
mov dword [ebp - 0x1c], esi
je 0x41de61
mov eax, dword [edx + 0x1958]
imul eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
mov edi, eax
jmp 0x41de64
mov edi, dword [ebp - 8]
test edi, edi
jne 0x41de70
lea eax, [edi + 0x14]
jmp 0x41e322
cmp dword [ebp - 0x50], 0xffffffff
jne 0x41de80
mov eax, 0x15
jmp 0x41e322
xor eax, eax
mov dword [ebp - 0x54], eax
cmp byte [ebp - 0x90], al
jne 0x41df00
mov ecx, dword [ebp - 0x88]
mov dword [ebx + 4], eax
movzx eax, word [ebp - 0x84]
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x28]
add ecx, eax
mov eax, ecx
xor esi, esi
add eax, dword [ebx]
adc esi, dword [ebx + 4]
mov dword [ebp - 0xa4], esi
jne 0x41debc
cmp eax, 0x400
jbe 0x41dec6
mov eax, 0x16
jmp 0x41e322
add ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x50]
push ecx
mov ecx, dword [ebx]
lea eax, [ebp - 0x54]
mov edi, edx
mov dword [ebp - 0x54], 0
call fcn.0042e910
test eax, eax
je 0x41def6
mov eax, dword [ebp - 0x54]
xor ecx, ecx
cmp eax, dword [ebx]
jne 0x41def6
cmp ecx, dword [ebx + 4]
je 0x41e320
mov eax, 0x17
jmp 0x41e322
cmp dword [ebp - 0x6c], 0x10000
jb 0x41df1d
ja 0x41df10
cmp dword [ebp - 0x70], eax
jb 0x41df1d
mov eax, dword [ebp - 0x70]
and dword [ebp - 0x6c], 0xffff
mov dword [ebp - 0x70], eax
mov esi, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x80]
cmp esi, 0x10000
jb 0x41df3d
ja 0x41df31
test eax, eax
jb 0x41df3d
and esi, 0xffff
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x84], 0x10000
jb 0x41df65
mov edi, dword [ebp - 0x88]
ja 0x41df55
test edi, edi
jb 0x41df65
and dword [ebp - 0x84], 0xffff
mov dword [ebp - 0x88], edi
cmp dword [ebp - 0x64], 0x10000
jb 0x41df83
ja 0x41df76
cmp dword [ebp - 0x68], 0
jb 0x41df83
mov edi, dword [ebp - 0x68]
and dword [ebp - 0x64], 0xffff
mov dword [ebp - 0x68], edi
mov edi, dword [ebp - 0x70]
or edi, dword [ebp - 0x6c]
jne 0x41dfcc
sub eax, dword [ebp - 0x88]
sbb esi, dword [ebp - 0x84]
add eax, 1
adc esi, edi
mov dword [ebp - 0x6c], esi
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x70], eax
movzx eax, byte [edx + 0x1925]
inc esi
cmp eax, esi
jne 0x41dfcc
mov eax, dword [edx + 0x1958]
or eax, dword [edx + 0x195c]
jne 0x41dfcc
cmp cl, 1
jne 0x41dfcc
lea eax, [edi + 0x18]
jmp 0x41e322
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x64]
xor eax, eax
push eax
mov eax, dword [ebp - 8]
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x6c]
push eax
mov dword [ebx + 4], edx
mov edx, dword [ebp - 0x70]
push ecx
push edx
call fcn.005bd2c0
or ecx, ebx
mov ebx, eax
mov dword [ebp - 0x44], edx
je 0x41dffb
add ebx, 1
adc dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x58]
cmp byte [eax + 0x1926], 1
jne 0x41e05f
mov edx, dword [ebp - 0x20]
sub esp, 0x40
mov edi, esp
mov ecx, 0x10
lea esi, [ebp - 0x98]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x28]
xor eax, eax
lea ecx, [ebp - 0x30]
push ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
push edx
push eax
mov ecx, edi
call fcn.00404860
add esp, 0x4c
cmp ebx, eax
jne 0x41e043
cmp dword [ebp - 0x44], edx
je 0x41e062
mov ecx, eax
or ecx, edx
je 0x41e062
and eax, edx
cmp eax, 0xffffffff
je 0x41e062
mov eax, dword [ebp - 0x30]
mov edx, eax
or edx, dword [ebp - 0x2c]
je 0x41e062
mov dword [ebp - 8], eax
jmp 0x41e062
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x6c]
cmp ecx, dword [ebp - 0x64]
ja 0x41e082
jb 0x41e074
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x68]
jae 0x41e082
mov eax, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x70]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x58]
movzx eax, byte [ecx + 0x1925]
mov edx, dword [ebp - 0x18]
inc edx
cmp eax, edx
jne 0x41e0c7
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x4c]
xor edx, edx
div dword [esi]
xor edx, edx
cmp dword [ecx + 0x1958], eax
jne 0x41e0b0
cmp dword [ecx + 0x195c], edx
je 0x41e0c9
cmp byte [ecx + 0x1926], 1
jne 0x41e0c9
mov dword [ecx + 0x1958], eax
mov dword [ecx + 0x195c], edx
jmp 0x41e0c9
xor edx, edx
movzx eax, word [ebp - 0x78]
movzx ecx, byte [ebp - 0x8f]
add edi, eax
mov eax, dword [ebp - 0x94]
sub eax, ecx
sub eax, 0x18
cmp byte [0x64440b], 2
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
je 0x41e320
jmp 0x41e113
mov edi, dword [ebp - 0x28]
cmp edi, 0x400
jae 0x41e320
mov edx, dword [ebp - 0x24]
mov al, byte [edx + edi]
mov ecx, dword [ebp - 0xc]
inc edi
add dword [ebp - 0x10], 1
mov esi, 0
adc ecx, esi
xor edx, edx
mov dword [ebp - 0xc], ecx
cmp ecx, edx
ja 0x41e320
jb 0x41e152
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0xa8]
ja 0x41e320
test al, al
je 0x41e320
mov cl, al
and cl, 0xf
shr al, 4
mov byte [ebp - 0x11], al
cmp cl, 8
ja 0x41e320
cmp al, 8
ja 0x41e320
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
movzx esi, cl
lea ebx, [esi + edi]
cmp ebx, 0x400
ja 0x41e320
mov edx, dword [ebp - 0x24]
push esi
add edx, edi
push edx
lea eax, [ebp - 0x48]
push eax
mov dword [0x642a1c], 0x1000
mov dword [0x642a20], 0x75
call fcn.005ae670
mov eax, esi
cdq
add esp, 0xc
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
adc eax, edx
xor ecx, ecx
mov dword [ebp - 0xc], eax
cmp eax, ecx
ja 0x41e320
jb 0x41e1de
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0xa8]
ja 0x41e320
movzx esi, byte [ebp - 0x11]
xor edi, edi
lea eax, [esi + ebx]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x4c], eax
cmp eax, 0x400
ja 0x41e320
mov edx, dword [ebp - 0x24]
mov eax, 0x76
push esi
add edx, ebx
mov dword [ebp - 0x9c], eax
mov dword [0x642a20], eax
push edx
lea eax, [ebp - 0x40]
push eax
mov dword [0x642a1c], 0x1000
call fcn.005ae670
add esp, 0xc
cmp dword [ebp - 0x18], edi
jne 0x41e235
mov ebx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x3c]
jmp 0x41e266
test byte [ebp + esi - 0x41], 0x80
je 0x41e25a
lea ecx, [esi - 1]
cmp ecx, 7
jge 0x41e25a
mov eax, 7
lea esp, [esp]
mov byte [ebp + eax - 0x40], 0xff
dec eax
cmp eax, ecx
jg 0x41e250
mov ebx, dword [ebp - 0x40]
add ebx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x3c]
adc edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x4c]
mov eax, esi
cdq
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], ecx
adc eax, edx
xor ecx, ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0xc], eax
cmp eax, ecx
ja 0x41e320
jb 0x41e29b
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0xa8]
ja 0x41e320
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 8]
push eax
push ecx
push 0
push edx
call fcn.005af0e0
mov ecx, dword [ebp - 0x64]
cmp dword [ebp - 0x34], ecx
ja 0x41e320
mov esi, dword [ebp - 0x38]
jb 0x41e2c0
cmp esi, dword [ebp - 0x68]
ja 0x41e320
mov dword [ebp - 0x20], eax
add eax, esi
mov dword [ebp - 0x1c], edx
adc edx, dword [ebp - 0x34]
cmp edx, ecx
jb 0x41e2e4
ja 0x41e2d6
cmp eax, dword [ebp - 0x68]
jbe 0x41e2e4
mov eax, dword [ebp - 0x68]
sub eax, esi
sbb ecx, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0xac]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x58]
push edx
push edi
push ebx
push eax
push ecx
call fcn.0041d840
mov ecx, eax
or ecx, edx
jne 0x41e324
add esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
adc dword [ebp - 0x34], eax
inc dword [ebp - 0x18]
cmp byte [0x64440b], 2
mov dword [ebp - 0x38], esi
jne 0x41e110
xor eax, eax
xor edx, edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005ac396
mov esp, ebp
pop ebp
ret 0x50