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

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14006a188]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140019214
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14001927a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400192b1
test eax, eax
js 0x14001928b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400192a4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140014100
mov rcx, rax
call fcn.1400107a0
mov ecx, 7
int 0x29
ud2

Function at 0x140019c20
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140019c58
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.140019c70
nop
add rsp, 0x38
ret

Function at 0x140019c70
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x140019cb3
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140012e20]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.140057700
ud2
Function at 0x140023d00
Capabilities:
Link many functions at runtime

Disassembly:
push rsi
sub rsp, 0x20
lea rcx, str.SHELL32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140023df1
lea rdx, str.SetCurrentProcessExplicitAppUserModelID
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ac428], rax
test rax, rax
je 0x140023df1
lea rcx, str.PROPSYS.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140023df1
lea rdx, str.PropVariantToString
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ac430], rax
test rax, rax
je 0x140023df1
lea rcx, str.COMBASE.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140023df1
mov rsi, rax
lea rdx, str.RoGetActivationFactory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ac438], rax
test rax, rax
je 0x140023df1
lea rdx, str.WindowsCreateStringReference
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ac440], rax
test rax, rax
je 0x140023df1
lea rdx, str.WindowsGetStringRawBuffer
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ac498], rax
test rax, rax
je 0x140023df1
lea rdx, str.WindowsDeleteString
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ac448], rax
add rsp, 0x20
pop rsi
ret
Function at 0x140028ce0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rsi, r8
mov rdi, rdx
mov rax, qword [0x1400ac070]
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 0x140028e86
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 0x140028e86
movabs rax, 0x7fffffffffffffec
mov r15, qword [rdi + 0x10]
lea rcx, [r15 + rax]
add rcx, 0x19
cmp rcx, 3
jbe 0x140028ea5
mov rdx, qword [rdi]
mov r13, qword [rdi + 0x18]
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
lea rbp, [r15 + 4]
mov r12d, 7
mov r14, rbx
cmp rbp, 8
jb 0x140028ded
mov rcx, rbp
or rcx, 7
cmp rcx, 0xb
mov r12d, 0xa
cmovae r12, rcx
movabs rcx, 0x7ffffffffffffffe
cmp r12, rcx
cmovae r12, rcx
lea rcx, [r12 + r12]
cmp r12, 0x7ff
mov qword [rsp + 0x28], rdx
jb 0x140028dd7
cmp r12, rax
jae 0x140028eaa
add rcx, 0x29
call fcn.140055aa0
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x140028de3
add rcx, 2
call fcn.140055aa0
mov r14, rax
mov qword [rsp + 0x30], r14
mov rdx, qword [rsp + 0x28]
cmp r13, 8
cmovae rdi, rdx
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], r12
lea r8, [r15 + r15]
mov rcx, r14
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
movabs rax, 0x6b006e006c002e
mov qword [r14 + r15*2], rax
mov word [r14 + r15*2 + 8], 0
cmp qword [rsp + 0x48], 8
jb 0x140028e31
mov rbx, qword [rsp + 0x30]
mov edx, 0x104
mov rcx, rsi
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov rax, qword [rsp + 0x48]
cmp rax, 8
jb 0x140028e86
mov rcx, qword [rsp + 0x30]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140028e81
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140028eaf
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140055ae4
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140056a50
nop
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140059c60
call fcn.140059c80
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14002c3b0
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 ebp, r9d
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x48], rcx
mov rax, qword [0x1400ac070]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea r13, [rsp + 0xd0]
mov qword [rsp + 0x50], r13
call fcn.140001380
mov rcx, qword [rax]
or rcx, 2
mov qword [rsp + 0x28], r13
xor esi, esi
mov qword [rsp + 0x20], rsi
xor edx, edx
xor r8d, r8d
mov r9, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vswprintf]
test eax, eax
mov r15d, 0xffffffff
cmovns r15d, eax
inc r15d
lea r12, [r15 + r15]
mov rcx, r12
call fcn.140055adc
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, r12
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x50], r13
call fcn.140001380
mov rcx, qword [rax]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rsi
mov rdx, rdi
mov r8, r15
mov r9, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vswprintf]
lea r15, str.Error:__s___S:_d_
mov rcx, r15
mov rdx, rdi
mov r8, rbx
mov r9d, ebp
call fcn.1400589e0
cdqe
lea r12, [rax + 1]
lea r13, [rax + rax]
add r13, 2
mov rcx, r13
call fcn.140055adc
mov r14, rax
mov rcx, rax
xor edx, edx
mov r8, r13
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
mov rcx, r14
mov rdx, r12
mov r9, r15
call fcn.140058a60
xor ecx, ecx
mov rdx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x14002c514
mov rsi, rax
lea rax, [rsp + 0x58]
mov qword [rax], r14
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, rsi
mov dx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, r14
call fcn.140055ae4
mov rcx, rdi
call fcn.140055ae4
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140056a50
nop
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14002c660
Capabilities:
Delete registry key

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x1400ac070]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor eax, eax
lea rdi, [rsp + 0x48]
mov qword [rdi], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], 7
mov word [rdi], 0
lea r8, str.SOFTWAREMozillaFirefoxDefault_Browser_Agent
mov edx, 0x2e
mov rcx, rdi
call fcn.140059dc0
mov rax, qword [rdi + 0x10]
mov rcx, qword [rdi + 0x18]
cmp rax, rcx
jae 0x14002c82e
lea rdx, [rax + 1]
mov qword [rsp + 0x58], rdx
cmp rcx, 8
jb 0x14002c6d9
mov rcx, qword [rsp + 0x48]
jmp 0x14002c6de
lea rcx, [rsp + 0x48]
mov dword [rcx + rax*2], 0x5c
lea r15, [rsp + 0x28]
mov rcx, r14
mov rdx, r15
mov r8d, ebx
call fcn.14002cf40
mov r9, qword [r15 + 0x10]
cmp qword [r15 + 0x18], 8
jb 0x14002c708
mov r15, qword [rsp + 0x28]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
mov rdx, rcx
sub rdx, rax
cmp rdx, r9
jb 0x14002c83d
lea rbx, [rax + r9]
mov qword [rsp + 0x58], rbx
cmp rcx, 8
jb 0x14002c735
mov rdi, qword [rsp + 0x48]
lea rcx, [rdi + rax*2]
add r9, r9
mov rdx, r15
mov r8, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rdi + rbx*2], 0
mov rax, qword [rsp + 0x40]
cmp rax, 8
jb 0x14002c795
mov rcx, qword [rsp + 0x28]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x14002c790
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14002c852
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140055ae4
cmp qword [rsp + 0x60], 8
jb 0x14002c7a4
mov rdx, qword [rsp + 0x48]
jmp 0x14002c7a9
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 [rsi], edx
mov rax, qword [rsp + 0x60]
cmp rax, 8
jb 0x14002c814
mov rcx, qword [rsp + 0x48]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x14002c80f
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14002c852
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140055ae4
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140056a50
nop
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [rsp + 0x48]
call fcn.14005a5e0
jmp 0x14002c6e5
lea rcx, [rsp + 0x48]
mov rdx, r9
mov r8, r15
call fcn.14005a2a0
jmp 0x14002c74d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14002d830
Capabilities:
Access the windows event log
Delete registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov rsi, rcx
mov rax, qword [0x1400ac070]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rdi, [rsp + 0x90]
mov rcx, rdi
call fcn.14002cb30
mov eax, dword [rdi + 0x20]
test eax, eax
je 0x14002d896
mov dword [rsi], eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140056a50
nop
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movups xmm0, xmmword [rsp + 0x90]
movups xmm1, xmmword [rsp + 0xa0]
movaps xmmword [rsp + 0x80], xmm1
movaps xmmword [rsp + 0x70], xmm0
xor edi, edi
lea rbx, [rsp + 0x50]
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], 0
lea r8, str.SOFTWAREMozillaFirefoxDefault_Browser_Agent
mov edx, 0x2e
mov rcx, rbx
call fcn.140059dc0
cmp qword [rsp + 0x88], 8
jb 0x14002d8f4
mov r8, qword [rsp + 0x70]
jmp 0x14002d8f9
lea r8, [rsp + 0x70]
cmp qword [rsp + 0x68], 8
jb 0x14002d906
mov rbx, qword [rsp + 0x50]
mov rcx, 0xffffffff80000001
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyValueW]
test eax, eax
jne 0x14002d9bc
mov dword [rsi], edi
mov rax, qword [rsp + 0x68]
cmp rax, 8
jb 0x14002d968
mov rcx, qword [rsp + 0x50]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x14002d963
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14002da9e
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140055ae4
mov rax, qword [rsp + 0x88]
cmp rax, 8
jb 0x14002d871
mov rcx, qword [rsp + 0x70]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x14002d9b2
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14002da9e
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140055ae4
jmp 0x14002d871
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov r14, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea r15, str.0x_X_in__S:_d
lea r12, str.RegistryDeleteValue
mov rcx, r15
mov edx, edi
mov r8, r12
mov r9d, 0x140
call fcn.1400589e0
cdqe
lea r13, [rax + 1]
lea rbp, [rax + rax]
add rbp, 2
mov rcx, rbp
call fcn.140055adc
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, rbp
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x30], 0x140
mov rcx, rbx
mov rdx, r13
mov r9, r15
call fcn.140058a60
xor ecx, ecx
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x14002da91
mov r14, rax
lea rax, [rsp + 0xb8]
mov qword [rax], rbx
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, r14
mov dx, 1
xor r8d, r8d
mov r9d, edi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, rbx
call fcn.140055ae4
jmp 0x14002d91e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14003b520
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rsi, rdx
mov rax, qword [0x1400ac070]
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 0x14003b60f
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 0x14003b604
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 0x14003b614
mov ebx, 2
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140056a50
mov eax, ebx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003d580
Capabilities:
Check mutex on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov al, 1
cmp byte [rcx + 8], 0
jne 0x14003d664
mov rsi, rcx
mov rdi, qword [rcx]
test rdi, rdi
jne 0x14003d5d0
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 0x14003d5c4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], rdi
test rdi, rdi
je 0x14003d66b
mov rcx, rdi
mov edx, 0xbb8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x14003d617
cmp eax, 0x80
je 0x14003d639
test eax, eax
je 0x14003d659
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, 0xbb
jmp 0x14003d632
mov rcx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea rdx, str.Timed_out_waiting_for_registry_mutex
lea r8, str.Acquire
mov r9d, 0xae
call fcn.14002c3b0
jmp 0x14003d65d
mov rcx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea rdx, str.Found_abandoned_registry_mutex._Continuing...
lea r8, str.Acquire
mov r9d, 0xb5
call fcn.14002c3b0
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, 0xa4
call fcn.14002c3b0
xor eax, eax
jmp 0x14003d664
Function at 0x14003fdf0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x14003fe26
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x14003fe2e
mov esi, dword [rdx]
mov r9d, 4
jmp 0x14003fe33
xor r10d, r10d
jmp 0x14003fee1
xor r9d, r9d
xor esi, esi
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x14003fe56
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x14003fe6d
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x14003fe8d
add r11, r8
jmp 0x14003ffb1
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x14003ff55
mov r9, qword [rax]
mov rcx, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
add r9, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, r9
rol r9, 0x20
xor rdi, rbx
add rcx, rdi
rol rdi, 0x10
xor rdi, rcx
add r9, rdi
rol rdi, 0x15
add rcx, rsi
rol rsi, 0x11
xor rsi, rcx
rol rcx, 0x20
xor rdi, r9
xor r9, rbx
add r10, 8
cmp r10, r8
jb 0x14003ff03
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax], r9
mov qword [rax + 8], rcx
cmp r11d, 3
jbe 0x14003ff67
mov r9d, dword [rdx + r10]
mov r8d, 4
jmp 0x14003ff6d
xor r8d, r8d
xor r9d, r9d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x14003ff93
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x14003ffad
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400553f0
Capabilities:
Link many functions at runtime

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rbx, qword [0x1400ac558]
test rbx, rbx
jne 0x14005553a
lea rcx, [0x14007e855]
call sub.KERNEL32.dll_GetModuleHandleA
test rax, rax
je 0x140055452
mov rdi, rax
lea rdx, str.WaitOnAddress
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140055452
mov rsi, rax
lea rdx, str.WakeByAddressSingle
mov rcx, rdi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140055452
mov r14, rax
xor edi, edi
jmp 0x1400554dd
lea rcx, [0x14007e810]
call sub.KERNEL32.dll_GetModuleHandleA
test rax, rax
je 0x140055547
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140055547
mov rbx, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140055547
mov rdi, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140055547
mov rsi, rax
lea rcx, [rsp + 0x20]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
mov rax, rbx
call qword [0x1400b0010]
test eax, eax
jne 0x140055547
mov r14, qword [rsp + 0x20]
mov al, byte [0x1400ac511]
mov ecx, 0x18
mov edx, 8
call fcn.140017290
test rax, rax
je 0x14005554c
mov rbx, rax
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r14
xor eax, eax
lock cmpxchg qword [0x1400ac558], rbx
je 0x14005553a
mov rsi, rax
cmp qword [rbx], 0
je 0x140055524
mov rcx, qword [rbx + 0x10]
call sub.KERNEL32.dll_CloseHandle
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call fcn.140017320
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140064b00
mov ecx, 8
mov edx, 0x18
call fcn.1400588b0
int3
Function at 0x140058ae0
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x2f8
mov rax, qword [0x1400ac070]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
xor esi, esi
lea rdi, [rsp + 0xe0]
mov r8d, 0x20a
mov rcx, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rdi
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140058b4c
lea rcx, [rsp + 0xe0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add rax, 0xffffffffffffff07
cmp rax, 0xfffffffffffffefc
jae 0x140058b6f
xor esi, esi
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.140056a50
mov eax, esi
add rsp, 0x2f8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rdx, str.control.exe
lea rcx, [rsp + 0xe0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor esi, esi
test eax, eax
je 0x140058b4c
lea rdi, [rsp + 0xd8]
mov qword [rdi], rsi
mov rcx, rdi
call fcn.1400588c0
mov rdi, qword [rdi]
lea r14, str.control.exe__name_Microsoft.DefaultPrograms__page_pageDefaultProgrampageAdvancedSettings_pszAppName_s
mov rcx, r14
mov rdx, rdi
call fcn.1400589e0
cdqe
lea r15, [rax + 1]
lea r12, [rax + rax]
add r12, 2
mov rcx, r12
call fcn.140055adc
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, r12
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x20], rdi
mov rcx, rbx
mov rdx, r15
mov r9, r14
call fcn.140058a60
xorps xmm0, xmm0
lea rax, [rsp + 0x70]
movaps xmmword [rax], xmm0
movaps xmmword [rax + 0x30], xmm0
movaps xmmword [rax + 0x40], xmm0
mov qword [rax + 0x60], rsi
movaps xmmword [rax + 0x50], xmm0
movaps xmmword [rax + 0x20], xmm0
movaps xmmword [rax + 0x10], xmm0
mov dword [rax], 0x68
mov dword [rax + 0x3c], 1
mov word [rax + 0x40], 0xa
lea rcx, [rsp + 0x50]
mov qword [rcx + 0x10], rsi
movaps xmmword [rcx], xmm0
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
lea rcx, [rsp + 0xe0]
mov rdx, rbx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne sil
je 0x140058c7a
mov rcx, qword [rsp + 0x50]
mov r14, qword [sym.imp.KERNEL32.dll_CloseHandle]
call r14
mov rcx, qword [rsp + 0x58]
call r14
mov rcx, rbx
call fcn.140055ae4
test rdi, rdi
je 0x140058b4c
mov rcx, rdi
call fcn.140055ae4
jmp 0x140058b4c