Function at 0x10036940
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x34
mov eax, dword [0x1010d170]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x30], edx
movzx edx, byte [ebp + 1]
mov edi, dword [eax]
lea eax, [ebp + 1]
mov dword [esp + 0x2c], eax
inc eax
inc eax
shl edx, 8
mov dword [esp + 0x34], ecx
movzx ecx, byte [ebp]
or ecx, edx
movzx edx, byte [eax - 1]
inc eax
movzx ebx, byte [eax + 1]
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax - 1]
inc eax
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax - 1]
inc eax
shl ebx, 8
or edx, ebx
movzx ebx, byte [eax + 1]
movzx eax, byte [eax]
shl ebx, 8
or ebx, eax
mov eax, ecx
shr eax, 8
mov byte [esp + 0x39], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x3a], al
shl ebx, 0x10
or edx, ebx
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x3b], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x3d], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x3e], al
mov eax, edx
shr eax, 0x18
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov byte [esp + 0x38], cl
mov byte [esp + 0x3c], dl
mov byte [esp + 0x3f], al
test esi, esi
je 0x10036b25
nop
dec dword [esp + 0x14]
test edi, edi
jne 0x10036a8d
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
lea esi, [esp + 0x28]
call fcn.10035b80
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, eax
shr ebx, 8
mov byte [esp + 0x45], bl
mov ebx, eax
mov ecx, eax
mov byte [esp + 0x44], al
shr ebx, 0x10
shr eax, 0x18
mov byte [esp + 0x46], bl
mov byte [esp + 0x47], al
mov eax, edx
mov ebx, eax
shr ebx, 8
mov byte [esp + 0x49], bl
mov ebx, eax
mov byte [esp + 0x48], al
shr ebx, 0x10
shr eax, 0x18
add esp, 0xc
inc dword [esp + 0x18]
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], al
mov bl, byte [esp + edi + 0x38]
mov esi, dword [esp + 0x48]
xor bl, byte [esi]
mov eax, dword [esp + 0x24]
inc edi
mov byte [eax], bl
inc eax
inc esi
and edi, 7
cmp dword [esp + 0x14], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x48], esi
jne 0x10036a20
cmp dword [esp + 0x18], 0
je 0x10036b0c
mov esi, dword [esp + 0x2c]
mov byte [ebp], cl
mov eax, ecx
shr eax, 8
mov byte [esi], al
inc esi
mov eax, ecx
shr eax, 0x10
mov byte [esi], al
inc esi
shr ecx, 0x18
mov byte [esi], cl
mov byte [esi + 1], dl
inc esi
inc esi
mov ecx, edx
shr ecx, 8
mov byte [esi], cl
mov ecx, dword [esp + 0x10]
inc esi
mov eax, edx
shr eax, 0x10
mov byte [esi], al
shr edx, 0x18
mov byte [esi + 1], dl
mov dword [ecx], edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.100ae60d
add esp, 0x34
ret
mov edx, dword [esp + 0x10]
mov dword [edx], edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.100ae60d
add esp, 0x34
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100ae60d
add esp, 0x34
ret