Function at 0x437c90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
bsr eax, dword [ebp + 0x10]
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x24], 0
push edi
mov esi, 0xffffffff
mov dword [ebp - 0xc], ebx
cmovne esi, eax
mov edi, 0x20
sub edi, esi
lea ecx, [ebx + edx]
mov dword [ebp - 0x18], edi
mov eax, ebx
mov dword [ebp - 8], ecx
cmp edx, 0xf
jb 0x437ed0
imul edx, dword [ebx + 1], 0x1e35a7bd
lea eax, [ecx - 0xf]
lea esi, [ebx + 1]
mov dword [ebp - 0x20], eax
mov ecx, edi
mov dword [ebp - 0x1c], ebx
mov edi, dword [ebp + 8]
shr edx, cl
mov ecx, 0x20
nop dword [eax + eax]
mov eax, ecx
mov dword [ebp + 8], esi
shr eax, 5
mov ebx, esi
inc ecx
mov dword [ebp - 0x10], ebx
add esi, eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], ecx
cmp esi, dword [ebp - 0x20]
ja 0x437ed5
imul edx, dword [esi], 0x1e35a7bd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
shr edx, cl
mov ecx, dword [ebp + 0xc]
movzx ecx, word [ecx + eax*2]
mov eax, ebx
add ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x14]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0xc]
mov word [ecx + ebx*2], ax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
mov eax, dword [eax]
cmp eax, dword [ecx]
mov ecx, dword [ebp - 0x24]
jne 0x437cf0
mov edx, dword [ebp - 0x1c]
mov eax, ebx
sub eax, dword [ebp - 0x1c]
mov ecx, edi
push 1
push eax
call fcn.00437b70
mov edi, eax
add esp, 8
mov eax, dword [ebp - 8]
add eax, 0xfffffffc
mov dword [ebp - 0x14], eax
nop dword [eax + eax]
mov esi, dword [ebp - 4]
lea eax, [ebx + 4]
xor edx, edx
lea ecx, [esi + 4]
mov dword [ebp - 0x24], ecx
cmp eax, dword [ebp - 0x14]
ja 0x437da0
mov esi, ecx
sub esi, eax
mov ecx, dword [eax]
cmp ecx, dword [esi + eax]
jne 0x437df8
mov ecx, dword [ebp - 0x14]
add eax, 4
add edx, 4
cmp eax, ecx
jbe 0x437d87
mov esi, dword [ebp - 4]
jmp 0x437da3
mov ecx, dword [ebp - 0x14]
cmp eax, ecx
jbe 0x437dfb
cmp eax, dword [ebp - 8]
jae 0x437dc5
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 8]
mov cl, byte [ebx + edx]
cmp cl, byte [eax]
jne 0x437dbf
inc eax
inc edx
cmp eax, esi
jb 0x437db2
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 4]
lea ecx, [edx + 4]
sub ebx, esi
add dword [ebp + 8], ecx
cmp ecx, 0x44
jl 0x437e1a
movzx esi, bx
mov eax, esi
shr edx, 6
mov dword [ebp - 0x24], eax
mov eax, edx
shl eax, 6
sub ecx, eax
mov byte [edi], 0xfe
mov word [edi + 1], si
add edi, 3
sub edx, 1
jne 0x437de4
mov eax, dword [ebp - 0x24]
jmp 0x437e1d
mov esi, dword [ebp - 4]
mov ecx, dword [esi + edx + 4]
xor ecx, dword [eax]
bsf eax, ecx
mov ecx, 0x20
mov dword [ebp - 0x24], 0
cmovne ecx, eax
sar ecx, 3
add edx, ecx
jmp 0x437dc5
movzx eax, bx
movzx edx, ax
cmp ecx, 0x40
jle 0x437e32
mov byte [edi], 0xee
mov word [edi + 1], dx
add edi, 3
sub ecx, 0x3c
cmp ecx, 0xc
jge 0x437e57
cmp ebx, 0x800
jae 0x437e57
mov eax, ebx
shl cl, 2
shr eax, 3
and al, 0xe0
sub al, 0xf
add al, cl
mov byte [edi], al
mov byte [edi + 1], bl
add edi, 2
jmp 0x437e66
shl cl, 2
sub cl, 2
mov byte [edi], cl
mov word [edi + 1], dx
add edi, 3
mov eax, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], ebx
movzx ecx, bx
cmp ebx, dword [ebp - 0x20]
jae 0x437ed8
imul eax, dword [eax - 1], 0x1e35a7bd
sub ecx, dword [ebp - 0xc]
mov ebx, dword [ebp + 0xc]
movzx esi, cx
mov ecx, dword [ebp - 0x18]
shr eax, cl
lea edx, [esi - 1]
mov word [ebx + eax*2], dx
mov edx, dword [ebp + 8]
imul eax, dword [edx], 0x1e35a7bd
shr eax, cl
mov ecx, ebx
mov ebx, dword [ebp - 0x10]
lea ecx, [ecx + eax*2]
movzx eax, word [ecx]
add eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [eax]
mov word [ecx], si
cmp dword [edx], eax
je 0x437d70
imul edx, dword [edx + 1], 0x1e35a7bd
lea esi, [ebx + 1]
mov ecx, dword [ebp - 0x18]
jmp 0x437ce4
mov edi, dword [ebp + 8]
jmp 0x437edb
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
jae 0x437ef7
sub ecx, eax
mov edx, eax
push 0
push ecx
mov ecx, edi
call fcn.00437b70
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret