Function at 0x140001db0
Capabilities:
Enumerate pe sections
Get common file path
Parse pe header
Read file on windows
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1548
call fcn.14001be50
sub rsp, rax
mov rax, qword [rsp + 0x1560]
cmp dword [rax + 0x14], 0
je 0x140001dd9
xor eax, eax
jmp 0x1400029d6
mov rax, qword [rsp + 0x1560]
mov eax, dword [rax + 0x10]
and eax, 1
test eax, eax
je 0x140002062
mov rax, qword [rsp + 0x1560]
cmp dword [rax + 0x18], 6
jb 0x140002062
mov rax, qword [rsp + 0x1560]
cmp dword [rax + 0x1c], 1
jb 0x140002062
mov dword [rsp + 0x98], 0xb
mov dword [rsp + 0x40], 0
mov edx, 0x104
lea rcx, [rsp + 0x220]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rcx, [0x14001e8b8]
call fcn.140014160
lea rdx, str.ZwQuerySystemInformation
mov rcx, rax
call fcn.1400141d0
mov qword [rsp + 0xd8], rax
cmp qword [rsp + 0xd8], 0
jne 0x140001e71
mov eax, 1
jmp 0x1400029d6
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x150], rax
mov eax, dword [rsp + 0x98]
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov ecx, eax
call qword [rsp + 0x150]
cmp dword [rsp + 0x40], 0
jne 0x140001eac
mov eax, 1
jmp 0x1400029d6
mov eax, dword [rsp + 0x40]
mov edx, eax
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x158], rax
mov eax, dword [rsp + 0x98]
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0xe8]
mov ecx, eax
call qword [rsp + 0x158]
mov dword [rsp + 0x120], eax
cmp dword [rsp + 0x120], 0
je 0x140001f12
mov eax, 1
jmp 0x1400029d6
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rax
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x160], rax
mov qword [rsp + 0xb8], 0xffffffffffffffff
inc qword [rsp + 0xb8]
mov rax, qword [rsp + 0x160]
mov rcx, qword [rsp + 0xb8]
cmp byte [rax + rcx], 0
jne 0x140001f4d
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x148], rax
mov qword [rsp + 0xe0], 0
jmp 0x140001faf
mov rax, qword [rsp + 0xe0]
inc rax
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x80]
inc rax
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x40]
sub rax, qword [rsp + 0x148]
cmp qword [rsp + 0xe0], rax
jae 0x140001feb
mov r8, qword [rsp + 0x148]
mov rdx, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x140001fe9
jmp 0x140001feb
jmp 0x140001f89
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x1560]
add rax, 0x3c
lea rdx, [rsp + 0x220]
mov rcx, rax
call fcn.140003730
mov rax, qword [rsp + 0x1560]
add rax, 0x3c
lea rdx, [0x14001e804]
mov rcx, rax
call fcn.140003760
mov rax, qword [rsp + 0x1560]
add rax, 0x3c
mov rdx, qword [rsp + 0x80]
mov rcx, rax
call fcn.140003760
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsp + 0x1560]
mov eax, dword [rax + 0x10]
and eax, 2
test eax, eax
je 0x14000223b
mov edx, 8
mov rax, qword [rsp + 0x1560]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14000223b
mov rax, qword [rsp + 0x1560]
mov rax, qword [rax + 8]
mov qword [rsp + 0xf0], rax
cmp qword [rsp + 0xf0], 0
je 0x1400020c8
mov rax, qword [rsp + 0xf0]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400020d2
mov eax, 2
jmp 0x1400029d6
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.imagehlp.dll_ImageNtHeader]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
je 0x140002103
mov rax, qword [rsp + 0xa0]
cmp dword [rax], 0x4550
je 0x14000210d
mov eax, 2
jmp 0x1400029d6
mov rax, qword [rsp + 0xa0]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0xa0]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x1560]
add rax, 0x140
mov rcx, rax
call fcn.140003270
mov qword [rsp + 0xf8], 0
jmp 0x140002165
mov rax, qword [rsp + 0xf8]
inc rax
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xa0]
movzx eax, word [rax + 6]
cmp qword [rsp + 0xf8], rax
jae 0x14000223b
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x24]
and eax, 0x40000000
test eax, eax
je 0x140002222
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x24]
and eax, 0x80000000
test eax, eax
jne 0x140002222
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x1560]
add rax, qword [rcx + 8]
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 8]
mov dword [rsp + 0x140], eax
mov edx, dword [rsp + 0x140]
mov rcx, qword [rsp + 0x138]
call fcn.140013280
mov dword [rsp + 0x144], eax
mov rax, qword [rsp + 0x1560]
add rax, 0x140
mov qword [rsp + 0x168], rax
lea rdx, [rsp + 0x138]
mov rcx, qword [rsp + 0x168]
call fcn.140003310
mov rax, qword [rsp + 0x88]
add rax, 0x28
mov qword [rsp + 0x88], rax
jmp 0x140002152
mov rax, qword [rsp + 0x1560]
mov eax, dword [rax + 0x10]
and eax, 4
test eax, eax
je 0x1400029c6
mov rax, qword [rsp + 0x1560]
cmp dword [rax + 0x20], 0
je 0x1400022fb
lea rcx, [0x14001e908]
call fcn.140014160
lea rdx, str.ZwQueryInformationProcess
mov rcx, rax
call fcn.1400141d0
mov rcx, qword [rsp + 0x1560]
mov qword [rcx + 0x158], rax
mov rax, qword [rsp + 0x1560]
cmp qword [rax + 0x158], 0
jne 0x1400022a9
mov eax, 4
jmp 0x1400029d6
lea rcx, [0x14001e920]
call fcn.140014160
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0x1560]
mov rax, qword [rax + 0x158]
mov qword [rsp + 0x190], rax
mov rax, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x190]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x1560]
mov qword [rcx + 0x158], rax
jmp 0x1400022fc
int3
mov dword [rsp + 0x44], 0
mov rax, qword [rsp + 0x1560]
cmp dword [rax + 0x20], 0
je 0x140002473
lea rcx, [0x14001e938]
call fcn.140014160
lea rcx, [rsp + 0x540]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x1000
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x540]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140002363
mov eax, 6
jmp 0x1400029d6
mov rax, qword [rsp + 0x100]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x100]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
cmp dword [rax], 0x4550
je 0x14000239f
mov eax, 6
jmp 0x1400029d6
mov rax, qword [rsp + 0xc0]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0xc0]
lea rax, [rax + rcx + 0x18]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x108], 0
jmp 0x1400023de
mov rax, qword [rsp + 0x108]
inc rax
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0xc0]
movzx eax, word [rax + 6]
cmp qword [rsp + 0x108], rax
jae 0x140002442
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x1560]
cmp rax, qword [rcx + 0x158]
ja 0x140002432
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x70]
add eax, dword [rcx + 8]
mov eax, eax
mov rcx, qword [rsp + 0x1560]
cmp qword [rcx + 0x158], rax
ja 0x140002432
jmp 0x140002442
mov rax, qword [rsp + 0x70]
add rax, 0x28
mov qword [rsp + 0x70], rax
jmp 0x1400023cb
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x1560]
mov rcx, qword [rcx + 0x158]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 0x14]
add rax, rcx
mov dword [rsp + 0x44], eax
jmp 0x1400025ae
lea rcx, [0x14001e950]
call fcn.140014160
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400024a3
mov eax, 6
jmp 0x1400029d6
mov rax, qword [rsp + 0x110]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x110]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
cmp dword [rax], 0x4550
je 0x1400024df
mov eax, 6
jmp 0x1400029d6
mov rax, qword [rsp + 0xc8]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0xc8]
lea rax, [rax + rcx + 0x18]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x118], 0
jmp 0x14000251e
mov rax, qword [rsp + 0x118]
inc rax
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0xc8]
movzx eax, word [rax + 6]
cmp qword [rsp + 0x118], rax
jae 0x140002582
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x1560]
cmp rax, qword [rcx + 0x158]
ja 0x140002572
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x78]
add eax, dword [rcx + 8]
mov eax, eax
mov rcx, qword [rsp + 0x1560]
cmp qword [rcx + 0x158], rax
ja 0x140002572
jmp 0x140002582
mov rax, qword [rsp + 0x78]
add rax, 0x28
mov qword [rsp + 0x78], rax
jmp 0x14000250b
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x1560]
mov rcx, qword [rcx + 0x158]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x78]
mov ecx, dword [rcx + 0x14]
add rax, rcx
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1400025bf
mov eax, 6
jmp 0x1400029d6
lea rax, [rsp + 0x330]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rsp + 0x330]
call fcn.1400142a0
lea rdx, str._ntdll.dll
lea rcx, [rsp + 0x330]
call fcn.140003790
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
lea rcx, [rsp + 0x330]
call fcn.140014700
mov qword [rsp + 0xd0], rax
cmp qword [rsp + 0xd0], 0xffffffffffffffff
jne 0x14000264a
mov eax, 3
jmp 0x1400029d6
mov r9d, 1
xor r8d, r8d
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x188]
mov r8d, 0x64
lea rdx, [rsp + 0x1b0]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rsp + 0xd0]
call fcn.140014e50
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0xa8], rax
xor eax, eax
cmp eax, 1
je 0x140002753
mov rax, qword [rsp + 0x1560]
mov r8d, dword [rax + 0x20]
lea rdx, [rsp + 0x198]
mov rcx, qword [rsp + 0xa8]
call fcn.1400153a0
mov eax, eax
mov qword [rsp + 0x130], rax
cmp qword [rsp + 0x130], 5
jne 0x140002730
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0xa8]
movzx eax, byte [rcx + rax]
cmp eax, 0xb8
jne 0x140002730
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x1560]
mov rdx, qword [rsp + 0xa8]
mov eax, dword [rdx + rax]
mov dword [rcx + 0x160], eax
jmp 0x140002753
mov rax, qword [rsp + 0x130]
mov rcx, qword [rsp + 0xa8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa8], rax
jmp 0x1400026af
mov byte [rsp + 0x58], 0xb8
mov byte [rsp + 0x59], 0
mov byte [rsp + 0x5a], 0
mov byte [rsp + 0x5b], 0
mov byte [rsp + 0x5c], 0
mov byte [rsp + 0x5d], 0xe8
mov byte [rsp + 0x5e], 3
mov byte [rsp + 0x5f], 0
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x61], 0
mov byte [rsp + 0x62], 0xc2
mov byte [rsp + 0x63], 0x14
mov byte [rsp + 0x64], 0
mov byte [rsp + 0x65], 0x8b
mov byte [rsp + 0x66], SHAnsiToUnicode
mov byte [rsp + 0x67], 0xf
mov byte [rsp + 0x68], 0x34
mov byte [rsp + 0x69], 0xc3
mov byte [rsp + 0x48], 0xb8
mov byte [rsp + 0x49], 0
mov byte [rsp + 0x4a], 0
mov byte [rsp + 0x4b], 0
mov byte [rsp + 0x4c], 0
mov byte [rsp + 0x4d], 0x4c
mov byte [rsp + 0x4e], 0x8b
mov byte [rsp + 0x4f], 0xd1
mov byte [rsp + 0x50], 0xf
mov byte [rsp + 0x51], 5
mov byte [rsp + 0x52], 0xc3
mov rax, qword [rsp + 0x1560]
mov eax, dword [rax + 0x2c]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, eax
xor edx, edx
mov rcx, 0xffffffffffffffff
call fcn.140013e80
mov rcx, qword [rsp + 0x1560]
mov qword [rcx + 0x30], rax
mov rax, qword [rsp + 0x1560]
cmp qword [rax + 0x30], 0
jne 0x140002833
mov eax, 5
jmp 0x1400029d6
call fcn.140014240
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov rax, qword [rsp + 0x1560]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x178], rax
mov qword [rsp + 0xb0], 0
jmp 0x140002875
mov rax, qword [rsp + 0xb0]
inc rax
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x1560]
mov eax, dword [rax + 0x2c]
cmp qword [rsp + 0xb0], rax
jae 0x1400028b2
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
and rax, 0xff
mov rcx, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0x178]
add rdx, rcx
mov rcx, rdx
mov byte [rcx], al
jmp 0x140002862
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
mov rcx, qword [rsp + 0x1560]
mov ecx, dword [rcx + 0x2c]
sub rcx, 0x1d
xor edx, edx
div rcx
mov rax, rdx
mov qword [rsp + 0x180], rax
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x1560]
mov ecx, dword [rcx + 0x160]
mov dword [rsp + rax + 0x58], ecx
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x1560]
mov ecx, dword [rcx + 0x160]
mov dword [rsp + rax + 0x48], ecx
mov rax, qword [rsp + 0x1560]
mov rax, qword [rax + 0x30]
add rax, qword [rsp + 0x180]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x1560]
mov rcx, qword [rsp + 0x90]
mov qword [rax + 0x168], rcx
lea rax, [rsp + 0x58]
mov rdi, qword [rsp + 0x90]
mov rsi, rax
mov ecx, 0x12
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x90]
add rax, 0x12
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x1560]
mov rcx, qword [rsp + 0x90]
mov qword [rax + 0x170], rcx
lea rax, [rsp + 0x48]
mov rdi, qword [rsp + 0x90]
mov rsi, rax
mov ecx, 0xb
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x1560]
mov edx, dword [rax + 0x2c]
mov rax, qword [rsp + 0x1560]
mov rcx, qword [rax + 0x30]
call fcn.140013280
mov rcx, qword [rsp + 0x1560]
mov dword [rcx + 0x38], eax
xor eax, eax
jmp 0x1400029d6
mov rax, qword [rsp + 0x1560]
mov eax, dword [rax + 0x10]
and eax, 8
xor eax, eax
add rsp, 0x1548
pop rdi
pop rsi
ret