Function at 0x10001000
Capabilities:
Get common file path
Print debug messages

Disassembly:
sub esp, 0x114
push ebp
push str.lyh
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor ebp, ebp
push str.ntdll.dll
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebp
jne 0x10001047
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebp
jne 0x10001047
mov eax, 1
pop ebp
add esp, 0x114
ret
push esi
push str.ZwQuerySystemInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebp
jne 0x10001068
pop esi
mov eax, 2
pop ebp
add esp, 0x114
ret
push ebx
push 0x11c
call fcn.10002389
add esp, 4
mov ebx, eax
lea eax, [esp + 0xc]
push eax
push 0x11c
push ebx
push 0xb
mov dword [esp + 0x20], ebx
call esi
cmp eax, 0xc0000004
jne 0x100010d0
push ebx
call fcn.10002271
mov ecx, dword [esp + 0x10]
add ecx, 4
push ecx
call fcn.10002389
add esp, 8
mov dword [esp + 0x10], eax
mov ebx, eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0xc]
push edx
push eax
push ebx
push 0xb
call esi
test eax, eax
je 0x100010e3
pop ebx
pop esi
mov eax, 4
pop ebp
add esp, 0x114
ret
cmp eax, ebp
je 0x100010ae
pop ebx
pop esi
mov eax, 3
pop ebp
add esp, 0x114
ret
push edi
mov edi, dword [ebx]
cmp edi, ebp
mov dword [esp + 0x10], edi
lea esi, [ebx + 4]
jbe 0x100011da
lea ebx, [esi + 0x1c]
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001100
sub eax, edx
cmp eax, 0xc
jbe 0x1000115a
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001113
sub eax, edx
lea ecx, [eax + esi + 0x10]
push str.ntkrnlpa.exe
push ecx
call fcn.10002208
add esp, 8
test eax, eax
je 0x1000116d
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001137
sub eax, edx
lea edx, [eax + esi + 0x10]
push str.ntoskrnl.exe
push edx
call fcn.10002208
add esp, 8
test eax, eax
je 0x1000116d
mov edi, dword [esp + 0x10]
add esi, 0x11c
add ebx, 0x11c
inc ebp
cmp ebp, edi
jb 0x100010f8
jmp 0x100011d6
push 0x104
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x20]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10001182
mov cx, word [0x1000816c]
lea eax, [esi + 0x1c]
mov word [edi], cx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100011a0
sub eax, edx
lea eax, [eax + esi + 0x10]
mov ecx, eax
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100011b0
lea edi, [esp + 0x20]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100011c0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [esp + 0x14]
push ebx
call fcn.10002271
add esp, 4
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push str..i8data
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10001214
pop edi
pop ebx
pop esi
mov eax, 5
pop ebp
add esp, 0x114
ret
push 0
lea edx, [esp + 0x14]
push edx
push 8
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0x222c44
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10001251
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
mov eax, 6
pop ebp
add esp, 0x114
ret
push 1
push 0
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
test esi, esi
jne 0x1000127d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
mov eax, 7
pop ebp
add esp, 0x114
ret
mov eax, dword [esi + 0x3c]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax + esi + 0x50]
add eax, esi
cmp edx, ecx
mov dword [esp + 0x14], eax
jbe 0x100012a6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x114
ret
mov eax, dword [esp + 0x1c]
lea ecx, [eax*4]
push ecx
call fcn.10002389
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x100012d7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
mov eax, 8
pop ebp
add esp, 0x114
ret
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add esi, edx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
jbe 0x10001304
nop
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x34]
sub dword [ebp + eax*4], edx
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
jb 0x100012f0
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0
shl ecx, 2
push ecx
push ebp
push 0x222c48
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebp
call fcn.10002271
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10008150
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x114
ret