joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140022a00
Capabilities:
Parse pe header

Disassembly:
mov rax, rcx
lea rcx, [0x140000000]
and rcx, 0xfffffffffffffffc
mov qword [rax], rcx
xorps xmm0, xmm0
movups xmmword [rax + 8], xmm0
mov byte [rax + 0x18], 0
je 0x140022a8c
movzx edx, word [rcx]
cmp edx, 0x5a4d
jne 0x140022a8c
lea r8, [rax + 8]
movsxd r9, dword [rcx + 0x3c]
lea rdx, [rcx + r9]
mov qword [r8], rdx
cmp dword [rcx + r9], 0x4550
jne 0x140022a8c
movzx r8d, word [rdx + 0x18]
cmp r8d, 0x20b
jne 0x140022a8c
mov r8d, dword [rdx + 0x50]
cmp r8d, 0x148
jb 0x140022a8c
lea r9d, [r8 - 1]
add rcx, r9
mov qword [rax + 0x10], rcx
mov ecx, dword [rdx + 0x84]
cmp ecx, 0x10
mov r9d, 0x10
cmovb r9d, ecx
cmp r9d, 2
jb 0x140022a8c
cmp dword [rdx + 0x90], r8d
setae byte [rax + 0x18]
ret

Function at 0x140022b20
Capabilities:
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rdi, [rsp + 0x40]
mov dword [rdi], 4
mov qword [rsp + 0x30], rdi
lea r14, [rsp + 0x4c]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREPoliciesMozillaFirefox
mov rcx, 0xffffffff80000002
mov r8, rsi
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp dword [r14], 1
sete bl
test eax, eax
je 0x140022c5f
mov dword [rsp + 0x4c], 8
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREPoliciesMozillaFirefox
mov rcx, 0xffffffff80000002
mov r8, rsi
mov r9d, 0x48
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp qword [rsp + 0x40], 1
sete bl
test eax, eax
je 0x140022c5f
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREPoliciesMozillaFirefox
mov rcx, 0xffffffff80000001
mov r8, rsi
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp dword [rsp + 0x4c], 1
sete bl
test eax, eax
je 0x140022c5f
mov dword [rsp + 0x4c], 8
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREPoliciesMozillaFirefox
mov rcx, 0xffffffff80000001
mov r8, rsi
mov r9d, 0x48
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
sete al
cmp qword [rsp + 0x40], 1
sete bl
and bl, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14002fbe0
mov eax, ebx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140022c80
Capabilities:
Map section object

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov rsi, rcx
mov rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp dword [rdx], 0
je 0x140022d37
mov ebx, r8d
mov rdi, rdx
mov rcx, qword [0x140062d80]
xor eax, eax
lea r8, [rsp + 0x50]
mov qword [r8], rax
lea rdx, [rsp + 0x58]
mov qword [rdx], rax
mov qword [rsp + 0x30], rdx
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 2
mov rdx, 0xffffffffffffffff
xor r9d, r9d
call sub.ntdll.dll_NtMapViewOfSection
test eax, eax
jns 0x140022d09
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
mov r14, qword [rsp + 0x50]
test r14, r14
je 0x140022d40
cmp dword [r14 + 0x2c], 0
je 0x140022d6d
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_browser_app_winlauncher_freestanding_SharedSection.cpp
mov qword [rsi], rax
movabs rax, 0x8007139f000000d8
jmp 0x140022dc3
mov byte [rsi + 0x10], 0
jmp 0x140022def
call sub.ntdll.dll_RtlGetLastWin32Error
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_freestanding_SharedSection.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0xd1
mov dword [rsi + 0xc], ecx
jmp 0x140022dc7
movzx eax, bl
mov dword [r14 + 0x28], eax
mov r8d, dword [rdi]
cmp r8, 0xfc8
ja 0x140022dab
lea rcx, [r14 + 0x38]
mov rdx, qword [rdi + 8]
call sub.ntdll.dll_memcpy
mov eax, dword [rdi]
test eax, eax
je 0x140022dab
cmp eax, 0x21
mov ecx, 0x20
cmovae ecx, eax
add ecx, 0x38
mov dword [r14 + 0x2c], ecx
mov byte [rsi + 0x10], 0
jmp 0x140022dc7
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_browser_app_winlauncher_freestanding_SharedSection.cpp
mov qword [rsi], rax
movabs rax, 0x8007007a000000e1
mov qword [rsi + 8], rax
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x140022def
mov rcx, 0xffffffffffffffff
call sub.ntdll.dll_NtUnmapViewOfSection
test eax, eax
jns 0x140022def
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14002fbe0
nop
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140025d80
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x140064b04]
mov ecx, dword [0x1400624b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140025dd0
mov esi, dword [0x140064b00]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002fbe0
mov eax, esi
add rsp, 0x60
pop rsi
ret
lea rcx, [0x140064b04]
call fcn.14002eaa8
cmp dword [0x140064b04], 0xffffffff
jne 0x140025db5
lea rsi, [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsi + 0x28]
mov dword [0x140064b00], eax
lea rcx, [0x140064b04]
call fcn.14002ea48
jmp 0x140025db5

Function at 0x140027020
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, r9
mov rdi, r8
mov rbx, rdx
mov r14, rcx
cmp byte [rcx + 0x1c], 0
jne 0x140027066
mov r15, qword [r14 + 0x20]
lea rcx, [0x14005a6b0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp byte [r14 + 0x1c], 0
jne 0x140027066
xor ecx, ecx
cmp r15, rax
sete cl
bts rcx, 0x20
mov qword [r14 + 0x18], rcx
mov rcx, r14
mov rdx, rbx
mov r8, rdi
mov r9, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.1400036a0
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x140051ba6
mov rsi, r9
mov rdi, r8
mov r14, rdx
and rcx, 0xfffffffffffffffc
call fcn.140051bc0
test al, al
je 0x140051ba6
mov rcx, qword [rbx + 0x20]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140051ba6
mov r14, rax
mov rcx, rax
call fcn.140051bc0
test al, al
je 0x140051ba6
mov rcx, rbx
mov rdx, r14
mov r8, rdi
mov r9, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x140027020
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140027090
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x140064af4]
mov ecx, dword [0x1400624b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400270e0
mov esi, dword [0x140064af0]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002fbe0
mov eax, esi
add rsp, 0x60
pop rsi
ret
lea rcx, [0x140064af4]
call fcn.14002eaa8
cmp dword [0x140064af4], 0xffffffff
jne 0x1400270c5
lea rsi, [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsi + 4]
mov dword [0x140064af0], eax
lea rcx, [0x140064af4]
call fcn.14002ea48
jmp 0x1400270c5
Function at 0x14002b630
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 [0x140062db0]
mov rcx, qword gs:[0x30]
cmp eax, dword [rcx + 0x48]
je 0x14002b6b4
cmp byte [0x140062db4], 1
jne 0x14002b6b4
mov eax, dword [0x1400624b8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp byte [rax + 8], 0
jne 0x14002b698
call fcn.14002f3a8
mov eax, dword [0x1400624b8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0x10]
jmp 0x14002b6b9
call fcn.140029fe0
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 [0x140062db0]
mov rcx, qword gs:[0x30]
cmp eax, dword [rcx + 0x48]
jne 0x14002b73d
mov rcx, rsi
call fcn.140027e50
jmp 0x14002b798
cmp byte [0x140062db4], 1
je 0x14002b75d
mov rax, qword gs:[0x30]
cmp qword [rax + 0x58], 0
je 0x14002b7c8
mov byte [0x140062db4], 1
mov eax, dword [0x1400624b8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp byte [rax + 8], 0
jne 0x14002b77e
call fcn.14002f3a8
mov eax, dword [0x1400624b8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x10], rsi
lea rcx, [0x140062060]
mov rax, qword [0x140062060]
mov rax, qword [rax + 0x40]
mov rdx, rdi
mov r8, rbx
call qword [0x140068010]
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 [0x140062db0], eax
jmp 0x14002b733
Function at 0x140031ef0
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140062030]
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 0x140031f42
call fcn.140032050
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x18]
mov rcx, rax
mov rax, rdx
call qword [0x140068010]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002fbe0
nop
add rsp, 0x60
pop rsi
ret
movaps xmm0, xmmword [0x1400542f0]
movaps xmmword [rsp + 0x30], xmm0
movabs rax, 0x6c006c0064002e
mov qword [rsp + 0x40], rax
mov word [rsp + 0x48], 0
cmp qword [0x140064a80], 0
jne 0x140031f80
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140064a80], rax
lea r9, [rsp + 0x28]
mov qword [r9], 0
lea rax, [0x140064ad0]
lea r8, [rsp + 0x30]
mov qword [r8], rax
lea rsi, [0x140064a60]
mov qword [r8 + 8], rsi
lea rax, [0x140057c43]
mov qword [r8 + 0x10], rax
lea rax, [0x140052500]
mov qword [r8 + 0x18], rax
mov byte [r8 + 0x20], 0
lea rcx, [0x140064ad8]
lea rdx, [0x140051b00]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140031f16
cmp qword [rsp + 0x28], 0
je 0x140031f16
lea r9, [rsp + 0x28]
mov qword [r9], 0
lea rax, [0x140064ae0]
lea r8, [rsp + 0x30]
mov qword [r8], rax
mov qword [r8 + 8], rsi
lea rax, [0x140057c33]
mov qword [r8 + 0x10], rax
lea rax, [0x140052540]
mov qword [r8 + 0x18], rax
mov byte [r8 + 0x20], 0
lea rcx, [0x140064ae8]
lea rdx, [0x140051b00]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140031f16
cmp qword [rsp + 0x28], 0
jne 0x140031f2e
jmp 0x140031f16

Function at 0x1400324a0
Capabilities:
Delete registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rbx, [rsp + 0x20]
mov rdx, rbx
call fcn.1400325a0
cmp byte [rbx + 0x10], 0
jne 0x1400324da
cmp dword [rsp + 0x20], 2
je 0x14003258b
mov rcx, rdi
call fcn.140021230
cmp qword [rax + 0x18], 8
jb 0x1400324ec
mov rax, qword [rax]
mov rcx, qword [rdi + 0x20]
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, 2
jne 0x140032553
mov rcx, rdi
call fcn.140021150
cmp qword [rax + 0x18], 8
jb 0x140032510
mov rax, qword [rax]
mov rcx, qword [rdi + 0x20]
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, 2
jne 0x140032559
lea rax, [rdi + 0x10]
cmp byte [rdi + 0x18], 0
jne 0x140032585
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
xor eax, eax
mov byte [0x140062d34], al
mov byte [rsi + 0x10], al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14002fbe0
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
test eax, eax
je 0x1400324fe
jmp 0x14003255d
test eax, eax
je 0x140032522
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 0x14003253d
mov byte [rdi + 0x18], 0
jmp 0x14003252c
mov byte [rsi + 0x10], 0
jmp 0x14003253d
Function at 0x140033b20
Capabilities:
Read file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x10048
call fcn.14002fb80
sub rsp, rax
mov rsi, rcx
mov rax, qword [0x140062030]
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 0x140033bac
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 0x140033b98
cmp dword [rsp + 0x34], 0x10000
je 0x140033b6f
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.14002fbe0
nop
add rsp, 0x10048
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140034ee0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov bl, 1
test dl, dl
jne 0x140034f1b
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002fbe0
mov eax, ebx
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rsi, rcx
mov r14, qword [rcx + 0x40]
movsx rdi, dl
add rdi, r14
mov eax, dword [0x140064af4]
mov ecx, dword [0x1400624b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140034f7b
mov r8d, dword [0x140064af0]
mov rax, r14
xor edx, edx
div r8
mov rcx, rax
mov rax, rdi
xor edx, edx
div r8
cmp rcx, rax
je 0x140034f00
mov rax, qword [rsi]
mov rcx, qword [rax]
mov rdx, rdi
call fcn.140034c30
mov ebx, eax
jmp 0x140034f00
lea rcx, [0x140064af4]
call fcn.14002eaa8
cmp dword [0x140064af4], 0xffffffff
jne 0x140034f4a
lea r15, [rsp + 0x28]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [r15 + 4]
mov dword [0x140064af0], eax
lea rcx, [0x140064af4]
call fcn.14002ea48
jmp 0x140034f4a
Function at 0x1400350e0
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 [0x140062030]
xor rax, rsp
mov qword [rsp + 0x220], rax
lea rbx, [rsp + 0x38]
mov rcx, rbx
call fcn.140020d00
lea rdx, [rsp + 0x138]
mov rcx, rbx
call fcn.1400352a0
lea rbx, [rsp + 0x138]
mov rcx, rbx
call fcn.140020d00
lea r14, [rsp + 0x120]
mov rcx, rbx
mov rdx, r14
call fcn.140035320
cmp byte [r14 + 0x10], 0
jne 0x14003522b
cmp byte [rsp + 0x120], 0
je 0x14003522b
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, [0x140058bbe]
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 0x1400351db
mov rcx, r15
mov rdx, rdi
mov r8, r14
call fcn.140027190
jmp 0x1400351f2
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, [0x1400353d0]
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 0x14003526c
lea rcx, [rsp + 0x30]
call fcn.140037390
lea rcx, [rsp + 0x138]
call fcn.1400222f0
mov rcx, rsi
call fcn.140037420
lea rcx, [rsp + 0x38]
call fcn.1400222f0
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.14002fbe0
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.140037390
lea rcx, [rsp + 0x138]
call fcn.1400222f0
jmp 0x140035240
Function at 0x140037420
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 0x1400374e0
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 0x140037770
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 [0x140062030]
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 0x140037848
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 0x140037891
cmp dword [rsp + 0x38], 0
je 0x1400378ac
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 0x1400378b5
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 0x140037872
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.14002fbe0
nop
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 0x140037861
xor eax, eax
mov byte [rsi + 0x10], al
mov byte [rsi], al
jmp 0x140037875
cmp dword [rsp + 0x3c], 0
mov byte [rsi + 0x10], 0
sete byte [rsi]
jmp 0x140037875
Function at 0x140037ce0
Capabilities:
Delete file

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
cmp byte [rcx + 9], 0
je 0x140037d58
mov rcx, qword [rsi + 0x30]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140037d02
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsi + 0x28]
cmp rax, 8
jb 0x140037d3c
mov rcx, qword [rsi + 0x10]
inc rax
movabs rdx, 0x7ffffffffffff800
test rax, rdx
je 0x140037d36
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x140037d90
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 0x140037d6c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x30], 0
cmp qword [rsi + 0x28], 8
jb 0x140037d81
mov rcx, qword [rsi + 0x10]
jmp 0x140037d85
lea rcx, [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140037cee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3

Function at 0x140038600
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 4
cmp qword [r8 + 0x18], 8
jb 0x140038629
mov r8, qword [r8]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
mov rcx, rdx
mov rdx, r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140038680
cmp dword [rsp + 0x3c], 4
jne 0x140038692
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.14002fbe0
nop
add rsp, 0x50
pop rsi
ret
cmp eax, 2
jne 0x1400386b0
mov byte [rsi + 0x10], 0
mov qword [rsi], 0
jmp 0x14003866c
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 0x14003866c
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 0x14003866c

Function at 0x1400386e0
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
cmp qword [r8 + 0x18], 8
jb 0x14003870b
mov r8, qword [r8]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 8
xor edi, edi
mov rcx, rdx
mov rdx, r8
xor r8d, r8d
mov r9d, 0xb
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14003875d
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.14002fbe0
nop
add rsp, 0x48
pop rdi
pop rsi
ret