joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400361c0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x1400362b5
cmp qword [rsi], 0
jne 0x1400362b5
cmp dword [rsi + 0x14], 0
jne 0x1400362b5
cmp qword [rsi + 8], 0
jne 0x1400362b5
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x140036234
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003629c
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14003622c
mov qword [rsi], r14
call fcn.1400e62c0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x14003626e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140036284
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140036266
mov qword [rsi + 8], r14
call fcn.1400e62c0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400e62c0
mov rcx, qword [rsi + 8]
call fcn.140161150
mov qword [rsi + 8], 0
jmp 0x140036253
call fcn.1400e62c0
mov rcx, qword [rsi]
call fcn.140161150
mov qword [rsi], 0
jmp 0x14003621a
mov rcx, rsi
call fcn.14020fd00
mov rax, qword [rsi]
jmp 0x1400361fa

Function at 0x1400366b0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rax, qword [0x140297028]
xor rax, rsp
mov qword [rsp + 0x48], rax
test rcx, rcx
je 0x140036789
mov rsi, rdx
mov rdi, rcx
lea rbx, [rsp + 0x40]
mov qword [rbx], 0
mov r15, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r15
mov r14, rax
call r15
xor ecx, ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x30], 2
mov rcx, rax
mov rdx, rdi
mov r8, r14
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
setne bl
je 0x14003678d
mov r14, qword [rsp + 0x40]
cmp qword [rsi], r14
je 0x140036758
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140036773
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140036750
mov qword [rsi], r14
call fcn.1400e62c0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401830b0
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400e62c0
mov rcx, qword [rsi]
call fcn.140161150
mov qword [rsi], 0
jmp 0x14003673e
mov bl, 1
jmp 0x140036758
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140036750
Function at 0x14003b850
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rdx]
mov qword [rdx], 0
lea r15, [r14 + 1]
cmp r15, 2
jb 0x14003b87a
call fcn.1400e62c0
cmp qword [rsi], r14
je 0x14003b8a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003b8ff
cmp r15, 2
jb 0x14003b8a1
mov qword [rsi], r14
call fcn.1400e62c0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14003b8ce
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400e62c0
mov rbx, qword [rdi]
cmp qword [0x1402accf8], 0
je 0x14003b918
mov rcx, qword [0x1402accf8]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rbx
call qword [case.0x1401e9be0.0]
mov qword [rdi], 0
jmp 0x14003b8bf
call fcn.1400e62c0
mov rcx, qword [rsi]
call fcn.140161150
mov qword [rsi], 0
jmp 0x14003b893
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetHandleVerifier
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003b959
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x14003b953
call qword [case.0x1401e9be0.0]
mov rcx, rax
xor edx, edx
call fcn.14003b960
jmp 0x14003b8e0
xor ecx, ecx
mov dl, 1
jmp 0x14003b94c
xor ecx, ecx
jmp 0x14003b94a

Function at 0x14003dd30
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, qword [rdx]
mov qword [rdx], 0
lea r14, [rbx + 1]
cmp r14, 2
jb 0x14003dd55
call fcn.1400e62c0
cmp qword [rsi], rbx
je 0x14003dd84
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003dd91
cmp r14, 2
jb 0x14003dd7c
mov qword [rsi], rbx
call fcn.1400e62c0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400e62c0
mov rcx, qword [rsi]
call fcn.140161150
mov qword [rsi], 0
jmp 0x14003dd6e

Function at 0x14003e610
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
xor eax, eax
mov qword [rcx], rax
mov rbx, qword [rdx]
mov qword [rdx], rax
lea r14, [rbx + 1]
cmp r14, 2
jb 0x14003e636
call fcn.1400e62c0
cmp qword [rsi], rbx
je 0x14003e665
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003e672
cmp r14, 2
jb 0x14003e65d
mov qword [rsi], rbx
call fcn.1400e62c0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400e62c0
mov rcx, qword [rsi]
call fcn.140161150
mov qword [rsi], 0
jmp 0x14003e64f
Function at 0x14003f430
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov rax, qword [0x140297028]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx]
inc rax
cmp rax, 1
ja 0x14003f5ca
mov rbx, r9
mov edi, r8d
mov ebp, edx
mov rsi, rcx
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov r14, rax
cmp qword [rsi], rax
je 0x14003f4b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003f5a7
mov rax, r14
inc rax
cmp rax, 2
jb 0x14003f4ab
mov qword [rsi], r14
call fcn.1400e62c0
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
lea rax, [r14 + 1]
cmp rax, 1
jbe 0x14003f5e4
xor r15d, r15d
lea rcx, [rsp + 0x30]
mov r8d, 0x90
xor edx, edx
call fcn.1401851f0
test ebp, ebp
jne 0x14003f586
mov eax, 0xff
mov r15d, 0x408
mov dword [rsp + 0x58], 1
mov ecx, r15d
mov dword [rsp + 0x2c], eax
mov r15d, eax
test rbx, rbx
je 0x14003f512
or ecx, 0x100
mov qword [rsp + 0xa0], rbx
or ecx, 0x2000
mov dword [rsp + 0x40], ecx
lea r8, [rsp + 0x30]
mov rcx, r14
mov edx, 9
mov r9d, 0x90
call qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
test eax, eax
je 0x14003f5c0
not edi
and r15d, edi
lea r8, [rsp + 0x2c]
mov dword [r8], r15d
mov rcx, qword [rsi]
mov edx, 4
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
xor esi, esi
test eax, eax
je 0x14003f5c0
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401830b0
mov eax, esi
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
cmp ebp, 1
jne 0x14003f59b
mov eax, 0xd8
mov r15d, 8
jmp 0x14003f4ed
cmp ebp, 3
jne 0x14003f5d1
xor ecx, ecx
jmp 0x14003f4ff
call fcn.1400e62c0
mov rcx, qword [rsi]
call fcn.140161150
mov qword [rsi], 0
jmp 0x14003f497
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14003f564
mov esi, 0x4df
jmp 0x14003f564
mov eax, 0xc8
cmp ebp, 2
je 0x14003f4f5
jmp 0x14003f51c
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401830b0
nop
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x1400408d0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rsi, rcx
mov rax, qword [0x140297028]
xor rax, rsp
mov qword [rsp + 0x80], rax
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400409b6
movaps xmm0, xmmword [0x140268c70]
lea rcx, [rsp + 0x30]
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx + 0x30], xmm0
movaps xmmword [rcx + 0x20], xmm0
mov dword [rcx + 0x40], 0xaaaaaaaa
mov word [rcx], 0x401
mov dword [rcx + 2], 0
mov word [rcx + 6], 0
movaps xmm0, xmmword [rsp + 0x20]
movups xmmword [rcx + 8], xmm0
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x1400409b4
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
test eax, eax
je 0x1400409ad
mov ebx, eax
mov rcx, rbx
call fcn.1401803a4
mov rdi, rax
lea r14, [rax + rbx]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov r8, rbx
call fcn.140184b40
mov qword [rsi], rdi
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r14
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401830b0
mov rax, rsi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
xor r14d, r14d
xor edi, edi
jmp 0x140040982
ud2
int3

Function at 0x140041bd0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov eax, r8d
mov rsi, rdx
mov rdx, qword [0x140297028]
xor rdx, rsp
mov qword [rsp + 0x38], rdx
mov rcx, qword [rcx]
movabs rdx, 0xaaaaaaaaaaaaaaaa
lea r8, [rsp + 0x30]
mov qword [r8], rdx
or r9d, 8
mov qword [rsp + 0x28], r8
mov dword [rsp + 0x20], 2
mov edx, r9d
xor r8d, r8d
mov r9d, eax
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x140041c9e
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x140041c9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140041c9a
call fcn.1400e62c0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi], 1
mov qword [rsi + 8], 0
test rbx, rbx
je 0x140041c82
cmp rbx, 0xffffffffffffffff
je 0x140041ca3
call fcn.1400e62c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov qword [rsi + 8], rbx
call fcn.1400e62c0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401830b0
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
xor ebx, ebx
jmp 0x140041c46
mov byte [rsi], 0
jmp 0x140041c82
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140041c7a
Function at 0x140048f80
Capabilities:
Read 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 [0x140297028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ebx, 0xffffffff
cmp r8, rbx
cmovb rbx, r8
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140049021
mov r15, qword [sym.imp.KERNEL32.dll_GetFileType]
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x140049010
cmp eax, 0xffffffff
je 0x14004905b
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401830b0
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
call r15
cmp eax, 3
je 0x140049035
mov eax, dword [rsp + 0x2c]
jmp 0x140048ff0
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x140048ff2
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r12
test eax, eax
jne 0x140048fe3
jmp 0x140049021
int3
Function at 0x140049bf0
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
movaps xmmword [rsp + 0x60], xmm6
mov rsi, rcx
mov rax, qword [0x140297028]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ebx, ebx
mov ecx, 0x65c2937b
xor eax, eax
lock cmpxchg dword [rsi], ecx
jne 0x140049d98
mov dword [0x1402aabc0], ebx
lea rbp, [0x1402aabc0]
movabs rax, 0x100000000
mov qword [0x1402aace0], rax
movaps xmm6, xmmword [0x140268c70]
lea rdi, [rsp + 0x20]
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
mov r14, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rcx, rdi
call r14
mov eax, dword [rdi + 4]
mov ecx, dword [rdi + 0x28]
cmp eax, ecx
cmova ecx, eax
mov qword [0x1402aace8], rcx
mov r15d, 0x20
mov qword [0x1402aacf0], r15
mov r12d, 0x40
mov qword [0x1402aacf8], r12
mov dword [0x1402aad00], ebx
mov qword [0x1402aabc8], rbx
lea rax, [0x1402aabc8]
mov r13, 0xffffffffb37cc16a
xor rax, r13
mov qword [0x1402aabd0], rax
mov qword [0x1402aabd8], rbp
mov dword [0x1402aabe8], ebx
lea rcx, [0x1402aabf0]
mov r8d, 0xf0
xor edx, edx
call fcn.1401851f0
mov dword [0x1402aad08], ebx
lea rbp, [0x1402aad08]
mov qword [0x1402aae28], rbx
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdi, [rsp + 0x20]
mov rcx, rdi
call r14
mov eax, dword [rdi + 4]
mov ecx, dword [rdi + 0x28]
cmp eax, ecx
cmova ecx, eax
mov qword [0x1402aae30], rcx
mov qword [0x1402aae38], r15
mov qword [0x1402aae40], r12
mov dword [0x1402aae48], ebx
mov qword [0x1402aad10], rbx
lea rax, [0x1402aad10]
xor rax, r13
mov qword [0x1402aad18], rax
mov qword [0x1402aad20], rbp
mov dword [0x1402aad30], ebx
lea rcx, [0x1402aad38]
mov r8d, 0xf0
xor edx, edx
call fcn.1401851f0
mov eax, 0xdd
xchg dword [rsi], eax
cmp eax, 0x5a308d2
je 0x140049db8
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401830b0
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r9d, edx
lea r8, [0x1402705d0]
mov rcx, rsi
mov edx, 3
call fcn.140012660
test eax, eax
jne 0x140049d75
jmp 0x140049c2a
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401830b0
mov rcx, rsi
mov dl, 1
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.140006910
Function at 0x1400532d0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
cmp dword [rcx + 0x10], 0
mov rcx, qword [rcx]
je 0x140053483
mov edx, 0x32
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsi]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
movabs rbx, 0xfffffffc00000000
mov rdi, qword [rsi + 0x30]
mov qword [rsi + 0x30], 0
test rdi, rdi
je 0x140053372
mov rcx, qword [rdi + 0x20]
mov rdx, rdi
call fcn.140053730
test al, al
je 0x140053342
lea rcx, [rdi + 8]
call fcn.1400534b0
mov rcx, qword [rdi]
test rcx, rcx
je 0x140053342
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rdi + 0x20]
mov rax, rcx
and rax, rbx
cmp rax, qword [0x1402a6e88]
je 0x14005345a
mov qword [rdi + 0x20], 0
lea rcx, [rdi + 8]
call fcn.1400534b0
mov rcx, rdi
call fcn.14018039c
mov rdx, qword [rsi + 0x48]
mov qword [rsi + 0x48], 0
test rdx, rdx
je 0x140053392
lea rcx, fcn.1400edfe0
xor r8d, r8d
call fcn.1400e9510
mov rcx, qword [rsi + 0x38]
and rbx, rcx
cmp rbx, qword [0x1402a6e88]
je 0x140053464
mov rdi, qword [rsi + 0x30]
xorps xmm0, xmm0
movups xmmword [rsi + 0x30], xmm0
test rdi, rdi
jne 0x14005346e
mov rax, qword [rsi + 0x28]
inc rax
cmp rax, 2
jb 0x1400533f8
call fcn.1400e62c0
mov rdi, qword [rsi + 0x28]
cmp qword [0x1402accf8], 0
je 0x140053419
mov rcx, qword [0x1402accf8]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rdi
call qword [case.0x1401e9be0.0]
mov qword [rsi + 0x28], 0
lea rcx, [rsi + 0x20]
call fcn.140041720
lea rcx, [rsi + 0x18]
call fcn.140041720
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14003e850
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetHandleVerifier
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400534a6
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x140053454
call qword [case.0x1401e9be0.0]
mov rcx, rax
xor edx, edx
call fcn.14003b960
jmp 0x1400533da
xor ecx, ecx
mov dl, 1
jmp 0x14005344d
call fcn.1400d83a0
jmp 0x140053359
call fcn.1400d83a0
jmp 0x1400533a6
mov rcx, rdi
call fcn.140075d50
mov rcx, rdi
call fcn.14018039c
jmp 0x1400533ba
test rcx, rcx
jne 0x1400532e7
cmp dword [rsi + 0x14], 0
je 0x140053499
xor ecx, ecx
jmp 0x1400532e7
cmp qword [rsi + 8], 0
je 0x140053300
jmp 0x140053492
xor ecx, ecx
jmp 0x14005344b
Function at 0x140053950
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor ecx, ecx
xor eax, eax
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x140053a72
mov r10d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov r9d, ecx
mov r11d, edx
mov esi, eax
cmp r10d, 7
jb 0x140053aa8
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr r10b, 4
and r10b, 1
mov dword [r8], esi
mov eax, esi
and eax, 0xf
mov dword [r8 + 8], eax
shr esi, 0xc
and esi, 3
mov dword [r8 + 4], esi
mov eax, r11d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r11d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r11d, 0x1a
and r11b, 1
mov byte [r8 + 0xe], r11b
mov eax, r9d
and al, 1
mov byte [r8 + 0xf], al
mov eax, r9d
shr eax, 9
and al, 1
mov byte [r8 + 0x10], al
mov eax, r9d
shr eax, 0x13
and al, 1
mov byte [r8 + 0x11], al
mov eax, r9d
shr eax, 0x14
and al, 1
mov byte [r8 + 0x12], al
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r8 + 0x13], al
mov eax, r9d
shr eax, 0x1f
mov byte [r8 + 0x1a], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x140053ab0
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov byte [r8 + 0x14], al
mov ecx, r9d
shr ecx, 0x19
and cl, 1
mov byte [r8 + 0x17], cl
shr r9d, 0xc
and r9b, 1
mov byte [r8 + 0x15], r9b
test al, al
setne al
test edi, edi
setne cl
and cl, al
mov byte [r8 + 0x16], cl
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x140053ab4
mov eax, 0x80000007
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x140053aba
pop rdi
pop rsi
ret
xor r10d, r10d
jmp 0x1400539ac
xor eax, eax
jmp 0x140053a41
mov dl, byte [r8 + 0x19]
jmp 0x140053aa1
cmp byte [r8 + 0x1a], 0
je 0x140053aa5
mov eax, 0x40000000
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x140053aa5
cmp ecx, 0x666f736f
jne 0x140053aa5
cmp edx, 0x76482074
jne 0x140053aa5
mov byte [r8 + 0x19], 1
jmp 0x140053aa5
Function at 0x140056130
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x140297028]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1401851f0
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1400561d8
cmp word [rsp + 0x70], 0
je 0x1400561d8
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.140180ff4
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.140109400
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1401830b0
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
mov rax, qword [rsp + 0x50]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
jmp 0x1400561a7
xorps xmm0, xmm0
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
mov qword [rcx + 0x10], 0
call fcn.140058cf0
test al, al
jne 0x1400561c5
lea rax, [0x140276b80]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.140109400
cmp byte [rsp + 0x57], 0
jns 0x1400561a7
mov rcx, qword [rsp + 0x40]
call fcn.14018039c
jmp 0x1400561a7

Function at 0x140056fd0
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x140297028]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x140056ff7
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140057031
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140057050
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1401830b0
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.140057120
mov sil, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1401830b0
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret
cmp dword [0x1402acb48], 2
jg 0x14005710e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x266
mov r9d, 2
call fcn.1401ed840
lea rcx, [rsp + 0x60]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.1401bd290
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.140145eb0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1400570de
and r8d, 0x7f
jmp 0x1400570e8
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.1401bd290
cmp byte [rsp + 0x4f], 0
jns 0x140057104
mov rcx, qword [rsp + 0x38]
call fcn.14018039c
lea rcx, [rsp + 0x50]
call fcn.1401ed8c0
xor esi, esi
jmp 0x140057034
Function at 0x140057120
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x1a8
mov rsi, rcx
mov rax, qword [0x140297028]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
cmp byte [rcx + 0x17], 0
jns 0x140057147
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140057179
mov dil, 1
test al, 0x10
je 0x14005723e
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1401830b0
mov eax, edi
add rsp, 0x1a8
pop rdi
pop rsi
ret
cmp dword [0x1402acb48], 2
jg 0x140057237
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x251
mov r9d, 2
call fcn.1401ed840
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1401bd290
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 + 0x38]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.140145eb0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x140057207
and r8d, 0x7f
jmp 0x140057211
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call fcn.1401bd290
cmp byte [rsp + 0x5f], 0
jns 0x14005722d
mov rcx, qword [rsp + 0x48]
call fcn.14018039c
lea rcx, [rsp + 0x60]
call fcn.1401ed8c0
xor edi, edi
jmp 0x14005715d
cmp dword [0x1402acb48], 2
jg 0x140057237
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x255
mov r9d, 2
call fcn.140004b00
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1401bd290
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 + 0x48]
mov rcx, rsi
call fcn.140145eb0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1400572be
and r8d, 0x7f
jmp 0x1400572c8
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call fcn.1401bd290
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.1401bd290
cmp byte [rsp + 0x5f], 0
jns 0x1400572f9
mov rcx, qword [rsp + 0x48]
call fcn.14018039c
lea rcx, [rsp + 0x60]
call fcn.140004bf0
jmp 0x140057237