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

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rsi, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [0x1403b76d8]
test rax, rax
je 0x140256ce5
cmp eax, 2
jne 0x140256c5c
mov ecx, 2
call fcn.140160660
test al, al
je 0x140256cb5
lea rdx, str....._third_partycrashpadcrashpadclientcrashpad_client_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0x8e
mov r9d, 2
call fcn.140076020
lea rcx, [rsp + 0x38]
lea rdx, str.crash_server_failed_to_launch__self_terminating
mov r8d, 0x2f
jmp 0x140256d36
mov eax, 1
lock xadd qword [0x1403b7710], rax
test rax, rax
jle 0x140256c7c
mov ecx, 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SleepEx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x1403b7690], eax
mov qword [0x1403b7688], rsi
mov rcx, qword [0x1403a38d0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0xea60
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 2
call fcn.140160660
test al, al
jne 0x140256d04
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.1401bb0d0
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 [0x1403b76d8]
test rax, rax
je 0x140256cec
jmp 0x140256c0e
lea rdx, str....._third_partycrashpadcrashpadclientcrashpad_client_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, ILCreateFromPathW
mov r9d, 2
call fcn.140076020
lea rcx, [rsp + 0x38]
lea rdx, str.crash_server_did_not_respond__self_terminating
mov r8d, 0x2e
call fcn.1401f9cc0
mov rcx, rsi
call fcn.140076510
jmp 0x140256cb5

Function at 0x1402827b0
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 [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rbx, [rsp + 0x50]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1401bd200
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 0x14028283f
lea rsi, [rsp + 0x28]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.1401e2874
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov rdx, rsi
call fcn.14015eae0
mov rcx, r14
mov rdx, rbx
call fcn.14015ec30
mov rcx, rbx
call fcn.14015ebb0
test edi, edi
setns bl
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1401bb0d0
mov eax, ebx
add rsp, 0x268
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140282d70
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 [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x30], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
mov rdi, qword [rcx + 0x50]
mov rbp, qword [rcx + 0x58]
mov r15d, 1
cmp rdi, rbp
je 0x140282e08
mov r14, r8
mov rsi, rcx
lea rbx, [rsp + 0x20]
mov rcx, rdi
mov rdx, rbx
call fcn.140283f60
test al, al
jne 0x140282dcc
add rdi, 0x70
cmp rdi, rbp
jne 0x140282db1
mov rdi, rbp
cmp rdi, qword [rsi + 0x58]
je 0x140282e08
cmp byte [rdi + 0x27], 0
jns 0x140282dde
mov rcx, qword [rdi + 0x10]
jmp 0x140282de2
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 0x140282e08
mov qword [r14], rdi
xor r15d, r15d
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401bb0d0
mov eax, r15d
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140282f80
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 [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
mov rdi, qword [rcx + 0x50]
mov rsi, qword [rcx + 0x58]
mov r12d, 1
cmp rdi, rsi
je 0x14028300a
mov r14, r9
mov r15d, r8d
mov rbx, rcx
lea rbp, [rsp + 0x20]
mov rcx, rdi
mov rdx, rbp
call fcn.140283f60
test al, al
jne 0x140282fe1
add rdi, 0x70
cmp rdi, rsi
jne 0x140282fc6
mov rdi, rsi
cmp rdi, qword [rbx + 0x58]
je 0x14028300a
mov eax, dword [rdi + 0x68]
cmp eax, r15d
jne 0x140282ffb
cmp byte [rdi + 0x27], 0
jns 0x140283029
mov rcx, qword [rdi + 0x10]
jmp 0x14028302d
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.1401bb0d0
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 0x14028300a
shr eax, 3
and eax, 2
mov r12d, eax
jne 0x14028300a
mov byte [rbx + 0x48], 1
mov qword [r14], rdi
xor r12d, r12d
jmp 0x14028300a
Function at 0x140285a20
Capabilities:
Create process on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov rsi, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x50], r14
movaps xmm0, xmmword [0x14032f5c0]
movaps xmmword [rdi + 0x40], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.PinShortcutToTaskbar
lea r8, str.....chromeinstallerutil_taskbar_util.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0x6b
call fcn.140160630
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14016ac30
call fcn.140177450
cmp eax, 0xd
jge 0x140285b07
cmp byte [rsi + 0x17], 0
jns 0x140285ab0
mov rsi, qword [rsi]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea rdx, str.taskbarpin
xor ecx, ecx
mov r8, rsi
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x21
setge sil
lea rcx, [rsp + 0x50]
call fcn.14016ac90
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401bb0d0
mov eax, esi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdi, [rsp + 0x30]
mov qword [rdi], r14
mov rcx, rdi
call fcn.140285c80
cmp qword [rdi], 0
je 0x140285b8f
cmp byte [rsi + 0x17], 0
jns 0x140285b26
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.SHELL32.dll_ILCreateFromPathW]
mov rdi, rax
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x80]
xor edx, edx
mov r8, rdi
mov r9d, 4
call qword [0x1403de008]
test eax, eax
setns sil
test rdi, rdi
je 0x140285b66
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_ILFree]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140285ade
mov qword [rsp + 0x30], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1403de008]
jmp 0x140285ade
xor esi, esi
jmp 0x140285ade

Function at 0x140299a80
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x140299abc
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 0x140299ac6
add rdi, rbx
sub rsi, rbx
jne 0x140299a9a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1401d3c50
int3
Function at 0x1402a6480
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x180
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov qword [rcx + 8], rdx
mov eax, dword [0x1403bfcc0]
mov ecx, dword [0x1403b1c84]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1402a6722
mov rax, qword [0x1403bfcb8]
test rax, rax
jne 0x1402a65c0
mov byte [rsi + 0x81], 0
movaps xmm0, xmmword [0x14032f5c0]
lea rbx, [rsp + 0x30]
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [rbx], 9
sete byte [rsi + 0x80]
cmp byte [rsi + 0x81], 0
setne dl
lea rax, [rsi + 0x30]
lea r9, [rsi + 0x28]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov r8, rsi
call fcn.1402a6770
test al, al
je 0x1402a663e
cmp byte [rsi + 0x80], 0
mov rdx, qword [rsi + 0x28]
mov rcx, rdi
mov r8, rsi
je 0x1402a66d4
call fcn.1400e9f80
test al, al
je 0x1402a666f
mov dl, byte [rsi + 0x80]
mov rcx, rdi
mov r8, rsi
call fcn.1400e95e0
mov sil, 1
test al, al
jne 0x1402a6652
mov ecx, 2
call fcn.140160660
test al, al
je 0x1402a6650
lea rdx, str....._third_partycrashpadcrashpadutilwinprocess_info.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x22c
mov r9d, 2
call fcn.140076020
lea rcx, [rsp + 0x40]
lea rdx, str.ReadMemoryInfo_failed
mov r8d, 0x15
jmp 0x1402a6710
lea rdx, [rsp + 0x174]
mov dword [rdx], 0xaaaaaaaa
mov rcx, rdi
call qword [0x1403de008]
test eax, eax
jne 0x1402a66b1
mov ecx, 2
call fcn.140160660
test al, al
je 0x1402a64db
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutilwinprocess_info.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r8d, 0x4b
mov r9d, 2
call fcn.140224610
lea rcx, [rsp + 0x40]
lea rdx, [0x14037b11c]
mov r8d, reloc.WS2_32.dll_ntohl
call fcn.1401f9cc0
mov rcx, rbx
call fcn.140224690
jmp 0x1402a64db
mov ecx, 2
call fcn.140160660
test al, al
jne 0x1402a66de
xor esi, esi
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.1401bb0d0
mov eax, esi
add rsp, 0x180
pop rbx
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140160660
test al, al
je 0x1402a6650
lea rdx, str....._third_partycrashpadcrashpadutilwinprocess_info.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x227
mov r9d, 2
call fcn.140076020
lea rcx, [rsp + 0x40]
lea rdx, str.ReadProcessData_failed
mov r8d, 0x16
jmp 0x1402a6710
cmp dword [rsp + 0x174], 0
setne byte [rsi + 0x81]
je 0x1402a64e2
mov byte [rsi + 0x80], 0
mov dl, 1
jmp 0x1402a6517
call fcn.1400ea620
jmp 0x1402a6553
lea rdx, str....._third_partycrashpadcrashpadutilwinprocess_info.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x21e
mov r9d, 2
call fcn.140076020
lea rcx, [rsp + 0x40]
lea rdx, str.GetProcessBasicInformation_failed
mov r8d, 0x21
call fcn.1401f9cc0
mov rcx, rsi
call fcn.140076510
jmp 0x1402a6650
lea rcx, [0x1403bfcc0]
call fcn.1401b9e00
cmp dword [0x1403bfcc0], 0xffffffff
jne 0x1402a64cb
lea rcx, [0x140333e72]
lea rdx, str.::IsWow64Process
xor r8d, r8d
call fcn.1400ebdd0
mov qword [0x1403bfcb8], rax
lea rcx, [0x1403bfcc0]
call fcn.1401b9e98
jmp 0x1402a64cb
Function at 0x1402aa0b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp edx, 0x33ff
jg 0x1402aa0d2
add edx, edx
movzx r8d, dx
movzx edx, word [rcx]
cmp r8d, edx
jbe 0x1402aa130
and edx, 1
or edx, 2
lea rcx, [rcx + rdx*2]
jmp 0x1402aa0be
mov r8d, edx
shr r8d, 9
add r8d, 0x3400
and r8d, 0xfffe
shl edx, 6
mov eax, 0xffffffff
movzx r9d, word [rcx]
cmp r8d, r9d
jbe 0x1402aa109
and r9d, 1
or r9, 2
mov r10, r9
lea rcx, [rcx + r10*2]
jmp 0x1402aa0ef
mov r10d, r9d
and r10d, 0x7ffe
cmp r8d, r10d
jne 0x1402aa12f
movzx r10d, word [rcx + 2]
cmp r10w, dx
jae 0x1402aa15c
mov r10d, 3
test r9w, r9w
jns 0x1402aa103
ret
mov r9d, edx
and r9d, 0x7ffe
mov eax, 0xffffffff
cmp r8d, r9d
jne 0x1402aa12f
movzx eax, word [rcx + 2]
test dl, 1
je 0x1402aa12f
shl eax, 0x10
mov r10d, eax
movzx eax, word [rcx + 4]
or eax, r10d
jmp 0x1402aa12f
xor edx, r10d
test edx, 0xffc0
jne 0x1402aa12f
and r10d, 0x3f
shl r10d, 0x10
jmp 0x1402aa153
Function at 0x1402b1a90
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 [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x1402b1aba
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1402b1adc
mov edi, eax
test bl, bl
jne 0x1402b1ad4
mov eax, edi
and eax, 0x400
jne 0x1402b1aea
and edi, 0x10
shr edi, 4
jmp 0x1402b1aec
mov ecx, 2
call fcn.140160660
test al, al
jne 0x1402b1b09
xor edi, edi
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1401bb0d0
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.140224610
lea rcx, [rsp + 0x68]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1401f9cc0
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x40]
mov rcx, rsi
call fcn.14016a3b0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1402b1b8f
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
jmp 0x1402b1b93
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.1401f9cc0
cmp byte [rsp + 0x57], 0
jns 0x1402b1baf
mov rcx, qword [rsp + 0x40]
call fcn.1401b9ce8
lea rcx, [rsp + 0x58]
call fcn.140224690
jmp 0x1402b1aea
Function at 0x1402b1bc0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov ebx, r8d
mov rsi, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
cmp byte [rcx + 0x17], 0
jns 0x1402b1beb
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
je 0x1402b1c17
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.1401bb0d0
mov eax, edi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
ret
test bl, bl
je 0x1402b1c2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1402b1cd4
mov ecx, 2
call fcn.140160660
test al, al
jne 0x1402b1c3e
xor edi, edi
jmp 0x1402b1bfa
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.140224610
lea rcx, [rsp + 0x50]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.1401f9cc0
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x190]
mov rcx, rsi
call fcn.14016a3b0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1402b1d6f
mov r8, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x190]
jmp 0x1402b1d73
mov dil, 1
mov rcx, rsi
mov dl, 1
call fcn.1402b1a90
test al, al
jne 0x1402b1bfa
mov ecx, 2
call fcn.140160660
test al, al
je 0x1402b1c3a
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x40]
mov r8d, 0x5d
mov r9d, 2
call fcn.140076020
lea rdi, [rsp + 0x50]
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x180]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x190]
mov rcx, rsi
call fcn.14016a3b0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1402b1da4
mov r8, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x190]
jmp 0x1402b1da8
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.1401f9cc0
cmp byte [rsp + 0x1a7], 0
jns 0x1402b1d95
mov rcx, qword [rsp + 0x190]
call fcn.1401b9ce8
lea rcx, [rsp + 0x40]
call fcn.140224690
jmp 0x1402b1c3a
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.1401f9cc0
lea rdx, str._not_a_directory
mov r8d, 0x10
mov rcx, rax
call fcn.1401f9cc0
cmp byte [rsp + 0x1a7], 0
jns 0x1402b1ddf
mov rcx, qword [rsp + 0x190]
call fcn.1401b9ce8
lea rcx, [rsp + 0x40]
call fcn.140076510
jmp 0x1402b1c3a
Function at 0x1402b1df0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x1402b1e17
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1402b1e47
test eax, 0x410
sete sil
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1401bb0d0
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140160660
test al, al
jne 0x1402b1e59
xor esi, esi
jmp 0x1402b1e2b
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.140224610
lea rcx, [rsp + 0x60]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1401f9cc0
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.14016a3b0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1402b1edf
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
jmp 0x1402b1ee3
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.1401f9cc0
cmp byte [rsp + 0x4f], 0
jns 0x1402b1eff
mov rcx, qword [rsp + 0x38]
call fcn.1401b9ce8
lea rcx, [rsp + 0x50]
call fcn.140224690
jmp 0x1402b1e55
Function at 0x1402b1f10
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x1402b1f37
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1402b1f4e
and eax, 0x410
cmp eax, 0x410
je 0x1402b1f95
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1402b1f5a
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dil, 1
test eax, eax
je 0x1402b1f83
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1401bb0d0
mov eax, edi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140160660
test al, al
jne 0x1402b1fb6
xor edi, edi
jmp 0x1402b1f67
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1401bb0d0
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.1402b2070
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.140224610
lea rcx, [rsp + 0x60]
lea rdx, str.DeleteFile
mov r8d, ntohl
call fcn.1401f9cc0
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.14016a3b0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1402b203c
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
jmp 0x1402b2040
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.1401f9cc0
cmp byte [rsp + 0x4f], 0
jns 0x1402b205c
mov rcx, qword [rsp + 0x38]
call fcn.1401b9ce8
lea rcx, [rsp + 0x50]
call fcn.140224690
jmp 0x1402b1f91
Function at 0x1402b2070
Capabilities:
Delete directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rdi, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x1402b2098
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test eax, eax
jne 0x1402b20b2
mov ecx, 2
call fcn.140160660
test al, al
jne 0x1402b20d4
test esi, esi
setne bl
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1401bb0d0
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.140224610
lea rcx, [rsp + 0x68]
lea rdx, str.RemoveDirectory
mov r8d, 0x10
call fcn.1401f9cc0
mov rbx, rax
movzx eax, byte [rdi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rdi]
cmovns rax, rdi
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
cmovs rcx, qword [rdi + 8]
mov qword [rdx + 8], rcx
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.14016a3b0
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
jns 0x1402b215a
mov r8, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
jmp 0x1402b215e
and r8d, 0x7f
mov rcx, rbx
mov rdx, rdi
call fcn.1401f9cc0
cmp byte [rsp + 0x57], 0
jns 0x1402b217a
mov rcx, qword [rsp + 0x40]
call fcn.1401b9ce8
lea rcx, [rsp + 0x58]
call fcn.140224690
jmp 0x1402b20b2

Function at 0x1402ba3c0
Capabilities:
Enumerate processes

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rcx
lea rsi, [rcx + 0x18]
mov r8d, 0x238
mov rcx, rsi
xor edx, edx
call fcn.1401bd200
mov dword [rdi + 0x18], 0x238
cmp byte [rdi + 0x10], 0
je 0x1402ba402
mov rcx, qword [rdi + 8]
mov rdx, rsi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
mov byte [rdi + 0x10], 1
mov rcx, qword [rdi + 8]
mov rdx, rsi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x1402ba3f6
Function at 0x1402d4dd0
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
cmp dword [r8], 0
jle 0x1402d4deb
xor eax, eax
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
call fcn.1400f0810
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000080
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x1402d4e99
mov rbx, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r14, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
je 0x1402d4e99
mov qword [rsp + 0x20], 0
mov rcx, r14
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 8], rax
test rax, rax
je 0x1402d4ec4
mov qword [rdi + 0x28], r14
mov al, 1
jmp 0x1402d4de1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x8007000e
jne 0x1402d4ddf
mov dword [rsi], 7
jmp 0x1402d4ddf
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1402d4ddf

Function at 0x1402e6030
Capabilities:
Parse pe header

Disassembly:
cmp rdx, 0x40
jb 0x1402e607e
cmp byte [rcx], 0x4d
jne 0x1402e607e
cmp byte [rcx + 1], 0x5a
jne 0x1402e607e
mov r9d, dword [rcx + 0x3c]
mov r10, rdx
sub r10, r9
xor eax, eax
cmp r10, 0x18
jb 0x1402e6080
cmp r9, rdx
jae 0x1402e6080
cmp r9d, 0x40
jb 0x1402e6080
mov r10d, r9d
and r10d, 7
jne 0x1402e6080
cmp byte [rcx + r9], 0x50
jne 0x1402e607e
cmp byte [rcx + r9 + 1], 0x45
jne 0x1402e607e
cmp byte [rcx + r9 + 2], 0
je 0x1402e6081
xor eax, eax
ret
cmp byte [rcx + r9 + 3], 0
jne 0x1402e607e
add r9, 0x18
xor eax, eax
sub rdx, r9
jbe 0x1402e6080
cmp rdx, 2
jb 0x1402e6080
cmp word [rcx + r9], r8w
sete al
jmp 0x1402e6080
Function at 0x1402ec210
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, r8
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, 0xaaaaaaaa
lea rdi, [rsp + 0x44]
mov dword [rdi], eax
lea rbx, [rsp + 0x40]
mov dword [rbx], eax
lea rax, [rsp + 0x3c]
mov dword [rax], 4
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
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 0x1402ec26f
mov eax, dword [rsp + 0x40]
mov dword [rsi], eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401bb0d0
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret