Function at 0x140003f30
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
mov rbx, r9
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov rbp, qword [0x1401054a8]
mov rax, qword [rbp]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov r15, qword [r8]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x60], 0
mov r13, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r13
mov r12, rax
call r13
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x438
lea r13, [rsp + 0x40]
mov rcx, r12
mov rdx, r15
mov r8, rax
mov r9, r13
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov dword [rsp + 0x68], 0
mov byte [rsp + 0x70], 0
mov byte [rsp + 0x74], 0
mov qword [rsp + 0x78], 0
lea rcx, [0x140105aac]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x78], rax
lea rax, [0x1400188f0]
mov qword [rsp + 0x20], rax
mov rcx, qword [0x1401061f0]
lea r9, [0x140105ac0]
mov rdx, rdi
mov r8, r13
call fcn.14000e500
test al, al
je 0x140004070
lea rax, [0x140017700]
mov qword [rsp + 0x20], rax
mov rcx, qword [0x1401061e0]
lea r9, str.LdrLoadDll
lea r8, [rsp + 0x40]
mov rdx, rdi
call fcn.14000e5d0
test al, al
je 0x14000408a
lea rcx, [rsp + 0xa0]
mov rdx, r14
mov r8, rdi
call fcn.140003be0
movzx eax, byte [rsp + 0xb0]
test al, al
je 0x1400040a4
mov byte [rsi + 0x10], al
movups xmm0, xmmword [rsp + 0xa0]
movups xmmword [rsi], xmm0
jmp 0x140004109
mov byte [rsi + 0x10], 1
lea rax, [0x1401055b0]
mov qword [rsi], rax
movabs rax, 0x8007050700000040
jmp 0x140004105
mov byte [rsi + 0x10], 1
lea rax, [0x1401055b0]
mov qword [rsi], rax
movabs rax, 0x8007050700000046
jmp 0x140004105
lea rcx, [0x140105aac]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
and rax, 0xfffffffffffffffc
je 0x1400040ed
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400040ed
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400040ed
movzx edx, word [rax + rcx + 0x18]
cmp edx, 0x20b
jne 0x1400040ed
mov ecx, dword [rax + rcx + 0x50]
cmp rcx, 0x148
jae 0x14000417a
mov byte [rsi + 0x10], 1
lea rax, [0x1401055b0]
mov qword [rsi], rax
movabs rax, 0x800700c100000060
mov qword [rsi + 8], rax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140004122
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000413b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000414b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0xd0]
xor rax, rsp
mov rcx, qword [rbp]
cmp rcx, rax
jne 0x1400043fe
mov rax, rsi
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [rdi + 0x10]
test rbx, rbx
je 0x1400041b4
lea r8, [0x140105ade]
lea rcx, [rsp + 0x80]
xor r9d, r9d
call fcn.14000e6a0
mov r14, qword [rsp + 0x80]
mov r15, qword [rsp + 0x88]
movzx eax, byte [rsp + 0x90]
jmp 0x140004206
add rcx, rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rcx
mov byte [rsp + 0x90], 1
lea r8, [0x140105ade]
lea rcx, [rsp + 0xb8]
lea r9, [rsp + 0x80]
call fcn.14000e6a0
mov r14, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xc0]
movzx eax, byte [rsp + 0xc8]
mov r15, rbx
test al, al
je 0x14000429d
shl r14, 3
lea rcx, [rsp + 0xb8]
mov rdx, rdi
call fcn.14000e3b0
mov rax, qword [rdi + 0x30]
mov rdx, r15
test rax, rax
je 0x14000424d
mov rdx, r15
cmp qword [rdi + 0x10], r15
ja 0x14000424d
mov rdx, r15
cmp qword [rdi + 0x20], r15
jb 0x14000424d
mov rcx, r15
sub rcx, qword [rdi + 8]
add rax, rcx
mov rdx, rax
mov rcx, qword [rdi]
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x90], rcx
lea r12, [rsp + 0x98]
mov qword [rsp + 0x98], 0
mov qword [rsp + 0x20], r12
mov r8, r14
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1400042ba
mov ecx, dword [rsp + 0x9c]
jmp 0x1400042d5
mov byte [rsi + 0x10], 1
lea rax, [0x1401055b0]
mov qword [rsi], rax
movabs rax, 0x8007000d00000078
jmp 0x140004105
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x9c], ecx
test ecx, ecx
js 0x1400043d7
mov qword [rsp + 0x20], r14
lea rcx, [rsp + 0xb8]
mov rdx, rdi
mov r8, r15
mov r9, rbx
call fcn.14000e2d0
movzx ebx, byte [rsp + 0xc8]
test bl, bl
je 0x140004313
movups xmm0, xmmword [rsp + 0xb8]
movups xmmword [rsi], xmm0
mov byte [rsi + 0x10], 1
cmp dword [rsp + 0x9c], 0
js 0x140004348
mov rcx, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x80]
mov r8, qword [rsp + 0x88]
mov r9d, dword [rsp + 0x98]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test bl, bl
jne 0x140004109
mov ecx, dword [rsp + 0x140]
mov rdx, qword [0x1401061f8]
xor eax, eax
test byte [rdx], 2
sete al
xor eax, 3
mov dword [rsp + 0xb8], eax
add ecx, 0xfffffffc
cmp ecx, 7
ja 0x140004396
mov edx, 0x93
bt edx, ecx
jae 0x140004396
movsxd rcx, ecx
lea rdx, [0x140106154]
or eax, dword [rdx + rcx*4]
mov dword [rsp + 0xb8], eax
mov qword [rsp + 0x20], 4
mov r8, qword [0x1401061f8]
lea rcx, [rsp + 0x80]
lea r9, [rsp + 0xb8]
mov rdx, rdi
call fcn.14000e2d0
cmp byte [rsp + 0x90], 0
je 0x1400043f4
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rsi], xmm0
mov al, 1
jmp 0x1400043f6
mov byte [rsi + 0x10], 1
lea rax, [0x1401055b0]
mov qword [rsi], rax
mov dword [rsi + 8], 0x84
mov dword [rsi + 0xc], ecx
jmp 0x140004109
xor eax, eax
mov byte [rsi + 0x10], al
jmp 0x140004109
call fcn.1400d58e0
int3