Function at 0x4380c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
add eax, ebp
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, ebp
jbe 0x438350
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
dec eax
xor edi, edi
xor ecx, ecx
mov dword [esp + 4], 0
mov dword [esp + 0x18], eax
jmp 0x438124
add ebp, ecx
mov ecx, dword [esp]
inc ebp
cmp ebp, dword [esp + 0x1c]
jae 0x438350
mov dword [esp], ecx
test edx, edx
je 0x438130
cmp byte [edx], 0x3f
je 0x43813c
movzx ecx, byte [ebp]
mov ebx, dword [esp + 0x40]
cmp cl, byte [ebx]
jne 0x438116
cmp dword [esp + 0x44], 2
jb 0x438180
xor ecx, ecx
jmp 0x438168
movzx edx, byte [ebp + ecx + 1]
mov ebx, dword [esp + 0x40]
cmp dl, byte [ebx + ecx + 1]
mov edx, dword [esp + 0x48]
jne 0x438114
inc ecx
cmp eax, ecx
je 0x438180
test edx, edx
je 0x438150
cmp byte [edx + ecx + 1], 0x3f
jne 0x438150
jmp 0x438163
mov eax, edi
mov ecx, dword [esp]
sub eax, ecx
mov ebx, eax
sar ebx, 2
cmp edi, dword [esp + 4]
je 0x43819d
mov esi, ecx
mov eax, dword [esp + 0x34]
jmp 0x43833c
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], ebx
lea eax, [ebx + 1]
mov ebx, ecx
not ebx
mov esi, ecx
mov dword [esp + 0x10], ebx
and ebx, edi
mov edx, edi
not edx
and edx, ecx
sub ebx, edx
sar ebx, 2
mov ecx, ebx
shr ecx, 1
add ecx, ebx
cmp ecx, eax
ja 0x4381cb
mov ecx, eax
mov eax, ecx
and eax, 0xfffffffb
mov ebx, ecx
and ebx, 4
mov edx, ecx
mov dword [esp + 4], ecx
or edx, 4
imul edx, ebx
xor ebx, 4
imul ebx, eax
add edx, ebx
push edx
call fcn.00408d00
add esp, 4
mov edx, eax
test esi, esi
mov eax, dword [esp + 0x34]
je 0x43831d
mov ebx, esi
cmp edx, esi
mov esi, edx
mov edx, dword [esp + 0xc]
mov dword [esp + 8], esi
jbe 0x4382d3
lea eax, [ebx + edx]
cmp eax, esi
jbe 0x4382d3
test edx, edx
je 0x43830a
mov ebx, edx
mov eax, dword [esp]
add eax, edx
dec eax
mov ecx, dword [esp + 8]
add ecx, edx
dec ecx
mov esi, dword [esp + 0x10]
add esi, edi
mov edi, edx
and edi, 7
je 0x438266
neg edi
xor edx, edx
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 0x438250
add eax, edx
add ecx, edx
mov ebx, dword [esp + 0xc]
add ebx, edx
cmp esi, 7
jb 0x43830a
neg ebx
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
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 0x438280
jmp 0x43830a
mov ecx, edx
shr ecx, 2
mov eax, ebx
mov edi, esi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
and eax, 0xfffffffc
add esi, eax
add eax, ebx
mov ecx, edx
shr ecx, 1
and ecx, 1
mov ebx, eax
mov edi, esi
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
test dl, 1
je 0x43830a
and edx, 2
movzx eax, byte [eax + edx]
mov byte [esi + edx], al
push dword [esp]
call fcn.00408d10
add esp, 4
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 8]
mov dword [eax], edx
mov ebx, dword [esp + 0x14]
lea edi, [edx + ebx*4]
mov ecx, dword [esp + 4]
lea ecx, [edx + ecx*4]
mov dword [esp + 4], ecx
mov dword [eax + 8], ecx
mov ecx, edx
mov esi, edx
mov edx, dword [esp + 0x48]
mov dword [esi + ebx*4], ebp
add edi, 4
mov dword [eax + 4], edi
mov eax, dword [esp + 0x18]
add ebp, eax
jmp 0x438119
mov eax, dword [esp + 0x34]
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret