Function at 0x14004f700
Capabilities:
Get system firmware table

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140064008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r14d, r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov ebp, eax
test eax, eax
jne 0x14004f76e
mov qword [rdi], r14
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], al
lea r8d, [r14 + 0x36]
lea rdx, [0x14005a5f0]
mov rcx, rdi
call fcn.14004e770
jmp 0x14004f85c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r14
cmp rbp, 0x1000
jb 0x14004f7b1
lea rcx, [rbp + 0x27]
cmp rcx, rbp
jbe 0x14004f91e
call fcn.140050cc4
mov rcx, rax
test rax, rax
je 0x14004f917
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14004f7b9
mov rcx, rbp
call fcn.140050cc4
mov qword [rsp + 0x28], rax
lea rbx, [rax + rbp]
mov qword [rsp + 0x38], rbx
mov r8, rbp
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x30], rbx
mov r9d, ebp
mov r8, qword [rsp + 0x28]
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
cmp rbp, 0x44
ja 0x14004f881
mov qword [rdi], r14
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov r8d, 0x35
lea rdx, str.Erreur_lors_de_la_r
mov rcx, rdi
call fcn.14004e770
nop
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14004f85c
mov rdx, qword [rsp + 0x38]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f857
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004f917
call fcn.1400508a8
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140050630
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov rax, qword [rsp + 0x28]
mov r9d, dword [rax + 0x40]
lea r8, str._08X
mov edx, 9
lea rcx, [rsp + 0x40]
call fcn.14004f3e0
mov qword [rdi], r14
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x14004f8c0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14004e770
nop
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14004f85c
mov rdx, qword [rsp + 0x38]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f857
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004f857
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004c320
int3

Function at 0x1400513c4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005140e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005140e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005140e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005140e
cmp dword [rcx + 0x84], 0xe
jbe 0x14005140e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140051410
xor al, al
add rsp, 0x28
ret