Function at 0x439d60
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 0x439fed
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
lea esi, [eax - 1]
xor ebx, ebx
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 0x14], esi
jmp 0x439df4
mov edi, ebx
mov eax, dword [esp]
sub edi, eax
mov ecx, edi
sar ecx, 2
mov dword [esp + 0xc], ebx
cmp ebx, dword [esp + 4]
je 0x439e49
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x34]
mov dword [eax + ecx*4], ebp
add ebx, 4
mov dword [edi + 4], ebx
add ebp, esi
inc ebp
cmp ebp, dword [esp + 0x1c]
jae 0x439fed
test edx, edx
je 0x439dfd
cmp byte [edx], 0x3f
je 0x439e09
movzx ecx, byte [ebp]
mov eax, dword [esp + 0x40]
cmp cl, byte [eax]
jne 0x439de9
cmp dword [esp + 0x44], 2
jb 0x439dc0
xor ecx, ecx
jmp 0x439e3c
movzx edx, byte [ebp + ecx + 1]
mov eax, dword [esp + 0x40]
cmp dl, byte [eax + ecx + 1]
mov edx, dword [esp + 0x48]
jne 0x439f6f
inc ecx
cmp esi, ecx
je 0x439dc0
test edx, edx
je 0x439e20
cmp byte [edx + ecx + 1], 0x3f
jne 0x439e20
jmp 0x439e37
mov dword [esp + 8], edi
lea edx, [ecx + 1]
mov eax, ecx
shr eax, 1
mov dword [esp + 0x18], ecx
add eax, ecx
cmp eax, edx
ja 0x439e60
mov eax, edx
mov ebx, eax
and ebx, 0xfffffffb
mov ecx, eax
and ecx, 4
mov dword [esp + 4], eax
or eax, 4
imul eax, ecx
xor ecx, 4
imul ecx, ebx
add eax, ecx
push eax
call fcn.00408cc0
add esp, 4
mov esi, eax
mov eax, dword [esp]
test eax, eax
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0xc]
je 0x439fc2
mov ecx, dword [esp + 8]
lea edx, [ecx + 0x7d7836fc]
cmp esi, eax
mov ebx, eax
mov dword [esp + 0x10], esi
jbe 0x439f76
cmp edi, esi
jbe 0x439f76
test ecx, ecx
je 0x439faf
mov edi, ecx
mov ebx, dword [esp]
lea eax, [ebx + edx]
add eax, 0x8287c903
mov ecx, dword [esp + 0x10]
add ecx, edx
add ecx, 0x8287c903
mov esi, ebx
not esi
add esi, dword [esp + 0xc]
mov ebx, edi
and ebx, 7
je 0x439f04
neg ebx
xor edi, edi
nop
nop
movzx edx, byte [eax + edi]
mov byte [ecx + edi], dl
dec edi
cmp ebx, edi
jne 0x439ef0
add eax, edi
add dword [esp + 8], edi
add ecx, edi
cmp esi, 7
mov edi, dword [esp + 8]
jb 0x439faf
neg edi
xor edx, edx
nop
nop
nop
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 0x439f20
jmp 0x439faf
add ebp, ecx
jmp 0x439de9
mov eax, ecx
shr ecx, 2
mov dword [esp], ebx
mov edi, esi
xchg esi, ebx
rep movsd dword es:[edi], dword [esi]
xchg esi, ebx
and eax, 0xfffffffc
add esi, eax
add eax, dword [esp]
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 0x439faf
and edx, 2
movzx eax, byte [eax + edx]
mov byte [esi + edx], al
push dword [esp]
call fcn.00408cd0
add esp, 4
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x10]
mov dword [edx], esi
mov ecx, dword [esp + 0x18]
lea ebx, [esi + ecx*4]
mov eax, dword [esp + 4]
lea eax, [esi + eax*4]
mov dword [esp + 4], eax
mov dword [edx + 8], eax
mov dword [esp], esi
mov edi, edx
mov edx, dword [esp + 0x48]
mov eax, esi
mov esi, dword [esp + 0x14]
jmp 0x439dde
mov eax, dword [esp + 0x34]
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret