Function at 0x140012660
Capabilities:
Query environment variable
Terminate process

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rbp], rax
xor r14d, r14d
mov dword [rcx + 0x1c], 4
mov rdi, rcx
mov qword [rcx], r14
lea rax, [rcx + 0x20]
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], rax
lea r13, [rcx + 0x78]
lea rax, [rcx + 0x50]
mov dword [rcx + 0x18], r14d
mov qword [rcx + 0x40], rax
lea rbx, [r14 - 1]
mov qword [rcx + 0x48], r14
mov r12, r8
mov qword [rcx + 0x50], r14
mov qword [rcx + 0x58], 1
mov qword [rcx + 0x68], r13
mov qword [rcx + 0x70], r14
mov eax, dword [rdx]
mov rcx, qword [r8]
mov dword [rdi + 0x88], eax
mov qword [rdi + 0x90], rcx
mov qword [rsp + 0x30], rdx
lea rdx, [0x140143cd0]
mov qword [rdi + 0x78], rdx
mov rax, qword [r8]
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
test rcx, rcx
je 0x14001271b
mov rax, rbx
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], r14b
jne 0x140012710
jmp 0x14001271e
mov rax, r14
mov qword [rsp + 0x28], rax
lea rcx, str.LLVM_DISABLE_CRASH_REPORT
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [0x1401744a8], xmm0
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140012753
mov ecx, 0x8003
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov byte [0x14016e224], 1
lea rdx, [0x140026dd0]
mov ecx, 0x16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_signal]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_abort_behavior]
mov edx, 2
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_abort_behavior]
mov ecx, 0x8003
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_error_mode]
call fcn.140026de0
lea rcx, [0x1401744d0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [r12]
mov rdx, qword [rax]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], 0xf
inc rbx
cmp byte [rdx + rbx], r14b
jne 0x1400127c1
mov r8, rbx
lea rcx, [rsp + 0x58]
call fcn.140008270
mov r8d, 2
lea rdx, [0x140142e58]
lea rcx, [rsp + 0x58]
call fcn.1400081b0
lea rcx, [rsp + 0x58]
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmm0, xmmword [rax + 0x10]
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
movups xmmword [rsp + 0x38], xmm0
mov byte [rax], r14b
movups xmmword [rbp - 0x70], xmm0
call fcn.140005ef0
movups xmm1, xmmword [rsp + 0x38]
lea r15, [rbp - 0x80]
movdqa xmm0, xmm1
movq r14, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0x10
cmovae r15, qword [rsp + 0x20]
cmp r14, 0x10
jae 0x140012863
movups xmm0, xmmword [r15]
mov qword [rsp + 0x70], 0xf
movups xmmword [rsp + 0x58], xmm0
jmp 0x1400128e6
movabs rax, 0x7fffffffffffffff
mov rbx, r14
or rbx, 0xf
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x1400128ba
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140012a98
mov rcx, rax
call fcn.14013ecf8
mov rcx, rax
test rax, rax
je 0x1400128b3
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400128c8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x1400128c6
call fcn.14013ecf8
jmp 0x1400128c8
xor eax, eax
lea r8, [r14 + 1]
mov qword [rsp + 0x58], rax
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [rsp + 0x58]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], r14
lea rax, [0x140143ce0]
movaps xmmword [rbp - 0x60], xmm0
lea rcx, [rsp + 0x58]
movups xmm0, xmmword [rsp + 0x68]
mov qword [rbp - 0x40], rax
xor ebx, ebx
lea rax, [rbp - 0x40]
mov qword [rsp + 0x68], rbx
movaps xmmword [rbp - 0x50], xmm0
mov qword [rbp - 8], rax
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], bl
mov dword [rbp - 0x38], 1
call fcn.140005ef0
mov r8, rdi
lea rdx, [rdi + 0x68]
lea rcx, [rsp + 0x48]
call fcn.1400136a0
cmp dword [rax], ebx
je 0x1400129fd
movups xmm0, xmmword [rax]
lea ecx, [rbx + 0x18]
movups xmmword [rsp + 0x20], xmm0
call fcn.14013ecf8
movups xmm0, xmmword [rsp + 0x20]
lea rcx, [0x14014a570]
mov qword [rax], rcx
mov ecx, ebx
movups xmmword [rax + 8], xmm0
and rax, 0xfffffffffffffffe
setne cl
or rcx, rax
mov qword [rsp + 0x38], rcx
and rcx, 0xfffffffffffffffe
je 0x1400129fd
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x40]
call fcn.140010a50
lea rdx, [rbp - 0x60]
mov ebx, eax
lea rcx, [rsp + 0x58]
call fcn.140008c20
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movsd xmm0, qword [rax + 0x10]
movsd qword [rsp + 0x30], xmm0
call fcn.140008080
lea rcx, [rsp + 0x38]
mov r9, rax
call sym.hermesc.exe_public:_class_hermes::vm::CrashManager____ptr64___cdecl_hermes::vm::CrashManager::operator_class_hermes::vm::CrashManager_const____ptr64____ptr64
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140012640
movups xmm0, xmmword [rbp - 0x80]
lea r8, [rbp - 0x80]
mov rdx, r9
mov rcx, rax
movaps xmmword [rbp - 0x80], xmm0
movsd xmm0, qword [rsp + 0x30]
movsd qword [rbp - 0x70], xmm0
call fcn.140028950
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov eax, dword [rdi + 0x70]
cmp eax, dword [rdi + 0x74]
jb 0x140012a1d
mov r9d, 8
lea rcx, [rdi + 0x68]
xor r8d, r8d
mov rdx, r13
call fcn.14001d070
mov eax, dword [rdi + 0x70]
mov ecx, eax
mov rax, qword [rdi + 0x68]
mov qword [rax + rcx*8], rbx
inc dword [rdi + 0x70]
mov eax, dword [rdi + 0x70]
mov rcx, qword [rsp + 0x30]
dec eax
mov dword [rcx], eax
mov rcx, qword [rbp - 8]
mov rax, qword [rdi + 0x68]
mov qword [r12], rax
test rcx, rcx
je 0x140012a5c
mov r8, qword [rcx]
lea rax, [rbp - 0x40]
cmp rcx, rax
setne dl
call qword [r8 + 0x20]
mov qword [rbp - 8], rbx
lea rcx, [rbp - 0x60]
call fcn.140005ef0
lea rcx, [rbp - 0x80]
call fcn.140005ef0
mov rax, rdi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.14013e7c0
mov rbx, qword [rsp + 0x168]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140006120
int3