Function at 0x4369d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
add eax, esi
sub eax, dword [esp + 0x44]
mov dword [ecx + 8], 0
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov dword [esp + 0x1c], eax
cmp eax, esi
jbe 0x436c5b
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
lea ebp, [eax - 1]
xor edi, edi
mov dword [esp], 0
xor eax, eax
mov dword [esp + 0x18], ebp
jmp 0x436a60
mov ebp, edi
mov ecx, dword [esp]
sub ebp, ecx
cmp edi, eax
je 0x436aa9
mov ebx, ecx
mov ecx, dword [esp + 0x34]
mov dword [ebx + ebp], esi
add edi, 4
mov dword [ecx + 4], edi
mov ecx, dword [esp + 0x44]
add esi, ecx
dec esi
mov ebp, dword [esp + 0x18]
inc esi
cmp esi, dword [esp + 0x1c]
jae 0x436c5b
test edx, edx
je 0x436a69
cmp byte [edx], 0x3f
je 0x436a74
movzx ecx, byte [esi]
mov ebx, dword [esp + 0x40]
cmp cl, byte [ebx]
jne 0x436a55
cmp dword [esp + 0x44], 2
jb 0x436a30
xor ecx, ecx
jmp 0x436a9c
movzx edx, byte [esi + ecx + 1]
mov ebx, dword [esp + 0x40]
cmp dl, byte [ebx + ecx + 1]
mov edx, dword [esp + 0x48]
jne 0x436bcf
inc ecx
cmp ebp, ecx
je 0x436a30
test edx, edx
je 0x436a80
cmp byte [edx + ecx + 1], 0x3f
jne 0x436a80
jmp 0x436a97
mov dword [esp + 0xc], ebp
sar ebp, 2
lea edx, [ebp + 1]
mov eax, ebp
shr eax, 1
add eax, ebp
cmp eax, edx
ja 0x436abf
mov eax, edx
mov ebx, eax
or ebx, 4
mov ecx, eax
and ecx, 4
imul ebx, ecx
mov dword [esp + 0x14], eax
and eax, 0xfffffffb
xor ecx, 4
imul ecx, eax
add ecx, ebx
push ecx
call fcn.00408000
add esp, 4
mov edx, dword [esp]
test edx, edx
mov ebx, dword [esp + 0xc]
je 0x436c35
mov ecx, edi
not ecx
and ecx, edx
mov ebp, edx
not ebp
and ebp, edi
mov dword [esp + 8], ebp
sub ebp, ecx
cmp eax, edx
mov edi, eax
mov dword [esp + 0x10], eax
jbe 0x436bd6
lea eax, [edx + ebp]
cmp eax, edi
jbe 0x436bd6
test ebp, ebp
je 0x436c26
mov dword [esp + 4], ecx
mov eax, dword [esp]
add eax, ebp
dec eax
mov ecx, dword [esp + 0x10]
add ecx, ebp
dec ecx
mov edx, ebp
and edx, 7
je 0x436b66
neg edx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
dec edi
cmp edx, edi
jne 0x436b50
add eax, edi
add ecx, edi
add ebp, edi
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 4]
sub edx, dword [esp + 8]
cmp edx, 0xfffffff8
ja 0x436c26
neg ebp
xor edi, edi
nop
nop
nop
nop
nop
movzx edx, byte [eax + edi]
mov byte [ecx + edi], dl
movzx edx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], dl
movzx edx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], dl
movzx edx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], dl
movzx edx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], dl
movzx edx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], dl
movzx edx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], dl
movzx edx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], dl
add edi, 0xfffffff8
cmp ebp, edi
jne 0x436b80
jmp 0x436c26
add esi, ecx
jmp 0x436a55
mov ecx, ebp
shr ecx, 2
mov eax, edx
mov ebx, edi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, ebp
and eax, 0xfffffffc
lea edi, [ebx + eax]
mov ebx, dword [esp + 0xc]
add eax, edx
mov ecx, ebp
not ecx
or ecx, 3
lea edx, [ecx + ebp]
inc edx
mov ecx, edx
shr ecx, 1
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov ebp, dword [esp + 8]
xchg esi, ebp
rep movsw word es:[edi], word [esi]
xchg esi, ebp
test dl, 1
je 0x436c26
and edx, 0xfffffffe
movzx eax, byte [eax + edx]
mov ecx, dword [esp + 4]
mov byte [ecx + edx], al
push dword [esp]
call fcn.00408010
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
mov dword [ecx], eax
mov ebp, ebx
mov ebx, eax
mov eax, dword [esp + 0x14]
lea eax, [ebx + eax*4]
mov edi, ebx
add edi, ebp
mov dword [ecx + 8], eax
mov edx, ebx
mov dword [esp], ebx
mov edx, dword [esp + 0x48]
jmp 0x436a41
mov eax, dword [esp + 0x34]
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret