Function at 0x4249c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x40]
test edi, edi
jne 0x4249d9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
cmp word [esi + 0xe], 4
je 0x4249fa
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
mov eax, dword [esi + 8]
mov ebp, dword [esi + 4]
cdq
mov edi, eax
lea eax, [ebp*4 + 0x1f]
xor edi, edx
sub edi, edx
cdq
and edx, 0x1f
add eax, edx
mov ecx, eax
lea eax, [ebp + ebp*2]
sar ecx, 5
lea eax, [eax*8 + 0x1f]
cdq
and edx, 0x1f
add eax, edx
mov ebx, eax
shl ecx, 2
sar ebx, 5
push ecx
push edi
shl ebx, 2
push ebp
push ebx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], ebx
call fcn.00423010
add esp, 0x10
test eax, eax
jne 0x424a62
mov ecx, dword [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
mov eax, ebx
imul eax, edi
mov dword [esp + 0x20], eax
add eax, 0x28
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [esp + 0x38], eax
jne 0x424a94
mov edx, dword [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor ecx, ecx
mov dword [eax], 0x28
mov dword [eax + 4], ebp
mov dword [eax + 8], edi
mov word [eax + 0xc], 1
mov word [eax + 0xe], 0x18
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov edx, dword [esi + 0x18]
mov dword [eax + 0x18], edx
mov edx, dword [esi + 0x1c]
mov dword [eax + 0x1c], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov ecx, dword [esi + 0x20]
dec edx
test edi, edi
lea ecx, [esi + ecx*4 + 0x28]
mov dword [esp + 0x28], edx
jbe 0x424bb6
lea edx, [ebp + 1]
mov dword [esp + 0x10], 0
shr edx, 1
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edi
mov ebp, ecx
mov ecx, dword [esp + 0x10]
test edx, edx
mov dword [esp + 0x14], 0
jbe 0x424b8f
mov dl, byte [ebp]
mov bl, dl
and dl, 0xf
shr bl, 4
mov byte [esp + 0x24], bl
mov byte [esp + 0x2c], dl
mov edi, dword [esp + 0x24]
inc ebp
and edi, 0xff
inc ecx
inc ecx
mov dl, byte [esi + edi*4 + 0x28]
mov byte [ecx + eax + 0x26], dl
mov dl, byte [esi + edi*4 + 0x29]
mov byte [ecx + eax + 0x27], dl
mov dl, byte [esi + edi*4 + 0x2a]
mov byte [ecx + eax + 0x28], dl
mov edx, dword [esp + 0x28]
inc ecx
cmp ecx, edx
jae 0x424b87
mov edi, dword [esp + 0x2c]
and edi, 0xff
inc ecx
inc ecx
mov dl, byte [esi + edi*4 + 0x28]
mov byte [ecx + eax + 0x26], dl
mov dl, byte [esi + edi*4 + 0x29]
mov byte [ecx + eax + 0x27], dl
mov dl, byte [esi + edi*4 + 0x2a]
mov edi, dword [esp + 0x18]
mov byte [ecx + eax + 0x28], dl
mov edx, dword [esp + 0x14]
inc ecx
inc edx
cmp edx, edi
mov dword [esp + 0x14], edx
jb 0x424b10
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x10]
add ecx, edi
mov edi, dword [esp + 0x20]
add ebp, ebx
dec edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], edi
jne 0x424afe
mov eax, dword [esp + 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push eax
call esi
mov edi, dword [esp + 0x38]
push edi
call esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret