Function at 0x4368f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
add eax, esi
sub eax, ebx
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [esp + 0x14], eax
cmp eax, esi
jbe 0x436b6c
mov ebp, dword [esp + 0x40]
xor ecx, ecx
mov dword [esp], 0
mov dword [esp + 0xc], 0
jmp 0x436978
mov ecx, dword [esp + 4]
mov edx, ecx
mov eax, dword [esp]
sub edx, eax
cmp ecx, dword [esp + 0xc]
je 0x4369d6
mov dword [eax + edx], esi
add ecx, 4
mov dword [edi + 4], ecx
add esi, ebx
dec esi
inc esi
cmp esi, dword [esp + 0x14]
jae 0x436b6c
mov dword [esp + 4], ecx
test ebp, ebp
je 0x436986
cmp byte [ebp], 0x3f
je 0x436991
movzx ecx, byte [esi]
mov edx, dword [esp + 0x38]
cmp cl, byte [edx]
jne 0x4369d0
cmp ebx, 2
jb 0x436950
mov ecx, 1
jmp 0x4369c0
movzx edx, byte [esi + ecx]
mov eax, dword [esp + 0x38]
cmp dl, byte [eax + ecx]
jne 0x436adf
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
cmp ecx, ebx
jae 0x436950
test ebp, ebp
je 0x4369a0
cmp byte [ebp + ecx], 0x3f
jne 0x4369a0
jmp 0x4369b1
mov ecx, dword [esp + 4]
jmp 0x43696d
mov dword [esp + 8], edx
mov ecx, edx
sar ecx, 2
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
add edx, ecx
cmp edx, eax
ja 0x4369ee
mov edx, eax
mov dword [esp + 0xc], edx
lea eax, [edx*4]
push eax
call fcn.00408310
add esp, 4
mov ebp, eax
mov eax, dword [esp]
test eax, eax
je 0x436b40
cmp ebp, eax
mov ebx, eax
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [esp + 0x10], ebp
jbe 0x436aeb
cmp eax, ebp
jbe 0x436aeb
test edx, edx
je 0x436b29
mov ebx, dword [esp]
mov edx, dword [esp + 8]
lea eax, [ebx + edx]
dec eax
mov ecx, dword [esp + 0x10]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x436a77
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x436a60
add eax, edx
add ecx, edx
add edx, dword [esp + 8]
mov ebx, dword [esp]
mov edi, ebx
sub edi, dword [esp + 4]
cmp edi, 0xfffffff8
ja 0x436b29
neg edx
xor edi, edi
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], bl
movzx ebx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], bl
movzx ebx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], bl
movzx ebx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], bl
movzx ebx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], bl
movzx ebx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], bl
movzx ebx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x436a90
jmp 0x436b29
add esi, ecx
dec esi
mov ecx, dword [esp + 4]
jmp 0x43696d
mov ecx, edx
shr ecx, 2
mov eax, ebx
mov edi, ebp
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, edx
and edx, 0xfffffffc
add ebp, edx
add edx, ebx
mov eax, ecx
not eax
or eax, 3
add eax, ecx
inc eax
mov ecx, eax
shr ecx, 1
mov ebx, edx
mov edi, ebp
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
test al, 1
je 0x436b29
and eax, 0xfffffffe
movzx ecx, byte [edx + eax]
mov byte [ebp + eax], cl
push dword [esp]
call fcn.00408320
add esp, 4
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x10]
mov dword [edi], ebp
mov eax, dword [esp + 0xc]
lea eax, [eax*4]
add eax, ebp
mov ecx, ebp
mov edx, dword [esp + 8]
add ecx, edx
mov dword [esp + 0xc], eax
mov dword [edi + 8], eax
mov eax, ebp
mov dword [esp], ebp
mov ebp, dword [esp + 0x40]
jmp 0x436961
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret