Function at 0x436fc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
add eax, ebp
sub eax, dword [esp + 0x44]
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov dword [esp + 0x1c], eax
cmp eax, ebp
jbe 0x43724e
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
lea esi, [eax - 1]
xor edi, edi
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], esi
jmp 0x437059
mov esi, ebx
mov ebx, edi
mov eax, dword [esp + 8]
sub edi, eax
mov ecx, edi
sar ecx, 2
mov dword [esp + 4], ebx
cmp ebx, dword [esp + 0xc]
je 0x4370a9
mov edi, dword [esp + 4]
mov ebx, esi
mov esi, dword [esp + 0x14]
mov dword [eax + ecx*4], ebp
add edi, 4
mov dword [ebx + 4], edi
add ebp, esi
inc ebp
cmp ebp, dword [esp + 0x1c]
jae 0x43724e
test edx, edx
je 0x437062
cmp byte [edx], 0x3f
je 0x43706e
movzx ecx, byte [ebp]
mov eax, dword [esp + 0x40]
cmp cl, byte [eax]
jne 0x43704e
cmp dword [esp + 0x44], 2
jb 0x437020
xor ecx, ecx
jmp 0x43709c
movzx edx, byte [ebp + ecx + 1]
mov eax, dword [esp + 0x40]
cmp dl, byte [eax + ecx + 1]
mov edx, dword [esp + 0x48]
jne 0x437164
inc ecx
cmp esi, ecx
je 0x437020
test edx, edx
je 0x437080
cmp byte [edx + ecx + 1], 0x3f
jne 0x437080
jmp 0x437097
mov dword [esp + 0x10], edi
lea edx, [ecx + 1]
mov eax, ecx
shr eax, 1
mov dword [esp + 0x18], ecx
add eax, ecx
cmp eax, edx
ja 0x4370c0
mov eax, edx
mov ebx, eax
and ebx, 4
mov ecx, eax
or ecx, 4
imul ecx, ebx
xor ebx, 4
mov dword [esp + 0xc], eax
and eax, 0xfffffffb
imul eax, ebx
add ecx, eax
push ecx
call fcn.004085f0
add esp, 4
mov edx, dword [esp + 8]
test edx, edx
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 4]
mov dword [esp], eax
mov esi, dword [esp + 0x14]
je 0x437224
cmp eax, edx
mov ebx, dword [esp + 0x10]
jbe 0x43716b
mov ecx, eax
lea eax, [edx + ebx]
cmp eax, ecx
jbe 0x43716b
test ebx, ebx
je 0x437211
mov edx, dword [esp + 8]
lea eax, [edx + ebx]
dec eax
mov ecx, dword [esp]
add ecx, ebx
dec ecx
not edx
add edx, edi
and ebx, 7
je 0x4371af
mov dword [esp + 4], edx
neg ebx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [eax + edi]
mov byte [ecx + edi], dl
dec edi
cmp ebx, edi
jne 0x437140
add eax, edi
add ecx, edi
mov ebx, dword [esp + 0x10]
add ebx, edi
mov edx, dword [esp + 4]
cmp edx, 7
jae 0x4371b8
jmp 0x437211
add ebp, ecx
jmp 0x43704e
mov ecx, ebx
shr ecx, 2
mov eax, edx
mov edi, dword [esp]
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
mov edx, ebx
and edx, 0xfffffffc
mov ecx, dword [esp]
lea edi, [ecx + edx]
add edx, eax
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov eax, edx
mov dword [esp + 4], edi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
test bl, 1
je 0x437211
and ebx, 2
movzx eax, byte [edx + ebx]
mov ecx, dword [esp + 4]
mov byte [ecx + ebx], al
jmp 0x437211
mov ebx, dword [esp + 0x10]
cmp edx, 7
jb 0x437211
neg ebx
xor edx, edx
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 0x4371c0
push dword [esp + 8]
call fcn.00408600
add esp, 4
mov ebx, dword [esp + 0x34]
mov eax, dword [esp]
mov dword [ebx], eax
mov ecx, dword [esp + 0x18]
lea edi, [eax + ecx*4]
mov eax, dword [esp + 0xc]
mov edx, dword [esp]
lea edx, [edx + eax*4]
mov eax, dword [esp]
mov dword [esp + 0xc], edx
mov dword [ebx + 8], edx
mov dword [esp + 8], eax
mov edx, dword [esp + 0x48]
jmp 0x437043
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret