joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c9770
Capabilities:
Parse pe header
Terminate process

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rdi
cmp word [0x00400000], 0x5a4d
je 0x4c9791
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x4c980d
movsxd rax, dword [0x0040003c]
lea rcx, [0x00400000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x4c97b2
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x4c980d
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x4c97f0
cmp ecx, 0x20b
je 0x4c97ce
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x4c980d
cmp dword [rax + 0x84], 0xe
ja 0x4c97df
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x4c980d
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x60], ebx
jmp 0x4c980d
cmp dword [rax + 0x74], 0xe
ja 0x4c97fe
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x4c980d
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0x60], ebx
mov ecx, 1
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x0050b840], 0xffffffffffffffff
mov qword [0x0050b848], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x005077f4]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x005077f0]
mov dword [rcx], eax
call fcn.00494cc0
cmp dword [0x00504860], 0
jne 0x4c9867
lea rcx, [fcn.00494cc0]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x004cb5c8]
lea rcx, [0x004cb5c0]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x005077ec]
mov dword [rsp + 0x68], r11d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x005077e8]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x004cb5b8]
lea rcx, [0x004cb438]
call sub.msvcrt.dll__initterm
mov r11, qword [rsp + 0x38]
mov rax, qword [sym.imp.msvcrt.dll___initenv]
mov qword [rax], r11
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
call fcn.00456ebc
mov edi, eax
mov dword [rsp + 0x34], eax
test ebx, ebx
jne 0x4c98f3
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x4c9914
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x58
ret
Function at 0x140001470
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov rbx, qword [0x1400f7448]
call fcn.1400c1560
mov rax, qword [rbx]
xor rax, rbp
mov qword [rbp], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [rbp - 4], 0
lea rdx, [rbp - 4]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test rax, rax
je 0x1400014cd
mov rdi, rax
mov ecx, dword [rbp - 4]
mov rdx, rax
call fcn.140001500
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400014d2
mov esi, 0x7f
mov rax, qword [rbp]
xor rax, rbp
mov rcx, qword [rbx]
cmp rcx, rax
jne 0x1400014ec
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret
call fcn.1400763e0
int3
Function at 0x1400023a0
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r13, qword [rdx + 8]
test r13, r13
je 0x1400025a3
mov r14, r8
mov r12, rdx
mov r15, rcx
lea rsi, [rdx + 0x10]
mov rdi, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov rax, r13
jmp 0x1400023f0
mov rax, qword [rsi]
add rsi, 8
test rax, rax
je 0x1400025a3
movzx ecx, byte [rax]
or cl, 2
cmp cl, 0x2f
jne 0x1400023e0
lea rbx, [rax + 1]
lea rcx, [rax + 2]
xor edx, edx
cmp byte [rax + 1], 0x2d
sete dl
cmove rbx, rcx
movsx ecx, byte [rdx + rax + 1]
test ecx, ecx
je 0x1400023e0
call rdi
cmp al, 0x6f
jne 0x1400023e0
movsx ecx, byte [rbx + 1]
test ecx, ecx
je 0x1400023e0
call rdi
cmp al, 0x73
jne 0x1400023e0
movsx ecx, byte [rbx + 2]
test ecx, ecx
je 0x1400023e0
call rdi
cmp al, 0x69
jne 0x1400023e0
movsx ecx, byte [rbx + 3]
test ecx, ecx
je 0x1400023e0
call rdi
cmp al, 0x6e
jne 0x1400023e0
movsx ecx, byte [rbx + 4]
test ecx, ecx
je 0x1400023e0
call rdi
cmp al, 0x74
jne 0x1400023e0
cmp byte [rbx + 5], 0
jne 0x1400023e0
cmp dword [r15], 4
jne 0x1400025b4
mov al, byte [r13]
or al, 2
cmp al, 0x2f
jne 0x1400025b4
lea rsi, [r13 + 1]
lea rax, [r13 + 2]
xor ecx, ecx
cmp byte [r13 + 1], 0x2d
sete cl
cmove rsi, rax
movsx ecx, byte [rcx + r13 + 1]
test ecx, ecx
je 0x1400025b4
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
cmp al, 0x6f
jne 0x1400025b4
movsx ecx, byte [rsi + 1]
test ecx, ecx
je 0x1400025b4
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
cmp al, 0x73
jne 0x1400025b4
movsx ecx, byte [rsi + 2]
test ecx, ecx
je 0x1400025b4
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
cmp al, 0x69
jne 0x1400025b4
movsx ecx, byte [rsi + 3]
test ecx, ecx
je 0x1400025b4
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
cmp al, 0x6e
jne 0x1400025b4
movsx ecx, byte [rsi + 4]
test ecx, ecx
je 0x1400025b4
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
cmp al, 0x74
jne 0x1400025b4
cmp byte [rsi + 5], 0
jne 0x1400025b4
mov rax, qword [r12 + 0x10]
mov cl, byte [rax]
or cl, 2
cmp cl, 0x2f
jne 0x1400025b4
lea r15, [rax + 1]
lea rcx, [rax + 2]
cmp byte [rax + 1], 0x2d
cmove r15, rcx
mov rbx, qword [r14]
jmp 0x14000254e
cmp byte [rsi], 0
je 0x140002596
mov rbx, qword [r14 + 8]
add r14, 8
test rbx, rbx
je 0x1400025b4
mov bpl, byte [rbx]
mov rsi, r15
test bpl, bpl
je 0x140002541
add rbx, 1
mov rsi, r15
nop word cs:[rax + rax]
nop
movsx ecx, byte [rsi]
test ecx, ecx
je 0x140002546
call rdi
movsx eax, al
movsx ecx, bpl
cmp eax, ecx
jne 0x140002546
add rsi, 1
movzx ebp, byte [rbx]
add rbx, 1
test bpl, bpl
jne 0x140002570
jmp 0x140002541
mov rax, qword [r12 + 0x18]
mov al, byte [rax]
or al, 2
cmp al, 0x2f
je 0x1400025b4
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 0x7f
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x140002640
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10050
call fcn.1400c217c
sub rsp, rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov r15, qword [0x1400f7448]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x10048], rax
lea r8, [rsp + 0x38]
xor edx, edx
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14000271c
test rbx, rbx
je 0x1400026ac
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14000271c
test rdi, rdi
je 0x140002708
mov ebx, 0x10000
lea r14, [rsp + 0x40]
lea r12, [rsp + 0x34]
mov r13, qword [sym.imp.KERNEL32.dll_ReadFile]
nop word [rax + rax]
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, r14
mov r8d, 0x10000
mov r9, r12
call r13
test eax, eax
je 0x140002708
cmp dword [rsp + 0x34], 0x10000
jne 0x140002708
lea rax, [rbx + 0x10000]
cmp rbx, rdi
mov rbx, rax
jb 0x1400026d0
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rax, qword [rsp + 0x10048]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x140002742
add rsp, 0x10050
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400763e0
int3
Function at 0x1400041b0
Capabilities:
Parse pe header

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov r14, rdx
mov rsi, rcx
mov rbx, qword [0x1400f7448]
mov rax, qword [rbx]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x28], r8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
and rax, 0xfffffffffffffffc
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x50], 0
je 0x140004233
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x140004233
movsxd rdx, dword [rax + 0x3c]
lea rcx, [rax + rdx]
mov qword [rsp + 0x40], rcx
cmp dword [rax + rdx], 0x4550
jne 0x140004233
movzx edx, word [rcx + 0x18]
cmp edx, 0x20b
jne 0x140004233
mov r8d, dword [rcx + 0x50]
cmp r8d, 0x148
jae 0x140004276
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_7913966da16e_browser_app_winlauncher_DllBlocklistInit.cpp
mov qword [rsi], rax
movabs rax, 0x800700c1000000b6
mov qword [rsi + 8], rax
mov rax, qword [rsp + 0x90]
xor rax, rsp
mov rcx, qword [rbx]
cmp rcx, rax
jne 0x140004313
mov rax, rsi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdx, [rsp + 0x38]
lea edi, [r8 - 1]
add rax, rdi
mov qword [rsp + 0x48], rax
cmp dword [rcx + 0x84], 2
jb 0x14000429c
cmp dword [rcx + 0x90], r8d
setae byte [rsp + 0x50]
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x78]
call fcn.140016f30
cmp byte [rsp + 0x88], 0
je 0x1400042c0
movups xmm0, xmmword [rsp + 0x78]
jmp 0x1400042e8
mov r9, qword [0x1400f8020]
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x28]
mov r8d, 0xc0000000
call fcn.1400170f0
cmp byte [rsp + 0x70], 0
je 0x1400042f4
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi], xmm0
mov byte [rsi + 0x10], 1
jmp 0x14000424f
lea r8, [rsp + 0x28]
mov rcx, rsi
mov rdx, r14
xor r9d, r9d
call fcn.140003d00
xor ecx, ecx
call fcn.140016de0
jmp 0x14000424f
call fcn.1400763e0
int3
Function at 0x140004320
Capabilities:
Access the windows event log

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x110
mov rdi, rcx
mov r12, qword [0x1400f7448]
mov rax, qword [r12]
xor rax, rsp
mov qword [rsp + 0x108], rax
lea rsi, [rsp + 0x50]
mov rcx, rsi
call fcn.140004440
lea rcx, [rsp + 0xf0]
mov rdx, rsi
call fcn.140004570
lea rdx, str.Firefox
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x14000440a
mov r15, rax
mov rcx, qword [rdi]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r14, rax
lea rsi, [rax + 8]
mov rcx, rsi
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
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, r14
call sub.ntdll.dll_memcpy
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x38], 0
mov word [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, r15
mov dx, 1
xor r8d, r8d
mov r9d, ebp
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call sub.mozglue.dll_free
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea rcx, [rsp + 0x50]
call fcn.140004730
mov rax, qword [rsp + 0x108]
xor rax, rsp
mov rcx, qword [r12]
cmp rcx, rax
jne 0x14000443a
add rsp, 0x110
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1400763e0
int3
Function at 0x140004570
Capabilities:
Set registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
mov r14, rcx
mov r15, qword [0x1400f7448]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, qword [rdx + 0x20]
test rbx, rbx
je 0x1400045ac
movzx ecx, byte [rdi + 0x58]
mov eax, ecx
and al, 1
je 0x140004613
mov rcx, qword [rdi + 0x60]
jmp 0x140004616
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
lea rdx, str.SOFTWAREMozillaFirefoxLauncher
mov rcx, 0xffffffff80000001
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1400046c0
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x79
jmp 0x1400046f2
shr rcx, 1
lea rsi, [rdi + 0x58]
test rcx, rcx
jne 0x140004649
lea rdx, [rdi + 0x28]
mov rcx, rsi
call fcn.14007c6e0
lea rdx, str.Browser
mov r8d, 8
mov rcx, rsi
call fcn.14007b270
mov al, byte [rdi + 0x58]
and al, 1
mov rbx, qword [rdi + 0x20]
mov qword [rsp + 0x50], 0
test al, al
je 0x14000465c
mov rsi, qword [rdi + 0x68]
jmp 0x140004660
add rsi, 2
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 8
mov rcx, rbx
mov rdx, rsi
xor r8d, r8d
mov r9d, 0xb
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400046b2
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [r14 + 0x10], 1
lea rax, str._var_tmp_build_firefox_7913966da16e_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [r14], rax
mov dword [r14 + 8], 0x4e
jmp 0x140004705
mov byte [0x14014f010], 0
mov byte [r14 + 0x10], 0
jmp 0x140004709
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x1400046d4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rdi + 0x20], rbx
mov eax, dword [rsp + 0x4c]
add eax, 0xffffffff
cmp eax, 1
jbe 0x14000459c
mov ecx, 0x80070507
mov eax, 0x88
mov byte [r14 + 0x10], 1
lea rdx, str._var_tmp_build_firefox_7913966da16e_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [r14], rdx
mov dword [r14 + 8], eax
mov dword [r14 + 0xc], ecx
mov rax, qword [rsp + 0x58]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x140004728
mov rax, r14
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400763e0
int3
Function at 0x140005c00
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 rdi, rdx
mov r12, rcx
mov rbp, qword [0x1400f7448]
mov rax, qword [rbp]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x4c], 0
lea r15, [rsp + 0x4c]
mov qword [rsp + 0x30], r15
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
mov rcx, rdi
mov r9d, 0x10002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140005c79
cmp eax, 2
jne 0x140005cfb
mov byte [r12 + 0x10], 0
mov byte [r12], 0
jmp 0x140005dd7
mov esi, dword [rsp + 0x4c]
add rsi, rsi
mov rcx, rsi
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r14, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call sub.ntdll.dll_memset
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
mov rcx, rdi
mov r8, rbx
mov r9d, 0x10002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140005d2d
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [r12 + 0x10], 1
lea rax, str._var_tmp_build_firefox_7913966da16e_browser_app_winlauncher_LaunchUnelevated.cpp
mov qword [r12], rax
mov dword [r12 + 8], 0x65
mov dword [r12 + 0xc], ecx
jmp 0x140005dcf
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [r12 + 0x10], 1
lea rax, str._var_tmp_build_firefox_7913966da16e_browser_app_winlauncher_LaunchUnelevated.cpp
mov qword [r12], rax
mov dword [r12 + 8], 0x59
mov dword [r12 + 0xc], ecx
jmp 0x140005dd7
mov rax, qword [0x1400f7cbe]
mov qword [rsp + 0x5e], rax
movaps xmm0, xmmword [str.RUNASADMIN]
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x48], 0x20
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x48]
lea r8, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
test rax, rax
je 0x140005db6
lea r15, [rsp + 0x50]
mov rsi, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
lea rbx, [rsp + 0x48]
lea rdi, [rsp + 0x40]
mov rbp, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
nop dword [rax + rax]
mov r8d, 0xb
mov rcx, rax
mov rdx, r15
call rsi
test eax, eax
je 0x140005dbb
xor r13d, r13d
xor ecx, ecx
mov rdx, rbx
mov r8, rdi
call rbp
test rax, rax
jne 0x140005d90
jmp 0x140005dbe
xor r13d, r13d
jmp 0x140005dc5
mov r13b, 1
mov rbp, qword [0x1400f7448]
mov byte [r12 + 0x10], 0
mov byte [r12], r13b
mov rcx, r14
call sub.mozglue.dll_free
mov rax, qword [rsp + 0x70]
xor rax, rsp
mov rcx, qword [rbp]
cmp rcx, rax
jne 0x140005dfc
mov rax, r12
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400763e0
int3
Function at 0x140007b90
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rax, qword [rdx + 8]
test rax, rax
je 0x140007dc3
mov r14, r8
mov rsi, rdx
mov r15, rcx
lea rdi, [rdx + 0x10]
jmp 0x140007bd0
mov rax, qword [rdi]
add rdi, 8
test rax, rax
je 0x140007dc3
movzx ecx, word [rax]
or ecx, 2
cmp cx, 0x2f
jne 0x140007bc0
lea rbx, [rax + 2]
lea rcx, [rax + 4]
xor edx, edx
cmp word [rax + 2], 0x2d
sete dl
cmove rbx, rcx
movzx ecx, word [rax + rdx*2 + 2]
test cx, cx
je 0x140007bc0
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
cmp ax, 0x6f
jne 0x140007bc0
movzx ecx, word [rbx + 2]
test cx, cx
je 0x140007bc0
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
cmp ax, 0x73
jne 0x140007bc0
movzx ecx, word [rbx + 4]
test cx, cx
je 0x140007bc0
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
cmp ax, 0x69
jne 0x140007bc0
movzx ecx, word [rbx + 6]
test cx, cx
je 0x140007bc0
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
cmp ax, 0x6e
jne 0x140007bc0
movzx ecx, word [rbx + 8]
test cx, cx
je 0x140007bc0
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
cmp ax, 0x74
jne 0x140007bc0
cmp word [rbx + 0xa], 0
jne 0x140007bc0
cmp dword [r15], 4
jne 0x140007dcf
mov rax, qword [rsi + 8]
movzx ecx, word [rax]
or ecx, 2
cmp cx, 0x2f
jne 0x140007dcf
lea rdi, [rax + 2]
lea rcx, [rax + 4]
xor edx, edx
cmp word [rax + 2], 0x2d
sete dl
cmove rdi, rcx
movzx ecx, word [rax + rdx*2 + 2]
test cx, cx
je 0x140007dcf
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
cmp ax, 0x6f
jne 0x140007dcf
movzx ecx, word [rdi + 2]
test cx, cx
je 0x140007dcf
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
cmp ax, 0x73
jne 0x140007dcf
movzx ecx, word [rdi + 4]
test cx, cx
je 0x140007dcf
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
cmp ax, 0x69
jne 0x140007dcf
movzx ecx, word [rdi + 6]
test cx, cx
je 0x140007dcf
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
cmp ax, 0x6e
jne 0x140007dcf
movzx ecx, word [rdi + 8]
test cx, cx
je 0x140007dcf
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
cmp ax, 0x74
jne 0x140007dcf
cmp word [rdi + 0xa], 0
jne 0x140007dcf
mov rax, qword [rsi + 0x10]
movzx ecx, word [rax]
or ecx, 2
cmp cx, 0x2f
jne 0x140007dcf
lea r15, [rax + 2]
lea rcx, [rax + 4]
cmp word [rax + 2], 0x2d
cmove r15, rcx
mov rbx, qword [r14]
jmp 0x140007d72
cmp word [rdi], 0
je 0x140007db3
mov rbx, qword [r14 + 8]
add r14, 8
test rbx, rbx
je 0x140007dcf
cmp word [rbx], 0
mov rdi, r15
je 0x140007d64
add rbx, 2
mov rdi, r15
nop word [rax + rax]
movzx ecx, word [rdi]
test cx, cx
je 0x140007d6a
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
cmp ax, word [rbx - 2]
jne 0x140007d6a
add rdi, 2
cmp word [rbx], 0
lea rbx, [rbx + 2]
jne 0x140007d90
jmp 0x140007d64
mov rax, qword [rsi + 0x18]
movzx eax, word [rax]
or eax, 2
cmp ax, 0x2f
je 0x140007dcf
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 0x7f
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x140008b10
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov esi, edx
mov rdi, rcx
xor ebx, ebx
mov r14d, 0
cmp edx, 0xffffffff
je 0x140008b3b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
mov r15, qword [sym.imp.KERNEL32.dll_SetLastError]
mov r12, qword [sym.imp.USER32.dll_WaitForInputIdle]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xffffffff
je 0x140008b6b
nop word cs:[rax + rax]
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
sub ebx, r14d
cmp ebx, esi
setb bpl
jae 0x140008ba9
xor ecx, ecx
call r15
mov edx, esi
sub edx, ebx
mov rcx, rdi
call r12
cmp eax, 0xffffffff
jne 0x140008ba3
call r13
cmp eax, 0x5bf
jne 0x140008ba7
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0xffffffff
jne 0x140008b60
jmp 0x140008b6b
test eax, eax
je 0x140008ba9
xor ebp, ebp
mov eax, ebp
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14000a1a0
Capabilities:
Set registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov r15, qword [0x1400f7448]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx ecx, byte [rdx + 0x58]
mov eax, ecx
and al, 1
je 0x14000a1d6
mov rcx, qword [rdi + 0x60]
jmp 0x14000a1d9
shr rcx, 1
lea rbx, [rdi + 0x58]
test rcx, rcx
jne 0x14000a208
lea rdx, [rdi + 0x28]
mov rcx, rbx
call fcn.14007c6e0
lea rdx, str.Browser
mov r8d, 8
mov rcx, rbx
call fcn.14007b270
mov al, byte [rdi + 0x58]
and al, 1
mov qword [rsp + 0x30], r14
mov rcx, qword [rdi + 0x20]
test al, al
je 0x14000a21b
mov rbx, qword [rdi + 0x68]
jmp 0x14000a21f
add rbx, 2
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 8
xor edi, edi
mov rdx, rbx
xor r8d, r8d
mov r9d, 0xb
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14000a26e
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rax, str._var_tmp_build_firefox_7913966da16e_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x4e
mov dword [rsi + 0xc], ecx
mov dil, 1
mov byte [rsi + 0x10], dil
mov rax, qword [rsp + 0x38]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x14000a291
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400763e0
int3
Function at 0x14000a9c0
Capabilities:
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rdi, rdx
mov rsi, rcx
mov r14, qword [0x1400f7448]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x40], rax
movzx ecx, byte [rdx + 0x40]
mov eax, ecx
and al, 1
je 0x14000a9f1
mov rcx, qword [rdi + 0x48]
jmp 0x14000a9f4
shr rcx, 1
lea rbx, [rdi + 0x40]
test rcx, rcx
jne 0x14000aa23
lea rdx, [rdi + 0x28]
mov rcx, rbx
call fcn.14007c6e0
lea rdx, str.Image
mov r8d, 6
mov rcx, rbx
call fcn.14007b270
mov al, byte [rdi + 0x40]
and al, 1
mov dword [rsp + 0x38], 4
mov rcx, qword [rdi + 0x20]
test al, al
je 0x14000aa39
mov rbx, qword [rdi + 0x50]
jmp 0x14000aa3d
add rbx, 2
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
mov rdx, rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000aa7b
cmp eax, 2
jne 0x14000aa92
mov byte [rsi + 0x10], 0
mov byte [rsi], 0
mov dword [rsi + 1], 0
jmp 0x14000aad6
cmp dword [rsp + 0x34], 4
jne 0x14000aaba
mov eax, dword [rsp + 0x3c]
mov byte [rsi + 0x10], 0
mov dword [rsi], eax
mov byte [rsi + 4], 1
jmp 0x14000aad6
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_7913966da16e_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x3b
mov dword [rsi + 0xc], ecx
jmp 0x14000aad6
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_7913966da16e_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
movabs rax, 0x8007065d0000003f
mov qword [rsi + 8], rax
mov rax, qword [rsp + 0x40]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x14000aaf3
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400763e0
int3