Function at 0x140050190
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 0x1400501fe
mov qword [rdi], r14
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], al
lea r8d, [r14 + 0x36]
lea rdx, [0x14005a740]
mov rcx, rdi
call fcn.14004f200
jmp 0x1400502ec
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r14
cmp rbp, 0x1000
jb 0x140050241
lea rcx, [rbp + 0x27]
cmp rcx, rbp
jbe 0x1400503ae
call fcn.140051774
mov rcx, rax
test rax, rax
je 0x1400503a7
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140050249
mov rcx, rbp
call fcn.140051774
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 0x140050311
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.14004f200
nop
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1400502ec
mov rdx, qword [rsp + 0x38]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400502e7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400503a7
call fcn.140051358
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400510e0
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.14004fe70
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 0x140050350
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14004f200
nop
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1400502ec
mov rdx, qword [rsp + 0x38]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400502e7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400502e7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004cdb0
int3

Function at 0x140051e74
Capabilities:
Parse pe header

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