Function at 0x10007545
Capabilities:
Create process on windows
Create thread
Delete file
Get common file path
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1aa0
call fcn.1000a4f0
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push str.kernel32.dll
mov esi, eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x10007589
lea ecx, [ebp - 0x10]
push ecx
push esi
call eax
xor eax, eax
cmp dword [ebp - 0x10], ebx
push 0xa
setne al
inc eax
push eax
push dword [0x1001f120]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x100075b6
push eax
lea eax, [ebp - 4]
push eax
lea ebx, [ebp - 8]
call fcn.100085d0
xor ebx, ebx
jmp 0x100075b8
xor eax, eax
cmp eax, ebx
je 0x10007777
lea eax, [ebp - 0xaa0]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10007756
lea eax, [ebp - 0x690]
push eax
push ebx
push ebx
lea eax, [ebp - 0xaa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp eax, ebx
je 0x10007756
push edi
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
js 0x10007755
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
js 0x10007755
push dword [ebp - 8]
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x690]
push eax
call fcn.100073ae
test eax, eax
je 0x1000774a
push dword [ebp - 0xc]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x12a0]
push str..pipe_ws
push eax
call esi
add esp, 0xc
xor ebx, ebx
push ebx
push ebx
lea eax, [ebp - 0x12a0]
push eax
push 0x100073fd
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x1000771b
xor eax, eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
pop edi
push edi
lea eax, [ebp - 0x78]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x12a0]
push eax
lea eax, [ebp - 0x690]
push eax
lea eax, [ebp - 0x1aa0]
push str.__ws___ws
push eax
mov dword [ebp - 0x78], edi
call esi
add esp, 0x1c
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1aa0]
push eax
lea eax, [ebp - 0x690]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10007712
push 0xea60
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [0x1001f108]
call fcn.100070fa
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
cmp ecx, ebx
je 0x1000772b
mov byte [eax], bl
inc eax
dec ecx
jne 0x10007725
push dword [ebp - 8]
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x690]
push eax
call fcn.100073ae
lea eax, [ebp - 0x690]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor ebx, ebx
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
cmp ecx, ebx
je 0x10007766
mov byte [eax], bl
inc eax
dec ecx
jne 0x10007760
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
leave
ret