joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400129e0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x178
movaps xmmword [rsp + 0x160], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1400f6380]
mov rax, qword [rax]
xor rax, rsp
mov qword [rsp + 0x158], rax
add rcx, 8
mov qword [rsp + 0x40], rcx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov r14, qword [rdi]
test r14, r14
je 0x14001299a
xorps xmm6, xmm6
lea rbx, [rsp + 0x50]
mov rbp, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rdi, [rsp + 0x4c]
mov r15, qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400127ec
mov qword [rsp + 0x20], 0
mov rcx, rsi
lea rdx, [0x1400f6e24]
mov r8d, 1
mov r9, rdi
call r15
mov r14, qword [r14 + 0x18]
test r14, r14
je 0x14001299a
mov r8, qword [r14 + 8]
movzx r9d, word [r14]
shr r9d, 1
movups xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 0x104
mov ecx, 0xfde9
xor edx, edx
call rbp
test eax, eax
je 0x1400127df
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
mov r9, rdi
call r15
test eax, eax
je 0x1400127df
cmp qword [r14 + 0x10], 0xffffffffffffffff
je 0x1400127c0
mov qword [rsp + 0x20], 0
mov rcx, rsi
lea rdx, [0x1400f6e20]
mov r8d, 1
mov r9, rdi
call r15
mov r12, qword [r14 + 0x10]
mov rcx, r12
shr rcx, 0x30
mov r13, r12
shr r13, 0x20
mov ebp, r12d
shr ebp, 0x10
mov rdx, rbx
mov r8d, 0xa
call sub.api_ms_win_crt_convert_l1_1_0.dll__ltoa
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
mov r9, rdi
call r15
mov qword [rsp + 0x20], 0
mov rcx, rsi
lea rdx, [0x1400f6e22]
mov r8d, 1
mov r9, rdi
call r15
movzx ecx, r13w
mov rdx, rbx
mov r8d, 0xa
call sub.api_ms_win_crt_convert_l1_1_0.dll__ltoa
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
mov r9, rdi
call r15
mov qword [rsp + 0x20], 0
mov rcx, rsi
lea r13, [0x1400f6e22]
mov rdx, r13
mov r8d, 1
mov r9, rdi
call r15
mov ecx, ebp
mov rdx, rbx
mov r8d, 0xa
call sub.api_ms_win_crt_convert_l1_1_0.dll__ltoa
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
mov r9, rdi
call r15
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, r13
mov r8d, 1
mov r9, rdi
call r15
movzx ecx, r12w
mov rbp, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rdx, rbx
mov r8d, 0xa
call sub.api_ms_win_crt_convert_l1_1_0.dll__ltoa
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
mov r9, rdi
call r15
jmp 0x1400127c0
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov rax, qword [rsp + 0x158]
xor rax, rsp
mov rcx, qword [0x1400f6380]
mov rcx, qword [rcx]
cmp rcx, rax
jne 0x1400129da
movaps xmm6, xmmword [rsp + 0x160]
add rsp, 0x178
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140072349
int3
mov rdx, rcx
lea rcx, [0x14012e240]
jmp 0x140012750
Function at 0x140013250
Capabilities:
Map section object

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, rcx
mov rdi, qword [0x1400f6380]
mov rax, qword [rdi]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [0x14012fbf0]
test rax, rax
jne 0x1400132f1
mov rcx, qword [0x14012fbe8]
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 8
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 2
lea r8, [rsp + 0x50]
mov rdx, 0xffffffffffffffff
xor r9d, r9d
call sub.ntdll.dll_NtMapViewOfSection
test eax, eax
jns 0x1400132e0
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x140013312
mov qword [0x14012fbf0], rax
mov byte [rsi + 0x10], 0
mov qword [rsi], rax
mov rax, qword [rsp + 0x60]
xor rax, rsp
mov rcx, qword [rdi]
cmp rcx, rax
jne 0x140013367
mov rax, rsi
add rsp, 0x68
pop rdi
pop rsi
ret
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_cc4c8eaff833_browser_app_winlauncher_freestanding_SharedSection.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0xdb
mov dword [rsi + 0xc], ecx
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x1400132f8
mov rcx, 0xffffffffffffffff
call sub.ntdll.dll_NtUnmapViewOfSection
test eax, eax
jns 0x1400132f8
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
jmp 0x1400132f8
call fcn.140072349
int3
Function at 0x140014770
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov ebp, r9d
mov r12, r8
mov rdi, rdx
mov rsi, rcx
mov r15b, byte [rsp + 0x88]
mov ebx, dword [rsp + 0x80]
mov eax, dword [0x14012fbfc]
mov rcx, qword gs:[0x30]
cmp eax, dword [rcx + 0x48]
je 0x1400147d2
cmp byte [0x14012fbfa], 0
je 0x1400147d2
mov eax, dword [0x14012d2b0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 8]
jmp 0x1400147d7
call fcn.140016bc0
mov qword [rsi], rax
lea r14, [rsi + 8]
mov qword [rsi + 8], 0
mov byte [rsi + 0x10], 0
mov dword [rsi + 0x14], ebp
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
movups xmm1, xmmword [rdi]
movups xmmword [rsi + 0x40], xmm1
mov dword [rdi], 0
mov qword [rdi + 8], 0
mov qword [rsi + 0x50], r12
movups xmmword [rsi + 0x60], xmm0
mov qword [rsi + 0x58], 8
mov dword [rsi + 0x70], ebx
mov byte [rsi + 0x74], r15b
call sub.ntdll.dll_RtlQueryPerformanceCounter
mov eax, dword [0x14012fbfc]
mov rcx, qword gs:[0x30]
cmp eax, dword [rcx + 0x48]
jne 0x14001485e
mov rcx, rsi
call fcn.140016bd0
jmp 0x140014898
cmp byte [0x14012fbfa], 0
jne 0x14001487e
mov rax, qword gs:[0x30]
cmp qword [rax + 0x58], 0
je case.default.0x1400148c2
mov byte [0x14012fbfa], 1
mov eax, dword [0x14012d2b0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 8], rsi
add rsi, 0x40
lea rcx, case.0x14001474e.0
mov rax, qword [case.0x14001474e.0]
mov rax, qword [rax + 0x30]
mov rdx, r14
mov r8, rsi
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 [0x14012fbfc], eax
jmp 0x140014854
Function at 0x1400151b0
Capabilities:
Map section object

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
mov rbx, qword [0x1400f6380]
mov rax, qword [rbx]
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 0x1400152cc
mov rdi, rax
mov rdx, qword [0x14012fbf0]
test rdx, rdx
je 0x140015236
mov qword [0x14012fbf0], 0
mov rcx, 0xffffffffffffffff
call sub.ntdll.dll_NtUnmapViewOfSection
test eax, eax
jns 0x140015236
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
mov rcx, qword [0x14012fbe8]
cmp rcx, rdi
je 0x140015254
test rcx, rcx
je 0x14001524d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14012fbe8], rdi
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 rcx, rdi
mov rdx, 0xffffffffffffffff
xor r9d, r9d
call sub.ntdll.dll_NtMapViewOfSection
test eax, eax
jns 0x1400152b9
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400152fa
call fcn.140014bc0
xor eax, eax
jmp 0x140015324
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_cc4c8eaff833_browser_app_winlauncher_freestanding_SharedSection.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0xb5
mov dword [rsi + 0xc], ecx
jmp 0x14001534f
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_cc4c8eaff833_browser_app_winlauncher_freestanding_SharedSection.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0xbf
mov dword [rsi + 0xc], ecx
mov al, 1
mov byte [rsi + 0x10], al
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x14001534f
mov rcx, 0xffffffffffffffff
call sub.ntdll.dll_NtUnmapViewOfSection
test eax, eax
jns 0x14001534f
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 [rbx]
cmp rcx, rax
jne 0x14001536a
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
call fcn.140072349
int3
Function at 0x140016be0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
test rdx, rdx
je 0x140016c6a
mov rax, rdx
movzx ecx, word [rdx]
cmp ecx, 0x5a4d
jne 0x140016c6a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
je 0x140016c6a
cmp dword [rcx], 0x4550
jne 0x140016c6a
movzx edx, word [rcx + 0x18]
cmp edx, 0x20b
jne 0x140016c6a
cmp dword [rcx + 0x50], 0x147
jbe 0x140016c6a
cmp dword [rcx + 0x84], 0
je 0x140016c6a
mov r9d, dword [rcx + 0x88]
test r9, r9
je 0x140016c6a
mov ecx, dword [rcx + 0x8c]
test ecx, ecx
je 0x140016c6a
mov rdx, r9
add rdx, rax
je 0x140016c6a
cmp dword [rdx + 0x14], 0
je 0x140016c6a
add ecx, r9d
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], ecx
mov rcx, rsi
mov rdx, r8
mov r8, rax
call fcn.140016ca0
jmp 0x140016c93
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 0x140016e40
Capabilities:
Get file version info

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x178
mov rbx, rdx
mov r14, rcx
mov r15, qword [0x1400f6380]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x170], rax
lea rdx, str.CreateFileVersionInfoWin
lea r8, str._var_tmp_build_firefox_cc4c8eaff833_security_sandbox_chromium_shim_base_file_version_info_win.cpp
lea rcx, [rsp + 0x38]
mov r9d, 0x31
call fcn.14001f2c0
test byte [rbx], 1
je 0x140016e93
mov rbx, qword [rbx + 0x10]
jmp 0x140016e97
add rbx, 2
lea rdx, [rsp + 0x28]
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x140016faf
mov ebp, eax
mov esi, eax
mov rcx, rsi
call fcn.1400c03b0
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
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 0x140016f9e
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 0x140016f9e
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x140016f9e
mov rbp, rdi
add rbp, rsi
mov ecx, 0x30
call fcn.1400c03b0
mov rsi, rax
mov eax, dword [rbx]
mov qword [rsi], rdi
mov qword [rsi + 8], rbp
mov qword [rsi + 0x10], rbp
mov qword [rsi + 0x18], rdi
mov dword [rsi + 0x20], eax
mov qword [rsp + 0x30], 0
lea rdx, [0x1400f8a32]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x2c]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x140016f90
lea rdx, str._var_tmp_build_firefox_cc4c8eaff833_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.140018660
mov rcx, rdi
call fcn.1400188e0
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x28], rax
mov qword [r14], rsi
jmp 0x140016fb6
mov qword [r14], 0
mov rcx, rdi
call fcn.1400c0490
jmp 0x140016fb6
mov qword [r14], 0
mov rax, qword [rsp + 0x170]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x140016fdc
mov rax, r14
add rsp, 0x178
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140072349
int3
Function at 0x14001be60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rdx
mov r15, rcx
mov r14, qword [0x1400f6380]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x30], rax
movzx r8d, byte [rdx]
lea rbx, [rdx + 2]
test r8b, 1
je 0x14001be9c
mov rdx, qword [rsi + 0x10]
mov r8, qword [rsi + 8]
jmp 0x14001bea2
shr r8, 1
mov rdx, rbx
add r8, r8
lea rcx, [rsp + 0x28]
call fcn.14001b1c0
mov r11, qword [r15 + 8]
test r11, r11
je 0x14001c055
mov r8, rax
mov rax, r11
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, r11
sub rax, rcx
movabs rcx, 0x3333333333333333
mov rdx, rax
and rdx, rcx
shr rax, 2
and rax, rcx
add rax, rdx
mov rcx, rax
shr rcx, 4
add rcx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rcx
movabs r10, 0x101010101010101
imul r10, rax
shr r10, 0x38
cmp r10, 1
ja 0x14001bf2a
lea r9, [r11 - 1]
and r9, r8
jmp 0x14001bf58
cmp r8, r11
jae 0x14001bf34
mov r9, r8
jmp 0x14001bf58
mov rax, r8
or rax, r11
shr rax, 0x20
je 0x14001bf4d
mov rax, r8
xor edx, edx
div r11
mov r9, rdx
jmp 0x14001bf58
mov eax, r8d
xor edx, edx
div r11d
mov r9d, edx
mov rax, qword [r15]
mov rax, qword [rax + r9*8]
test rax, rax
je 0x14001c055
mov rcx, qword [rax]
test rcx, rcx
je 0x14001c055
movzx edi, byte [rsi]
test dil, 1
je 0x14001bf87
mov rdi, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
jmp 0x14001bf8a
shr rdi, 1
lea rsi, [r11 - 1]
jmp 0x14001bfa8
and rax, rsi
cmp rax, r9
jne 0x14001c055
mov rcx, qword [rcx]
test rcx, rcx
je 0x14001c055
mov rax, qword [rcx + 8]
cmp rax, r8
jne 0x14001bfd0
movzx eax, byte [rcx + 0x10]
test al, 1
je 0x14001c000
mov rdx, qword [rcx + 0x18]
cmp rdx, rdi
jne 0x14001bf9c
jmp 0x14001c00b
cmp r10d, 1
jbe 0x14001bf90
cmp rax, r11
jb 0x14001bf93
mov rdx, rax
or rdx, r11
shr rdx, 0x20
je 0x14001c049
xor edx, edx
div r11
mov rax, rdx
jmp 0x14001bf93
mov rdx, rax
shr rdx, 1
cmp rdx, rdi
jne 0x14001bf9c
test rdi, rdi
je 0x14001c057
test al, 1
je 0x14001c01a
mov rax, qword [rcx + 0x20]
jmp 0x14001c022
lea rax, [rcx + 0x10]
add rax, 2
xor edx, edx
nop word cs:[rax + rax]
nop
movzx ebp, word [rax + rdx*2]
cmp bp, word [rbx + rdx*2]
jne 0x14001bf9c
add rdx, 1
cmp rdi, rdx
jne 0x14001c030
jmp 0x14001c057
xor edx, edx
div r11d
mov eax, edx
jmp 0x14001bf93
xor ecx, ecx
mov rax, qword [rsp + 0x30]
xor rax, rsp
mov rdx, qword [r14]
cmp rdx, rax
jne 0x14001c077
mov rax, rcx
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140072349
int3
Function at 0x14001ec50
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r14, rdx
mov rsi, rcx
mov r15, qword [0x1400f6380]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rcx]
movaps xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x40]
call fcn.140031210
test byte [rsp + 0x50], 1
je 0x14001ec98
mov rcx, qword [rsp + 0x60]
jmp 0x14001ec9d
lea rcx, [rsp + 0x52]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test byte [rsp + 0x50], 1
je 0x14001ecbb
mov rcx, qword [rsp + 0x60]
call fcn.1400c0490
test r14, r14
je 0x14001ed80
test edi, edi
je 0x14001ed80
mov ecx, edi
add rcx, rcx
call fcn.1400c0450
mov rbx, rax
movups xmm0, xmmword [rsi]
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x30]
call fcn.140031210
test byte [rsp + 0x50], 1
je 0x14001ecfe
mov rcx, qword [rsp + 0x60]
jmp 0x14001ed03
lea rcx, [rsp + 0x52]
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test byte [rsp + 0x50], 1
je 0x14001ed20
mov rcx, qword [rsp + 0x60]
call fcn.1400c0490
mov qword [rsp + 0x20], rbx
cmp word [rbx], 0
je 0x14001ed41
xor ecx, ecx
nop dword [rax]
lea rax, [rcx + 1]
cmp word [rbx + rcx*2 + 2], 0
mov rcx, rax
jne 0x14001ed30
jmp 0x14001ed43
xor eax, eax
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x20]
call fcn.140031280
test byte [r14], 1
je 0x14001ed66
mov rcx, qword [r14 + 0x10]
call fcn.1400c0490
mov rax, qword [rsp + 0x60]
mov qword [r14 + 0x10], rax
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [r14], xmm0
mov rcx, rbx
call fcn.1400c04c0
test edi, edi
setne al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
mov rdx, qword [r15]
cmp rdx, rcx
jne 0x14001eda1
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140072349
int3
Function at 0x14001f500
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, r9
mov rdi, r8
mov ebx, edx
mov rsi, rcx
call fcn.14001f970
test rdi, rdi
je 0x14001f54b
test al, al
je 0x14001f54b
movsxd rax, ebx
mov rdx, rax
sar rdx, 0x3f
add rax, rdi
adc rdx, 0
mov ecx, edx
and ecx, 1
neg rcx
xor rdx, rcx
jne 0x14001f54b
test rcx, rcx
js 0x14001f54b
cmp qword [rsi + 0x10], rax
jae 0x14001f557
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, rsi
mov edx, ebx
mov r8, rdi
mov r9, r14
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x14001fe20
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 ebp, edx
mov rsi, rcx
mov r13, qword [0x1400f6380]
mov rax, qword [r13]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor eax, eax
cmp dword [rcx + 8], 0
setne al
lea r12d, [rax + rax]
add r12d, 4
mov edi, edx
sar edi, 0x1f
mov rcx, qword [rcx]
mov qword [rsp + 0x20], r8
mov edx, r12d
mov r8d, edi
mov r9d, ebp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov qword [r14], rax
test rax, rax
jne 0x14001fea8
mov rcx, qword [rsi]
mov qword [rsp + 0x20], r15
mov edx, r12d
mov r8d, edi
mov r9d, ebp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov qword [r14], rax
test rax, rax
je 0x14001feff
mov rsi, qword [rsp + 0xd0]
lea rdx, [rsp + 0x30]
mov r8d, 0x30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rcx, qword [rsp + 0x48]
sub rcx, rbx
add rcx, qword [rsp + 0x38]
test rax, rax
cmove rcx, rax
mov qword [rsi], rcx
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
mov rdx, qword [r13]
cmp rdx, rcx
jne 0x14001ff03
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x14001fedd
call fcn.140072349
int3

Function at 0x14001f570
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14001f603
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rbx, qword [rsi]
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14001f5c8
mov r14, qword [rsp + 0x48]
call fcn.14001f300
mov rcx, rbx
mov rdx, rsi
mov r8, r14
mov r9, rax
call fcn.1400418f0
mov rcx, qword [rsi]
call fcn.140041880
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14001f5f0
mov qword [rsi], rdi
mov rbx, qword [rsp + 0x48]
call fcn.14001f300
mov rcx, rdi
mov rdx, rsi
mov r8, rbx
mov r9, rax
call fcn.1400418b0
mov ecx, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x14001fe20
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, r9
mov rdi, r8
mov ebx, edx
mov rsi, rcx
call fcn.14001f970
test rdi, rdi
je 0x14001f54b
test al, al
je 0x14001f54b
movsxd rax, ebx
mov rdx, rax
sar rdx, 0x3f
add rax, rdi
adc rdx, 0
mov ecx, edx
and ecx, 1
neg rcx
xor rdx, rcx
jne 0x14001f54b
test rcx, rcx
js 0x14001f54b
cmp qword [rsi + 0x10], rax
jae 0x14001f557
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, rsi
mov edx, ebx
mov r8, rdi
mov r9, r14
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x14001fe20
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 ebp, edx
mov rsi, rcx
mov r13, qword [0x1400f6380]
mov rax, qword [r13]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor eax, eax
cmp dword [rcx + 8], 0
setne al
lea r12d, [rax + rax]
add r12d, 4
mov edi, edx
sar edi, 0x1f
mov rcx, qword [rcx]
mov qword [rsp + 0x20], r8
mov edx, r12d
mov r8d, edi
mov r9d, ebp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov qword [r14], rax
test rax, rax
jne 0x14001fea8
mov rcx, qword [rsi]
mov qword [rsp + 0x20], r15
mov edx, r12d
mov r8d, edi
mov r9d, ebp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov qword [r14], rax
test rax, rax
je 0x14001feff
mov rsi, qword [rsp + 0xd0]
lea rdx, [rsp + 0x30]
mov r8d, 0x30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rcx, qword [rsp + 0x48]
sub rcx, rbx
add rcx, qword [rsp + 0x38]
test rax, rax
cmove rcx, rax
mov qword [rsi], rcx
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
mov rdx, qword [r13]
cmp rdx, rcx
jne 0x14001ff03
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x14001fedd
call fcn.140072349
int3

Function at 0x1400219d0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x168
mov r13, qword [0x1400f6380]
mov rax, qword [r13]
xor rax, rsp
mov qword [rsp + 0x160], rax
test rdx, rdx
je 0x140021a60
mov rsi, rdx
mov rdi, rcx
mov ebp, 0xffffffff
lea r14, str._var_tmp_build_firefox_cc4c8eaff833_security_sandbox_chromium_base_rand_util_win.cc
lea r15, str.success
lea r12, [rsp + 0x28]
jmp 0x140021a28
add rdi, rbx
sub rsi, rbx
je 0x140021a60
cmp rsi, rbp
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140021a20
mov rcx, r12
mov rdx, r14
mov r8d, 0x20
mov r9, r15
call fcn.140018660
mov rcx, r12
call fcn.1400188e0
jmp 0x140021a20
mov rax, qword [rsp + 0x160]
xor rax, rsp
mov rcx, qword [r13]
cmp rcx, rax
jne 0x140021a88
add rsp, 0x168
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140072349
int3