Function at 0x180002ce0
Capabilities:
Enumerate files on windows
Parse pe header
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 8], ecx
push rbp
push rsi
push r12
push r13
push r15
lea rbp, [rsp - 0xbe0]
sub rsp, 0xce0
mov r13, rdx
lea rcx, [rbp + 0x5c0]
xor edx, edx
mov r8d, 0x208
xor r15d, r15d
call fcn.180005d30
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.GetSystemDirectoryW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180002d4a
mov edx, 0x104
lea rcx, [rbp + 0x5c0]
call rax
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.180005d30
xor edx, edx
lea rcx, [rbp + 0x3b0]
mov r8d, 0x208
call fcn.180005d30
lea rcx, [rbp + 0x3b0]
nop word [rax + rax]
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x180002d80
lea rax, [rbp + 0x3b0]
sub rcx, rax
lea rdx, [rbp + 0x5c0]
sar rcx, 1
dec rcx
movzx eax, word [rdx]
add rdx, 2
test ax, ax
jne 0x180002da3
lea rax, [rbp + 0x5c0]
mov qword [rsp + 0xcd8], rdi
sub rdx, rax
lea rax, [rcx + 1]
sar rdx, 1
dec rdx
add rax, rdx
cmp rax, 0x104
ja 0x180002e02
lea rdi, [rbp + 0x3b0]
lea rdi, [rdi + rcx*2]
test rdi, rdi
je 0x180002e02
pushfq
pop rax
btr rax, 0xa
push rax
popfq
lea rcx, [rdx*2 + 2]
lea rsi, [rbp + 0x5c0]
rep movsb byte [rdi], byte [rsi]
lea rcx, [rbp + 0x3b0]
nop dword [rax]
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x180002e10
lea rax, [rbp + 0x3b0]
sub rcx, rax
lea rsi, str..dll
sar rcx, 1
mov rdx, rsi
dec rcx
nop word [rax + rax]
movzx eax, word [rdx]
add rdx, 2
test ax, ax
jne 0x180002e40
sub rdx, rsi
lea rax, [rcx + 1]
sar rdx, 1
dec rdx
add rax, rdx
cmp rax, 0x104
ja 0x180002e89
lea rdi, [rbp + 0x3b0]
lea rdi, [rdi + rcx*2]
test rdi, rdi
je 0x180002e89
pushfq
pop rax
btr rax, 0xa
push rax
popfq
lea rcx, [rdx*2 + 2]
rep movsb byte [rdi], byte [rsi]
xor edx, edx
lea rcx, [rbp + 0x160]
mov r8d, 0x250
call fcn.180005d30
lea rdx, [rbp + 0x160]
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1800032b2
mov qword [rsp + 0xd18], rbx
lea rsi, [0x18001a888]
mov qword [rsp + 0xcd0], r14
nop word [rax + rax]
lea rcx, [rbp + 0x18c]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x180003217
lea rcx, [rbp + 0x18c]
call fcn.180002990
test eax, eax
jne 0x180003217
pushfq
pop rax
btr rax, 0xa
push rax
popfq
lea rdi, [rsp + 0x50]
xor eax, eax
mov ecx, 0x208
lea rdx, [rsp + 0x50]
rep stosb byte [rdi], al
nop dword [rax + rax]
movzx eax, word [rdx]
add rdx, 2
test ax, ax
jne 0x180002f30
lea rax, [rsp + 0x50]
sub rdx, rax
lea rcx, [rbp + 0x5c0]
sar rdx, 1
dec rdx
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x180002f51
lea rax, [rbp + 0x5c0]
sub rcx, rax
lea rax, [rdx + 1]
sar rcx, 1
dec rcx
add rax, rcx
cmp rax, 0x104
ja 0x180002fad
lea rdi, [rsp + 0x50]
lea rdi, [rdi + rdx*2]
test rdi, rdi
je 0x180002fad
pushfq
pop rax
btr rax, 0xa
push rax
popfq
lea rcx, [rcx*2 + 2]
lea rsi, [rbp + 0x5c0]
rep movsb byte [rdi], byte [rsi]
lea rsi, [0x18001a888]
lea rcx, [rsp + 0x50]
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x180002fb2
lea rax, [rsp + 0x50]
mov rdx, rsi
sub rcx, rax
sar rcx, 1
dec rcx
nop
movzx eax, word [rdx]
add rdx, 2
test ax, ax
jne 0x180002fd0
sub rdx, rsi
lea rax, [rcx + 1]
sar rdx, 1
dec rdx
add rax, rdx
cmp rax, 0x104
ja 0x180003017
lea rdi, [rsp + 0x50]
lea rdi, [rdi + rcx*2]
test rdi, rdi
je 0x180003017
pushfq
pop rax
btr rax, 0xa
push rax
popfq
lea rcx, [rdx*2 + 2]
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x50]
nop dword [rax]
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x180003020
lea rax, [rsp + 0x50]
sub rcx, rax
lea rdx, [rbp + 0x18c]
sar rcx, 1
dec rcx
movzx eax, word [rdx]
add rdx, 2
test ax, ax
jne 0x180003041
lea rax, [rbp + 0x18c]
sub rdx, rax
lea rax, [rcx + 1]
sar rdx, 1
dec rdx
add rax, rdx
cmp rax, 0x104
ja 0x180003096
lea rdi, [rsp + 0x50]
lea rdi, [rdi + rcx*2]
test rdi, rdi
je 0x180003096
pushfq
pop rax
btr rax, 0xa
push rax
popfq
lea rcx, [rdx*2 + 2]
lea rsi, [rbp + 0x18c]
rep movsb byte [rdi], byte [rsi]
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x50]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov r14d, r15d
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180003210
xor edx, edx
lea rcx, [rbp + 0x7d0]
mov r8d, 0x400
call fcn.180005d30
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], r15d
mov r8d, 0x400
mov qword [rsp + 0x20], r15
lea rdx, [rbp + 0x7d0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180003202
cmp dword [rsp + 0x40], 0x400
jne 0x180003202
mov eax, 0x5a4d
cmp word [rbp + 0x7d0], ax
jne 0x180003202
movsxd rax, dword [rbp + 0x80c]
cmp dword [rbp + rax + 0x7d0], 0x4550
jne 0x180003202
mov ecx, 0x2000
test word [rbp + rax + 0x7e6], cx
je 0x180003202
mov ecx, 0x8664
cmp word [rbp + rax + 0x7d4], cx
jne 0x180003202
movzx r11d, word [rbp + rax + 0x7d6]
lea r10, [rbp + rax + 0x8d8]
mov r8d, r15d
mov r9, r15
test r11d, r11d
je 0x180003202
nop dword [rax]
movsxd rax, r8d
lea rdx, str..text
mov rdi, rdx
lea rcx, [rax + rax*4]
lea rcx, [rcx*8]
lea rax, [rcx + r10]
test rax, rax
je 0x1800031d3
sub rcx, rdx
lea rsi, [rcx + r10]
nop dword [rax]
movzx edx, byte [rdi + rsi]
movzx ecx, byte [rdi]
lea rdi, [rdi + 1]
cmp dl, cl
jne 0x180003231
test dl, dl
jne 0x1800031c0
lea rax, [r9 + r9*4]
lea rcx, [r10 + rax*8]
mov eax, dword [rbp + 0xc10]
add eax, 0x1000
cmp dword [rcx + 8], eax
jb 0x180003202
mov eax, dword [rcx + 0xc]
mov r14d, 1
mov rcx, qword [rbp + 0xc20]
add eax, 0x1000
mov dword [rcx], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14d, r14d
jne 0x180003242
lea rsi, [0x18001a888]
lea rdx, [rbp + 0x160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180002ee0
jmp 0x180003299
inc r8d
inc r9
cmp r8d, r11d
jl 0x180003190
jmp 0x180003202
test r13, r13
je 0x180003293
lea rcx, [rbp + 0x18c]
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x180003250
lea rax, [rbp + 0x18c]
sub rcx, rax
sar rcx, 1
cmp rcx, 0x104
ja 0x18000328e
pushfq
pop rax
btr rax, 0xa
push rax
popfq
add rcx, rcx
lea rsi, [rbp + 0x18c]
mov rdi, r13
rep movsb byte [rdi], byte [rsi]
jmp 0x180003293
mov word [r13], r15w
mov r15d, 1
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r14, qword [rsp + 0xcd0]
mov rbx, qword [rsp + 0xd18]
mov rdi, qword [rsp + 0xcd8]
mov eax, r15d
add rsp, 0xce0
pop r15
pop r13
pop r12
pop rsi
pop rbp
ret