joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000bf64
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140042334], eax
jle 0x14000bfba
lea rcx, [0x140042334]
call fcn.140005f28
cmp dword [0x140042334], 0xffffffff
jne 0x14000bfba
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x48]
lea rcx, [0x140042334]
mov dword [0x140042330], eax
call fcn.140005ec8
mov eax, dword [0x140042330]
add rsp, 0x58
ret

Function at 0x14000c16c
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140042240], eax
jle 0x14000c1c2
lea rcx, [0x140042240]
call fcn.140005f28
cmp dword [0x140042240], 0xffffffff
jne 0x14000c1c2
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
lea rcx, [0x140042240]
mov dword [0x14004098c], eax
call fcn.140005ec8
mov eax, dword [0x14004098c]
add rsp, 0x58
ret
Function at 0x14000d098
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
sub rsp, 0x48
lea rax, [r11 + 0x10]
mov dword [rsp + 0x58], 4
mov qword [r11 - 0x18], rax
lea rdx, str.SOFTWAREPoliciesMozillaFirefox
mov qword [r11 - 0x20], r8
mov r9d, 0x18
and qword [r11 - 0x28], 0
lea r8, str.DisableSafeMode
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
sete al
add rsp, 0x48
ret

Function at 0x14000d80c
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, edx
mov rbp, rcx
cmp edx, 0xffffffff
jne 0x14000d82e
xor esi, esi
jmp 0x14000d836
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
xor ebx, ebx
cmp edi, 0xffffffff
je 0x14000d847
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
sub ebx, esi
cmp ebx, edi
jae 0x14000d87f
mov edx, edi
mov rcx, rbp
sub edx, ebx
call qword [sym.imp.USER32.dll_WaitForInputIdle]
test eax, eax
je 0x14000d87b
cmp eax, 0xffffffff
jne 0x14000d87f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5bf
jne 0x14000d87f
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000d838
mov al, 1
jmp 0x14000d881
xor al, al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000d898
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x180
mov rax, qword [0x140040010]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rsi, rdx
lea rcx, [0x140042c78]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
nop
mov rdi, qword [0x140042c70]
test rdi, rdi
je 0x14000da36
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x104
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
mov r8, qword [rdi]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x14000d918
jmp 0x14000da2d
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, eax
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000d913
cmp qword [rdi + 8], 0xffffffffffffffff
je 0x14000da0c
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 1
lea rdx, [0x1400371a0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rdi + 8]
mov rax, rcx
shr rax, 0x30
mov word [rsp + 0x50], ax
mov rax, rcx
shr rax, 0x20
mov word [rsp + 0x52], ax
mov rax, rcx
shr rax, 0x10
mov word [rsp + 0x54], ax
mov word [rsp + 0x56], cx
xor ebx, ebx
mov qword [rsp + 0x48], rbx
cmp rbx, 4
jae 0x14000da0c
movzx ecx, word [rsp + rbx*2 + 0x50]
mov r8d, 0xa
lea rdx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ltoa]
lea rax, [rsp + 0x60]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14000d9bd
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rbx, 3
je 0x14000da07
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 1
lea rdx, [0x1400371a4]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc rbx
jmp 0x14000d993
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 1
lea rdx, [0x1400371a8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword [rdi + 0x10]
jmp 0x14000d8d4
jmp 0x14000da38
lea rcx, [0x140042c78]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140005a70
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rdx, rcx
jmp 0x14000d898

Function at 0x14000e310
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov dword [0], ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 3
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x14000e340
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x180
mov rax, qword [0x140040010]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rsi, rdx
lea rcx, [0x140042c78]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
nop
mov rdi, qword [0x140042c70]
test rdi, rdi
je 0x14000da36
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x104
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
mov r8, qword [rdi]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x14000d918
jmp 0x14000da2d
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, eax
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000d913
cmp qword [rdi + 8], 0xffffffffffffffff
je 0x14000da0c
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 1
lea rdx, [0x1400371a0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rdi + 8]
mov rax, rcx
shr rax, 0x30
mov word [rsp + 0x50], ax
mov rax, rcx
shr rax, 0x20
mov word [rsp + 0x52], ax
mov rax, rcx
shr rax, 0x10
mov word [rsp + 0x54], ax
mov word [rsp + 0x56], cx
xor ebx, ebx
mov qword [rsp + 0x48], rbx
cmp rbx, 4
jae 0x14000da0c
movzx ecx, word [rsp + rbx*2 + 0x50]
mov r8d, 0xa
lea rdx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ltoa]
lea rax, [rsp + 0x60]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14000d9bd
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rbx, 3
je 0x14000da07
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 1
lea rdx, [0x1400371a4]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc rbx
jmp 0x14000d993
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 1
lea rdx, [0x1400371a8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword [rdi + 0x10]
jmp 0x14000d8d4
jmp 0x14000da38
lea rcx, [0x140042c78]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140005a70
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rdx, rcx
jmp 0x14000d898

Function at 0x14000e348
Capabilities:
Encode data using xor

Disassembly:
mov r8d, 8
test rcx, rcx
je 0x14000e3bb
lea r9d, [r8 - 6]
movzx eax, word [rcx]
dec r9d
movzx edx, word [rcx + 2]
lea rcx, [rcx + 4]
add r8d, eax
shl edx, 0xb
mov eax, r8d
shl eax, 0x10
xor edx, eax
xor r8d, edx
mov eax, r8d
shr eax, 0xb
add r8d, eax
test r9d, r9d
jg 0x14000e357
mov eax, r8d
shl eax, 3
xor r8d, eax
mov eax, r8d
shr eax, 5
add r8d, eax
mov eax, r8d
shl eax, 4
xor r8d, eax
mov eax, r8d
shr eax, 0x11
add r8d, eax
mov eax, r8d
shl eax, 0x19
xor r8d, eax
mov eax, r8d
shr eax, 6
add eax, r8d
ret
xor eax, eax
ret

Function at 0x14000f990
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov dword [0], 0x78
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 3
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140012110
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rdi, rcx
xor ebx, ebx
mov rcx, qword [rcx + 0x28]
mov rsi, r8
test rcx, rcx
je 0x1400121ba
cmp r8, 0x7fffffff
ja 0x1400121ba
cmp qword [rdi + 0x58], rbx
jne 0x1400121ba
cmp byte [rdi], bl
je 0x140012150
call fcn.140012098
test al, al
je 0x1400121ba
mov al, byte [rdi + 0x60]
mov rcx, qword [rdi + 0x28]
neg al
mov qword [rsp + 0x20], rsi
sbb edx, edx
xor r9d, r9d
and edx, 0xfffffffe
xor r8d, r8d
add edx, 6
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 0x58], rax
mov rsi, rax
test rax, rax
je 0x1400121ba
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400121a4
mov rbx, qword [rsp + 0x38]
sub rbx, rsi
add rbx, qword [rsp + 0x48]
movups xmm0, xmmword [rdi + 0x38]
mov qword [rdi + 0x50], rbx
movdqu xmmword [rdi + 0x70], xmm0
call fcn.140012038
mov al, 1
jmp 0x1400121bc
xor al, al
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x14001226c
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x130
xor ebx, ebx
mov rsi, rcx
mov dword [rsp + 0x158], ebx
mov r14d, 0xffffffff
lea edi, [rbx + 0x10]
cmp rdi, r14
mov ebp, edi
mov rcx, rsi
cmova ebp, r14d
mov edx, ebp
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
setne al
test al, al
jne 0x1400122cd
or ebx, 1
lea rdx, str.z:_build_build_src_security_sandbox_chromium_base_rand_util_win.cc
mov r8d, 0x27
lea rcx, [rsp + 0x20]
call fcn.14000eab4
test bl, 1
je 0x1400122df
and ebx, 0xfffffffe
lea rcx, [rsp + 0x20]
call fcn.14000ed00
mov eax, ebp
add rsi, rax
sub rdi, rax
jne 0x140012296
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1400140c8
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov dword [0], 0x13
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 3
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140014a34
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x1350
call fcn.140006c50
sub rsp, rax
mov rax, qword [0x140040010]
xor rax, rsp
mov qword [rsp + 0x1340], rax
mov edi, dword [0x140040048]
xor ebx, ebx
or esi, 0xffffffff
mov dword [rsp + 0x20], ebx
cmp edi, esi
jne 0x140014b1a
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, esi
je 0x140014a83
mov edi, eax
jmp 0x140014a9f
mov r8d, 0x73
lea rdx, str.z:_build_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rcx, [rsp + 0x28]
call fcn.14000eab4
mov ebx, 1
test bl, 1
je 0x140014ab1
and ebx, 0xfffffffe
lea rcx, [rsp + 0x28]
call fcn.14000ed00
cmp edi, esi
jne 0x140014afd
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, esi
je 0x140014ac3
mov edi, eax
jmp 0x140014ae0
or ebx, 2
lea rdx, str.z:_build_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
mov r8d, 0x7d
lea rcx, [rsp + 0x130]
call fcn.14000eab4
test bl, 2
je 0x140014af5
and ebx, 0xfffffffd
lea rcx, [rsp + 0x130]
call fcn.14000ed00
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsFree]
or eax, 0xffffffff
lock cmpxchg dword [0x140040048], edi
cmp eax, esi
je 0x140014b1a
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov edi, dword [0x140040048]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140014b44
or ebx, 4
lea rdx, str.z:_build_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
mov r8d, 0x8f
lea rcx, [rsp + 0x238]
call fcn.14000eab4
test bl, 4
je 0x140014b56
lea rcx, [rsp + 0x238]
call fcn.14000ed00
mov esi, 0x1000
lea rcx, [rsp + 0x340]
mov r8d, esi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x340]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r8d, esi
lea rdx, [rsp + 0x340]
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, rbx
mov rcx, qword [rsp + 0x1340]
xor rcx, rsp
call fcn.140005a70
lea r11, [rsp + 0x1350]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140014c3c
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x2830
call fcn.140006c50
sub rsp, rax
mov rax, qword [0x140040010]
xor rax, rsp
mov qword [rsp + 0x2820], rax
mov rbx, rcx
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
call sub.VCRUNTIME140.dll_memcpy
mov r14d, dword [0x140040048]
lea rdx, [rsp + 0x20]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, rbx
call qword [sym.imp.mozglue.dll_free]
call fcn.140014bd0
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov r8d, 0x1800
lea rdx, [0x1400409b0]
lea rcx, [rsp + 0x1020]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov esi, 0x100
xor dl, dl
lea rdi, [rsp + 0x20]
lea rbx, [rsp + 0x1030]
mov ebp, 0x100
mov rcx, qword [rdi]
test rcx, rcx
je 0x140014d0f
cmp dword [rbx - 0x10], 0
je 0x140014d0f
mov eax, dword [rbx]
cmp dword [rdi + 8], eax
jne 0x140014d0f
cmp qword [rbx - 8], 0
je 0x140014d0f
and qword [rdi], 0
call qword [rbx - 8]
mov dl, 1
add rbx, 0x18
add rdi, 0x10
sub rbp, 1
jne 0x140014cea
dec esi
test esi, esi
jle 0x140014d27
test dl, dl
jne 0x140014cd6
xor edx, edx
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [rsp + 0x2820]
xor rcx, rsp
call fcn.140005a70
lea r11, [rsp + 0x2830]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140014fe0
Capabilities:
Parse pe header

Disassembly:
mov rdx, qword [rcx + 8]
mov eax, 0x5a4d
cmp word [rdx], ax
je 0x140014ff1
xor al, al
ret
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140014fee
mov ecx, 0xf0
cmp word [rax + 0x14], cx
jne 0x140014fee
mov ecx, 0x20b
cmp word [rax + 0x18], cx
sete al
ret
Function at 0x140017148
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140015b9c
test al, al
je 0x140017165
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test rbx, rbx
je 0x14001717b
mov rcx, rbx
call fcn.140030300
mov rcx, rbx
call qword [sym.imp.mozglue.dll_free]
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x14001ec60
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x130
mov edi, 0x10000
mov rbx, rcx
cmp rcx, rdi
jbe 0x14001ecb2
lea rcx, [rax + 8]
call fcn.14001e604
test rax, rax
je 0x14001ecb2
mov r9, rax
lea rdx, str.z:_build_build_src_security_sandbox_chromium_sandbox_win_src_interception.cc
mov r8d, 0x2b
lea rcx, [rsp + 0x20]
call fcn.14000eb54
lea rcx, [rsp + 0x20]
call fcn.14000ed00
sub rdi, rbx
mov edx, 4
lea rcx, [rsp + 0x148]
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
movzx edx, word [rsp + 0x148]
mov dword [rsp + 0x148], edx
cmp rdx, rdi
ja 0x14001ecb5
mov ecx, 0x1000
mov eax, 0x800
jmp 0x14001ecee
mov rcx, rax
shr rax, 1
cmp rax, rbx
jae 0x14001ece8
mov rbx, qword [rsp + 0x150]
lea rax, [rcx - 1]
not rax
and rax, rdx
add rsp, 0x130
pop rdi
ret
Function at 0x14001f1a0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x1c0
mov rax, qword [0x140040010]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xor esi, esi
mov rdi, rcx
mov dword [rsp + 0x30], esi
lea r13d, [rsi + 1]
test dl, dl
jne 0x14001f1e9
cmp qword [rcx + 0x10], rsi
jne 0x14001f239
xor eax, eax
jmp 0x14001f397
and dword [rsp + 0x28], esi
lea rax, [0x1400378b0]
mov r9d, r13d
mov qword [rsp + 0x20], rax
lea r8, str.NtMapViewOfSection
lea rdx, [0x140037980]
call fcn.14001e858
lea rax, [0x1400378d0]
mov dword [rsp + 0x28], r13d
mov r9d, r13d
mov qword [rsp + 0x20], rax
lea r8, [0x140037960]
mov rcx, rdi
lea rdx, [0x140037980]
call fcn.14001e858
mov rax, qword [rdi]
xor edx, edx
mov r9d, 0x2000
mov dword [rsp + 0x20], r13d
mov r8d, 0x10000
mov r14, qword [rax]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, qword [rdi + 0x10]
mov rbx, rax
shl rbp, 6
add rbp, 0x60
mov rcx, rbp
call fcn.14001ec60
mov r15, rax
mov dword [rsp + 0x20], 0x40
mov rdx, rax
lea r8, [rbp + 0xfff]
mov rax, 0xfffffffffffff000
mov r9d, 0x1000
and rdx, rax
and r8, rax
add rdx, rbx
mov rcx, r14
and r15d, 0xfff
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
jne 0x14001f2cf
mov r8d, 0x1a8
lea rdx, str.z:_build_build_src_security_sandbox_chromium_sandbox_win_src_interception.cc
lea rcx, [rsp + 0x40]
call fcn.14000eab4
mov esi, r13d
test r13b, sil
je 0x14001f2de
lea rcx, [rsp + 0x40]
call fcn.14000ed00
and dword [rsp + 0x168], 0
lea rcx, [sym.firefox.exe_g_originals]
add rbx, r15
mov qword [rsp + 0x150], rbp
mov r15d, 0x148
mov esi, 0x20
mov r8d, r15d
mov qword [rsp + 0x158], rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x150]
mov r8, rbp
mov rdx, rbx
mov rcx, rdi
call fcn.14001eea0
test eax, eax
jne 0x14001f397
lea rax, [rsp + 0x38]
mov r9d, esi
lea r8, [rsp + 0x150]
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14001f392
cmp qword [rsp + 0x38], rsi
jne 0x14001f392
lea rax, [rsp + 0x30]
mov r9d, esi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [rdi]
lea r8, [sym.firefox.exe_g_originals]
mov r9d, r15d
lea rdx, [0x140037950]
call fcn.1400309e8
jmp 0x14001f397
mov eax, 0x2a
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140005a70
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x140020cec
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
and qword [rsp + 0x38], 0
mov r10d, r9d
mov eax, dword [rsp + 0x88]
mov r11d, r8d
mov r9d, dword [rsp + 0x70]
mov rbx, rdx
mov dword [rsp + 0x30], eax
mov rdi, rcx
mov eax, dword [rsp + 0x80]
mov r8d, r10d
mov dword [rsp + 0x28], eax
mov edx, r11d
mov eax, dword [rsp + 0x78]
mov rcx, rbx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
or rsi, 0xffffffffffffffff
mov rbx, rax
cmp rax, rsi
jne 0x140020d50
mov rax, rsi
jmp 0x140020d90
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 3
lea r9, [rsp + 0x90]
and dword [rsp + 0x28], 0
mov rcx, rax
and dword [rsp + 0x20], 0
mov r8, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [rsp + 0x90]
test eax, eax
cmove rcx, rsi
mov rax, rcx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400251c0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor eax, eax
mov edi, edx
mov qword [rcx], rax
mov rbx, rcx
mov qword [rcx + 8], rax
xor r9d, r9d
mov qword [rsp + 0x28], rax
or rcx, 0xffffffffffffffff
xor edx, edx
mov dword [rsp + 0x20], edi
mov r8d, 0x8000004
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdx, rax
mov rcx, rbx
call fcn.1400121cc
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140025227
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 8], rax
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140028f38
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rsi, qword [rsp + 0xc8]
xor edi, edi
mov qword [rax - 0x20], rsi
mov r10, r9
mov rax, qword [rsp + 0xc0]
mov r11, r8
mov qword [rsp + 0x40], rax
mov ebp, edx
mov rax, qword [rsp + 0xb8]
mov r15, rcx
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov rdx, r10
mov rcx, r11
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140028fad
xor eax, eax
jmp 0x14002903d
mov eax, ebp
neg eax
sbb ebx, ebx
and ebx, 0xfe3fe
add ebx, 0x101c01
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rsi]
mov r9, rsi
mov dword [rsp + 0x30], 1
mov rcx, rax
mov dword [rsp + 0x28], edi
mov r8, r15
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
lea r14, [rsi + 8]
mov rsi, qword [r14]
test eax, eax
jne 0x140028ffd
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140028fa6
neg ebp
sbb ebx, ebx
and ebx, 0xff3bc
add ebx, 0x100c43
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 1
mov r9, r14
mov rcx, rax
mov dword [rsp + 0x28], edi
mov r8, r15
mov dword [rsp + 0x20], ebx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
setne dil
mov eax, edi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x140029154
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
and qword [rsp + 0x30], 0
mov rbx, rcx
mov eax, dword [rsp + 0x70]
mov rcx, qword [rcx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9, r8
mov r8, rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rdi, rax
test rax, rax
jne 0x140029195
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400291cd
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9, qword [rsp + 0x80]
mov rdx, rdi
mov r8, qword [rbx]
mov rcx, rax
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
neg eax
sbb eax, eax
not eax
and eax, 5
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14002af38
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x140040010]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor edi, edi
mov r13, rdx
mov r14, rcx
cmp byte [rcx + 0x54], dil
jne 0x14002af79
mov eax, 0x3f0
jmp 0x14002b050
lea rdx, [rcx + 0x48]
mov r8d, 2
lea rcx, [rsp + 0x28]
lea r9, [rsp + 0x20]
call fcn.14002b914
mov rbx, qword [rsp + 0x28]
test rbx, rbx
jne 0x14002afa5
mov edi, dword [rsp + 0x20]
jmp 0x14002b04e
mov esi, edi
cmp dword [rbx], edi
jbe 0x14002b045
mov ebp, esi
add rbp, rbp
test dword [rbx + rbp*8 + 0x10], 0xc0000020
jne 0x14002b03b
mov r12b, dil
test r13, r13
je 0x14002b013
mov r15d, edi
mov rcx, qword [r13 + 8]
movabs rax, 0x7878787878787879
sub rcx, qword [r13]
imul rcx
mov r8d, r15d
sar rdx, 5
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r8, rdx
jae 0x14002b013
mov rdx, qword [rbx + rbp*8 + 8]
imul rcx, r8, 0x44
add rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x14002b010
inc r15d
jmp 0x14002afc9
mov r12b, 1
test r12b, r12b
jne 0x14002b03b
mov r8, qword [rbx + rbp*8 + 8]
lea rdx, [rsp + 0x30]
mov ecx, 0x44
call qword [sym.imp.ADVAPI32.dll_CopySid]
lea rcx, [r14 + 0x30]
lea rdx, [rsp + 0x30]
call fcn.14002ac90
inc esi
cmp esi, dword [rbx]
jb 0x14002afaf
mov rcx, rbx
call qword [sym.imp.mozglue.dll_free]
mov eax, edi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140005a70
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret