joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018790
Capabilities:
Encode data using xor

Disassembly:
push rsi
xor eax, eax
test rcx, rcx
je 0x140014585
test edx, edx
jle 0x140014585
mov r8d, edx
and r8d, 3
mov r11d, edx
shr r11d, 2
je 0x140014506
lea r10d, [r11 - 1]
test dl, 4
jne 0x140014489
mov r9d, r11d
mov rsi, rcx
jmp 0x1400144b1
movzx r9d, word [rcx]
add r9d, edx
movzx eax, word [rcx + 2]
shl eax, 0xb
xor eax, r9d
shl r9d, 0x10
xor r9d, eax
lea rsi, [rcx + 4]
mov edx, r9d
shr edx, 0xb
add edx, r9d
mov r9d, r10d
lea r10, [r10*4]
cmp r11d, 1
je 0x1400144ff
nop
movzx eax, word [rsi]
add eax, edx
movzx edx, word [rsi + 2]
shl edx, 0xb
xor edx, eax
shl eax, 0x10
xor eax, edx
mov edx, eax
shr edx, 0xb
add edx, eax
movzx eax, word [rsi + 4]
add eax, edx
movzx edx, word [rsi + 6]
shl edx, 0xb
xor edx, eax
shl eax, 0x10
xor eax, edx
mov edx, eax
shr edx, 0xb
add edx, eax
add rsi, 8
add r9d, 0xfffffffe
jg 0x1400144c0
add rcx, r10
add rcx, 4
cmp r8d, 1
je 0x140014534
cmp r8d, 2
je 0x140014546
cmp r8d, 3
jne 0x140014559
movzx eax, word [rcx]
add edx, eax
movsx eax, byte [rcx + 2]
shl eax, 0x12
xor eax, edx
mov ecx, edx
shl ecx, 0x10
xor eax, ecx
mov edx, eax
shr edx, 0xb
jmp 0x140014557
movsx eax, byte [rcx]
add edx, eax
mov eax, edx
shl eax, 0xa
xor eax, edx
mov edx, eax
shr edx, 1
jmp 0x140014557
movzx eax, word [rcx]
add edx, eax
mov eax, edx
shl eax, 0xb
xor eax, edx
mov edx, eax
shr edx, 0x11
add edx, eax
lea eax, [rdx*8]
xor eax, edx
mov ecx, eax
shr ecx, 5
add ecx, eax
mov eax, ecx
shl eax, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x11
add ecx, eax
mov edx, ecx
shl edx, 0x19
xor edx, ecx
mov eax, edx
shr eax, 6
add eax, edx
pop rsi
ret
cmp rdx, 0x7fffffff
jbe 0x14001879c
xor eax, eax
ret
jmp 0x140014450
Function at 0x140018a20
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rbx, r8
mov r15d, edx
mov rsi, rcx
mov rax, qword [0x140055018]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rdi, [rcx + 0x28]
mov rcx, rdi
call fcn.140018900
xor ebp, ebp
cmp rbx, 0x7fffffff
ja 0x140018a68
test al, al
je 0x140018a68
cmp qword [rsi + 0x58], 0
je 0x140018a84
xor ebp, ebp
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400477a0
mov eax, ebp
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
cmp byte [rsi], 0
je 0x140018b0d
mov rcx, rdi
call fcn.140018910
mov r14, rax
mov rbp, qword [0x140055c10]
test rbp, rbp
jne 0x140018acb
lea rcx, [0x14004d42a]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtQuerySection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
mov qword [0x140055c10], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
mov rcx, r14
xor edx, edx
mov r9d, 0x18
call rbp
test eax, eax
jne 0x140018a66
test dword [rsp + 0x38], 0x1000000
jne 0x140018a66
mov r14d, r15d
sar r14d, 0x1f
xor eax, eax
cmp byte [rsi + 0x60], 0
sete al
lea ebp, [rax + rax]
add ebp, 4
mov rcx, rdi
call fcn.140018910
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov edx, ebp
mov r8d, r14d
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x58], rax
test rax, rax
jne 0x140018b84
xor eax, eax
cmp byte [rsi + 0x60], 0
sete al
lea ebp, [rax + rax]
add ebp, 4
mov rcx, rdi
call fcn.140018910
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov edx, ebp
mov r8d, r14d
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x58], rax
test rax, rax
je 0x140018a66
mov rbp, rax
lea rdx, [rsp + 0x30]
mov r8d, 0x30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140018ba4
xor eax, eax
jmp 0x140018bb1
mov rax, qword [rsp + 0x48]
sub rax, rbp
add rax, qword [rsp + 0x38]
mov qword [rsi + 0x50], rax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400188a0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi + 0x70], xmm0
call fcn.140018be0
mov bpl, 1
jmp 0x140018a68
Function at 0x140018c40
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x140018cb4
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rsi
call fcn.140018cd0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x140018cad
mov qword [rsi], rdi
call fcn.140018870
mov rbx, rax
mov r15, qword [rsp + 0x58]
call sym.firefox.exe_GetHandleVerifier
mov rbp, qword [rax]
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r15
call qword [rbp + 8]
mov ecx, r14d
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
in eax, dx
not dword [rax - 0x5fd8051]
fisttp dword [rdi - 0x33c58904]
lahf
adc edx, dword [rbp - 0x62eaf645]
mov ebx, 0xfb9d1509
mov ebx, 0xfb9d1509
sub byte [r13 + r11*4 + 0x42], r9b
sar dword [rcx - 0x12426f08], 1

Function at 0x140018d40
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x140
mov rax, qword [0x140055018]
xor rax, rsp
mov qword [rsp + 0x138], rax
test rdx, rdx
je 0x140018dd0
mov rsi, rdx
mov rdi, rcx
mov r13d, 0xffffffff
lea r14, str.z:_task_1581954009_build_src_security_sandbox_chromium_base_rand_util_win.cc
lea r15, str.success
lea r12, [rsp + 0x28]
jmp 0x140018d98
add rdi, rbx
sub rsi, rbx
je 0x140018dd0
cmp rsi, r13
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140018d90
mov rcx, r12
mov rdx, r14
mov r8d, 0x20
mov r9, r15
call fcn.1400145f0
mov rcx, r12
call fcn.1400146f0
jmp 0x140018d90
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.1400477a0
nop
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14001d560
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x148
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x140055018]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov ecx, dword [0x140055070]
cmp ecx, 0xffffffff
je 0x14001d59a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14001d59f
call fcn.14001d780
mov eax, dword [0x140057458]
mov ecx, dword [0x140055298]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001d677
mov rbx, qword [0x140057450]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rcx, qword [0x140055c48]
add rcx, 1
mov r8d, 0x100
lea rax, [0x140055c50]
movzx edi, cl
lea rdx, [rdi + rdi*2]
cmp dword [rax + rdx*8], 0
jne 0x14001d6bd
lea rcx, [rax + rdx*8]
mov dword [rcx], 1
lea rcx, [rdi + rdi*2]
mov qword [rax + rcx*8 + 8], r14
mov qword [0x140055c48], rdi
mov dword [rsi], edi
mov eax, dword [rax + rcx*8 + 0x10]
mov dword [rsi + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [rsi]
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x2c], eax
cmp eax, 0xffffffff
je 0x14001d6e4
mov eax, dword [rsi]
mov dword [rsp + 0x30], 0x100
mov dword [rsp + 0x2c], eax
cmp eax, 0xff
jg 0x14001d72d
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400477a0
nop
add rsp, 0x148
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140057458]
call fcn.140046d00
cmp dword [0x140057458], 0xffffffff
jne 0x14001d5c4
mov ecx, 8
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rbx, rax
mov rcx, rax
call fcn.14001bbf0
mov qword [0x140057450], rbx
lea rcx, [0x140057458]
call fcn.140046d68
jmp 0x14001d5c4
lea edx, [rcx + 1]
movzx edi, dl
lea rdx, [rdi + rdi*2]
cmp dword [rax + rdx*8], 0
je 0x14001d5fd
add rcx, 2
add r8, 0xfffffffffffffffe
jne 0x14001d5ec
jmp 0x14001d620
lea r8, str.slot____kInvalidSlotValue
lea rcx, [rsp + 0x2c]
lea rdx, [rsp + 0x30]
call fcn.140014930
test rax, rax
je 0x14001d640
lea rdx, str.z:_task_1581954009_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x159
mov r9, rax
call fcn.140014640
mov rcx, rdi
call fcn.1400146f0
jmp 0x14001d640
lea r8, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x2c]
lea rdx, [rsp + 0x30]
call fcn.140014930
test rax, rax
je 0x14001d659
lea rdx, str.z:_task_1581954009_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x15a
mov r9, rax
call fcn.140014640
mov rcx, rsi
call fcn.1400146f0
jmp 0x14001d659
Function at 0x14001d780
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1028
call fcn.140047730
sub rsp, rax
mov rax, qword [0x140055018]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov esi, dword [0x140055070]
cmp esi, 0xffffffff
jne 0x14001d7dd
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp eax, 0xffffffff
je 0x14001d8a4
mov eax, 0xffffffff
lock cmpxchg dword [0x140055070], esi
je 0x14001d7dd
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov esi, dword [0x140055070]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
test rax, rax
jne 0x14001d859
lea rdi, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call sub.ntdll.dll_memset
mov r14, qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
mov rdx, rdi
call r14
mov ecx, 0x1000
call sub.mozglue.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov rbx, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rdi
call sub.ntdll.dll_memcpy
mov ecx, esi
mov rdx, rbx
call r14
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400477a0
mov rax, rbx
add rsp, 0x1028
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdx, [0x14004a2c0]
lea r8, str.PlatformThreadLocalStorage::GetTLSValue_key___kUninitialized
lea rcx, [rsp + 0x20]
call fcn.14001d9d0
test rax, rax
je 0x14001d7ef
lea rdx, str.z:_task_1581954009_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 0xb5
mov r9, rax
call fcn.140014640
mov rcx, rdi
call fcn.1400146f0
jmp 0x14001d7ef
lea rdx, str.z:_task_1581954009_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea r9, str.PlatformThreadLocalStorage::AllocTLS_key_
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov r8d, 0x99
call fcn.1400145f0
mov rcx, rsi
call fcn.1400146f0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp eax, 0xffffffff
jne 0x14001d903
lea rdx, str.z:_task_1581954009_build_src_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea r9, str.PlatformThreadLocalStorage::AllocTLS_key___key___PlatformThreadLocalStorage::TLS_KEY_OUT_OF_INDEXES
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 0xa3
call fcn.1400145f0
mov rcx, rdi
call fcn.1400146f0
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsFree]
jmp 0x14001d7c0

Function at 0x14001d920
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140055070]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001d94f
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x14001d94f
mov rax, qword [rax + rcx]
jmp 0x14001d951
xor eax, eax
add rsp, 0x20
pop rsi
ret
Function at 0x14001d960
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140055070]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001d99d
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 0x14001d996
call fcn.14001d780
jmp 0x14001d97d

Function at 0x14001e200
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001e232
mov rdi, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x14001e232
cmp word [rax + rcx + 0x14], 0x78
jae 0x14001e245
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rsi, r8
mov r12, rdx
mov edx, dword [rax + rcx + 0x88]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
test rax, rax
je 0x14001e232
cmp r12, 0xffff
ja 0x14001e271
mov word [rsi], r12w
mov al, 1
jmp 0x14001e234
mov r14, rax
mov edx, dword [rax + 0x20]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov edx, dword [r14 + 0x18]
lea rcx, [rdx*4]
test rcx, rcx
je 0x14001e232
lea r15, [rax + rdx*4]
lea r13, [r12 + 1]
mov qword [rsp + 0x20], rax
mov rbp, rax
nop word cs:[rax + rax]
nop dword [rax]
mov rbx, r15
sub rbx, rbp
mov rax, rbx
sar rax, 2
shr rbx, 0x3f
add rbx, rax
and rbx, 0xfffffffffffffffe
mov edx, dword [rbp + rbx*2]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov cl, byte [r12]
test cl, cl
je 0x14001e2f3
mov rdx, r13
cmp cl, byte [rax]
jne 0x14001e2f5
add rax, 1
movzx ecx, byte [rdx]
add rdx, 1
test cl, cl
jne 0x14001e2e0
xor ecx, ecx
lea rbx, [rbx*2]
add rbx, rbp
movzx ecx, cl
movzx eax, byte [rax]
sub ecx, eax
je 0x14001e324
lea rax, [rbx + 4]
test ecx, ecx
cmovle r15, rbx
cmovg rbp, rax
xor eax, eax
cmp rbp, r15
jne 0x14001e2b0
jmp 0x14001e234
mov edx, dword [r14 + 0x24]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
sub rbx, qword [rsp + 0x20]
sar rbx, 1
movzx eax, word [rax + rbx]
add ax, word [r14 + 0x10]
mov word [rsi], ax
jmp 0x14001e26d

Function at 0x14001e3f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rcx + 8]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14001e427
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14001e427
movzx edx, word [rax + rcx + 0x14]
cmp edx, 0xf0
jne 0x14001e427
movzx eax, word [rax + rcx + 0x18]
cmp eax, 0x20b
sete al
ret
xor eax, eax
ret
Function at 0x14001f380
Capabilities:
Check os version
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140055018]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1400574a0]
mov ecx, dword [0x140055298]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001f3d7
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400477a0
nop
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1400574a0]
call fcn.140046d00
cmp dword [0x1400574a0], 0xffffffff
jne 0x14001f3bc
lea rcx, [rsp + 0x34]
xor esi, esi
mov r8d, 0x118
xor edx, edx
call sub.ntdll.dll_memset
mov dword [rsp + 0x30], 0x11c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x2c], 0
mov eax, dword [rsp + 0x34]
cmp eax, 0xa
je 0x14001f429
cmp eax, 6
jne 0x14001f464
lea rcx, [0x14004da7a]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetProductInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x38]
lea rdi, [rsp + 0x2c]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call rax
mov esi, dword [rsp + 0x2c]
mov ecx, pe_nt_image_headers64
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rdi, rax
lea rcx, [0x1400574a8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov r8d, esi
call fcn.14001f4b0
mov qword [0x140057498], rdi
lea rcx, [0x1400574a0]
call fcn.140046d68
jmp 0x14001f3bc
Function at 0x14002aea0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x160
mov rsi, rcx
mov rax, qword [0x140055018]
xor rax, rsp
mov qword [rsp + 0x158], rax
test dl, dl
jne 0x14002aefd
xor ebx, ebx
cmp qword [rsi + 0x10], 0
jne 0x14002af5c
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.1400477a0
mov eax, ebx
add rsp, 0x160
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.TargetNtMapViewOfSection64
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea rdi, [0x14004a5a0]
lea r8, str.NtMapViewOfSection
mov rcx, rsi
mov rdx, rdi
mov r9d, 1
call fcn.14002a570
lea rax, str.TargetNtUnmapViewOfSection64
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 1
lea r8, [0x14004b81e]
mov rcx, rsi
mov rdx, rdi
mov r9d, 1
call fcn.14002a570
mov rax, qword [rsi]
mov r14, qword [rax]
mov dword [rsp + 0x20], 1
mov r13, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r8d, 0x10000
mov rcx, r14
xor edx, edx
mov r9d, 0x2000
call r13
mov r12, rax
mov rdi, qword [rsi + 0x10]
shl rdi, 6
lea r15, [rdi + 0x60]
mov rcx, r15
call fcn.14002a3a0
mov rbx, rax
and rax, 0xfffffffffffff000
lea rdx, [rax + r12]
and ebx, 0xfff
add rdi, 0x105f
and rdi, 0xfffffffffffff000
mov dword [rsp + 0x20], 0x40
mov rcx, r14
mov r8, rdi
mov r9d, 0x1000
call r13
mov rdi, rax
test rax, rax
jne 0x14002b005
lea rdx, str.z:_task_1581954009_build_src_security_sandbox_chromium_sandbox_win_src_interception.cc
lea r9, str.thunk_base
lea r12, [rsp + 0x48]
mov rcx, r12
mov r8d, 0x1a8
call fcn.1400145f0
mov rcx, r12
call fcn.1400146f0
add rdi, rbx
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x50], 0x20
lea rcx, [sym.firefox.exe_g_originals]
mov r8d, 0x148
xor edx, edx
call sub.ntdll.dll_memset
lea r9, [rsp + 0x48]
mov rcx, rsi
mov rdx, rdi
mov r8, r15
call fcn.14002b280
mov ebx, eax
test eax, eax
jne 0x14002aed8
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x48]
mov r9d, 0x20
mov rcx, r14
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebx, 0x2a
test eax, eax
je 0x14002aed8
cmp qword [rsp + 0x40], 0x20
jne 0x14002aed8
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov rcx, r14
mov rdx, rdi
mov r8, r15
mov r9d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [rsi]
lea rdx, str.g_originals
lea r8, [sym.firefox.exe_g_originals]
mov r9d, 0x148
call fcn.14003fe80
mov ebx, eax
jmp 0x14002aed8

Function at 0x14002c410
Capabilities:
Read file via mapping

Disassembly:
mov r9, r8
mov r8, rdx
mov rdx, rcx
mov rcx, qword [0x140057658]
jmp sym.firefox.exe_TargetGetOPMInformation
Function at 0x14002d290
Capabilities:
Create pipe

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rbx, qword [rsp + 0xb8]
mov rax, qword [0x140055018]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rbx], 0xffffffffffffffff
mov esi, 5
cmp ecx, 3
jne 0x14002d373
mov eax, dword [rsp + 0xb0]
mov edi, dword [rsp + 0xa8]
mov ecx, dword [rsp + 0xa0]
mov r10d, dword [rsp + 0x98]
mov r11d, dword [rsp + 0x90]
cmp qword [r8 + 0x18], 7
jbe 0x14002d2f2
mov r8, qword [r8]
mov rsi, qword [rdx]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ecx
mov qword [rsp + 0x38], 0
mov rcx, r8
mov edx, r9d
mov r8d, r11d
mov r9d, r10d
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp rax, 0xffffffffffffffff
je 0x14002d38a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
cmp eax, 1
sbb rcx, rcx
or rcx, qword [rsp + 0x40]
mov qword [rbx], rcx
xor eax, eax
cmp rcx, 0xffffffffffffffff
sete al
lea esi, [rax + rax*4]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400477a0
mov eax, esi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
mov rcx, 0xffffffffffffffff
jmp 0x14002d364
Function at 0x140032420
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rax, qword [0x140055018]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov ebx, 0xc000000d
test r9d, r9d
jne 0x140032468
mov rdi, r8
mov rsi, rdx
call fcn.1400405b0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov ebx, 0xc0000022
cmp dword [rax], 2
jge 0x140032489
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400477a0
mov eax, ebx
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14003a670
test al, al
je 0x140032468
mov r15, qword [0x1400577e8]
test r15, r15
je 0x140032468
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x1000
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x8000004
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
lea rcx, [rsp + 0x50]
mov rdx, rax
call fcn.140018c40
mov r14, qword [rsp + 0x50]
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140032512
mov qword [rsp + 0x20], 0x1000
mov rcx, r14
mov edx, 6
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x58], rax
mov r14, qword [rsp + 0x50]
mov ebx, 0xc000000d
lea rax, [r14 + 1]
cmp rax, 2
jae 0x140032540
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140032531
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea rcx, [rsp + 0x50]
call fcn.140018cd0
jmp 0x140032468
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140032521
mov r8d, 0x1000
mov rdx, rdi
call sub.ntdll.dll_memcpy
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0x40], r15
add r15, qword [r15 + 0x10]
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x40]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x38]
mov edx, 0x1e
call fcn.1400325e0
mov ebx, 0xc0000022
test eax, eax
jne 0x140032521
mov ebx, dword [rsp + 0x68]
jmp 0x140032521
Function at 0x1400326a0
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov rax, qword [0x140055018]
xor rax, rsp
mov qword [rsp + 0xc0], rax
call fcn.1400405b0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov ebp, 0xc0000022
cmp dword [rax], 2
jge 0x140032704
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400477a0
mov eax, ebp
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14003a670
test al, al
je 0x1400326e2
mov r15, qword [0x1400577e8]
test r15, r15
je 0x1400326e2
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x1010
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x8000004
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
lea rcx, [rsp + 0x50]
mov rdx, rax
call fcn.140018c40
mov r14, qword [rsp + 0x50]
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14003278d
mov qword [rsp + 0x20], 0x1010
mov rcx, r14
mov edx, 6
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x58], rax
mov r14, qword [rsp + 0x50]
mov ebp, 0xc000000d
lea rax, [r14 + 1]
cmp rax, 2
jae 0x1400327bb
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400327ac
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea rcx, [rsp + 0x50]
call fcn.140018cd0
jmp 0x1400326e2
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14003279c
mov r8d, 0x1010
mov rdx, rbx
call sub.ntdll.dll_memcpy
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0x40], r15
add r15, qword [r15 + 0x10]
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x40]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x38]
mov edx, 0x1f
call fcn.1400325e0
mov ebp, 0xc0000022
test eax, eax
jne 0x14003279c
mov ebp, dword [rsp + 0x68]
test ebp, ebp
jne 0x14003279c
mov rdx, qword [rsp + 0x58]
mov r8d, 0x1000
mov rcx, rsi
call sub.ntdll.dll_memcpy
xor ebp, ebp
jmp 0x14003279c