joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c6d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140054070]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c70d
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x14001c706
call fcn.14001c4f0
jmp 0x14001c6ed

Function at 0x14001cf70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001cfa2
mov rdi, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x14001cfa2
cmp word [rax + rcx + 0x14], 0x78
jae 0x14001cfb5
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rsi, r8
mov r12, rdx
mov edx, dword [rax + rcx + 0x88]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
test rax, rax
je 0x14001cfa2
cmp r12, 0xffff
ja 0x14001cfe1
mov word [rsi], r12w
mov al, 1
jmp 0x14001cfa4
mov r14, rax
mov edx, dword [rax + 0x20]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov edx, dword [r14 + 0x18]
lea rcx, [rdx*4]
test rcx, rcx
je 0x14001cfa2
lea r15, [rax + rdx*4]
lea r13, [r12 + 1]
mov qword [rsp + 0x20], rax
mov rbp, rax
nop word cs:[rax + rax]
nop dword [rax]
mov rbx, r15
sub rbx, rbp
mov rax, rbx
sar rax, 2
shr rbx, 0x3f
add rbx, rax
and rbx, 0xfffffffffffffffe
mov edx, dword [rbp + rbx*2]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov cl, byte [r12]
test cl, cl
je 0x14001d063
mov rdx, r13
cmp cl, byte [rax]
jne 0x14001d065
add rax, 1
movzx ecx, byte [rdx]
add rdx, 1
test cl, cl
jne 0x14001d050
xor ecx, ecx
lea rbx, [rbx*2]
add rbx, rbp
movzx ecx, cl
movzx eax, byte [rax]
sub ecx, eax
je 0x14001d094
lea rax, [rbx + 4]
test ecx, ecx
cmovle r15, rbx
cmovg rbp, rax
xor eax, eax
cmp rbp, r15
jne 0x14001d020
jmp 0x14001cfa4
mov edx, dword [r14 + 0x24]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
sub rbx, qword [rsp + 0x20]
sar rbx, 1
movzx eax, word [rax + rbx]
add ax, word [r14 + 0x10]
mov word [rsi], ax
jmp 0x14001cfdd

Function at 0x14001d160
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rcx + 8]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14001d197
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14001d197
movzx edx, word [rax + rcx + 0x14]
cmp edx, 0xf0
jne 0x14001d197
movzx eax, word [rax + rcx + 0x18]
cmp eax, 0x20b
sete al
ret
xor eax, eax
ret
Function at 0x14001e0e0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1400564b0]
mov ecx, dword [0x140054298]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001e137
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140045f60
nop
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1400564b0]
call fcn.1400454c0
cmp dword [0x1400564b0], 0xffffffff
jne 0x14001e11c
lea rcx, [rsp + 0x34]
xor esi, esi
mov r8d, 0x118
xor edx, edx
call sub.ntdll.dll_memset
mov dword [rsp + 0x30], 0x11c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x2c], 0
mov eax, dword [rsp + 0x34]
cmp eax, 0xa
je 0x14001e189
cmp eax, 6
jne 0x14001e1c4
lea rcx, [0x14004ca38]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetProductInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x38]
lea rdi, [rsp + 0x2c]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call rax
mov esi, dword [rsp + 0x2c]
mov ecx, pe_nt_image_headers64
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rdi, rax
lea rcx, [0x1400564b8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov r8d, esi
call fcn.14001e210
mov qword [0x1400564a8], rdi
lea rcx, [0x1400564b0]
call fcn.140045528
jmp 0x14001e11c
Function at 0x140029ad0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x160
mov rsi, rcx
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x158], rax
test dl, dl
jne 0x140029b2d
xor ebx, ebx
cmp qword [rsi + 0x10], 0
jne 0x140029b8c
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.140045f60
mov eax, ebx
add rsp, 0x160
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.TargetNtMapViewOfSection64
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea rdi, [0x140049580]
lea r8, str.NtMapViewOfSection
mov rcx, rsi
mov rdx, rdi
mov r9d, 1
call fcn.1400291c0
lea rax, str.TargetNtUnmapViewOfSection64
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 1
lea r8, [0x14004a7fe]
mov rcx, rsi
mov rdx, rdi
mov r9d, 1
call fcn.1400291c0
mov rax, qword [rsi]
mov r14, qword [rax]
mov dword [rsp + 0x20], 1
mov r13, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r8d, 0x10000
mov rcx, r14
xor edx, edx
mov r9d, 0x2000
call r13
mov r12, rax
mov rdi, qword [rsi + 0x10]
shl rdi, 6
lea r15, [rdi + 0x60]
mov rcx, r15
call fcn.140028ff0
mov rbx, rax
and rax, 0xfffffffffffff000
lea rdx, [rax + r12]
and ebx, 0xfff
add rdi, 0x105f
and rdi, 0xfffffffffffff000
mov dword [rsp + 0x20], 0x40
mov rcx, r14
mov r8, rdi
mov r9d, 0x1000
call r13
mov rdi, rax
test rax, rax
jne 0x140029c35
lea rdx, str.z:_task_1579288126_build_src_security_sandbox_chromium_sandbox_win_src_interception.cc
lea r9, str.thunk_base
lea r12, [rsp + 0x48]
mov rcx, r12
mov r8d, 0x1a8
call fcn.140013500
mov rcx, r12
call fcn.140013600
add rdi, rbx
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x50], 0x20
lea rcx, [sym.firefox.exe_g_originals]
mov r8d, 0x148
xor edx, edx
call sub.ntdll.dll_memset
lea r9, [rsp + 0x48]
mov rcx, rsi
mov rdx, rdi
mov r8, r15
call fcn.140029eb0
mov ebx, eax
test eax, eax
jne 0x140029b08
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x48]
mov r9d, 0x20
mov rcx, r14
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebx, 0x2a
test eax, eax
je 0x140029b08
cmp qword [rsp + 0x40], 0x20
jne 0x140029b08
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov rcx, r14
mov rdx, rdi
mov r8, r15
mov r9d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [rsi]
lea rdx, str.g_originals
lea r8, [sym.firefox.exe_g_originals]
mov r9d, 0x148
call fcn.14003e8e0
mov ebx, eax
jmp 0x140029b08

Function at 0x14002b040
Capabilities:
Read file via mapping

Disassembly:
mov r9, r8
mov r8, rdx
mov rdx, rcx
mov rcx, qword [0x140056668]
jmp sym.firefox.exe_TargetGetOPMInformation
Function at 0x14002bec0
Capabilities:
Create pipe

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rbx, qword [rsp + 0xb8]
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rbx], 0xffffffffffffffff
mov esi, 5
cmp ecx, 3
jne 0x14002bfa3
mov eax, dword [rsp + 0xb0]
mov edi, dword [rsp + 0xa8]
mov ecx, dword [rsp + 0xa0]
mov r10d, dword [rsp + 0x98]
mov r11d, dword [rsp + 0x90]
cmp qword [r8 + 0x18], 7
jbe 0x14002bf22
mov r8, qword [r8]
mov rsi, qword [rdx]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ecx
mov qword [rsp + 0x38], 0
mov rcx, r8
mov edx, r9d
mov r8d, r11d
mov r9d, r10d
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp rax, 0xffffffffffffffff
je 0x14002bfba
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
cmp eax, 1
sbb rcx, rcx
or rcx, qword [rsp + 0x40]
mov qword [rbx], rcx
xor eax, eax
cmp rcx, 0xffffffffffffffff
sete al
lea esi, [rax + rax*4]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140045f60
mov eax, esi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
mov rcx, 0xffffffffffffffff
jmp 0x14002bf94
Function at 0x140030ec0
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov ebx, 0xc000000d
test r9d, r9d
jne 0x140030f08
mov rdi, r8
mov rsi, rdx
call fcn.14003f010
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov ebx, 0xc0000022
cmp dword [rax], 2
jge 0x140030f29
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140045f60
mov eax, ebx
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140039100
test al, al
je 0x140030f08
mov r15, qword [0x1400567f8]
test r15, r15
je 0x140030f08
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.140017a40
mov r14, qword [rsp + 0x50]
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140030fb2
mov qword [rsp + 0x20], 0x1000
mov rcx, r14
mov edx, 6
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x58], rax
mov r14, qword [rsp + 0x50]
mov ebx, 0xc000000d
lea rax, [r14 + 1]
cmp rax, 2
jae 0x140030fe0
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140030fd1
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea rcx, [rsp + 0x50]
call fcn.140017ad0
jmp 0x140030f08
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140030fc1
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
mov qword [rsp + 0x40], r15
add r15, qword [r15 + 0x10]
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x40]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x38]
mov edx, 0x1e
call fcn.140031080
mov ebx, 0xc0000022
test eax, eax
jne 0x140030fc1
mov ebx, dword [rsp + 0x68]
jmp 0x140030fc1
Function at 0x140031140
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0xc0], rax
call fcn.14003f010
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov ebp, 0xc0000022
cmp dword [rax], 2
jge 0x1400311a4
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140045f60
mov eax, ebp
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140039100
test al, al
je 0x140031182
mov r15, qword [0x1400567f8]
test r15, r15
je 0x140031182
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x1010
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.140017a40
mov r14, qword [rsp + 0x50]
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14003122d
mov qword [rsp + 0x20], 0x1010
mov rcx, r14
mov edx, 6
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x58], rax
mov r14, qword [rsp + 0x50]
mov ebp, 0xc000000d
lea rax, [r14 + 1]
cmp rax, 2
jae 0x14003125b
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14003124c
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea rcx, [rsp + 0x50]
call fcn.140017ad0
jmp 0x140031182
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14003123c
mov r8d, 0x1010
mov rdx, rbx
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
mov qword [rsp + 0x40], r15
add r15, qword [r15 + 0x10]
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x40]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x38]
mov edx, 0x1f
call fcn.140031080
mov ebp, 0xc0000022
test eax, eax
jne 0x14003123c
mov ebp, dword [rsp + 0x68]
test ebp, ebp
jne 0x14003123c
mov rdx, qword [rsp + 0x58]
mov r8d, 0x1000
mov rcx, rsi
call sub.ntdll.dll_memcpy
xor ebp, ebp
jmp 0x14003123c
Function at 0x140035060
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 rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea eax, [rdi - 5]
mov ebp, 5
cmp eax, 1
jbe 0x1400350ba
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140045f60
mov eax, ebp
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rsi, 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
cmp qword [r9 + 0x18], 7
jbe 0x140035110
mov r9, qword [r9]
mov rcx, r9
call qword [sym.imp.mozglue.dll__wcsdup]
mov r14, rax
mov rax, qword [rbp + 0x10]
cmp qword [rbp + 0x18], 7
jbe 0x14003512b
mov rbp, qword [rbp]
mov rbx, qword [rsp + 0x138]
test rax, rax
cmove rbp, rax
cmp qword [rsi + 0x18], 7
jbe 0x140035144
mov rsi, qword [rsi]
mov r15, qword [r15]
mov qword [rsp + 0x48], rbx
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, rsi
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebp, 5
test eax, eax
je 0x140035222
cmp edi, 6
mov r12d, 0x1fffff
mov esi, 0x101c01
cmove esi, r12d
mov r13, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x20], esi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0
mov rcx, rax
mov rdx, r13
mov r8, r15
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rsi, qword [rbx + 8]
test eax, eax
je 0x140035239
add rbx, 8
cmp edi, 6
mov edi, 0x100c43
cmove edi, r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0
mov rcx, rax
mov rdx, rsi
mov r8, r15
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea ebp, [rcx + rcx*4]
test r14, r14
je 0x140035094
mov rcx, r14
call qword [sym.imp.mozglue.dll_free]
jmp 0x140035094
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
jne 0x14003522b
jmp 0x140035094
Function at 0x140035250
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 0x1400352e7
mov rbx, rax
mov rdi, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
mov rdx, rbx
mov r8, rdi
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 0x140037120
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 rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp byte [rcx + 0x54], 0
je 0x140037192
mov rsi, rdx
mov r12, rcx
lea rdx, [rcx + 0x48]
lea rcx, [rsp + 0x30]
lea r9, [rsp + 0x24]
mov r8d, 2
call fcn.1400372e0
mov r13, qword [rsp + 0x30]
test r13, r13
je 0x14003719c
cmp dword [r13], 0
je 0x1400372a8
lea rbx, [r13 + 8]
xor r14d, r14d
lea rax, [r12 + 0x30]
mov qword [rsp + 0x28], rax
jmp 0x1400371d1
mov esi, 0x3f0
jmp 0x1400372b2
mov esi, dword [rsp + 0x24]
jmp 0x1400372b2
mov rcx, qword [rsp + 0x28]
lea r8, [rsp + 0x38]
call fcn.14001f740
nop word cs:[rax + rax]
nop
add r14, 1
mov eax, dword [r13]
cmp r14, rax
jae 0x1400372a8
mov rbp, r14
shl rbp, 4
test dword [rbx + rbp + 8], 0xc0000020
jne 0x1400371c0
add rbp, rbx
test rsi, rsi
je 0x1400371f3
mov rax, qword [rsi]
cmp qword [rsi + 8], rax
jne 0x140037245
mov rdx, qword [rbp]
lea rcx, [rsp + 0x38]
call fcn.14003c930
mov rax, qword [r12 + 0x38]
mov rdx, qword [r12 + 0x40]
cmp rdx, rax
je 0x1400371a5
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 qword [r12 + 0x38], 0x44
jmp 0x1400371c0
mov r15d, 1
xor ecx, ecx
nop dword [rax]
mov rdi, qword [rbp]
mov rdx, rcx
shl rdx, 6
lea rcx, [rdx + rcx*4]
add rcx, rax
call fcn.14003cd60
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1400371c0
mov ecx, r15d
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
sub rdx, rax
sar rdx, 2
movabs rdi, 0xf0f0f0f0f0f0f0f1
imul rdx, rdi
add r15d, 1
cmp rdx, rcx
ja 0x140037250
jmp 0x1400371f3
mov rcx, r13
call sub.mozglue.dll_void___cdecl_operator_delete___void____ptr64_
xor esi, esi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140045f60
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14003b600
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 0x14003e3c0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
call fcn.14001dd40
test al, al
je 0x14003e3ee
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 0x14003e40f
mov rcx, rdi
call fcn.14003c050
mov rcx, rdi
call sub.mozglue.dll_void___cdecl_operator_delete_void____ptr64_
lea rcx, [rsi + 0x58]
call fcn.1400147f0
mov rcx, qword [rsi + 0x50]
test rcx, rcx
je 0x14003e427
call qword [sym.imp.mozglue.dll_free]
mov rdi, qword [rsi + 0x38]
test rdi, rdi
je 0x14003e440
mov rcx, rdi
call fcn.14003c050
mov rcx, rdi
call sub.mozglue.dll_void___cdecl_operator_delete_void____ptr64_
lea rcx, [rsi + 0x28]
call fcn.140017ad0
lea rcx, [rsi + 0x20]
call fcn.140017ad0
lea rcx, [rsi + 0x18]
call fcn.140017ad0
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14001dd00
Function at 0x14003ec70
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.14001dd40
test al, al
je 0x14003ec92
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 0x14003faf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x250
mov rdi, rcx
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x248], rax
call fcn.14003f780
mov ebx, 0x1126
test al, al
jne 0x14003fd74
movaps xmm0, xmmword [0x140048280]
movups xmmword [rsp + 0x238], xmm0
mov word [rsp + 0x228], 0
lea rsi, [rsp + 0x228]
mov rcx, rdi
mov rdx, rsi
call fcn.14003fdf0
mov ebx, eax
cmp qword [rsp + 0x238], 3
jae 0x14003fbee
xor ebp, ebp
lea rdi, [rsp + 0x228]
mov rcx, rdi
mov rdx, rdi
call fcn.14003fee0
mov esi, eax
mov eax, ebp
or al, sil
or bl, al
cmp bl, 1
jne 0x14003fd9c
test bpl, bpl
je 0x14003fda3
cmp qword [rsp + 0x240], 7
jbe 0x14003fba8
mov rdi, qword [rsp + 0x228]
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
je 0x14003fdd3
lea rdi, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov rsi, rax
add rsi, 0xffffffffffffffff
cmp qword [rsp + 0x240], 7
jbe 0x14003fc2d
mov rcx, qword [rsp + 0x228]
jmp 0x14003fc35
cmp qword [rsp + 0x240], 7
jbe 0x14003fc01
mov rsi, qword [rsp + 0x228]
cmp word [rsi + 2], 0x3a
jne 0x14003fb65
cmp word [rsi + 4], 0x5c
jne 0x14003fb65
movzx eax, word [rsi]
and eax, 0xffffffdf
add eax, 0xffffffbf
cmp ax, 0x1a
setb bpl
jmp 0x14003fb67
lea rcx, [rsp + 0x228]
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x14003fd9c
lea r12, [rsp + 0x228]
mov r14, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r15, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
cmp qword [rsp + 0x240], 7
mov rcx, r12
jbe 0x14003fc76
mov rcx, qword [rsp + 0x228]
call r14
cmp eax, 0xffffffff
je 0x14003fd00
test eax, 0x400
jne 0x14003fd98
mov rcx, qword [rsp + 0x238]
cmp qword [rsp + 0x240], 7
mov rax, r12
jbe 0x14003fcab
mov rax, qword [rsp + 0x228]
mov rbx, 0xffffffffffffffff
test rcx, rcx
je 0x14003fcd0
lea rdx, [rax + rcx*2]
add rdx, 0xfffffffffffffffe
cmp word [rax + rcx*2 - 2], 0x5c
jne 0x14003fd20
sub rdx, rax
sar rdx, 1
mov rbx, rdx
mov rdx, rbx
sub rdx, rcx
ja 0x14003fd49
mov qword [rsp + 0x238], rbx
mov word [rax + rbx*2], 0
cmp qword [rsp + 0x238], rsi
ja 0x14003fc60
jmp 0x14003fd62
call r15
mov ebx, eax
lea eax, [rbx - 1]
cmp eax, 3
jb 0x14003fc8d
cmp ebx, 0x7b
je 0x14003fc8d
jmp 0x14003fd67
lea rdi, [rcx + rcx]
mov ebp, 2
sub rbp, rdi
nop dword [rax]
test rbp, rbp
je 0x14003fcd0
add rbp, 2
cmp word [rdx - 2], 0x5c
lea rdx, [rdx - 2]
jne 0x14003fd30
jmp 0x14003fcc7
mov rcx, r12
xor r8d, r8d
call fcn.1400193b0
cmp qword [rsp + 0x238], rsi
ja 0x14003fc60
mov ebx, 0x1126
lea rcx, [rsp + 0x228]
call fcn.14000ba00
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.140045f60
mov eax, ebx
add rsp, 0x250
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x14003fd67
mov ebx, 0x7b
jmp 0x14003fd67
lea r8, [0x140049fd0]
lea rcx, [rsp + 0x228]
mov r9d, 4
xor edx, edx
call fcn.140025ca0
cmp qword [rsp + 0x240], 7
ja 0x14003fba0
jmp 0x14003fba8
test sil, sil
mov eax, 0x1126
mov ebx, 0x7b
cmovne ebx, eax
jmp 0x14003fd67
Function at 0x1400418d0
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rcx, str.MOZ_ENABLE_HANDLE_VERIFIER
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400419ef
movaps xmm0, xmmword [str.kernel32ext_ms_win_ntuser_windowstation_l1_1_0]
movaps xmmword [rsp + 0x30], xmm0
movabs rax, 0x6c006c0064002e
mov qword [rsp + 0x40], rax
mov word [rsp + 0x48], 0
cmp qword [0x140056890], 0
jne 0x140041938
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140056890], rax
lea rax, [0x1400568d8]
mov qword [rsp + 0x30], rax
lea rsi, [0x140056878]
mov qword [rsp + 0x38], rsi
lea rax, [0x14004ae72]
mov qword [rsp + 0x40], rax
lea rax, [0x140041a20]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x50], 0
lea rcx, [0x1400568e0]
lea rdx, [0x140041ac0]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400419ef
cmp qword [rsp + 0x28], 0
je 0x1400419ef
lea rax, [0x1400568e8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rsi
lea rax, [0x14004ae62]
mov qword [rsp + 0x40], rax
lea rax, [0x140041a50]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x50], 0
lea rcx, [0x1400568f0]
lea rdx, [0x140041ac0]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400419ef
cmp qword [rsp + 0x28], 0
jne 0x1400419fd
call sym.firefox.exe_GetHandleVerifier
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140045f60
nop
add rsp, 0x60
pop rsi
ret