joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a4b60
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x140129038]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140100a48]
mov rbp, rcx
call fcn.1400b6bdc
xor edi, edi
test rax, rax
je 0x1400a4c46
mov ebx, edi
call fcn.1400a47fc
mov r14d, dword [rax]
call fcn.1400a47fc
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1400a9390
mov rsi, rax
test rax, rax
je 0x1400a4bd7
call fcn.1400a47fc
mov dword [rax], r14d
jmp 0x1400a4c01
call fcn.1400a47fc
cmp dword [rax], 0x22
jne 0x1400a4c3e
call fcn.1400a47fc
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1400a9390
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400a4c3e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1400a4c05
cmp rax, 3
je 0x1400a4c20
mov rcx, rsi
call fcn.1400a4abc
test al, al
je 0x1400a4c31
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400a4c31
mov dil, 1
mov rcx, rbx
call fcn.140065dd0
mov al, dil
jmp 0x1400a4c48
mov rcx, rbx
call fcn.140065dd0
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14008f1f0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400ae3e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400ae408
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400ae408
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1400b8398
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.1400b1f84
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 0x1400b8439
cmp ebx, dword [rsp + 0x30]
je 0x1400b8432
test esi, esi
je 0x1400b8432
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400b840d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400b841a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400b83f7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400b841e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400b843b
mov eax, 1
jmp 0x1400b843b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b945c
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 0x1400b948c
xor eax, eax
jmp 0x1400b954f
mov rbp, rbx
cmp word [rax], si
je 0x1400b94b1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400b9498
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400b9494
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.1400b937c
movsxd r14, eax
test eax, eax
jne 0x1400b94ef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400b9485
mov rcx, r14
call fcn.14002a4d0
mov rdi, rax
test rax, rax
jne 0x1400b9508
xor ecx, ecx
call fcn.140065dd0
jmp 0x1400b94e4
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.1400b937c
test eax, eax
jne 0x1400b9539
mov rcx, rdi
call fcn.140065dd0
jmp 0x1400b9543
xor ecx, ecx
call fcn.140065dd0
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 0x1400b956c
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 0x1400b95f3
mov rsi, rbx
cmp word [rax], bp
je 0x1400b95b2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400b959c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400b9598
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002a4d0
mov rdi, rax
test rax, rax
je 0x1400b95e0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140090c90
mov rbp, rdi
xor ecx, ecx
call fcn.140065dd0
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 0x1400bc86c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140129038]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400bc8b6
call fcn.1400a481c
mov dword [rax], 0xf
call fcn.1400a47fc
mov dword [rax], 0xd
call fcn.1400a6ac8
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14008f1f0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400bc8c1
lea eax, [rbx + 1]
jmp 0x1400bc8a3
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 0x1400bc8a1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400bc8a3

Function at 0x1400bd46c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400bd482
mov al, 1
jmp 0x1400bd4e2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400bd493
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400bd4e0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400a508c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400bd4e0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400bd4e0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400bd4e0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400bd4e2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400c0238
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.14009c024
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400c02c2
cmp byte [rbp - 0x21], r15b
je 0x1400c02bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400c02f8
call fcn.1400b2754
test eax, eax
jne 0x1400c02e4
cmp byte [rbp - 0x21], r15b
je 0x1400c02dc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400c02f8
cmp byte [rbp - 0x21], r15b
je 0x1400c02f5
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.1400a163c
test eax, eax
jne 0x1400c0398
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14009c024
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400c0337
cmp byte [rbp - 0x21], r15b
je 0x1400c036c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400c036c
call fcn.1400b2754
test eax, eax
jne 0x1400c0358
cmp byte [rbp - 0x21], r15b
je 0x1400c0351
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400c036c
cmp byte [rbp - 0x21], r15b
je 0x1400c0369
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.1400a163c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400c0398
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400c039b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400c03a9
mov rcx, rdi
call fcn.140065dd0
cmp byte [rbp + 0x3f], r15b
je 0x1400c03b8
mov rcx, qword [rbp + 0x27]
call fcn.140065dd0
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 0x1400db4e0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x17], 0
jns 0x1400db4ed
mov rcx, qword [rcx]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x1400dc860
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rsi, rcx
mov rax, qword [0x140129038]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [0x14013c3f0]
test rax, rax
je 0x1400dc965
cmp eax, 2
jne 0x1400dc8dc
mov ecx, 2
call fcn.1400747c0
test al, al
je 0x1400dc935
lea rdx, str....._third_partycrashpadcrashpadclientcrashpad_client_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0x8e
mov r9d, 2
call fcn.14003afe0
lea rcx, [rsp + 0x38]
lea rdx, str.crash_server_failed_to_launch__self_terminating
mov r8d, 0x2f
jmp 0x1400dc9b6
mov eax, 1
lock xadd qword [0x14013c428], rax
test rax, rax
jle 0x1400dc8fc
mov ecx, 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SleepEx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x14013c3a8], eax
mov qword [0x14013c3a0], rsi
mov rcx, qword [0x140137188]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0xea60
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 2
call fcn.1400747c0
test al, al
jne 0x1400dc984
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.14008f1f0
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 [0x14013c3f0]
test rax, rax
je 0x1400dc96c
jmp 0x1400dc88e
lea rdx, str....._third_partycrashpadcrashpadclientcrashpad_client_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0xba
mov r9d, 2
call fcn.14003afe0
lea rcx, [rsp + 0x38]
lea rdx, str.crash_server_did_not_respond__self_terminating
mov r8d, 0x2e
call fcn.1400c2190
mov rcx, rsi
call fcn.14003b4d0
jmp 0x1400dc935
Function at 0x1400dfb40
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x140129038]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x14013c918], 0
je 0x1400dfb86
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.14008f1f0
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x14013c8f0]
test rdi, rdi
je 0x1400dfc27
test byte [0x140138d38], 1
je 0x1400dfb69
cmp byte [rdi + 0x17], 0
jns 0x1400dfba8
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 [0x14013c918], rax
inc rax
cmp rax, 1
ja 0x1400dfb69
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140091340
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1400dfced
xor esi, esi
jmp 0x1400dfb69
mov ecx, 0x18
call fcn.14008dd4c
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140091340
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x14010cb00]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.1400c2010
movzx eax, byte [rdi + 0x17]
mov rcx, rdi
test al, al
jns 0x1400dfc8f
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
jne 0x1400dfcb5
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.1400267b0
mov qword [0x14013c8f0], rdi
jmp 0x1400dfb96
lea r8, [rax + rax]
test r8, r8
je 0x1400dfc94
lea rdx, [r8 - 2]
cmp word [rcx + r8 - 2], 0x5c
mov r8, rdx
jne 0x1400dfcb9
cmp rdx, 0xfffffffffffffffe
je 0x1400dfc94
sar rdx, 1
cmp rax, rdx
jbe 0x1400dfdb4
inc rdx
mov rcx, rdi
call fcn.1400da500
jmp 0x1400dfc94
mov rdi, qword [0x14013c8f0]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400add10
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.140026490
mov rcx, qword [0x14013c8f0]
call fcn.1400d7af0
cmp word [rax], 0x5c
je 0x1400dfd3a
mov rcx, qword [0x14013c8f0]
lea rdx, [0x1401109aa]
mov r8d, 1
call fcn.1400267b0
mov rcx, qword [0x14013c8f0]
lea rdx, str.debug.log
mov r8d, 9
call fcn.1400267b0
mov rcx, qword [0x14013c8f0]
cmp byte [rcx + 0x17], 0
jns 0x1400dfd63
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 [0x14013c918], rax
inc rax
cmp rax, 1
ja 0x1400dfb69
mov qword [0x14013c918], 0
jmp 0x1400dfc20
mov rcx, rdi
call fcn.1400c2610
int3
Function at 0x1400e55a0
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 [0x140129038]
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 0x1400e5634
mov rsi, r8
mov r14, rcx
lea r15, [rsp + 0x20]
mov rcx, rdi
mov rdx, r15
call fcn.1400e4ed0
test al, al
jne 0x1400e55fc
add rdi, 0x70
cmp rdi, r12
jne 0x1400e55e1
mov rdi, r12
cmp rdi, qword [r14 + 0x58]
je 0x1400e5634
cmp byte [rdi + 0x27], 0
jns 0x1400e560e
mov rcx, qword [rdi + 0x10]
jmp 0x1400e5612
lea rcx, [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 0x1400e5634
mov qword [rsi], rdi
xor ebx, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14008f1f0
mov eax, ebx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400ef590
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 [0x140129038]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x1400ef5ba
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400ef5dc
mov edi, eax
test bl, bl
jne 0x1400ef5d4
mov eax, edi
and eax, 0x400
jne 0x1400ef5ea
and edi, 0x10
shr edi, 4
jmp 0x1400ef5ec
mov ecx, 2
call fcn.1400747c0
test al, al
jne 0x1400ef609
xor edi, edi
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.14008f1f0
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.1400e00c0
lea rcx, [rsp + 0x68]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400c2190
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.1400668e0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1400ef688
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.1400c2190
cmp byte [rsp + 0x57], 0
jns 0x1400ef6a4
mov rcx, qword [rsp + 0x40]
call fcn.14008dd88
lea rcx, [rsp + 0x58]
call fcn.1400e0140
jmp 0x1400ef5ea

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

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x140129038]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x1400ef6e7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400ef717
test eax, 0x410
sete sil
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14008f1f0
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400747c0
test al, al
jne 0x1400ef729
xor esi, esi
jmp 0x1400ef6fb
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, 0x75
mov r9d, 2
call fcn.1400e00c0
lea rcx, [rsp + 0x60]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400c2190
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.1400668e0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1400ef7a8
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.1400c2190
cmp byte [rsp + 0x4f], 0
jns 0x1400ef7c4
mov rcx, qword [rsp + 0x38]
call fcn.14008dd88
lea rcx, [rsp + 0x50]
call fcn.1400e0140
jmp 0x1400ef725
Function at 0x1400ef7e0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x140129038]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x1400ef807
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400ef81e
and eax, 0x410
cmp eax, 0x410
je 0x1400ef865
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400ef82a
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dil, 1
test eax, eax
je 0x1400ef853
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14008f1f0
mov eax, edi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400747c0
test al, al
jne 0x1400ef886
xor edi, edi
jmp 0x1400ef837
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14008f1f0
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.1400ef930
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, 0x95
mov r9d, 2
call fcn.1400e00c0
lea rcx, [rsp + 0x60]
lea rdx, str.DeleteFile
mov r8d, 0xb
call fcn.1400c2190
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.1400668e0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1400ef905
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.1400c2190
cmp byte [rsp + 0x4f], 0
jns 0x1400ef921
mov rcx, qword [rsp + 0x38]
call fcn.14008dd88
lea rcx, [rsp + 0x50]
call fcn.1400e0140
jmp 0x1400ef861

Function at 0x1400ef930
Capabilities:
Delete directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rdi, rcx
mov rax, qword [0x140129038]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x1400ef958
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test eax, eax
jne 0x1400ef972
mov ecx, 2
call fcn.1400747c0
test al, al
jne 0x1400ef994
test esi, esi
setne bl
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.14008f1f0
mov eax, ebx
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, 0x30
mov r9d, 2
call fcn.1400e00c0
lea rcx, [rsp + 0x68]
lea rdx, str.RemoveDirectory
mov r8d, 0x10
call fcn.1400c2190
mov rbx, rax
movzx eax, byte [rdi + 0x17]
test al, al
mov rcx, qword [rdi]
cmovns rcx, rdi
lea rdx, [rsp + 0x30]
mov qword [rdx], rcx
cmovs rax, qword [rdi + 8]
mov qword [rdx + 8], rax
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.1400668e0
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
jns 0x1400efa13
mov r8, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov rcx, rbx
mov rdx, rdi
call fcn.1400c2190
cmp byte [rsp + 0x57], 0
jns 0x1400efa2f
mov rcx, qword [rsp + 0x40]
call fcn.14008dd88
lea rcx, [rsp + 0x58]
call fcn.1400e0140
jmp 0x1400ef972
Function at 0x1400f1c40
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rbx, rdx
mov rsi, rcx
mov rax, qword [rcx + 8]
cmp rax, qword [rcx + 0x10]
je 0x1400f1c7e
test rax, rax
je 0x1400f1d47
mov rcx, qword [rbx]
mov qword [rax], rcx
add rax, 8
mov qword [rsi + 8], rax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
sub rax, qword [rsi]
mov r15, rax
sar r15, 3
lea rcx, [r15 + 1]
mov rdx, rcx
shr rdx, 0x3d
jne 0x1400f1d73
movabs rdx, 0x1fffffffffffffff
lea rdi, [rsi + 0x18]
mov r14, rax
shr r14, 2
cmp r14, rcx
cmovbe r14, rcx
movabs rcx, 0x7ffffffffffffff8
cmp rax, rcx
cmovae r14, rdx
test r14, r14
jne 0x1400f1d3a
xor eax, eax
shl r15, 3
add r15, rax
je 0x1400f1d47
lea rax, [rax + r14*8]
mov rcx, qword [rbx]
mov qword [r15], rcx
lea rcx, [r15 + 8]
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
cmp r8, rdx
je 0x1400f1d08
mov r9, qword [r8 - 8]
add r8, 0xfffffffffffffff8
mov qword [r15 - 8], r9
add r15, 0xfffffffffffffff8
cmp r8, rdx
jne 0x1400f1cf0
mov rdx, qword [rsi]
mov qword [rsi], r15
mov qword [rsi + 8], rcx
mov r8, qword [rsi + 0x10]
mov qword [rsi + 0x10], rax
test rdx, rdx
je 0x1400f1c72
sub r8, rdx
sar r8, 3
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.1400f22b0
mov rcx, rdi
mov rdx, r14
call fcn.1400f2830
jmp 0x1400f1ccd
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1400c29f0
mov rcx, rsi
call fcn.1400c2960
int3

Function at 0x1400f7580
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x1400f75bc
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400f75c6
add rdi, rbx
sub rsi, rbx
jne 0x1400f759a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400a6a20
int3

Function at 0x1400fb8f0
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 [0x140129038]
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]
cmp rdi, rsi
jae 0x1400fb978
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 0x1400fb971
mov rdx, rcx
add rdi, rdx
cmp al, 1
jne 0x1400fb932
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14008f1f0
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret