Function at 0x4036e0
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [0x42e678]
cmp eax, ecx
jne 0x403700
push str.MONITOR_EVENT_LAUNCHAP
call fcn.00402660
add esp, 4
jmp 0x404170
cmp eax, dword [0x42e674]
jne 0x40374c
push str.MONITOR_EVENT_SNAPSHOT
call fcn.00402660
mov ecx, dword [0x42e660]
add esp, 4
xor eax, eax
cmp ecx, eax
push eax
je 0x40373b
mov eax, dword [0x42e664]
mov ecx, dword [0x42e668]
push eax
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
ret
push 0x404450
push 0x65
push eax
call fcn.00404400
add esp, 0x10
ret
cmp eax, dword [0x42e670]
jne 0x403780
push str.MONITOR_TWAIN_ACTIVE
call fcn.00402660
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [0x42e668], edx
mov dword [0x42e664], 0x3e8
mov dword [0x42e660], 1
ret
cmp eax, dword [0x42e66c]
jne 0x4037a6
push str.MONITOR_TWAIN_INACTIVE
call fcn.00402660
add esp, 4
xor eax, eax
mov dword [0x42e668], eax
mov dword [0x42e664], eax
mov dword [0x42e660], eax
ret
sub esp, 0x158
lea eax, [esp + 0x54]
push ebx
push esi
push edi
push eax
call fcn.00404370
add esp, 4
test al, al
jne 0x40425d
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x60]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
or ecx, 0xffffffff
mov edi, 0x429250
xor eax, eax
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x60]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.WebCamM2000
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x60]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x429250
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x60]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.LiveCam.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.__StiDevice__StiEvent
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x60]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x429040
call fcn.00402660
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x24]
add esp, 8
rep stosd dword es:[edi], eax
xor ecx, ecx
lea edx, [esp + 0xc]
mov dword [esp + 0xc], ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], ecx
push edx
mov dword [esp + 0x18], ecx
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [esp + 0x34], ecx
push ecx
lea ecx, [esp + 0x80]
push ecx
push 0
mov dword [esp + 0x44], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
test eax, eax
pop ebx
jne 0x4042f8
push str.CreateProcess_failed.
call fcn.00402660
add esp, 4
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x158
ret