joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009cb08
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14012bc40]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14009cb5f
cmp word [rdx], r13w
jne 0x14009cb5f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14009cb64
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14009cc89
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14009ccaa
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14009cb9d
mov rdx, r9
mov word [rbx], cx
jmp 0x14009cbc4
cmp r9, r8
jae 0x14009cbd4
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14009cb7e
jmp 0x14009cc89
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14009cc7e
cmp dword [rsp + 0x80], esi
je 0x14009cc7e
lea r8, [0x14012bc40]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14009cc56
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14009cc26
mov word [rbx], r13w
jmp 0x14009cc86
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14009cc33
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14009cc86
cmp word [rsp + 0x70], r13w
jne 0x14009cc63
cmp rbx, r14
je 0x14009cc20
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400ab918
cmp word [rsp + 0x70], r13w
je 0x14009cc89
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14012bc40]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14009cc83
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14009cc89
Function at 0x1400a4510
Capabilities:
Parse pe header

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

Function at 0x1400ae4c8
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.1400a8134
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 0x1400ae569
cmp ebx, dword [rsp + 0x30]
je 0x1400ae562
test esi, esi
je 0x1400ae562
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400ae53d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400ae54a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400ae527
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400ae54e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400ae56b
mov eax, 1
jmp 0x1400ae56b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400af590
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 0x1400af5c0
xor eax, eax
jmp 0x1400af683
mov rbp, rbx
cmp word [rax], si
je 0x1400af5e5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400af5cc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400af5c8
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.1400af4b0
movsxd r14, eax
test eax, eax
jne 0x1400af623
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400af5b9
mov rcx, r14
call fcn.1400347a0
mov rdi, rax
test rax, rax
jne 0x1400af63c
xor ecx, ecx
call fcn.1400347f0
jmp 0x1400af618
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.1400af4b0
test eax, eax
jne 0x1400af66d
mov rcx, rdi
call fcn.1400347f0
jmp 0x1400af677
xor ecx, ecx
call fcn.1400347f0
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 0x1400af6a0
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 0x1400af727
mov rsi, rbx
cmp word [rax], bp
je 0x1400af6e6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400af6d0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400af6cc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400347a0
mov rdi, rax
test rax, rax
je 0x1400af714
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400b99b0
mov rbp, rdi
xor ecx, ecx
call fcn.1400347f0
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 0x1400b299c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14011c040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400b29e6
call fcn.14009abe0
mov dword [rax], 0xf
call fcn.14009abc0
mov dword [rax], 0xd
call fcn.14009cef4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400863f0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400b29f1
lea eax, [rbx + 1]
jmp 0x1400b29d3
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 0x1400b29d1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400b29d3

Function at 0x1400b2fbc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400b2fd2
mov al, 1
jmp 0x1400b3032
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400b2fe3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400b3030
mov ecx, dword [rcx + 0x18]
nop
call fcn.14009b44c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400b3030
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400b3030
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400b3030
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400b3032
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400b7858
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.140092654
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400b78e2
cmp byte [rbp - 0x21], r15b
je 0x1400b78dd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400b7918
call fcn.1400a8904
test eax, eax
jne 0x1400b7904
cmp byte [rbp - 0x21], r15b
je 0x1400b78fc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400b7918
cmp byte [rbp - 0x21], r15b
je 0x1400b7915
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.140097c6c
test eax, eax
jne 0x1400b79b8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140092654
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400b7957
cmp byte [rbp - 0x21], r15b
je 0x1400b798c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400b798c
call fcn.1400a8904
test eax, eax
jne 0x1400b7978
cmp byte [rbp - 0x21], r15b
je 0x1400b7971
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400b798c
cmp byte [rbp - 0x21], r15b
je 0x1400b7989
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.140097c6c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400b79b8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400b79bb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400b79c9
mov rcx, rdi
call fcn.1400347f0
cmp byte [rbp + 0x3f], r15b
je 0x1400b79d8
mov rcx, qword [rbp + 0x27]
call fcn.1400347f0
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 0x1400d4200
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x14011c040]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x14012dd38], 0
je 0x1400d4246
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1400863f0
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x14012dd40]
test rdi, rdi
jne 0x1400d4313
mov ecx, 0x18
call fcn.140085054
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1400ba050
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x1400f6a90]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.1400660e0
movsx rax, byte [rdi + 0x17]
mov rcx, rdi
test rax, rax
jns 0x1400d42c0
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
je 0x1400d42f7
add rax, rax
test rax, rax
je 0x1400d42f7
lea rdx, [rax - 2]
cmp word [rcx + rax - 2], 0x5c
mov rax, rdx
jne 0x1400d42c8
cmp rdx, 0xfffffffffffffffe
je 0x1400d42f7
sar rdx, 1
inc rdx
mov rcx, rdi
mov r8, 0xffffffffffffffff
call fcn.140061540
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.140067380
mov qword [0x14012dd40], rdi
test byte [0x14011e130], 1
je 0x1400d4229
cmp byte [rdi + 0x17], 0
jns 0x1400d4329
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 [0x14012dd38], rax
inc rax
cmp rax, 1
ja 0x1400d4229
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400ba050
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jb 0x1400d4465
mov rcx, qword [0x14012dd40]
lea rdx, [rsp + 0x40]
call fcn.140024200
mov rcx, qword [0x14012dd40]
movsx rax, byte [rcx + 0x17]
test rax, rax
js 0x1400d446c
test al, al
je 0x1400d447d
mov rdx, rcx
cmp word [rdx + rax*2 - 2], 0x5c
je 0x1400d43f7
lea rdx, [0x1400fa0ea]
mov r8d, 1
call fcn.140067380
mov rcx, qword [0x14012dd40]
lea rdx, str.debug.log
mov r8d, 9
call fcn.140067380
mov rcx, qword [0x14012dd40]
cmp byte [rcx + 0x17], 0
jns 0x1400d4419
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 [0x14012dd38], rax
inc rax
cmp rax, 1
ja 0x1400d4229
mov qword [0x14012dd38], 0
xor esi, esi
jmp 0x1400d4229
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400d447d
mov rdx, qword [rcx]
jmp 0x1400d43d6
ud2

Function at 0x1400d6d20
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x17], 0
jns 0x1400d6d2d
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 0x1400d85a0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rsi, rcx
mov rax, qword [0x14011c040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rax, qword [0x14012e680]
test rax, rax
jne 0x1400d85e4
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call rdi
mov rax, qword [0x14012e680]
test rax, rax
je 0x1400d85d1
cmp eax, 2
je 0x1400d8682
mov eax, 1
lock xadd qword [0x14012e6b8], rax
inc rax
cmp rax, 2
jl 0x1400d8611
mov ecx, 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SleepEx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x14012e640], eax
mov qword [0x14012e638], rsi
mov rcx, qword [0x14011e1e0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0xea60
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 2
call fcn.14006e070
test al, al
je 0x1400d86cf
lea rdx, str....._third_partycrashpadcrashpadclientcrashpad_client_win.cc
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov r8d, 0xbc
mov r9d, 2
call fcn.1400296d0
lea rcx, [rsp + 0x30]
lea rdx, str.crash_server_did_not_respond__self_terminating
mov r8d, 0x2e
jmp 0x1400d86c2
mov ecx, 2
call fcn.14006e070
test al, al
je 0x1400d86cf
lea rdx, str....._third_partycrashpadcrashpadclientcrashpad_client_win.cc
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov r8d, 0x90
mov r9d, 2
call fcn.1400296d0
lea rcx, [rsp + 0x30]
lea rdx, str.crash_server_failed_to_launch__self_terminating
mov r8d, 0x2f
call fcn.140058f60
mov rcx, rsi
call fcn.140029ca0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xffff7001
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400863f0
xor eax, eax
add rsp, 0x158
pop rdi
pop rsi
ret
Function at 0x1400e76c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x170
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x14011c040]
xor rax, rsp
mov qword [rsp + 0x168], rax
cmp byte [rcx + 0x17], 0
jns 0x1400e76ea
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400e7709
mov edi, eax
shr eax, 0xa
xor bl, 1
test al, bl
jne 0x1400e776a
and edi, 0x10
shr edi, 4
jmp 0x1400e776c
mov ecx, 2
call fcn.14006e070
test al, al
je 0x1400e776a
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x80
mov r9d, 2
call fcn.1400d4a30
lea rcx, [rsp + 0x40]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.140058f60
mov rcx, rax
mov rdx, rsi
call fcn.1400d5b20
mov rcx, rdi
call fcn.1400d4aa0
xor edi, edi
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.1400863f0
mov eax, edi
add rsp, 0x170
pop rbx
pop rdi
pop rsi
ret

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

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rsi, rcx
mov rax, qword [0x14011c040]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp byte [rcx + 0x17], 0
jns 0x1400e77b7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400e77e7
test eax, 0x410
sete sil
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400863f0
mov eax, esi
add rsp, 0x168
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14006e070
test al, al
je 0x1400e7848
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x73
mov r9d, 2
call fcn.1400d4a30
lea rcx, [rsp + 0x38]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.140058f60
mov rcx, rax
mov rdx, rsi
call fcn.1400d5b20
mov rcx, rdi
call fcn.1400d4aa0
xor esi, esi
jmp 0x1400e77cb
Function at 0x140001300
Capabilities:
Delete registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14000a208]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rax, rdx
mov rbx, rcx
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rsi, r8
xor dil, dil
call qword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_QString::toStdWString_void____ptr64]
cmp qword [rax + 0x18], 8
jb 0x14000133b
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rdx, qword [rsp + 0x38]
mov ebx, eax
cmp rdx, 8
jb 0x14000138e
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001389
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001389
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000434c
test ebx, ebx
jne 0x140001397
mov dil, 1
jmp 0x1400013a1
mov rdx, rsi
mov ecx, ebx
call fcn.140001260
movzx eax, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140004460
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x140001590
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x498
mov rax, qword [0x14000a208]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rbp, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x34], 0
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_void____ptr64]
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x38], 0x400
lea rdx, [rsp + 0x58]
mov rcx, rsi
call qword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_QString::toStdWString_void____ptr64]
cmp qword [rax + 0x18], 8
jb 0x1400015f5
mov rax, qword [rax]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140001667
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001662
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001662
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000434c
test ebx, ebx
jne 0x14000170a
cmp dword [rsp + 0x3c], 1
jne 0x1400016a0
lea r8d, [rbx - 1]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x40]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const____ptr64__int_]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
lea rcx, [rsp + 0x40]
jmp 0x140001704
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, str.Registry_value__1_is_not_a_string
lea rcx, [rsp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QObject::tr_char_const____ptr64__char_const____ptr64__int_]
mov rbx, rax
mov dl, 0x20
lea rcx, [rsp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QChar::constructor_struct_QLatin1Char____ptr64]
movzx eax, word [rax]
mov word [rsp + 0x20], ax
xor r9d, r9d
mov r8, rsi
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.Qt5Core.dll_public:_class_QString___cdecl_QString::arg_class_QString_const____ptr64__int__class_QChar____ptr64]
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
lea rcx, [rsp + 0x40]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rax, rdi
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140004460
add rsp, 0x498
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001b60
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x14000a208]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, rdx
mov rbp, rcx
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rsi, r9
mov rbx, r8
xor dil, dil
call qword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_QString::toStdWString_void____ptr64]
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x140001ba2
mov rdx, qword [rax]
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140001bb0
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, qword [rsp + 0x48]
mov ebx, eax
cmp rdx, 8
jb 0x140001c25
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001c20
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c20
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000434c
test ebx, ebx
jne 0x140001c2e
mov dil, 1
jmp 0x140001c38
mov rdx, rsi
mov ecx, ebx
call fcn.140001260
movzx eax, dil
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140004460
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400026d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x1060
call fcn.140004490
sub rsp, rax
mov rax, qword [0x14000a208]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x30], 0
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_void____ptr64]
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0x800
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002774
lea r8d, [rax - 1]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const____ptr64__int_]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
lea rcx, [rsp + 0x38]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rax, rsi
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140004460
add rsp, 0x1060
pop rdi
pop rsi
pop rbx
ret