joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400274a0
Capabilities:
Get common file path

Disassembly:
push rsi
sub rsp, 0x240
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x238], rax
mov eax, dword [0x140064aa8]
mov ecx, dword [0x1400644c0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140027520
lea rcx, [0x140064aa8]
call fcn.14002eee4
cmp dword [0x140064aa8], 0xffffffff
jne 0x140027520
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 [0x140064aa0], rax
lea rcx, [0x140064aa8]
call fcn.14002ee84
cmp qword [0x140064aa0], 0
je case.default.0x140027554
lea rsi, str.user32.dll
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.140030050
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 0x140027593
mov eax, eax
cmp word [rsp + rax*2 + 0x1e], 0x5c
je 0x140027595
cmp eax, 0xf9
ja 0x140027593
mov word [rsp + rax*2 + 0x20], 0x5c
inc rax
jmp 0x140027595
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.140030050
nop
add rsp, 0x240
pop rsi
ret
scasb al, byte [rdi]
ficom dword [rbp + 0x38]
push rbp
invalid
sbb dword [rsi - 0x38], edx
repne outsd dx, dword [rsi]
pop rdx

Function at 0x140028020
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x140064d74]
mov ecx, dword [0x1400644c0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140028070
mov esi, dword [0x140064d70]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140030050
mov eax, esi
add rsp, 0x60
pop rsi
ret
lea rcx, [0x140064d74]
call fcn.14002eee4
cmp dword [0x140064d74], 0xffffffff
jne 0x140028055
lea rsi, [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsi + 4]
mov dword [0x140064d70], eax
lea rcx, [0x140064d74]
call fcn.14002ee84
jmp 0x140028055
Function at 0x14002abf0
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov ebx, r9d
mov r14, r8
mov r15, rdx
mov rsi, rcx
mov bpl, byte [rsp + 0x88]
mov r12d, dword [rsp + 0x80]
mov eax, dword [0x140064df0]
mov rcx, qword gs:[0x30]
cmp eax, dword [rcx + 0x48]
je 0x14002ac74
cmp byte [0x140064df4], 0
je 0x14002ac74
mov eax, dword [0x1400644c0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp byte [rax + 8], 0
jne 0x14002ac58
call fcn.14002f818
mov eax, dword [0x1400644c0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0x10]
jmp 0x14002ac79
call fcn.14002c120
mov qword [rsi], rax
lea rdi, [rsi + 8]
xor eax, eax
mov qword [rsi + 8], rax
mov byte [rsi + 0x10], 0
mov dword [rsi + 0x14], ebx
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 rbx, [rsi + 0x40]
movups xmm1, xmmword [r15]
movups xmmword [rsi + 0x40], xmm1
mov dword [r15], 0
mov qword [r15 + 8], rax
mov qword [rsi + 0x50], r14
movups xmmword [rsi + 0x60], xmm0
mov qword [rsi + 0x58], 8
mov dword [rsi + 0x70], r12d
mov byte [rsi + 0x74], bpl
call sub.ntdll.dll_RtlQueryPerformanceCounter
mov eax, dword [0x140064df0]
mov rcx, qword gs:[0x30]
cmp eax, dword [rcx + 0x48]
jne 0x14002acfd
mov rcx, rsi
call fcn.14002c130
jmp 0x14002ad58
cmp byte [0x140064df4], 0
jne 0x14002ad1d
mov rax, qword gs:[0x30]
cmp qword [rax + 0x58], 0
je 0x14002ad88
mov byte [0x140064df4], 1
mov eax, dword [0x1400644c0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp byte [rax + 8], 0
jne 0x14002ad3e
call fcn.14002f818
mov eax, dword [0x1400644c0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x10], rsi
lea rcx, [0x140064068]
mov rax, qword [0x140064068]
mov rax, qword [rax + 0x40]
mov rdx, rdi
mov r8, rbx
call qword [0x14006a010]
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 [0x140064df0], eax
jmp 0x14002acf3
Function at 0x14002b240
Capabilities:
Check os version

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x140
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x138], rax
mov qword [r8], 0xffffffffffffffff
mov eax, dword [rcx + 0x18]
test al, 3
je 0x14002b2b7
lea rbx, [rsp + 0x24]
mov r8d, 0x110
mov rcx, rbx
xor edx, edx
call sub.ntdll.dll_memset
mov dword [rbx - 4], 0x114
lea rcx, [rsp + 0x20]
call sub.ntdll.dll_RtlGetVersion
test eax, eax
js 0x14002b3fb
mov eax, dword [rsi + 0x18]
test al, 2
jne 0x14002b402
test al, 1
jne 0x14002b41d
test al, 8
je 0x14002b2ca
xor ebx, ebx
test byte [0x140064a98], 1
je 0x14002b451
test al, 0x40
je 0x14002b2dd
xor ebx, ebx
test byte [0x140064a98], 4
je 0x14002b451
test al, al
jns 0x14002b2f0
xor ebx, ebx
test byte [0x140064a98], 8
je 0x14002b451
bt eax, 8
jae 0x14002b305
xor ebx, ebx
test byte [0x140064a98], 0x10
je 0x14002b451
test al, 0x10
je 0x14002b318
xor ebx, ebx
test byte [0x140064a98], 1
jne 0x14002b451
bt eax, 9
jae 0x14002b32d
xor ebx, ebx
test byte [0x140064a98], 0x20
je 0x14002b451
mov rcx, qword [rsi + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x14002b438
mov ebx, 2
cmp qword [r14 + 0x10], 0
je 0x14002b451
test al, 4
jne 0x14002b43f
mov rcx, r14
call fcn.14002b480
test rax, rax
je 0x14002b451
mov r14, rax
movzx ebp, word [rax]
cmp bp, 0x26
jb 0x14002b451
movaps xmm0, xmmword [0x140056d50]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx + 0x10], xmm0
movaps xmm0, xmmword [0x140056d40]
movaps xmmword [rdx], xmm0
mov rcx, r14
add rcx, 6
mov r8d, 0x10
call qword [sym.imp.ntdll.dll_RtlCompareMemory]
cmp rax, 0x10
jne 0x14002b451
cmp word [r14 + 2], 0x34
jne 0x14002b451
mov eax, 2
sub eax, r14d
and eax, 3
add rax, 0x26
cmp ax, bp
jae 0x14002b451
cmp dword [rax + r14], 0xfeef04bd
jne 0x14002b451
mov ecx, dword [r14 + rax + 8]
mov eax, dword [r14 + rax + 0xc]
shl rcx, 0x20
or rax, rcx
mov qword [rdi], rax
xor ecx, ecx
cmp qword [rsi + 0x10], rax
setae cl
lea ebx, [rcx + rcx*2]
jmp 0x14002b451
mov ebx, 2
jmp 0x14002b451
xor ebx, ebx
cmp dword [rsp + 0x24], 6
ja 0x14002b451
jne 0x14002b2af
cmp dword [rsp + 0x28], 2
ja 0x14002b451
jmp 0x14002b2af
xor ebx, ebx
cmp dword [rsp + 0x24], 6
ja 0x14002b451
jne 0x14002b2b7
cmp dword [rsp + 0x28], 2
jae 0x14002b451
jmp 0x14002b2b7
mov ebx, 3
jmp 0x14002b451
mov rax, qword [r14 + 8]
mov eax, dword [rax + 8]
xor edx, edx
cmp rcx, rax
setae dl
lea ebx, [rdx + rdx*2]
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.140030050
mov eax, ebx
add rsp, 0x140
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x1400309e0
Capabilities:
Parse pe header

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

Function at 0x140032000
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140064030]
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 0x14003203f
call fcn.140032150
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140030050
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 [0x140066ab8], 0
jne 0x14003207d
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140066ab8], rax
lea r9, [rsp + 0x28]
mov qword [r9], 0
lea rax, [0x140066b08]
lea r8, [rsp + 0x30]
mov qword [r8], rax
lea rsi, [0x140066a98]
mov qword [r8 + 8], rsi
lea rax, [0x140058d81]
mov qword [r8 + 0x10], rax
lea rax, [0x1400531d0]
mov qword [r8 + 0x18], rax
mov byte [r8 + 0x20], 0
lea rcx, [0x140066b10]
lea rdx, [0x140053270]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140032026
cmp qword [rsp + 0x28], 0
je 0x140032026
lea r9, [rsp + 0x28]
mov qword [r9], 0
lea rax, [0x140066b18]
lea r8, [rsp + 0x30]
mov qword [r8], rax
mov qword [r8 + 8], rsi
lea rax, [0x140058d71]
mov qword [r8 + 0x10], rax
lea rax, [0x140053200]
mov qword [r8 + 0x18], rax
mov byte [r8 + 0x20], 0
lea rcx, [0x140066b20]
lea rdx, [0x140053270]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140032026
cmp qword [rsp + 0x28], 0
jne 0x14003202b
jmp 0x140032026
Function at 0x140032820
Capabilities:
Delete registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rbx, [rsp + 0x20]
mov rdx, rbx
call fcn.140032920
cmp byte [rbx + 0x10], 0
jne 0x14003285a
cmp dword [rsp + 0x20], 2
je 0x14003290d
mov rcx, rdi
call fcn.140024b90
cmp qword [rax + 0x18], 8
jb 0x14003286c
mov rax, qword [rax]
mov rcx, qword [rdi + 0x20]
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, 2
jne 0x1400328d5
mov rcx, rdi
call fcn.140024ab0
cmp qword [rax + 0x18], 8
jb 0x140032890
mov rax, qword [rax]
mov rcx, qword [rdi + 0x20]
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, 2
jne 0x1400328db
lea rax, [rdi + 0x10]
cmp byte [rdi + 0x18], 0
jne 0x140032907
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
xor eax, eax
mov byte [0x140064d6c], al
mov byte [rsi + 0x10], al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140030050
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
test eax, eax
je 0x14003287e
jmp 0x1400328df
test eax, eax
je 0x1400328a2
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], 0x87
mov dword [rsi + 0xc], ecx
jmp 0x1400328bd
mov byte [rdi + 0x18], 0
jmp 0x1400328ac
mov byte [rsi + 0x10], 0
jmp 0x1400328bd

Function at 0x140033ed0
Capabilities:
Read file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x10048
call fcn.14002fff0
sub rsp, rax
mov rsi, rcx
mov rax, qword [0x140064030]
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 0x140033f5c
lea rdi, [rsp + 0x40]
lea rbx, [rsp + 0x34]
mov r14, qword [sym.imp.KERNEL32.dll_ReadFile]
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rdi
mov r8d, 0x10000
mov r9, rbx
call r14
test eax, eax
je 0x140033f48
cmp dword [rsp + 0x34], 0x10000
je 0x140033f1f
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.140030050
nop
add rsp, 0x10048
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400347e0
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x228
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x220], rax
lea rbx, [rsp + 0x38]
mov rcx, rbx
call fcn.140024640
lea rdx, [rsp + 0x138]
mov rcx, rbx
call fcn.1400349a0
lea rbx, [rsp + 0x138]
mov rcx, rbx
call fcn.140024640
lea r14, [rsp + 0x120]
mov rcx, rbx
mov rdx, r14
call fcn.140035b10
cmp byte [r14 + 0x10], 0
jne 0x14003492b
cmp byte [rsp + 0x120], 0
je 0x14003492b
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 [rsi]
movups xmmword [rax], xmm0
xor r12d, r12d
mov ecx, 8
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbx + 0x10], rax
lea r15, [rbx + 0x18]
test rdi, rdi
lea r14, [0x140059f68]
cmovne r14, rdi
mov qword [rbx + 0x18], r12
mov qword [rbx + 0x28], r12
mov qword [rbx + 0x30], 0xf
mov byte [rbx + 0x18], 0
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rdi, rax
cmp rax, 0xf
jbe 0x1400348db
mov rcx, r15
mov rdx, rdi
mov r9, r14
call fcn.1400285c0
jmp 0x1400348f2
mov qword [rbx + 0x28], rdi
mov rcx, r15
mov rdx, r14
mov r8, rdi
call sub.ntdll.dll_memcpy
mov byte [rbx + rdi + 0x18], 0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140036cd0]
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 0x14003496c
lea rcx, [rsp + 0x30]
call fcn.140038d90
lea rcx, [rsp + 0x138]
call fcn.140024c90
mov rcx, rsi
call fcn.140034a20
lea rcx, [rsp + 0x38]
call fcn.140024c90
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140030050
nop
add rsp, 0x228
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rsi, [rsp + 0x30]
mov qword [rsi], 0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.140038d90
lea rcx, [rsp + 0x138]
call fcn.140024c90
jmp 0x140034940
Function at 0x140034a20
Capabilities:
Access the windows event log

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rdi, rcx
lea rdx, str.Firefox_Launcher
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x140034ae0
mov rsi, rax
mov rcx, qword [rdi]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r15, rax
lea r14, [rax + 8]
mov rcx, r14
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rbx, rax
xor r12d, r12d
mov rcx, rax
xor edx, edx
mov r8, r14
call sub.ntdll.dll_memset
mov ebp, dword [rdi + 0xc]
mov dword [rbx], ebp
mov eax, dword [rdi + 8]
mov dword [rbx + 4], eax
lea rcx, [rbx + 8]
mov rdx, qword [rdi]
mov r8, r15
call sub.ntdll.dll_memcpy
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x20], r12
mov word [rsp + 0x28], 0
mov rcx, rsi
mov dx, 1
xor r8d, r8d
mov r9d, ebp
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.mozglue.dll_free]
mov rcx, rsi
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
nop
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400356e0
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rbx, r8
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea r12, [rsp + 0x48]
mov dword [r12], 0
mov qword [rsp + 0x30], r12
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
mov rcx, r14
mov r9d, 0x10002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140035751
cmp eax, 2
jne 0x1400357d3
xor eax, eax
mov byte [rsi + 0x10], al
mov byte [rsi], al
jmp 0x1400357f9
mov r15d, dword [rsp + 0x48]
add r15, r15
mov rcx, r15
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, r15
call sub.ntdll.dll_memset
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
mov rcx, r14
mov r8, rbx
mov r9d, 0x10002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x14003581a
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_browser_app_winlauncher_LaunchUnelevated.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x68
mov dword [rsi + 0xc], ecx
mov rcx, rdi
call qword [sym.imp.mozglue.dll_free]
jmp 0x1400357f9
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_browser_app_winlauncher_LaunchUnelevated.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x5c
mov dword [rsi + 0xc], ecx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140030050
mov rax, rsi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movaps xmm0, xmmword [str.RUNASADMIN]
movaps xmmword [rsp + 0x50], xmm0
movabs rax, 0x4e0049004d
mov qword [rsp + 0x5e], rax
lea rdx, [rsp + 0x4c]
mov dword [rdx], 0x20
lea r8, [rsp + 0x40]
mov qword [r8], 0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
test rax, rax
je 0x14003589e
lea rbx, [rsp + 0x50]
mov r12, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
lea r14, [rsp + 0x4c]
lea r15, [rsp + 0x40]
mov r13, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov r8d, 0xb
mov rcx, rax
mov rdx, rbx
call r12
test eax, eax
je 0x1400358ac
xor ebp, ebp
xor ecx, ecx
mov rdx, r14
mov r8, r15
call r13
test rax, rax
jne 0x140035877
jmp 0x1400358a0
xor ebp, ebp
mov byte [rsi + 0x10], 0
mov byte [rsi], bpl
jmp 0x1400357c8
mov bpl, 1
jmp 0x1400358a0
Function at 0x140035bb0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 4
cmp qword [r8 + 0x18], 8
jb 0x140035bd9
mov r8, qword [r8]
mov rcx, qword [rdx]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
mov rdx, r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140035c32
cmp dword [rsp + 0x3c], 4
jne 0x140035c44
mov eax, dword [rsp + 0x44]
mov byte [rsi + 0x10], 0
bts rax, 0x20
mov qword [rsi], rax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140030050
mov rax, rsi
add rsp, 0x50
pop rsi
ret
cmp eax, 2
jne 0x140035c62
mov byte [rsi + 0x10], 0
mov qword [rsi], 0
jmp 0x140035c1c
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
movabs rax, 0x8007065d00000043
mov qword [rsi + 8], rax
jmp 0x140035c1c
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], 0x3f
mov dword [rsi + 0xc], ecx
jmp 0x140035c1c

Function at 0x140035c90
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
cmp qword [r8 + 0x18], 8
jb 0x140035cbb
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
je 0x140035d0d
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], 0x79
mov dword [rsi + 0xc], ecx
mov dil, 1
mov byte [rsi + 0x10], dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140030050
mov rax, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140035d30
Capabilities:
Get token membership
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rsi, rcx
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rdi, [rsp + 0x3c]
mov dword [rdi], 0x44
lea r8, [rsp + 0x40]
mov ecx, 0x1a
xor edx, edx
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x140035e08
lea rbx, [rsp + 0x40]
lea r8, [rsp + 0x38]
xor ecx, ecx
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x140035e53
cmp dword [rsp + 0x38], 0
je 0x140035e6e
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
lea r8, str.EnableLUA
mov rcx, 0xffffffff80000002
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140035e77
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_WinTokenUtils.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x26
jmp 0x140035e32
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x14
mov byte [rsi + 0x10], 1
lea rdx, str._builds_worker_checkouts_gecko_toolkit_xre_WinTokenUtils.cpp
mov qword [rsi], rdx
mov dword [rsi + 8], eax
mov dword [rsi + 0xc], ecx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140030050
mov rax, rsi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x19
jmp 0x140035e21
xor eax, eax
mov byte [rsi + 0x10], al
mov byte [rsi], al
jmp 0x140035e35
cmp dword [rsp + 0x3c], 0
mov byte [rsi + 0x10], 0
sete byte [rsi]
jmp 0x140035e35

Function at 0x140038e20
Capabilities:
Delete file

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
cmp byte [rcx + 9], 0
je 0x140038e98
mov rcx, qword [rsi + 0x30]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140038e42
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsi + 0x28]
cmp rax, 8
jb 0x140038e7c
mov rcx, qword [rsi + 0x10]
inc rax
movabs rdx, 0x7ffffffffffff800
test rax, rdx
je 0x140038e76
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x140038ed0
mov rcx, rax
call qword [sym.imp.mozglue.dll_free]
mov qword [rsi + 0x20], 0
mov qword [rsi + 0x28], 7
mov word [rsi + 0x10], 0
add rsp, 0x20
pop rsi
ret
mov rcx, qword [rsi + 0x30]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140038eac
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x30], 0
cmp qword [rsi + 0x28], 8
jb 0x140038ec1
mov rcx, qword [rsi + 0x10]
jmp 0x140038ec5
lea rcx, [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140038e2e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3