Function at 0x4d420c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00408fbc
mov eax, dword [ebp - 8]
call fcn.00408fbc
xor eax, eax
push ebp
push 0x4d44a8
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, edx
test eax, eax
je 0x4d4255
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4d425d
mov al, 1
jmp 0x4d426e
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d4269
sub eax, 4
mov eax, dword [eax]
test eax, eax
sete al
test al, al
je 0x4d427f
mov eax, dword [ebp - 0x14]
call fcn.00408eec
jmp 0x4d447a
mov eax, edx
test eax, eax
je 0x4d428a
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x100
jle 0x4d42ae
push pe_nt_image_headers32
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4d44b8]
call fcn.0040acac
add esp, 4
jmp 0x4d42d0
mov ebx, edx
test ebx, ebx
je 0x4d42b9
sub ebx, 4
mov ebx, dword [ebx]
push ebx
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4d44b8]
call fcn.0040acac
add esp, 4
lea eax, [ebp - 8]
call fcn.00409474
mov edx, eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4d42e6
sub eax, 4
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
xchg edx, ecx
xchg ecx, eax
call fcn.00406910
xor esi, esi
lea eax, [ebp - 0x41c]
mov dword [eax], esi
inc esi
add eax, 4
cmp esi, 0x100
jne 0x4d42f9
xor ebx, ebx
xor esi, esi
lea ecx, [ebp - 0x41c]
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x4d431d
sub edi, 4
mov edi, dword [edi]
mov eax, esi
cdq
idiv edi
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + edx]
add ebx, dword [ecx]
add eax, ebx
and eax, 0x800000ff
jns 0x4d433b
dec eax
or eax, 0xffffff00
inc eax
mov ebx, eax
movzx eax, byte [ecx]
mov byte [ebp - 0x15], al
mov eax, dword [ebp + ebx*4 - 0x41c]
mov dword [ecx], eax
movzx eax, byte [ebp - 0x15]
mov dword [ebp + ebx*4 - 0x41c], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4d4311
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4d436f
sub ebx, 4
mov ebx, dword [ebx]
push ebx
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x4d44b8]
call fcn.0040acac
add esp, 4
lea eax, [ebp - 4]
call fcn.00409474
mov edx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d439c
sub eax, 4
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
xchg edx, ecx
xchg ecx, eax
call fcn.00406910
xor eax, eax
xor ebx, ebx
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x4d43b7
sub edx, 4
mov edx, dword [edx]
dec edx
test edx, edx
jl 0x4d4444
inc edx
mov dword [ebp - 0x1c], edx
xor esi, esi
inc eax
and eax, 0x800000ff
jns 0x4d43d5
dec eax
or eax, 0xffffff00
inc eax
add ebx, dword [ebp + eax*4 - 0x41c]
and ebx, 0x800000ff
jns 0x4d43ec
dec ebx
or ebx, 0xffffff00
inc ebx
movzx edx, byte [ebp + eax*4 - 0x41c]
mov byte [ebp - 0x15], dl
mov edx, dword [ebp + ebx*4 - 0x41c]
mov dword [ebp + eax*4 - 0x41c], edx
movzx edx, byte [ebp - 0x15]
mov dword [ebp + ebx*4 - 0x41c], edx
mov ecx, dword [ebp + eax*4 - 0x41c]
add ecx, edx
and ecx, 0x800000ff
jns 0x4d4429
dec ecx
or ecx, 0xffffff00
inc ecx
movzx edx, byte [ebp + ecx*4 - 0x41c]
mov byte [ebp - 0x16], dl
mov edx, dword [ebp - 0x10]
movzx ecx, byte [ebp - 0x16]
xor byte [edx + esi], cl
inc esi
dec dword [ebp - 0x1c]
jne 0x4d43c6
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d4450
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
xor ecx, ecx
xchg edx, eax
call fcn.00409734
mov eax, dword [ebp - 0x14]
call fcn.00409474
mov edx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d4471
sub eax, 4
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
xchg ecx, eax
call fcn.00406910
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d44af
lea eax, [ebp - 0x10]
mov edx, dword [0x4d44b8]
mov ecx, 2
call fcn.0040a2b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00408f58
ret