Function at 0x180002260
Capabilities:
Enumerate files on windows
Get common file path
Parse pe header
Read file on windows

Disassembly:
mov r11, rsp
push rbp
push r14
push r15
lea rbp, [r11 - 0xe08]
sub rsp, 0xef0
mov rax, qword [0x180026008]
xor rax, rsp
mov qword [rbp + 0xdc0], rax
mov qword [r11 - 0x20], rsi
xor r15d, r15d
mov qword [r11 - 0x30], r12
mov qword [r11 - 0x38], r13
mov dword [rsp + 0x44], r15d
mov dword [rbp + 0x130], r9d
mov dword [rsp + 0x40], r8d
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea edx, [r15 + 8]
mov r8d, 0x1000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor edx, edx
lea rcx, [rbp + 0x5a0]
mov r8d, 0x208
mov r14, rax
xor esi, esi
call fcn.18000a5a0
mov edx, 0x104
lea rcx, [rbp + 0x5a0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor edx, edx
lea rcx, [rbp + 0x7b0]
mov r8d, 0x208
call fcn.18000a5a0
lea r8, [rbp + 0x5a0]
mov edx, 0x104
lea rcx, [rbp + 0x7b0]
call fcn.18000ce34
lea r8, str..dll
mov edx, 0x104
lea rcx, [rbp + 0x7b0]
call fcn.18000ce34
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x250
call fcn.18000a5a0
lea rdx, [rbp + 0x140]
lea rcx, [rbp + 0x7b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1800029cd
mov r13d, dword [rbp + 0x130]
mov r15d, dword [rsp + 0x40]
mov qword [rsp + 0xf20], rbx
lea rbx, str.advapi32.dll
mov qword [rsp + 0xee0], rdi
lea rdi, str.apphelp.dll
nop dword [rax + rax]
xor edx, edx
lea rcx, [rbp + 0x390]
mov r8d, 0x208
call fcn.18000a5a0
lea r8, [rbp + 0x5a0]
mov edx, 0x104
lea rcx, [rbp + 0x390]
call fcn.18000ce34
lea r8, [0x180022e30]
mov edx, 0x104
lea rcx, [rbp + 0x390]
call fcn.18000ce34
lea r8, [rbp + 0x16c]
mov edx, 0x104
lea rcx, [rbp + 0x390]
call fcn.18000ce34
lea rax, str.bcrypt.dll
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rax
lea rax, str.bcryptprimitives.dll
mov qword [rsp + 0x78], rax
lea rax, str.cfgmgr32.dll
mov qword [rbp - 0x80], rax
lea rax, str.combase.dll
mov qword [rbp - 0x78], rax
lea rax, str.cryptbase.dll
mov qword [rbp - 0x70], rax
lea rax, str.cryptsp.dll
mov qword [rbp - 0x68], rax
lea rax, str.dhcpcsvc.dll
mov qword [rbp - 0x60], rax
lea rax, str.dhcpcsvc6.dll
mov qword [rbp - 0x58], rax
lea rax, str.dnsapi.dll
mov qword [rbp - 0x50], rax
lea rax, str.FWPUCLNT.DLL
mov qword [rbp - 0x48], rax
lea rax, str.gdi32.dll
mov qword [rbp - 0x40], rax
lea rax, str.gdi32full.dll
mov qword [rbp - 0x38], rax
lea rax, str.iertutil.dll
mov qword [rbp - 0x30], rax
lea rax, str.imm32.dll
mov qword [rbp - 0x28], rax
lea rax, str.IPHLPAPI.DLL
mov qword [rbp - 0x20], rax
lea rax, str.kernel.appcore.dll
mov qword [rbp - 0x18], rax
lea rax, str.kernel32.dll
mov qword [rbp - 0x10], rax
lea rax, str.KernelBase.dll
mov qword [rbp - 8], rax
lea rax, str.locale.nls
mov qword [rbp], rax
lea rax, str.msvcp_win.dll
mov qword [rbp + 8], rax
lea rax, [0x180022a60]
mov qword [rbp + 0x10], rax
lea rax, str.mswsock.dll
mov qword [rbp + 0x18], rax
lea rax, str.NapiNSP.dll
mov qword [rbp + 0x20], rax
lea rax, str.nlaapi.dll
mov qword [rbp + 0x28], rax
lea rax, str.nsi.dll
mov qword [rbp + 0x30], rax
lea rax, [0x180022ad0]
mov qword [rbp + 0x38], rax
lea rax, str.ntmarta.dll
mov qword [rbp + 0x40], rax
lea rax, str.oleaut32.dll
mov qword [rbp + 0x48], rax
lea rax, str.OnDemandConnRouteHelper.dll
mov qword [rbp + 0x50], rax
lea rax, str.pnrpnsp.dll
mov qword [rbp + 0x58], rax
lea rax, str.powrprof.dll
mov qword [rbp + 0x60], rax
lea rax, str.profapi.dll
mov qword [rsp + 0x68], rdi
mov qword [rbp + 0x68], rax
lea rbx, [rsp + 0x60]
lea rax, str.rasadhlp.dll
xor edi, edi
mov qword [rbp + 0x70], rax
lea rax, str.rpcrt4.dll
mov qword [rbp + 0x78], rax
lea rax, str.rsaenh.dll
mov qword [rbp + 0x80], rax
lea rax, str.sechost.dll
mov qword [rbp + 0x88], rax
lea rax, str.SHCore.dll
mov qword [rbp + 0x90], rax
lea rax, str.shell32.dll
mov qword [rbp + 0x98], rax
lea rax, str.shlwapi.dll
mov qword [rbp + 0xa0], rax
lea rax, str.sspicli.dll
mov qword [rbp + 0xa8], rax
lea rax, str.ucrtbase.dll
mov qword [rbp + 0xb0], rax
lea rax, str.urlmon.dll
mov qword [rbp + 0xb8], rax
lea rax, str.user32.dll
mov qword [rbp + 0xc0], rax
lea rax, str.userenv.dll
mov qword [rbp + 0xc8], rax
lea rax, str.webio.dll
mov qword [rbp + 0xd0], rax
lea rax, str.win32u.dll
mov qword [rbp + 0xd8], rax
lea rax, str.windows.storage.dll
mov qword [rbp + 0xe0], rax
lea rax, str.winhttp.dll
mov qword [rbp + 0xe8], rax
lea rax, str.wininet.dll
mov qword [rbp + 0xf0], rax
lea rax, str.winnlsres.dll
mov qword [rbp + 0xf8], rax
lea rax, str.winnsi.dll
mov qword [rbp + 0x100], rax
lea rax, str.winrnr.dll
mov qword [rbp + 0x108], rax
lea rax, str.winsta.dll
mov qword [rbp + 0x110], rax
lea rax, str.ws2_32.dll
mov qword [rbp + 0x118], rax
lea rax, str.wshbth.dll
mov qword [rbp + 0x120], rax
lea rax, str.wtsapi32.dll
mov qword [rbp + 0x128], rax
nop dword [rax]
mov rdx, qword [rbx]
lea rcx, [rbp + 0x16c]
call fcn.18000ccc4
test eax, eax
je 0x1800028d6
inc edi
add rbx, 8
cmp edi, 0x3a
jb 0x1800026c0
xor edx, edx
lea rcx, [rbp + 0x9c0]
mov r8d, 0x400
call fcn.18000a5a0
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp + 0x390]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800028d6
lea r9, [rbp + 0x130]
mov dword [rbp + 0x130], 0
mov r8d, 0x400
mov qword [rsp + 0x20], 0
lea rdx, [rbp + 0x9c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800028cd
cmp dword [rbp + 0x130], 0x400
jne 0x1800028cd
mov eax, 0x5a4d
cmp word [rbp + 0x9c0], ax
jne 0x1800028cd
movsxd rax, dword [rbp + 0x9fc]
lea r9, [rbp + 0x9c0]
add r9, rax
cmp dword [r9], 0x4550
jne 0x1800028cd
mov eax, 0x2000
test word [r9 + 0x16], ax
je 0x1800028cd
mov eax, 0x8664
cmp word [r9 + 4], ax
jne 0x1800028cd
movzx r10d, word [r9 + 0x14]
add r10, r9
cmp word [r9 + 6], 2
jb 0x1800028cd
xor ecx, ecx
lea rdx, str..text
nop word [rax + rax]
movzx eax, byte [r10 + rcx + 0x18]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x1800028cd
cmp rcx, 6
jne 0x1800027f0
mov eax, dword [r9 + 0x38]
mov r8d, dword [r9 + 0x3c]
lea edx, [rax - 1]
neg eax
add edx, dword [r10 + 0x28]
and edx, eax
lea eax, [r8 - 1]
add eax, dword [r10 + 0x28]
neg r8d
and eax, r8d
cmp edx, eax
jne 0x1800028cd
mov ecx, dword [r10 + 0x4c]
mov eax, ecx
sub eax, dword [r9 + 0x28]
sub eax, 0x10
cmp eax, r15d
jb 0x1800028cd
mov eax, dword [r9 + 0x50]
sub eax, ecx
cmp eax, r13d
jb 0x1800028cd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rbp + 0x16c]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rax + rbx*2 + 2], 0
lea rbx, [rbx + 1]
jne 0x180002870
lea rbx, [rbx*2 + 2]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rax
mov qword [r14 + rsi*8], rax
lea rax, [rbp + 0x16c]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x1800028b0
inc rdx
lea r8, [rbp + 0x16c]
call fcn.18000b574
inc esi
jmp 0x1800028d6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp + 0x140]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x180002904
lea rbx, str.advapi32.dll
lea rdi, str.apphelp.dll
cmp esi, 0x200
jb 0x1800023a0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r15d, dword [rsp + 0x44]
mov r13, qword [rsp + 0x48]
test esi, esi
je 0x1800029bd
lea rcx, [rbp + 0x130]
mov dword [rbp + 0x130], r15d
call fcn.180004890
mov eax, dword [rbp + 0x130]
xor edx, edx
mov rcx, qword [rsp + 0x50]
div esi
mov r8, qword [r14 + rdx*8]
mov edx, 0x104
call fcn.18000b574
lea r8, [rbp + 0x5a0]
mov edx, 0x104
mov rcx, r13
call fcn.18000b574
lea r8, [0x180022e30]
mov edx, 0x104
mov rcx, r13
call fcn.18000ce34
mov r8, qword [rsp + 0x50]
mov edx, 0x104
mov rcx, r13
call fcn.18000ce34
xor r12d, r12d
mov r15d, 1
mov rbx, r14
mov rdi, qword [rbx]
test rdi, rdi
je 0x1800029b4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r12
add rbx, 8
sub rsi, r15
jne 0x180002995
mov rbx, qword [rsp + 0xf20]
mov rdi, qword [rsp + 0xee0]
mov r13, qword [rsp + 0xed0]
mov r12, qword [rsp + 0xed8]
mov rsi, qword [rsp + 0xee8]
test r14, r14
je 0x1800029fe
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, r15d
mov rcx, qword [rbp + 0xdc0]
xor rcx, rsp
call fcn.180009470
add rsp, 0xef0
pop r15
pop r14
pop rbp
ret