Function at 0x180001070
Capabilities:
Parse pe header

Disassembly:
mov r11, rsp
push rbx
push r14
sub rsp, 0x78
mov rax, qword [0x180006008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rdx
mov r14, rcx
test rcx, rcx
je 0x180001359
test rdx, rdx
je 0x180001359
xorps xmm0, xmm0
mov qword [r11 - 0x18], rdi
movups xmmword [rdx], xmm0
mov qword [r11 + 0x18], rbp
movups xmmword [rdx + 0x10], xmm0
mov qword [r11 + 0x20], rsi
movups xmmword [rdx + 0x20], xmm0
movups xmmword [rdx + 0x30], xmm0
mov edx, 0x2e
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
mov rdi, rax
test rax, rax
je 0x18000134f
lea rdx, str..vbs
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov rbp, 0xffffffffffffffff
lea esi, [rbp + 4]
test eax, eax
jne 0x180001100
mov dword [rbx + 0x18], 5
mov dword [rbx + 0x1c], ebp
jmp 0x180001178
lea rdx, [0x180004580]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x180001120
mov dword [rbx + 0x18], 6
mov dword [rbx + 0x1c], ebp
jmp 0x180001178
lea rdx, str..xsl
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x180001140
mov dword [rbx + 0x18], 7
mov dword [rbx + 0x1c], ebp
jmp 0x180001178
lea rdx, str..exe
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x18000115d
mov dword [rbx + 0x18], 4
jmp 0x180001178
lea rdx, str..dll
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x18000134f
mov dword [rbx + 0x18], esi
lea rdx, [rsp + 0x30]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
test eax, eax
je 0x180001191
mov esi, 1
jmp 0x1800011b0
cmp dword [rsp + 0x44], 0
jne 0x18000119f
mov esi, 2
jmp 0x1800011b0
xor edx, edx
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open]
mov dword [rbx], eax
test eax, eax
jns 0x1800011dc
mov eax, esi
mov rsi, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180003040
add rsp, 0x78
pop r14
pop rbx
ret
movsxd r14, dword [rsp + 0x44]
mov ecx, eax
mov qword [rbx + 8], r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rax
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x180001241
xor r9d, r9d
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 5]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
jne 0x18000123e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbp
mov rbp, rax
mov qword [rbx + 0x10], rbp
mov eax, dword [rbx + 0x18]
cmp eax, esi
je 0x180001257
xor edi, edi
cmp eax, 4
jne 0x180001348
mov eax, 0x5a4d
cmp word [rbp], ax
jne 0x180001332
cmp dword [rbp + 0x3c], 0
je 0x180001332
movsxd rdx, dword [rbp + 0x3c]
add rdx, rbp
cmp dword [rdx], 0x4550
jne 0x180001332
movzx r8d, word [rdx + 4]
mov r9d, 0x14c
cmp r8w, r9w
mov eax, 0x78
mov ecx, 0x88
cmovne eax, ecx
add rax, rdx
je 0x180001332
mov esi, dword [rax + 0x70]
xor eax, eax
movzx ecx, word [rdx + 0x16]
and ecx, 0x2000
cmp r8w, r9w
setne al
xor edi, edi
inc eax
mov dword [rbx + 0x1c], eax
test esi, esi
je 0x180001348
neg ecx
lea rbp, [rbx + 0x20]
lea r8d, [rdi + 0x1f]
mov rcx, rbp
sbb eax, eax
lea rdx, str.v4.0.30319
add eax, 2
mov dword [rbx + 0x18], eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov rbx, qword [rbx + 0x10]
mov edx, esi
mov rcx, rbx
call section..text
cmp eax, 0xffffffff
je 0x180001348
mov eax, eax
mov edx, dword [rax + rbx + 8]
test edx, edx
je 0x180001348
mov rcx, rbx
call section..text
cmp eax, 0xffffffff
je 0x180001348
mov edx, eax
lea r8d, [rdi + 0x1f]
add rdx, 0x10
mov rcx, rbp
add rdx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov eax, edi
jmp 0x1800011b2
mov edi, 4
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [rbx]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
mov eax, edi
jmp 0x1800011b2
mov eax, 4
jmp 0x1800011b2
mov eax, 0xa
jmp 0x1800011c7