joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002c4ff
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
lea rdi, [rsp + 0x68]
mov qword [rdi], rdx
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r9
mov rax, qword [0x1400c95d8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
call fcn.140002b58
mov rcx, qword [rax]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdi, [0x1400ccc50]
mov r8d, 0x400
mov rdx, rdi
mov r9, rsi
call fcn.14007d864
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140079940
nop
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x14002d27a
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov r14, rcx
mov rax, qword [0x1400c95d8]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov word [rdi], 0
xor ebx, ebx
lea r15, str.PROGRAMFILES
mov rsi, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r15]
mov word [rsp + 0x20], 0
mov rdx, rdi
mov r8d, 0x104
call rsi
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14002d2e9
mov edx, eax
mov rcx, rdi
mov r8, r14
call fcn.14002d207
test al, al
jne 0x14002d2f7
add rbx, 8
cmp rbx, 0x18
jne 0x14002d2b7
xor esi, esi
jmp 0x14002d2fa
mov sil, 1
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.140079940
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14002d956
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov r13, rdx
mov r14, rcx
mov rax, qword [0x1400c95d8]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdx, qword [0x1400cd450]
test rdx, rdx
jne 0x14002da68
mov ecx, 0x18
call fcn.14007957c
mov rbx, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
xor esi, esi
mov qword [rax + 0x10], rsi
mov qword [0x1400cd450], rax
mov ecx, 0x18
call fcn.14007957c
mov rdi, rax
movups xmmword [rax], xmm6
mov qword [rax + 0x10], rsi
mov qword [0x1400cd458], rax
call fcn.14002b3f0
mov rax, qword [rax + 8]
mov r15, qword [rax + 0x10]
lea rdx, str.user_data_dir
lea r12, [rsp + 0x38]
mov rcx, r12
call fcn.140019bf0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov rdx, rax
call fcn.140019bf0
lea rbp, [rsp + 0x50]
mov rcx, rbp
mov rdx, rsi
mov r8, r12
call fcn.14002b84d
mov rcx, rbp
mov rdx, r15
mov r8, rbx
mov r9, rdi
call fcn.14002d4dc
mov ebx, eax
cmp byte [rbp + 0x17], 0
jns 0x14002da3b
mov rcx, qword [rsp + 0x50]
call fcn.1400795d8
cmp byte [rsp + 0x37], 0
jns 0x14002da4c
mov rcx, qword [rsp + 0x20]
call fcn.1400795d8
cmp byte [rsp + 0x4f], 0
jns 0x14002da5d
mov rcx, qword [rsp + 0x38]
call fcn.1400795d8
test bl, bl
je 0x14002da89
mov rdx, qword [0x1400cd450]
mov rcx, r14
call fcn.14001ce6e
mov dil, 1
test r13, r13
je 0x14002da8b
mov rdx, qword [0x1400cd458]
mov rcx, r13
call fcn.14001ce6e
jmp 0x14002da8b
xor edi, edi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140079940
mov eax, edi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14002f760
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rsi, rcx
mov rax, qword [0x1400c95d8]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [0x1400cd4b0]
test rax, rax
jne 0x14002f7a4
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call rdi
mov rax, qword [0x1400cd4b0]
test rax, rax
je 0x14002f791
cmp eax, 2
jne 0x14002f7f2
mov ecx, 2
call fcn.140031ce0
test al, al
je 0x14002f88a
lea rdx, str..._.._third_party_crashpad_crashpad_client_crashpad_client_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0x83
mov r9d, 2
call fcn.140031d90
lea rcx, [rsp + 0x30]
lea rdx, str.crash_server_failed_to_launch__self_terminating
mov r8d, 0x2f
jmp 0x14002f87d
mov eax, 1
lock xadd qword [0x1400cd4e8], rax
test rax, rax
jle 0x14002f812
mov ecx, 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SleepEx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x1400cd468], eax
mov qword [0x1400cd460], rsi
mov rcx, qword [0x1400c95a8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0xea60
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 2
call fcn.140031ce0
test al, al
je 0x14002f88a
lea rdx, str..._.._third_party_crashpad_crashpad_client_crashpad_client_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0xaf
mov r9d, 2
call fcn.140031d90
lea rcx, [rsp + 0x30]
lea rdx, str.crash_server_did_not_respond__self_terminating
mov r8d, 0x2e
call fcn.140028a70
mov rcx, rsi
call fcn.1400321f0
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.140079940
xor eax, eax
add rsp, 0x168
pop rdi
pop rsi
ret
Function at 0x140031a20
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
mov rax, qword [0x1400c95d8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14b, 1
cmp qword [0x1400cd5b8], 0
jne 0x140031caf
mov rdi, qword [0x1400cd598]
test rdi, rdi
je 0x140031b1f
test byte [0x1400c95e8], 1
je 0x140031caf
cmp byte [rdi + 0x17], 0
jns 0x140031a78
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 [0x1400cd5b8], rax
add rax, 1
cmp rax, 1
ja 0x140031caf
mov word [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140031cac
cmp eax, 0x104
ja 0x140031cac
mov rcx, qword [0x1400cd598]
lea rdx, [rsp + 0x40]
call fcn.14001d5c0
mov rcx, qword [0x1400cd598]
movzx eax, byte [rcx + 0x17]
test al, al
js 0x140031c25
mov rdx, rcx
cmp word [rdx + rax*2 - 2], 0x5c
jne 0x140031c34
jmp 0x140031c47
movabs rbp, 0x7fffffffffffffef
mov ecx, 0x18
call fcn.14007957c
mov rdi, rax
lea rsi, [rsp + 0x40]
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
mov rcx, rsi
call fcn.140090808
cmp rax, rbp
ja 0x140031cd2
mov rbx, rax
cmp rax, 0xb
jae 0x140031b81
mov byte [rdi + 0x17], bl
mov r15, rdi
test rbx, rbx
jne 0x140031bad
jmp 0x140031bc0
lea rsi, [rbx + 8]
and rsi, 0xfffffffffffffff8
js 0x140031cda
lea rcx, [rsi + rsi]
call fcn.14007957c
mov r15, rax
mov qword [rdi], rax
add rbp, 0x11
or rbp, rsi
mov qword [rdi + 0x10], rbp
mov qword [rdi + 8], rbx
mov r8, rbx
add r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.14007c250
mov word [r15 + rbx*2], 0
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
jns 0x140031bd5
mov r8, qword [rdi + 8]
mov rcx, rdi
mov dx, 0x5c
call fcn.14001d9d8
cmp rax, 0xffffffffffffffff
je 0x140031bfd
add rax, 1
mov rcx, rdi
mov rdx, rax
mov r8, 0xffffffffffffffff
call fcn.14001d720
lea rdx, [0x1400a6e00]
mov rcx, rdi
call fcn.14001d3f0
mov qword [0x1400cd598], rdi
test byte [0x1400c95e8], 1
jne 0x140031a6f
jmp 0x140031caf
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x140031c47
lea rdx, [0x1400a64f8]
call fcn.14001d3f0
mov rcx, qword [0x1400cd598]
lea rdx, [0x1400a6e00]
call fcn.14001d3f0
mov rcx, qword [0x1400cd598]
cmp byte [rcx + 0x17], 0
jns 0x140031c63
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 [0x1400cd5b8], rax
add rax, 1
cmp rax, 1
ja 0x140031caf
mov qword [0x1400cd5b8], 0
xor r14d, r14d
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140079940
mov eax, r14d
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rdi
call fcn.14001c23c
call fcn.140089ad8
int3
Function at 0x14003d440
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
mov rax, qword [0x1400c95d8]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsd xmm6, qword [0x1400cd688]
xorpd xmm0, xmm0
ucomisd xmm6, xmm0
jne 0x14003d5af
jp 0x14003d5af
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ebp, eax
call rdi
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x1400cd698]
mov ecx, dword [0x1400cd538]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003d5ce
mov eax, dword [0x1400cd6a8]
mov ecx, dword [0x1400cd538]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003d608
rdtsc
mov rdi, rax
mov rbx, rdx
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rsi, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub rsi, qword [0x1400cd6a0]
movq xmm1, rsi
punpckldq xmm1, xmmword [0x1400a5820]
subpd xmm1, xmmword [0x1400a5830]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rsp + 0x20]
divsd xmm0, xmm1
xorpd xmm6, xmm6
movsd xmm1, qword [0x1400a7468]
ucomisd xmm1, xmm0
ja 0x14003d5af
shl rbx, 0x20
or rdi, rbx
sub rdi, qword [0x1400cd690]
movq xmm1, rdi
punpckldq xmm1, xmmword [0x1400a5820]
subpd xmm1, xmmword [0x1400a5830]
movapd xmm6, xmm1
unpckhpd xmm6, xmm1
addsd xmm6, xmm1
divsd xmm6, xmm0
movsd qword [0x1400cd688], xmm6
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140079940
movapd xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x1400cd698]
call fcn.1400796f0
cmp dword [0x1400cd698], 0xffffffff
jne 0x14003d4c1
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x1400cd690], rdx
lea rcx, [0x1400cd698]
call fcn.140079788
jmp 0x14003d4c1
lea rcx, [0x1400cd6a8]
call fcn.1400796f0
cmp dword [0x1400cd6a8], 0xffffffff
jne 0x14003d4e6
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
mov qword [0x1400cd6a0], rax
lea rcx, [0x1400cd6a8]
call fcn.140079788
jmp 0x14003d4e6
Function at 0x14003df20
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov ebp, r9d
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1400c95d8]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rdx, str.Write
lea r8, str..._.._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x72
call fcn.14003d7b0
lea rcx, [rsp + 0x68]
xor esi, esi
mov rdx, r15
xor r8d, r8d
call fcn.14003da30
lea rcx, [rsp + 0x30]
call fcn.140030280
call fcn.140050d50
test al, al
je 0x14003dfaa
movsxd r9, ebp
lea rdx, str.File::Write
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140050df0
mov rax, rdi
shr rax, 0x20
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x54], eax
mov rcx, qword [rbx]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x2c]
mov rdx, r14
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sbb esi, esi
or esi, dword [rsp + 0x2c]
lea rcx, [rsp + 0x30]
call fcn.140050dc0
lea rcx, [rsp + 0x68]
call fcn.14003db60
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140079940
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140042570
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1400c95d8]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rcx]
movaps xmmword [rsp + 0x40], xmm0
lea rbx, [rsp + 0x50]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140026b30
cmp byte [rsp + 0x67], 0
jns 0x1400425b5
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebp, eax
cmp byte [rsp + 0x67], 0
js 0x14004265e
test ebp, ebp
je 0x140042670
mov r14b, 1
test rsi, rsi
je 0x1400426d7
mov ecx, ebp
add rcx, rcx
call fcn.14007960c
mov rbx, rax
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0x30], xmm0
lea rdi, [rsp + 0x50]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140026b30
cmp byte [rsp + 0x67], 0
jns 0x140042617
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
mov rdx, rbx
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [rsp + 0x67], 0
jns 0x140042637
mov rcx, qword [rsp + 0x50]
call fcn.1400795d8
mov qword [rsp + 0x20], rbx
cmp word [rbx], 0
je 0x140042675
xor eax, eax
nop word cs:[rax + rax]
nop
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140042650
jmp 0x140042677
mov rcx, qword [rsp + 0x50]
call fcn.1400795d8
test ebp, ebp
jne 0x1400425d8
xor r14d, r14d
jmp 0x1400426d7
xor eax, eax
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x20]
call fcn.1400270a0
cmp byte [rsi + 0x17], 0
js 0x14004269a
mov byte [rsi], 0
mov byte [rsi + 0x17], 0
jmp 0x1400426be
mov rax, qword [rsi]
mov byte [rax], 0
mov qword [rsi + 8], 0
cmp byte [rsi + 0x17], 0
jns 0x1400426be
mov rcx, qword [rsi]
call fcn.1400795d8
mov qword [rsi + 0x10], 0
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.140079614
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140079940
mov eax, r14d
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140042978
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x1400c95d8]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x14004299f
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x140042a9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400429e0
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140079940
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.140042ab6
mov ecx, 2
call fcn.140031ce0
test al, al
je 0x140042a98
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x244
mov r9d, 2
call fcn.140032a30
lea rcx, [rsp + 0x60]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.140028a70
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.140027070
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140042a71
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.140028a70
xor eax, eax
cmp byte [rsp + 0x4f], al
jns 0x140042a8e
mov rcx, qword [rsp + 0x38]
call fcn.1400795d8
lea rcx, [rsp + 0x50]
call fcn.140032b00
xor edi, edi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140079940
mov eax, edi
add rsp, 0x198
pop rdi
pop rsi
ret
Function at 0x140042ab6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x1a8
mov rsi, rcx
mov rax, qword [0x1400c95d8]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
cmp byte [rcx + 0x17], 0
jns 0x140042add
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140042bc0
mov dil, 1
test al, 0x10
jne 0x140042c7a
mov ecx, 2
call fcn.140031ce0
test al, al
je 0x140042c78
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x232
mov r9d, 2
call fcn.140031d90
lea rcx, [rsp + 0x68]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.140028a70
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 + 0x48]
mov rcx, rsi
call fcn.140027070
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140042b7f
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call fcn.140028a70
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.140028a70
xor eax, eax
cmp byte [rsp + 0x5f], al
jns 0x140042bb1
mov rcx, qword [rsp + 0x48]
call fcn.1400795d8
lea rcx, [rsp + 0x60]
call fcn.1400321f0
jmp 0x140042c78
mov ecx, 2
call fcn.140031ce0
test al, al
je 0x140042c78
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x22e
mov r9d, 2
call fcn.140032a30
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.140028a70
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x38]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.140027070
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140042c51
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call fcn.140028a70
xor eax, eax
cmp byte [rsp + 0x5f], al
jns 0x140042c6e
mov rcx, qword [rsp + 0x48]
call fcn.1400795d8
lea rcx, [rsp + 0x60]
call fcn.140032b00
xor edi, edi
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140079940
mov eax, edi
add rsp, 0x1a8
pop rdi
pop rsi
ret
Function at 0x140045050
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
mov eax, dword [rcx + 0x68]
cmp eax, edx
jne 0x140045067
cmp byte [rcx + 0x27], 0
jns 0x140045076
mov rcx, qword [rcx + 0x10]
jmp 0x14004507a
xor ecx, ecx
cmp eax, 1
sete cl
lea eax, [rcx + rcx*2]
inc eax
jmp 0x140045093
add rcx, 0x10
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
cmp eax, 0xffffffff
mov eax, 1
cmovne eax, ecx
add rsp, 0x28
ret
Function at 0x1400462a1
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r12, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x1400c95d8]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x1400462d5
mov rax, qword [r12 + 8]
test rax, rax
je 0x140046304
bt ebx, 8
jae 0x1400462e9
mov eax, ebx
and eax, 0x200
jne 0x140046304
cmp edi, 2
lea rax, [0x1400cd9c0]
lea rcx, [0x1400cdbc0]
cmove rcx, rax
cmp word [rcx], 0
je 0x140046323
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140079940
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xorps xmm0, xmm0
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rsi], 0
je 0x140046304
cmp byte [0x1400cd9b0], 0
setne al
bt ebx, 8
jb 0x140046304
shr ebx, 9
and ebx, 1
or bl, al
je 0x140046304
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea rsi, str.SOFTWARE
cmove rsi, rax
movzx ebp, byte [r12 + 0x17]
test bpl, bpl
js 0x140046384
mov rdi, r12
jmp 0x14004638d
mov rdi, qword [r12]
mov rbp, qword [r12 + 8]
mov r14d, 1
xor r15d, r15d
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov rbx, qword [rsi + 8]
mov r13, rbp
sub r13, rbx
jb 0x1400463ca
mov rdx, qword [rsi]
mov rcx, rdi
mov r8, rbx
call fcn.14008bec8
test eax, eax
je 0x1400463d8
add rsi, 0x28
inc r15
cmp r15, r14
jb 0x1400463ac
jmp 0x14004644a
movzx edx, word [rdi + rbx*2]
cmp dx, 0x5c
je 0x1400463e7
test dx, dx
jne 0x1400463ca
lea rax, [rdi + rbx*2]
mov ebp, dword [rsi + 0x10]
lea rcx, str.WOW6432Node_
cmp ebp, 1
je 0x140046415
cmp ebp, 2
jne 0x14004640b
mov rdi, rax
lea rcx, str.WOW6432Node
jmp 0x140046415
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
cmp dx, 0x5c
mov dword [rsp + 0x2c], ebp
jne 0x14004642d
dec r13
cmp word [rax + 2], 0x5c
lea rax, [rax + 2]
je 0x14004641f
mov r14, qword [rsi + 0x20]
mov rsi, qword [rsi + 0x18]
mov rbp, r13
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rcx
xor r15d, r15d
mov rdi, rax
jmp 0x1400463d1
cmp dword [rsp + 0x2c], 0
je 0x140046304
cmp byte [r12 + 0x17], 0
js 0x140046462
mov rax, r12
jmp 0x140046466
mov rax, qword [r12]
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, r12
mov r8, qword [rsp + 0x38]
call fcn.14001d6f0
jmp 0x140046304
Function at 0x140047c08
Capabilities:
Check os version
Create pipe

Disassembly:
push rsi
push rbx
sub rsp, 0x68
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x1400c95d8]
xor rax, rsp
mov qword [rsp + 0x60], rax
test dl, dl
je 0x140047c5c
call qword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xfe
cmp eax, 6
jb 0x140047c5c
xorps xmm0, xmm0
lea rax, [rsp + 0x40]
movaps xmmword [rax], xmm0
mov qword [rax + 0x10], 1
mov dword [rax], 0x18
lea rcx, [0x1400aa400]
mov qword [rax + 8], rcx
jmp 0x140047c5e
xor eax, eax
movzx edx, bl
shl edx, 0x13
or edx, 3
cmp byte [rsi + 0x17], 0
jns 0x140047c70
mov rsi, qword [rsi]
mov qword [rsp + 0x38], rax
mov eax, 0x200
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x30], 0
mov rcx, rsi
mov r8d, 6
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140079940
mov rax, rsi
add rsp, 0x68
pop rbx
pop rsi
ret

Function at 0x140047cbc
Capabilities:
Check os version

Disassembly:
push rsi
sub rsp, 0x170
mov rsi, rcx
mov rax, qword [0x1400c95d8]
xor rax, rsp
mov qword [rsp + 0x168], rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
and ecx, 0xfe
cmp ecx, 6
jb 0x140047d95
and eax, 0xfeff
cmp eax, 6
je 0x140047d95
mov eax, dword [0x1400cdfd8]
mov ecx, dword [0x1400cd538]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140047dbc
mov rcx, rsi
xor edx, edx
mov r8d, 0x10000000
call qword [0x1400cdfd0]
mov sil, 1
test eax, eax
jne 0x140047da1
mov ecx, 2
call fcn.140031ce0
test al, al
je 0x140047d91
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_win_critical_section_with_debug_info.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0x21
mov r9d, 2
call fcn.140032a30
lea rcx, [rsp + 0x38]
lea rdx, [0x1400aa49f]
mov r8d, 0x1b
call fcn.140028a70
mov rcx, rsi
call fcn.140032b00
xor esi, esi
jmp 0x140047da1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov sil, 1
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.140079940
mov eax, esi
add rsp, 0x170
pop rsi
ret
lea rcx, [0x1400cdfd8]
call fcn.1400796f0
cmp dword [0x1400cdfd8], 0xffffffff
jne 0x140047d23
lea rcx, [0x1400a6930]
lea rdx, str.::InitializeCriticalSectionEx
mov r8b, 1
call fcn.140048018
mov qword [0x1400cdfd0], rax
lea rcx, [0x1400cdfd8]
call fcn.140079788
jmp 0x140047d23