Function at 0x426ab0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x3c4
mov eax, dword [esp + 0x3c8]
push ebx
push ebp
push esi
push edi
mov edi, ecx
test eax, eax
mov dword [esp + 0x18], edi
mov dword [edi], 0
jne 0x426ae4
mov dword [edi], 5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c4
ret 0xc
push 1
push eax
call fcn.00438b80
add esp, 8
mov esi, eax
mov dword [esp + 0x10], esi
push esi
call fcn.00438bb0
add esp, 4
test al, al
jne 0x426b17
mov dword [edi], 2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c4
ret 0xc
lea eax, [esp + 0x54]
push eax
push esi
call fcn.00438fb0
add esp, 8
test al, al
jne 0x426b47
push esi
call fcn.00438bc0
add esp, 4
mov dword [edi], 0x16
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c4
ret 0xc
lea ecx, [esp + 0x54]
push ecx
call fcn.00438c10
add esp, 4
mov si, ax
lea edx, [esp + 0x54]
and esi, 0xffff
push edx
mov dword [esp + 0x44], esi
call fcn.00438c30
movsx bp, byte [esp + 0x5b]
movsx cx, byte [esp + 0x99]
imul ebp, ecx
and ebp, 0xffff
add esp, 4
and eax, 0xffff
cmp ebp, 0x18
mov dword [esp + 0x1c], eax
jl 0x426b98
xor edi, edi
jmp 0x426ba1
mov edi, 1
mov ecx, ebp
shl edi, cl
mov edx, dword [esp + 0x3dc]
mov ecx, dword [esp + 0x3e0]
xor bl, bl
mov dword [edx], esi
lea edx, [esp + 0x54]
push edx
mov dword [ecx], eax
call fcn.00438c50
add esp, 4
test al, al
je 0x426be2
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xd4]
lea ecx, [esp + 0x54]
push eax
push ecx
push edx
call fcn.00439100
add esp, 0xc
mov bl, al
test bl, bl
jne 0x426c02
xor eax, eax
lea ecx, [esp + 0xd5]
mov byte [ecx + 1], al
mov byte [ecx], al
mov byte [ecx - 1], al
inc eax
add ecx, 3
cmp eax, 0x100
jl 0x426bef
cmp ebp, 8
jge 0x426c36
test edi, edi
jle 0x426c36
xor eax, eax
mov ecx, edi
mov dl, byte [esp + eax + 0x66]
mov byte [esp + eax + 0xd6], dl
mov dl, byte [esp + eax + 0x65]
mov byte [esp + eax + 0xd5], dl
mov dl, byte [esp + eax + 0x64]
mov byte [esp + eax + 0xd4], dl
add eax, 3
dec ecx
jne 0x426c0f
lea eax, [esi + esi*2]
push eax
mov dword [esp + 0x4c], eax
call fcn.0048b346
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x4c], ebx
jne 0x426c76
mov eax, dword [esp + 0x10]
push eax
call fcn.00438bc0
mov ecx, dword [esp + 0x1c]
add esp, 4
xor eax, eax
mov dword [ecx], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c4
ret 0xc
lea edx, [esp + 0x54]
push edx
call fcn.00438f40
add esp, 4
push eax
call fcn.0048b346
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x426cc3
mov eax, dword [esp + 0x10]
push eax
call fcn.00438bc0
add esp, 4
push ebx
call fcn.0048b36f
mov ecx, dword [esp + 0x1c]
add esp, 4
xor eax, eax
mov dword [ecx], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c4
ret 0xc
mov eax, dword [esp + 0x1c]
imul eax, esi
lea edx, [eax + eax*2]
push edx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
mov dword [esp + 0x30], edi
jne 0x426cef
mov eax, dword [esp + 0x10]
push eax
call fcn.00438bc0
add esp, 4
jmp 0x426d0e
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x426d3d
mov eax, dword [esp + 0x10]
push eax
call fcn.00438bc0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0048b36f
add esp, 4
push ebx
call fcn.0048b36f
mov edx, dword [esp + 0x1c]
add esp, 4
xor eax, eax
mov dword [edx], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c4
ret 0xc
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
push eax
call fcn.00438c80
mov eax, 8
add esp, 4
cdq
idiv ebp
cmp ebp, 0x18
mov dword [esp + 0x2c], 1
mov edi, eax
mov dword [esp + 0x44], edi
je 0x426d7f
lea eax, [ebp - 1]
test eax, eax
jle 0x426d7f
mov ecx, dword [esp + 0x2c]
dec eax
lea edx, [ecx + ecx + 1]
mov dword [esp + 0x2c], edx
jne 0x426d70
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], 0
test eax, eax
jle 0x426f12
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x54]
push eax
push ecx
push edx
call fcn.00439190
add esp, 0xc
test eax, eax
je 0x426f4f
push 1
cmp ebp, 0x18
push 1
push esi
jne 0x426dd8
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
push eax
lea edx, [esp + 0x64]
push ecx
push edx
call fcn.00438d30
add esp, 0x18
jmp 0x426ea9
mov eax, dword [esp + 0x20]
push ebx
lea ecx, [esp + 0x64]
push eax
push ecx
call fcn.00438d30
mov eax, esi
add esp, 0x18
cdq
idiv edi
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov esi, eax
test esi, esi
mov dword [esp + 0x50], esi
jle 0x426ea5
mov eax, dword [esp + 0x20]
lea edx, [edi + edi*2]
inc eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], eax
mov eax, ebp
dec eax
je 0x426e23
sub eax, 3
je 0x426e23
sub eax, 4
jne 0x426e8a
mov al, byte [ecx + ebx]
lea edx, [edi - 1]
test edx, edx
jl 0x426e8a
mov esi, dword [esp + 0x24]
mov ecx, edx
imul ecx, ebp
lea edi, [edx + 1]
mov dl, byte [esp + 0x2c]
add esi, 3
shl dl, cl
and dl, al
shr dl, cl
sub ecx, ebp
mov byte [esp + 0x3c], dl
mov edx, dword [esp + 0x3c]
and edx, 0xff
dec edi
lea edx, [edx + edx*2]
mov bl, byte [esp + edx + 0xd6]
mov byte [esi - 4], bl
mov bl, byte [esp + edx + 0xd5]
mov byte [esi - 3], bl
mov dl, byte [esp + edx + 0xd4]
mov byte [esi - 2], dl
jne 0x426e39
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
inc ecx
add edx, eax
cmp ecx, esi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], edx
jl 0x426e14
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x20]
add edx, ecx
mov ecx, 0x4eb358
mov dword [esp + 0x20], edx
call fcn.00418750
cmp dword [eax + 4], 1
jne 0x426ef3
mov ecx, 0x4eb358
call fcn.00418750
cmp dword [eax], 0
je 0x426ef3
mov ecx, 0x4eb358
call fcn.00418750
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
push edx
push ecx
call dword [eax]
neg eax
sbb eax, eax
inc eax
jmp 0x426ef5
xor eax, eax
test eax, eax
jne 0x426f96
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x426d93
mov eax, dword [esp + 0x14]
push eax
call fcn.0048b36f
add esp, 4
push ebx
call fcn.0048b36f
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call fcn.00438bc0
mov esi, dword [esp + 0x34]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c4
ret 0xc
mov edx, dword [esp + 0x10]
push edx
call fcn.00438bc0
mov eax, dword [esp + 0x34]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0048b36f
add esp, 4
push ebx
call fcn.0048b36f
mov edx, dword [esp + 0x1c]
add esp, 4
xor eax, eax
mov dword [edx], 0x16
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c4
ret 0xc
mov eax, dword [esp + 0x14]
push eax
call fcn.0048b36f
add esp, 4
push ebx
call fcn.0048b36f
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call fcn.00438bc0
mov esi, dword [esp + 0x34]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword [edx], 0xe
xor eax, eax
pop ebx
add esp, 0x3c4
ret 0xc