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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100253dc
mov eax, dword fs:[0]
push eax
mov eax, 0x21e4
call fcn.10024d93
mov eax, dword [0x10030080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x10031fcc], 1
mov esi, dword [ebp + 8]
jne 0x100036f3
mov ecx, 0x1b79
call fcn.1001047d
lea ebx, [esi + 0x14]
mov byte [ebp - 0x21a0], 0
mov dword [ebp - 0x21a4], ebx
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.kernel32.dll_TryEnterCriticalSection]
test eax, eax
je 0x10004146
mov al, byte [esi + 0x2c]
lea edx, [esi + 0x2c]
mov byte [ebp - 0x21a0], 1
mov dword [ebp - 0x2194], edx
mov byte [ebp - 0x217d], al
test al, al
jne 0x1000413f
mov dword [ebp - 0x21b4], edx
mov byte [ebp - 0x21b0], al
mov byte [ebp - 4], 1
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10031f5c]
mov byte [edx], 1
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10034eec]
cmp eax, dword [ecx + 0x18]
jg 0x10004169
jmp 0x1000376f
lea edx, [esi + 0x2c]
cmp dword [esi + 0x10], 0
mov ebx, 0x80004005
jne 0x10003795
mov cl, byte [ebp - 0x217d]
push dword [ebp - 0x21a4]
mov byte [edx], cl
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, ebx
jmp 0x1000414b
cmp dword [ebp + 0x10], 0
jne 0x10004121
cmp dword [ebp + 0x14], 3
je 0x10004121
mov eax, dword [0x100300fc]
cmp word [eax], 0
jne 0x10003986
cmp dword [0x10030100], 0x20a
jge 0x100037db
mov ecx, dword [0x100300f8]
push 0
push 0x20a
push 0x100300f8
mov eax, dword [ecx]
push ecx
call dword [eax]
lea eax, [ebp - 0x216c]
mov dword [ebp - 0x2170], 0x1046
mov dword [ebp - 0x217c], 0x10031170
mov dword [ebp - 0x2178], eax
mov dword [ebp - 0x2174], 0x1046
push ecx
lea ecx, [ebp - 0x217c]
mov byte [ebp - 4], 4
call fcn.10004317
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2174]
cmp eax, 0x20a
jge 0x10003845
mov ecx, dword [ebp - 0x217c]
lea edx, [ebp - 0x217c]
push 0
push 0x20a
push edx
mov eax, dword [ecx]
push ecx
call dword [eax]
mov eax, dword [ebp - 0x2174]
shr eax, 1
push eax
push dword [ebp - 0x2178]
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
push ecx
lea edx, [ebp - 0x217c]
mov ecx, 0x10027a40
call fcn.1001047d
push 0
mov ecx, 0x10027a40
call fcn.1001047d
mov edi, eax
test edi, edi
je 0x100041b2
push str.MsiProvideQualifiedComponentW
push edi
call dword [sym.imp.kernel32.dll_GetProcAddress]
lea ecx, [ebp - 0x2184]
mov dword [ebp - 0x2184], 0x104
push ecx
push dword [0x100300fc]
push 0xfffffffffffffffe
push str.onenote.exe
push str.5812C571_53F0_4467_BEFA_0A4F47A9437C
call eax
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
push dword [0x100300fc]
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x10003959
mov ecx, dword [0x100300fc]
test ecx, ecx
je 0x100038f1
lea edx, [ecx + 2]
nop dword [eax]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100038e0
sub ecx, edx
sar ecx, 1
jmp 0x100038f3
xor ecx, ecx
push 0x15
lea eax, [ecx + 1]
push str.IEContentService.exe
mov dword [ebp - 0x2188], eax
dec eax
push ecx
push eax
lea eax, [ebp - 0x2188]
mov ecx, 0x100300f8
push eax
call fcn.1001047d
mov ecx, dword [0x100300fc]
cmp word [ecx], 0x22
jne 0x10003959
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003926
sub ecx, edx
sar ecx, 1
push 1
push 0x100279a0
push ecx
lea eax, [ecx + 1]
mov ecx, 0x100300f8
mov dword [ebp - 0x2188], eax
dec eax
push eax
lea eax, [ebp - 0x2188]
push eax
call fcn.1001047d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x216c]
mov eax, dword [ebp - 0x2178]
cmp eax, ecx
je 0x10003977
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [0x100300fc]
cmp word [eax], 0
je 0x10004121
mov dword [ebp - 0x218c], 0
mov byte [ebp - 4], 6
lea edx, [ebp - 0x218c]
mov ecx, dword [esi + 0x10]
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x78]
mov edi, eax
test edi, edi
jns 0x100039dc
mov eax, dword [ebp - 0x218c]
test eax, eax
je 0x100039bb
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x2194]
mov cl, byte [ebp - 0x217d]
push dword [ebp - 0x21a4]
mov byte [eax], cl
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, edi
jmp 0x1000414b
push dword [ebp - 0x218c]
call dword [sym.imp.SHLWAPI.dll_UrlIsOpaqueW]
test eax, eax
je 0x10003e84
mov esi, dword [0x10032054]
test esi, esi
jne 0x10003e0e
lea ecx, [ebp - 0x2184]
mov dword [ebp - 0x2184], esi
call fcn.1001047d
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
push 0x20
mov dword [ebp - 0x21a8], 0x1002ab20
call edi
mov ecx, eax
add esp, 4
mov dword [ebp - 0x2190], ecx
test ecx, ecx
je 0x100041be
mov dword [ebp - 0x21ac], ecx
mov dword [ecx + 4], 0xc
mov dword [ecx + 8], 7
mov dword [ecx + 0xc], 0xffffffff
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], esi
mov dword [ecx], 0x100280c0
mov dword [ecx + 0x18], esi
mov byte [ebp - 4], 8
mov esi, 0x4204
mov eax, dword [ebp - 0x2184]
mov dword [ecx + 0x1c], eax
push 0x1ff
lea eax, [ebp - 0x410]
push eax
push esi
push ebx
call dword [sym.imp.USER32.dll_LoadStringW]
mov dword [ebp - 0x2184], eax
test eax, eax
jle 0x10003b0f
push 0xc
mov dword [ebp - 0x2198], 0x1002ab20
call edi
mov edi, eax
add esp, 4
test edi, edi
je 0x100041be
mov dword [ebp - 0x219c], edi
mov dword [edi], 0x1003116c
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push 0
push 2
mov byte [ebp - 4], 0xa
mov eax, dword [0x1003116c]
push edi
push 0x1003116c
call dword [eax]
mov eax, dword [edi + 4]
lea edx, [ebp - 0x410]
xor ecx, ecx
mov byte [ebp - 4], 8
push dword [ebp - 0x2184]
mov word [eax], cx
mov ecx, edi
call fcn.1001047d
mov ecx, dword [ebp - 0x2190]
push esi
call fcn.1001047d
mov dword [eax], edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
inc esi
cmp esi, 0x4267
jbe 0x10003a74
mov esi, 0x3ee4
push 0x1ff
lea eax, [ebp - 0x810]
push eax
push esi
push ebx
call dword [sym.imp.USER32.dll_LoadStringW]
mov dword [ebp - 0x2184], eax
test eax, eax
jle 0x10003bb6
push 0xc
mov dword [ebp - 0x219c], 0x1002ab20
call edi
mov edi, eax
add esp, 4
test edi, edi
je 0x100041be
mov dword [ebp - 0x2198], edi
mov dword [edi], 0x1003116c
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push 0
push 2
mov byte [ebp - 4], 0xc
mov eax, dword [0x1003116c]
push edi
push 0x1003116c
call dword [eax]
mov eax, dword [edi + 4]
lea edx, [ebp - 0x810]
xor ecx, ecx
mov byte [ebp - 4], 8
push dword [ebp - 0x2184]
mov word [eax], cx
mov ecx, edi
call fcn.1001047d
mov ecx, dword [ebp - 0x2190]
push esi
call fcn.1001047d
mov dword [eax], edi
inc esi
cmp esi, 0x3f47
ja 0x10003bca
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
jmp 0x10003b21
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
mov esi, 0x3e80
nop word [eax + eax]
push 0x1ff
lea eax, [ebp - 0xc10]
push eax
push esi
push ebx
call edi
mov dword [ebp - 0x2184], eax
test eax, eax
jle 0x10003c7f
push 0xc
mov dword [ebp - 0x219c], 0x1002ab20
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x100041be
mov dword [ebp - 0x2198], edi
mov dword [edi], 0x1003116c
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push 0
push 2
mov byte [ebp - 4], 0xe
mov eax, dword [0x1003116c]
push edi
push 0x1003116c
call dword [eax]
mov eax, dword [edi + 4]
lea edx, [ebp - 0xc10]
xor ecx, ecx
mov byte [ebp - 4], 8
push dword [ebp - 0x2184]
mov word [eax], cx
mov ecx, edi
call fcn.1001047d
mov ecx, dword [ebp - 0x2190]
push esi
call fcn.1001047d
mov dword [eax], edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
inc esi
cmp esi, 0x3ee3
jbe 0x10003be0
mov esi, 0x3fac
push 0x1ff
lea eax, [ebp - 0x1010]
push eax
push esi
push ebx
call edi
mov dword [ebp - 0x2184], eax
test eax, eax
jle 0x10003d30
push 0xc
mov dword [ebp - 0x219c], 0x1002ab20
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x100041be
mov dword [ebp - 0x2198], edi
mov dword [edi], 0x1003116c
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push 0
push 2
mov byte [ebp - 4], 0x10
mov eax, dword [0x1003116c]
push edi
push 0x1003116c
call dword [eax]
mov eax, dword [edi + 4]
lea edx, [ebp - 0x1010]
xor ecx, ecx
mov byte [ebp - 4], 8
push dword [ebp - 0x2184]
mov word [eax], cx
mov ecx, edi
call fcn.1001047d
mov ecx, dword [ebp - 0x2190]
push esi
call fcn.1001047d
mov dword [eax], edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
inc esi
cmp esi, 0x400f
jbe 0x10003c91
mov esi, 0x4010
push 0x1ff
lea eax, [ebp - 0x1524]
push eax
push esi
push ebx
call edi
mov dword [ebp - 0x2184], eax
test eax, eax
jle 0x10003de1
push 0xc
mov dword [ebp - 0x219c], 0x1002ab20
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x100041be
mov dword [ebp - 0x2198], edi
mov dword [edi], 0x1003116c
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push 0
push 2
mov byte [ebp - 4], 0x12
mov eax, dword [0x1003116c]
push edi
push 0x1003116c
call dword [eax]
mov eax, dword [edi + 4]
lea edx, [ebp - 0x1524]
xor ecx, ecx
mov byte [ebp - 4], 8
push dword [ebp - 0x2184]
mov word [eax], cx
mov ecx, edi
call fcn.1001047d
mov ecx, dword [ebp - 0x2190]
push esi
call fcn.1001047d
mov dword [eax], edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
inc esi
cmp esi, 0x4073
jbe 0x10003d42
mov eax, dword [ebp - 0x2190]
mov byte [ebp - 4], 6
push ebx
mov dword [0x10032054], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov esi, dword [0x10032054]
test esi, esi
je 0x10003e53
mov byte [ebp - 4], 0x13
mov ecx, esi
mov eax, dword [esi]
push 0x3ef5
call dword [eax + 4]
xor edx, edx
mov ecx, esi
div dword [esi + 8]
push edx
mov edx, 0x3ef5
call fcn.1001047d
mov byte [ebp - 4], 6
cmp eax, 0xffffffff
je 0x10003e4c
push 0x3ef5
mov ecx, esi
call fcn.1001047d
mov eax, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x10003e55
mov ecx, 0x1002769c
jmp 0x10003e55
xor ecx, ecx
call fcn.1001047d
mov eax, dword [ebp - 0x218c]
test eax, eax
je 0x10003e6b
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x2194]
mov cl, byte [ebp - 0x217d]
push dword [ebp - 0x21a4]
mov byte [eax], cl
jmp 0x10004140
mov dword [ebp - 0x2188], 0
mov byte [ebp - 4], 0x14
lea edx, [ebp - 0x2188]
mov ecx, dword [esi + 0x10]
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x74]
mov edi, eax
test edi, edi
jns 0x10003ed1
mov eax, dword [ebp - 0x2188]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test eax, eax
je 0x10003ebb
push eax
call esi
mov eax, dword [ebp - 0x218c]
test eax, eax
je 0x100039bb
push eax
call esi
jmp 0x100039bb
lea eax, [ebp - 0x1114]
mov dword [ebp - 0x1118], 0x102
mov dword [ebp - 0x1124], 0x10031170
mov dword [ebp - 0x1120], eax
mov dword [ebp - 0x111c], 0x102
push ecx
lea ecx, [ebp - 0x1124]
mov byte [ebp - 4], 0x15
call fcn.10004317
push 0x13
mov edx, 0x100279a4
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x1124]
call fcn.1001047d
mov eax, dword [ebp - 0x218c]
test eax, eax
je 0x10003f85
mov esi, eax
lea edx, [esi + 2]
mov cx, word [esi]
add esi, 2
test cx, cx
jne 0x10003f30
sub esi, edx
sar esi, 1
test esi, esi
jle 0x10003f85
mov edx, dword [ebp - 0x1120]
test edx, edx
je 0x10003f61
lea edi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x10003f50
sub edx, edi
sar edx, 1
jmp 0x10003f63
xor edx, edx
push esi
push eax
lea ecx, [edx + 1]
push ecx
lea eax, [ecx - 1]
mov dword [ebp - 0x2184], ecx
push eax
lea eax, [ebp - 0x2184]
push eax
lea ecx, [ebp - 0x1124]
call fcn.1001047d
mov ecx, dword [ebp - 0x1120]
test ecx, ecx
je 0x10003fa3
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003f92
sub ecx, edx
sar ecx, 1
jmp 0x10003fa5
xor ecx, ecx
push 3
lea eax, [ecx + 1]
push 0x100279cc
mov dword [ebp - 0x2184], eax
dec eax
push ecx
push eax
lea eax, [ebp - 0x2184]
push eax
lea ecx, [ebp - 0x1124]
call fcn.1001047d
mov eax, dword [ebp - 0x2188]
test eax, eax
je 0x1000402e
mov esi, eax
lea edx, [esi + 2]
mov cx, word [esi]
add esi, 2
test cx, cx
jne 0x10003fd9
sub esi, edx
sar esi, 1
test esi, esi
jle 0x1000402e
mov edx, dword [ebp - 0x1120]
test edx, edx
je 0x1000400a
lea edi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x10003ff9
sub edx, edi
sar edx, 1
jmp 0x1000400c
xor edx, edx
push esi
push eax
lea ecx, [edx + 1]
push ecx
lea eax, [ecx - 1]
mov dword [ebp - 0x2184], ecx
push eax
lea eax, [ebp - 0x2184]
push eax
lea ecx, [ebp - 0x1124]
call fcn.1001047d
mov ecx, dword [ebp - 0x1120]
test ecx, ecx
je 0x1000404c
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000403b
sub ecx, edx
sar ecx, 1
jmp 0x1000404e
xor ecx, ecx
push 1
lea eax, [ecx + 1]
push 0x100279a0
mov dword [ebp - 0x2184], eax
dec eax
push ecx
push eax
lea eax, [ebp - 0x2184]
push eax
lea ecx, [ebp - 0x1124]
call fcn.1001047d
mov eax, dword [0x100300fc]
xorps xmm0, xmm0
mov dword [ebp - 0x21e0], eax
mov eax, dword [ebp - 0x1120]
push 0xffffffffffffffff
movlpd qword [ebp - 0x21e8], xmm0
mov dword [ebp - 0x21d8], 0
movlpd qword [ebp - 0x21d0], xmm0
movlpd qword [ebp - 0x21c8], xmm0
movlpd qword [ebp - 0x21c0], xmm0
mov dword [ebp - 0x21b8], 0
mov dword [ebp - 0x21f0], 0x3c
mov dword [ebp - 0x21ec], 0x100
mov dword [ebp - 0x21dc], eax
mov dword [ebp - 0x21d4], 5
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
lea eax, [ebp - 0x21f0]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [ebp - 0x1124]
xor ebx, ebx
call fcn.100041c4
mov eax, dword [ebp - 0x2188]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test eax, eax
je 0x10004114
push eax
call esi
mov ecx, dword [ebp - 0x218c]
test ecx, ecx
je 0x10004121
push ecx
call esi
mov eax, dword [ebp - 0x2194]
mov cl, byte [ebp - 0x217d]
push dword [ebp - 0x21a4]
mov byte [eax], cl
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, ebx
jmp 0x1000414b
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10023263
mov esp, ebp
pop ebp
ret 0x18
push 0x10034eec
call fcn.1001047d
add esp, 4
cmp dword [0x10034eec], 0xffffffff
jne 0x1000376c
push ecx
mov ecx, 0x100300f8
mov byte [ebp - 4], 3
call fcn.10004317
push 0x100267f4
call fcn.1001047d
push 0x10034eec
mov byte [ebp - 4], 1
call fcn.1001047d
add esp, 8
jmp 0x1000376c
push 0
push 0x181c45b
call fcn.1001047d
call fcn.10004527
int3