joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002ab60
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov r14, r8
mov rdi, rdx
mov rax, qword [0x1400a9028]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdx, r8
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14002ad18
lea r8, str.MicrosoftWindowsStart_MenuPrograms_
mov edx, 0x104
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
jne 0x14002ad18
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], 0
mov rbx, qword [rdi + 0x10]
lea rcx, [rbx + 4]
cmp rcx, 8
jb 0x14002adc8
movabs rax, 0x7ffffffffffffffe
cmp rcx, rax
ja 0x14002add2
or rcx, 7
cmp rcx, 0xb
mov esi, 0xa
cmovae rsi, rcx
cmp rsi, rax
cmovae rsi, rax
lea rcx, [rsi + rsi]
cmp rsi, 0x7ff
jae 0x14002ad6e
add rcx, 2
call fcn.140058850
xor ecx, ecx
mov qword [rsp + 0x48], rsi
mov word [rax], cx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], 0
mov rbx, qword [rdi + 0x10]
mov rax, qword [rsp + 0x48]
cmp qword [rdi + 0x18], 8
jb 0x14002ac4d
mov rdi, qword [rdi]
cmp rax, rbx
jb 0x14002ad30
mov qword [rsp + 0x40], rbx
cmp rax, 8
jb 0x14002ac68
mov rsi, qword [rsp + 0x30]
jmp 0x14002ac6d
lea rsi, [rsp + 0x30]
lea r8, [rbx + rbx]
mov rcx, rsi
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rsi + rbx*2], 0
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rdx, rcx
sub rdx, rax
cmp rdx, 4
jb 0x14002ad4a
lea rdx, [rax + 4]
mov qword [rsp + 0x40], rdx
cmp rcx, 8
jb 0x14002acb2
mov rcx, qword [rsp + 0x30]
jmp 0x14002acb7
lea rcx, [rsp + 0x30]
movabs rdx, 0x6b006e006c002e
mov qword [rcx + rax*2], rdx
mov word [rcx + rax*2 + 8], 0
cmp qword [rsp + 0x48], 8
jb 0x14002acdb
mov r8, qword [rsp + 0x30]
jmp 0x14002ace0
lea r8, [rsp + 0x30]
mov edx, 0x104
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov rax, qword [rsp + 0x48]
cmp rax, 8
jb 0x14002ad18
mov rcx, qword [rsp + 0x30]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x14002ada5
call fcn.140058840
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140059960
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x30]
mov rdx, rbx
mov r9, rdi
call fcn.14005c050
jmp 0x14002ac82
mov qword [rsp + 0x20], 4
lea r9, str..lnk
lea rcx, [rsp + 0x30]
mov edx, 4
call fcn.14005c050
jmp 0x14002accc
add rcx, 0x29
add rax, 0xffffffffffffffee
cmp rsi, rax
mov rax, 0xffffffffffffffff
cmovb rax, rcx
mov rcx, rax
call fcn.140058850
mov rcx, rax
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
movzx ecx, word [rsp + 0x30]
jmp 0x14002ac24
mov rdx, rcx
add rdx, 0xfffffffffffffff8
mov rcx, qword [rcx - 8]
sub rdx, rcx
cmp rdx, 0x20
jae 0x14002add7
add rax, rax
add rax, 0x29
mov rdx, rax
jmp 0x14002ad13
mov eax, 7
jmp 0x14002ac43
call fcn.14005c030
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14002d890
Capabilities:
Access the windows event log

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r15d, r8d
mov r14, rdx
mov r12, rcx
lea rdi, [rsp + 0xc8]
mov qword [rdi], r9
mov rax, qword [0x1400a9028]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x50], rdi
call fcn.140002640
mov rcx, qword [rax]
or rcx, 2
mov qword [rsp + 0x28], rdi
xor r13d, r13d
mov qword [rsp + 0x20], r13
xor edx, edx
xor r8d, r8d
mov r9, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vswprintf]
test eax, eax
mov ebx, 0xffffffff
cmovns ebx, eax
inc ebx
lea rbp, [rbx + rbx]
mov rcx, rbp
call fcn.14005896c
mov rsi, rax
mov rcx, rax
xor edx, edx
mov r8, rbp
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x50], rdi
call fcn.140002640
mov rcx, qword [rax]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r13
mov rdx, rsi
mov r8, rbx
mov r9, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vswprintf]
lea r12, str.Error:__s___S:_d_
mov rcx, r12
mov rdx, rsi
mov r8, r14
mov r9d, r15d
call fcn.14005af60
inc eax
movsxd rbx, eax
mov rbp, rbx
add rbp, rbx
mov rax, 0xffffffffffffffff
cmovb rbp, rax
mov rcx, rbp
call fcn.14005896c
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, rbp
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rsi
mov rcx, rdi
mov rdx, rbx
mov r8, 0xffffffffffffffff
mov r9, r12
call fcn.14005afe0
mov rdx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x14002da02
mov rbx, rax
lea rax, [rsp + 0x58]
mov qword [rax], rdi
xor ecx, ecx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x30], 0
mov word [rsp + 0x28], 1
mov rcx, rbx
mov dx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, rdi
call fcn.140058840
mov rcx, rsi
call fcn.140058840
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140059960
nop
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14002ebd0
Capabilities:
Delete registry key

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov ebp, r8d
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x1400a9028]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rdi, [rsp + 0x48]
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 7
mov word [rdi], 0
lea r9, str.SOFTWAREMozillaFirefoxDefault_Browser_Agent
mov edx, 0x2e
mov rcx, rdi
call fcn.14005c1a0
mov rax, qword [rdi + 0x10]
mov rcx, qword [rdi + 0x18]
cmp rax, rcx
jae 0x14002ec43
lea rdx, [rax + 1]
mov qword [rsp + 0x58], rdx
cmp rcx, 8
jb 0x14002ec4f
mov rcx, qword [rsp + 0x48]
jmp 0x14002ec54
lea rcx, [rsp + 0x48]
call fcn.140005d30
jmp 0x14002ec61
lea rcx, [rsp + 0x48]
mov word [rcx + rax*2], 0x5c
mov word [rcx + rax*2 + 2], 0
lea rbx, [rsp + 0x28]
mov rcx, rsi
mov rdx, rbx
mov r8d, ebp
call fcn.14002e460
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 8
jb 0x14002ec84
mov rbx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
mov rdx, rcx
sub rdx, rax
cmp rdx, r8
jb 0x14002ed6d
lea rsi, [rax + r8]
mov qword [rsp + 0x58], rsi
cmp rcx, 8
jb 0x14002ecb1
mov rdi, qword [rsp + 0x48]
lea rcx, [rdi + rax*2]
add r8, r8
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov word [rdi + rsi*2], 0
mov rax, qword [rsp + 0x40]
cmp rax, 8
jb 0x14002ecf0
mov rcx, qword [rsp + 0x28]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x14002ed87
call fcn.140058840
cmp qword [rsp + 0x60], 8
jb 0x14002ecff
mov rdx, qword [rsp + 0x48]
jmp 0x14002ed04
lea rdx, [rsp + 0x48]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov ecx, eax
and ecx, 0xfffffffd
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
test ecx, ecx
cmove edx, ecx
mov dword [r14], edx
mov rax, qword [rsp + 0x60]
cmp rax, 8
jb 0x14002ed52
mov rcx, qword [rsp + 0x48]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x14002edaa
call fcn.140058840
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140059960
mov rax, r14
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov qword [rsp + 0x20], r8
lea rcx, [rsp + 0x48]
mov rdx, r8
mov r9, rbx
call fcn.14005c050
jmp 0x14002ecc6
mov rdx, rcx
add rdx, 0xfffffffffffffff8
mov rcx, qword [rcx - 8]
sub rdx, rcx
cmp rdx, 0x20
jae 0x14002edca
add rax, rax
add rax, 0x29
mov rdx, rax
jmp 0x14002eceb
mov rdx, rcx
add rdx, 0xfffffffffffffff8
mov rcx, qword [rcx - 8]
sub rdx, rcx
cmp rdx, 0x20
jae 0x14002edca
add rax, rax
add rax, 0x29
mov rdx, rax
jmp 0x14002ed4d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14002f930
Capabilities:
Delete registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rsi, rcx
mov rax, qword [0x1400a9028]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rdi, [rsp + 0x60]
mov rcx, rdi
call fcn.140031a40
mov eax, dword [rdi + 0x20]
test eax, eax
je 0x14002f983
mov dword [rsi], eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140059960
mov rax, rsi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
movups xmm0, xmmword [rsp + 0x60]
movups xmm1, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x40], xmm0
xor edi, edi
mov qword [rsp + 0x70], rdi
mov eax, 7
mov qword [rsp + 0x78], rax
mov word [rsp + 0x60], di
lea rbx, [rsp + 0x20]
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rax
mov word [rbx], di
lea r9, str.SOFTWAREMozillaFirefoxDefault_Browser_Agent
mov edx, 0x2e
mov rcx, rbx
call fcn.14005c1a0
cmp qword [rsp + 0x58], 8
jb 0x14002f9e0
mov r8, qword [rsp + 0x40]
jmp 0x14002f9e5
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x38], 8
jb 0x14002f9f2
mov rbx, qword [rsp + 0x20]
mov rcx, 0xffffffff80000001
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyValueW]
test eax, eax
je 0x14002fa28
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
lea rdx, str.RegistryDeleteValue
mov ecx, edi
mov r8d, 0x13f
call fcn.14002fad0
mov dword [rsi], edi
mov rax, qword [rsp + 0x38]
cmp rax, 8
jb 0x14002fa50
mov rcx, qword [rsp + 0x20]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x14002fa7f
call fcn.140058840
mov rax, qword [rsp + 0x58]
cmp rax, 8
jb 0x14002f965
mov rcx, qword [rsp + 0x40]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x14002fa9f
call fcn.140058840
jmp 0x14002f965
mov rdx, rcx
add rdx, 0xfffffffffffffff8
mov rcx, qword [rcx - 8]
sub rdx, rcx
cmp rdx, 0x20
jae 0x14002fabf
add rax, rax
add rax, 0x29
mov rdx, rax
jmp 0x14002fa4b
mov rdx, rcx
add rdx, 0xfffffffffffffff8
mov rcx, qword [rcx - 8]
sub rdx, rcx
cmp rdx, 0x20
jae 0x14002fabf
add rax, rax
add rax, 0x29
mov rdx, rax
jmp 0x14002fa75
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14002fad0
Capabilities:
Access the windows event log

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov ebp, r8d
mov r12, rdx
mov r15d, ecx
mov rax, qword [0x1400a9028]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r14, str.0x_X_in__S:_d
mov rcx, r14
mov edx, r15d
mov r8, r12
mov r9d, ebp
call fcn.14005af60
inc eax
movsxd rbx, eax
mov rsi, rbx
add rsi, rbx
mov rax, 0xffffffffffffffff
cmovb rsi, rax
mov rcx, rsi
call fcn.14005896c
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r15d
mov rcx, rdi
mov rdx, rbx
mov r8, 0xffffffffffffffff
mov r9, r14
call fcn.14005afe0
mov rdx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x14002fbba
mov rbx, rax
lea rax, [rsp + 0x50]
mov qword [rax], rdi
xor ecx, ecx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x30], 0
mov word [rsp + 0x28], 1
mov rcx, rbx
mov dx, 1
xor r8d, r8d
mov r9d, r15d
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, rdi
call fcn.140058840
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140059960
nop
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140031e60
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov rsi, rcx
mov rax, qword [0x1400a9028]
xor rax, rsp
mov qword [rsp + 0xa8], rax
lea rdi, [rsp + 0x80]
mov rcx, rdi
call fcn.140031a40
mov eax, dword [rdi + 0x20]
test eax, eax
je 0x140031ebc
mov word [rsi], 0
mov dword [rsi + 4], eax
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140059960
mov rax, rsi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
ret
movups xmm0, xmmword [rsp + 0x80]
movups xmm1, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
xor ebx, ebx
mov qword [rsp + 0x90], rbx
mov eax, 7
mov qword [rsp + 0x98], rax
mov word [rsp + 0x80], bx
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rax
mov word [rdi], bx
lea r9, str.SOFTWAREMozillaFirefoxDefault_Browser_Agent
mov edx, 0x2e
mov rcx, rdi
call fcn.14005c1a0
mov dword [rsp + 0x38], 4
cmp qword [rsp + 0x78], 8
jb 0x140031f30
mov r8, qword [rsp + 0x60]
jmp 0x140031f35
lea r8, [rsp + 0x60]
cmp qword [rsp + 0x58], 8
jb 0x140031f42
mov rdi, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov rcx, 0xffffffff80000001
mov rdx, rdi
mov r9d, 0x10
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140031f81
cmp eax, 2
jne 0x140031f97
mov word [rsi], 0
jmp 0x140031f93
xor eax, eax
cmp dword [rsp + 0x3c], 0
setne al
or eax, 0x100
mov word [rsi], ax
xor edi, edi
jmp 0x140031fbe
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
lea rdx, str.RegistryGetValueBool
mov ecx, edi
mov r8d, 0x98
call fcn.14002fad0
mov word [rsi], 0
mov dword [rsi + 4], edi
mov rax, qword [rsp + 0x58]
cmp rax, 8
jb 0x140031fe7
mov rcx, qword [rsp + 0x40]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x140032016
call fcn.140058840
mov rax, qword [rsp + 0x78]
cmp rax, 8
jb 0x140031e9e
mov rcx, qword [rsp + 0x60]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x140032036
call fcn.140058840
jmp 0x140031e9e
mov rdx, rcx
add rdx, 0xfffffffffffffff8
mov rcx, qword [rcx - 8]
sub rdx, rcx
cmp rdx, 0x20
jae 0x140032056
add rax, rax
add rax, 0x29
mov rdx, rax
jmp 0x140031fe2
mov rdx, rcx
add rdx, 0xfffffffffffffff8
mov rcx, qword [rcx - 8]
sub rdx, rcx
cmp rdx, 0x20
jae 0x140032056
add rax, rax
add rax, 0x29
mov rdx, rax
jmp 0x14003200c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140032060
Capabilities:
Set registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov ebx, r9d
mov rsi, rcx
mov rax, qword [0x1400a9028]
xor rax, rsp
mov qword [rsp + 0xb0], rax
lea rdi, [rsp + 0x88]
mov rcx, rdi
call fcn.140031a40
mov eax, dword [rdi + 0x20]
test eax, eax
je 0x1400320bd
mov dword [rsi], eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140059960
mov rax, rsi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
xor r14d, r14d
mov qword [rsp + 0x98], r14
mov eax, 7
mov qword [rsp + 0xa0], rax
mov word [rsp + 0x88], r14w
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], rax
mov word [rdi], r14w
lea r9, str.SOFTWAREMozillaFirefoxDefault_Browser_Agent
mov edx, 0x2e
mov rcx, rdi
call fcn.14005c1a0
movzx eax, bl
mov dword [rsp + 0x3c], eax
cmp qword [rsp + 0x78], 8
jb 0x140032133
mov r8, qword [rsp + 0x60]
jmp 0x140032138
lea r8, [rsp + 0x60]
cmp qword [rsp + 0x58], 8
jb 0x140032145
mov rdi, qword [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
mov rcx, 0xffffffff80000001
mov rdx, rdi
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
je 0x140032197
movzx r14d, ax
or r14d, 0x80070000
test eax, eax
cmovle r14d, eax
lea rdx, str.RegistrySetValueBool
mov ecx, r14d
mov r8d, 0xb3
call fcn.14002fad0
mov dword [rsi], r14d
mov rax, qword [rsp + 0x58]
cmp rax, 8
jb 0x1400321c0
mov rcx, qword [rsp + 0x40]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x1400321ef
call fcn.140058840
mov rax, qword [rsp + 0x78]
cmp rax, 8
jb 0x14003209d
mov rcx, qword [rsp + 0x60]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x14003220f
call fcn.140058840
jmp 0x14003209d
mov rdx, rcx
add rdx, 0xfffffffffffffff8
mov rcx, qword [rcx - 8]
sub rdx, rcx
cmp rdx, 0x20
jae 0x14003222f
add rax, rax
add rax, 0x29
mov rdx, rax
jmp 0x1400321bb
mov rdx, rcx
add rdx, 0xfffffffffffffff8
mov rcx, qword [rcx - 8]
sub rdx, rcx
cmp rdx, 0x20
jae 0x14003222f
add rax, rax
add rax, 0x29
mov rdx, rax
jmp 0x1400321e5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140032240
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rsi, rcx
mov rax, qword [0x1400a9028]
xor rax, rsp
mov qword [rsp + 0xb8], rax
lea rdi, [rsp + 0x90]
mov rcx, rdi
call fcn.140031a40
mov eax, dword [rdi + 0x20]
test eax, eax
je 0x14003229d
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov dword [rsi + 0x10], eax
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140059960
mov rax, rsi
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
ret
movups xmm0, xmmword [rsp + 0x90]
movups xmm1, xmmword [rsp + 0xa0]
movaps xmmword [rsp + 0x80], xmm1
movaps xmmword [rsp + 0x70], xmm0
xor ebx, ebx
mov qword [rsp + 0xa0], rbx
mov eax, 7
mov qword [rsp + 0xa8], rax
mov word [rsp + 0x90], bx
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rax
mov word [rdi], bx
lea r9, str.SOFTWAREMozillaFirefoxDefault_Browser_Agent
mov edx, 0x2e
mov rcx, rdi
call fcn.14005c1a0
mov dword [rsp + 0x44], 8
cmp qword [rsp + 0x88], 8
jb 0x140032317
mov r8, qword [rsp + 0x70]
jmp 0x14003231c
lea r8, [rsp + 0x70]
cmp qword [rsp + 0x68], 8
jb 0x140032329
mov rdi, qword [rsp + 0x50]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov rcx, 0xffffffff80000001
mov rdx, rdi
mov r9d, 0x40
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140032369
cmp eax, 2
jne 0x14003237e
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140032375
mov rax, qword [rsp + 0x48]
mov qword [rsi], rax
mov byte [rsi + 8], 1
mov dword [rsi + 0x10], 0
jmp 0x1400323a9
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
lea rdx, str.RegistryGetValueQword
mov ecx, edi
mov r8d, 0xd2
call fcn.14002fad0
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov dword [rsi + 0x10], edi
mov rax, qword [rsp + 0x68]
cmp rax, 8
jb 0x1400323cf
mov rcx, qword [rsp + 0x50]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x140032401
call fcn.140058840
mov rax, qword [rsp + 0x88]
cmp rax, 8
jb 0x14003227f
mov rcx, qword [rsp + 0x70]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x140032421
call fcn.140058840
jmp 0x14003227f
mov rdx, rcx
add rdx, 0xfffffffffffffff8
mov rcx, qword [rcx - 8]
sub rdx, rcx
cmp rdx, 0x20
jae 0x140032441
add rax, rax
add rax, 0x29
mov rdx, rax
jmp 0x1400323ca
mov rdx, rcx
add rdx, 0xfffffffffffffff8
mov rcx, qword [rcx - 8]
sub rdx, rcx
cmp rdx, 0x20
jae 0x140032441
add rax, rax
add rax, 0x29
mov rdx, rax
jmp 0x1400323f7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140032450
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1400a9028]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 7
mov word [rsp + 0x68], 0
mov rcx, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rbx, rax
lea rcx, [rsp + 0x68]
cmp rax, 7
ja 0x1400324c4
mov qword [rcx + 0x10], rbx
mov r8, rbx
add r8, rbx
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx*2 + 0x68], 0
jmp 0x1400324cf
mov rdx, rbx
mov r9, rdi
call fcn.14005c1a0
movzx eax, word [rsp + 0x68]
mov rcx, qword [rsp + 0x6a]
mov qword [rsp + 0x58], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x5e], rcx
mov rcx, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
mov word [rsp + 0x68], ax
mov rax, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x5e]
mov qword [rsp + 0x6a], rax
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x80], rbx
lea rdi, [rsp + 0x38]
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 7
mov word [rdi], 0
lea r9, str.SOFTWAREMozillaFirefoxDefault_Browser_Agent
mov edx, 0x2e
mov rcx, rdi
call fcn.14005c1a0
cmp rbx, 8
jb 0x140032556
mov r8, qword [rsp + 0x68]
jmp 0x14003255b
lea r8, [rsp + 0x68]
cmp qword [rsp + 0x50], 8
jb 0x140032568
mov rdi, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 8
mov rcx, 0xffffffff80000001
mov rdx, rdi
mov r9d, 0xb
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
je 0x1400325b8
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
lea rdx, str.RegistrySetValueQword
mov ecx, edi
mov r8d, 0xed
call fcn.14002fad0
jmp 0x1400325ba
xor edi, edi
mov dword [rsi], edi
mov rax, qword [rsp + 0x50]
cmp rax, 8
jb 0x1400325e2
mov rcx, qword [rsp + 0x38]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x140032629
call fcn.140058840
mov rax, qword [rsp + 0x80]
cmp rax, 8
jb 0x14003260b
mov rcx, qword [rsp + 0x68]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x140032649
call fcn.140058840
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140059960
mov rax, rsi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
mov rdx, rcx
add rdx, 0xfffffffffffffff8
mov rcx, qword [rcx - 8]
sub rdx, rcx
cmp rdx, 0x20
jae 0x140032669
add rax, rax
add rax, 0x29
mov rdx, rax
jmp 0x1400325dd
mov rdx, rcx
add rdx, 0xfffffffffffffff8
mov rcx, qword [rcx - 8]
sub rdx, rcx
cmp rdx, 0x20
jae 0x140032669
add rax, rax
add rax, 0x29
mov rdx, rax
jmp 0x140032606
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14003d790
Capabilities:
Check mutex on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov al, 1
cmp byte [rcx + 8], 0
jne 0x14003d863
mov rsi, rcx
mov rdi, qword [rcx]
test rdi, rdi
jne 0x14003d7e0
lea r8, str.MozillaFirefoxDefaultBrowserAgentRegistryMutex
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
mov rcx, qword [rsi]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14003d7d4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], rdi
test rdi, rdi
je 0x14003d86a
mov rcx, rdi
mov edx, 0xbb8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x14003d824
cmp eax, 0x80
je 0x14003d83f
test eax, eax
je 0x14003d858
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Failed_to_wait_on_registry_mutex:__X
lea rdx, str.Acquire
mov r8d, 0xb9
mov r9d, eax
call fcn.14002d890
jmp 0x14003d85c
lea rcx, str.Timed_out_waiting_for_registry_mutex
lea rdx, str.Acquire
mov r8d, 0xac
call fcn.14002d890
jmp 0x14003d85c
lea rcx, str.Found_abandoned_registry_mutex._Continuing...
lea rdx, str.Acquire
mov r8d, 0xb3
call fcn.14002d890
mov byte [rsi + 8], 1
cmp byte [rsi + 8], 0
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Couldnt_open_registry_mutex:__X
lea rdx, str.Acquire
mov r8d, 0xa2
mov r9d, eax
call fcn.14002d890
xor eax, eax
jmp 0x14003d863

Function at 0x14003e170
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rsi, rdx
mov rax, qword [0x1400a9028]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rdi, [rsp + 0x70]
mov qword [rdi], 0
mov qword [rsp + 0x20], rdi
lea rdx, str.SOFTWAREPoliciesMozillaFirefox
xor ebx, ebx
xor r8d, r8d
mov r9d, 0x20019
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rdi, qword [rdi]
test rdi, rdi
je 0x14003e25f
lea rax, [rsp + 0x6c]
mov dword [rax], ebx
lea rcx, [rsp + 0x68]
mov dword [rcx], ebx
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x38], rcx
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rax
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, 2
test eax, eax
jne 0x14003e254
lea rbx, [rsp + 0x64]
mov dword [rbx], 0xffffffff
lea rax, [rsp + 0x60]
mov dword [rax], 4
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0
mov rcx, rdi
xor edx, edx
mov r8, rsi
mov r9d, 0x10
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
xor ecx, ecx
cmp dword [rbx], 0
sete cl
test eax, eax
mov ebx, 2
cmove ebx, ecx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14003e264
mov ebx, 2
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140059960
mov eax, ebx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret