Function at 0x4381f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
add eax, ebp
sub eax, dword [esp + 0x40]
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov dword [esp + 0x18], eax
cmp eax, ebp
jbe 0x438481
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
lea esi, [eax - 1]
xor edi, edi
mov dword [esp + 4], 0
mov dword [esp + 0x10], 0
jmp 0x438283
mov ebx, dword [esp]
mov edi, ebx
mov eax, dword [esp + 4]
sub edi, eax
mov ecx, edi
sar ecx, 2
cmp ebx, dword [esp + 0x10]
je 0x4382d9
mov ebx, dword [esp + 0x30]
mov edi, dword [esp]
mov dword [eax + ecx*4], ebp
add edi, 4
mov dword [ebx + 4], edi
add ebp, esi
inc ebp
cmp ebp, dword [esp + 0x18]
jae 0x438481
test edx, edx
je 0x43828c
cmp byte [edx], 0x3f
je 0x438298
movzx ecx, byte [ebp]
mov eax, dword [esp + 0x3c]
cmp cl, byte [eax]
jne 0x438278
mov dword [esp], edi
cmp dword [esp + 0x40], 2
jb 0x438250
xor ecx, ecx
jmp 0x4382cc
movzx edx, byte [ebp + ecx + 1]
mov eax, dword [esp + 0x3c]
cmp dl, byte [eax + ecx + 1]
mov edx, dword [esp + 0x44]
jne 0x4383ef
inc ecx
cmp esi, ecx
je 0x438250
test edx, edx
je 0x4382b0
cmp byte [edx + ecx + 1], 0x3f
jne 0x4382b0
jmp 0x4382c7
mov dword [esp + 8], edi
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
mov dword [esp + 0x14], ecx
add edx, ecx
cmp edx, eax
ja 0x4382f0
mov edx, eax
mov dword [esp + 0x10], edx
lea eax, [edx*4]
push eax
call fcn.00408cc0
add esp, 4
mov edx, dword [esp + 4]
test edx, edx
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0x30]
je 0x438455
cmp eax, edx
mov ebx, eax
mov edi, dword [esp + 8]
jbe 0x4383f9
lea eax, [edx + edi]
cmp eax, ebx
jbe 0x4383f9
test edi, edi
je 0x438441
mov ebx, dword [esp + 4]
lea eax, [edi + ebx]
dec eax
mov ecx, edi
xor ecx, 0xfffffffe
mov edx, edi
and edx, 0xfffffffe
lea ecx, [ecx + edx*2]
mov edx, dword [esp + 0xc]
add ecx, edx
inc ecx
mov edx, ebx
not edx
add edx, dword [esp]
mov ebx, edi
and ebx, 7
je 0x438387
mov dword [esp], edx
neg ebx
xor edi, edi
nop
nop
nop
nop
nop
nop
movzx edx, byte [eax + edi]
mov byte [ecx + edi], dl
dec edi
cmp ebx, edi
jne 0x438370
add eax, edi
add dword [esp + 8], edi
add ecx, edi
mov edx, dword [esp]
cmp edx, 7
mov edi, dword [esp + 8]
jb 0x438441
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
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
add edx, 0xfffffff8
cmp edi, edx
jne 0x4383a0
jmp 0x438441
add ebp, ecx
mov edi, dword [esp]
jmp 0x438278
mov ecx, edi
shr ecx, 2
mov eax, edx
mov edi, ebx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
mov ecx, dword [esp + 8]
mov edx, ecx
and edx, 0xfffffffc
lea edi, [ebx + edx]
add edx, eax
mov eax, ecx
not eax
or eax, 3
add eax, ecx
inc eax
mov ecx, eax
shr ecx, 1
mov ebx, edx
mov dword [esp], edi
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
test al, 1
je 0x438441
and eax, 0xfffffffe
movzx ecx, byte [edx + eax]
mov edx, dword [esp]
mov byte [edx + eax], cl
push dword [esp + 4]
call fcn.00408cd0
add esp, 4
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0xc]
mov dword [ebx], eax
mov ecx, dword [esp + 0x14]
lea edi, [eax + ecx*4]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea edx, [edx + eax*4]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], edx
mov dword [ebx + 8], edx
mov dword [esp + 4], eax
mov edx, dword [esp + 0x44]
jmp 0x43826d
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret