joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401063d4
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.1400e17f8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14010645e
cmp byte [rbp - 0x21], r15b
je 0x140106459
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140106494
call fcn.1400fcb34
test eax, eax
jne 0x140106480
cmp byte [rbp - 0x21], r15b
je 0x140106478
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140106494
cmp byte [rbp - 0x21], r15b
je 0x140106491
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.1400e6e0c
test eax, eax
jne 0x140106534
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400e17f8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401064d3
cmp byte [rbp - 0x21], r15b
je 0x140106508
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140106508
call fcn.1400fcb34
test eax, eax
jne 0x1401064f4
cmp byte [rbp - 0x21], r15b
je 0x1401064ed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140106508
cmp byte [rbp - 0x21], r15b
je 0x140106505
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.1400e6e0c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140106534
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140106537
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140106545
mov rcx, rdi
call fcn.14009da70
cmp byte [rbp + 0x3f], r15b
je 0x140106554
mov rcx, qword [rbp + 0x27]
call fcn.14009da70
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 0x1401066f8
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140106742
call fcn.1400ea2fc
mov dword [rax], 0xf
call fcn.1400ea2dc
mov dword [rax], 0xd
call fcn.1400ed0ec
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400d8aa0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14010674d
lea eax, [rbx + 1]
jmp 0x14010672f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14010672d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14010672f
Function at 0x140107c18
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140107c2e
mov al, 1
jmp 0x140107c8e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140107c3f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140107c8c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400eaedc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140107c8c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140107c8c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140107c8c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140107c8e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140110790
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rdx, rdx
je 0x1401107a3
cmp dword [0x1401c2800], ecx
jle 0x1401107aa
add rsp, 0x28
pop rdi
pop rsi
ret
mov rsi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdi, eax
mov rcx, rsi
mov rdx, rdi
call fcn.1401107f0
test edi, edi
je 0x1401107a3
cmp byte [rdi + rsi - 1], 0xa
je 0x1401107a3
lea rcx, [0x1401891df]
mov edx, 1
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1401107f0

Function at 0x1401107f0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14011083e
mov rdx, rcx
add rdi, rdx
cmp al, 1
je 0x14011087c
cmp rdi, rsi
jae 0x14011087c
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x140110837
jmp 0x140110834
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400d8aa0
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140135630
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x1401356a1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1401356ab
mov dil, 1
test bl, bl
je 0x14013568a
cmp byte [rsi + 8], 0
je 0x1401356a6
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400d8aa0
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rsi]
jmp 0x14013565d
mov rcx, qword [rsi]
jmp 0x14013567f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 0
je 0x1401356d3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1401356d8
xor edi, edi
jmp 0x14013568a
mov rcx, qword [rsi]
jmp 0x1401356c0
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 0
je 0x1401356ff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x14013568a
mov rcx, qword [rsi]
jmp 0x1401356ef
Function at 0x140137810
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x1401cd180], 0
je 0x140137856
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1400d8aa0
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x1401cd158]
test rdi, rdi
je 0x1401378f7
test byte [0x1401c06e0], 1
je 0x140137839
cmp byte [rdi + 0x17], 0
jns 0x140137878
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1401cd180], rax
inc rax
cmp rax, 1
ja 0x140137839
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400dabe0
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1401379bc
xor esi, esi
jmp 0x140137839
mov ecx, 0x18
call fcn.1400d7578
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1400dabe0
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x1401849f0]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.14010f790
movzx eax, byte [rdi + 0x17]
test al, al
js 0x14013795d
and eax, 0x7f
mov rcx, rdi
jmp 0x140137964
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
je 0x14013799b
add rax, rax
test rax, rax
je 0x14013799b
lea rdx, [rax - 2]
cmp word [rcx + rax - 2], 0x5c
mov rax, rdx
jne 0x14013796c
cmp rdx, 0xfffffffffffffffe
je 0x14013799b
sar rdx, 1
inc rdx
mov rcx, rdi
mov r8, 0xffffffffffffffff
call fcn.1400a5e20
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.14003d4d0
mov qword [0x1401cd158], rdi
jmp 0x140137866
mov rdi, qword [0x1401cd158]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400f6694
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.14003d420
mov rcx, qword [0x1401cd158]
call fcn.140130400
cmp word [rax], 0x5c
je 0x140137a09
mov rcx, qword [0x1401cd158]
lea rdx, [0x14018e438]
mov r8d, 1
call fcn.14003d4d0
mov rcx, qword [0x1401cd158]
lea rdx, str.debug.log
mov r8d, 9
call fcn.14003d4d0
mov rcx, qword [0x1401cd158]
cmp byte [rcx + 0x17], 0
jns 0x140137a32
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1401cd180], rax
inc rax
cmp rax, 1
ja 0x140137839
mov qword [0x1401cd180], 0
jmp 0x1401378f0
Function at 0x14014b790
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x30], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
mov rdi, qword [rcx + 0x50]
mov r12, qword [rcx + 0x58]
mov ebx, 1
cmp rdi, r12
je 0x14014b824
mov rsi, r8
mov r14, rcx
lea r15, [rsp + 0x20]
mov rcx, rdi
mov rdx, r15
call fcn.1401559a0
test al, al
jne 0x14014b7ec
add rdi, 0x70
cmp rdi, r12
jne 0x14014b7d1
mov rdi, r12
cmp rdi, qword [r14 + 0x58]
je 0x14014b824
cmp byte [rdi + 0x27], 0
js 0x14014b7fe
lea rcx, [rdi + 0x10]
jmp 0x14014b802
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
cmp eax, 0xffffffff
mov ebx, 1
cmovne ebx, ecx
test ebx, ebx
jne 0x14014b824
mov qword [rsi], rdi
xor ebx, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400d8aa0
mov eax, ebx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
mov r14, qword [rcx + 0x50]
mov r12, qword [rcx + 0x58]
mov esi, 1
cmp r14, r12
je 0x14014ba2b
mov rdi, r9
mov ebp, r8d
mov rbx, rcx
lea r15, [rsp + 0x20]
mov rcx, r14
mov rdx, r15
call fcn.1401559a0
test al, al
jne 0x14014ba10
add r14, 0x70
cmp r14, r12
jne 0x14014b9f5
mov r14, r12
cmp r14, qword [rbx + 0x58]
je 0x14014ba2b
mov eax, dword [r14 + 0x68]
cmp eax, ebp
je 0x14014ba49
xor ecx, ecx
cmp eax, 1
sete cl
lea esi, [rcx + rcx*2]
inc esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400d8aa0
mov eax, esi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
cmp byte [r14 + 0x27], 0
js 0x14014ba56
lea rcx, [r14 + 0x10]
jmp 0x14014ba5a
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14014ba2b
shr eax, 3
and eax, 2
mov esi, eax
jne 0x14014ba2b
mov byte [rbx + 0x48], 1
mov qword [rdi], r14
xor esi, esi
jmp 0x14014ba2b
Function at 0x14014de20
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rsi, rcx
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [0x1401cefa0]
test rax, rax
jne 0x14014de64
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call rdi
mov rax, qword [0x1401cefa0]
test rax, rax
je 0x14014de51
cmp eax, 2
jne 0x14014debc
mov ecx, 2
call fcn.1400b7540
test al, al
je 0x14014df15
lea rdx, str....._third_partycrashpadcrashpadclientcrashpad_client_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0x8e
mov r9d, 2
call fcn.14004b4f0
lea rcx, [rsp + 0x38]
lea rdx, str.crash_server_failed_to_launch__self_terminating
mov r8d, 0x2f
call fcn.14010fab0
mov rcx, rsi
call fcn.14004bb30
jmp 0x14014df15
mov eax, 1
lock xadd qword [0x1401cefd8], rax
test rax, rax
jle 0x14014dedc
mov ecx, 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SleepEx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x1401cef58], eax
mov qword [0x1401cef50], rsi
mov rcx, qword [0x1401c0748]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0xea60
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 2
call fcn.1400b7540
test al, al
jne 0x14014df45
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xffff7001
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400d8aa0
xor eax, eax
add rsp, 0x168
pop rdi
pop rsi
ret
lea rdx, str....._third_partycrashpadcrashpadclientcrashpad_client_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0xba
mov r9d, 2
call fcn.14004b4f0
lea rcx, [rsp + 0x38]
lea rdx, str.crash_server_did_not_respond__self_terminating
mov r8d, 0x2e
jmp 0x14014dead
Function at 0x140154db0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x140154dda
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140154df9
mov edi, eax
bt eax, 0xa
jae 0x140154df1
test bl, bl
je 0x140154e07
and edi, 0x10
shr edi, 4
jmp 0x140154e09
mov ecx, 2
call fcn.1400b7540
test al, al
jne 0x140154e26
xor edi, edi
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1400d8aa0
mov eax, edi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x82
mov r9d, 2
call fcn.140137dc0
lea rcx, [rsp + 0x68]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.14010fab0
mov rdi, rax
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x140154e76
and r8d, 0x7f
jmp 0x140154e7d
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.140098ee0
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.1400aef10
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x140154ead
and r8d, 0x7f
jmp 0x140154eb7
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.14010fab0
cmp byte [rsp + 0x57], 0
jns 0x140154ed3
mov rcx, qword [rsp + 0x40]
call fcn.1400d75b4
lea rcx, [rsp + 0x58]
call fcn.140137e40
jmp 0x140154e07
Function at 0x140154ef0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov ebx, r8d
mov rsi, rcx
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
cmp byte [rcx + 0x17], 0
jns 0x140154f1b
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x140154f4b
test bl, bl
je 0x140154f3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140154f68
mov ecx, 2
call fcn.1400b7540
test al, al
jne 0x140154f8c
xor edi, edi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.1400d8aa0
mov eax, edi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
ret
mov dil, 1
mov rcx, rsi
mov dl, 1
call fcn.140154db0
test al, al
jne 0x140154f4b
mov ecx, 2
call fcn.1400b7540
test al, al
je 0x140154f49
jmp 0x140155057
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x40]
mov r8d, 0x62
mov r9d, 2
call fcn.140137dc0
lea rcx, [rsp + 0x50]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.14010fab0
mov rdi, rax
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x140154fdc
and r8d, 0x7f
jmp 0x140154fe3
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.140098ee0
lea rsi, [rsp + 0x190]
mov rcx, rsi
mov rdx, rbx
call fcn.1400aef10
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x140155016
and r8d, 0x7f
jmp 0x140155026
mov r8, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x190]
mov rcx, rdi
mov rdx, rsi
call fcn.14010fab0
cmp byte [rsp + 0x1a7], 0
jns 0x140155048
mov rcx, qword [rsp + 0x190]
call fcn.1400d75b4
lea rcx, [rsp + 0x40]
call fcn.140137e40
jmp 0x140154f49
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x40]
mov r8d, 0x5d
mov r9d, 2
call fcn.14004b4f0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x140155084
and r8d, 0x7f
jmp 0x14015508b
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rdi, [rsp + 0x50]
lea rbx, [rsp + 0x180]
mov rcx, rbx
mov rdx, rsi
call fcn.140098ee0
lea rsi, [rsp + 0x190]
mov rcx, rsi
mov rdx, rbx
call fcn.1400aef10
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1401550c6
and r8d, 0x7f
jmp 0x1401550d6
mov r8, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x190]
mov rcx, rdi
mov rdx, rsi
call fcn.14010fab0
lea rdx, str._not_a_directory
mov r8d, 0x10
mov rcx, rax
call fcn.14010fab0
cmp byte [rsp + 0x1a7], 0
jns 0x14015510d
mov rcx, qword [rsp + 0x190]
call fcn.1400d75b4
lea rcx, [rsp + 0x40]
call fcn.14004bb30
jmp 0x140154f49
Function at 0x140155120
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rsi, rcx
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x140155148
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140155179
test eax, 0x410
sete sil
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1400d8aa0
mov eax, esi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400b7540
test al, al
jne 0x14015518b
xor esi, esi
jmp 0x14015515c
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x75
mov r9d, 2
call fcn.140137dc0
lea rcx, [rsp + 0x68]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.14010fab0
mov rdi, rax
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1401551db
and r8d, 0x7f
jmp 0x1401551e2
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.140098ee0
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.1400aef10
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x140155212
and r8d, 0x7f
jmp 0x14015521c
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.14010fab0
cmp byte [rsp + 0x57], 0
jns 0x140155238
mov rcx, qword [rsp + 0x40]
call fcn.1400d75b4
lea rcx, [rsp + 0x58]
call fcn.140137e40
jmp 0x140155187
Function at 0x140155250
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rsi, rcx
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x140155278
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14015528f
and eax, 0x410
cmp eax, 0x410
je 0x1401552d5
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14015529b
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dil, 1
test eax, eax
jne 0x1401552b8
mov ecx, 2
call fcn.1400b7540
test al, al
jne 0x1401552f7
xor edi, edi
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1400d8aa0
mov eax, edi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1400d8aa0
mov rcx, rsi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
jmp fcn.1401553c0
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x95
mov r9d, 2
call fcn.140137dc0
lea rcx, [rsp + 0x68]
lea rdx, str.DeleteFile
mov r8d, 0xb
call fcn.14010fab0
mov rdi, rax
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x140155347
and r8d, 0x7f
jmp 0x14015534e
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.140098ee0
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.1400aef10
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x14015537e
and r8d, 0x7f
jmp 0x140155388
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.14010fab0
cmp byte [rsp + 0x57], 0
jns 0x1401553a4
mov rcx, qword [rsp + 0x40]
call fcn.1400d75b4
lea rcx, [rsp + 0x58]
call fcn.140137e40
jmp 0x1401552b6
Function at 0x1401553c0
Capabilities:
Delete directory

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x198
mov rdi, rcx
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x1401553ea
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test eax, eax
jne 0x140155404
mov ecx, 2
call fcn.1400b7540
test al, al
jne 0x140155428
test esi, esi
setne bl
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1400d8aa0
mov eax, ebx
add rsp, 0x198
pop rbx
pop rdi
pop rsi
pop r14
ret
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x30
mov r9d, 2
call fcn.140137dc0
lea rcx, [rsp + 0x60]
lea rdx, str.RemoveDirectory
mov r8d, 0x10
call fcn.14010fab0
mov rbx, rax
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
js 0x140155478
and r8d, 0x7f
jmp 0x14015547f
mov r8, qword [rdi + 8]
mov rdi, qword [rdi]
lea r14, [rsp + 0x28]
mov rcx, r14
mov rdx, rdi
call fcn.140098ee0
lea rdi, [rsp + 0x38]
mov rcx, rdi
mov rdx, r14
call fcn.1400aef10
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
js 0x1401554af
and r8d, 0x7f
jmp 0x1401554b9
mov r8, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rcx, rbx
mov rdx, rdi
call fcn.14010fab0
cmp byte [rsp + 0x4f], 0
jns 0x1401554d5
mov rcx, qword [rsp + 0x38]
call fcn.1400d75b4
lea rcx, [rsp + 0x50]
call fcn.140137e40
jmp 0x140155404
Function at 0x140163710
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, r8
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, 0xaaaaaaaa
lea rdi, [rsp + 0x44]
mov dword [rdi], eax
lea r8, [rsp + 0x40]
mov dword [r8], eax
lea rax, [rsp + 0x3c]
mov dword [rax], 4
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rdi]
xor ecx, 4
or ecx, eax
sete bl
jne 0x140163770
mov eax, dword [rsp + 0x40]
mov dword [rsi], eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400d8aa0
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x140163830
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x1a0
mov rax, qword [0x1401b1028]
xor rax, rsp
mov qword [rsp + 0x198], rax
movaps xmm0, xmmword [0x1401849f0]
lea rsi, [rsp + 0x160]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsi + 0x20], 0x100
jb 0x140163884
mov ecx, 1
call fcn.1400b7540
test al, al
jne 0x1401638b3
mov eax, dword [rsp + 0x180]
cmp eax, 0x100
mov esi, 0xff
cmovb esi, eax
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1400d8aa0
mov eax, esi
add rsp, 0x1a0
pop rsi
ret
lea rdx, str....._third_partycrashpadcrashpad_snapshotwin_system_snapshot_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0x117
mov r9d, 1
call fcn.14004b4f0
lea rcx, [rsp + 0x38]
lea rdx, str.dwNumberOfProcessors_exceeds_uint8_t_storage
mov r8d, 0x2c
call fcn.14010fab0
mov rcx, rsi
call fcn.14004bb30
jmp 0x140163884