joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002380
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1400023a8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400023ce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400023d0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002429
test ecx, ecx
jle 0x140002409
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140002429
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002429
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140002450
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002472
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140002488
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400024a4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400024a6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400024e2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000257e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000251d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000255e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000257e
cmp rbx, rax
ja 0x140002530
test rbx, rbx
je 0x14000257e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x1400029e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002a0d
xor eax, eax
jmp 0x140002b79
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002a47
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002a47
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002b79
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140002b6c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002a8a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002ab5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002b71
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002b24
sub eax, 1
je 0x140002b24
cmp eax, 2
jne 0x140002b6c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002b71
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002b52
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140002b6c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002b71
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004350
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140003600
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400036d3
cmp byte [rcx + 0x71], 0
je 0x1400036d3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400036cf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003694
sub eax, 1
je 0x140003698
cmp eax, 2
jne 0x1400036cf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004350
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400036c6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400036cf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000367c
xor al, al
jmp 0x14000367c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004350
add rsp, 0x60
pop rbx
ret

Function at 0x140004cd0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004d1a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004d1a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004d1a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004d1a
cmp dword [rcx + 0x84], 0xe
jbe 0x140004d1a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004d1c
xor al, al
add rsp, 0x28
ret
Function at 0x1800015b0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x1800016ac
mov rax, qword gs:[0x60]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x30], rdi
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rsi, qword [rax]
mov r11, rsi
nop dword [rax]
nop word [rax + rax]
mov r9, qword [r11 + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov ebx, dword [rax + r9 + 0x88]
add rbx, r9
cmp rbx, r9
je 0x180001664
mov r8d, dword [rbx + 0x18]
test r8d, r8d
je 0x180001664
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r8d
mov edx, 0x4278adc8
lea rax, [rdi + r8*4]
mov eax, dword [rax + r9]
add rax, r9
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x18000165f
nop dword [rax]
movsx ecx, cl
lea rax, [rax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax - 1]
test cl, cl
jne 0x180001640
cmp edx, 0x2d8e4b94
je 0x1800016b6
test r8d, r8d
jne 0x180001620
mov rax, qword [r11]
mov r11, rax
cmp rax, rsi
je 0x18000167a
cmp qword [rax + 0x30], 0
jne 0x1800015f0
xor eax, eax
mov qword [rsp + 0x28], 0
lea r8, [0x180001430]
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call rax
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x38
ret
mov ecx, dword [rbx + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdx*4]
add rax, r9
jmp 0x18000167c
Function at 0x140002850
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.1400d514c
sub rsp, rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov r15, qword [0x1401054a8]
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 0x14000292d
test rbx, rbx
je 0x1400028bc
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14000292d
test rdi, rdi
je 0x140002919
mov r12d, 0x10000
lea rbx, [rsp + 0x40]
lea r14, [rsp + 0x34]
mov r13, qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rbx
mov r8d, 0x10000
mov r9, r14
call r13
test eax, eax
je 0x140002919
cmp dword [rsp + 0x34], 0x10000
jne 0x140002919
lea rax, [r12 + 0x10000]
cmp r12, rdi
mov r12, rax
jb 0x1400028e0
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 0x140002953
add rsp, 0x10050
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400d58e0
int3
Function at 0x140004410
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov ebx, r9d
mov rdi, rdx
mov rsi, rcx
mov r12, qword [0x1401054a8]
mov rax, qword [r12]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x40], r8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
and rax, 0xfffffffffffffffc
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x68], 0
je 0x140004499
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x140004499
movsxd rdx, dword [rax + 0x3c]
lea rcx, [rax + rdx]
mov qword [rsp + 0x58], rcx
cmp dword [rax + rdx], 0x4550
jne 0x140004499
movzx edx, word [rcx + 0x18]
cmp edx, 0x20b
jne 0x140004499
mov edx, dword [rcx + 0x50]
cmp edx, 0x148
jae 0x1400044e1
mov byte [rsi + 0x10], 1
lea rax, [0x1401055b0]
mov qword [rsi], rax
movabs rax, 0x800700c1000000c5
mov qword [rsi + 8], rax
mov rax, qword [rsp + 0xb0]
xor rax, rsp
mov rcx, qword [r12]
cmp rcx, rax
jne 0x14000468f
mov rax, rsi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8d, [rdx - 1]
add rax, r8
mov qword [rsp + 0x60], rax
mov eax, dword [rcx + 0x84]
cmp eax, 0x10
mov r8d, 0x10
cmovb r8d, eax
cmp r8d, 2
jb 0x140004511
cmp dword [rcx + 0x90], edx
setae byte [rsp + 0x68]
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x90]
call fcn.14001a0b0
movzx eax, byte [rsp + 0xa0]
test al, al
je 0x140004546
mov byte [rsi + 0x10], al
movups xmm0, xmmword [rsp + 0x90]
movups xmmword [rsi], xmm0
jmp 0x1400044b5
mov r14, qword [rsp + 0x110]
cmp byte [r14 + 0x18], 0
je 0x140004565
lea rcx, str.DisableThirdPartyModuleBlocking
call fcn.1400046a0
test al, al
je 0x14000459c
mov r9, qword [0x1401061d8]
lea rcx, [rsp + 0x78]
lea rdx, [rsp + 0x40]
mov r8d, 0xc0000000
call fcn.14001a960
cmp byte [rsp + 0x88], 0
je 0x1400045b3
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rsi], xmm0
mov byte [rsi + 0x10], 1
jmp 0x1400044b5
cmp byte [r14 + 0x18], 0
je 0x14000467f
test byte [r14], 1
je 0x1400045da
mov r14, qword [r14 + 0x10]
jmp 0x1400045de
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
mov rcx, rsi
mov rdx, rdi
xor r9d, r9d
call fcn.140003f30
xor ecx, ecx
call fcn.140019fa0
jmp 0x1400044b5
add r14, 2
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea r15, [rsp + 0x30]
mov rcx, r15
mov rdx, r14
call fcn.1400156a0
lea rcx, [rsp + 0x78]
mov rdx, r15
mov r8d, ebx
call fcn.14001a2a0
movzx eax, byte [rsp + 0x88]
mov byte [rsp + 0xa0], al
test al, al
je 0x14000465e
movups xmm0, xmmword [rsp + 0x78]
movaps xmmword [rsp + 0x90], xmm0
mov byte [rsi + 0x10], al
movaps xmm0, xmmword [rsp + 0x90]
movups xmmword [rsi], xmm0
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x38], 0
test rcx, rcx
je 0x1400044b5
call sub.mozglue.dll_free
jmp 0x1400044b5
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x38], 0
test rcx, rcx
je 0x140004565
call sub.mozglue.dll_free
jmp 0x140004565
mov dword [0], 0x30f
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
call fcn.1400d58e0
int3
Function at 0x1400046a0
Capabilities:
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rdi, qword [0x1401054a8]
mov rax, qword [rdi]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], 4
lea rbx, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
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]
test eax, eax
je 0x1400047c4
mov dword [rsp + 0x4c], 8
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rbx
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]
test eax, eax
je 0x1400047cb
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x30], rbx
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]
test eax, eax
je 0x1400047c4
mov dword [rsp + 0x4c], 8
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rbx
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
je 0x1400047cb
xor eax, eax
jmp 0x1400047d4
cmp dword [rsp + 0x4c], 1
jmp 0x1400047d1
cmp qword [rsp + 0x40], 1
sete al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
mov rdx, qword [rdi]
cmp rdx, rcx
jne 0x1400047ee
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400d58e0
int3

Function at 0x140004800
Capabilities:
Access the windows event log

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x120
mov rdi, rcx
mov r12, qword [0x1401054a8]
mov rax, qword [r12]
xor rax, rsp
mov qword [rsp + 0x118], rax
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.140004930
lea rcx, [rsp + 0x100]
mov rdx, rsi
call fcn.140004a70
lea rdx, str.Tor_Browser_Launcher
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x1400048eb
mov rsi, rax
mov rcx, qword [rdi]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r14, rax
lea r15, [rax + 8]
mov rcx, r15
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, r15
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], r15d
mov qword [rsp + 0x38], 0
mov word [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, rsi
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, rsi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea rcx, [rsp + 0x48]
call fcn.140004b90
mov rax, qword [rsp + 0x118]
xor rax, rsp
mov rcx, qword [r12]
cmp rcx, rax
jne 0x14000491b
add rsp, 0x120
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1400d58e0
int3
Function at 0x140005cb0
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 rbp, qword [0x1401054a8]
mov rax, qword [rbp]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x48], 0
lea r13, [rsp + 0x48]
mov qword [rsp + 0x30], r13
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 0x140005d25
cmp eax, 2
jne 0x140005da1
mov byte [rsi + 0x10], 0
mov byte [rsi], 0
jmp 0x140005e75
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], r13
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 0x140005dcc
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_1d8abcb1f7a7_browser_app_winlauncher_LaunchUnelevated.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x68
mov dword [rsi + 0xc], ecx
jmp 0x140005e6d
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_1d8abcb1f7a7_browser_app_winlauncher_LaunchUnelevated.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x5c
mov dword [rsi + 0xc], ecx
jmp 0x140005e75
movaps xmm0, xmmword [str.RUNASADMIN]
movaps xmmword [rsp + 0x50], xmm0
movabs rax, 0x4e0049004d
mov qword [rsp + 0x5e], rax
mov dword [rsp + 0x4c], 0x20
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x4c]
lea r8, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
test rax, rax
je 0x140005e57
lea rbx, [rsp + 0x50]
mov r13, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
lea r14, [rsp + 0x4c]
lea r15, [rsp + 0x40]
mov rbp, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
nop dword [rax]
mov r8d, 0xb
mov rcx, rax
mov rdx, rbx
call r13
test eax, eax
je 0x140005e5c
xor r12d, r12d
xor ecx, ecx
mov rdx, r14
mov r8, r15
call rbp
test rax, rax
jne 0x140005e30
jmp 0x140005e5f
xor r12d, r12d
jmp 0x140005e66
mov r12b, 1
mov rbp, qword [0x1401054a8]
mov byte [rsi + 0x10], 0
mov byte [rsi], r12b
mov rcx, rdi
call sub.mozglue.dll_free
mov rax, qword [rsp + 0x70]
xor rax, rsp
mov rcx, qword [rbp]
cmp rcx, rax
jne 0x140005e9a
mov rax, rsi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400d58e0
int3
Function at 0x1400097d0
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 ebp, 0
cmp edx, 0xffffffff
je 0x1400097f9
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, 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 0x14000982a
nop word cs:[rax + rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
sub ebx, ebp
cmp ebx, esi
setb r14b
jae 0x140009869
xor ecx, ecx
call r15
mov edx, esi
sub edx, ebx
mov rcx, rdi
call r12
cmp eax, 0xffffffff
jne 0x140009862
call r13
cmp eax, 0x5bf
jne 0x140009866
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0xffffffff
jne 0x140009820
jmp 0x14000982a
test eax, eax
je 0x140009869
xor r14d, r14d
mov eax, r14d
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000c650
Capabilities:
Set registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov r15, qword [0x1401054a8]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx ecx, byte [rdx + 0x58]
mov eax, ecx
and al, 1
je 0x14000c68b
mov rcx, qword [rdi + 0x60]
test rcx, rcx
jne 0x14000c6be
jmp 0x14000c693
shr rcx, 1
test rcx, rcx
jne 0x14000c6be
lea r14, [rdi + 0x58]
lea rdx, [rdi + 0x28]
mov rcx, r14
call fcn.14007f780
lea rdx, str.Browser
mov r8d, 8
mov rcx, r14
call fcn.14007e5a0
movzx eax, byte [rdi + 0x58]
and al, 1
mov qword [rsp + 0x30], rbx
mov rcx, qword [rdi + 0x20]
test al, al
je 0x14000c6d1
mov rdi, qword [rdi + 0x68]
jmp 0x14000c6d5
add rdi, 0x5a
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 8
xor ebx, ebx
mov rdx, rdi
xor r8d, r8d
mov r9d, 0xb
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14000c723
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rax, str._var_tmp_build_firefox_1d8abcb1f7a7_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x7c
mov dword [rsi + 0xc], ecx
mov bl, 1
mov byte [rsi + 0x10], bl
mov rax, qword [rsp + 0x38]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x14000c745
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400d58e0
int3
Function at 0x14000ce80
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 [0x1401054a8]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x40], rax
movzx ecx, byte [rdx + 0x40]
mov eax, ecx
and al, 1
je 0x14000ceb6
mov rcx, qword [rdi + 0x48]
test rcx, rcx
jne 0x14000cee9
jmp 0x14000cebe
shr rcx, 1
test rcx, rcx
jne 0x14000cee9
lea rbx, [rdi + 0x40]
lea rdx, [rdi + 0x28]
mov rcx, rbx
call fcn.14007f780
lea rdx, str.Image
mov r8d, 6
mov rcx, rbx
call fcn.14007e5a0
movzx eax, byte [rdi + 0x40]
and al, 1
mov dword [rsp + 0x38], 4
mov rcx, qword [rdi + 0x20]
test al, al
je 0x14000ceff
mov rdi, qword [rdi + 0x50]
jmp 0x14000cf03
add rdi, 0x42
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000cf41
cmp eax, 2
jne 0x14000cf58
mov byte [rsi + 0x10], 0
mov byte [rsi], 0
mov dword [rsi + 1], 0
jmp 0x14000cf9c
cmp dword [rsp + 0x34], 4
jne 0x14000cf80
mov eax, dword [rsp + 0x3c]
mov byte [rsi + 0x10], 0
mov dword [rsi], eax
mov byte [rsi + 4], 1
jmp 0x14000cf9c
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_1d8abcb1f7a7_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x42
mov dword [rsi + 0xc], ecx
jmp 0x14000cf9c
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_1d8abcb1f7a7_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
movabs rax, 0x8007065d00000046
mov qword [rsi + 8], rax
mov rax, qword [rsp + 0x40]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x14000cfb9
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400d58e0
int3