Function at 0x4021a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push 0xffffffffffffffff
push 0x431888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x154]
or ecx, 0xffffffff
xor eax, eax
xor bl, bl
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x44]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x14c], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x440ed0]
mov ax, word [ecx + 0x72]
cmp ax, 1
jne 0x40232e
mov esi, dword [esp + 0x15c]
mov ecx, 0xa
mov eax, dword [esi]
cdq
idiv ecx
push edx
lea edx, [esp + 0x14]
push 0x43f23c
push edx
call fcn.00405efd
mov eax, dword [esi]
add esp, 0xc
inc eax
lea edi, [esp + 0x10]
mov dword [esi], eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x44]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402287
mov al, byte [esp + edx + 0x44]
lea edi, [esp + 0x44]
xor bl, al
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x40226e
movsx eax, bl
push eax
lea ecx, [esp + 0x14]
push 0x43f23c
push ecx
call fcn.00405efd
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jne 0x4022bb
lea edx, [esp + 0x44]
mov edi, 0x43f238
jmp 0x4022d7
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jne 0x4022fc
lea edx, [esp + 0x44]
mov edi, 0x43f234
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4023c8
cmp ax, 2
jne 0x4023c8
cmp dword [ecx + 0x7c], 1
jne 0x4023c8
mov edi, 0x43f230
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x44]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, edx
mov ebx, ecx
je 0x402390
movsx ecx, byte [esp + eax + 0x44]
add edx, ecx
inc eax
cmp eax, ebx
jb 0x402384
mov edi, 0x43f234
or ecx, 0xffffffff
xor eax, eax
and edx, 0xff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x44]
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + ebx + 0x44], dl
mov edx, dword [esp + 0x158]
lea eax, [esp + 0x44]
push edx
push eax
call fcn.00402000
add esp, 8
mov dword [esp + 0x14c], 0xffffffff
test al, al
pop edi
pop esi
pop ebp
pop ebx
lea ecx, [esp + 0x144]
jne 0x402413
call fcn.00419458
xor al, al
mov ecx, dword [esp + 0x134]
mov dword fs:[0], ecx
add esp, 0x140
ret
call fcn.00419458
mov ecx, dword [esp + 0x134]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x140
ret