joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400071c0
Capabilities:
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r14, r9
mov rbx, r8
mov rsi, rcx
mov rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rcx], rdx
mov qword [rcx + 0x10], 0
mov qword [rcx + 0x18], 2
lea rax, [rcx + 0x20]
mov qword [rcx + 8], rax
mov eax, dword [0x140064af4]
mov ecx, dword [0x1400624b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400072db
mov edi, dword [0x140064af0]
lea rax, [rbx + r14]
dec rax
xor edx, edx
div rdi
mov rcx, rax
mov rax, rbx
xor edx, edx
div rdi
inc rcx
sub rcx, rax
je 0x1400072ba
mov rbx, rax
lea r14, [rsi + 8]
imul rbx, rdi
cmp rcx, 2
mov r12d, 1
cmovae r12, rcx
lea r15, [rsp + 0x20]
mov r13, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, rbx
mov rdx, rdi
mov r8d, 0x40
mov r9, r15
call r13
test eax, eax
je 0x14000731c
mov ebp, dword [rsp + 0x20]
mov rax, qword [rsi + 0x10]
cmp rax, qword [rsi + 0x18]
je 0x14000732e
mov rcx, qword [rsi + 8]
shl rax, 4
mov dword [rcx + rax], ebp
mov qword [rcx + rax + 8], rbx
inc qword [rsi + 0x10]
add rbx, rdi
dec r12
jne 0x140007272
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14002fbe0
mov rax, rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140064af4]
call fcn.14002eaa8
cmp dword [0x140064af4], 0xffffffff
jne 0x140007228
lea rdi, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 4]
mov dword [0x140064af0], eax
lea rcx, [0x140064af4]
call fcn.14002ea48
jmp 0x140007228
mov dword [rsp + 0x20], 0
mov rcx, rsi
call fcn.1400521f0
jmp 0x1400072ba
mov rcx, r14
call fcn.140034b00
test al, al
je 0x140007324
mov rax, qword [rsi + 0x10]
jmp 0x14000729e
Function at 0x14000c770
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
cmp qword [rcx], rdx
je 0x14000c825
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r14, qword [rsi]
lea rax, [r14 + 1]
cmp rax, 2
jae 0x14000c7f9
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14000c7e5
mov qword [rsi], rdi
call fcn.14000c880
mov r15, rax
mov r14, qword [rsp + 0x58]
cmp qword [0x140064628], 0
je case.default.0x14000c7f2
mov rcx, qword [0x140064628]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
mov qword [rsp + 0x20], r15
mov rdx, rdi
mov r8, rsi
mov r9, r14
call qword [0x140068010]
mov ecx, ebx
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.14000c880
mov r8, qword [rsp + 0x58]
mov rcx, r14
mov rdx, rsi
mov r9, rax
call fcn.140001040
mov rcx, qword [rsi]
call fcn.140001a50
mov qword [rsi], 0
jmp 0x14000c79f
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetHandleVerifier
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000c868
lea rcx, [sym.firefox.exe_GetHandleVerifier]
cmp rax, rcx
jne 0x14000c86c
xor ecx, ecx
mov dl, 1
call fcn.14000e130
jmp 0x14000c7c3
xor ecx, ecx
jmp 0x14000c875
call qword [0x140068010]
mov rcx, rax
xor edx, edx
jmp 0x14000c85e
invalid
movsd dword [rdi], dword [rsi]
invalid
jae 0x1400bced8
Function at 0x14000e310
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x148
mov rsi, rcx
mov rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov eax, 0xffffffff
mov qword [rcx], rax
mov ecx, dword [0x140062080]
cmp ecx, 0xffffffff
je 0x14000e34b
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14000e350
call fcn.14000e890
mov eax, dword [0x140064618]
mov ecx, dword [0x1400624b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x14000e3aa
lea rcx, [0x140064618]
call fcn.14002eaa8
cmp dword [0x140064618], 0xffffffff
jne 0x14000e3aa
mov ecx, 8
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rax], 0
mov qword [0x140064610], rax
lea rcx, [0x140064618]
call fcn.14002ea48
mov rdi, qword [0x140064610]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rax, qword [0x140062e08]
inc rax
xor ecx, ecx
lea rdx, [0x140062e10]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x14000e44e
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], 0
mov qword [0x140062e08], r8
mov dword [rsi], r8d
mov eax, dword [rax + 0x10]
mov dword [rsi + 4], eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [rsi]
mov dword [rsp + 0x28], 0xffffffff
mov dword [rsp + 0x24], eax
cmp eax, 0xffffffff
je 0x14000e460
mov dword [rsp + 0x28], 0x100
mov dword [rsp + 0x24], eax
cmp eax, 0xff
jg 0x14000e4a2
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14002fbe0
mov rax, rsi
add rsp, 0x148
pop rdi
pop rsi
ret
inc rcx
cmp rcx, 0x100
jne 0x14000e3cd
jmp 0x14000e402
lea r8, str.slot____kInvalidSlotValue
lea rcx, [rsp + 0x24]
lea rdx, [rsp + 0x28]
call fcn.14003aad0
lea rdx, str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x196
mov r9, rax
call fcn.14003a7b0
mov rcx, rdi
call fcn.14003a850
mov eax, dword [rsi]
jmp 0x14000e41e
lea r8, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x24]
lea rdx, [rsp + 0x28]
call fcn.14003aad0
lea rdx, str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x197
mov r9, rax
call fcn.14003a7b0
mov rcx, rdi
call fcn.14003a850
jmp 0x14000e431
Function at 0x140010c50
Capabilities:
Encode data using base64

Disassembly:
push rsi
sub rsp, 0x20
cmp byte [rcx + 0x6c], 0
je 0x140010c91
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
jne 0x140010c7b
mov rcx, rsi
mov r8, rax
add rsp, 0x20
pop rsi
jmp fcn.140010ca0
mov r8d, 0x44
mov rcx, rdx
mov rdx, rax
call sub.ntdll.dll_memcpy
add qword [rsi + 8], 0x44
add rsp, 0x20
pop rsi
ret

Function at 0x140010ca0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rcx]
mov r13, qword [rsi + 8]
sub r13, rcx
sar r13, 2
movabs r9, 0xf0f0f0f0f0f0f0f1
mov rax, rdx
sub rax, rcx
movabs rdx, 0x7878787878787879
imul rdx
mov r15, rdx
imul r13, r9
inc r13
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
sar rdx, 2
imul rdx, r9
mov rax, rdx
shr rax, 1
movabs rcx, 0x3c3c3c3c3c3c3c3
mov r9, rcx
sub r9, rax
add rax, rdx
cmp rax, r13
cmovbe rax, r13
cmp rdx, r9
cmova rax, rcx
cmp rax, rcx
ja 0x140010e08
mov r12, r8
mov rcx, r15
shr rcx, 0x3f
sar r15, 5
add r15, rcx
mov rcx, rax
shl rcx, 6
lea rbx, [rcx + rax*4]
cmp rax, 0x3d
jae 0x140010e0d
test rax, rax
je 0x140010e27
mov rcx, rbx
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov r14, rax
mov rax, r15
shl rax, 6
lea rbp, [rax + r15*4]
lea rcx, [r14 + rbp]
mov r8d, 0x44
mov rdx, r12
call sub.ntdll.dll_memcpy
mov r15, qword [rsi]
mov r12, qword [rsi + 8]
cmp r12, rdi
jne 0x140010e2f
cmp r15, rdi
je 0x140010dba
mov r12, r14
mov r8d, 0x44
mov rcx, r12
mov rdx, r15
call sub.ntdll.dll_memcpy
add r12, 0x44
add r15, 0x44
cmp r15, rdi
jne 0x140010d99
mov rdi, qword [rsi]
test rdi, rdi
je 0x140010ddb
mov rdx, qword [rsi + 0x10]
sub rdx, rdi
cmp rdx, 0x1000
jae 0x140010e8d
mov rcx, rdi
call sub.mozglue.dll_void___cdecl_operator_delete_void____ptr64__unsigned_long_long_unsigned___int64__
mov qword [rsi], r14
mov rax, r13
shl rax, 6
lea rax, [rax + r13*4]
add rax, r14
mov qword [rsi + 8], rax
add rbx, r14
mov qword [rsi + 0x10], rbx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140034370
lea rcx, [rbx + 0x27]
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x140010d64
xor r14d, r14d
jmp 0x140010d64
cmp r15, rdi
je 0x140010e59
mov r12, r14
mov r8d, 0x44
mov rcx, r12
mov rdx, r15
call sub.ntdll.dll_memcpy
add r12, 0x44
add r15, 0x44
cmp r15, rdi
jne 0x140010e37
mov r12, qword [rsi + 8]
cmp r12, rdi
je 0x140010db7
lea r15, [r14 + rbp]
add r15, 0x44
mov r8d, 0x44
mov rcx, r15
mov rdx, rdi
call sub.ntdll.dll_memcpy
add rdi, 0x44
add r15, 0x44
cmp rdi, r12
jne 0x140010e6a
jmp 0x140010db7
mov rax, qword [rdi - 8]
add rdi, 0xfffffffffffffff8
sub rdi, rax
cmp rdi, 0x20
jae 0x140010eaa
add rdx, 0x27
mov rdi, rax
jmp 0x140010dd3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140012210
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140062080]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14001224e
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x140012247
call fcn.14000e890
jmp 0x14001222e
Function at 0x1400148e0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov ebx, edx
mov rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r13, qword [rcx + 0x10]
mov eax, edx
cmp r13, rax
ja 0x140014aaa
mov rsi, rcx
lea rdi, [rcx + 8]
cmp rax, 0x21
mov r14d, 0x20
cmovae r14, rax
mov rbx, r14
sub rbx, r13
jbe 0x14001497d
mov rcx, qword [rsi + 0x18]
sub rcx, r13
mov rax, r13
cmp rcx, rbx
jb 0x140014ad0
test rbx, rbx
jle 0x140014977
mov rdx, qword [rsi + 8]
lea rcx, [rdx + rax]
add r14, rcx
sub r14, r13
add rax, rdx
inc rax
cmp r14, rax
cmovbe r14, rax
sub r14, rcx
xor edx, edx
mov r8, r14
call sub.ntdll.dll_memset
mov rax, qword [rsi + 0x10]
add rax, rbx
mov r14, rax
mov qword [rsi + 0x10], r14
mov r12, qword [rsi]
cmp qword [r12], 0
mov qword [rsp + 0x48], rdi
je 0x140014b3e
mov r14, qword [rsi + 0x40]
add r14, r13
mov r8, qword [rsi + 8]
add r8, r13
mov eax, dword [0x140064af4]
mov ecx, dword [0x1400624b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140014aec
add rbx, r14
cmp rbx, r14
jbe 0x140014b3e
mov eax, dword [0x140064af0]
mov qword [rsp + 0x40], rax
lea edi, [rax - 1]
mov qword [rsp + 0x38], rdi
not rdi
mov qword [rsp + 0x30], rdi
lea rbp, [rsp + 0x50]
mov r15, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov qword [rsp + 0x50], 0
mov r9, rbx
sub r9, r14
mov rcx, qword [r12]
mov qword [rsp + 0x20], rbp
mov rdx, r14
mov rdi, r8
call r15
test eax, eax
je 0x140014b45
mov rax, qword [rsp + 0x50]
lea rbx, [rax + r13]
add rax, r13
inc rax
mov rdi, qword [rsi + 0x10]
mov r14, rax
sub r14, rdi
jbe 0x140014a9e
mov rcx, qword [rsi + 0x18]
sub rcx, rdi
mov rax, rdi
cmp rcx, r14
jae 0x140014a66
mov rcx, qword [rsp + 0x48]
mov rdx, r14
call fcn.140014b90
test al, al
je 0x140014b73
mov rax, qword [rsi + 0x10]
test r14, r14
jle 0x140014a9b
mov rdx, qword [rsi + 8]
lea rcx, [rdx + rax]
lea r8, [rbx + rax]
add r8, rdx
sub r8, rdi
inc r8
add rax, rdx
inc rax
cmp r8, rax
cmovbe r8, rax
sub r8, rcx
xor edx, edx
call sub.ntdll.dll_memset
mov rax, qword [rsi + 0x10]
add rax, r14
mov qword [rsi + 0x10], rax
mov rax, qword [rsi + 8]
mov byte [rax + rbx], 0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14002fbe0
mov eax, ebx
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rdi
mov rdx, rbx
call fcn.140014b90
test al, al
je 0x140014b7e
mov rax, qword [rsi + 0x10]
jmp 0x140014946
lea rcx, [0x140064af4]
mov rbp, r12
mov r15, r8
call fcn.14002eaa8
mov r8, r15
cmp dword [0x140064af4], 0xffffffff
jne 0x1400149c7
lea r12, [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [r12 + 4]
mov dword [0x140064af0], eax
lea rcx, [0x140064af4]
call fcn.14002ea48
mov r8, r15
mov r12, rbp
jmp 0x1400149c7
xor eax, eax
jmp 0x140014a28
mov rax, rbx
and rax, qword [rsp + 0x30]
mov rcx, rbx
sub rcx, qword [rsp + 0x40]
test dword [rsp + 0x38], ebx
cmovne rcx, rax
xor eax, eax
mov rbx, rcx
cmp rcx, r14
mov r8, rdi
ja 0x1400149fa
jmp 0x140014a28
int3
int3
Function at 0x1400185b0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x140064af4]
mov ecx, dword [0x1400624b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140018666
mov rbx, qword [rsi + 0x10]
test rbx, rbx
je 0x140018640
mov r14, qword [rsi + 8]
mov edi, dword [0x140064af0]
shl rbx, 4
xor r15d, r15d
lea r12, [rsp + 0x28]
mov r13, qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rax, qword [rsi]
mov rcx, qword [rax]
test rcx, rcx
je 0x140018637
mov rdx, qword [r14 + r15 + 8]
mov r9d, dword [r14 + r15]
mov qword [rsp + 0x20], r12
mov r8, rdi
call r13
add r15, 0x10
cmp rbx, r15
jne 0x140018618
mov qword [rsi + 0x10], 0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002fbe0
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140064af4]
call fcn.14002eaa8
cmp dword [0x140064af4], 0xffffffff
jne 0x1400185f2
lea rdi, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 4]
mov dword [0x140064af0], eax
lea rcx, [0x140064af4]
call fcn.14002ea48
jmp 0x1400185f2
Function at 0x140018740
Capabilities:
Access peb ldr_data
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r15, r9
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov qword [rcx], rdx
mov qword [rcx + 0x10], 0
mov qword [rcx + 0x18], 2
lea rax, [rcx + 0x20]
mov qword [rcx + 8], rax
mov eax, dword [0x140064af4]
mov ecx, dword [0x1400624b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140018876
mov ebx, dword [0x140064af0]
lea rax, [r14 + r15]
dec rax
xor edx, edx
div rbx
mov rcx, rax
mov rax, r14
xor edx, edx
div rbx
inc rcx
sub rcx, rax
je 0x140018855
mov r14, rax
lea rax, [rsi + 8]
mov qword [rsp + 0x28], rax
imul r14, rbx
cmp rcx, 2
mov r12d, 1
cmovae r12, rcx
lea r13, [rsp + 0x30]
mov rbp, qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400188bf
mov qword [rsp + 0x20], r13
mov rdx, r14
mov r8, rbx
mov r9d, 0x40
call rbp
test eax, eax
je 0x1400188b7
mov r15d, dword [rsp + 0x30]
mov rax, qword [rsi + 0x10]
cmp rax, qword [rsi + 0x18]
je 0x1400188c9
mov rcx, qword [rsi + 8]
shl rax, 4
mov dword [rcx + rax], r15d
mov qword [rcx + rax + 8], r14
inc qword [rsi + 0x10]
add r14, rbx
dec r12
jne 0x1400187fe
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14002fbe0
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140064af4]
call fcn.14002eaa8
cmp dword [0x140064af4], 0xffffffff
jne 0x1400187ab
lea rbx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 4]
mov dword [0x140064af0], eax
lea rcx, [0x140064af4]
call fcn.14002ea48
jmp 0x1400187ab
mov dword [rsp + 0x30], 0
mov rcx, rsi
call fcn.1400185b0
jmp 0x140018855
mov rcx, qword [rsp + 0x28]
call fcn.140034b00
test al, al
je 0x1400188bf
mov rax, qword [rsi + 0x10]
jmp 0x140018838
Function at 0x14001c560
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
cmp dword [rcx + 0x10], 0
mov rcx, qword [rcx]
je 0x14001c69d
mov edx, 0x32
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsi]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsi + 0x38]
mov qword [rsi + 0x38], 0
test rdi, rdi
je 0x14001c5b1
mov rcx, rdi
call fcn.14001c730
mov rcx, rdi
call fcn.140052600
mov rcx, qword [rsi + 0x58]
test rcx, rcx
jne 0x14001c6c2
mov rcx, qword [rsi + 0x50]
test rcx, rcx
je 0x14001c5cd
call qword [sym.imp.mozglue.dll_free]
mov rdi, qword [rsi + 0x38]
test rdi, rdi
jne 0x14001c706
mov rdi, qword [rsi + 0x28]
lea rax, [rdi + 1]
cmp rax, 2
jae 0x14001c613
mov rdi, qword [rsi + 0x20]
lea rax, [rdi + 1]
cmp rax, 2
jae 0x14001c640
mov rdi, qword [rsi + 0x18]
lea rax, [rdi + 1]
cmp rax, 2
jae 0x14001c66d
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14000d750
lea rbx, [rsi + 0x28]
call fcn.14000c880
mov r8, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rbx
mov r9, rax
call fcn.140001040
mov rcx, qword [rbx]
call fcn.140001a50
mov qword [rbx], 0
jmp 0x14001c5e8
lea rbx, [rsi + 0x20]
call fcn.14000c880
mov r8, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rbx
mov r9, rax
call fcn.140001040
mov rcx, qword [rbx]
call fcn.140001a50
mov qword [rbx], 0
jmp 0x14001c5f6
lea rbx, [rsi + 0x18]
call fcn.14000c880
mov r8, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rbx
mov r9, rax
call fcn.140001040
mov rcx, qword [rbx]
call fcn.140001a50
mov qword [rbx], 0
jmp 0x14001c604
test rcx, rcx
jne 0x14001c577
cmp dword [rsi + 0x14], 0
jne 0x14001c577
cmp qword [rsi + 8], 0
je 0x14001c590
xor ecx, ecx
jmp 0x14001c577
mov rdx, qword [rsi + 0x68]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14001c6ea
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x14001c71b
add rdx, 0x27
mov rcx, rax
lea rdi, [rsi + 0x58]
call sub.mozglue.dll_void___cdecl_operator_delete_void____ptr64__unsigned_long_long_unsigned___int64__
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
jmp 0x14001c5be
mov rcx, rdi
call fcn.14001c730
mov rcx, rdi
call fcn.140052600
jmp 0x14001c5da
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140020500
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x3c], 8
cmp qword [r8 + 0x18], 8
jb 0x140020529
mov r8, qword [r8]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
mov rcx, rdx
mov rdx, r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002056e
cmp dword [rsp + 0x38], 0xb
jne 0x140020591
mov rax, qword [rsp + 0x40]
mov byte [rsi + 0x10], 0
mov qword [rsi], rax
mov byte [rsi + 8], 1
jmp 0x14002057d
cmp eax, 2
jne 0x1400205af
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov byte [rsi + 0x10], 0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14002fbe0
nop
add rsp, 0x50
pop rsi
ret
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
movabs rax, 0x8007065d00000043
mov qword [rsi + 8], rax
jmp 0x14002057d
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x3f
mov dword [rsi + 0xc], ecx
jmp 0x14002057d
Function at 0x140020f40
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140062030]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp byte [0x140062d34], 1
je 0x1400210c3
cmp qword [rdi + 0x20], 0
je 0x140021043
cmp byte [rdi + 8], 0
je 0x140020fce
mov rbx, qword [rdi]
mov rcx, rdi
call fcn.140021230
mov qword [rsp + 0x48], rbx
cmp qword [rax + 0x18], 8
jb 0x140020f94
mov rax, qword [rax]
mov rcx, qword [rdi + 0x20]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x20], rdx
mov dword [rsp + 0x28], 8
mov rdx, rax
xor r8d, r8d
mov r9d, 0xb
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400210f3
cmp byte [rdi + 8], 0
je 0x140020fce
mov byte [rdi + 8], 0
cmp byte [rdi + 0x18], 0
je 0x140021029
mov rbx, qword [rdi + 0x10]
mov rcx, rdi
call fcn.140021150
mov qword [rsp + 0x48], rbx
cmp qword [rax + 0x18], 8
jb 0x140020fef
mov rax, qword [rax]
mov rcx, qword [rdi + 0x20]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x20], rdx
mov dword [rsp + 0x28], 8
mov rdx, rax
xor r8d, r8d
mov r9d, 0xb
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400210f3
cmp byte [rdi + 0x18], 0
je 0x140021029
mov byte [rdi + 0x18], 0
mov byte [rsi + 0x10], 0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002fbe0
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
lea rdx, str.SOFTWAREMozillaFirefoxLauncher
mov rcx, 0xffffffff80000001
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002111e
mov rbx, qword [rsp + 0x48]
mov rcx, qword [rdi + 0x20]
test rcx, rcx
jne 0x140021144
mov qword [rdi + 0x20], rbx
mov eax, dword [rsp + 0x54]
dec eax
cmp eax, 1
jbe 0x140020f74
mov eax, 0xb4
mov ecx, 0x80070507
jmp 0x140021131
cmp byte [rdi + 0x18], 0
je 0x1400210cd
mov byte [rdi + 0x18], 0
mov rax, qword [rdi + 0x10]
mov qword [rdi], rax
mov al, byte [rdi + 0x18]
mov byte [rdi + 8], al
mov eax, dword [rdi + 0x19]
mov dword [rdi + 9], eax
movzx eax, word [rdi + 0x1d]
mov word [rdi + 0xd], ax
mov al, byte [rdi + 0x1f]
mov byte [rdi + 0xf], al
jmp 0x140021029
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x79
mov dword [rsi + 0xc], ecx
jmp 0x14002102d
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0xa5
mov byte [rsi + 0x10], 1
lea rdx, str._builds_worker_checkouts_gecko_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rdx
mov dword [rsi + 8], eax
jmp 0x140021116
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400210a4