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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov r15, qword [0x1400e00c0]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov ebx, 0xc000000d
test r9d, r9d
jne 0x140043ba9
mov rdi, r8
mov rsi, rdx
call fcn.14004e8b0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov rcx, rax
call fcn.140057400
mov ebx, 0xc0000022
test al, al
je 0x140043ba9
call fcn.14004e9d0
test rax, rax
je 0x140043ba9
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.14000ad60
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140043aa7
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 + 0x58]
test rcx, rcx
je 0x140043b6b
mov rax, qword [rsp + 0x50]
mov ebx, 0xc000000d
add rax, 1
cmp rax, 2
jb 0x140043b63
mov r8d, 0x1000
mov rdx, rdi
call sub.api_ms_win_crt_private_l1_1_0.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.140052940
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.140043be0
mov ebx, 0xc0000022
test eax, eax
jne 0x140043b59
mov ebx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140043b70
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x140043b70
mov ebx, 0xc000000d
mov rsi, qword [rsp + 0x50]
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140043ba9
mov rdi, qword [rsp + 0xe8]
call fcn.14000aaf0
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov r8, rdi
mov r9, rax
call fcn.14002e980
mov rcx, qword [rsp + 0x50]
call fcn.14002e910
mov rax, qword [rsp + 0xb8]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x140043bcd
mov eax, ebx
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14005fbe0
int3
Function at 0x140047390
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 rdi, r8
mov rbx, rdx
mov r13, rcx
mov r14, qword [rsp + 0x390]
mov rsi, qword [rsp + 0x380]
mov r12, qword [0x1400e00c0]
mov rax, qword [r12]
xor rax, rsp
mov qword [rsp + 0x2f8], rax
mov qword [rsp + 0x88], rdx
mov qword [rsp + 0x80], r8
call fcn.14004e8b0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov rcx, rax
call fcn.140057420
test al, al
je 0x14004745b
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, rbx
mov rdx, rdi
mov r8, r15
call r13
mov edi, 1
test eax, eax
jne 0x140047597
lea rcx, [0x1400e3c3e]
mov rdx, rbx
call fcn.140007140
call fcn.14004e8b0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov rcx, rax
call fcn.140057400
xor edi, edi
test al, al
je 0x140047597
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, 0x18
mov rcx, r14
mov r8d, 1
call fcn.14004ec90
test al, al
je 0x14004758f
call fcn.14004e9d0
test rax, rax
je 0x14004758f
mov rsi, rax
mov qword [rsp + 0x78], 0
lea r15, [rsp + 0xf0]
mov ecx, 0x104
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xffffffff
cmp eax, 0x102
ja 0x1400474ec
mov qword [rsp + 0x78], r15
lea r15, [rsp + 0x68]
mov rcx, r15
mov rdx, rsi
call fcn.140052940
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, r15
mov edx, 0xd
call fcn.140047600
test eax, eax
je 0x1400475c0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x2f8]
xor rax, rsp
mov rcx, qword [r12]
cmp rcx, rax
jne 0x1400475f4
mov eax, edi
add rsp, 0x300
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, dword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
cmp dword [rsp + 0x98], 0
jne 0x140047597
mov rdx, qword [rsp + 0x88]
lea rcx, [0x1400e3c3e]
call fcn.1400073a0
mov edi, 1
jmp 0x140047597
call fcn.14005fbe0
int3
Function at 0x140048940
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 [0x1400e00c0]
mov rax, qword [r12]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea eax, [rdi - 7]
mov ebp, 5
cmp eax, 0xfffffffe
jb 0x140048b00
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 0x1400489d4
mov r9, qword [r9 + 0x10]
jmp 0x1400489d8
add r9, 2
mov rcx, r9
call qword [sym.imp.mozglue.dll__wcsdup]
mov r14, rax
movzx eax, byte [rbp]
test al, 1
je 0x1400489f6
mov rax, qword [rbp + 8]
mov rbp, qword [rbp + 0x10]
jmp 0x1400489fd
add rbp, 2
shr rax, 1
mov rsi, qword [rsp + 0x138]
test rax, rax
cmove rbp, rax
test byte [rbx], 1
je 0x140048a17
mov rbx, qword [rbx + 0x10]
jmp 0x140048a1b
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 0x140048af3
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 0x140048b2a
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 0x140048b00
mov rcx, r14
call sub.mozglue.dll_free
mov rax, qword [rsp + 0xc0]
xor rax, rsp
mov rcx, qword [r12]
cmp rcx, rax
jne 0x140048b3b
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 0x140048af8
jmp 0x140048b00
call fcn.14005fbe0
int3
Function at 0x140048b50
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 0x140048be4
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 0x14004b020
Capabilities:
Compare security identifiers

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rbx, qword [0x1400e00c0]
mov rax, qword [rbx]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp byte [rcx + 0x6c], 0
je 0x14004b094
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x28], 0
mov rcx, qword [rcx + 0x60]
lea r8, [rsp + 0x28]
mov edx, 2
call fcn.140059ac0
mov r14, qword [rsp + 0x28]
test eax, eax
je 0x14004b09e
mov ebp, eax
mov qword [rsp + 0x28], 0
test r14, r14
je 0x14004b181
mov rcx, r14
call fcn.1400aa8d0
jmp 0x14004b181
mov ebp, 0x3f0
jmp 0x14004b181
xor ebp, ebp
test r14, r14
je 0x14004b181
mov qword [rsp + 0x20], rsi
cmp dword [r14], 0
je 0x14004b170
lea rbp, [r14 + 8]
add qword [rsp + 0x20], 0x30
xor r12d, r12d
mov r15, qword [sym.imp.ADVAPI32.dll_EqualSid]
movabs rsi, 0xf0f0f0f0f0f0f0f1
jmp 0x14004b109
mov rdx, qword [rbx]
lea rbx, [rsp + 0x28]
mov rcx, rbx
call fcn.140053630
mov rcx, qword [rsp + 0x20]
mov rdx, rbx
call fcn.14004b1b0
add r12, 1
mov eax, dword [r14]
cmp r12, rax
jae 0x14004b170
mov rbx, r12
shl rbx, 4
test dword [rbp + rbx + 8], 0xc0000020
jne 0x14004b0fd
add rbx, rbp
test rdi, rdi
je 0x14004b0e0
mov rax, qword [rdi]
cmp qword [rdi + 8], rax
je 0x14004b0e0
xor r13d, r13d
nop
mov rcx, r13
shl rcx, 6
lea rcx, [rcx + r13*4]
add rcx, rax
call fcn.140053db0
mov rdx, qword [rbx]
mov rcx, rax
call r15
test eax, eax
jne 0x14004b0fd
add r13d, 1
mov rax, qword [rdi]
mov rcx, qword [rdi + 8]
sub rcx, rax
sar rcx, 2
imul rcx, rsi
cmp rcx, r13
ja 0x14004b130
jmp 0x14004b0e0
mov rcx, r14
call fcn.1400aa8d0
mov rbx, qword [0x1400e00c0]
xor ebp, ebp
mov rax, qword [rsp + 0x70]
xor rax, rsp
mov rcx, qword [rbx]
cmp rcx, rax
jne 0x14004b1a4
mov eax, ebp
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14005fbe0
int3

Function at 0x140051de0
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 0x1400561d0
Capabilities:
Terminate process

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
call fcn.14002fec0
test al, al
je 0x140056201
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 0x140056222
mov rcx, rdi
call fcn.140052c80
mov rcx, rdi
call fcn.1400aa8a0
mov rcx, qword [rsi + 0x58]
test rcx, rcx
je 0x140056234
mov qword [rsi + 0x60], rcx
call fcn.1400aa8a0
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x50], 0
test rcx, rcx
je 0x14005624a
call sub.mozglue.dll_free
mov rdi, qword [rsi + 0x38]
mov qword [rsi + 0x38], 0
test rdi, rdi
je 0x14005626b
mov rcx, rdi
call fcn.140052c80
mov rcx, rdi
call fcn.1400aa8a0
mov rdi, qword [rsi + 0x28]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400562a7
lea rbx, [rsi + 0x28]
mov r14, qword [rsp + 0x48]
call fcn.14000aaf0
mov rcx, rdi
mov rdx, rbx
mov r8, r14
mov r9, rax
call fcn.14002e980
mov rcx, qword [rbx]
call fcn.14002e910
mov qword [rbx], 0
mov rdi, qword [rsi + 0x20]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400562e3
lea rbx, [rsi + 0x20]
mov r14, qword [rsp + 0x48]
call fcn.14000aaf0
mov rcx, rdi
mov rdx, rbx
mov r8, r14
mov r9, rax
call fcn.14002e980
mov rcx, qword [rbx]
call fcn.14002e910
mov qword [rbx], 0
mov rdi, qword [rsi + 0x18]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14005631f
lea rbx, [rsi + 0x18]
mov r14, qword [rsp + 0x48]
call fcn.14000aaf0
mov rcx, rdi
mov rdx, rbx
mov r8, r14
mov r9, rax
call fcn.14002e980
mov rcx, qword [rbx]
call fcn.14002e910
mov qword [rbx], 0
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14002fd90
Function at 0x140056c60
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.14002fec0
test al, al
je 0x140056c82
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 0x140059680
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 [0x1400e00c0]
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 0x14005971c
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 0x14005971c
test r14d, r14d
setne cl
cmp r12, rsi
sete al
and al, cl
jmp 0x14005971e
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
mov rdx, qword [r15]
cmp rdx, rcx
jne 0x14005973d
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.14005fbe0
int3
Function at 0x1400598e0
Capabilities:
Patch process command line

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc0
movaps xmmword [rsp + 0xb0], xmm6
mov rsi, rcx
mov r14, qword [0x1400e00c0]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0xa8], rax
cmp qword [0x14012cec8], 0
je 0x140059a2c
cmp qword [0x14012cec8], 0
je 0x140059a79
mov rcx, qword [0x14012cec8]
lea rdx, str.NtQueryInformationProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140059a7f
mov rbx, 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, rsi
xor edx, edx
mov r9d, 0x30
call rax
test eax, eax
jne 0x140059a82
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 r15, [rsp + 0x38]
mov qword [rsp + 0x20], r15
lea r8, [rsp + 0x40]
mov r9d, 0x28
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
xor edi, edi
test eax, eax
je 0x140059a82
cmp qword [rsp + 0x38], 0x28
jne 0x140059a82
mov rbx, qword [rsp + 0x50]
mov word [rsp + 0x36], 0
mov qword [rsp + 0x20], r15
lea r8, [rsp + 0x36]
mov r9d, 2
mov rcx, rsi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
xor edi, edi
test eax, eax
je 0x140059a82
cmp qword [rsp + 0x38], 2
jne 0x140059a82
mov al, byte [rsp + 0x36]
mov cl, byte [rsp + 0x37]
xor al, 0x4d
xor cl, 0x5a
xor edx, edx
or cl, al
cmovne rbx, rdx
mov rdi, rbx
jmp 0x140059a82
lea rcx, [0x1400e4a30]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
mov rax, qword [0x1400e0950]
add rax, 0x10
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rdi
lea rcx, [rsp + 0x70]
call fcn.14002e430
test al, al
jne 0x140059a60
int3
xor eax, eax
lock cmpxchg qword [0x14012cec8], rdi
cmp qword [0x14012cec8], 0
jne 0x14005992a
int3
int3
mov rax, qword [rsp + 0xa8]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x140059aaf
mov rax, rdi
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14005fbe0
int3
Function at 0x14005a320
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, qword [0x1400e00c0]
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 0x14005a454
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 [0x14012cc00], 0
jne 0x14005a38b
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14012cc00], rax
mov qword [rsp + 0x28], 0
lea rax, [0x14012cbd8]
mov qword [rsp + 0x30], rax
lea rdi, [0x14012cbe8]
mov qword [rsp + 0x38], rdi
lea rax, [0x1400e4cbb]
mov qword [rsp + 0x40], rax
lea rax, [0x14005a480]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x50], 0
lea rcx, [0x14012cbe0]
lea rdx, [0x14005a500]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14005a454
cmp qword [rsp + 0x28], 0
je 0x14005a454
mov qword [rsp + 0x28], 0
lea rax, [0x14012cc68]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rdi
lea rax, [0x1400e4cc7]
mov qword [rsp + 0x40], rax
lea rax, [0x14005a4a0]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x50], 0
lea rcx, [0x14012cc70]
lea rdx, [0x14005fa50]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14005a454
cmp qword [rsp + 0x28], 0
jne 0x14005a459
call fcn.14002e9c0
mov rax, qword [rsp + 0x60]
xor rax, rsp
mov rcx, qword [rsi]
cmp rcx, rax
jne 0x14005a470
add rsp, 0x68
pop rdi
pop rsi
ret
call fcn.14005fbe0
int3
Function at 0x14005aad0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xe0
mov r15, qword [0x1400e00c0]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0xd8], rax
cmp byte [rcx + 0x14], 0
je 0x14005ab21
mov rsi, r9
mov r14, r8
mov r8, rdx
mov rdi, rcx
test byte [rcx + 0x10], 4
jne 0x14005ab31
lea rcx, [rsp + 0xc0]
mov rdx, rdi
call fcn.14005ad20
cmp byte [rdi + 0x14], 0
jne 0x14005ab4c
mov dword [0], 0x2f1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov qword [rsp + 0xc0], rdi
mov qword [rsp + 0xc8], r8
mov dword [rsp + 0xd0], 0
mov r8d, dword [rdi + 0x10]
and r8d, 1
shl r8, 0x1e
lea rcx, [rsp + 0x68]
mov rdx, rdi
mov r9d, r8d
call fcn.14005c9c0
mov al, byte [rsp + 0x78]
mov byte [rsp + 0xb0], al
movups xmm0, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0xa0], xmm0
test al, al
je 0x14005aca2
mov al, byte [0x14012af98]
test al, al
je 0x14005accd
lea rbx, [0x14012cc88]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x68]
call fcn.14005da90
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [rsp + 0x98], 0
je 0x14005aca2
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rsp + 0x48], xmm0
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x8c]
mov qword [rsp + 0x5c], rax
mov al, byte [rsp + 0x94]
mov byte [rsp + 0x64], al
mov dword [rsp + 0x70], 0
mov byte [rsp + 0x94], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0xc0]
lea r8, [rsp + 0xa0]
lea r9, [rsp + 0x38]
mov rcx, rdi
call fcn.14005af50
cmp qword [rsi], 0
setne sil
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14005ac70
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x14005ac70
lea r9, [rsp + 0x40]
mov edx, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp byte [rsp + 0x98], 0
je 0x14005aca4
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14005aca4
mov r8d, dword [rsp + 0x70]
test r8d, r8d
je 0x14005aca4
lea r9, [rsp + 0x70]
mov edx, dword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x14005aca4
xor esi, esi
mov rax, qword [rsp + 0xd8]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x14005acc8
mov eax, esi
add rsp, 0xe0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14005fbe0
lea rcx, [0x14012af98]
call fcn.1400aa594
test eax, eax
je 0x14005ab96
lea rcx, [0x14012cc88]
mov edx, 0xfa0
mov r8d, 0x1000000
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
mov byte [0x14012d0b8], 1
lea rcx, [0x14012af98]
call fcn.1400aa66b
jmp 0x14005ab96
Function at 0x14005c870
Capabilities:
Get system information on windows

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov r14, qword [0x1400e00c0]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov bpl, 1
test dl, dl
je 0x14005c95b
mov rbx, qword [rcx + 8]
movsx rdi, dl
mov al, byte [0x14012afe0]
test al, al
je 0x14005c97d
add rdi, rbx
mov esi, dword [0x14012d1d8]
mov rax, rbx
shr rax, 0x20
je 0x14005c8cc
mov rax, rbx
xor edx, edx
div rsi
mov rcx, rax
jmp 0x14005c8d4
mov eax, ebx
xor edx, edx
div esi
mov ecx, eax
mov rax, rdi
shr rax, 0x20
je 0x14005c8ec
mov rax, rdi
xor edx, edx
div rsi
cmp rcx, rax
jne 0x14005c8f7
jmp 0x14005c95b
mov eax, edi
xor edx, edx
div esi
cmp rcx, rax
je 0x14005c95b
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 0x14005c94b
xor ebp, ebp
cmp qword [rsp + 0x60], 0
je 0x14005c95b
cmp dword [rsp + 0x40], 0
je 0x14005c95b
cmp dword [rsp + 0x50], 0x1000
jne 0x14005c95b
cmp dword [rsp + 0x54], 1
setne bpl
jmp 0x14005c95b
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 0x14005c978
mov eax, ebp
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.14005fbe0
lea rcx, [0x14012afe0]
call fcn.1400aa594
test eax, eax
je 0x14005c8ad
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x34]
mov dword [0x14012d1d8], eax
lea rcx, [0x14012afe0]
call fcn.1400aa66b
jmp 0x14005c8ad
Function at 0x14005c9c0
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 [0x1400e00c0]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov al, byte [0x14012afe8]
test al, al
je 0x14005caa8
mov ebx, dword [0x14012d1dc]
mov dword [rsp + 0x20], ebp
lea rcx, [rsp + 0x30]
mov rdx, r14
mov r8d, ebx
mov r9, rdi
call fcn.14005cb30
mov al, byte [0x14012af98]
test al, al
je 0x14005cae2
lea rcx, [0x14012cc88]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x14012ccb0]
lea rdx, [rsp + 0x30]
call fcn.14005cd00
test rax, rax
je 0x14005ca69
mov rdi, rax
lea r8, [rsp + 0x30]
mov rcx, rax
mov edx, ebx
call fcn.14005d350
test eax, eax
je 0x14005ca69
mov qword [rsi], r14
mov qword [rsi + 8], rdi
mov byte [rsi + 0x10], 1
jmp 0x14005ca77
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
lea rcx, [0x14012cc88]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rsp + 0x60]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x14005cb26
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x14012afe8]
call fcn.1400aa594
test eax, eax
je 0x14005c9f8
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x58]
mov dword [0x14012d1dc], eax
lea rcx, [0x14012afe8]
call fcn.1400aa66b
jmp 0x14005c9f8
lea rcx, [0x14012af98]
call fcn.1400aa594
test eax, eax
je 0x14005ca23
lea rcx, [0x14012cc88]
mov edx, 0xfa0
mov r8d, 0x1000000
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
mov byte [0x14012d0b8], 1
lea rcx, [0x14012af98]
call fcn.1400aa66b
jmp 0x14005ca23
call fcn.14005fbe0
int3