joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c2a4
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x20
xor r8d, r8d
lea rcx, str.PATH
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test eax, eax
je 0x14000c36a
mov eax, 2
mov r15, 0xffffffffffffffff
mul rbx
cmovo rax, r15
mov rcx, rax
call fcn.1400071ec
mov r8d, ebx
lea rcx, str.PATH
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rbx - 1]
cmp ecx, eax
jne 0x14000c362
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test eax, eax
je 0x14000c362
lea eax, [r15 + 3]
mul rsi
cmovo rax, r15
mov rcx, rax
call fcn.1400071ec
mov r8d, esi
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14000c35a
mov rdx, rbx
lea rcx, str.PATH
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rbx
call fcn.140007ef0
mov rcx, rdi
call fcn.140007ef0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r15
ret

Function at 0x14000fc60
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 0x14000fcf8
cmp r8, 0x7fffffff
ja 0x14000fcf8
cmp qword [rdi + 0x38], rbx
jne 0x14000fcf8
cmp byte [rdi], bl
je 0x14000fc9c
call fcn.14000fbe0
test al, al
je 0x14000fcf8
mov al, byte [rdi + 0x40]
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 + 0x38], rax
mov rsi, rax
test rax, rax
je 0x14000fcf8
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000fcf0
mov rbx, qword [rsp + 0x38]
sub rbx, rsi
add rbx, qword [rsp + 0x48]
mov qword [rdi + 0x30], rbx
mov al, 1
jmp 0x14000fcfa
xor al, al
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x1400110f4
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 0x14001165c
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, 0x2840
call fcn.140008100
sub rsp, rax
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x2830], rax
and dword [rsp + 0x20], 0
lea rax, [rsp + 0x30]
mov rbx, rcx
mov rdx, rcx
mov ecx, 0x20
lea edi, [rcx + 0x60]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rax], xmm0
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rax + 0x10], xmm1
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rax + 0x20], xmm0
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rax + 0x30], xmm1
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rax + 0x40], xmm0
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rax + 0x50], xmm1
movups xmm1, xmmword [rdx + 0x70]
add rdx, rdi
movups xmmword [rax + 0x60], xmm0
add rax, rdi
movups xmmword [rax - 0x10], xmm1
sub rcx, 1
jne 0x1400116a1
mov r14d, dword [0x140038044]
lea rdx, [rsp + 0x30]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, rbx
call fcn.140007ef0
mov rax, qword [0x140038a30]
test rax, 0xfffffffffffffffe
jne 0x14001173d
lea rcx, [0x140038a30]
call fcn.14000faa4
test al, al
je 0x14001173d
and qword [0x140038a38], 0
lea rax, [0x140038a38]
mov qword [0x140038a30], rax
mov rbx, qword [0x140038a30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
lea rax, [rsp + 0x1030]
mov edx, 0x30
lea rcx, [0x140038a40]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax], xmm0
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x10], xmm1
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x20], xmm0
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x30], xmm1
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x40], xmm0
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax + 0x50], xmm1
movups xmm1, xmmword [rcx + 0x70]
add rcx, rdi
movups xmmword [rax + 0x60], xmm0
add rax, rdi
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x140011761
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov esi, 0x100
xor dl, dl
lea rdi, [rsp + 0x30]
lea rbx, [rsp + 0x1040]
mov ebp, 0x100
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400117f2
cmp dword [rbx - 0x10], 0
je 0x1400117f2
mov eax, dword [rbx]
cmp dword [rdi + 8], eax
jne 0x1400117f2
cmp qword [rbx - 8], 0
je 0x1400117f2
and qword [rdi], 0
call qword [rbx - 8]
mov dl, 1
add rbx, 0x18
add rdi, 0x10
sub rbp, 1
jne 0x1400117cd
dec esi
test esi, esi
jle 0x14001180a
test dl, dl
jne 0x1400117b9
xor edx, edx
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [rsp + 0x2830]
xor rcx, rsp
call fcn.140006f20
lea r11, [rsp + 0x2840]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140011840
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14001185a
mov dword [rbx], eax
mov al, 1
jmp 0x14001185c
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140011b40
Capabilities:
Parse pe header

Disassembly:
mov rdx, qword [rcx + 8]
mov eax, 0x5a4d
cmp word [rdx], ax
je 0x140011b51
xor al, al
ret
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140011b4e
mov ecx, 0xf0
cmp word [rax + 0x14], cx
jne 0x140011b4e
mov ecx, 0x20b
cmp word [rax + 0x18], cx
sete al
ret

Function at 0x140011be0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ecx, dword [0x140038044]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
mov rdx, rax
test rax, rax
jne 0x140011c0b
call fcn.140006030
mov rdx, rax
movsxd r8, dword [rdi + 4]
mov eax, dword [rdi + 8]
add r8, r8
cmp dword [rdx + r8*8 + 8], eax
jne 0x140011c27
cmp qword [rdx + r8*8], rbx
je 0x140011c27
mov ebx, 1
mov al, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400133b8
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140011f54
test al, al
je 0x1400133d5
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test rbx, rbx
je 0x1400133e2
mov rcx, rbx
call fcn.1400130c8
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x14001a460
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 0x14001a4c0
lea r8, str.size___kAllocGranularity
lea rdx, [0x1400300a8]
lea rcx, [rax + 8]
call fcn.140011864
test rax, rax
je 0x14001a4c0
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.14000cae4
lea rcx, [rsp + 0x20]
call fcn.14000cd3c
sub rdi, rbx
mov edx, 4
lea rcx, [rsp + 0x148]
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
movzx ecx, word [rsp + 0x148]
mov dword [rsp + 0x148], ecx
cmp rcx, rdi
ja 0x14001a4c3
mov edx, 0x1000
mov eax, 0x800
jmp 0x14001a4fc
mov rdx, rax
shr rax, 1
cmp rax, rbx
jae 0x14001a4f6
mov rbx, qword [rsp + 0x150]
lea rax, [rdx - 1]
not rax
and rax, rcx
add rsp, 0x130
pop rdi
ret
Function at 0x14001a920
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 [0x140038010]
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 0x14001a969
cmp qword [rcx + 0x10], rsi
jne 0x14001a9b9
xor eax, eax
jmp 0x14001ab17
and dword [rsp + 0x28], esi
lea rax, [0x140030038]
mov r9d, r13d
mov qword [rsp + 0x20], rax
lea r8, str.NtMapViewOfSection
lea rdx, [0x1400300b0]
call fcn.14001a080
lea rax, [0x140030078]
mov dword [rsp + 0x28], r13d
mov r9d, r13d
mov qword [rsp + 0x20], rax
lea r8, str.NtUnmapViewOfSection
mov rcx, rdi
lea rdx, [0x1400300b0]
call fcn.14001a080
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.14001a460
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 0x14001aa4f
mov r8d, 0x1a8
lea rdx, str.z:_build_build_src_security_sandbox_chromium_sandbox_win_src_interception.cc
lea rcx, [rsp + 0x40]
call fcn.14000ca40
mov esi, r13d
test r13b, sil
je 0x14001aa5e
lea rcx, [rsp + 0x40]
call fcn.14000cd3c
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.14001a658
test eax, eax
jne 0x14001ab17
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 0x14001ab12
cmp qword [rsp + 0x38], rsi
jne 0x14001ab12
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, [0x140030098]
call fcn.14002b7f8
jmp 0x14001ab17
mov eax, 0x2a
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140006f20
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 0x14001c218
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 0x14001c27c
mov rax, rsi
jmp 0x14001c2bc
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 0x1400204d4
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.14000b578
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14002053b
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 0x140023448
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x228]
sub rsp, 0x328
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rax, qword [rbp + 0x2a8]
mov rbx, r8
mov r14, qword [rbp + 0x2b0]
mov r12, r9
mov r13, qword [rbp + 0x290]
mov rdi, rdx
mov rsi, qword [rbp + 0x2c0]
mov r15, rcx
and dword [rsp + 0x68], 0
mov qword [rsp + 0x50], rax
mov rax, qword [rbp + 0x2b8]
mov qword [rsp + 0x58], rax
mov qword [rbp - 0x80], rdx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x70], r14
call fcn.14002744c
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x10]
cmp byte [rax + 4], 0
je 0x140023527
mov rax, qword [rsp + 0x58]
mov r9, r13
mov qword [rsp + 0x48], rsi
mov r8, r12
mov qword [rsp + 0x40], rax
mov rdx, rbx
mov rax, qword [rsp + 0x50]
mov rcx, rdi
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x2a0]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x298]
mov dword [rsp + 0x20], eax
call r15
xor r15d, r15d
test eax, eax
je 0x14002352a
mov eax, 1
jmp 0x14002363e
xor r15d, r15d
mov rdx, rdi
lea rcx, [0x140030a08]
call fcn.14000f970
call fcn.14002744c
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x10]
cmp dword [rax], 1
jle 0x14002363c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 1
mov rcx, rsi
mov r14d, eax
lea r12d, [r8 + 0x17]
mov edx, r12d
call fcn.140027f48
test al, al
je 0x140023633
call fcn.140027be8
mov rbx, rax
test rax, rax
je 0x140023633
lea rdx, [rbp]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rbp]
mov qword [rbp - 0x78], rbx
dec eax
lea r8d, [r12 + 0x40]
cmp eax, 0x102
cmova rcx, r15
xor edx, edx
mov qword [rsp + 0x50], rcx
mov rcx, qword [rbx + 0x10]
add rcx, rbx
mov qword [rbp - 0x70], rcx
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp - 0x60]
mov dword [rsp + 0x58], r12d
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x78]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x80]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rcx, [rbp - 0x78]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140022db0
test eax, eax
jne 0x140023633
mov ebx, dword [rbp - 0x58]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x14002363c
mov rdx, rdi
lea rcx, [0x140030a08]
call fcn.14000f844
jmp 0x14002351d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140006f20
add rsp, 0x328
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140023d30
Capabilities:
Create process on windows

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 r14
sub rsp, 0x50
mov rdi, qword [rsp + 0xb8]
xor esi, esi
mov qword [rax - 0x10], rdi
mov r10, r9
mov rax, qword [rsp + 0xb0]
mov r11, r8
mov qword [rsp + 0x40], rax
mov ebp, edx
mov rax, qword [rsp + 0xa8]
mov r14, rcx
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov rdx, r10
mov rcx, r11
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140023da6
xor eax, eax
jmp 0x140023e32
mov eax, ebp
neg eax
sbb ebx, ebx
and ebx, 0xfe3fe
add ebx, 0x101c01
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rdi]
mov r9, rdi
mov dword [rsp + 0x30], 1
mov rcx, rax
mov dword [rsp + 0x28], esi
mov r8, r14
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x140023df0
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140023d9f
neg ebp
sbb ebx, ebx
and ebx, 0xff3bc
add ebx, 0x100c43
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rdi + 8]
lea r9, [rdi + 8]
mov dword [rsp + 0x30], 1
mov rcx, rax
mov dword [rsp + 0x28], esi
mov r8, r14
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
setne sil
mov eax, esi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret

Function at 0x140023f4c
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 0x140023f8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140023fc5
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 0x140025a48
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 [0x140038010]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor edi, edi
mov r13, rdx
mov dword [rsp + 0x20], edi
mov r14, rcx
cmp byte [rcx + 0x54], dil
jne 0x140025a8d
mov eax, 0x3f0
jmp 0x140025b63
lea rdx, [rcx + 0x48]
mov r8d, 2
lea rcx, [rsp + 0x28]
lea r9, [rsp + 0x20]
call fcn.1400265e4
mov rbx, qword [rsp + 0x28]
test rbx, rbx
jne 0x140025ab9
mov edi, dword [rsp + 0x20]
jmp 0x140025b61
mov esi, edi
cmp dword [rbx], edi
jbe 0x140025b59
mov ebp, esi
add rbp, rbp
test dword [rbx + rbp*8 + 0x10], 0xc0000020
jne 0x140025b4f
mov r12b, dil
test r13, r13
je 0x140025b27
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 0x140025b27
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 0x140025b24
inc r15d
jmp 0x140025add
mov r12b, 1
test r12b, r12b
jne 0x140025b4f
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.140026960
inc esi
cmp esi, dword [rbx]
jb 0x140025ac3
mov rcx, rbx
call fcn.140007ef0
mov eax, edi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140006f20
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140025b90
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor edi, edi
mov r13, rdx
mov dword [rsp + 0x20], edi
mov r14, rcx
cmp byte [rcx + 0x54], dil
jne 0x140025bd7
mov eax, 0x3f0
jmp 0x140025c9d
lea rdx, [rcx + 0x48]
mov r8d, 2
lea rcx, [rsp + 0x28]
lea r9, [rsp + 0x20]
call fcn.1400265e4
mov rbx, qword [rsp + 0x28]
test rbx, rbx
jne 0x140025c03
mov edi, dword [rsp + 0x20]
jmp 0x140025c9b
mov esi, edi
cmp dword [rbx], edi
jbe 0x140025c93
mov ebp, esi
add rbp, rbp
test dword [rbx + rbp*8 + 0x10], 0xc0000020
jne 0x140025c89
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 0x140025c89
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 0x140025c66
inc r15d
jmp 0x140025c1f
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.140026960
inc esi
cmp esi, dword [rbx]
jb 0x140025c0d
mov rcx, rbx
call fcn.140007ef0
mov eax, edi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140006f20
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x14002b5ec
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
and qword [rax - 0x30], 0
lea rsi, [rcx + 0x28]
mov r14, r8
mov dword [rax - 0x38], 0x10000
mov r15, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x8000004
or rcx, 0xffffffffffffffff
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdx, rax
mov rcx, rsi
call fcn.14000b578
mov rbp, qword [rsi]
lea rax, [rbp + 1]
test rax, 0xfffffffffffffffe
jne 0x14002b656
mov ebx, 0x19
jmp 0x14002b765
mov rbx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
lea r9, [rsp + 0x60]
and dword [rsp + 0x28], 0
mov rcx, rax
mov r8, rbx
mov dword [rsp + 0x20], 7
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x14002b691
lea ebx, [rax + 0x1a]
jmp 0x14002b765
mov rcx, qword [rsi]
xor r9d, r9d
and qword [rsp + 0x20], 0
xor r8d, r8d
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
test rax, rax
jne 0x14002b6ba
lea ebx, [rax + 0x1b]
jmp 0x14002b765
lea r8, [rax + 0x2000]
mov rcx, r14
call fcn.14002b32c
mov r8, qword [rsp + 0x60]
lea rdx, [0x140030fd8]
mov qword [sym.firefox.exe_g_shared_section], r8
mov ebp, 8
lea r8, [sym.firefox.exe_g_shared_section]
mov r9d, ebp
mov rcx, rdi
call fcn.14002b7f8
and qword [sym.firefox.exe_g_shared_section], 0
mov ebx, eax
test eax, eax
jne 0x14002b765
mov r9d, ebp
mov qword [sym.firefox.exe_g_shared_IPC_size], 0x2000
lea r8, [sym.firefox.exe_g_shared_IPC_size]
mov rcx, rdi
lea rdx, [0x140030fc0]
call fcn.14002b7f8
and qword [sym.firefox.exe_g_shared_IPC_size], 0
mov ebx, eax
test eax, eax
jne 0x14002b765
mov r9d, ebp
mov qword [sym.firefox.exe_g_shared_policy_size], 0xe000
lea r8, [sym.firefox.exe_g_shared_policy_size]
mov rcx, rdi
lea rdx, [0x140030fa8]
call fcn.14002b7f8
and qword [sym.firefox.exe_g_shared_policy_size], 0
mov ebx, eax
test eax, eax
je 0x14002b779
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x88]
mov dword [rcx], eax
mov eax, ebx
jmp 0x14002b7dc
mov ecx, 0x38
call fcn.1400071fc
mov r9, qword [rdi + 0x40]
mov rcx, rax
mov r8d, dword [rdi + 0x10]
mov rdx, qword [rdi]
mov qword [rsp + 0x20], r15
call fcn.140029458
mov rcx, qword [rdi + 0x38]
mov qword [rdi + 0x38], rax
test rcx, rcx
je 0x14002b7ad
call fcn.14002b254
mov rcx, qword [rdi + 0x38]
mov rdx, rsi
call fcn.1400296e8
test al, al
jne 0x14002b7c4
mov eax, 4
jmp 0x14002b7dc
and dword [rdi + 0x14], 0
lea rcx, [rdi + 8]
call fcn.14000fd0c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14002bae4
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xe0
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0xd0], rax
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov rbx, qword [0x14003af80]
test rbx, rbx
jne 0x14002bb50
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x14002bb31
xor al, al
jmp 0x14002bb73
lea rdx, str.GetUserDefaultLocaleName
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14003af80], rax
mov rbx, rax
test rax, rax
je 0x14002bb2d
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0xaa
call sub.VCRUNTIME140.dll_memset
mov edx, 0xaa
lea rcx, [rsp + 0x20]
call rbx
test eax, eax
setne al
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140006f20
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rdi
ret