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

Disassembly:
push 0x298
mov eax, 0x1009fe6
call fcn.01009cc2
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x244], eax
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
xor edi, edi
lea eax, [ebp - 0x216]
push edi
push eax
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x220], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x230]
call fcn.0100895d
lea ecx, [ebp - 0x250]
mov dword [ebp - 4], edi
call fcn.0100895d
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 1
call fcn.0100895d
push 0x40
lea eax, [ebp - 0x2a0]
push edi
push eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x2a4], edi
call sub.msvcrt.dll_memset
mov dword [ebp - 0x260], edi
xor eax, eax
lea edi, [ebp - 0x25c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
test esi, esi
jne 0x10077ac
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1007772
test byte [eax + 0x1c], 1
je 0x1007772
push 0x1001780
push 0x33
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100304a
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 1
call fcn.0100896f
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0
call fcn.0100896f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.0100896f
mov eax, 0x80070057
call fcn.01009d16
ret 0x24
test ebx, ebx
je 0x1007810
cmp dword [ebp + 0x1c], 0
je 0x1007810
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x10077da
test byte [eax + 0x1c], 1
je 0x10077da
push 0x1001780
push 0x34
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100304a
mov esi, 0x80070057
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 1
call fcn.0100896f
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0
call fcn.0100896f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.0100896f
mov eax, esi
jmp 0x10077a4
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x100781d
and dword [eax], 0
mov esi, 0x104
push esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1007c80
cmp eax, esi
jae 0x1007c80
push 0x1001a08
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.01003758
mov dword [ebp - 0x21c], eax
test eax, eax
jge 0x100789a
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1007cbc
test byte [eax + 0x1c], 1
je 0x1007cbc
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x218]
push ecx
push 0x1001780
push 0x36
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003109
jmp 0x1007cbc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x230]
push 0x10019fc
push eax
call fcn.0100901c
add esp, 0xc
mov dword [ebp - 0x21c], eax
test eax, eax
jge 0x10078f7
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1007cbc
test byte [eax + 0x1c], 1
je 0x1007cbc
lea ecx, [ebp - 0x218]
push ecx
push 0x1001780
push 0x37
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100309c
jmp 0x1007cbc
xor ecx, ecx
xor ebx, ebx
mov edi, 0x100c014
mov esi, 0x1001780
cmp dword [ebp + 0xc], ecx
jbe 0x10079ff
mov eax, dword [ebp - 0x240]
mov eax, dword [eax + ebx*4]
cmp eax, ecx
je 0x10079f5
cmp word [eax], cx
je 0x10079f5
push eax
lea ecx, [ebp - 0x23c]
call fcn.01008a8d
mov dword [ebp - 0x21c], eax
test eax, eax
jl 0x1007a5c
push 0
push 0
push 0x10019f4
push 0x10019f0
lea ecx, [ebp - 0x23c]
call fcn.0100906b
mov dword [ebp - 0x21c], eax
test eax, eax
jl 0x1007a8a
lea ecx, [ebp - 0x23c]
call fcn.01008985
push eax
lea eax, [ebp - 0x250]
push 0x10019fc
push eax
call fcn.0100901c
add esp, 0xc
mov dword [ebp - 0x21c], eax
test eax, eax
jl 0x1007ac0
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x230]
call fcn.01009004
mov dword [ebp - 0x21c], eax
test eax, eax
jge 0x10079f3
mov eax, dword [0x100c014]
cmp eax, edi
je 0x10079f3
test byte [eax + 0x1c], 1
je 0x10079f3
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x23c]
call fcn.01008985
push eax
lea ecx, [ebp - 0x230]
call fcn.01008985
push eax
mov eax, dword [0x100c014]
push esi
push 0x3b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003243
xor ecx, ecx
inc ebx
cmp ebx, dword [ebp + 0xc]
jb 0x100790e
cmp dword [ebp + 0x1c], ecx
je 0x1007aee
push dword [ebp + 0x28]
lea ecx, [ebp - 0x230]
push dword [ebp - 0x224]
call fcn.01008985
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.01007431
mov dword [ebp - 0x21c], eax
test eax, eax
jge 0x1007bf2
mov eax, dword [0x100c014]
cmp eax, edi
je 0x1007cbc
test byte [eax + 0x1c], 1
je 0x1007cbc
push dword [ebp - 0x21c]
push esi
push 0x3c
jmp 0x1007cb1
mov eax, dword [0x100c014]
cmp eax, edi
je 0x1007cbc
test byte [eax + 0x1c], 1
je 0x1007cbc
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x240]
push dword [ecx + ebx*4]
push esi
push 0x38
jmp 0x100788a
mov eax, dword [0x100c014]
cmp eax, edi
je 0x1007cbc
test byte [eax + 0x1c], 1
je 0x1007cbc
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x23c]
call fcn.01008985
push eax
push esi
push 0x39
mov eax, dword [0x100c014]
jmp 0x100788a
mov eax, dword [0x100c014]
cmp eax, edi
je 0x1007cbc
test byte [eax + 0x1c], 1
je 0x1007cbc
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x23c]
call fcn.01008985
push eax
push esi
push 0x3a
jmp 0x1007ab6
mov dword [ebp - 0x2a4], 0x44
cmp dword [ebp + 0x28], ecx
je 0x1007b10
xor eax, eax
mov dword [ebp - 0x278], 1
mov word [ebp - 0x274], ax
cmp dword [ebp - 0x220], ecx
je 0x1007bfe
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x1007b57
mov eax, dword [0x100c014]
cmp eax, edi
je 0x1007cbc
test byte [eax + 0x1c], 1
je 0x1007cbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x100c014]
push esi
push 0x3d
jmp 0x1007cb1
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x2a4]
push eax
xor eax, eax
push eax
push eax
push dword [ebp + 0x20]
lea ecx, [ebp - 0x230]
push dword [ebp + 0x24]
push eax
push eax
call fcn.01008985
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x1007bec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100346f
mov dword [ebp - 0x21c], eax
mov eax, dword [0x100c014]
cmp eax, edi
je 0x1007be1
test byte [eax + 0x1c], 4
je 0x1007be1
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x230]
call fcn.01008985
push eax
lea eax, [ebp - 0x218]
push eax
mov eax, dword [0x100c014]
push esi
push 0x3e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003243
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
jmp 0x1007cbc
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
and dword [ebp - 0x21c], 0
jmp 0x1007cbc
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x2a4]
push eax
push ecx
push ecx
push ecx
push dword [ebp + 0x24]
push ecx
push ecx
lea ecx, [ebp - 0x230]
call fcn.01008985
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1007bf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100346f
mov dword [ebp - 0x21c], eax
mov eax, dword [0x100c014]
cmp eax, edi
je 0x1007cbc
test byte [eax + 0x1c], 4
je 0x1007cbc
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x230]
call fcn.01008985
push eax
lea eax, [ebp - 0x218]
push eax
mov eax, dword [0x100c014]
push esi
push 0x3f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003243
jmp 0x1007cbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100346f
mov dword [ebp - 0x21c], eax
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1007cbc
test byte [eax + 0x1c], 1
je 0x1007cbc
push dword [ebp - 0x21c]
push 0x1001780
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003070
mov eax, dword [ebp - 0x25c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1007cdd
mov ecx, dword [ebp - 0x244]
test ecx, ecx
je 0x1007cda
mov dword [ecx], eax
jmp 0x1007cdd
push eax
call esi
mov eax, dword [ebp - 0x260]
test eax, eax
je 0x1007cf8
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x1007cf5
mov dword [ecx], eax
jmp 0x1007cf8
push eax
call esi
mov esi, dword [ebp - 0x21c]
jmp 0x10077df