Function at 0x429fc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x429fd5
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
cmp word [edi + 0xe], 4
je 0x429ff5
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
cdq
push ebx
mov ebx, eax
mov dword [ebp - 4], ecx
xor ebx, edx
lea eax, [ecx*4 + 0x1f]
sub ebx, edx
lea ecx, [ecx + ecx*2]
cdq
and edx, 0x1f
mov dword [ebp - 0x1c], ebx
add eax, edx
sar eax, 5
shl eax, 2
mov dword [ebp - 0xc], eax
lea eax, [ecx*8 + 0x1f]
push dword [ebp - 0xc]
cdq
and edx, 0x1f
add eax, edx
push ebx
push dword [ebp - 4]
sar eax, 5
shl eax, 2
push eax
mov dword [ebp - 0x14], eax
call fcn.00429630
add esp, 0x10
test eax, eax
je 0x42a068
mov eax, dword [ebp - 0x14]
imul eax, ebx
mov dword [ebp - 0x18], eax
add eax, 0x28
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x42a078
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
mov eax, dword [ebp - 4]
mov dword [ecx + 4], eax
lea esi, [ecx + 0x28]
mov dword [ecx], 0x28
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], 0x180001
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov eax, dword [edi + 0x18]
mov dword [ecx + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov eax, dword [edi + 0x20]
add eax, 0xa
lea edx, [edi + eax*4]
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], eax
test ebx, ebx
je 0x42a184
mov ecx, dword [ebp - 4]
lea ecx, [ecx + 1]
shr ecx, 1
xor eax, eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x18], eax
lea ecx, [ecx]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x42a168
jmp 0x42a100
mov bl, byte [edx]
inc edx
mov cl, bl
mov dword [ebp - 0x24], edx
shr cl, 4
and bl, 0xf
movzx edx, cl
movzx ecx, byte [edi + edx*4 + 0x28]
mov byte [eax + esi], cl
movzx ecx, byte [edi + edx*4 + 0x29]
mov byte [eax + esi + 1], cl
movzx ecx, byte [edi + edx*4 + 0x2a]
mov byte [eax + esi + 2], cl
add eax, 3
cmp eax, dword [ebp - 0x20]
jae 0x42a162
movzx edx, bl
movzx ecx, byte [edi + edx*4 + 0x28]
mov byte [eax + esi], cl
movzx ecx, byte [edi + edx*4 + 0x29]
mov byte [eax + esi + 1], cl
movzx ecx, byte [edi + edx*4 + 0x2a]
mov edx, dword [ebp - 0x24]
mov byte [eax + esi + 2], cl
add eax, 3
mov ecx, dword [ebp - 4]
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, dword [ebp - 8]
jb 0x42a100
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
add edx, dword [ebp - 0xc]
add eax, dword [ebp - 0x14]
dec ebx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
jne 0x42a0f0
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call esi
mov edi, dword [ebp - 0x28]
push edi
call esi
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret