joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18010be1c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1801031a4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1801031a4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18010bf6c
cmp rax, 0xffffffffffffffff
je 0x18010bf6c
xor edi, edi
test rbp, rbp
jle 0x18010bf17
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800fd328
mov rbx, rax
test rax, rax
jne 0x18010bea4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18010bf0d
mov edx, 0x8000
mov ecx, r14d
call fcn.1800fa5f4
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.180101720
cmp eax, 0xffffffff
je 0x18010beed
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18010beb4
mov edx, r15d
mov ecx, r14d
call fcn.1800fa5f4
jmp 0x18010bf0d
cmp byte [rsi + 0x38], dil
je 0x18010bf04
cmp dword [rsi + 0x34], 5
jne 0x18010bf04
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
cmp byte [rsi + 0x30], dil
je 0x18010bf0d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800fd3a0
jmp 0x18010bf80
jns 0x18010bf80
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1801031a4
cmp rax, 0xffffffffffffffff
jne 0x18010bf38
cmp byte [rsi + 0x30], dil
je 0x18010bf80
mov edi, dword [rsi + 0x2c]
jmp 0x18010bf80
mov ecx, r14d
call fcn.1801036f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18010bf80
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
jmp 0x18010bf80
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18010bf79
mov eax, dword [rsi + 0x2c]
jmp 0x18010bf7e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1801031a4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400085a0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
cmp qword [rcx], rdx
je 0x140008655
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 0x140008629
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140008615
mov qword [rsi], rdi
call fcn.1400086b0
mov r15, rax
mov r14, qword [rsp + 0x58]
cmp qword [0x140043a68], 0
je case.default.0x140008622
mov rcx, qword [0x140043a68]
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 [0x140047010]
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.1400086b0
mov r8, qword [rsp + 0x58]
mov rcx, r14
mov rdx, rsi
mov r9, rax
call fcn.140001040
mov rcx, qword [rsi]
call fcn.140001700
mov qword [rsi], 0
jmp 0x1400085cf
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 0x140008698
lea rcx, [sym.plugin_container.exe_GetHandleVerifier]
cmp rax, rcx
jne 0x14000869c
xor ecx, ecx
mov dl, 1
call fcn.140009e20
jmp 0x1400085f3
xor ecx, ecx
jmp 0x1400086a5
call qword [0x140047010]
mov rcx, rax
xor edx, edx
jmp 0x14000868e
invalid
and edi, dword [rax - 0x1ae31167]
fist word [rdx - 0x6a]
xchg esi, eax
Function at 0x14000a000
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x148
mov rsi, rcx
mov rax, qword [0x140042028]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov eax, 0xffffffff
mov qword [rcx], rax
mov ecx, dword [0x140042038]
cmp ecx, 0xffffffff
je 0x14000a03b
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14000a040
call fcn.14000a580
mov eax, dword [0x140043a58]
mov ecx, dword [0x1400421a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x14000a09a
lea rcx, [0x140043a58]
call fcn.14001af18
cmp dword [0x140043a58], 0xffffffff
jne 0x14000a09a
mov ecx, 8
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rax], 0
mov qword [0x140043a50], rax
lea rcx, [0x140043a58]
call fcn.14001aeb8
mov rdi, qword [0x140043a50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rax, qword [0x140042248]
inc rax
xor ecx, ecx
lea rdx, [0x140042250]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x14000a13e
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], 0
mov qword [0x140042248], 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 0x14000a150
mov dword [rsp + 0x28], 0x100
mov dword [rsp + 0x24], eax
cmp eax, 0xff
jg 0x14000a192
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14001c1c0
mov rax, rsi
add rsp, 0x148
pop rdi
pop rsi
ret
inc rcx
cmp rcx, 0x100
jne 0x14000a0bd
jmp 0x14000a0f2
lea r8, str.slot____kInvalidSlotValue
lea rcx, [rsp + 0x24]
lea rdx, [rsp + 0x28]
call fcn.1400202a0
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.14001ff80
mov rcx, rdi
call fcn.140020020
mov eax, dword [rsi]
jmp 0x14000a10e
lea r8, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x24]
lea rdx, [rsp + 0x28]
call fcn.1400202a0
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.14001ff80
mov rcx, rdi
call fcn.140020020
jmp 0x14000a121
Function at 0x14000c940
Capabilities:
Encode data using base64

Disassembly:
push rsi
sub rsp, 0x20
cmp byte [rcx + 0x6c], 0
je 0x14000c981
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
jne 0x14000c96b
mov rcx, rsi
mov r8, rax
add rsp, 0x20
pop rsi
jmp fcn.14000c990
mov r8d, 0x44
mov rcx, rdx
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
add qword [rsi + 8], 0x44
add rsp, 0x20
pop rsi
ret

Function at 0x14000c990
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 0x14000caf8
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 0x14000cafd
test rax, rax
je 0x14000cb17
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.VCRUNTIME140.dll_memcpy
mov r15, qword [rsi]
mov r12, qword [rsi + 8]
cmp r12, rdi
jne 0x14000cb1f
cmp r15, rdi
je 0x14000caaa
mov r12, r14
mov r8d, 0x44
mov rcx, r12
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
add r12, 0x44
add r15, 0x44
cmp r15, rdi
jne 0x14000ca89
mov rdi, qword [rsi]
test rdi, rdi
je 0x14000cacb
mov rdx, qword [rsi + 0x10]
sub rdx, rdi
cmp rdx, 0x1000
jae 0x14000cb7d
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.14001eeb0
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 0x14000ca54
xor r14d, r14d
jmp 0x14000ca54
cmp r15, rdi
je 0x14000cb49
mov r12, r14
mov r8d, 0x44
mov rcx, r12
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
add r12, 0x44
add r15, 0x44
cmp r15, rdi
jne 0x14000cb27
mov r12, qword [rsi + 8]
cmp r12, rdi
je 0x14000caa7
lea r15, [r14 + rbp]
add r15, 0x44
mov r8d, 0x44
mov rcx, r15
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, 0x44
add r15, 0x44
cmp rdi, r12
jne 0x14000cb5a
jmp 0x14000caa7
mov rax, qword [rdi - 8]
add rdi, 0xfffffffffffffff8
sub rdi, rax
cmp rdi, 0x20
jae 0x14000cb9a
add rdx, 0x27
mov rdi, rax
jmp 0x14000cac3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14000d8a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140042038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14000d8de
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 0x14000d8d7
call fcn.14000a580
jmp 0x14000d8be
Function at 0x14000e9d0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, rdx
mov rax, qword [0x140042028]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [rcx + 8]
test rax, rax
je 0x14000ebd9
mov rdi, rcx
mov ebp, dword [rcx + 0x18]
shl ebp, 7
mov edx, ebp
or edx, 0x7f
mov ecx, dword [rcx + 0x14]
cmp edx, ecx
jb 0x14000ea98
cmp ecx, dword [rdi + 0x10]
jae 0x14000ebd9
mov eax, dword [0x140043f34]
mov ecx, dword [0x1400421a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000eb57
mov edx, dword [0x140043f30]
mov ecx, dword [rdi + 0x14]
add rcx, qword [rdi + 8]
mov r8d, 0x1000
mov r9d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x14000ebd9
mov eax, dword [0x140043f34]
mov ecx, dword [0x1400421a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000eb98
mov eax, dword [0x140043f30]
add dword [rdi + 0x14], eax
mov rax, qword [rdi + 8]
mov ecx, ebp
add rcx, rax
lea r9, [rsp + 0x30]
mov qword [r9 - 8], rdi
mov dword [r9], 0
mov qword [r9 + 8], rcx
mov qword [r9 + 0x10], rcx
xorps xmm0, xmm0
movups xmmword [r9 + 0x18], xmm0
mov dword [r9 + 0x28], 0x80
mov byte [r9 + 0x2c], 1
mov edx, 0x80
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14000ebf0
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x40]
test rcx, rcx
je 0x14000ebfd
mov r8, qword [rsp + 0x38]
mov r9d, dword [rsp + 0x30]
mov dl, byte [rsp + 0x5c]
test r8, r8
je 0x14000eb1a
test rax, rax
je 0x14000eb1a
test r9d, r9d
je 0x14000eb1a
test dl, dl
je 0x14000eb1a
inc dword [rdi + 0x18]
mov qword [rsi], rcx
mov dword [rsi + 8], r9d
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rax
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsi + 0x20], xmm0
mov eax, dword [rsp + 0x58]
mov dword [rsi + 0x30], eax
mov byte [rsi + 0x34], dl
mov byte [rsi + 0x38], 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001c1c0
nop
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x140043f34]
call fcn.14001af18
cmp dword [0x140043f34], 0xffffffff
jne 0x14000ea3e
lea rbx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 4]
mov dword [0x140043f30], eax
lea rcx, [0x140043f34]
call fcn.14001aeb8
jmp 0x14000ea3e
lea rcx, [0x140043f34]
call fcn.14001af18
cmp dword [0x140043f34], 0xffffffff
jne 0x14000ea8b
lea rbx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 4]
mov dword [0x140043f30], eax
lea rcx, [0x140043f34]
call fcn.14001aeb8
jmp 0x14000ea8b
xorps xmm0, xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi], xmm0
jmp 0x14000eb40
mov dword [rsp + 0x30], 0
jmp 0x14000eae3
mov r9d, dword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov dl, byte [rsp + 0x5c]
jmp 0x14000eb17
Function at 0x140011560
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 [0x140042028]
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 [0x140043f34]
mov ecx, dword [0x1400421a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001167b
mov edi, dword [0x140043f30]
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 0x14001165a
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 0x1400116bc
mov ebp, dword [rsp + 0x20]
mov rax, qword [rsi + 0x10]
cmp rax, qword [rsi + 0x18]
je 0x1400116ce
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 0x140011612
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001c1c0
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, [0x140043f34]
call fcn.14001af18
cmp dword [0x140043f34], 0xffffffff
jne 0x1400115c8
lea rdi, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 4]
mov dword [0x140043f30], eax
lea rcx, [0x140043f34]
call fcn.14001aeb8
jmp 0x1400115c8
mov dword [rsp + 0x20], 0
mov rcx, rsi
call fcn.140038080
jmp 0x14001165a
mov rcx, r14
call fcn.140037f50
test al, al
je 0x1400116c4
mov rax, qword [rsi + 0x10]
jmp 0x14001163e
Function at 0x140014f20
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 0x14001505d
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 0x140014f71
mov rcx, rdi
call fcn.1400150f0
mov rcx, rdi
call fcn.1400386c0
mov rcx, qword [rsi + 0x58]
test rcx, rcx
jne 0x140015082
mov rcx, qword [rsi + 0x50]
test rcx, rcx
je 0x140014f8d
call qword [sym.imp.mozglue.dll_free]
mov rdi, qword [rsi + 0x38]
test rdi, rdi
jne 0x1400150c6
mov rdi, qword [rsi + 0x28]
lea rax, [rdi + 1]
cmp rax, 2
jae 0x140014fd3
mov rdi, qword [rsi + 0x20]
lea rax, [rdi + 1]
cmp rax, 2
jae 0x140015000
mov rdi, qword [rsi + 0x18]
lea rax, [rdi + 1]
cmp rax, 2
jae 0x14001502d
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140009440
lea rbx, [rsi + 0x28]
call fcn.1400086b0
mov r8, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rbx
mov r9, rax
call fcn.140001040
mov rcx, qword [rbx]
call fcn.140001700
mov qword [rbx], 0
jmp 0x140014fa8
lea rbx, [rsi + 0x20]
call fcn.1400086b0
mov r8, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rbx
mov r9, rax
call fcn.140001040
mov rcx, qword [rbx]
call fcn.140001700
mov qword [rbx], 0
jmp 0x140014fb6
lea rbx, [rsi + 0x18]
call fcn.1400086b0
mov r8, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rbx
mov r9, rax
call fcn.140001040
mov rcx, qword [rbx]
call fcn.140001700
mov qword [rbx], 0
jmp 0x140014fc4
test rcx, rcx
jne 0x140014f37
cmp dword [rsi + 0x14], 0
jne 0x140014f37
cmp qword [rsi + 8], 0
je 0x140014f50
xor ecx, ecx
jmp 0x140014f37
mov rdx, qword [rsi + 0x68]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1400150aa
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x1400150db
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 0x140014f7e
mov rcx, rdi
call fcn.1400150f0
mov rcx, rdi
call fcn.1400386c0
jmp 0x140014f9a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140017880
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, r9
mov rdi, r8
mov rbx, rdx
mov r14, rcx
cmp byte [rcx + 0x1c], 0
jne 0x1400178c6
mov r15, qword [r14 + 0x20]
lea rcx, [0x14003ba90]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp byte [r14 + 0x1c], 0
jne 0x1400178c6
xor ecx, ecx
cmp r15, rax
sete cl
bts rcx, 0x20
mov qword [r14 + 0x18], rcx
mov rcx, r14
mov rdx, rbx
mov r8, rdi
mov r9, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.14000da60
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x140037666
mov rsi, r9
mov rdi, r8
mov r14, rdx
and rcx, 0xfffffffffffffffc
call fcn.140037680
test al, al
je 0x140037666
mov rcx, qword [rbx + 0x20]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140037666
mov r14, rax
mov rcx, rax
call fcn.140037680
test al, al
je 0x140037666
mov rcx, rbx
mov rdx, r14
mov r8, rdi
mov r9, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x140017880
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400178f0
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140042028]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x140043f34]
mov ecx, dword [0x1400421a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140017940
mov esi, dword [0x140043f30]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001c1c0
mov eax, esi
add rsp, 0x60
pop rsi
ret
lea rcx, [0x140043f34]
call fcn.14001af18
cmp dword [0x140043f34], 0xffffffff
jne 0x140017925
lea rsi, [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsi + 4]
mov dword [0x140043f30], eax
lea rcx, [0x140043f34]
call fcn.14001aeb8
jmp 0x140017925

Function at 0x140017980
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140042028]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x140043f44]
mov ecx, dword [0x1400421a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400179d0
mov esi, dword [0x140043f40]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001c1c0
mov eax, esi
add rsp, 0x60
pop rsi
ret
lea rcx, [0x140043f44]
call fcn.14001af18
cmp dword [0x140043f44], 0xffffffff
jne 0x1400179b5
lea rsi, [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsi + 0x28]
mov dword [0x140043f40], eax
lea rcx, [0x140043f44]
call fcn.14001aeb8
jmp 0x1400179b5
Function at 0x14001ea40
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140042028]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rcx, str.MOZ_ENABLE_HANDLE_VERIFIER
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x14001ea92
call fcn.14001eba0
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x18]
mov rcx, rax
mov rax, rdx
call qword [0x140047010]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001c1c0
nop
add rsp, 0x60
pop rsi
ret
movaps xmm0, xmmword [str.kernel32_]
movaps xmmword [rsp + 0x30], xmm0
movabs rax, 0x6c006c0064002e
mov qword [rsp + 0x40], rax
mov word [rsp + 0x48], 0
cmp qword [0x140043ec0], 0
jne 0x14001ead0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140043ec0], rax
lea r9, [rsp + 0x28]
mov qword [r9], 0
lea rax, [0x140043f10]
lea r8, [rsp + 0x30]
mov qword [r8], rax
lea rsi, [0x140043ea0]
mov qword [r8 + 8], rsi
lea rax, [0x14003a98e]
mov qword [r8 + 0x10], rax
lea rax, [0x1400385b0]
mov qword [r8 + 0x18], rax
mov byte [r8 + 0x20], 0
lea rcx, [0x140043f18]
lea rdx, [0x1400375c0]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14001ea66
cmp qword [rsp + 0x28], 0
je 0x14001ea66
lea r9, [rsp + 0x28]
mov qword [r9], 0
lea rax, [0x140043f20]
lea r8, [rsp + 0x30]
mov qword [r8], rax
mov qword [r8 + 8], rsi
lea rax, [0x14003a97e]
mov qword [r8 + 0x10], rax
lea rax, [0x1400385f0]
mov qword [r8 + 0x18], rax
mov byte [r8 + 0x20], 0
lea rcx, [0x140043f28]
lea rdx, [0x1400375c0]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14001ea66
cmp qword [rsp + 0x28], 0
jne 0x14001ea7e
jmp 0x14001ea66
Function at 0x140021930
Capabilities:
Read file via mapping

Disassembly:
test rdx, rdx
je 0x14002194d
mov rax, qword [rcx]
test rax, rax
je 0x14002194d
cmp rax, 0xffffffffffffffff
je 0x14002194d
cmp qword [rcx + 0x10], rdx
jae 0x140021bd0
xor eax, eax
ret
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, r9
mov rdi, r8
mov rbx, rcx
mov rax, qword [0x140042028]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor eax, eax
cmp dword [rcx + 8], 0
mov r14, rdx
setne al
lea ebp, [rax + rax]
add ebp, 4
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rdx
mov edx, ebp
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r15, rax
mov qword [rdi], rax
test rax, rax
je 0x140021c71
lea rdi, [rsp + 0x30]
mov r8d, 0x30
mov rcx, r15
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rcx, qword [rdi + 0x18]
sub rcx, r15
add rcx, qword [rdi + 8]
test rax, rax
cmove rcx, rax
mov qword [rsi], rcx
mov bl, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001c1c0
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rbx]
mov qword [rsp + 0x20], r14
xor ebx, ebx
mov edx, ebp
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r15, rax
mov qword [rdi], rax
test rax, rax
jne 0x140021c27
jmp 0x140021c55

Function at 0x140021bd0
Capabilities:
Read file via mapping

Disassembly:
test rdx, rdx
je 0x14002194d
mov rax, qword [rcx]
test rax, rax
je 0x14002194d
cmp rax, 0xffffffffffffffff
je 0x14002194d
cmp qword [rcx + 0x10], rdx
jae 0x140021bd0
xor eax, eax
ret
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, r9
mov rdi, r8
mov rbx, rcx
mov rax, qword [0x140042028]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor eax, eax
cmp dword [rcx + 8], 0
mov r14, rdx
setne al
lea ebp, [rax + rax]
add ebp, 4
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rdx
mov edx, ebp
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r15, rax
mov qword [rdi], rax
test rax, rax
je 0x140021c71
lea rdi, [rsp + 0x30]
mov r8d, 0x30
mov rcx, r15
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rcx, qword [rdi + 0x18]
sub rcx, r15
add rcx, qword [rdi + 8]
test rax, rax
cmove rcx, rax
mov qword [rsi], rcx
mov bl, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001c1c0
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rbx]
mov qword [rsp + 0x20], r14
xor ebx, ebx
mov edx, ebp
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r15, rax
mov qword [rdi], rax
test rax, rax
jne 0x140021c27
jmp 0x140021c55