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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r14, r9
mov r15, r8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1400f74a8]
mov rax, qword [rax]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov qword [rcx], rdx
mov qword [rcx + 0x10], 0
mov qword [rcx + 0x18], 2
lea rax, [rcx + 0x20]
mov qword [rcx + 8], rax
movzx eax, byte [0x140135360]
test al, al
je 0x14001527e
mov ebx, dword [0x140137868]
lea rax, [r15 + r14]
dec rax
mov rcx, rax
shr rcx, 0x20
je 0x140015178
xor edx, edx
div rbx
mov r14, rax
jmp 0x14001517f
xor edx, edx
div ebx
mov r14d, eax
mov rax, r15
shr rax, 0x20
je 0x140015195
mov rax, r15
xor edx, edx
div rbx
mov r15, rax
jmp 0x14001519f
mov eax, r15d
xor edx, edx
div ebx
mov r15d, eax
inc r14
sub r14, r15
je 0x140015256
lea rax, [rsi + 8]
mov qword [rsp + 0x28], rax
imul r15, rbx
cmp r14, 2
mov eax, 1
cmovb r14, rax
lea r13, [rsp + 0x30]
mov rbp, qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x1400151fd
mov rcx, qword [rsi + 8]
shl rax, 4
mov qword [rcx + rax], r15
mov dword [rcx + rax + 8], r12d
inc qword [rsi + 0x10]
add r15, rbx
dec r14
je 0x140015256
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001524e
mov qword [rsp + 0x20], r13
mov rdx, r15
mov r8, rbx
mov r9d, dword [rsp + 0xd0]
call rbp
test eax, eax
je 0x140015246
mov r12d, dword [rsp + 0x30]
mov rax, qword [rsi + 0x10]
cmp rax, qword [rsi + 0x18]
jne 0x1400151e0
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.1400153c0
test al, al
je 0x14001524e
mov rax, qword [rsi + 0x10]
jmp 0x1400151e0
mov dword [rsp + 0x30], 0
mov rcx, rsi
call fcn.1400152c0
mov rax, qword [rsp + 0x60]
xor rax, rsp
mov rcx, qword [0x1400f74a8]
mov rcx, qword [rcx]
cmp rcx, rax
jne 0x1400152b8
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140135360]
call fcn.1400c6e84
test eax, eax
je 0x140015158
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x34]
mov dword [0x140137868], eax
lea rcx, [0x140135360]
call fcn.1400c6f5f
jmp 0x140015158
call fcn.1400c8850
int3
Function at 0x1400152c0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, rcx
mov rbx, qword [0x1400f74a8]
mov rax, qword [rbx]
xor rax, rsp
mov qword [rsp + 0x60], rax
movzx eax, byte [0x140135360]
test al, al
je 0x140015372
mov r14, qword [rsi + 0x10]
test r14, r14
je 0x140015349
mov r15, qword [rsi + 8]
mov edi, dword [0x140137868]
shl r14, 4
xor r12d, r12d
lea r13, [rsp + 0x30]
mov rbp, qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x140015329
add r12, 0x10
cmp r14, r12
je 0x140015349
mov rax, qword [rsi]
mov rcx, qword [rax]
test rcx, rcx
je 0x140015320
mov r9d, dword [r15 + r12 + 8]
mov rdx, qword [r15 + r12]
mov qword [rsp + 0x20], r13
mov r8, rdi
call rbp
jmp 0x140015320
mov qword [rsi + 0x10], 0
mov rax, qword [rsp + 0x60]
xor rax, rsp
mov rcx, qword [rbx]
cmp rcx, rax
jne 0x1400153ac
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140135360]
call fcn.1400c6e84
test eax, eax
je 0x1400152f4
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x34]
mov dword [0x140137868], eax
lea rcx, [0x140135360]
call fcn.1400c6f5f
jmp 0x1400152f4
call fcn.1400c8850
int3
Function at 0x140015530
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rdi, rcx
mov r12, qword [0x1400f74a8]
mov rax, qword [r12]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor ebx, ebx
mov rcx, rdx
mov edx, 0x80000000
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov r13, rax
inc r13
cmp r13, 2
jae 0x1400155cc
cmp r13, 2
jb 0x1400155a5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x48]
xor rax, rsp
mov rcx, qword [r12]
cmp rcx, rax
jne 0x1400156c3
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x38]
lea r9, [rsp + 0x44]
mov rcx, rsi
mov r8d, 0xc
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
test eax, eax
je 0x140015596
cmp dword [rsp + 0x44], 0xc
jne 0x140015596
xor ebx, ebx
cmp dword [rsp + 0x38], 0x4646424c
jne 0x140015596
cmp dword [rsp + 0x3c], 1
jne 0x140015596
mov r15d, dword [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r14, rax
xor ebx, ebx
mov rcx, rax
xor edx, edx
mov r8, r15
call sub.ntdll.dll_memset
mov r8d, dword [rsp + 0x40]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov rcx, rsi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400156b6
mov eax, dword [rsp + 0x44]
cmp eax, dword [rsp + 0x40]
jne 0x140015692
test rax, rax
je 0x14001569d
xor ecx, ecx
mov ecx, ecx
movzx edx, word [r14 + rcx]
test rdx, rdx
je 0x14001569d
mov r8, qword [r14 + rcx + 8]
add r8, rdx
cmp r8, rax
ja 0x140015696
mov word [r14 + rcx + 2], dx
add ecx, 0x20
cmp ecx, eax
jb 0x14001566a
jmp 0x14001569d
xor ebx, ebx
jmp 0x1400156b6
mov word [r14 + rcx], 0
mov dword [rdi], r15d
mov rax, qword [rdi + 8]
mov qword [rdi + 8], r14
mov bl, 1
mov r14, rax
test rax, rax
je 0x140015596
mov rcx, r14
call sub.mozglue.dll_free
jmp 0x140015596
call fcn.1400c8850
int3
Function at 0x140015c90
Capabilities:
Print debug messages

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x860
mov rsi, rcx
mov qword [rsp + 0x898], rdx
mov qword [rsp + 0x8a0], r8
mov qword [rsp + 0x8a8], r9
mov r15, qword [0x1400f74a8]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x858], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140015d43
lea rdi, [rsp + 0x898]
mov qword [rsp + 0x28], rdi
lea rbx, [rsp + 0x30]
mov rcx, rbx
call qword [method.mozilla::PrintfTarget.PrintfTarget__]
lea rax, [0x1400f7428]
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x50]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 0x800
mov rcx, rbx
mov rdx, rsi
mov r8, rdi
call qword [method.mozilla::PrintfTarget.vprint_char_const__char_]
mov rax, qword [rsp + 0x38]
cmp rax, 0x7ff
mov ecx, 0x7ff
cmovb rcx, rax
mov byte [rsp + rcx + 0x50], 0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
cmp eax, 0xfffffffe
je 0x140015d9b
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__dup]
lea rdx, [0x1400f7e46]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__fdopen]
test rax, rax
je 0x140015d9b
mov rdi, rax
lea r8, [rsp + 0x898]
mov qword [rsp + 0x50], r8
mov rcx, rax
mov rdx, rsi
call fcn.1400c8d70
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rax, qword [rsp + 0x858]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x140015dbd
add rsp, 0x860
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400c8850
int3

Function at 0x140016080
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r14, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov r13, qword [0x1400f74a8]
mov rax, qword [r13]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdx, qword [r8 + 8]
lea rbp, [rsp + 0x3c]
mov qword [rsp + 0x30], rbp
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov rcx, rdi
mov r8, rsi
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x1400160df
xor eax, eax
jmp 0x140016141
mov r12d, dword [rsp + 0x3c]
add r12, r12
mov rcx, r12
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov r15, rax
mov rcx, rax
xor edx, edx
mov r8, r12
call sub.ntdll.dll_memset
mov rcx, qword [r14]
mov qword [r14], r15
test rcx, rcx
je 0x140016113
call sub.mozglue.dll_free
mov r15, qword [r14]
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov r8, rsi
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
sete al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
mov rdx, qword [r13]
cmp rdx, rcx
jne 0x140016163
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400c8850
int3
Function at 0x140017650
Capabilities:
Map section object

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rdi, rdx
mov rsi, rcx
mov r14, qword [0x1400f74a8]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rcx, qword [0x140137020]
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 2
lea r8, [rsp + 0x58]
mov rdx, 0xffffffffffffffff
xor r9d, r9d
call sub.ntdll.dll_NtMapViewOfSection
test eax, eax
jns 0x1400176e1
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x1400177ad
mov ecx, dword [rax + 0x2c]
test ecx, ecx
jne 0x140017702
mov dword [rax + 0x2c], 0x58
mov ecx, 0x58
mov ecx, ecx
add rax, rcx
mov ebp, 0x1000
sub rbp, rcx
mov r15d, 2
test rax, rax
cmovne r15, rax
jne 0x140017728
cmp rbp, 2
jae 0x140017876
mov r13, rbp
shr r13, 1
xor r12d, r12d
cmp rbp, 2
jb 0x14001777a
lea rbx, [rsp + 0x60]
nop dword [rax]
lea rdx, [r15 + r12*2]
mov rcx, rbx
call sub.ntdll.dll_RtlInitUnicodeString
cmp word [rsp + 0x60], 0
je 0x14001777a
mov rcx, rbx
mov rdx, rdi
mov r8b, 1
call sub.ntdll.dll_RtlCompareUnicodeString
test eax, eax
je 0x140017826
movzx eax, word [rsp + 0x62]
shr rax, 1
add r12, rax
cmp r12, r13
jb 0x140017740
movzx r8d, word [rdi]
lea rax, [r8 + r12*2]
add rax, 4
and rbp, 0xfffffffffffffffe
cmp rax, rbp
jbe 0x1400177da
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_d8b47d80163d_browser_app_winlauncher_freestanding_SharedSection.cpp
mov qword [rsi], rax
movabs rax, 0x8007007a000000c3
mov qword [rsi + 8], rax
jmp 0x14001782a
call sub.ntdll.dll_RtlGetLastWin32Error
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_d8b47d80163d_browser_app_winlauncher_freestanding_SharedSection.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0xb6
mov dword [rsi + 0xc], ecx
jmp 0x14001782a
cmp r13, r12
jb 0x140017886
test r15, r15
sete al
sub r13, r12
sete cl
and cl, al
cmp r13, 0xffffffffffffffff
sete dl
or dl, al
cmp cl, dl
jne 0x140017876
test r15, r15
lea rax, [r15 + r12*2]
mov ebx, 2
cmovne rbx, rax
mov rdx, qword [rdi + 8]
mov rcx, rbx
call sub.ntdll.dll_memcpy
movzx eax, word [rdi]
and eax, 0xfffffffe
mov word [rbx + rax], 0
mov byte [rsi + 0x10], 0
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x140017852
mov rcx, 0xffffffffffffffff
call sub.ntdll.dll_NtUnmapViewOfSection
test eax, eax
jns 0x140017852
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
mov rax, qword [rsp + 0x70]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x140017896
mov rax, rsi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov dword [0], 0x336
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov dword [0], 0x293
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
call fcn.1400c8850
int3
Function at 0x140018f50
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov ebx, r9d
mov r14, r8
mov r15, rdx
mov rsi, rcx
movzx ebp, byte [rsp + 0x88]
mov r12d, dword [rsp + 0x80]
mov eax, dword [0x14013703c]
mov rcx, qword gs:[0x30]
cmp eax, dword [rcx + 0x48]
je 0x140018fb3
cmp byte [0x140137039], 0
je 0x140018fb3
mov eax, dword [0x140134660]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 8]
jmp 0x140018fb8
call fcn.14001b5d0
mov qword [rsi], rax
lea rdi, [rsi + 8]
mov qword [rsi + 8], 0
mov byte [rsi + 0x10], 0
mov dword [rsi + 0x14], ebx
lea rcx, [rsi + 0x18]
mov qword [rsi + 0x20], 0
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x48]
mov dword [rsi + 0x28], eax
xorps xmm0, xmm0
movups xmmword [rsi + 0x30], xmm0
lea rbx, [rsi + 0x40]
movups xmm1, xmmword [r15]
movups xmmword [rsi + 0x40], xmm1
mov dword [r15], 0
mov qword [r15 + 8], 0
mov qword [rsi + 0x50], r14
movups xmmword [rsi + 0x60], xmm0
mov qword [rsi + 0x58], 8
mov dword [rsi + 0x70], r12d
mov byte [rsi + 0x74], bpl
call sub.ntdll.dll_RtlQueryPerformanceCounter
mov eax, dword [0x14013703c]
mov rcx, qword gs:[0x30]
cmp eax, dword [rcx + 0x48]
jne 0x140019046
mov rcx, rsi
call fcn.14001b5e0
jmp 0x140019080
cmp byte [0x140137039], 0
jne 0x140019066
mov rax, qword gs:[0x30]
cmp qword [rax + 0x58], 0
je case.default.0x1400190a6
mov byte [0x140137039], 1
mov eax, dword [0x140134660]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 8], rsi
lea rcx, case.0x140018f2e.0
mov rax, qword [case.0x140018f2e.0]
mov rax, qword [rax + 0x38]
mov rdx, rdi
mov r8, rbx
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp rax
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x48]
mov dword [0x14013703c], eax
jmp 0x14001903c
Function at 0x1400198b0
Capabilities:
Map section object

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
mov rdi, qword [0x1400f74a8]
mov rax, qword [rdi]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x1000
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 4
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test rax, rax
je 0x14001998c
mov rcx, rax
call fcn.1400197a0
mov rcx, qword [0x140137020]
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 2
lea r8, [rsp + 0x58]
mov rdx, 0xffffffffffffffff
xor r9d, r9d
call sub.ntdll.dll_NtMapViewOfSection
test eax, eax
jns 0x14001996f
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x1400199ba
lea rcx, [rbx + 8]
call fcn.140019380
mov dword [rbx], 1
xor eax, eax
jmp 0x1400199e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_d8b47d80163d_browser_app_winlauncher_freestanding_SharedSection.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x9e
mov dword [rsi + 0xc], ecx
jmp 0x140019a0f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rax, str._var_tmp_build_firefox_d8b47d80163d_browser_app_winlauncher_freestanding_SharedSection.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0xa8
mov dword [rsi + 0xc], ecx
mov al, 1
mov byte [rsi + 0x10], al
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x140019a0f
mov rcx, 0xffffffffffffffff
call sub.ntdll.dll_NtUnmapViewOfSection
test eax, eax
jns 0x140019a0f
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
mov rax, qword [rsp + 0x68]
xor rax, rsp
mov rcx, qword [rdi]
cmp rcx, rax
jne 0x140019a2a
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
call fcn.1400c8850
int3
Function at 0x140019aa0
Capabilities:
Map section object

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
mov r14, qword [0x1400f74a8]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp dword [rdx], 0
je 0x140019b66
mov ebx, r8d
mov rdi, rdx
mov rcx, qword [0x140137020]
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 2
lea r8, [rsp + 0x58]
mov rdx, 0xffffffffffffffff
xor r9d, r9d
call sub.ntdll.dll_NtMapViewOfSection
test eax, eax
jns 0x140019b38
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
mov r15, qword [rsp + 0x58]
test r15, r15
je 0x140019b6f
cmp dword [r15 + 0x2c], 0
je 0x140019b9c
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_d8b47d80163d_browser_app_winlauncher_freestanding_SharedSection.cpp
mov qword [rsi], rax
movabs rax, 0x8007139f000000d8
jmp 0x140019bf2
mov byte [rsi + 0x10], 0
jmp 0x140019c1e
call sub.ntdll.dll_RtlGetLastWin32Error
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_d8b47d80163d_browser_app_winlauncher_freestanding_SharedSection.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0xd1
mov dword [rsi + 0xc], ecx
jmp 0x140019bf6
movzx eax, bl
mov dword [r15 + 0x28], eax
mov r8d, dword [rdi]
cmp r8, 0xfc8
ja 0x140019bda
lea rcx, [r15 + 0x38]
mov rdx, qword [rdi + 8]
call sub.ntdll.dll_memcpy
mov eax, dword [rdi]
test eax, eax
je 0x140019bda
cmp eax, 0x21
mov ecx, 0x20
cmovae ecx, eax
add ecx, 0x38
mov dword [r15 + 0x2c], ecx
mov byte [rsi + 0x10], 0
jmp 0x140019bf6
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_d8b47d80163d_browser_app_winlauncher_freestanding_SharedSection.cpp
mov qword [rsi], rax
movabs rax, 0x8007007a000000e1
mov qword [rsi + 8], rax
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x140019c1e
mov rcx, 0xffffffffffffffff
call sub.ntdll.dll_NtUnmapViewOfSection
test eax, eax
jns 0x140019c1e
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
mov rax, qword [rsp + 0x68]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x140019c3d
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400c8850
int3
Function at 0x14001a2e0
Capabilities:
Check os version

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x148
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [0x1400f74a8]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov qword [r8], 0xffffffffffffffff
mov eax, dword [rcx + 0x18]
test al, 3
je 0x14001a35a
lea rcx, [rsp + 0x24]
mov r8d, 0x110
xor edx, edx
call sub.ntdll.dll_memset
mov dword [rsp + 0x20], 0x114
lea rcx, [rsp + 0x20]
call sub.ntdll.dll_RtlGetVersion
test eax, eax
js 0x14001a4c1
mov eax, dword [rsi + 0x18]
test al, 2
jne 0x14001a4c8
test al, 1
jne 0x14001a4e3
test al, 8
je 0x14001a370
mov rcx, qword [0x1400f8198]
xor ebx, ebx
test byte [rcx], 1
je 0x14001a517
test al, 0x40
je 0x14001a386
mov rcx, qword [0x1400f8198]
xor ebx, ebx
test byte [rcx], 4
je 0x14001a517
test al, al
jns 0x14001a39c
mov rcx, qword [0x1400f8198]
xor ebx, ebx
test byte [rcx], 8
je 0x14001a517
test eax, 0x100
je 0x14001a3b5
mov rcx, qword [0x1400f8198]
xor ebx, ebx
test byte [rcx], 0x10
je 0x14001a517
test al, 0x10
je 0x14001a3cb
mov rcx, qword [0x1400f8198]
xor ebx, ebx
test byte [rcx], 1
jne 0x14001a517
test eax, 0x200
je 0x14001a3e4
mov rcx, qword [0x1400f8198]
xor ebx, ebx
test byte [rcx], 0x20
je 0x14001a517
mov rcx, qword [rsi + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x14001a4fe
mov ebx, 2
cmp qword [r14 + 0x10], 0
je 0x14001a517
test al, 4
jne 0x14001a505
mov rcx, r14
mov dx, 0x10
mov r8w, 1
xor r9d, r9d
call fcn.14001a550
test rax, rax
je 0x14001a517
mov r14, rax
movzx ebp, word [rax]
cmp bp, 0x26
jb 0x14001a517
movaps xmm0, xmmword [0x1400f9530]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [0x1400f9520]
movaps xmmword [rsp + 0x20], xmm0
mov rcx, r14
add rcx, 6
lea rdx, [rsp + 0x20]
mov r8d, 0x10
call qword [sym.imp.ntdll.dll_RtlCompareMemory]
cmp rax, 0x10
jne 0x14001a517
cmp word [r14 + 2], 0x34
jne 0x14001a517
mov eax, 2
sub eax, r14d
and eax, 3
add rax, 0x26
cmp ax, bp
jae 0x14001a517
cmp dword [rax + r14], 0xfeef04bd
jne 0x14001a517
mov ecx, dword [r14 + rax + 8]
mov eax, dword [r14 + rax + 0xc]
shl rcx, 0x20
or rax, rcx
mov qword [rdi], rax
xor ecx, ecx
cmp qword [rsi + 0x10], rax
setae cl
lea ebx, [rcx + rcx*2]
jmp 0x14001a517
mov ebx, 2
jmp 0x14001a517
xor ebx, ebx
cmp dword [rsp + 0x24], 6
ja 0x14001a517
jne 0x14001a352
cmp dword [rsp + 0x28], 2
ja 0x14001a517
jmp 0x14001a352
xor ebx, ebx
cmp dword [rsp + 0x24], 6
ja 0x14001a517
jne 0x14001a35a
cmp dword [rsp + 0x28], 2
jae 0x14001a517
jmp 0x14001a35a
mov ebx, 3
jmp 0x14001a517
mov rax, qword [r14 + 8]
mov eax, dword [rax + 8]
xor edx, edx
cmp rcx, rax
setae dl
lea ebx, [rdx + rdx*2]
mov rax, qword [rsp + 0x140]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x14001a53c
mov eax, ebx
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400c8850
int3
Function at 0x14001b5f0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
test rdx, rdx
je 0x14001b67a
mov rax, rdx
movzx ecx, word [rdx]
cmp ecx, 0x5a4d
jne 0x14001b67a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
je 0x14001b67a
cmp dword [rcx], 0x4550
jne 0x14001b67a
movzx edx, word [rcx + 0x18]
cmp edx, 0x20b
jne 0x14001b67a
cmp dword [rcx + 0x50], 0x147
jbe 0x14001b67a
cmp dword [rcx + 0x84], 0
je 0x14001b67a
mov r9d, dword [rcx + 0x88]
test r9, r9
je 0x14001b67a
mov ecx, dword [rcx + 0x8c]
test ecx, ecx
je 0x14001b67a
mov rdx, r9
add rdx, rax
je 0x14001b67a
cmp dword [rdx + 0x14], 0
je 0x14001b67a
add ecx, r9d
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], ecx
mov rcx, rsi
mov rdx, r8
mov r8, rax
call fcn.14001b6b0
jmp 0x14001b6a3
mov qword [rsi], r8
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
mov dword [rsi + 0x18], 0
mov qword [rsi + 0x20], r8
movups xmmword [rsi + 0x28], xmm0
mov qword [rsi + 0x38], r8
movups xmmword [rsi + 0x40], xmm0
mov qword [rsi + 0x50], r8
movups xmmword [rsi + 0x58], xmm0
mov rax, rsi
add rsp, 0x30
pop rsi
ret
Function at 0x14001c820
Capabilities:
Get file version info

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x178
mov rbx, rdx
mov rsi, rcx
mov r15, qword [0x1400f74a8]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x170], rax
lea rdx, str.CreateFileVersionInfoWin
lea r8, str._var_tmp_build_firefox_d8b47d80163d_security_sandbox_chromium_shim_base_file_version_info_win.cpp
lea rcx, [rsp + 0x38]
mov r9d, 0x31
call fcn.140022b00
test byte [rbx], 1
je 0x14001c877
mov rbx, qword [rbx + 0x10]
jmp 0x14001c87b
add rbx, 2
lea rdx, [rsp + 0x28]
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x14001c996
mov ebp, eax
mov r14d, eax
mov rcx, r14
call fcn.1400c70b0
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, r14
call sub.ntdll.dll_memset
mov edx, dword [rsp + 0x28]
mov rcx, rbx
mov r8d, ebp
mov r9, rdi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14001c985
mov qword [rsp + 0x38], 0
lea rdx, str.VarFileInfoTranslation
lea r8, [rsp + 0x38]
lea r9, [rsp + 0x30]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14001c985
mov r12, qword [rsp + 0x38]
test r12, r12
je 0x14001c985
mov r13, rdi
add r13, r14
mov ecx, 0x30
call fcn.1400c70b0
mov rbx, rax
mov eax, dword [r12]
mov qword [rbx], rdi
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], rdi
mov dword [rbx + 0x20], eax
mov qword [rsp + 0x30], 0
lea rdx, [0x1400fa602]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x2c]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x14001c977
lea rdx, str._var_tmp_build_firefox_d8b47d80163d_security_sandbox_chromium_shim_base_file_version_info_win.cpp
lea r9, str.::VerQueryValue_data__kRoot__fixed_file_info__dummy_size_
lea rdi, [rsp + 0x38]
mov rcx, rdi
mov r8d, 0x28
call fcn.14001e070
mov rcx, rdi
call fcn.14001e310
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0x28], rax
mov qword [rsi], rbx
jmp 0x14001c99d
mov qword [rsi], 0
mov rcx, rdi
call fcn.1400c7190
jmp 0x14001c99d
mov qword [rsi], 0
mov rax, qword [rsp + 0x170]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x14001c9c7
mov rax, rsi
add rsp, 0x178
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400c8850
int3