joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140056ee0
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov r15, qword [0x1400f6380]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov ebx, 0xc000000d
test r9d, r9d
jne 0x140057014
mov rdi, r8
mov rsi, rdx
call fcn.1400614a0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov rcx, rax
call fcn.14006a090
mov ebx, 0xc0000022
test al, al
je 0x140057014
call fcn.1400615c0
test rax, rax
je 0x140057014
mov r14, rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x1000
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x8000004
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
lea rcx, [rsp + 0x50]
mov rdx, rax
call fcn.14001f570
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140056fbc
mov qword [rsp + 0x20], 0x1000
mov edx, 6
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x50]
mov ebx, 0xc000000d
add rcx, 1
cmp rcx, 2
jae 0x14005703c
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140056fdb
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rsi, qword [rsp + 0x50]
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140057014
mov rdi, qword [rsp + 0xe8]
call fcn.14001f300
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov r8, rdi
mov r9, rax
call fcn.1400418f0
mov rcx, qword [rsp + 0x50]
call fcn.140041880
mov rax, qword [rsp + 0xb8]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x1400570db
mov eax, ebx
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140056fcb
mov r8d, 0x1000
mov rdx, rdi
call sub.ntdll.dll_memcpy
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0xb0], 0
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, r14
call fcn.1400654d0
mov qword [rsp + 0x38], rsi
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x38]
lea r9, [rsp + 0x30]
mov rcx, rdi
mov edx, 0x1e
call fcn.1400570f0
mov ebx, 0xc0000022
test eax, eax
jne 0x140056fcb
mov ebx, dword [rsp + 0x68]
jmp 0x140056fcb
call fcn.140072349
int3
Function at 0x14005aa80
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x300
mov r15, r9
mov rbx, r8
mov rdi, rdx
mov r13, rcx
mov r14, qword [rsp + 0x390]
mov rsi, qword [rsp + 0x380]
mov r12, qword [0x1400f6380]
mov rax, qword [r12]
xor rax, rsp
mov qword [rsp + 0x2f8], rax
mov qword [rsp + 0x88], rdx
mov qword [rsp + 0x80], r8
call fcn.1400614a0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov rcx, rax
call fcn.14006a0b0
test al, al
je 0x14005ab4d
mov rax, qword [rsp + 0x388]
mov rcx, qword [rsp + 0x378]
mov edx, dword [rsp + 0x370]
mov r8d, dword [rsp + 0x368]
mov r9, qword [rsp + 0x360]
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r8d
mov rcx, rdi
mov rdx, rbx
mov r8, r15
call r13
mov ecx, eax
mov eax, 1
test ecx, ecx
jne 0x14005acce
lea rcx, [0x1400fc42e]
mov rdx, rdi
call fcn.14001c490
call fcn.1400614a0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov rcx, rax
call fcn.14006a090
mov ecx, eax
xor eax, eax
test cl, cl
je 0x14005acce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, 0x18
mov rcx, r14
mov r8d, 1
call fcn.140061990
test al, al
je 0x14005acc4
call fcn.1400615c0
test rax, rax
je 0x14005acc4
mov rsi, rax
mov qword [rsp + 0x78], 0
lea rbx, [rsp + 0xf0]
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xffffffff
cmp eax, 0x102
ja 0x14005abe0
mov qword [rsp + 0x78], rbx
lea rbx, [rsp + 0x68]
mov rcx, rbx
mov rdx, rsi
call fcn.1400654d0
xorps xmm0, xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xe0], 0
mov dword [rsp + 0x58], 0x18
mov qword [rsp + 0x60], r14
lea rax, [rsp + 0x90]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x380]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x88]
lea r9, [rsp + 0x80]
mov rcx, rbx
mov edx, 0xd
call fcn.14005ad00
test eax, eax
je 0x14005ac87
mov cl, 1
jmp 0x14005acc0
mov ecx, dword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ecx, ecx
cmp dword [rsp + 0x98], 0
mov eax, 0
jne 0x14005acc0
mov rdx, qword [rsp + 0x88]
lea rcx, [0x1400fc42e]
call fcn.14001c700
mov eax, 1
xor ecx, ecx
test cl, cl
je 0x14005acce
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x2f8]
xor rcx, rsp
mov rdx, qword [r12]
cmp rdx, rcx
jne 0x14005acf5
add rsp, 0x300
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140072349
int3
Function at 0x14005c110
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov edi, ecx
mov r12, qword [0x1400f6380]
mov rax, qword [r12]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea eax, [rdi - 5]
mov ebp, 5
cmp eax, 1
ja 0x14005c2d0
mov rbx, r8
mov r15, rdx
mov rbp, qword [rsp + 0x130]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0xb0], 0
mov dword [rsp + 0x50], 0x68
test byte [r9], 1
je 0x14005c1a4
mov r9, qword [r9 + 0x10]
jmp 0x14005c1a8
add r9, 2
mov rcx, r9
call qword [sym.imp.mozglue.dll__wcsdup]
mov r14, rax
movzx eax, byte [rbp]
test al, 1
je 0x14005c1c6
mov rax, qword [rbp + 8]
mov rbp, qword [rbp + 0x10]
jmp 0x14005c1cd
add rbp, 2
shr rax, 1
mov rsi, qword [rsp + 0x138]
test rax, rax
cmove rbp, rax
test byte [rbx], 1
je 0x14005c1e7
mov rbx, qword [rbx + 0x10]
jmp 0x14005c1eb
add rbx, 2
mov r15, qword [r15]
mov qword [rsp + 0x48], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebp, 5
test eax, eax
je 0x14005c2c3
cmp edi, 6
mov r13d, 0x1fffff
mov ebx, 0x101c01
cmove ebx, r13d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rsi]
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0
mov rcx, rax
mov r8, r15
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14005c2fa
cmp edi, 6
mov edi, 0x100c43
cmove edi, r13d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rsi + 8]
add rsi, 8
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0
mov rcx, rax
mov r8, r15
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea ebp, [rcx + rcx*4]
test r14, r14
je 0x14005c2d0
mov rcx, r14
call sub.mozglue.dll_free
mov rax, qword [rsp + 0xc0]
xor rax, rsp
mov rcx, qword [r12]
cmp rcx, rax
jne 0x14005c30b
mov eax, ebp
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
jne 0x14005c2c8
jmp 0x14005c2d0
call fcn.140072349
int3
Function at 0x14005c320
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rax, r8
mov r8, rdx
mov rdi, rcx
mov rsi, qword [rsp + 0x90]
mov edx, dword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
mov qword [rsi], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], r9
xor edx, edx
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
je 0x14005c3b4
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rdi]
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea eax, [rcx + rcx*4]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
add rsp, 0x40
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x14005e8c0
Capabilities:
Compare security identifiers

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rbp, qword [0x1400f6380]
mov rax, qword [rbp]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp byte [rcx + 0x6c], 0
je 0x14005e93b
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x38], 0
mov rcx, qword [rcx + 0x60]
lea r8, [rsp + 0x38]
mov edx, 2
call fcn.14006c780
mov r15, qword [rsp + 0x38]
test eax, eax
je 0x14005e945
mov ebx, eax
mov qword [rsp + 0x38], 0
test r15, r15
je 0x14005ea91
mov rcx, r15
call fcn.1400c04c0
jmp 0x14005ea91
mov ebx, 0x3f0
jmp 0x14005ea91
xor ebx, ebx
test r15, r15
je 0x14005ea91
mov qword [rsp + 0x28], rsi
cmp dword [r15], 0
je 0x14005ea80
lea rsi, [r15 + 8]
mov rax, qword [rsp + 0x28]
add rax, 0x30
mov qword [rsp + 0x30], rax
xor r13d, r13d
mov rbx, qword [sym.imp.ADVAPI32.dll_EqualSid]
movabs rbp, 0xf0f0f0f0f0f0f0f1
jmp 0x14005e9ad
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
call fcn.14005f450
mov rbx, rbp
mov rbp, rsi
mov rsi, r12
add r13, 1
mov eax, dword [r15]
cmp r13, rax
jae 0x14005ea80
mov r14, r13
shl r14, 4
test dword [rsi + r14 + 8], 0xc0000020
jne 0x14005e99d
add r14, rsi
test rdi, rdi
je 0x14005ea1d
mov rax, qword [rdi]
cmp qword [rdi + 8], rax
je 0x14005ea1d
mov r12d, 1
xor ecx, ecx
nop dword [rax + rax]
mov rdx, rcx
shl rdx, 6
lea rcx, [rdx + rcx*4]
add rcx, rax
call fcn.140066940
mov rdx, qword [r14]
mov rcx, rax
call rbx
test eax, eax
jne 0x14005e99d
mov ecx, r12d
mov rax, qword [rdi]
mov rdx, qword [rdi + 8]
sub rdx, rax
sar rdx, 2
imul rdx, rbp
add r12d, 1
cmp rdx, rcx
ja 0x14005e9e0
mov r12, rsi
mov rsi, rbp
mov rbp, rbx
mov rdx, qword [r14]
lea rbx, [rsp + 0x38]
mov rcx, rbx
call fcn.1400661c0
mov rdx, qword [rsp + 0x28]
mov rax, qword [rdx + 0x38]
cmp rax, qword [rdx + 0x40]
jae 0x14005e987
mov ecx, dword [rsp + 0x78]
mov dword [rax + 0x40], ecx
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmm2, xmmword [rsp + 0x58]
movups xmm3, xmmword [rsp + 0x68]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
add rax, 0x44
mov qword [rdx + 0x38], rax
jmp 0x14005e994
mov rcx, r15
call fcn.1400c04c0
mov rbp, qword [0x1400f6380]
xor ebx, ebx
mov rax, qword [rsp + 0x80]
xor rax, rsp
mov rcx, qword [rbp]
cmp rcx, rax
jne 0x14005eabb
mov eax, ebx
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140072349
int3

Function at 0x140064980
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x28
mov edx, 4
call sub.ADVAPI32.dll_SystemFunction036
test al, al
setne al
add rsp, 0x28
ret
Function at 0x140068e60
Capabilities:
Terminate process

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
call fcn.140042e70
test al, al
je 0x140068e91
mov rcx, qword [rsi]
mov edx, 0x32
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsi]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsi + 0x38]
mov qword [rsi + 0x38], 0
test rdi, rdi
je 0x140068eb2
mov rcx, rdi
call fcn.140065810
mov rcx, rdi
call fcn.1400c0490
mov rcx, qword [rsi + 0x58]
test rcx, rcx
je 0x140068ec4
mov qword [rsi + 0x60], rcx
call fcn.1400c0490
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x50], 0
test rcx, rcx
je 0x140068eda
call sub.mozglue.dll_free
mov rdi, qword [rsi + 0x38]
mov qword [rsi + 0x38], 0
test rdi, rdi
je 0x140068efb
mov rcx, rdi
call fcn.140065810
mov rcx, rdi
call fcn.1400c0490
mov rdi, qword [rsi + 0x28]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140068f37
lea rbx, [rsi + 0x28]
mov r14, qword [rsp + 0x48]
call fcn.14001f300
mov rcx, rdi
mov rdx, rbx
mov r8, r14
mov r9, rax
call fcn.1400418f0
mov rcx, qword [rbx]
call fcn.140041880
mov qword [rbx], 0
mov rdi, qword [rsi + 0x20]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140068f73
lea rbx, [rsi + 0x20]
mov r14, qword [rsp + 0x48]
call fcn.14001f300
mov rcx, rdi
mov rdx, rbx
mov r8, r14
mov r9, rax
call fcn.1400418f0
mov rcx, qword [rbx]
call fcn.140041880
mov qword [rbx], 0
mov rdi, qword [rsi + 0x18]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140068faf
lea rbx, [rsi + 0x18]
mov r14, qword [rsp + 0x48]
call fcn.14001f300
mov rcx, rdi
mov rdx, rbx
mov r8, r14
mov r9, rax
call fcn.1400418f0
mov rcx, qword [rbx]
call fcn.140041880
mov qword [rbx], 0
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140042d40
Function at 0x1400698f0
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.140042e70
test al, al
je 0x140069912
mov rcx, qword [rsi]
xor edx, edx
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x20
pop rsi
ret
Function at 0x14006c340
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, r9
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov r9d, dword [rsp + 0xa0]
mov r15, qword [0x1400f6380]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rbp, [rsp + 0x34]
mov qword [rsp + 0x20], rbp
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14006c3dc
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov rdx, rdi
mov r8, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r14d, eax
mov r12, qword [rsp + 0x28]
mov r9d, dword [rsp + 0x34]
mov qword [rsp + 0x20], rbp
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14006c3dc
test r14d, r14d
setne cl
cmp r12, rsi
sete al
and al, cl
jmp 0x14006c3de
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
mov rdx, qword [r15]
cmp rdx, rcx
jne 0x14006c3fd
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.140072349
int3
Function at 0x14006c5a0
Capabilities:
Patch process command line

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov rbx, rcx
mov r14, qword [0x1400f6380]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0xa8], rax
cmp qword [0x14012fd30], 0
je 0x14006c6ea
cmp qword [0x14012fd30], 0
je 0x14006c737
mov rcx, qword [0x14012fd30]
lea rdx, [0x1400fd200]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14006c73d
mov rsi, rax
xorps xmm6, xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
mov qword [rsp + 0x20], 0
xor edi, edi
lea r8, [rsp + 0x70]
mov rcx, rbx
xor edx, edx
mov r9d, 0x30
call rax
test eax, eax
jne 0x14006c740
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x78]
lea rsi, [rsp + 0x38]
mov qword [rsp + 0x20], rsi
lea r8, [rsp + 0x40]
mov r9d, 0x28
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
xor edi, edi
test eax, eax
je 0x14006c740
cmp qword [rsp + 0x38], 0x28
jne 0x14006c740
mov rdi, qword [rsp + 0x50]
mov word [rsp + 0x36], 0
mov qword [rsp + 0x20], rsi
lea r8, [rsp + 0x36]
mov r9d, 2
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov cl, byte [rsp + 0x36]
mov dl, byte [rsp + 0x37]
xor cl, 0x4d
xor dl, 0x5a
xor ebx, ebx
or dl, cl
cmovne rdi, rbx
cmp qword [rsp + 0x38], 2
cmovne rdi, rbx
test eax, eax
cmove rdi, rbx
jmp 0x14006c740
lea rcx, [0x1400fd220]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
mov rax, qword [0x1400f9180]
add rax, 0x10
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rdi
lea rcx, [rsp + 0x70]
call fcn.140041350
test al, al
jne 0x14006c71e
int3
xor eax, eax
lock cmpxchg qword [0x14012fd30], rdi
cmp qword [0x14012fd30], 0
jne 0x14006c5e8
int3
int3
mov rax, qword [rsp + 0xa8]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x14006c76b
mov rax, rdi
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140072349
int3
Function at 0x14006d010
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, qword [0x1400f6380]
mov rax, qword [rsi]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rcx, str.MOZ_ENABLE_HANDLE_VERIFIER
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
je 0x14006d144
movaps xmm0, xmmword [str.kernel32]
movaps xmmword [rsp + 0x30], xmm0
movabs rax, 0x6c006c0064002e
mov qword [rsp + 0x40], rax
mov word [rsp + 0x48], 0
cmp qword [0x14012fb30], 0
jne 0x14006d07b
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14012fb30], rax
mov qword [rsp + 0x28], 0
lea rax, [0x14012fb08]
mov qword [rsp + 0x30], rax
lea rdi, [0x14012fb18]
mov qword [rsp + 0x38], rdi
lea rax, [0x1400fd4ab]
mov qword [rsp + 0x40], rax
lea rax, [0x14006d170]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x50], 0
lea rcx, [0x14012fb10]
lea rdx, [0x14006d1f0]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14006d144
cmp qword [rsp + 0x28], 0
je 0x14006d144
mov qword [rsp + 0x28], 0
lea rax, [0x14012fb98]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rdi
lea rax, [0x1400fd4b7]
mov qword [rsp + 0x40], rax
lea rax, [0x14006d190]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x50], 0
lea rcx, [0x14012fba0]
lea rdx, [0x140072000]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14006d144
cmp qword [rsp + 0x28], 0
jne 0x14006d149
call fcn.140041930
mov rax, qword [rsp + 0x60]
xor rax, rsp
mov rcx, qword [rsi]
cmp rcx, rax
jne 0x14006d160
add rsp, 0x68
pop rdi
pop rsi
ret
call fcn.140072349
int3
Function at 0x14006f730
Capabilities:
Get system information on windows

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov r14, qword [0x1400f6380]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov bpl, 1
test dl, dl
je 0x14006f819
mov rbx, qword [rcx + 8]
movsx rdi, dl
mov al, byte [0x14012e1f0]
test al, al
je 0x14006f83b
add rdi, rbx
mov esi, dword [0x140130270]
mov rax, rbx
shr rax, 0x20
je 0x14006f78c
mov rax, rbx
xor edx, edx
div rsi
mov rcx, rax
jmp 0x14006f794
mov eax, ebx
xor edx, edx
div esi
mov ecx, eax
mov rax, rdi
shr rax, 0x20
je 0x14006f7ac
mov rax, rdi
xor edx, edx
div rsi
cmp rcx, rax
jne 0x14006f7b7
jmp 0x14006f819
mov eax, edi
xor edx, edx
div esi
cmp rcx, rax
je 0x14006f819
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x30
lea r9, [rsp + 0x30]
mov rcx, 0xffffffffffffffff
mov rdx, rdi
xor r8d, r8d
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x14006f809
cmp qword [rsp + 0x60], 0
je 0x14006f817
cmp dword [rsp + 0x40], 0
je 0x14006f817
cmp dword [rsp + 0x50], 0x1000
jne 0x14006f817
cmp dword [rsp + 0x54], 1
setne bpl
jmp 0x14006f819
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
xor ebp, ebp
mov rax, qword [rsp + 0x68]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x14006f836
mov eax, ebp
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.140072349
lea rcx, [0x14012e1f0]
call fcn.1400c0194
test eax, eax
je 0x14006f76d
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x34]
mov dword [0x140130270], eax
lea rcx, [0x14012e1f0]
call fcn.1400c0265
jmp 0x14006f76d
Function at 0x14006f880
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebp, r9d
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [0x1400f6380]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov al, byte [0x14012e1f8]
test al, al
je 0x14006f968
mov ebx, dword [0x140130274]
mov dword [rsp + 0x20], ebp
lea rcx, [rsp + 0x30]
mov rdx, r14
mov r8d, ebx
mov r9, rdi
call fcn.14000ef90
mov al, byte [0x14012e1a0]
test al, al
je 0x14006f9a2
lea rcx, [0x14012fbb8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x14012fbe0]
lea rdx, [rsp + 0x30]
call fcn.14006f9f0
test rax, rax
je 0x14006f929
mov rdi, rax
lea r8, [rsp + 0x30]
mov rcx, rax
mov edx, ebx
call fcn.140070040
test eax, eax
je 0x14006f929
mov qword [rsi], r14
mov qword [rsi + 8], rdi
mov byte [rsi + 0x10], 1
jmp 0x14006f937
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
lea rcx, [0x14012fbb8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rsp + 0x60]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x14006f9e6
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x14012e1f8]
call fcn.1400c0194
test eax, eax
je 0x14006f8b8
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x58]
mov dword [0x140130274], eax
lea rcx, [0x14012e1f8]
call fcn.1400c0265
jmp 0x14006f8b8
lea rcx, [0x14012e1a0]
call fcn.1400c0194
test eax, eax
je 0x14006f8e3
lea rcx, [0x14012fbb8]
mov edx, 0xfa0
mov r8d, 0x1000000
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
mov byte [0x140130138], 1
lea rcx, [0x14012e1a0]
call fcn.1400c0265
jmp 0x14006f8e3
call fcn.140072349
int3

Function at 0x140070040
Capabilities:
Get system information on windows

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov r14, qword [0x1400f6380]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x68], rax
test edx, edx
je 0x1400700c8
mov rsi, rcx
cmp qword [rcx], 0
jne 0x1400700c3
mov rdi, r8
mov ebp, edx
mov al, byte [0x14012e1f8]
test al, al
je 0x1400700ec
mov ecx, dword [0x140130274]
xor ebx, ebx
mov eax, ebp
xor edx, edx
div ecx
sub ecx, edx
test edx, edx
cmove ecx, edx
add ecx, ebp
mov dword [rsi + 8], ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, dword [rsi + 8]
mov qword [rsp + 0x28], rdi
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x38]
mov rcx, rsi
mov rdx, rax
call fcn.140070130
mov qword [rsi], rax
test rax, rax
je 0x1400700ca
mov ebx, dword [rsi + 8]
jmp 0x1400700ca
xor ebx, ebx
mov rax, qword [rsp + 0x68]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x1400700e7
mov eax, ebx
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.140072349
lea rcx, [0x14012e1f8]
call fcn.1400c0194
test eax, eax
je 0x140070078
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x60]
mov dword [0x140130274], eax
lea rcx, [0x14012e1f8]
call fcn.1400c0265
jmp 0x140070078