joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14015dcc0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x14015dd57
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x14015dd5c
test bl, bl
je 0x14015dd1b
cmp byte [rdi + 8], 0
je 0x14015ddd5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [rdi + 8], 0
jne 0x14015dde2
mov rcx, qword [rdi]
call fcn.14007ac30
mov rcx, qword [0x14021d6d0]
mov dil, 1
test rcx, rcx
jne 0x14015ddf0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401013e0
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rdi]
jmp 0x14015dced
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rdi + 8], 0
je 0x14015dd84
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14015dd89
xor edi, edi
jmp 0x14015dd40
mov rcx, qword [rdi]
jmp 0x14015dd71
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rdi + 8], 0
je 0x14015dddd
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x14015ddb3
mov esi, dword [rsp + 0x24]
cmp byte [rdi + 8], 0
jne 0x14015ddff
mov rcx, qword [rdi]
call fcn.14007ac30
mov rcx, qword [0x14021d6d0]
test rcx, rcx
jne 0x14015de0a
mov dil, 1
jmp 0x14015dd40
mov rcx, qword [rdi]
jmp 0x14015dd10
mov rcx, qword [rdi]
jmp 0x14015dda0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14015dd28
mov edx, eax
mov r8d, esi
call fcn.140172ea0
jmp 0x14015dd40
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14015ddbc
mov edx, eax
mov r8d, esi
call fcn.140172ea0
jmp 0x14015ddcd

Function at 0x14015e0b0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rsi, r8
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x4c]
mov dword [r9], ntohl
lea rax, [rsp + 0x40]
mov qword [rax], 0
lea rdi, [rsp + 0x3c]
mov dword [rdi], 8
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
je 0x14015e11d
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401013e0
mov eax, edi
add rsp, 0x58
pop rdi
pop rsi
ret
mov eax, dword [rsp + 0x4c]
and eax, 0xfffffff7
mov edi, 0x3f4
cmp eax, 3
jne 0x14015e107
cmp dword [rsp + 0x3c], 8
jne 0x14015e107
mov rax, qword [rsp + 0x40]
mov qword [rsi], rax
xor edi, edi
jmp 0x14015e107

Function at 0x14015e150
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov eax, dword [rsp + 0x60]
mov rcx, qword [rcx]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9d, eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x38
ret
Function at 0x140161de0
Capabilities:
Get session user name

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x230], rax
call fcn.14006d5f0
test al, al
je 0x140161e54
xorps xmm0, xmm0
lea rdi, [rsp + 0x30]
movaps xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
call fcn.1400585f0
mov rax, qword [rax + 8]
mov r8, qword [rax + 0x10]
mov rcx, r14
mov rdx, rdi
mov r9d, 1
call fcn.140064f00
mov ebx, eax
cmp byte [rdi + 0x17], 0
jns 0x140161e50
mov rcx, qword [rsp + 0x30]
call fcn.140100564
test bl, bl
je 0x140161e97
cmp byte [rsi + 0x17], 0
js 0x140161e85
mov word [rsi], 0
mov byte [rsi + 0x17], 0
mov dil, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1401013e0
mov eax, edi
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rax, qword [rsi]
mov word [rax], 0
mov qword [rsi + 8], 0
jmp 0x140161e63
lea rdi, [rsp + 0x30]
mov r8d, 0x200
mov rcx, rdi
mov dl, 0xaa
call fcn.140103d70
lea rdx, [rsp + 0x2c]
mov dword [rdx], 0x100
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x140161f33
mov edx, dword [rsp + 0x2c]
test edx, edx
je 0x140161f33
mov rcx, rsi
call fcn.140031930
mov edx, 1
mov rcx, rsi
mov r8w, 0x2e
call fcn.140031ab0
mov r8d, dword [rsp + 0x2c]
dec r8d
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400d60e0
call fcn.1400585f0
mov rax, qword [rax + 8]
mov r8, qword [rax + 0x10]
mov rcx, r14
mov rdx, rsi
mov r9d, 1
call fcn.140064f00
mov dil, 1
test al, al
jne 0x140161e66
mov rcx, rsi
call fcn.140061a70
mov edi, eax
jmp 0x140161e66
xor edi, edi
jmp 0x140161e66
Function at 0x140168fa0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rsi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [0x14021b530]
test rax, rax
je 0x1401690e4
cmp eax, 2
jne 0x14016901c
mov ecx, 2
call fcn.1400d9610
test al, al
je 0x1401690b4
lea rdx, str..._.._third_party_crashpad_crashpad_client_crashpad_client_win.cc
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov r8d, 0x83
mov r9d, 2
call fcn.14004a520
lea rcx, [rsp + 0x30]
lea rdx, str.crash_server_failed_to_launch__self_terminating
mov r8d, 0x2f
jmp 0x1401690a7
mov eax, 1
lock xadd qword [0x14021b568], rax
test rax, rax
jle 0x14016903c
mov ecx, 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SleepEx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x14021b4e8], eax
mov qword [0x14021b4e0], rsi
mov rcx, qword [0x140215838]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0xea60
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 2
call fcn.1400d9610
test al, al
je 0x1401690b4
lea rdx, str..._.._third_party_crashpad_crashpad_client_crashpad_client_win.cc
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov r8d, 0xaf
mov r9d, 2
call fcn.14004a520
lea rcx, [rsp + 0x30]
lea rdx, str.crash_server_did_not_respond__self_terminating
mov r8d, 0x2e
call fcn.1400cf4f0
mov rcx, rsi
call fcn.14004a9c0
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.1401013e0
xor eax, eax
add rsp, 0x168
pop rdi
pop rsi
ret
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call rdi
mov rax, qword [0x14021b530]
test rax, rax
je 0x1401690eb
jmp 0x140168fce

Function at 0x140169280
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
sub rsp, 0x20
lea r9, [0x14021b580]
xor ecx, ecx
mov r8d, 0xedb88320
mov edx, ecx
shr edx, 1
mov eax, ecx
and eax, 1
neg eax
and eax, r8d
xor eax, edx
shr eax, 1
and edx, 1
neg edx
and edx, r8d
xor edx, eax
shr edx, 1
and eax, 1
neg eax
and eax, r8d
xor eax, edx
shr eax, 1
and edx, 1
neg edx
and edx, r8d
xor edx, eax
shr edx, 1
and eax, 1
neg eax
and eax, r8d
xor eax, edx
shr eax, 1
and edx, 1
neg edx
and edx, r8d
xor edx, eax
shr edx, 1
and eax, 1
neg eax
and eax, r8d
xor eax, edx
shr eax, 1
and edx, 1
neg edx
and edx, r8d
xor edx, eax
mov dword [r9], edx
inc rcx
add r9, 4
cmp rcx, 0x100
jne 0x140169294
mov eax, 0x100
lea rcx, [0x14021b580]
mov edx, dword [rcx + rax*4 - 0x400]
movzx esi, dl
shr edx, 8
xor edx, dword [rcx + rsi*4]
mov dword [rcx + rax*4], edx
inc rax
cmp rax, 0x800
jne 0x140169317
lea rax, [0x140185b60]
mov qword [0x14021d580], rax
mov qword [0x14021b570], rax
lea rsi, [0x140185c30]
mov qword [0x14021d588], rsi
call fcn.140185d60
test eax, eax
jne 0x140169368
mov qword [0x14021b570], rsi
add rsp, 0x20
pop rsi
ret
Function at 0x140169470
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x268
mov r14, rdx
mov edi, ecx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rbx, [rsp + 0x50]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140103d70
mov word [rbx], 0
mov qword [rsp + 0x20], rbx
xor ecx, ecx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test eax, eax
js 0x1401694ff
lea rsi, [rsp + 0x28]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.14011bf14
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov rdx, rsi
call fcn.1400d7ac0
mov rcx, r14
mov rdx, rbx
call fcn.1400d7bd0
mov rcx, rbx
call fcn.1400d7bc0
test edi, edi
setns bl
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1401013e0
mov eax, ebx
add rsp, 0x268
pop rbx
pop rdi
pop rsi
pop r14
ret

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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x30], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
mov rdi, qword [rcx + 0x38]
mov rbp, qword [rcx + 0x40]
mov r15d, 1
cmp rdi, rbp
je 0x14016a148
mov r14, r8
mov rsi, rcx
lea rbx, [rsp + 0x20]
mov rcx, rdi
mov rdx, rbx
call fcn.14016bbe0
test al, al
jne 0x14016a10c
add rdi, 0x70
cmp rbp, rdi
jne 0x14016a0f1
mov rdi, rbp
cmp rdi, qword [rsi + 0x40]
je 0x14016a148
cmp byte [rdi + 0x27], 0
jns 0x14016a11e
mov rcx, qword [rdi + 0x10]
jmp 0x14016a122
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
cmp eax, 0xffffffff
mov r15d, 1
cmovne r15d, ecx
test r15d, r15d
jne 0x14016a148
mov qword [r14], rdi
xor r15d, r15d
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401013e0
mov eax, r15d
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14016a390
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 [0x140213038]
xor rax, rsp
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
mov rdi, qword [rcx + 0x38]
mov rsi, qword [rcx + 0x40]
mov r12d, 1
cmp rdi, rsi
je 0x14016a41a
mov r14, r9
mov r15d, r8d
mov rbx, rcx
lea rbp, [rsp + 0x20]
mov rcx, rdi
mov rdx, rbp
call fcn.14016bbe0
test al, al
jne 0x14016a3f1
add rdi, 0x70
cmp rsi, rdi
jne 0x14016a3d6
mov rdi, rsi
cmp rdi, qword [rbx + 0x40]
je 0x14016a41a
mov eax, dword [rdi + 0x68]
cmp eax, r15d
jne 0x14016a40b
cmp byte [rdi + 0x27], 0
jns 0x14016a439
mov rcx, qword [rdi + 0x10]
jmp 0x14016a43d
xor ecx, ecx
cmp eax, 1
sete cl
lea r12d, [rcx + rcx*2]
inc r12d
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401013e0
mov eax, r12d
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14016a41a
shr eax, 3
and eax, 2
mov r12d, eax
jne 0x14016a41a
mov byte [rbx + 0x30], 1
mov qword [r14], rdi
xor r12d, r12d
jmp 0x14016a41a
Function at 0x14016e3d0
Capabilities:
Create process on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov rdi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm0, xmmword [0x1401d9dd0]
lea rsi, [rsp + 0x50]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, [0x1401eda18]
lea r8, str..._.._base_win_shortcut.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0x16c
call fcn.1400d95e0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400e5a80
cmp byte [rdi + 0x17], 0
jns 0x14016e446
mov rdi, qword [rdi]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea rdx, str.taskbarpin
xor ecx, ecx
mov r8, rdi
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
setg bl
mov rcx, rsi
call fcn.1400e5c10
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1401013e0
mov eax, ebx
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
ret

Function at 0x14016f560
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
xor eax, eax
mov qword [rcx], rax
mov rbx, qword [rdx]
mov qword [rdx], rax
lea rbp, [rbx + 1]
cmp rbp, 2
jb 0x14016f58a
call fcn.1400d9600
cmp qword [rsi], rbx
je 0x14016f5be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14016f5f9
cmp rbp, 2
jb 0x14016f5b2
mov qword [rsi], rbx
call fcn.1400d9600
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsi]
mov byte [rsi + 8], 1
inc rbx
cmp rbx, 1
jbe 0x14016f60f
mov rax, qword [rdi]
inc rax
cmp rax, 2
jb 0x14016f5eb
call fcn.1400d9600
mov rcx, qword [rdi]
call fcn.1400e0e60
mov qword [rdi], 0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.1400d9600
mov rcx, qword [rsi]
call fcn.1400e0e60
mov qword [rsi], 0
jmp 0x14016f5a4
int3
Function at 0x140170540
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x58], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x28]
mov qword [rdi + 0x10], rax
mov byte [rdi + 0x17], 7
mov rax, qword [str.Global_]
mov qword [rdi], rax
mov rax, qword [0x1401eea3e]
mov qword [rdi + 6], rax
mov word [rdi + 0xe], 0
lea rdx, [0x1401edd50]
mov rcx, rdi
call fcn.140031cf0
call fcn.1400586f0
xor al, 1
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov edx, eax
call fcn.1400615f0
movzx r8d, byte [rbx + 0x17]
test r8b, r8b
jns 0x1401705c4
mov r8, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
call fcn.1400d60e0
cmp byte [rsp + 0x57], 0
jns 0x1401705e0
mov rcx, qword [rsp + 0x40]
call fcn.140100564
lea rdx, str.ExperimentStorageMutex
mov rcx, rdi
call fcn.140031cf0
cmp byte [rsp + 0x3f], 0
jns 0x1401705fb
mov rdi, qword [rsp + 0x28]
xor ecx, ecx
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsi], 0
test rax, rax
je 0x140170645
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14017066e
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14017063d
mov qword [rsi], rdi
call fcn.1400d9600
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0x3f], 0
jns 0x140170656
mov rcx, qword [rsp + 0x28]
call fcn.140100564
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401013e0
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
call fcn.1400d9600
mov rcx, qword [rsi]
call fcn.1400e0e60
mov qword [rsi], 0
jmp 0x14017062b
Function at 0x140170d00
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
mov r15, rdx
mov rsi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov byte [rcx], 0
mov qword [rcx + 8], 0
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x40]
mov qword [rbx], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x28
mov r8, rbx
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140170e26
mov rdi, qword [rsp + 0x40]
cmp qword [rsi + 8], rdi
je 0x140170d9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140170e42
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140170d93
mov qword [rsi + 8], rdi
call fcn.1400d9600
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r8, [rsp + 0x38]
mov qword [r8], r14
xor ecx, ecx
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140170e03
lea r8, [rsp + 0x48]
mov dword [r8], 1
mov rax, qword [rsp + 0x38]
mov qword [r8 + 4], rax
mov dword [r8 + 0xc], 2
lea rax, [rsp + 0x34]
mov dword [rax], 0xaaaaaaaa
lea rdx, [rsi + 0x10]
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
xor edx, edx
mov r9d, 0x10
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x140170e03
mov byte [rsi], 1
jmp 0x140170e26
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jb 0x140170e26
call fcn.1400d9600
mov rcx, qword [rsi + 8]
call fcn.1400e0e60
mov qword [rsi + 8], 0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401013e0
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400d9600
mov rcx, qword [rsi + 8]
call fcn.1400e0e60
mov qword [rsi + 8], 0
jmp 0x140170d80
Function at 0x1401860d0
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 [0x140213038]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x1401860fa
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140186138
mov edi, eax
bt eax, 0xa
jae 0x1401861f0
test bl, bl
jne 0x1401861f0
xor edi, edi
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1401013e0
mov eax, edi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400d9610
test al, al
je 0x140186119
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x81
mov r9d, 2
call fcn.140158e40
lea rcx, [rsp + 0x60]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400cf4f0
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.1400dd930
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1401861c5
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.1400cf4f0
cmp byte [rsp + 0x4f], 0
jns 0x1401861e1
mov rcx, qword [rsp + 0x38]
call fcn.140100564
lea rcx, [rsp + 0x50]
call fcn.140158f30
jmp 0x140186119
and edi, 0x10
shr edi, 4
jmp 0x14018611b
Function at 0x140186200
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov ebx, r8d
mov rsi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
cmp byte [rcx + 0x17], 0
jns 0x14018622b
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
je 0x140186257
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.1401013e0
mov eax, edi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
ret
test bl, bl
je 0x14018626c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140186339
mov ecx, 2
call fcn.1400d9610
test al, al
je 0x140186332
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x38]
mov r8d, 0x61
mov r9d, 2
call fcn.140158e40
lea rcx, [rsp + 0x48]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.1400cf4f0
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x190]
mov rcx, rsi
call fcn.1400dd930
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140186306
mov r8, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x190]
mov rcx, rdi
mov rdx, rsi
call fcn.1400cf4f0
cmp byte [rsp + 0x1a7], 0
jns 0x140186328
mov rcx, qword [rsp + 0x190]
call fcn.140100564
lea rcx, [rsp + 0x38]
call fcn.140158f30
xor edi, edi
jmp 0x14018623a
mov dil, 1
mov rcx, rsi
mov dl, 1
call fcn.1401860d0
test al, al
jne 0x14018623a
mov ecx, 2
call fcn.1400d9610
test al, al
je 0x140186332
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x38]
mov r8d, 0x5c
mov r9d, 2
call fcn.14004a520
lea rdi, [rsp + 0x48]
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x180]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x190]
mov rcx, rsi
call fcn.1400dd930
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1401863c9
mov r8, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x190]
mov rcx, rdi
mov rdx, rsi
call fcn.1400cf4f0
lea rdx, str._not_a_directory
mov r8d, 0x10
mov rcx, rax
call fcn.1400cf4f0
cmp byte [rsp + 0x1a7], 0
jns 0x140186400
mov rcx, qword [rsp + 0x190]
call fcn.140100564
lea rcx, [rsp + 0x38]
call fcn.14004a9c0
jmp 0x140186332
Function at 0x140186410
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rsi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x140186438
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140186468
test eax, 0x410
sete bl
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1401013e0
mov eax, ebx
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400d9610
test al, al
je 0x14018651f
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x74
mov r9d, 2
call fcn.140158e40
lea rcx, [rsp + 0x60]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400cf4f0
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.1400dd930
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1401864f9
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.1400cf4f0
cmp byte [rsp + 0x4f], 0
jns 0x140186515
mov rcx, qword [rsp + 0x38]
call fcn.140100564
lea rcx, [rsp + 0x50]
call fcn.140158f30
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1401013e0
xor eax, eax
jmp 0x14018645d

Function at 0x140186540
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x1a8
mov rsi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
cmp byte [rcx + 0x17], 0
jns 0x140186567
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140186582
and eax, 0x410
cmp eax, 0x410
je 0x140186675
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14018658e
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dil, 1
test eax, eax
je 0x1401865b7
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1401013e0
mov eax, edi
add rsp, 0x1a8
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400d9610
test al, al
je 0x14018666e
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x94
mov r9d, 2
call fcn.140158e40
lea rcx, [rsp + 0x68]
lea rdx, str.DeleteFile
mov r8d, ntohl
call fcn.1400cf4f0
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x30]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x40]
mov rcx, rsi
call fcn.1400dd930
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140186648
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.1400cf4f0
cmp byte [rsp + 0x57], 0
jns 0x140186664
mov rcx, qword [rsp + 0x40]
call fcn.140100564
lea rcx, [rsp + 0x58]
call fcn.140158f30
xor edi, edi
jmp 0x14018659b
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1401013e0
mov rcx, rsi
add rsp, 0x1a8
pop rdi
pop rsi
jmp fcn.1401866a0