joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003410
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140003428
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140003430
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140003440
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000348d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140003484
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000348f
add rax, 0x28
cmp rax, r9
jne 0x140003470
xor eax, eax
ret

Function at 0x140003490
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140003520
mov rdx, qword [0x1400067d0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000350e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000350e
cmp word [rax + 0x18], 0x20b
jne 0x14000350e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140003520
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400034f9
add rbx, 0x28
cmp rbx, rdi
je 0x140003520
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400034f0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140003530
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400067d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003550
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003558
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003550
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400035ad
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400035a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003550
add rax, 0x28
cmp rax, r9
jne 0x140003590
xor eax, eax
ret

Function at 0x1400035b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400067d0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400035cf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400035d8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400035cf
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1400035f0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400067d0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140003610
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140003618
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140003610
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140003660
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140003657
test rcx, rcx
je 0x140003610
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140003648
xor eax, eax
ret

Function at 0x140003670
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400067d0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000368f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003698
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400036b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400067d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400036d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400036d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400036d0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400036d0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140003724
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140003730
add rdx, 0x28
cmp r9, rdx
jne 0x140003710
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140003740
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400067d0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140003762
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140003770
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003762
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140003762
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140003762
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400037c5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400037d8
add rdx, 0x28
cmp rdx, r10
jne 0x1400037b0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400037e7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400037f7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400037ce
test ecx, ecx
jg 0x1400037e0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001160
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov rsi, qword [0x1400db048]
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
je 0x1400011b9
cmp rdi, rax
je 0x1400011b9
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
nop word [rax + rax]
mov ecx, 0x3e8
call r14
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
je 0x1400011b9
cmp rdi, rax
jne 0x1400011a0
mov rdi, qword [0x1400db050]
mov eax, dword [rdi]
cmp eax, 1
jne 0x1400011d3
mov ecx, 0x1f
call fcn.1400ae150
jmp 0x1400011fa
cmp dword [rdi], 0
je 0x1400011e1
mov byte [0x140108350], 1
jmp 0x1400011fa
mov dword [rdi], 1
mov rcx, qword [0x1400db068]
mov rdx, qword [0x1400db070]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov eax, dword [rdi]
cmp eax, 1
jne 0x14000121a
mov rcx, qword [0x1400db058]
mov rdx, qword [0x1400db060]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rdi], 2
test bl, 1
je 0x140001224
xor eax, eax
xchg qword [rsi], rax
mov rax, qword [0x1400db008]
mov rax, qword [rax]
test rax, rax
je 0x14000123f
xor ecx, ecx
mov edx, 2
xor r8d, r8d
call rax
call fcn.1400acf60
lea rcx, [0x1400ad500]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [0x1400db040]
mov qword [rcx], rax
lea rcx, [0x140001390]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1400acf50
movsxd rdi, dword [0x14010833c]
lea rcx, [rdi*8 + 8]
call sub.mozglue.dll_malloc
mov rsi, rax
test rdi, rdi
jle 0x1400012d2
mov ebx, edi
mov r14, qword [0x140108340]
xor r15d, r15d
nop word cs:[rax + rax]
mov rcx, qword [r14 + r15*8]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rdi, [rax + 1]
mov rcx, rdi
call sub.mozglue.dll_malloc
mov qword [rsi + r15*8], rax
mov rdx, qword [r14 + r15*8]
mov rcx, rax
mov r8, rdi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
inc r15
cmp rbx, r15
jne 0x1400012a0
jmp 0x1400012d4
xor ebx, ebx
mov qword [rsi + rbx*8], 0
mov qword [0x140108340], rsi
call fcn.1400acda0
mov rax, qword [0x140108348]
mov rcx, qword [0x1400db018]
mov rcx, qword [rcx]
mov qword [rcx], rax
mov ecx, dword [0x14010833c]
mov rdx, qword [0x140108340]
mov r8, qword [0x140108348]
call fcn.1400013a0
mov dword [0x140108354], eax
cmp dword [0x140108334], 0
je 0x140001344
cmp byte [0x140108350], 0
jne 0x140001338
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x140108354]
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x1400013a0
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov rbx, qword [0x1400db108]
call fcn.1400acda0
mov rax, qword [rbx]
xor rax, rbp
mov qword [rbp], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [rbp - 4], 0
lea rdx, [rbp - 4]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test rax, rax
je 0x1400013fd
mov rdi, rax
mov ecx, dword [rbp - 4]
mov rdx, rax
call fcn.140001430
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140001402
mov esi, 0x7f
mov rax, qword [rbp]
xor rax, rbp
mov rcx, qword [rbx]
cmp rcx, rax
jne 0x14000141c
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret
call fcn.1400addd0
int3
Function at 0x140001720
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rbx, qword [0x1400db108]
mov rax, qword [rbx]
xor rax, rsp
mov qword [rsp + 0x230], rax
movzx eax, byte [0x140108f20]
test al, al
je 0x14000183e
cmp qword [0x14010af38], 0
je 0x140001792
mov rax, qword [rsp + 0x230]
xor rax, rsp
mov rcx, qword [rbx]
cmp rcx, rax
jne 0x140001887
mov rcx, rsi
xor edx, edx
mov r8d, 0x800
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
cmp rax, 0x104
ja 0x1400017d5
mov rdi, rax
lea rcx, [rsp + 0x20]
mov edx, 0x105
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400017eb
mov eax, eax
mov ecx, 0x105
sub rcx, rdi
cmp rcx, rax
jbe 0x1400017eb
cmp word [rsp + rax*2 + 0x1e], 0x5c
jne 0x1400017d9
mov r14, rax
jmp 0x1400017ee
xor eax, eax
jmp 0x14000181e
lea r14, [rax + 1]
cmp r14, rcx
jae 0x1400017eb
mov word [rsp + rax*2 + 0x20], 0x5c
jmp 0x1400017ee
xor r14d, r14d
lea rcx, [rsp + r14*2]
add rcx, 0x20
mov rdx, rsi
mov r8, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcsncpy
add rdi, r14
mov word [rsp + rdi*2 + 0x20], 0
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
mov rdx, qword [rbx]
cmp rdx, rcx
jne 0x140001887
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140108f20]
call fcn.1400ac804
test eax, eax
je 0x140001753
lea rcx, [0x1400db0b0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1400db0c2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14010af38], rax
lea rcx, [0x140108f20]
call fcn.1400ac8df
jmp 0x140001753
call fcn.1400addd0
int3
Function at 0x140001bb0
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 [0x1400db108]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x170], rax
lea rdx, str.CreateFileVersionInfoWin
lea r8, str._var_tmp_build_firefox_c932accff593_security_sandbox_chromium_shim_base_file_version_info_win.cpp
lea rcx, [rsp + 0x38]
mov r9d, 0x31
call fcn.140007ea0
test byte [rbx], 1
je 0x140001c07
mov rbx, qword [rbx + 0x10]
jmp 0x140001c0b
add rbx, 2
lea rdx, [rsp + 0x28]
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x140001d26
mov ebp, eax
mov r14d, eax
mov rcx, r14
call fcn.1400aca30
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, r14
call sub.api_ms_win_crt_string_l1_1_0.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 0x140001d15
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 0x140001d15
mov r12, qword [rsp + 0x38]
test r12, r12
je 0x140001d15
mov r13, rdi
add r13, r14
mov ecx, 0x30
call fcn.1400aca30
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, [0x1400db1c2]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x2c]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x140001d07
lea rdx, str._var_tmp_build_firefox_c932accff593_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.140003410
mov rcx, rdi
call fcn.1400036b0
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0x28], rax
mov qword [rsi], rbx
jmp 0x140001d2d
mov qword [rsi], 0
mov rcx, rdi
call fcn.1400acb10
jmp 0x140001d2d
mov qword [rsi], 0
mov rax, qword [rsp + 0x170]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x140001d57
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.1400addd0
int3
Function at 0x140002460
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov rdi, qword [0x1400db108]
mov rax, qword [rdi]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx eax, byte [rdx]
lea rcx, [rdx + 2]
mov r8, rax
shr r8, 1
test al, 1
cmovne rcx, qword [rdx + 0x10]
mov qword [rsp + 0x28], rcx
cmovne r8, qword [rdx + 8]
mov qword [rsp + 0x30], r8
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.140001f30
mov rcx, rsi
call fcn.1400022c0
movzx ecx, byte [rsi]
lea rbx, [rsi + 2]
mov edx, ecx
mov rax, qword [rsi + 0x10]
and dl, 1
je 0x1400024d5
mov r9, qword [rsi + 8]
mov r8, rax
cmp r9, 2
jae 0x1400024e4
jmp 0x140002525
mov r9, rcx
shr r9, 1
mov r8, rbx
cmp r9, 2
jb 0x140002525
cmp word [r8 + 2], 0x3a
jne 0x140002525
movzx r8d, word [r8]
cmp r8w, 0x41
jb 0x140002525
cmp r8w, 0x5b
jb 0x140002509
add r8d, 0xffffff9f
cmp r8w, 0x19
ja 0x140002525
mov r8d, 2
mov rcx, rsi
xor edx, edx
call fcn.140064250
movzx ecx, byte [rsi]
mov rax, qword [rsi + 0x10]
mov edx, ecx
and dl, 1
mov r8, qword [0x1400db218]
mov r9, qword [r8]
test dl, dl
cmove rax, rbx
dec r9
je 0x1400025a7
test dl, dl
je 0x140002549
mov rcx, qword [rsi + 8]
test rcx, rcx
jne 0x140002553
jmp 0x1400025a7
shr cl, 1
movzx ecx, cl
test rcx, rcx
je 0x1400025a7
lea r8, [rax + rcx*2]
mov rdx, qword [0x1400db208]
movzx r10d, word [r8 - 2]
add r8, 0xfffffffffffffffe
xor r11d, r11d
nop word [rax + rax]
cmp word [rdx + r11*2], r10w
je 0x140002586
inc r11
cmp r9, r11
jne 0x140002570
cmp r8, rax
jne 0x14000255e
jmp 0x1400025a7
sub r8, rax
cmp r8, 0xfffffffffffffffe
je 0x1400025a7
sar r8, 1
dec rcx
cmp r8, rcx
jae 0x1400025a7
inc r8
mov rcx, rsi
xor edx, edx
call fcn.140064250
mov rax, qword [rsp + 0x38]
xor rax, rsp
mov rcx, qword [rdi]
cmp rcx, rax
jne 0x1400025c2
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
call fcn.1400addd0
int3
Function at 0x140007830
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rdx
mov r14, rcx
mov r15, qword [0x1400db108]
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.1400196f0
test byte [rsp + 0x50], 1
je 0x140007878
mov rcx, qword [rsp + 0x60]
jmp 0x14000787d
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 0x14000789b
mov rcx, qword [rsp + 0x60]
call fcn.1400acb10
test rsi, rsi
je 0x14000795e
test edi, edi
je 0x14000795e
mov ecx, edi
add rcx, rcx
call fcn.1400acad0
mov rbx, rax
movups xmm0, xmmword [r14]
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x30]
call fcn.1400196f0
test byte [rsp + 0x50], 1
je 0x1400078df
mov rcx, qword [rsp + 0x60]
jmp 0x1400078e4
lea rcx, [rsp + 0x52]
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test byte [rsp + 0x50], 1
je 0x140007901
mov rcx, qword [rsp + 0x60]
call fcn.1400acb10
mov qword [rsp + 0x20], rbx
cmp word [rbx], 0
je 0x140007921
xor ecx, ecx
nop
lea rax, [rcx + 1]
cmp word [rbx + rcx*2 + 2], 0
mov rcx, rax
jne 0x140007910
jmp 0x140007923
xor eax, eax
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x20]
call fcn.140019760
test byte [rsi], 1
je 0x140007945
mov rcx, qword [rsi + 0x10]
call fcn.1400acb10
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.1400acb40
test edi, edi
setne al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
mov rdx, qword [r15]
cmp rdx, rcx
jne 0x14000797f
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400addd0
int3
Function at 0x1400080e0
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r9
mov rdi, r8
mov ebx, edx
mov r14, rcx
call fcn.140008600
test rdi, rdi
je 0x140008144
test al, al
je 0x140008144
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 0x140008144
test rcx, rcx
js 0x140008144
cmp qword [r14 + 0x10], rax
jb 0x140008144
mov rcx, r14
mov edx, ebx
mov r8, rdi
mov r9, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x140008a50
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, r9
mov rbx, r8
mov edi, edx
mov r14, rcx
mov r13, qword [0x1400db108]
mov rax, qword [r13]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor eax, eax
cmp dword [rcx + 8], 0
setne al
lea ebp, [rax + rax]
add ebp, 4
mov r12d, edx
sar r12d, 0x1f
mov rcx, qword [rcx]
mov qword [rsp + 0x20], r8
mov edx, ebp
mov r8d, r12d
mov r9d, edi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r15, rax
mov qword [rsi], rax
test rax, rax
jne 0x140008ad6
mov rcx, qword [r14]
mov qword [rsp + 0x20], rbx
mov edx, ebp
mov r8d, r12d
mov r9d, edi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r15, rax
mov qword [rsi], rax
test rax, rax
je 0x140008b2d
mov rsi, qword [rsp + 0xd0]
lea rdx, [rsp + 0x30]
mov r8d, 0x30
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rcx, qword [rsp + 0x48]
sub rcx, r15
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 0x140008b31
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x140008b0b
call fcn.1400addd0
int3

Function at 0x140008150
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x1400081e5
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r14, qword [rsi]
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400081a9
mov r15, qword [rsp + 0x48]
call fcn.140007ee0
mov rcx, r14
mov rdx, rsi
mov r8, r15
mov r9, rax
call fcn.14002a080
mov rcx, qword [rsi]
call fcn.14002a010
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400081d1
mov qword [rsi], rdi
mov r14, qword [rsp + 0x48]
call fcn.140007ee0
mov rcx, rdi
mov rdx, rsi
mov r8, r14
mov r9, rax
call fcn.14002a040
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140008540
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov qword [rcx], 0
mov rdi, qword [rdx]
mov qword [rdx], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140008585
mov rbx, rdx
mov r14, qword [rsp + 0x48]
call fcn.140007ee0
mov rcx, rdi
mov rdx, rbx
mov r8, r14
mov r9, rax
call fcn.14002a080
mov rcx, rsi
mov rdx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140008150
Function at 0x140008a50
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r9
mov rdi, r8
mov ebx, edx
mov r14, rcx
call fcn.140008600
test rdi, rdi
je 0x140008144
test al, al
je 0x140008144
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 0x140008144
test rcx, rcx
js 0x140008144
cmp qword [r14 + 0x10], rax
jb 0x140008144
mov rcx, r14
mov edx, ebx
mov r8, rdi
mov r9, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x140008a50
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, r9
mov rbx, r8
mov edi, edx
mov r14, rcx
mov r13, qword [0x1400db108]
mov rax, qword [r13]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor eax, eax
cmp dword [rcx + 8], 0
setne al
lea ebp, [rax + rax]
add ebp, 4
mov r12d, edx
sar r12d, 0x1f
mov rcx, qword [rcx]
mov qword [rsp + 0x20], r8
mov edx, ebp
mov r8d, r12d
mov r9d, edi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r15, rax
mov qword [rsi], rax
test rax, rax
jne 0x140008ad6
mov rcx, qword [r14]
mov qword [rsp + 0x20], rbx
mov edx, ebp
mov r8d, r12d
mov r9d, edi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r15, rax
mov qword [rsi], rax
test rax, rax
je 0x140008b2d
mov rsi, qword [rsp + 0xd0]
lea rdx, [rsp + 0x30]
mov r8d, 0x30
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rcx, qword [rsp + 0x48]
sub rcx, r15
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 0x140008b31
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x140008b0b
call fcn.1400addd0
int3

Function at 0x14000a5b0
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 [0x1400db108]
mov rax, qword [r13]
xor rax, rsp
mov qword [rsp + 0x160], rax
test rdx, rdx
je 0x14000a642
mov rsi, rdx
mov rdi, rcx
mov ebp, 0xffffffff
lea rbx, str._var_tmp_build_firefox_c932accff593_security_sandbox_chromium_base_rand_util_win.cc
lea r14, str.success
lea r15, [rsp + 0x28]
jmp 0x14000a608
add rdi, r12
sub rsi, r12
je 0x14000a642
cmp rsi, rbp
mov r12d, 0xffffffff
cmovb r12, rsi
mov rcx, rdi
mov edx, r12d
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x14000a600
mov rcx, r15
mov rdx, rbx
mov r8d, 0x20
mov r9, r14
call fcn.140003410
mov rcx, r15
call fcn.1400036b0
jmp 0x14000a600
mov rax, qword [rsp + 0x160]
xor rax, rsp
mov rcx, qword [r13]
cmp rcx, rax
jne 0x14000a66a
add rsp, 0x168
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400addd0
int3