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

Disassembly:
push rbx
sub rsp, 0x130
mov ebx, 0xffffffff
cmp r8, rbx
cmova r8d, ebx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14004c3f0
mov rax, 0xffffffffffffffff
add rsp, 0x130
pop rbx
ret
mov dword [rsp + 0x158], ebx
cmp dword [rsp + 0x150], ebx
jne 0x14004c44e
lea r8, str.bytes_written___static_cast_DWORD___1_
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x150]
call fcn.14002c950
test rax, rax
je 0x14004c44e
mov qword [rsp + 0x20], rax
mov r9d, 0x65
lea r8, str.D:projects_netease_nrd_nrd_pc_client_vcpkg_buildtrees_sentry_native_srcy_native_0_bf71db22ea.cleanexternalcrashpadutil_file_file_io_win.cc
lea rdx, str.__int64___cdecl_crashpad::internal::NativeWriteFile_void__const_void__unsigned___int64_
lea rcx, [rsp + 0x30]
call fcn.14004dc90
lea rcx, [rsp + 0x30]
call fcn.14004de20
mov eax, dword [rsp + 0x150]
add rsp, 0x130
pop rbx
ret

Function at 0x14004c4d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
xor r14d, r14d
mov ebp, 0xffffffff
mov qword [rsp + 0x20], r14
cmp r8, rbp
lea r9, [rsp + 0x160]
cmova edi, ebp
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004c5b4
mov dword [rsp + 0x168], ebp
cmp dword [rsp + 0x160], ebp
jne 0x14004c578
lea r8, str.bytes_read___static_cast_DWORD___1_
lea rdx, [rsp + 0x168]
lea rcx, [rsp + 0x160]
call fcn.14002c950
test rax, rax
je 0x14004c578
mov r9d, 0x7e
mov qword [rsp + 0x20], rax
lea r8, str.D:projects_netease_nrd_nrd_pc_client_vcpkg_buildtrees_sentry_native_srcy_native_0_bf71db22ea.cleanexternalcrashpadutil_file_file_io_win.cc
lea rdx, str.__int64___cdecl_crashpad::ReadFile_void__void__unsigned___int64_
lea rcx, [rsp + 0x30]
call fcn.14004dc90
lea rcx, [rsp + 0x30]
call fcn.14004de20
cmp dword [rsp + 0x160], 0
jne 0x14004c5da
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
jne 0x14004c5da
lea r9, [rsp + 0x160]
mov qword [rsp + 0x20], r14
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14004c521
call qword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x6d
neg eax
sbb rax, rax
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov eax, dword [rsp + 0x160]
jmp 0x14004c5c2
Function at 0x14004de20
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x1400cc038]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, rcx
mov rax, qword [rcx]
movsxd rcx, dword [rax + 4]
add rcx, rdi
mov dl, 0xa
call fcn.14000a180
movzx edx, al
mov rcx, rdi
call fcn.14004e980
mov rcx, rdi
call fcn.1400097d0
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140009ff0
mov rax, qword [0x1400cf1b0]
test rax, rax
je 0x14004df1e
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
mov r9, qword [rdi + 0xf0]
mov r8d, dword [rdi + 0xf8]
mov rdx, qword [rdi + 0xe8]
mov ecx, dword [rdi + 0xfc]
call rax
test al, al
je 0x14004df1e
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14004def0
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004deeb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004e06e
call fcn.1400567fc
mov rcx, rdi
call fcn.140004200
nop
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140056a30
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov eax, dword [0x1400cc010]
test al, 4
je 0x14004df6d
lea rbx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rbx, qword [rsp + 0x50]
mov ecx, 2
call fcn.14005d3b0
mov r8, rbx
lea rdx, [0x1400a7c10]
mov rcx, rax
call fcn.14000a360
mov ecx, 2
call fcn.14005d3b0
mov rcx, rax
call fcn.14006ab04
mov eax, dword [0x1400cc010]
test al, 2
je 0x14004e01b
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.14004ef30
cmp qword [rax + 0x18], 8
jb 0x14004dfb9
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rsp + 0x88]
cmp rdx, 8
jb 0x14004e003
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004dffe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004e068
call fcn.1400567fc
movdqa xmm0, xmmword [0x140098e20]
movdqu xmmword [rsp + 0x80], xmm0
xor eax, eax
mov word [rsp + 0x70], ax
cmp dword [rdi + 0xfc], 4
jne 0x14004e027
int3
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14004def0
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004deeb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004e06e
jmp 0x14004deeb
call fcn.14005d0ac
int3
call fcn.14005d0ac
int3
Function at 0x140057550
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005759a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005759a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005759a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005759a
cmp dword [rcx + 0x84], 0xe
jbe 0x14005759a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14005759c
xor al, al
add rsp, 0x28
ret

Function at 0x14006c898
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14006c694
Function at 0x140076810
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140076840
xor eax, eax
jmp 0x140076903
mov rbp, rbx
cmp word [rax], si
je 0x140076865
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14007684c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140076848
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140074650
movsxd r14, eax
test eax, eax
jne 0x1400768a3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140076839
mov rcx, r14
call fcn.140070f48
mov rdi, rax
test rax, rax
jne 0x1400768bc
xor ecx, ecx
call fcn.14006fb70
jmp 0x140076898
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140074650
test eax, eax
jne 0x1400768ed
mov rcx, rdi
call fcn.14006fb70
jmp 0x1400768f7
xor ecx, ecx
call fcn.14006fb70
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140076920
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400769a7
mov rsi, rbx
cmp word [rax], bp
je 0x140076966
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140076950
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14007694c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140070f48
mov rdi, rax
test rax, rax
je 0x140076994
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140058620
mov rbp, rdi
xor ecx, ecx
call fcn.14006fb70
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140079ac4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14006ecc4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140079b65
cmp ebx, dword [rsp + 0x30]
je 0x140079b5e
test esi, esi
je 0x140079b5e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140079b39
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140079b46
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140079b23
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140079b4a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140079b67
mov eax, 1
jmp 0x140079b67
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14007bbbc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14007bbd2
mov al, 1
jmp 0x14007bc32
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14007bbe3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14007bc30
mov ecx, dword [rcx + 0x18]
nop
call fcn.140077570
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14007bc30
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14007bc30
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14007bc30
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14007bc32
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14007cfc0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400657d8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14007d04a
cmp byte [rbp - 0x21], r15b
je 0x14007d045
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14007d080
call fcn.140070458
test eax, eax
jne 0x14007d06c
cmp byte [rbp - 0x21], r15b
je 0x14007d064
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14007d080
cmp byte [rbp - 0x21], r15b
je 0x14007d07d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14006b744
test eax, eax
jne 0x14007d120
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400657d8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14007d0bf
cmp byte [rbp - 0x21], r15b
je 0x14007d0f4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14007d0f4
call fcn.140070458
test eax, eax
jne 0x14007d0e0
cmp byte [rbp - 0x21], r15b
je 0x14007d0d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14007d0f4
cmp byte [rbp - 0x21], r15b
je 0x14007d0f1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14006b744
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14007d120
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14007d123
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14007d131
mov rcx, rdi
call fcn.14006fb70
cmp byte [rbp + 0x3f], r15b
je 0x14007d140
mov rcx, qword [rbp + 0x27]
call fcn.14006fb70
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140080900
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x180
mov rax, qword [0x1400cc038]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov rbx, rcx
mov dword [rsp + 0x30], 0
cmp qword [rcx + 0x18], 8
jb 0x140080930
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140080943
mov al, 1
jmp 0x140080a4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140080a46
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140080961
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x158]
call fcn.14004f0a0
mov rbx, rax
mov dword [rsp + 0x30], 1
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0x265
lea r8, str.D:projects_netease_nrd_nrd_pc_client_vcpkg_buildtrees_sentry_native_srcy_native_0_bf71db22ea.cleanexternalcrashpadclientcrash_report_database_win.cc
lea rdx, str.bool___cdecl_crashpad::_anonymous_namespace::CreateDirectoryIfNecessary_const_class_base::FilePath__
lea rcx, [rsp + 0x50]
call fcn.14004dda0
nop
mov dword [rsp + 0x30], 3
lea rdx, str.CreateDirectory
mov rcx, rax
call fcn.1400012e0
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x1400809ec
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.1400020f0
nop
lea rcx, [rsp + 0x50]
call fcn.14004e080
nop
mov rdx, qword [rsp + 0x170]
cmp rdx, 0x10
jb 0x140080a42
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140080a3d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140080a67
call fcn.1400567fc
xor al, al
jmp 0x140080a4e
mov rcx, rbx
call fcn.140080cc0
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.140056a30
add rsp, 0x180
pop rbx
ret
call fcn.14005d0ac
int3
Function at 0x140080cc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x180
mov rax, qword [0x1400cc038]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov rbx, rcx
mov dword [rsp + 0x30], 0
cmp qword [rcx + 0x18], 8
jb 0x140080cf0
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140080df9
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140080d0c
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x158]
call fcn.14004f0a0
mov rbx, rax
mov dword [rsp + 0x30], 1
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0x250
lea r8, str.D:projects_netease_nrd_nrd_pc_client_vcpkg_buildtrees_sentry_native_srcy_native_0_bf71db22ea.cleanexternalcrashpadclientcrash_report_database_win.cc
lea rdx, str.bool___cdecl_crashpad::_anonymous_namespace::EnsureDirectory_const_class_base::FilePath__
lea rcx, [rsp + 0x50]
call fcn.14004dda0
nop
mov dword [rsp + 0x30], 3
lea rdx, str.GetFileAttributes
mov rcx, rax
call fcn.1400012e0
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140080d97
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.1400020f0
nop
lea rcx, [rsp + 0x50]
call fcn.14004e080
nop
mov rdx, qword [rsp + 0x170]
cmp rdx, 0x10
jb 0x140080ef5
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140080ef0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140080f1a
jmp 0x140080ef0
test al, 0x10
jne 0x140080ef9
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140080e0e
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x158]
call fcn.14004f0a0
mov rbx, rax
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x20], 2
mov r9d, 0x254
lea r8, str.D:projects_netease_nrd_nrd_pc_client_vcpkg_buildtrees_sentry_native_srcy_native_0_bf71db22ea.cleanexternalcrashpadclientcrash_report_database_win.cc
lea rdx, str.bool___cdecl_crashpad::_anonymous_namespace::EnsureDirectory_const_class_base::FilePath__
lea rcx, [rsp + 0x50]
call fcn.14004dc10
nop
mov dword [rsp + 0x30], 0xc
lea rdx, str.GetFileAttributes
mov rcx, rax
call fcn.1400012e0
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140080e90
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.1400020f0
lea rdx, str.:_not_a_directory
mov rcx, rax
call fcn.1400012e0
nop
lea rcx, [rsp + 0x50]
call fcn.14004de20
nop
mov rdx, qword [rsp + 0x170]
cmp rdx, 0x10
jb 0x140080ef5
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140080ef0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140080f14
call fcn.1400567fc
xor al, al
jmp 0x140080efb
mov al, 1
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.140056a30
add rsp, 0x180
pop rbx
ret
call fcn.14005d0ac
int3
call fcn.14005d0ac
int3
Function at 0x140080f20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov ebp, edx
mov rsi, qword [rcx + 0x58]
mov rbx, qword [rcx + 0x50]
cmp rbx, rsi
je 0x140080f9b
cmp dword [rbx + 0x78], ebp
jne 0x140080f92
cmp qword [rbx + 0x28], 8
lea rcx, [rbx + 0x10]
jb 0x140080f59
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140080f92
test al, 0x10
jne 0x140080f92
mov rax, qword [rdi + 8]
cmp rax, qword [rdi + 0x10]
je 0x140080f84
mov rdx, rbx
mov rcx, rax
call fcn.14007f5b0
add qword [rdi + 8], 0x78
jmp 0x140080f92
mov r8, rbx
mov rdx, rax
mov rcx, rdi
call fcn.14007efe0
sub rbx, 0xffffffffffffff80
cmp rbx, rsi
jne 0x140080f46
mov rbx, qword [rsp + 0x38]
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140080fc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
movups xmm0, xmmword [rdx]
mov rdi, qword [rcx + 0x58]
mov r14, r9
mov rbx, qword [rcx + 0x50]
mov ebp, r8d
movaps xmmword [rsp + 0x20], xmm0
mov rsi, rcx
cmp rbx, rdi
je 0x14008101a
nop dword [rax + rax]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14003f2d0
test al, al
jne 0x14008101a
sub rbx, 0xffffffffffffff80
cmp rbx, rdi
jne 0x140081000
cmp rbx, qword [rsi + 0x58]
jne 0x140081027
mov eax, 1
jmp 0x140081073
mov eax, dword [rbx + 0x78]
cmp eax, ebp
jne 0x140081057
cmp qword [rbx + 0x28], 8
lea rcx, [rbx + 0x10]
jb 0x14008103c
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
mov edx, 1
shr ecx, 3
and ecx, 2
cmp eax, 0xffffffff
cmove ecx, edx
jmp 0x140081066
mov ecx, 1
mov edx, 4
cmp eax, ecx
cmove ecx, edx
test ecx, ecx
jne 0x140081071
mov byte [rsi + 0x48], 1
mov qword [r14], rbx
mov eax, ecx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140081810
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov r14, r8
mov rbp, rdx
lea rdx, [rsp + 0x68]
call fcn.14007fb40
nop
mov rbx, qword [rsp + 0x68]
test rbx, rbx
jne 0x140081847
mov ebx, 3
jmp 0x1400818c6
mov rsi, qword [rbx + 0x58]
mov rdi, qword [rbx + 0x50]
movups xmm0, xmmword [rbp]
movaps xmmword [rsp + 0x20], xmm0
cmp rdi, rsi
je 0x14008187a
nop dword [rax]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14003f2d0
test al, al
jne 0x14008187a
sub rdi, 0xffffffffffffff80
cmp rdi, rsi
jne 0x140081860
cmp rdi, qword [rbx + 0x58]
jne 0x140081887
mov ebx, 1
jmp 0x1400818c6
lea rcx, [rdi + 0x10]
cmp qword [rcx + 0x18], 8
jb 0x140081895
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400818a9
mov ebx, 1
jmp 0x1400818b1
shr ebx, 3
and ebx, 2
je 0x1400818b6
mov rdi, qword [rsp + 0x68]
test ebx, ebx
jne 0x1400818c6
mov rdx, rdi
mov rcx, r14
call fcn.14007fa30
nop
lea rcx, [rsp + 0x68]
call fcn.14007f810
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140086950
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x130
mov rdi, rcx
mov dword [rsp + 0x148], 0
mov rax, qword [0x1400d0998]
nop
mov ebx, 1
test rax, rax
jne 0x140086995
nop dword [rax]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [0x1400d0998]
nop
test rax, rax
je 0x140086980
cmp eax, 2
jne 0x1400869d9
mov dword [rsp + 0x20], eax
mov r9d, 0x90
lea r8, str.D:projects_netease_nrd_nrd_pc_client_vcpkg_buildtrees_sentry_native_srcy_native_0_bf71db22ea.cleanexternalcrashpadclientcrashpad_client_win.cc
lea rdx, str.long___cdecl_crashpad::_anonymous_namespace::UnhandledExceptionHandler_struct__EXCEPTION_POINTERS__
lea rcx, [rsp + 0x30]
call fcn.14004dc10
nop
mov dword [rsp + 0x148], ebx
lea rdx, str.crash_server_failed_to_launch__self_terminating
mov rcx, rax
call fcn.1400012e0
nop
jmp 0x140086a7f
mov rax, qword [0x1400d0978]
test rax, rax
je 0x1400869f2
mov rcx, rdi
call rax
test al, al
jne 0x140086a9d
lock xadd qword [0x1400d09c8], rbx
lea rax, [rbx + 1]
cmp rax, 1
jle 0x140086a12
xor edx, edx
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_SleepEx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x1400d0970], eax
mov qword [0x1400d0968], rdi
mov rcx, qword [0x1400ccc60]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0xea60
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rsp + 0x20], 2
mov r9d, 0xc0
lea r8, str.D:projects_netease_nrd_nrd_pc_client_vcpkg_buildtrees_sentry_native_srcy_native_0_bf71db22ea.cleanexternalcrashpadclientcrashpad_client_win.cc
lea rdx, str.long___cdecl_crashpad::_anonymous_namespace::UnhandledExceptionHandler_struct__EXCEPTION_POINTERS__
lea rcx, [rsp + 0x30]
call fcn.14004dc10
nop
mov dword [rsp + 0x148], 2
lea rdx, str.crash_server_did_not_respond__self_terminating
mov rcx, rax
call fcn.1400012e0
nop
lea rcx, [rsp + 0x30]
call fcn.14004de20
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xffff7001
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov rbx, qword [rsp + 0x140]
add rsp, 0x130
pop rdi
ret