Function at 0x402220
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov eax, 0x285c
call fcn.00405580
push ebx
push ebp
push esi
push edi
mov ecx, 7
mov esi, str.SOFTWAREKingsoftAntiVirus
lea edi, [esp + 0x46c]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x79
lea edi, [esp + 0x488]
rep stosd dword es:[edi], eax
mov ecx, 9
mov esi, str.SOFTWAREKingsoftAntiVirusKANClient
lea edi, [esp + 0x66c]
mov dword [esp + 0x14], 0x200
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x76
lea edi, [esp + 0x692]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 8
mov esi, str.SOFTWAREKingsoftAntiVirus_v4.0
lea edi, [esp + 0x26c]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x77
lea edi, [esp + 0x28d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [esp + 0x66c]
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push ecx
push 0x80000002
call esi
test eax, eax
jne 0x402464
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x6c]
push edx
push eax
push 0
push 0
push str.Path
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4027d0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x86c]
push eax
push str._skanscan.exe
push ecx
mov dword [esp + 0x34], 0x44
call fcn.00405520
lea edx, [esp + 0x878]
push 0
push edx
call fcn.00409106
add esp, 0x14
cmp eax, 0xffffffff
je 0x4027d0
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x86c]
push eax
push str.__skanscan.exe___r
push ecx
call fcn.00405520
mov ebx, dword [0x4102d4]
add esp, 0xc
test ebx, ebx
jle 0x402405
mov edx, 0x40c2d4
or ecx, 0xffffffff
mov edi, 0x40b0bc
xor eax, eax
lea ebp, [esp + 0x86c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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
lea ebp, [esp + 0x86c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add edx, 0x200
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
lea ebp, [esp + 0x86c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40b0b8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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
dec ebx
rep movsb byte es:[edi], byte [esi]
jne 0x40236c
lea edx, [esp + 0x18]
lea eax, [esp + 0x28]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x888]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4027d0
mov edx, dword [esp + 0x18]
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x285c
ret
lea edx, [esp + 0x10]
lea eax, [esp + 0x26c]
push edx
push eax
push 0x80000002
call esi
test eax, eax
jne 0x40261b
lea ecx, [esp + 0x14]
lea edx, [esp + 0x6c]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push str.ProgramPath
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4027d0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x2c]
lea edx, [esp + 0x6c]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x870]
push str._skav32.exe
push eax
mov dword [esp + 0x34], 0x44
call fcn.00405520
lea ecx, [esp + 0x878]
push 0
push ecx
call fcn.00409106
add esp, 0x14
cmp eax, 0xffffffff
je 0x4027d0
lea edx, [esp + 0x6c]
lea eax, [esp + 0x86c]
push edx
push str.__skav32.exe_
push eax
call fcn.00405520
mov ebx, dword [0x4102d4]
add esp, 0xc
test ebx, ebx
jle 0x4025bc
mov edx, 0x40c2d4
or ecx, 0xffffffff
mov edi, 0x40b0bc
xor eax, eax
lea ebp, [esp + 0x86c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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
lea ebp, [esp + 0x86c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add edx, 0x200
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
lea ebp, [esp + 0x86c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40b0b8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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
dec ebx
rep movsb byte es:[edi], byte [esi]
jne 0x402523
lea ecx, [esp + 0x18]
lea edx, [esp + 0x28]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x888]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4027d0
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x285c
ret
lea ecx, [esp + 0x10]
lea edx, [esp + 0x46c]
push ecx
push edx
push 0x80000002
call esi
test eax, eax
jne 0x4027d0
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x6c]
push eax
push ecx
push 0
push 0
push str.ProgramPath
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4027d0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x2c]
lea edx, [esp + 0x86c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0x28], 0x44
push ecx
push str._skav32.exe
push edx
call fcn.00405520
lea eax, [esp + 0x878]
push 0
push eax
call fcn.00409106
add esp, 0x14
cmp eax, 0xffffffff
je 0x4027d0
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x86c]
push ecx
push str.__skav32.exe_
push edx
call fcn.00405520
mov ebx, dword [0x4102d4]
add esp, 0xc
test ebx, ebx
jle 0x402775
mov edx, 0x40c2d4
or ecx, 0xffffffff
mov edi, 0x40b0bc
xor eax, eax
lea ebp, [esp + 0x86c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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
lea ebp, [esp + 0x86c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add edx, 0x200
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
lea ebp, [esp + 0x86c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40b0b8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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
dec ebx
rep movsb byte es:[edi], byte [esi]
jne 0x4026dc
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x888]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4027d0
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x285c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x285c
ret