Function at 0x437120
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
add eax, ebp
sub eax, dword [esp + 0x48]
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov dword [esp + 0x20], eax
cmp eax, ebp
jbe 0x4373b9
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
lea esi, [eax - 1]
xor edi, edi
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0x1c], esi
jmp 0x4371b9
mov ebx, edi
mov esi, dword [esp + 4]
sub edi, esi
mov ecx, edi
sar ecx, 2
mov dword [esp + 0xc], ebx
cmp ebx, dword [esp + 8]
je 0x437209
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0xc]
mov dword [esi + ecx*4], ebp
add edi, 4
mov dword [ebx + 4], edi
mov esi, dword [esp + 0x1c]
add ebp, esi
inc ebp
cmp ebp, dword [esp + 0x20]
jae 0x4373b9
test edx, edx
je 0x4371c2
cmp byte [edx], 0x3f
je 0x4371ce
movzx ecx, byte [ebp]
mov eax, dword [esp + 0x44]
cmp cl, byte [eax]
jne 0x4371ae
cmp dword [esp + 0x48], 2
jb 0x437180
xor ecx, ecx
jmp 0x4371fc
movzx edx, byte [ebp + ecx + 1]
mov eax, dword [esp + 0x44]
cmp dl, byte [eax + ecx + 1]
mov edx, dword [esp + 0x4c]
jne 0x4372a3
inc ecx
cmp esi, ecx
je 0x437180
test edx, edx
je 0x4371e0
cmp byte [edx + ecx + 1], 0x3f
jne 0x4371e0
jmp 0x4371f7
mov dword [esp], edi
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
mov dword [esp + 0x18], ecx
add edx, ecx
cmp edx, eax
ja 0x43721f
mov edx, eax
mov dword [esp + 8], edx
lea eax, [edx*4]
push eax
call fcn.00408da0
add esp, 4
mov esi, eax
mov edx, dword [esp + 4]
test edx, edx
je 0x437391
cmp esi, edx
mov ebx, dword [esp]
mov dword [esp + 0x10], esi
jbe 0x4372aa
lea eax, [edx + ebx]
cmp eax, esi
jbe 0x4372aa
test ebx, ebx
je 0x437381
mov edx, dword [esp + 4]
lea eax, [edx + ebx]
dec eax
mov ecx, dword [esp + 0x10]
add ecx, ebx
dec ecx
mov esi, edx
not esi
add esi, dword [esp + 0xc]
and ebx, 7
je 0x43731f
neg ebx
xor edi, edi
nop
movzx edx, byte [eax + edi]
mov byte [ecx + edi], dl
dec edi
cmp ebx, edi
jne 0x437280
add ecx, edi
mov ebx, dword [esp]
add ebx, edi
add eax, edi
cmp esi, 7
jae 0x437327
jmp 0x437381
add ebp, ecx
jmp 0x4371ae
mov ecx, ebx
shr ecx, 2
mov eax, edx
mov edi, esi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
mov edx, dword [esp]
and edx, 0xfffffffc
lea edi, [esi + edx]
mov dword [esp + 0x14], edi
mov esi, dword [esp]
add edx, eax
mov eax, esi
and eax, 3
mov ecx, eax
shr ecx, 1
mov dword [esp + 0xc], edx
mov ebx, dword [esp + 0xc]
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov edi, dword [esp + 0x14]
mov ecx, eax
xor ecx, 0xfffffffe
or eax, 1
and eax, ecx
je 0x437381
and esi, 2
movzx ecx, byte [edx + esi]
mov byte [edi + esi], cl
cmp eax, 1
je 0x437381
movzx ecx, byte [edx + esi + 1]
mov byte [edi + esi + 1], cl
cmp eax, 2
je 0x437381
movzx eax, byte [edx + esi + 2]
mov byte [edi + esi + 2], al
jmp 0x437381
mov ebx, dword [esp]
cmp esi, 7
jb 0x437381
neg ebx
xor edx, edx
nop
nop
nop
nop
nop
mov edi, ebx
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
movzx ebx, byte [eax + edx - 1]
mov byte [ecx + edx - 1], bl
movzx ebx, byte [eax + edx - 2]
mov byte [ecx + edx - 2], bl
movzx ebx, byte [eax + edx - 3]
mov byte [ecx + edx - 3], bl
movzx ebx, byte [eax + edx - 4]
mov byte [ecx + edx - 4], bl
movzx ebx, byte [eax + edx - 5]
mov byte [ecx + edx - 5], bl
movzx ebx, byte [eax + edx - 6]
mov byte [ecx + edx - 6], bl
movzx ebx, byte [eax + edx - 7]
mov byte [ecx + edx - 7], bl
mov ebx, edi
add edx, 0xfffffff8
cmp edi, edx
jne 0x437330
push dword [esp + 4]
call fcn.00408db0
add esp, 4
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x38]
mov dword [ebx], esi
mov ecx, dword [esp + 0x18]
lea edi, [esi + ecx*4]
mov eax, dword [esp + 8]
lea eax, [esi + eax*4]
mov dword [esp + 8], eax
mov dword [ebx + 8], eax
mov dword [esp + 4], esi
mov edx, dword [esp + 0x4c]
jmp 0x43719f
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret