Function at 0x180002cc0
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.180005e80
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 0x180002d2a
mov edx, 0x104
lea rcx, [rbp + 0x5c0]
call rax
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.180005e80
xor edx, edx
lea rcx, [rbp + 0x3b0]
mov r8d, 0x208
call fcn.180005e80
lea rcx, [rbp + 0x3b0]
nop word [rax + rax]
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x180002d60
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 0x180002d83
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 0x180002de2
lea rdi, [rbp + 0x3b0]
lea rdi, [rdi + rcx*2]
test rdi, rdi
je 0x180002de2
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 0x180002df0
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 0x180002e20
sub rdx, rsi
lea rax, [rcx + 1]
sar rdx, 1
dec rdx
add rax, rdx
cmp rax, 0x104
ja 0x180002e69
lea rdi, [rbp + 0x3b0]
lea rdi, [rdi + rcx*2]
test rdi, rdi
je 0x180002e69
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.180005e80
lea rdx, [rbp + 0x160]
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x180003292
mov qword [rsp + 0xd18], rbx
lea rsi, [0x18001a878]
mov qword [rsp + 0xcd0], r14
nop word [rax + rax]
lea rcx, [rbp + 0x18c]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x1800031f7
lea rcx, [rbp + 0x18c]
call fcn.180002970
test eax, eax
jne 0x1800031f7
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 0x180002f10
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 0x180002f31
lea rax, [rbp + 0x5c0]
sub rcx, rax
lea rax, [rdx + 1]
sar rcx, 1
dec rcx
add rax, rcx
cmp rax, 0x104
ja 0x180002f8d
lea rdi, [rsp + 0x50]
lea rdi, [rdi + rdx*2]
test rdi, rdi
je 0x180002f8d
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, [0x18001a878]
lea rcx, [rsp + 0x50]
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x180002f92
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 0x180002fb0
sub rdx, rsi
lea rax, [rcx + 1]
sar rdx, 1
dec rdx
add rax, rdx
cmp rax, 0x104
ja 0x180002ff7
lea rdi, [rsp + 0x50]
lea rdi, [rdi + rcx*2]
test rdi, rdi
je 0x180002ff7
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 0x180003000
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 0x180003021
lea rax, [rbp + 0x18c]
sub rdx, rax
lea rax, [rcx + 1]
sar rdx, 1
dec rdx
add rax, rdx
cmp rax, 0x104
ja 0x180003076
lea rdi, [rsp + 0x50]
lea rdi, [rdi + rcx*2]
test rdi, rdi
je 0x180003076
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 0x1800031f0
xor edx, edx
lea rcx, [rbp + 0x7d0]
mov r8d, 0x400
call fcn.180005e80
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 0x1800031e2
cmp dword [rsp + 0x40], 0x400
jne 0x1800031e2
mov eax, 0x5a4d
cmp word [rbp + 0x7d0], ax
jne 0x1800031e2
movsxd rax, dword [rbp + 0x80c]
cmp dword [rbp + rax + 0x7d0], 0x4550
jne 0x1800031e2
mov ecx, 0x2000
test word [rbp + rax + 0x7e6], cx
je 0x1800031e2
mov ecx, 0x8664
cmp word [rbp + rax + 0x7d4], cx
jne 0x1800031e2
movzx r11d, word [rbp + rax + 0x7d6]
lea r10, [rbp + rax + 0x8d8]
mov r8d, r15d
mov r9, r15
test r11d, r11d
je 0x1800031e2
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 0x1800031b3
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 0x180003211
test dl, dl
jne 0x1800031a0
lea rax, [r9 + r9*4]
lea rcx, [r10 + rax*8]
mov eax, dword [rbp + 0xc10]
add eax, 0x1000
cmp dword [rcx + 8], eax
jb 0x1800031e2
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 0x180003222
lea rsi, [0x18001a878]
lea rdx, [rbp + 0x160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180002ec0
jmp 0x180003279
inc r8d
inc r9
cmp r8d, r11d
jl 0x180003170
jmp 0x1800031e2
test r13, r13
je 0x180003273
lea rcx, [rbp + 0x18c]
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x180003230
lea rax, [rbp + 0x18c]
sub rcx, rax
sar rcx, 1
cmp rcx, 0x104
ja 0x18000326e
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 0x180003273
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