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

Disassembly:
push 0x298
mov eax, 0x1009fe6
call fcn.01009cc0
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.01008991
lea ecx, [ebp - 0x250]
mov dword [ebp - 4], edi
call fcn.01008991
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 1
call fcn.01008991
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 0x10077e2
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x10077a8
test byte [eax + 0x1c], 1
je 0x10077a8
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.010089a3
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0
call fcn.010089a3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.010089a3
mov eax, 0x80070057
call fcn.01009d14
ret 0x24
test ebx, ebx
je 0x1007846
cmp dword [ebp + 0x1c], 0
je 0x1007846
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1007810
test byte [eax + 0x1c], 1
je 0x1007810
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.010089a3
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0
call fcn.010089a3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.010089a3
mov eax, esi
jmp 0x10077da
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x1007853
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 0x1007cb6
cmp eax, esi
jae 0x1007cb6
push 0x1001a08
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.01003758
mov dword [ebp - 0x21c], eax
test eax, eax
jge 0x10078d0
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1007cf2
test byte [eax + 0x1c], 1
je 0x1007cf2
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 0x1007cf2
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x230]
push 0x10019fc
push eax
call fcn.0100901a
add esp, 0xc
mov dword [ebp - 0x21c], eax
test eax, eax
jge 0x100792d
mov eax, dword [0x100c014]
cmp eax, 0x100c014
je 0x1007cf2
test byte [eax + 0x1c], 1
je 0x1007cf2
lea ecx, [ebp - 0x218]
push ecx
push 0x1001780
push 0x37
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100309c
jmp 0x1007cf2
xor ecx, ecx
xor ebx, ebx
mov edi, 0x100c014
mov esi, 0x1001780
cmp dword [ebp + 0xc], ecx
jbe 0x1007a35
mov eax, dword [ebp - 0x240]
mov eax, dword [eax + ebx*4]
cmp eax, ecx
je 0x1007a2b
cmp word [eax], cx
je 0x1007a2b
push eax
lea ecx, [ebp - 0x23c]
call fcn.01008a8b
mov dword [ebp - 0x21c], eax
test eax, eax
jl 0x1007a92
push 0
push 0
push 0x10019f4
push 0x10019f0
lea ecx, [ebp - 0x23c]
call fcn.01009069
mov dword [ebp - 0x21c], eax
test eax, eax
jl 0x1007ac0
lea ecx, [ebp - 0x23c]
call fcn.010057b4
push eax
lea eax, [ebp - 0x250]
push 0x10019fc
push eax
call fcn.0100901a
add esp, 0xc
mov dword [ebp - 0x21c], eax
test eax, eax
jl 0x1007af6
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x230]
call fcn.01009002
mov dword [ebp - 0x21c], eax
test eax, eax
jge 0x1007a29
mov eax, dword [0x100c014]
cmp eax, edi
je 0x1007a29
test byte [eax + 0x1c], 1
je 0x1007a29
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x23c]
call fcn.010057b4
push eax
lea ecx, [ebp - 0x230]
call fcn.010057b4
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 0x1007944
cmp dword [ebp + 0x1c], ecx
je 0x1007b24
push dword [ebp + 0x28]
lea ecx, [ebp - 0x230]
push dword [ebp - 0x224]
call fcn.010057b4
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.01007467
mov dword [ebp - 0x21c], eax
test eax, eax
jge 0x1007c28
mov eax, dword [0x100c014]
cmp eax, edi
je 0x1007cf2
test byte [eax + 0x1c], 1
je 0x1007cf2
push dword [ebp - 0x21c]
push esi
push 0x3c
jmp 0x1007ce7
mov eax, dword [0x100c014]
cmp eax, edi
je 0x1007cf2
test byte [eax + 0x1c], 1
je 0x1007cf2
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x240]
push dword [ecx + ebx*4]
push esi
push 0x38
jmp 0x10078c0
mov eax, dword [0x100c014]
cmp eax, edi
je 0x1007cf2
test byte [eax + 0x1c], 1
je 0x1007cf2
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x23c]
call fcn.010057b4
push eax
push esi
push 0x39
mov eax, dword [0x100c014]
jmp 0x10078c0
mov eax, dword [0x100c014]
cmp eax, edi
je 0x1007cf2
test byte [eax + 0x1c], 1
je 0x1007cf2
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x23c]
call fcn.010057b4
push eax
push esi
push 0x3a
jmp 0x1007aec
mov dword [ebp - 0x2a4], 0x44
cmp dword [ebp + 0x28], ecx
je 0x1007b46
xor eax, eax
mov dword [ebp - 0x278], 1
mov word [ebp - 0x274], ax
cmp dword [ebp - 0x220], ecx
je 0x1007c34
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x1007b8d
mov eax, dword [0x100c014]
cmp eax, edi
je 0x1007cf2
test byte [eax + 0x1c], 1
je 0x1007cf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x100c014]
push esi
push 0x3d
jmp 0x1007ce7
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.010057b4
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x1007c22
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 0x1007c17
test byte [eax + 0x1c], 4
je 0x1007c17
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x230]
call fcn.010057b4
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 0x1007cf2
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
and dword [ebp - 0x21c], 0
jmp 0x1007cf2
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.010057b4
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1007c28
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 0x1007cf2
test byte [eax + 0x1c], 4
je 0x1007cf2
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x230]
call fcn.010057b4
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 0x1007cf2
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 0x1007cf2
test byte [eax + 0x1c], 1
je 0x1007cf2
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 0x1007d13
mov ecx, dword [ebp - 0x244]
test ecx, ecx
je 0x1007d10
mov dword [ecx], eax
jmp 0x1007d13
push eax
call esi
mov eax, dword [ebp - 0x260]
test eax, eax
je 0x1007d2e
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x1007d2b
mov dword [ecx], eax
jmp 0x1007d2e
push eax
call esi
mov esi, dword [ebp - 0x21c]
jmp 0x1007815