Function at 0x41e100
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x68], 0
mov edx, dword [eax + 0x7c]
push ebx
push ebp
mov ebp, dword [eax + 0xa0]
push esi
push edi
mov dword [esp + 0x1c], edx
push eax
jne 0x41a686
call fcn.004171c0
jmp 0x41a68b
call fcn.00417340
cmp dword [ecx + 0x80c34], 0
mov edx, dword [ecx + 0xb4c]
mov eax, dword [ecx + 0xb3c]
mov ebx, dword [ecx + 0xb48]
mov esi, dword [ecx + 0xb40]
mov edi, dword [ecx + 0xb44]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 0xb58]
mov dword [esp + 0x14], edx
mov edx, dword [ecx + 0xb5c]
mov dword [esp + 0x20], edx
mov edx, dword [ecx + 0xb60]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0xb50]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x24], edx
jne 0x41ab36
mov edx, dword [esp + 0x38]
mov edx, dword [edx + 0xe0]
test edx, edx
jne 0x41a779
mov edx, dword [ecx + 0xb54]
cmp edx, eax
jge 0x41abbf
sub eax, edx
mov dword [esp + 0x10], eax
lea esp, [esp]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x14], eax
jge 0x41a75c
sub eax, dword [esp + 0x14]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
cmp byte [eax + ebx], 0
je 0x41a74e
movzx eax, byte [edi + ebp]
mov edx, dword [ecx + 0x68]
mov byte [esi + edx], al
movzx eax, byte [edi + ebp + 1]
mov edx, dword [ecx + 0x68]
mov byte [edx + esi + 1], al
movzx eax, byte [edi + ebp + 2]
mov edx, dword [ecx + 0x68]
mov byte [edx + esi + 2], al
inc ebx
add esi, 3
add edi, 3
sub dword [esp + 0x38], 1
jne 0x41a722
add edi, dword [esp + 0x20]
add ebx, dword [esp + 0x24]
add esi, dword [esp + 0x28]
sub dword [esp + 0x10], 1
jne 0x41a710
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
cmp edx, 1
jne 0x41a94e
mov edx, dword [ecx + 0xb54]
cmp edx, eax
jge 0x41abbf
sub eax, edx
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp edx, eax
jge 0x41a929
sub eax, edx
mov dword [esp + 0x2c], eax
lea esp, [esp]
mov edx, dword [esp + 0x1c]
cmp byte [edx + ebx], 0
je 0x41a913
mov eax, dword [ecx + 0x68]
movzx edx, byte [eax + esi]
movzx eax, byte [edi + ebp]
mov dword [esp + 0x38], eax
add eax, edx
cmp eax, 0xff
jge 0x41a7f9
mov eax, 0xff
sub eax, dword [esp + 0x38]
mov ebx, 0xff
sub ebx, edx
imul eax, ebx
mov ebx, dword [esp + 0x10]
sar eax, 8
mov edx, 0xff
sub edx, eax
jmp 0x41a81d
cmp byte [edi + ebp], 0
je 0x41a818
mov eax, 0xff
sub eax, edx
cdq
idiv dword [esp + 0x38]
mov ebx, dword [esp + 0x10]
mov edx, 0xff
sub edx, eax
jmp 0x41a81d
mov edx, 0xff
mov eax, dword [ecx + 0x68]
mov byte [esi + eax], dl
mov edx, dword [ecx + 0x68]
movzx eax, byte [edi + ebp + 1]
movzx edx, byte [edx + esi + 1]
add edx, eax
cmp edx, 0xff
mov dword [esp + 0x38], eax
jge 0x41a867
mov edx, dword [ecx + 0x68]
movzx edx, byte [edx + esi + 1]
mov ebx, 0xff
sub ebx, edx
mov edx, 0xff
sub edx, eax
imul ebx, edx
sar ebx, 8
mov edx, 0xff
sub edx, ebx
mov ebx, dword [esp + 0x10]
jmp 0x41a894
cmp byte [edi + ebp + 1], 0
je 0x41a88f
mov eax, dword [ecx + 0x68]
movzx edx, byte [eax + esi + 1]
mov eax, 0xff
sub eax, edx
cdq
idiv dword [esp + 0x38]
mov ebx, dword [esp + 0x10]
mov edx, 0xff
sub edx, eax
jmp 0x41a894
mov edx, 0xff
mov eax, dword [ecx + 0x68]
mov byte [eax + esi + 1], dl
mov edx, dword [ecx + 0x68]
movzx eax, byte [edi + ebp + 2]
movzx edx, byte [edx + esi + 2]
add edx, eax
cmp edx, 0xff
mov dword [esp + 0x38], eax
jge 0x41a8df
mov edx, dword [ecx + 0x68]
movzx edx, byte [edx + esi + 2]
mov ebx, 0xff
sub ebx, edx
mov edx, 0xff
sub edx, eax
imul ebx, edx
sar ebx, 8
mov edx, 0xff
sub edx, ebx
mov ebx, dword [esp + 0x10]
jmp 0x41a90c
cmp byte [edi + ebp + 2], 0
je 0x41a907
mov eax, dword [ecx + 0x68]
movzx edx, byte [eax + esi + 2]
mov eax, 0xff
sub eax, edx
cdq
idiv dword [esp + 0x38]
mov ebx, dword [esp + 0x10]
mov edx, 0xff
sub edx, eax
jmp 0x41a90c
mov edx, 0xff
mov eax, dword [ecx + 0x68]
mov byte [eax + esi + 2], dl
inc ebx
add esi, 3
add edi, 3
sub dword [esp + 0x2c], 1
mov dword [esp + 0x10], ebx
jne 0x41a7b0
add ebx, dword [esp + 0x24]
add edi, dword [esp + 0x20]
add esi, dword [esp + 0x28]
sub dword [esp + 0x30], 1
mov dword [esp + 0x10], ebx
jne 0x41a796
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
cmp edx, 2
jne 0x41aa6d
mov edx, dword [ecx + 0xb54]
cmp edx, eax
jge 0x41abbf
sub eax, edx
mov dword [esp + 0x30], eax
jmp 0x41a970
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp edx, eax
jge 0x41aa48
sub eax, edx
mov dword [esp + 0x38], eax
jmp 0x41a990
mov edx, dword [esp + 0x1c]
cmp byte [edx + ebx], 0
je 0x41aa32
mov eax, dword [ecx + 0x68]
movzx edx, byte [edi + ebp]
add eax, esi
mov dword [esp + 0x2c], eax
movzx eax, byte [eax]
mov ebx, 0xff
sub ebx, edx
mov edx, 0xff
sub edx, eax
imul ebx, edx
mov edx, dword [esp + 0x2c]
sar ebx, 8
or al, 0xff
sub al, bl
mov byte [edx], al
mov eax, dword [ecx + 0x68]
movzx edx, byte [edi + ebp + 1]
lea eax, [eax + esi + 1]
mov dword [esp + 0x2c], eax
movzx eax, byte [eax]
mov ebx, 0xff
sub ebx, edx
mov edx, 0xff
sub edx, eax
imul ebx, edx
mov edx, dword [esp + 0x2c]
sar ebx, 8
or al, 0xff
sub al, bl
mov byte [edx], al
mov eax, dword [ecx + 0x68]
movzx edx, byte [edi + ebp + 2]
lea eax, [eax + esi + 2]
mov dword [esp + 0x2c], eax
movzx eax, byte [eax]
mov ebx, 0xff
sub ebx, edx
mov edx, 0xff
sub edx, eax
imul ebx, edx
mov edx, dword [esp + 0x2c]
sar ebx, 8
or al, 0xff
sub al, bl
mov ebx, dword [esp + 0x10]
mov byte [edx], al
inc ebx
add esi, 3
add edi, 3
sub dword [esp + 0x38], 1
mov dword [esp + 0x10], ebx
jne 0x41a990
add ebx, dword [esp + 0x24]
add edi, dword [esp + 0x20]
add esi, dword [esp + 0x28]
sub dword [esp + 0x30], 1
mov dword [esp + 0x10], ebx
jne 0x41a970
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
cmp edx, 3
jne 0x41abbf
mov edx, dword [ecx + 0xb54]
cmp edx, eax
jge 0x41abbf
sub eax, edx
mov dword [esp + 0x30], eax
lea ebx, [ebx]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x14], eax
jge 0x41ab15
sub eax, dword [esp + 0x14]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
cmp byte [eax + ebx], 0
je 0x41ab07
mov edx, dword [ecx + 0x68]
lea eax, [edx + esi]
movzx edx, byte [edi + ebp]
mov dword [esp + 0x2c], eax
movzx eax, byte [eax]
imul edx, eax
mov eax, dword [esp + 0x2c]
sar edx, 8
mov byte [eax], dl
mov edx, dword [ecx + 0x68]
lea eax, [edx + esi + 1]
movzx edx, byte [edi + ebp + 1]
mov dword [esp + 0x2c], eax
movzx eax, byte [eax]
imul edx, eax
mov eax, dword [esp + 0x2c]
sar edx, 8
mov byte [eax], dl
mov edx, dword [ecx + 0x68]
lea eax, [edx + esi + 2]
movzx edx, byte [edi + ebp + 2]
mov dword [esp + 0x2c], eax
movzx eax, byte [eax]
imul edx, eax
mov eax, dword [esp + 0x2c]
sar edx, 8
mov byte [eax], dl
inc ebx
add esi, 3
add edi, 3
sub dword [esp + 0x38], 1
jne 0x41aaa2
add edi, dword [esp + 0x20]
add ebx, dword [esp + 0x24]
add esi, dword [esp + 0x28]
sub dword [esp + 0x30], 1
jne 0x41aa90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
mov edx, dword [ecx + 0xb54]
cmp edx, eax
jge 0x41abbf
sub eax, edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x14], eax
jge 0x41abac
sub eax, dword [esp + 0x14]
mov dword [esp + 0x38], eax
jmp 0x41ab60
mov edx, dword [esp + 0x1c]
cmp byte [edx + ebx], 0
je 0x41ab9e
movzx eax, byte [edi + ebp + 1]
movzx edx, byte [edi + ebp + 2]
add edx, eax
movzx eax, byte [edi + ebp]
add edx, eax
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ecx + 0x68]
mov byte [esi + edx], al
mov edx, dword [ecx + 0x68]
mov byte [edx + esi + 1], al
mov edx, dword [ecx + 0x68]
mov byte [edx + esi + 2], al
inc ebx
add esi, 3
add edi, 3
sub dword [esp + 0x38], 1
jne 0x41ab60
add edi, dword [esp + 0x20]
add ebx, dword [esp + 0x24]
add esi, dword [esp + 0x28]
sub dword [esp + 0x30], 1
jne 0x41ab46
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
mov eax, dword [esp + 4]
mov edx, dword [eax + 0xc8]
cmp edx, 0xffffffff
je 0x41e142
mov dword [ecx + 0xfc], edx
movsx edx, byte [eax + 0xdc]
test dl, 1
je 0x41e139
test dl, 2
je 0x41e142
mov dword [esp + 4], eax
test dl, 4
je 0x41e134
jmp fcn.0041abd0
jmp 0x41a660
mov dword [esp + 4], eax
jmp fcn.0041a1c0
ret 4