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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, r8
mov rdi, rdx
mov rax, qword [0x1400aa050]
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 0x14002b21c
lea r8, str.MicrosoftWindowsStart_MenuPrograms_
mov edx, 0x104
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
jne 0x14002b21c
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], 0
mov rbx, qword [rdi + 0x10]
lea rdx, [rbx + 4]
cmp rdx, 8
jb 0x14002b292
lea r14, [rsp + 0x30]
mov rcx, r14
call fcn.14005b470
mov qword [r14 + 0x10], 0
mov rbx, qword [rdi + 0x10]
mov rax, qword [r14 + 0x18]
cmp qword [rdi + 0x18], 8
jb 0x14002b154
mov rdi, qword [rdi]
cmp rax, rbx
jb 0x14002b234
mov qword [rsp + 0x40], rbx
cmp rax, 8
jb 0x14002b16f
mov r14, qword [rsp + 0x30]
jmp 0x14002b174
lea r14, [rsp + 0x30]
lea r8, [rbx + rbx]
mov rcx, r14
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [r14 + rbx*2], 0
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rdx, rcx
sub rdx, rax
cmp rdx, 4
jb 0x14002b24e
lea rdx, [rax + 4]
mov qword [rsp + 0x40], rdx
cmp rcx, 8
jb 0x14002b1ba
mov rcx, qword [rsp + 0x30]
jmp 0x14002b1bf
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 0x14002b1e3
mov r8, qword [rsp + 0x30]
jmp 0x14002b1e8
lea r8, [rsp + 0x30]
mov edx, 0x104
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov rax, qword [rsp + 0x48]
cmp rax, 8
jb 0x14002b21c
mov rcx, qword [rsp + 0x30]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x14002b272
call fcn.1400574f0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140058610
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.14005b590
jmp 0x14002b18a
mov qword [rsp + 0x20], 4
lea r9, str..lnk
lea rcx, [rsp + 0x30]
mov edx, 4
call fcn.14005b590
jmp 0x14002b1d4
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x14002b29c
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, rbx
jmp 0x14002b217
mov eax, 7
jmp 0x14002b14a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14002cdf0
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, 0x58
mov ebp, r9d
mov r13, r8
mov r12d, edx
mov r14, rcx
mov rax, qword [0x1400aa050]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea r15, str.0x_X_in__S:_d
mov rcx, r15
call fcn.14005a530
inc eax
movsxd rbx, eax
mov rsi, rbx
add rsi, rbx
mov rax, 0xffffffffffffffff
cmovb rsi, rax
mov rcx, rsi
call fcn.14005753c
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], r13
mov dword [rsp + 0x20], r12d
mov rcx, rdi
mov rdx, rbx
mov r8, 0xffffffffffffffff
mov r9, r15
call fcn.14005a5b0
xor ecx, ecx
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x14002ced2
mov rbx, rax
lea rax, [rsp + 0x48]
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, r12d
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, rdi
call fcn.1400574f0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140058610
nop
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14002cf00
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 r12d, r9d
mov r15, r8
mov rsi, rdx
mov qword [rsp + 0x48], rcx
mov rax, qword [0x1400aa050]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea r13, [rsp + 0xd0]
mov qword [rsp + 0x50], r13
call fcn.1400013f0
mov rcx, qword [rax]
or rcx, 2
mov qword [rsp + 0x28], r13
xor r14d, r14d
mov qword [rsp + 0x20], r14
xor edx, edx
xor r8d, r8d
mov r9, rsi
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.14005753c
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, rbp
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x50], r13
call fcn.1400013f0
mov rcx, qword [rax]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov rdx, rdi
mov r8, rbx
mov r9, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vswprintf]
lea r13, str.Error:__s___S:_d_
mov rcx, r13
mov rdx, rdi
mov r8, r15
mov r9d, r12d
call fcn.14005a530
inc eax
movsxd rbx, eax
mov rbp, rbx
add rbp, rbx
mov rax, 0xffffffffffffffff
cmovb rbp, rax
mov rcx, rbp
call fcn.14005753c
mov rsi, rax
mov rcx, rax
xor edx, edx
mov r8, rbp
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rdi
mov rcx, rsi
mov rdx, rbx
mov r8, 0xffffffffffffffff
mov r9, r13
call fcn.14005a5b0
xor ecx, ecx
mov rdx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x14002d072
mov rbx, rax
lea rax, [rsp + 0x58]
mov qword [rax], rsi
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, rsi
call fcn.1400574f0
mov rcx, rdi
call fcn.1400574f0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140058610
nop
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14002f180
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 [0x1400aa050]
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.14005b6e0
mov rax, qword [rdi + 0x10]
mov rcx, qword [rdi + 0x18]
cmp rax, rcx
jae 0x14002f32f
lea rdx, [rax + 1]
mov qword [rsp + 0x58], rdx
cmp rcx, 8
jb 0x14002f1f7
mov rcx, qword [rsp + 0x48]
jmp 0x14002f1fc
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.14002ea00
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 8
jb 0x14002f22c
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 0x14002f315
lea rsi, [rax + r8]
mov qword [rsp + 0x58], rsi
cmp rcx, 8
jb 0x14002f259
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 0x14002f298
mov rcx, qword [rsp + 0x28]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x14002f33e
call fcn.1400574f0
cmp qword [rsp + 0x60], 8
jb 0x14002f2a7
mov rdx, qword [rsp + 0x48]
jmp 0x14002f2ac
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 0x14002f2fa
mov rcx, qword [rsp + 0x48]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x14002f361
call fcn.1400574f0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140058610
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.14005b590
jmp 0x14002f26e
lea rcx, [rsp + 0x48]
call fcn.14005d7b0
jmp 0x14002f209
mov rbp, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbp
cmp rcx, 0x20
jae 0x14002f384
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, rbp
jmp 0x14002f293
mov rbp, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbp
cmp rcx, 0x20
jae 0x14002f384
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, rbp
jmp 0x14002f2f5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14002ff10
Capabilities:
Delete registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rsi, rcx
mov rax, qword [0x1400aa050]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rdi, [rsp + 0x60]
mov rcx, rdi
call fcn.140032020
mov eax, dword [rdi + 0x20]
test eax, eax
je 0x14002ff63
mov dword [rsi], eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140058610
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.14005b6e0
cmp qword [rsp + 0x58], 8
jb 0x14002ffc0
mov r8, qword [rsp + 0x40]
jmp 0x14002ffc5
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x38], 8
jb 0x14002ffd2
mov rbx, qword [rsp + 0x20]
mov rcx, 0xffffffff80000001
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyValueW]
test eax, eax
je 0x14003000f
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea r8, str.RegistryDeleteValue
mov edx, edi
mov r9d, 0x13f
call fcn.14002cdf0
mov dword [rsi], edi
mov rax, qword [rsp + 0x38]
cmp rax, 8
jb 0x140030037
mov rcx, qword [rsp + 0x20]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x140030066
call fcn.1400574f0
mov rax, qword [rsp + 0x58]
cmp rax, 8
jb 0x14002ff45
mov rcx, qword [rsp + 0x40]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x140030086
call fcn.1400574f0
jmp 0x14002ff45
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x1400300a6
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, rbx
jmp 0x140030032
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x1400300a6
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, rbx
jmp 0x14003005c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140032460
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov rsi, rcx
mov rax, qword [0x1400aa050]
xor rax, rsp
mov qword [rsp + 0xa8], rax
lea rdi, [rsp + 0x80]
mov rcx, rdi
call fcn.140032020
mov eax, dword [rdi + 0x20]
test eax, eax
je 0x1400324bc
mov word [rsi], 0
mov dword [rsi + 4], eax
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140058610
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 edi, edi
mov qword [rsp + 0x90], rdi
mov eax, 7
mov qword [rsp + 0x98], rax
mov word [rsp + 0x80], di
lea rbx, [rsp + 0x40]
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.14005b6e0
mov dword [rsp + 0x38], 4
cmp qword [rsp + 0x78], 8
jb 0x140032530
mov r8, qword [rsp + 0x60]
jmp 0x140032535
lea r8, [rsp + 0x60]
cmp qword [rsp + 0x58], 8
jb 0x140032542
mov rbx, 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], rdi
mov rcx, 0xffffffff80000001
mov rdx, rbx
mov r9d, 0x10
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x1400325ac
mov ecx, 0
cmp eax, 2
je 0x1400325bc
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea r8, str.RegistryGetValueBool
mov edx, edi
mov r9d, 0x98
call fcn.14002cdf0
xor ecx, ecx
jmp 0x1400325bc
xor ecx, ecx
cmp dword [rsp + 0x3c], 0
setne cl
or ecx, 0x100
mov word [rsi], cx
mov dword [rsi + 4], edi
mov rax, qword [rsp + 0x58]
cmp rax, 8
jb 0x1400325e8
mov rcx, qword [rsp + 0x40]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x140032617
call fcn.1400574f0
mov rax, qword [rsp + 0x78]
cmp rax, 8
jb 0x14003249e
mov rcx, qword [rsp + 0x60]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x140032637
call fcn.1400574f0
jmp 0x14003249e
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x140032657
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, rbx
jmp 0x1400325e3
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x140032657
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, rbx
jmp 0x14003260d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140032660
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 [0x1400aa050]
xor rax, rsp
mov qword [rsp + 0xb0], rax
lea rdi, [rsp + 0x88]
mov rcx, rdi
call fcn.140032020
mov eax, dword [rdi + 0x20]
test eax, eax
je 0x1400326bd
mov dword [rsi], eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140058610
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.14005b6e0
movzx eax, bl
mov dword [rsp + 0x3c], eax
cmp qword [rsp + 0x78], 8
jb 0x140032733
mov r8, qword [rsp + 0x60]
jmp 0x140032738
lea r8, [rsp + 0x60]
cmp qword [rsp + 0x58], 8
jb 0x140032745
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 0x14003279e
movzx r14d, ax
or r14d, 0x80070000
test eax, eax
cmovle r14d, eax
mov rcx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea r8, str.RegistrySetValueBool
mov edx, r14d
mov r9d, 0xb3
call fcn.14002cdf0
mov dword [rsi], r14d
mov rax, qword [rsp + 0x58]
cmp rax, 8
jb 0x1400327c7
mov rcx, qword [rsp + 0x40]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x1400327f6
call fcn.1400574f0
mov rax, qword [rsp + 0x78]
cmp rax, 8
jb 0x14003269d
mov rcx, qword [rsp + 0x60]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x140032816
call fcn.1400574f0
jmp 0x14003269d
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x140032836
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, rbx
jmp 0x1400327c2
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x140032836
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, rbx
jmp 0x1400327ec
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140032840
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rsi, rcx
mov rax, qword [0x1400aa050]
xor rax, rsp
mov qword [rsp + 0xb8], rax
lea rdi, [rsp + 0x90]
mov rcx, rdi
call fcn.140032020
mov eax, dword [rdi + 0x20]
test eax, eax
je 0x14003289d
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov dword [rsi + 0x10], eax
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140058610
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.14005b6e0
mov dword [rsp + 0x44], 8
cmp qword [rsp + 0x88], 8
jb 0x140032917
mov r8, qword [rsp + 0x70]
jmp 0x14003291c
lea r8, [rsp + 0x70]
cmp qword [rsp + 0x68], 8
jb 0x140032929
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 0x140032969
cmp eax, 2
jne 0x14003297e
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140032975
mov rax, qword [rsp + 0x48]
mov qword [rsi], rax
mov byte [rsi + 8], 1
mov dword [rsi + 0x10], 0
jmp 0x1400329b0
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea r8, str.RegistryGetValueQword
mov edx, edi
mov r9d, 0xd2
call fcn.14002cdf0
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov dword [rsi + 0x10], edi
mov rax, qword [rsp + 0x68]
cmp rax, 8
jb 0x1400329d6
mov rcx, qword [rsp + 0x50]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x140032a08
call fcn.1400574f0
mov rax, qword [rsp + 0x88]
cmp rax, 8
jb 0x14003287f
mov rcx, qword [rsp + 0x70]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x140032a28
call fcn.1400574f0
jmp 0x14003287f
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x140032a48
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, rbx
jmp 0x1400329d1
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x140032a48
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, rbx
jmp 0x1400329fe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14003dfd0
Capabilities:
Check mutex on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov al, 1
cmp byte [rcx + 8], 0
jne 0x14003e0b4
mov rsi, rcx
mov rdi, qword [rcx]
test rdi, rdi
jne 0x14003e020
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 0x14003e014
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], rdi
test rdi, rdi
je 0x14003e0bb
mov rcx, rdi
mov edx, 0xbb8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x14003e067
cmp eax, 0x80
je 0x14003e089
test eax, eax
je 0x14003e0a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
mov dword [rsp + 0x20], eax
lea rdx, str.Failed_to_wait_on_registry_mutex:__X
lea r8, str.Acquire
mov r9d, 0xb9
jmp 0x14003e082
mov rcx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea rdx, str.Timed_out_waiting_for_registry_mutex
lea r8, str.Acquire
mov r9d, 0xac
call fcn.14002cf00
jmp 0x14003e0ad
mov rcx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea rdx, str.Found_abandoned_registry_mutex._Continuing...
lea r8, str.Acquire
mov r9d, 0xb3
call fcn.14002cf00
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]
mov rcx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
mov dword [rsp + 0x20], eax
lea rdx, str.Couldnt_open_registry_mutex:__X
lea r8, str.Acquire
mov r9d, 0xa2
call fcn.14002cf00
xor eax, eax
jmp 0x14003e0b4

Function at 0x14003e970
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rsi, rdx
mov rax, qword [0x1400aa050]
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 0x14003ea5f
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 0x14003ea54
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 0x14003ea64
mov ebx, 2
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140058610
mov eax, ebx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret
Function at 0x140056d50
Capabilities:
Link many functions at runtime

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, qword [0x1400aa568]
test rdi, rdi
jne 0x140056e9f
lea rcx, [0x14007d43d]
call sub.KERNEL32.dll_GetModuleHandleA
test rax, rax
je 0x140056db7
mov rsi, rax
lea rdx, str.WaitOnAddress
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140056db7
mov rbx, rax
lea rdx, str.WakeByAddressSingle
mov rcx, rsi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140056db7
mov r15, rax
mov esi, 1
jmp 0x140056e44
lea rcx, [0x14007d3f8]
call sub.KERNEL32.dll_GetModuleHandleA
test rax, rax
je 0x140056eae
mov rbx, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140056eae
mov rdi, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140056eae
mov r15, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140056eae
mov r14, rax
lea rcx, [rsp + 0x28]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
mov rax, rdi
call qword [case.0x1400577ee.0]
test eax, eax
jne 0x140056eae
mov rbx, qword [rsp + 0x28]
xor esi, esi
mov ecx, 0x20
mov edx, 8
call fcn.1400180f0
test rax, rax
je 0x140056eb3
mov rdi, rax
mov qword [rax], rsi
mov qword [rax + 8], rbx
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r14
xor eax, eax
lock cmpxchg qword [0x1400aa568], rdi
je 0x140056e9f
mov rsi, rax
cmp qword [rdi], 0
jne 0x140056e89
mov rcx, qword [rdi + 8]
call sub.KERNEL32.dll_CloseHandle
mov edx, 0x20
mov r8d, 8
mov rcx, rdi
call fcn.140018180
mov rdi, rsi
mov rax, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140064270
mov ecx, 0x20
mov edx, 8
call fcn.140059960
int3