Function at 0x426730
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
push edi
push 0xbbf1ffff
mov edi, edx
mov ebp, ecx
push 0x675ffff
call fcn.004108a0
mov dword [0x4319fc], eax
push 0x4e85ffff
movsx eax, word [0x4319d2]
push eax
call fcn.00410920
mov ecx, dword [0x4319f0]
add esp, 0x10
add ecx, eax
xor eax, eax
mov dword [0x4319f0], ecx
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x426777
movsx ecx, word [0x4319d4]
push 0xac43ffff
push ecx
call fcn.00410820
mov edx, dword [0x431a00]
mov byte [esp + 0x1c], 0
add edx, eax
mov eax, dword [0x4319fc]
mov dword [0x431a00], edx
mov byte [esp + 0x20], 0
movsx edx, word [0x4319e4]
lea ecx, [eax + edx - 0x5c080001]
movsx edx, byte [0x4319c8]
push edx
push 0x86d9ffff
mov dword [0x4319fc], ecx
call fcn.004108a0
mov byte [0x4319d0], al
mov eax, dword [0x4319f4]
push 0xf435ffff
push eax
call fcn.004108e0
mov bl, byte [0x4319d0]
mov ecx, dword [0x4319f4]
add bl, al
push ecx
push 0xe8a1ffff
mov byte [0x4319d0], bl
call fcn.00410970
add esp, 0x20
xor bl, bl
mov word [0x4319d4], ax
xor esi, esi
mov edx, dword [0x4319fc]
mov eax, dword [0x4319e8]
push edx
push eax
call fcn.00410a30
mov ecx, dword [0x4319f8]
mov byte [0x4319c8], al
mov eax, dword [0x4319ec]
movsx edx, word [0x4319e2]
or ecx, eax
push edx
movsx eax, byte [0x4319ca]
add word [0x4319e0], cx
push eax
call fcn.004108e0
mov byte [0x4319cf], al
mov eax, esi
xor edx, edx
add esp, 0x10
div edi
mov al, byte [esp + esi + 0x28]
push 0x431988
mov cl, byte [edx + ebp]
mov dword [0x4319fc], 0x4565fffe
movsx edx, word [0x4319d4]
add cl, al
and edx, 0x6ec5ffff
add bl, cl
mov ecx, 0x431938
mov byte [esp + 0x14], bl
mov dword [0x431a08], edx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::swap_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____]
mov cl, byte [esp + esi + 0x28]
mov eax, dword [esp + 0x10]
and eax, 0xff
inc esi
cmp esi, 0x100
mov dl, byte [esp + eax + 0x28]
lea eax, [esp + eax + 0x28]
mov byte [esp + esi + 0x27], dl
mov byte [eax], cl
mov word [0x4319e0], 0xffff
jb 0x426819
mov ecx, dword [esp + 0x134]
test ecx, ecx
jbe 0x426ab5
mov eax, dword [esp + 0x12c]
mov edx, dword [esp + 0x130]
sub edx, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], ecx
movsx eax, byte [0x4319cc]
movsx ecx, byte [0x4319ca]
push eax
push ecx
call fcn.00410920
add ax, word [0x4319d2]
mov cl, byte [0x4319cb]
add esp, 8
inc cl
mov word [0x4319e0], ax
mov al, byte [esp + 0x14]
inc al
mov bl, byte [esp + 0x18]
mov byte [esp + 0x14], al
mov byte [0x4319cb], cl
mov edx, dword [esp + 0x14]
movsx ecx, byte [0x4319c8]
and edx, 0xff
add ecx, 0x5ca7ffff
mov dword [0x431a0c], ecx
mov al, byte [esp + edx + 0x28]
lea ebp, [esp + edx + 0x28]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
add bl, al
mov eax, dword [0x43194c]
mov byte [esp + 0x18], bl
mov ebx, dword [edx]
test eax, eax
je 0x4269e4
mov cl, byte [eax - 1]
test cl, cl
je 0x4269e4
cmp cl, 0xff
je 0x4269e4
push 1
mov ecx, 0x431948
mov esi, eax
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, 0x431948
push edi
mov dword [esp + 0x28], edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4269df
mov ecx, edi
mov edi, dword [0x43194c]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
push ecx
mov ecx, 0x431948
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov eax, dword [0x43194c]
mov ecx, dword [0x431950]
cmp ecx, ebx
jae 0x4269f0
mov ebx, ecx
test ebx, ebx
jbe 0x426a2e
sub ecx, ebx
lea edx, [eax + ebx]
push ecx
push edx
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
mov esi, dword [0x431950]
add esp, 0xc
sub esi, ebx
mov ecx, 0x431948
push 0
push esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x426a2e
mov eax, dword [0x43194c]
mov dword [0x431950], esi
mov byte [eax + esi], 0
mov ecx, dword [esp + 0x18]
mov al, byte [ebp]
and ecx, 0xff
push 0x31fdffff
push 0x5e39ffff
mov dl, byte [esp + ecx + 0x30]
lea esi, [esp + ecx + 0x30]
mov byte [ebp], dl
mov byte [esi], al
call fcn.00410820
mov cl, byte [ebp]
mov word [0x4319d6], ax
mov eax, dword [0x431a0c]
add esp, 8
inc eax
add word [0x4319e4], ax
mov al, byte [esi]
add cl, al
mov eax, dword [esp + 0x1c]
and ecx, 0xff
mov dl, byte [esp + ecx + 0x28]
mov ecx, dword [esp + 0x24]
xor dl, byte [ecx + eax]
mov byte [eax], dl
mov dl, byte [0x4319d2]
mov bl, byte [0x4319ca]
inc dl
add bl, dl
inc eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
dec eax
mov byte [0x4319ca], bl
mov dword [esp + 0x10], eax
jne 0x4268ff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 0xc