Function at 0x4238ec
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x48], 8
mov dword [ebp - 0x2c], edi
mov eax, dword [edi + 0x24]
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x28]
mov esi, dword [edi + 0x2c]
mov ebx, dword [edi + 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x14], edx
and edx, 0x7fff
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x38]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x20], edx
mov edx, dword [edi + 0x88]
test edx, edx
jne 0x42394f
cmp dword [edi + 0x80], edx
je 0x423db3
test ebx, ebx
je 0x423db3
mov esi, dword [ebp - 0x14]
mov eax, 0x1000
add esi, ebx
sub eax, ebx
and esi, 0x7fff
mov ecx, edx
cmp edx, eax
cmovae ecx, eax
sub edx, ecx
mov dword [ebp - 0x34], ecx
add ebx, ecx
mov dword [edi + 0x88], edx
mov dword [ebp - 0x28], ebx
test ecx, ecx
je 0x4239e9
mov ebx, ecx
mov eax, 0x8000
mov ecx, ebx
sub eax, esi
cmp eax, ebx
cmovb ecx, eax
lea eax, [esi + 0x90]
push ecx
push dword [edi + 0x84]
add eax, edi
mov dword [ebp - 0x24], ecx
push eax
call fcn.004d99b0
mov eax, 0x101
add esp, 0xc
cmp esi, eax
jae 0x4239d1
sub eax, esi
cmp dword [ebp - 0x24], eax
cmovb eax, dword [ebp - 0x24]
push eax
push dword [edi + 0x84]
lea eax, [edi + 0x8090]
add eax, esi
push eax
call fcn.004d99b0
add esp, 0xc
mov eax, dword [ebp - 0x24]
add esi, eax
add dword [edi + 0x84], eax
and esi, 0x7fff
sub ebx, eax
jne 0x42397e
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, 0x8000
sub eax, ebx
cmp eax, edx
cmovb edx, eax
cmp dword [edi + 0x80], 0
mov dword [ebp - 0x10], edx
jne 0x423a10
cmp ebx, 0x1000
jb 0x423dab
lea eax, [edi + 0x1926a]
mov dword [ebp - 0x44], eax
jmp 0x423ccb
xor eax, eax
inc eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
add eax, 0x90
add eax, edi
push 4
push eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push eax
call fcn.004d99b0
mov edx, dword [ebp - 0x38]
add esp, 0xc
mov eax, dword [ebp - 0x14]
and edx, 0xffffff
mov ecx, edx
movzx eax, ax
shr ecx, 0x11
xor ecx, edx
mov dword [ebp - 0x34], edx
and ecx, 0xfff
movzx esi, word [edi + ecx*2 + 0x29272]
mov word [edi + ecx*2 + 0x29272], ax
sub eax, esi
movzx eax, ax
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x10]
ja 0x423c04
and esi, 0x7fff
push 4
lea eax, [esi + 0x90]
add eax, edi
push eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004d99b0
mov eax, dword [ebp - 0x3c]
add esp, 0xc
mov edx, dword [ebp - 0x34]
and eax, 0xffffff
cmp eax, edx
jne 0x423c04
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x40]
push 0x20
pop ecx
mov dword [ebp - 0x24], ecx
add ebx, 2
add edi, 2
mov ecx, ebx
call fcn.004238d3
mov ecx, edi
mov si, ax
call fcn.004238d3
cmp ax, si
jne 0x423b35
add ebx, 2
add edi, 2
mov ecx, ebx
call fcn.004238d3
mov ecx, edi
mov si, ax
call fcn.004238d3
cmp ax, si
jne 0x423b35
add ebx, 2
add edi, 2
mov ecx, ebx
call fcn.004238d3
mov ecx, edi
mov si, ax
call fcn.004238d3
cmp ax, si
jne 0x423b35
add ebx, 2
add edi, 2
mov ecx, ebx
call fcn.004238d3
mov ecx, edi
mov si, ax
call fcn.004238d3
cmp ax, si
jne 0x423b35
sub dword [ebp - 0x24], 1
jne 0x423abf
mov al, byte [edi]
mov edx, edi
sub edx, dword [ebp - 0x30]
xor ecx, ecx
mov edi, dword [ebp - 0x2c]
sar edx, 1
cmp al, byte [ebx]
mov ebx, dword [ebp - 0x28]
sete cl
cmp dword [ebp - 0x24], 0
lea eax, [ecx + edx*2]
mov edx, dword [ebp - 0x1c]
jne 0x423b62
mov eax, edx
neg eax
sbb eax, eax
and eax, 0x102
cmp eax, 3
jb 0x423bf1
jne 0x423b75
cmp edx, 0x2000
jae 0x423bf1
cmp eax, ebx
mov ecx, ebx
dec edx
cmovb ecx, eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], ecx
push 4
lea eax, [ecx - 3]
mov ecx, dword [ebp - 4]
mov byte [ecx], al
lea eax, [ebp - 0x1c]
push eax
lea eax, [ecx + 1]
push eax
call fcn.004d99b0
mov esi, dword [ebp - 0xc]
add esp, 0xc
mov al, byte [esi]
shr al, 1
or al, 0x80
mov byte [esi], al
mov eax, dword [ebp - 0x1c]
and eax, 0x1ff
push 3
movzx ecx, byte [eax + 0x53f770]
mov eax, dword [ebp - 0x1c]
shr eax, 8
cmp dword [ebp - 0x1c], 0x200
movzx eax, byte [eax + 0x53f4f0]
cmovb eax, ecx
mov ecx, dword [ebp - 4]
inc word [edi + eax*2 + 0x83d2]
mov eax, dword [ebp - 0x24]
movzx eax, word [eax*2 + 0x53fa6a]
inc word [edi + eax*2 + 0x8192]
pop eax
jmp 0x423c1c
mov ecx, dword [ebp - 4]
xor eax, eax
inc eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x34]
mov byte [ecx], al
movzx eax, al
jmp 0x423c0c
mov ecx, dword [ebp - 4]
movzx eax, dl
mov byte [ecx], dl
mov esi, dword [ebp - 0xc]
shr byte [esi], 1
inc word [edi + eax*2 + 0x8192]
xor eax, eax
inc eax
lea edx, [eax + ecx]
mov eax, dword [ebp - 8]
sub eax, 1
mov ecx, eax
push 8
pop edi
cmove eax, edi
test ecx, ecx
mov dword [ebp - 8], eax
mov edi, 0x8000
mov eax, edx
cmovne eax, esi
mov esi, eax
lea eax, [edx + 1]
mov ecx, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
cmovne ecx, edx
mov edx, dword [ebp - 0x24]
add eax, edx
add dword [ebp - 0x18], edx
add dword [ebp - 0x14], edx
mov edx, edi
cmp eax, edi
mov dword [ebp - 0xc], esi
mov edi, dword [ebp - 0x20]
cmovb edx, eax
mov dword [ebp - 4], ecx
add edi, dword [ebp - 0x24]
sub ebx, dword [ebp - 0x24]
and edi, 0x7fff
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x28], ebx
cmp ecx, dword [ebp - 0x44]
jbe 0x423ccb
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x24], edx
mov edx, dword [ebp - 0x18]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x3c], edx
xor edx, edx
mov dword [edi + 0x28], ecx
mov ecx, edi
mov dword [edi + 0x20], ebx
mov dword [edi + 0x2c], esi
mov dword [edi + 0x38], eax
call fcn.004233f2
test eax, eax
jne 0x423dd9
mov eax, dword [edi + 0x3c]
mov esi, dword [edi + 0x2c]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x38]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], eax
cmp ebx, 4
jae 0x423a1e
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
test ebx, ebx
je 0x423931
mov eax, dword [ebp - 0x20]
inc dword [ebp - 0x18]
mov dl, byte [eax + edi + 0x90]
lea eax, [ecx + 1]
mov byte [ecx], dl
shr byte [esi], 1
mov ecx, dword [ebp - 8]
sub ecx, 1
mov edi, ecx
mov dword [ebp - 8], ecx
cmove edi, dword [ebp - 0x48]
test ecx, ecx
mov dword [ebp - 8], edi
mov edi, dword [ebp - 0x2c]
cmovne eax, esi
mov esi, eax
xor eax, eax
test ecx, ecx
mov dword [ebp - 0xc], esi
mov ecx, dword [ebp - 4]
sete al
inc eax
add ecx, eax
movzx eax, dl
mov edx, 0x8000
mov dword [ebp - 4], ecx
inc word [edi + eax*2 + 0x8192]
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
inc eax
cmp eax, edx
cmovb edx, eax
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x10], edx
and eax, 0x7fff
dec ebx
mov dword [ebp - 0x20], eax
lea eax, [edi + 0x1926a]
cmp ecx, eax
jbe 0x423d9e
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x24], edx
mov edx, dword [ebp - 0x18]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x3c], edx
xor edx, edx
mov dword [edi + 0x28], ecx
mov ecx, edi
mov dword [edi + 0x20], ebx
mov dword [edi + 0x2c], esi
mov dword [edi + 0x38], eax
call fcn.004233f2
test eax, eax
jne 0x423dd9
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x28]
mov esi, dword [edi + 0x2c]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x38]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], eax
test ebx, ebx
jne 0x423ce2
jmp 0x423931
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
jmp 0x423db6
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x38], eax
xor eax, eax
mov dword [edi + 0x24], edx
inc eax
mov edx, dword [ebp - 0x18]
mov dword [edi + 0x20], ebx
mov dword [edi + 0x3c], edx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], esi
jmp 0x423dde
not eax
shr eax, 0x1f
pop edi
pop esi
pop ebx
leave
ret