joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001aec0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r14, r9
mov rbx, r8
mov rsi, rcx
mov rax, qword [0x14005e018]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rcx], rdx
mov qword [rcx + 0x10], 0
mov qword [rcx + 0x18], 2
lea rax, [rcx + 0x20]
mov qword [rcx + 8], rax
mov eax, dword [0x14005ed3c]
mov ecx, dword [0x14005e488]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001afdb
mov r12d, dword [0x14005ed38]
lea rax, [rbx + r14]
dec rax
xor edx, edx
div r12
mov rcx, rax
mov rax, rbx
xor edx, edx
div r12
inc rcx
sub rcx, rax
je 0x14001afba
mov rbx, rax
lea r14, [rsi + 8]
imul rbx, r12
cmp rcx, 2
mov edi, 1
cmovae rdi, rcx
lea r15, [rsp + 0x20]
mov r13, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, rbx
mov rdx, r12
mov r8d, 0x40
mov r9, r15
call r13
test eax, eax
je 0x14001b01c
mov ebp, dword [rsp + 0x20]
mov rax, qword [rsi + 0x10]
cmp rax, qword [rsi + 0x18]
je 0x14001b02e
mov rcx, qword [rsi + 8]
shl rax, 4
mov dword [rcx + rax], ebp
mov qword [rcx + rax + 8], rbx
inc qword [rsi + 0x10]
add rbx, r12
dec rdi
jne 0x14001af72
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14002c730
mov rax, rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x14005ed3c]
call fcn.14002b51c
cmp dword [0x14005ed3c], 0xffffffff
jne 0x14001af28
lea rdi, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 4]
mov dword [0x14005ed38], eax
lea rcx, [0x14005ed3c]
call fcn.14002b4bc
jmp 0x14001af28
mov dword [rsp + 0x20], 0
mov rcx, rsi
call fcn.14004eab0
jmp 0x14001afba
mov edx, 1
mov rcx, r14
call fcn.140032b90
test al, al
je 0x14001b024
mov rax, qword [rsi + 0x10]
jmp 0x14001af9e
Function at 0x14001b230
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rsi, rdx
mov rax, qword [0x14005e018]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rcx + 8]
test rax, rax
je 0x14001b43d
mov rdi, rcx
mov ebp, dword [rcx + 0x18]
shl ebp, 7
mov edx, ebp
or edx, 0x7f
mov ecx, dword [rcx + 0x14]
cmp edx, ecx
jb 0x14001b2f8
cmp ecx, dword [rdi + 0x10]
jae 0x14001b43d
mov eax, dword [0x14005ed3c]
mov ecx, dword [0x14005e488]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001b3bb
mov edx, dword [0x14005ed38]
mov ecx, dword [rdi + 0x14]
add rcx, qword [rdi + 8]
mov r8d, 0x1000
mov r9d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x14001b43d
mov eax, dword [0x14005ed3c]
mov ecx, dword [0x14005e488]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001b3fc
mov eax, dword [0x14005ed38]
add dword [rdi + 0x14], eax
mov rax, qword [rdi + 8]
mov ecx, ebp
add rcx, rax
lea r9, [rsp + 0x28]
mov qword [r9 - 8], rdi
mov dword [r9], 0
mov qword [r9 + 8], rcx
mov qword [r9 + 0x10], rcx
mov qword [r9 + 0x18], 0
mov dword [r9 + 0x20], 0x80
mov byte [r9 + 0x24], 1
mov edx, 0x80
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14001b458
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x14001b465
mov rdx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov ebx, dword [rsp + 0x28]
mov cl, byte [rsp + 0x4c]
test rdx, rdx
je 0x14001b378
test rbp, rbp
je 0x14001b378
test ebx, ebx
je 0x14001b378
test cl, cl
je 0x14001b378
inc dword [rdi + 0x18]
mov qword [rsi], rax
mov dword [rsi + 8], ebx
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], rbp
mov eax, dword [rsp + 0x40]
mov dword [rsi + 0x20], eax
mov eax, dword [rsp + 0x44]
mov dword [rsi + 0x24], eax
mov eax, dword [rsp + 0x48]
mov dword [rsi + 0x28], eax
mov byte [rsi + 0x2c], cl
mov byte [rsi + 0x30], 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14002c730
mov rax, rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x14005ed3c]
call fcn.14002b51c
cmp dword [0x14005ed3c], 0xffffffff
jne 0x14001b29e
lea rbx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 4]
mov dword [0x14005ed38], eax
lea rcx, [0x14005ed3c]
call fcn.14002b4bc
jmp 0x14001b29e
lea rcx, [0x14005ed3c]
call fcn.14002b51c
cmp dword [0x14005ed3c], 0xffffffff
jne 0x14001b2eb
lea rbx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 4]
mov dword [0x14005ed38], eax
lea rcx, [0x14005ed3c]
call fcn.14002b4bc
jmp 0x14001b2eb
xorps xmm0, xmm0
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x30], 0
jmp 0x14001b3a2
mov dword [rsp + 0x28], 0
jmp 0x14001b343
mov ebx, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov cl, byte [rsp + 0x4c]
jmp 0x14001b375
Function at 0x14001b480
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rsi, r9
mov r15, r8
mov r13, rdx
mov rax, qword [0x14005e018]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov eax, dword [0x14005ed44]
mov ecx, dword [0x14005e488]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001b5fa
xor ebx, ebx
test r15, r15
je 0x14001b5d3
mov rbp, qword [rsp + 0x100]
cmp rbp, rsi
jbe 0x14001b5d3
mov ebx, dword [0x14005ed40]
lea rdi, [rsp + 0x54]
mov dword [rdi], 0
mov rcx, rdi
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand_s
mov rax, rbp
sub rax, rsi
sub rax, r15
xor edx, edx
div rbx
mov rcx, rax
mov eax, dword [rdi]
inc rcx
xor edx, edx
div rcx
mov r12, rdx
imul r12, rbx
mov qword [rsp + 0x38], rsi
add r12, rsi
sub rbp, r15
cmp r12, rbp
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], rbx
ja 0x14001b65c
lea rsi, [rsp + 0x58]
lea rdi, [rsp + 0x60]
lea r14, [rbx - 1]
mov rdx, r12
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 0x30
mov rcx, r13
xor r8d, r8d
mov r9, rdi
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x14001b70c
cmp qword [rsp + 0x58], 0x30
jne 0x14001b71a
mov r9, rdi
mov r8, rsi
cmp dword [rsp + 0x80], 0x10000
jne 0x14001b63b
mov rdx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x78]
mov rcx, rdx
neg rcx
and rcx, r14
lea rsi, [rcx + rdx]
mov rax, rdi
sub rax, rcx
cmp rax, r15
mov ebx, 0
cmovae rbx, rsi
cmp rdi, rcx
jb 0x14001b645
test rbx, rbx
je 0x14001b645
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14002c730
mov rax, rbx
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x14005ed44]
call fcn.14002b51c
cmp dword [0x14005ed44], 0xffffffff
jne 0x14001b4d3
lea rdi, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 0x28]
mov dword [0x14005ed40], eax
lea rcx, [0x14005ed44]
call fcn.14002b4bc
jmp 0x14001b4d3
mov rdx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x78]
add rdx, rdi
cmp rdx, rbp
mov r13, qword [rsp + 0x48]
mov rsi, r8
mov rdi, r9
jbe 0x14001b559
cmp r12, qword [rsp + 0x38]
jbe 0x14001b71a
dec qword [rsp + 0x40]
lea r14, [rsp + 0x58]
lea rsi, [rsp + 0x60]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], 0x30
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x38]
xor r8d, r8d
mov r9, rsi
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x14001b70c
cmp qword [rsp + 0x58], 0x30
jne 0x14001b71a
cmp dword [rsp + 0x80], 0x10000
jne 0x14001b6ef
mov rax, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x78]
mov rcx, rax
neg rcx
and rcx, qword [rsp + 0x40]
mov rbp, rax
lea rdx, [rcx + rax]
mov rax, rdi
sub rax, rcx
cmp rax, r15
mov ebx, 0
cmovae rbx, rdx
cmp rdi, rcx
jb 0x14001b6f9
test rbx, rbx
je 0x14001b6f9
jmp 0x14001b5d3
mov rbp, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x78]
add rbp, rdi
mov qword [rsp + 0x38], rbp
cmp rbp, r12
jb 0x14001b676
jmp 0x14001b71a
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
jmp 0x14001b5d3
Function at 0x14001b780
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14005e070]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14001b7be
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 0x14001b7b7
call fcn.140003250
jmp 0x14001b79e
Function at 0x140022c80
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x14005e018]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x3c], 8
cmp qword [r8 + 0x18], 8
jb 0x140022ca9
mov r8, qword [r8]
mov rcx, qword [rdx]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
mov rdx, r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140022cee
cmp dword [rsp + 0x38], 0xb
jne 0x140022d13
mov rax, qword [rsp + 0x40]
mov byte [rsi + 0x10], 0
mov qword [rsi], rax
mov byte [rsi + 8], 1
jmp 0x140022cfd
cmp eax, 2
jne 0x140022d31
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov byte [rsi + 0x10], 0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14002c730
mov rax, rsi
add rsp, 0x50
pop rsi
ret
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
movabs rax, 0x8007065d0000003f
mov qword [rsi + 8], rax
jmp 0x140022cfd
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x3b
mov dword [rsi + 0xc], ecx
jmp 0x140022cfd

Function at 0x140023390
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x14005e018]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r9
cmp qword [r8 + 0x18], 8
jb 0x1400233b7
mov r8, qword [r8]
mov rcx, qword [rdx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 8
xor edi, edi
mov rdx, r8
xor r8d, r8d
mov r9d, 0xb
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400233ff
mov byte [rsi + 0x10], dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14002c730
mov rax, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rax, str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x4e
mov dword [rsi + 0xc], ecx
mov dil, 1
jmp 0x1400233e4

Function at 0x140023430
Capabilities:
Parse pe header

Disassembly:
mov rax, rcx
lea rcx, sym.firefox.exe_Ordinal_0
and rcx, 0xfffffffffffffffc
mov qword [rax], rcx
xorps xmm0, xmm0
movups xmmword [rax + 8], xmm0
mov byte [rax + 0x18], 0
je 0x1400234b9
movzx edx, word [rcx]
cmp edx, 0x5a4d
jne 0x1400234b9
lea r8, [rax + 8]
movsxd r9, dword [rcx + 0x3c]
lea r10, [rcx + r9]
mov qword [r8], r10
cmp dword [rcx + r9], 0x4550
jne 0x1400234b9
movzx edx, word [r10 + 0x18]
cmp edx, 0x20b
jne 0x1400234b9
mov r8d, dword [r10 + 0x50]
cmp r8d, 0x148
jb 0x1400234b9
lea edx, [r8 - 1]
add rcx, rdx
mov qword [rax + 0x10], rcx
mov ecx, dword [r10 + 0x84]
cmp ecx, 0x10
mov edx, 0x10
cmovb edx, ecx
cmp edx, 2
jb 0x1400234b9
cmp dword [r10 + 0x90], r8d
setae byte [rax + 0x18]
ret
Function at 0x140024cf0
Capabilities:
Get common file path

Disassembly:
push rsi
sub rsp, 0x240
mov rax, qword [0x14005e018]
xor rax, rsp
mov qword [rsp + 0x238], rax
mov eax, dword [0x14005ea60]
mov ecx, dword [0x14005e488]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140024d70
lea rcx, [0x14005ea60]
call fcn.14002b51c
cmp dword [0x14005ea60], 0xffffffff
jne 0x140024d70
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.SetDefaultDllDirectories
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14005ea58], rax
lea rcx, [0x14005ea60]
call fcn.14002b4bc
cmp qword [0x14005ea58], 0
je case.default.0x140024da4
lea rsi, str.user32.dll
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.14002c730
mov rcx, rsi
xor edx, edx
mov r8d, 0x800
add rsp, 0x240
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
lea rcx, [rsp + 0x20]
mov edx, 0x105
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [rax - 1]
cmp ecx, 0xf9
ja 0x140024de3
mov eax, eax
cmp word [rsp + rax*2 + 0x1e], 0x5c
je 0x140024de5
cmp eax, 0xf9
ja 0x140024de3
mov word [rsp + rax*2 + 0x20], 0x5c
inc rax
jmp 0x140024de5
xor eax, eax
lea rsi, [rsp + rax*2]
add rsi, 0x20
lea rdx, str.user32.dll
mov r8d, 0xa
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov word [rsi + 0x14], 0
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.14002c730
nop
add rsp, 0x240
pop rsi
ret
invalid

Function at 0x140025860
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x14005e018]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x14005ed3c]
mov ecx, dword [0x14005e488]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400258b0
mov esi, dword [0x14005ed38]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002c730
mov eax, esi
add rsp, 0x60
pop rsi
ret
lea rcx, [0x14005ed3c]
call fcn.14002b51c
cmp dword [0x14005ed3c], 0xffffffff
jne 0x140025895
lea rsi, [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsi + 4]
mov dword [0x14005ed38], eax
lea rcx, [0x14005ed3c]
call fcn.14002b4bc
jmp 0x140025895
Function at 0x1400284a0
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov ebp, r9d
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov r12d, dword [rsp + 0x80]
mov eax, dword [0x14005edb0]
mov rcx, qword gs:[0x30]
cmp eax, dword [rcx + 0x48]
je 0x1400284fb
cmp byte [0x14005edb4], 0
je 0x1400284fb
mov eax, dword [0x14005e488]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 8]
jmp 0x140028500
call fcn.140028e60
mov qword [rsi], rax
lea r14, [rsi + 8]
xor eax, eax
mov qword [rsi + 8], rax
mov byte [rsi + 0x10], al
mov dword [rsi + 0x14], ebp
lea rcx, [rsi + 0x18]
mov qword [rsi + 0x20], rax
mov rdx, qword gs:[0x30]
mov edx, dword [rdx + 0x48]
mov dword [rsi + 0x28], edx
xorps xmm0, xmm0
movups xmmword [rsi + 0x30], xmm0
lea r15, [rsi + 0x40]
movups xmm1, xmmword [rbx]
movups xmmword [rsi + 0x40], xmm1
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov qword [rsi + 0x50], rdi
movups xmmword [rsi + 0x60], xmm0
mov qword [rsi + 0x58], 8
mov dword [rsi + 0x70], r12d
mov byte [rsi + 0x74], al
call sub.ntdll.dll_RtlQueryPerformanceCounter
mov eax, dword [0x14005edb0]
mov rcx, qword gs:[0x30]
cmp eax, dword [rcx + 0x48]
jne 0x140028580
mov rcx, rsi
call fcn.140028e70
jmp 0x1400285ba
cmp byte [0x14005edb4], 0
jne 0x1400285a0
mov rax, qword gs:[0x30]
cmp qword [rax + 0x58], 0
je 0x1400285ea
mov byte [0x14005edb4], 1
mov eax, dword [0x14005e488]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 8], rsi
lea rcx, [0x14005e050]
mov rax, qword [0x14005e050]
mov rax, qword [rax + 0x38]
mov rdx, r14
mov r8, r15
call qword [case.0x14002bdde.0]
mov rax, rsi
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x48]
mov dword [0x14005edb0], eax
jmp 0x140028576
Function at 0x14002e140
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rcx + 8]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14002e177
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14002e177
movzx edx, word [rax + rcx + 0x14]
cmp edx, 0xf0
jne 0x14002e177
movzx eax, word [rax + rcx + 0x18]
cmp eax, 0x20b
sete al
ret
xor eax, eax
jmp 0x14002e176

Function at 0x14002eb80
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x14005e018]
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
jne 0x14002ebbf
call fcn.14002ecd0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002c730
nop
add rsp, 0x60
pop rsi
ret
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 [0x140060a88], 0
jne 0x14002ebfd
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140060a88], rax
lea r9, [rsp + 0x28]
mov qword [r9], 0
lea rax, [0x140060ad8]
lea r8, [rsp + 0x30]
mov qword [r8], rax
lea rsi, [0x140060a68]
mov qword [r8 + 8], rsi
lea rax, [0x140053788]
mov qword [r8 + 0x10], rax
lea rax, [0x14004df60]
mov qword [r8 + 0x18], rax
mov byte [r8 + 0x20], 0
lea rcx, [0x140060ae0]
lea rdx, [0x14004e000]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14002eba6
cmp qword [rsp + 0x28], 0
je 0x14002eba6
lea r9, [rsp + 0x28]
mov qword [r9], 0
lea rax, [0x140060ae8]
lea r8, [rsp + 0x30]
mov qword [r8], rax
mov qword [r8 + 8], rsi
lea rax, [0x140053778]
mov qword [r8 + 0x10], rax
lea rax, [0x14004df90]
mov qword [r8 + 0x18], rax
mov byte [r8 + 0x20], 0
lea rcx, [0x140060af0]
lea rdx, [0x14004e000]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14002eba6
cmp qword [rsp + 0x28], 0
jne 0x14002ebab
jmp 0x14002eba6
Function at 0x14002f130
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
mov r15, r8
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x14005e018]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x84], r9d
lea rbx, [rsp + 0x58]
mov qword [rbx - 0x10], r8
lea rax, sym.firefox.exe_Ordinal_0
and rax, 0xfffffffffffffffc
mov qword [rbx - 8], rax
mov rcx, rbx
call fcn.140023430
mov qword [rbx + 0x20], 0
cmp qword [rbx + 0x10], 0
je 0x14002f218
lea rbx, [rsp + 0x48]
lea rdi, [rsp + 0x28]
mov rcx, rbx
mov rdx, rdi
call fcn.14002f240
lea r8, [rsp + 0x84]
mov rcx, rbx
mov rdx, rsi
call fcn.14002f300
mov bl, byte [rsi + 0x10]
cmp dword [rdi + 0x1c], 0
js 0x14002f1e4
lea rax, [rsp + 0x40]
mov r9d, dword [rax]
mov rdx, qword [rax - 0x18]
mov r8, qword [rax - 0x10]
mov rcx, qword [rax - 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test bl, bl
jne 0x14002f1f6
mov rcx, rsi
mov rdx, r14
mov r8, r15
call fcn.14002f3e0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14002c730
mov rax, rsi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_browser_app_winlauncher_LauncherProcessWin.cpp
mov qword [rsi], rax
movabs rax, 0x800700c100000040
mov qword [rsi + 8], rax
jmp 0x14002f1f6

Function at 0x14002f500
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x14005e018]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], r9d
cmp qword [r8 + 0x18], 8
jb 0x14002f527
mov r8, qword [r8]
mov rcx, qword [rdx]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor edi, edi
mov rdx, r8
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14002f56f
mov byte [rsi + 0x10], dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14002c730
mov rax, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rax, str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x4e
mov dword [rsi + 0xc], ecx
mov dil, 1
jmp 0x14002f554

Function at 0x14002f720
Capabilities:
Delete registry value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
cmp qword [r8 + 0x18], 8
jb 0x14002f732
mov r8, qword [r8]
mov rcx, qword [rdx]
mov rdx, r8
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, 2
jne 0x14002f753
xor eax, eax
mov byte [rsi + 0x10], al
mov byte [rsi], al
mov rax, rsi
add rsp, 0x20
pop rsi
ret
test eax, eax
jne 0x14002f760
mov byte [rsi + 0x10], 0
mov byte [rsi], 1
jmp 0x14002f74a
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x5c
mov dword [rsi + 0xc], ecx
jmp 0x14002f74a
Function at 0x1400305d0
Capabilities:
Read file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x10048
call fcn.14002c6c0
sub rsp, rax
mov rsi, rcx
mov rax, qword [0x14005e018]
xor rax, rsp
mov qword [rsp + 0x10040], rax
lea r8, [rsp + 0x38]
xor edx, edx
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003065b
lea r14, [rsp + 0x40]
lea rbx, [rsp + 0x34]
mov rdi, qword [sym.imp.KERNEL32.dll_ReadFile]
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, r14
mov r8d, 0x10000
mov r9, rbx
call rdi
test eax, eax
je 0x140030647
cmp dword [rsp + 0x34], 0x10000
je 0x14003061f
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, qword [rsp + 0x10040]
xor rcx, rsp
call fcn.14002c730
nop
add rsp, 0x10048
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140030b00
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1e8
mov rdi, rdx
mov r14, rcx
mov rax, qword [0x14005e018]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
lea rbx, [rsp + 0x38]
mov rcx, rbx
call fcn.140022e70
lea rdx, [rsp + 0x118]
mov rcx, rbx
call fcn.140030c80
lea rbx, [rsp + 0x118]
mov rcx, rbx
call fcn.140022e70
lea rsi, [rsp + 0x100]
mov rcx, rbx
mov rdx, rsi
call fcn.140031d00
cmp byte [rsi + 0x10], 0
jne 0x140030c0b
cmp byte [rsp + 0x100], 0
je 0x140030c0b
lea rcx, str.MOZ_DISABLE_POISON_IO_INTERPOSER1
call sub.api_ms_win_crt_environment_l1_1_0.dll__putenv
mov ecx, 0x38
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rbx, rax
movups xmm0, xmmword [r14]
movups xmmword [rax], xmm0
xor esi, esi
mov ecx, 8
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbx + 0x10], rax
test rdi, rdi
lea rdx, [0x14005494e]
cmovne rdx, rdi
lea rcx, [rbx + 0x18]
mov qword [rbx + 0x28], rsi
mov qword [rbx + 0x30], 0xf
mov byte [rbx + 0x18], 0
call fcn.140002d80
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140032e10]
xor ecx, ecx
xor edx, edx
mov r9, rbx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
test rax, rax
jne 0x140030c48
lea rcx, [rsp + 0x30]
call fcn.140034a80
lea rcx, [rsp + 0x118]
call fcn.140023530
mov rcx, r14
call fcn.140030cf0
lea rcx, [rsp + 0x38]
call fcn.140023530
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.14002c730
nop
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rsi, [rsp + 0x30]
mov qword [rsi], 0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.140034a80
lea rcx, [rsp + 0x118]
call fcn.140023530
jmp 0x140030c20