Function at 0x402ef0
Capabilities:
Accept command line arguments
Check if file exists
Create process on windows
Delete file
Get common file path
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4ec
mov eax, dword [0x409034]
xor eax, esp
mov dword [esp + 0x4e8], eax
push ebx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x409820
call fcn.00401450
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, 1
cmp dword [esp + 0x28], ebx
jle 0x4031a7
mov eax, dword [eax + 4]
mov ecx, 0x406444
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402f76
cmp dx, si
je 0x402f72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402f76
add eax, 4
add ecx, 4
cmp dx, si
jne 0x402f50
xor eax, eax
jmp 0x402f7b
sbb eax, eax
sbb eax, 0xffffffff
xor edx, edx
push 0x206
cmp eax, esi
push esi
lea eax, [esp + 0x2f2]
mov word [esp + 0x2f0], dx
push eax
jne 0x403034
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x206
lea edx, [esp + 0xe6]
xor ecx, ecx
push esi
push edx
mov word [esp + 0xec], cx
call sub.MSVCR100.dll_memset
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
push esi
push 0x10
lea eax, [esp + 0xe8]
push eax
push esi
call ebx
lea edi, [esp + 0x2e8]
lea ecx, [esp + 0xe0]
call fcn.00402870
test eax, eax
je 0x402ffa
lea ecx, [esp + 0xe0]
call fcn.00402dc0
push esi
push 0x19
lea ecx, [esp + 0xe8]
push ecx
push esi
call ebx
lea edi, [esp + 0x2e8]
lea ecx, [esp + 0xe0]
call fcn.00402870
test eax, eax
je 0x403743
lea ecx, [esp + 0xe0]
call fcn.00402dc0
jmp 0x403743
call sub.MSVCR100.dll_memset
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
push esi
push 0x10
lea ecx, [esp + 0x2f0]
push ecx
push esi
call edi
push 0x204
lea edx, [esp + 0xe8]
push esi
push edx
mov dword [esp + 0xec], esi
call sub.MSVCR100.dll_memset
mov ebx, dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
lea eax, [esp + 0x2e8]
push eax
lea ecx, [esp + 0xe4]
push 0x104
push ecx
call ebx
mov esi, dword [sym.imp.MSVCR100.dll_wcscat_s]
add esp, 0xc
push 0x406440
lea edx, [esp + 0xe4]
push 0x104
push edx
call esi
add esp, 0xc
push str.360.lnk
lea eax, [esp + 0xe4]
push 0x104
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0xe0]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x19
lea edx, [esp + 0x2f0]
push edx
push 0
call edi
push 0x104
lea eax, [esp + 0xe4]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [esp + 0x2e8]
push ecx
lea edx, [esp + 0xe4]
push 0x104
push edx
call ebx
add esp, 0xc
push 0x406440
lea eax, [esp + 0xe4]
push 0x104
push eax
call esi
add esp, 0xc
push str.360.lnk
lea ecx, [esp + 0xe4]
push 0x104
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0xe0]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x1a
lea eax, [esp + 0x2f0]
push eax
push 0
call edi
push str.MicrosoftInternet_ExplorerQuick_Launch
lea ecx, [esp + 0x2ec]
push 0x104
push ecx
call esi
add esp, 0xc
lea ecx, [esp + 0x2e8]
call fcn.00402c90
push str.User_PinnedTaskBar
lea edx, [esp + 0x2ec]
push 0x104
push edx
call esi
add esp, 0xc
lea ecx, [esp + 0x2e8]
call fcn.00402c90
jmp 0x403743
call fcn.004029a0
test eax, eax
je 0x4031cd
push 2
push 0x40652c
push 0x406534
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 4
je 0x4031a7
jmp 0x403743
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
lea edi, [eax + 0x10]
mov eax, dword [0x409a3c]
mov dword [esp + 0xc], edi
cmp dword [eax - 0xc], esi
jl 0x40321e
push 0x406510
push eax
call dword [sym.imp.MSVCR100.dll_wcsstr]
add esp, 8
cmp eax, esi
je 0x40321e
sub eax, dword [0x409a3c]
sar eax, 1
cmp eax, esi
jle 0x40321e
mov eax, 0x409a3c
lea ecx, [esp + 0xc]
call fcn.004019f0
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403232
test al, 0x10
je 0x40353c
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
push eax
mov ecx, str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionApp_Paths360chrome.exe
mov byte [esp + 0x17], bl
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.00401940
lea ecx, [esp + 0x1c]
push ecx
mov ecx, str.Path
call fcn.00401940
mov edi, dword [esp + 0x20]
lea edx, [esp + 0x2c]
push edx
mov ebx, 0x80000002
call fcn.00402270
mov ebx, dword [esp + 0x2c]
test eax, eax
jne 0x4032f4
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
push 0
lea ecx, [esp + 0x20]
push ecx
push 0
push edx
push ebx
mov dword [esp + 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4032f4
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x4032c1
cmp eax, 2
jne 0x4032f4
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
shr eax, 1
lea esi, [esp + 0x14]
mov dword [esp + 0x18], eax
call fcn.00401b10
push edi
lea ecx, [esp + 0x30]
push ecx
lea edi, [esp + 0x20]
mov esi, eax
call fcn.004021f0
lea esi, [esp + 0x14]
call fcn.00401b40
jmp 0x4032f9
mov byte [esp + 0x13], 0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0xea]
push eax
mov word [esp + 0xec], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp byte [esp + 0x13], 0
jne 0x40348e
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x2f2]
push edx
mov word [esp + 0x2f4], cx
call sub.MSVCR100.dll_memset
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
push 0
push 0x10
lea eax, [esp + 0x2f0]
push eax
push 0
call esi
lea edi, [esp + 0xe0]
lea ecx, [esp + 0x2e8]
call fcn.00402870
test eax, eax
je 0x403381
mov edx, edi
lea eax, [esp + 0xc]
call fcn.00401b80
jmp 0x4034c8
push 0
push 0xb
lea ecx, [esp + 0x2f0]
push ecx
push 0
call esi
lea edi, [esp + 0xe0]
lea ecx, [esp + 0x2e8]
call fcn.00402870
test eax, eax
je 0x4033b8
mov edx, edi
lea eax, [esp + 0xc]
call fcn.00401b80
jmp 0x4034c8
push 0
push 0x19
lea edx, [esp + 0x2f0]
push edx
push 0
call esi
lea edi, [esp + 0xe0]
lea ecx, [esp + 0x2e8]
call fcn.00402870
test eax, eax
je 0x4033ef
mov edx, edi
lea eax, [esp + 0xc]
call fcn.00401b80
jmp 0x4034c8
push 0
push 0x16
lea eax, [esp + 0x2f0]
push eax
push 0
call esi
lea edi, [esp + 0xe0]
lea ecx, [esp + 0x2e8]
call fcn.00402870
test eax, eax
je 0x403426
mov edx, edi
lea eax, [esp + 0xc]
call fcn.00401b80
jmp 0x4034c8
push 0
push 2
lea ecx, [esp + 0x2f0]
push ecx
push 0
call esi
lea edi, [esp + 0xe0]
lea ecx, [esp + 0x2e8]
call fcn.00402870
test eax, eax
je 0x40345a
mov edx, edi
lea eax, [esp + 0xc]
call fcn.00401b80
jmp 0x4034c8
push 0
push 0x17
lea edx, [esp + 0x2f0]
push edx
push 0
call esi
lea edi, [esp + 0xe0]
lea ecx, [esp + 0x2e8]
call fcn.00402870
test eax, eax
je 0x4034c8
mov edx, edi
lea eax, [esp + 0xc]
call fcn.00401b80
jmp 0x4034c8
lea eax, [esp + 0x18]
push eax
lea edi, [esp + 0x18]
call fcn.00401a60
add esp, 4
lea ecx, [esp + 0xc]
call fcn.004019f0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4034c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4034e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403508
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x403513
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403533
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0xc]
xor esi, esi
lea ebx, [esi + 1]
cmp dword [edi - 0xc], esi
jl 0x403586
push 0x406628
push edi
call dword [sym.imp.MSVCR100.dll_wcsstr]
add esp, 8
cmp eax, esi
je 0x403586
sub eax, edi
sar eax, 1
js 0x403586
push str.Chrome
push str.CHR1
lea ecx, [esp + 0x14]
push ecx
call fcn.004037a0
push str.Application
push str.APPLIC1
lea edx, [esp + 0x14]
push edx
call fcn.004037a0
mov edi, dword [esp + 0xc]
lea eax, [esp + 0xc]
mov ecx, 0x409a3c
call fcn.004019f0
lea eax, [esp + 0x38]
push eax
xor ecx, ecx
mov byte [esp + 0x18], bl
mov dword [esp + 0x3c], vtable.CXPEInfo.0
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
call fcn.00404310
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
call fcn.00404310
test eax, eax
je 0x40370c
lea edx, [esp + 0x38]
push edx
call fcn.00404480
movzx eax, ax
cmp ax, si
jne 0x4035f4
mov byte [esp + 0x14], bl
jmp 0x403613
mov ecx, 0x14c
cmp ax, cx
jne 0x403604
mov byte [esp + 0x14], bl
jmp 0x403613
mov edx, 0x8664
cmp ax, dx
jne 0x403613
mov byte [esp + 0x14], 0
mov eax, dword [esp + 0x14]
push eax
call fcn.004040d0
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
add esp, 4
mov ecx, section..data
call eax
push 0x1c
push str.___register_pepper_plugins_
lea ebx, [esp + 0x14]
mov esi, eax
call fcn.00403ab0
lea ecx, [esp + 0x18]
push ecx
call fcn.00402610
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
add esp, 4
push edx
push eax
call fcn.00403ab0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40367b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x14], 0
lea eax, [esp + 0xc]
mov edx, str.KGChromePlugin_32.dll
jne 0x403690
mov edx, str.KGChromePlugin_64.dll
call fcn.00403760
push 0x5b
push str._application_kg_plugin____no_sandbox___test_type___disable_infobars____disable_hang_monitor
lea ebx, [esp + 0x14]
call fcn.00403ab0
mov edi, dword [esp + 0xc]
push 3
push edi
lea edx, [esp + 0x60]
lea ecx, [esp + 0x64]
push edx
mov dword [esp + 0x64], ecx
call fcn.00402490
mov eax, dword [esp + 0x58]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x5c]
cmp eax, ecx
je 0x4036e1
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
push 0x409820
call fcn.00401100
call dword [sym.imp.ole32.dll_CoUninitialize]
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40371e
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x40371e
push esi
push 0x40652c
push 0x406678
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x38]
call fcn.004042b0
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403743
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x4f4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00404834
mov esp, ebp
pop ebp
ret 0x10