Function at 0x4383e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
add ebx, ebp
sub ebx, dword [esp + 0x44]
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [esi], 0
cmp ebx, ebp
jbe 0x43865e
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
dec eax
mov dword [esp + 0x14], eax
xor edi, edi
mov dword [esp], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], ebx
jmp 0x43846c
mov ebx, edi
mov eax, dword [esp]
sub ebx, eax
mov ecx, ebx
sar ecx, 2
cmp edi, dword [esp + 0xc]
je 0x4384bb
mov dword [eax + ecx*4], ebp
add edi, 4
mov dword [esi + 4], edi
add ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
inc ebp
cmp ebp, ebx
jae 0x43865e
test edx, edx
je 0x438475
cmp byte [edx], 0x3f
je 0x438481
movzx ecx, byte [ebp]
mov eax, dword [esp + 0x40]
cmp cl, byte [eax]
jne 0x438463
cmp dword [esp + 0x44], 2
jb 0x438440
xor ecx, ecx
jmp 0x4384ae
movzx edx, byte [ebp + ecx + 1]
mov eax, dword [esp + 0x40]
cmp dl, byte [eax + ecx + 1]
mov edx, dword [esp + 0x48]
jne 0x438567
inc ecx
cmp dword [esp + 0x14], ecx
je 0x438440
test edx, edx
je 0x438490
cmp byte [edx + ecx + 1], 0x3f
jne 0x438490
jmp 0x4384a7
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
mov dword [esp + 0x18], ecx
add edx, ecx
cmp edx, eax
ja 0x4384ce
mov edx, eax
mov dword [esp + 0xc], edx
lea eax, [edx*4]
push eax
call fcn.00408de0
add esp, 4
mov edx, dword [esp]
test edx, edx
mov dword [esp + 8], eax
je 0x438633
cmp eax, edx
mov esi, eax
jbe 0x43856e
lea eax, [edx + ebx]
cmp eax, esi
jbe 0x43856e
test ebx, ebx
je 0x438620
mov eax, dword [esp]
lea esi, [eax + ebx]
dec esi
mov ecx, dword [esp + 8]
add ecx, ebx
dec ecx
mov edx, eax
not edx
add edx, edi
mov dword [esp + 4], ebx
and ebx, 3
je 0x4385d3
mov dword [esp + 0x10], edx
add edi, edi
sub edi, eax
sub edi, eax
neg ebx
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [esi + edx]
mov byte [ecx + edx], al
dec edx
add edi, 0xfffffffe
cmp ebx, edx
jne 0x438540
add esi, edx
add ecx, edx
mov ebx, dword [esp + 4]
add ebx, edx
mov edx, dword [esp + 0x10]
cmp edx, 3
jae 0x4385dc
jmp 0x438620
add ebp, ecx
jmp 0x438463
mov ecx, ebx
shr ecx, 2
mov eax, edx
mov edi, esi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, ebx
and eax, 0xfffffffc
add eax, esi
mov esi, eax
mov eax, ebx
xor eax, 3
mov ecx, edx
mov edx, ebx
or edx, 0xfffffffc
and edx, eax
add edx, ecx
mov eax, ebx
and eax, 3
mov ecx, eax
shr ecx, 1
mov edi, edx
mov dword [esp + 4], edx
mov dword [esp + 0x10], esi
mov edi, esi
mov esi, dword [esp + 4]
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
test bl, 1
je 0x438620
mov ecx, ebx
not ecx
or ecx, 0xfffffffe
add eax, ecx
and ebx, 2
movzx eax, byte [edx + eax + 1]
mov ecx, dword [esp + 0x10]
mov byte [ecx + ebx], al
jmp 0x438620
mov ebx, dword [esp + 4]
cmp edx, 3
jb 0x438620
mov edx, 1
sub edx, ebx
add ebx, ebx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [esi + edi*2]
mov byte [ecx + edi*2], al
movzx eax, byte [esi + edi*2 - 1]
mov byte [ecx + edi*2 - 1], al
movzx eax, byte [esi + edi*2 - 2]
mov byte [ecx + edi*2 - 2], al
movzx eax, byte [esi + edi*2 - 3]
mov byte [ecx + edi*2 - 3], al
add edi, 0xfffffffe
add edx, 4
add ebx, 0xfffffff8
cmp edx, 1
jne 0x4385f0
push dword [esp]
call fcn.00408df0
add esp, 4
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 8]
mov dword [esi], eax
mov ecx, dword [esp + 0x18]
lea edi, [eax + ecx*4]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea edx, [edx + eax*4]
mov eax, dword [esp + 8]
mov dword [esp + 0xc], edx
mov dword [esi + 8], edx
mov dword [esp], eax
mov edx, dword [esp + 0x48]
jmp 0x438452
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret