joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401153b0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 3
call fcn.1400fe060
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x14011553c
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, [0x1403e50c8]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14011558d
lea rdx, [0x1403e5118]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401155a0
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [case.0x1402ceef0.0]
mov r14, rax
movsxd r12, dword [rsp + 0x4c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x40], 0
test r12, r12
je 0x1401155a8
shl r12, 3
movabs rax, 0x5555555555555551
cmp r12, rax
jae 0x1401155b2
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.140252388
mov rbx, rax
mov qword [rsp + 0x30], rax
add rax, r15
mov qword [rsp + 0x40], rax
xor r13d, r13d
mov r15, rbx
test r15, r15
je 0x140115561
mov rdx, qword [r14 + r13]
mov rcx, r15
call fcn.140293e60
add r15, 0x18
add r13, 8
cmp r12, r13
jne 0x1401154bc
mov qword [rsp + 0x38], r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140114ec0
movups xmmword [rsi], xmm6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14011550a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x14011553c
cmp r15, rbx
je 0x140115534
lea rsi, [r15 - 0x18]
cmp byte [r15 - 1], 0
js 0x140115529
mov r15, rsi
cmp rsi, rbx
jne 0x140115514
jmp 0x140115534
mov rcx, qword [r15 - 0x18]
call fcn.1402523c4
jmp 0x14011551f
mov rcx, rbx
call fcn.1402523c4
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140253b80
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1402984b0
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x140115461
xor r14d, r14d
jmp 0x140115464
xor r15d, r15d
xor ebx, ebx
jmp 0x1401154e3
lea rcx, [rsp + 0x30]
call fcn.140293fe0
int3
Function at 0x14011e670
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x14011e889
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x14044c2f0], rax
jne 0x14011e88c
mov rsi, rcx
mov r14d, dword [rcx + 0xc]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
mov dl, byte [rcx + 2]
mov rcx, r14
call fcn.140206c50
movzx eax, ax
lea r12, [rax + rax*4]
lea r15, [rsi + r12*8]
add r15, 0x48
lea rbx, [rsi + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14011e84b
mov rax, qword [r15]
mov rdi, qword [rax]
test rdi, rdi
je 0x14011e7e4
mov byte [rsp + 0x3f], 0
mov rcx, qword [rdi]
test rcx, rcx
je 0x14011e7dd
lea rdx, [rsi + 0x48]
bswap rcx
mov r14d, dword [rdx + r12*8 + 0x18]
mov rdx, rcx
xor rdx, rdi
cmp rdx, 0x1fffff
ja 0x14011e858
mov edx, ecx
and edx, 0x1fc000
je 0x14011e858
prefetcht0 byte [rcx]
mov qword [rax], rcx
mov ecx, dword [rax + 0x18]
lea edx, [rcx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [rax + 0x18], ecx
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
add rax, qword [rsi + 0x1498]
mov qword [rsi + 0x1498], rax
mov rcx, qword [rsi + 0x14a0]
cmp rcx, rax
cmova rax, rcx
mov qword [rsi + 0x14a0], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rdi
mov rdx, rsi
call fcn.14020cce0
mov ecx, dword [0x14045fff4]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x14045a84c]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x178], rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140253b80
mov rax, rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ecx, ecx
jmp 0x14011e73e
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, r15
mov rdx, rsi
mov r8d, 2
mov r9, r14
call fcn.140222000
test rax, rax
je 0x14011e88f
mov rdi, rax
mov rcx, rax
and rcx, 0xffffffffffe00000
mov rdx, rax
shr rdx, 9
and edx, 0xfe0
lea rax, [rdx + rcx]
movzx ecx, byte [rdx + rcx + 0x101e]
and ecx, 0x3f
shl rcx, 5
sub rax, rcx
add rax, 0x1000
jmp 0x14011e758
mov rcx, rbx
call fcn.14020d940
jmp 0x14011e6ee
movaps xmm0, xmmword [0x1403d47c0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
mov r8, qword [rdi]
lea rdx, str.first
mov rcx, rsi
call fcn.1402d6a90
mov rcx, rsi
call fcn.1400aa190
mov rcx, r14
call fcn.1402d6b00
int3
int3
xor edi, edi
jmp 0x14011e782
Function at 0x14011fc70
Capabilities:
Get session user name

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x240
mov rsi, rcx
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x238], rax
lea rdi, [rsp + 0x30]
mov r8d, 0x200
mov rcx, rdi
mov dl, 0xaa
call fcn.140255cd0
lea rbx, [rsp + 0x2c]
mov dword [rbx], 0x100
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
setne al
mov edx, dword [rbx]
test rdx, rdx
setne bl
and bl, al
je 0x14011fd77
movzx eax, byte [rsi + 0x17]
test al, al
js 0x14011fd34
cmp edx, 0xb
jb 0x14011fcf0
cmp rax, rdx
cmova rdx, rax
or rdx, 7
mov rcx, rsi
call fcn.1400e4fb0
mov edx, 1
mov rcx, rsi
mov r8w, 0x2e
call fcn.1400e56d0
mov r8d, dword [rsp + 0x2c]
dec r8d
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400e51d0
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.140253b80
mov eax, ebx
add rsp, 0x240
pop rbx
pop rdi
pop rsi
ret
movabs rax, 0x7fffffffffffffff
and rax, qword [rsi + 0x10]
dec rax
cmp rax, rdx
jae 0x14011fcf0
mov rcx, qword [rsi + 8]
cmp rcx, rdx
cmova rdx, rcx
mov rcx, rdx
or rcx, 7
cmp rdx, 0xb
mov edx, 0xa
cmovae rdx, rcx
cmp rdx, rax
jne 0x14011fce8
jmp 0x14011fcf0
call fcn.1402d99c0
jmp 0x14011fd17
Function at 0x140125e90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r8d, edx
mov rsi, rcx
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp edx, 0x921
jg 0x140125ed3
cmp r8d, 0x692
je 0x140125eee
cmp r8d, 0x7da
jne 0x140125f13
lea rdi, [0x1403e6170]
jmp 0x140125efe
cmp r8d, 0x922
je 0x140125ef7
cmp r8d, 0xdf0
jne 0x140125f13
lea rdi, [0x1403e6190]
jmp 0x140125efe
lea rdi, [0x1403e6160]
jmp 0x140125efe
lea rdi, [0x1403e6180]
call fcn.1401195d0
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x10]
movsxd rax, dword [rax + 8]
mov r8d, dword [rdi + rax*4]
mov rcx, qword [0x1404601a0]
test rcx, rcx
je 0x140125f4b
mov rax, qword [rcx]
mov rax, qword [rax + 8]
mov rdx, rsi
call qword [case.0x1402ceef0.0]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140253b80
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
movsxd r15, r8d
call fcn.1402df270
add r15, qword [rax + 0x30]
mov rax, r15
shr rax, 0x20
jne 0x14012605c
mov rbx, qword [0x14045a898]
mov eax, r15d
shr eax, 4
inc eax
movzx edx, ax
mov r8d, 6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140126052
mov r14, rax
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140126052
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x140126052
mov rdi, rax
mov rcx, rbx
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
setne cl
and r15d, 0xf
je 0x14012600b
test eax, eax
je 0x14012600b
mov ecx, eax
mov rax, rdi
add rax, rcx
dec r15d
movzx ecx, word [rdi]
lea rdi, [rdi + rcx*2]
add rdi, 2
cmp rdi, rax
setb cl
add r15d, 0xffffffff
jae 0x14012600b
cmp rdi, rax
jb 0x140125fef
test cl, cl
je 0x140126052
movzx r8d, word [rdi]
test r8, r8
je 0x140126052
test rdi, rdi
je 0x140126052
add rdi, 2
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.1400be5a0
cmp byte [rsi + 0x17], 0
jns 0x14012603c
mov rcx, qword [rsi]
call fcn.1402523c4
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
jmp 0x140125f2f
call fcn.1402d99c0
jmp 0x140125f2f
int3
Function at 0x14012c660
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
test rdx, rdx
jne 0x14012c67a
test r8d, r8d
jne 0x14012c673
call fcn.140173a80
xor eax, eax
add rsp, 0x28
ret
mov r8d, r8d
add rsp, 0x28
jmp fcn.14012be10
Function at 0x14012ea60
Capabilities:
Initialize winhttp library

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x158
mov rsi, rcx
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x150], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rcx + 0x10], rax
mov dword [rsp + 0x20], 0x10000000
mov rcx, rdx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rdi, rax
lea rax, str.pB_
mov qword [rsi], rax
mov qword [rsi + 8], rdi
mov byte [rsi + 0x10], 0
test rdi, rdi
je 0x14012ebd8
lea rbx, [rsp + 0x40]
mov r8d, 0x110
mov rcx, rbx
xor edx, edx
call fcn.140255cd0
mov dword [rbx - 0xc], 0x11c
mov r14, qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call r14
mov rcx, rax
mov edx, 1
mov r8b, 3
call r14
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call r14
movabs rcx, 0x100000006
mov qword [rbx - 8], rcx
mov word [rbx + 0x108], 0
lea rcx, [rsp + 0x34]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x14012ebd8
lea rbx, [rsp + 0x40]
mov r8d, 0x110
mov rcx, rbx
xor edx, edx
call fcn.140255cd0
mov dword [rbx - 0xc], 0x11c
xor ecx, ecx
mov edx, 2
mov r8b, 3
call r14
mov rcx, rax
mov edx, 1
mov r8b, 3
call r14
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call r14
movabs rcx, 0x300000006
mov qword [rbx - 8], rcx
mov word [rbx + 0x108], 0
lea rcx, [rsp + 0x34]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
jne 0x14012ebd8
lea r8, [rsp + 0x34]
mov dword [r8], 0xa80
mov rcx, rdi
mov edx, 0x54
mov r9d, 4
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140253b80
mov rax, rsi
add rsp, 0x158
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1401421e0
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 0x1401422ce
cmp qword [rsi], 0
jne 0x1401422ce
cmp dword [rsi + 0x14], 0
jne 0x1401422ce
cmp qword [rsi + 8], 0
jne 0x1401422ce
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x140142250
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1401422a0
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140142248
mov qword [rsi], r14
call fcn.140206ee0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x14014228a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x1401422b6
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140142282
mov qword [rsi + 8], r14
call fcn.140206ee0
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.140206ee0
mov rcx, qword [rsi]
call fcn.1401f3750
mov qword [rsi], 0
jmp 0x140142236
call fcn.140206ee0
mov rcx, qword [rsi + 8]
call fcn.1401f3750
mov qword [rsi + 8], 0
jmp 0x14014226f
mov rcx, rsi
call fcn.140318fc0
mov rax, qword [rsi]
jmp 0x14014221a
Function at 0x140146170
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea r9, [rsp + 0x60]
mov qword [r9], 0
lea rcx, [0x1403a07e8]
xor edx, edx
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x140146237
mov rdx, qword [rsp + 0x60]
lea rdi, [rsp + 0x20]
mov rcx, rdi
call fcn.140293e60
movzx eax, byte [rdi + 0x17]
test al, al
mov rcx, qword [rdi]
cmovns rcx, rdi
lea rdx, [rsp + 0x38]
mov qword [rdx], rcx
cmovs rax, qword [rdi + 8]
mov qword [rdx + 8], rax
lea rbx, [rsp + 0x48]
mov rcx, rbx
call fcn.1402077c0
mov rcx, rsi
mov rdx, rbx
call fcn.140207960
mov rcx, rbx
call fcn.140207950
cmp byte [rdi + 0x17], 0
jns 0x14014620e
mov rcx, qword [rsp + 0x20]
call fcn.1402523c4
mov bl, 1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140146220
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140253b80
mov eax, ebx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
call fcn.14031b150
mov ebx, eax
jmp 0x140146210

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

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x140146327
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140146361
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140146380
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140253b80
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.140146440
mov sil, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140253b80
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140206de0
test al, al
jne 0x140146392
xor esi, esi
jmp 0x140146364
call sub.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.1402d7130
lea rcx, [rsp + 0x60]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.140294040
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.1401fd710
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140146411
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.140294040
cmp byte [rsp + 0x4f], 0
jns 0x14014642d
mov rcx, qword [rsp + 0x38]
call fcn.1402523c4
lea rcx, [rsp + 0x50]
call fcn.1402d71b0
jmp 0x14014638e
Function at 0x140146440
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x1a8
mov rsi, rcx
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
cmp byte [rcx + 0x17], 0
jns 0x140146467
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140146499
mov dil, 1
test al, 0x10
je 0x140146552
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140253b80
mov eax, edi
add rsp, 0x1a8
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140206de0
test al, al
je 0x140146560
call sub.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.1402d7130
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.140294040
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.1401fd710
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14014652a
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call fcn.140294040
cmp byte [rsp + 0x5f], 0
jns 0x140146546
mov rcx, qword [rsp + 0x48]
call fcn.1402523c4
lea rcx, [rsp + 0x60]
call fcn.1402d71b0
jmp 0x140146560
mov ecx, 2
call fcn.140206de0
test al, al
jne 0x140146567
xor edi, edi
jmp 0x14014647d
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x255
mov r9d, 2
call fcn.140110ed0
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.140294040
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.1401fd710
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1401465dd
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call fcn.140294040
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.140294040
cmp byte [rsp + 0x5f], 0
jns 0x14014660e
mov rcx, qword [rsp + 0x48]
call fcn.1402523c4
lea rcx, [rsp + 0x60]
call fcn.1401113c0
jmp 0x140146560
Function at 0x140147b00
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, rdx
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x30], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x28]
mov qword [rsi], rax
mov rdx, rsi
call fcn.1401466b0
mov rax, qword [rsi]
test rax, rax
je 0x140147b77
mov rbx, qword [rax + 0x50]
mov r15, qword [rax + 0x58]
xor esi, esi
cmp rbx, r15
jne 0x140147b7e
lea rcx, [rsp + 0x28]
call fcn.140147210
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140253b80
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 3
jmp 0x140147b50
mov r12, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [rbx + 0x68], 0
je 0x140147b96
add rbx, 0x70
cmp rbx, r15
je 0x140147b50
jmp 0x140147b85
cmp byte [rbx + 0x27], 0
jns 0x140147ba2
mov rcx, qword [rbx + 0x10]
jmp 0x140147ba6
lea rcx, [rbx + 0x10]
call r12
test al, 0x10
jne 0x140147b8b
mov r14, qword [rdi + 8]
cmp r14, qword [rdi + 0x10]
je 0x140147bcc
mov rcx, r14
mov rdx, rbx
call fcn.1401489e0
add r14, 0x68
mov qword [rdi + 8], r14
jmp 0x140147b8b
mov rcx, rdi
mov rdx, rbx
call fcn.140148810
jmp 0x140147b8b

Function at 0x140147be0
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, rdx
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x30], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x28]
mov qword [rsi], rax
mov rdx, rsi
call fcn.1401466b0
mov rax, qword [rsi]
test rax, rax
je 0x140147c57
mov rbx, qword [rax + 0x50]
mov r15, qword [rax + 0x58]
xor esi, esi
cmp rbx, r15
jne 0x140147c5e
lea rcx, [rsp + 0x28]
call fcn.140147210
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140253b80
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 3
jmp 0x140147c30
mov r12, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [rbx + 0x68], 2
jne 0x140147c8e
cmp byte [rbx + 0x27], 0
jns 0x140147c77
mov rcx, qword [rbx + 0x10]
jmp 0x140147c7b
lea rcx, [rbx + 0x10]
call r12
test al, 0x10
jne 0x140147c8e
mov r14, qword [rdi + 8]
cmp r14, qword [rdi + 0x10]
jne 0x140147c99
jmp 0x140147cae
add rbx, 0x70
cmp rbx, r15
je 0x140147c30
jmp 0x140147c65
mov rcx, r14
mov rdx, rbx
call fcn.1401489e0
add r14, 0x68
mov qword [rdi + 8], r14
jmp 0x140147c8e
mov rcx, rdi
mov rdx, rbx
call fcn.140148810
jmp 0x140147c8e
Function at 0x140149260
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140462570]
mov ecx, dword [0x14045a84c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401492c0
lea rsi, [0x140462568]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140253b80
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140462570]
call fcn.1402524e0
cmp dword [0x140462570], 0xffffffff
jne 0x14014929c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140255cd0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.140252388
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1404625b8]
mov ecx, dword [0x14045a84c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140149380
lea r8, [0x140462588]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140149480
mov qword [0x140462568], rsi
lea rcx, [0x140462570]
call fcn.140252578
jmp 0x14014929c
lea rcx, [0x1404625b8]
call fcn.1402524e0
cmp dword [0x1404625b8], 0xffffffff
jne 0x140149351
xorps xmm0, xmm0
movups xmmword [0x1404625a8], xmm0
movups xmmword [0x140462598], xmm0
movups xmmword [0x140462588], xmm0
lea rcx, [0x140462588]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1404625b8]
call fcn.140252578
jmp 0x140149351

Function at 0x1401493d0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1404625b8]
mov ecx, dword [0x14045a84c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14014940b
movzx eax, word [0x140462588]
cmp eax, 9
jne 0x140149453
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x1404625b8]
call fcn.1402524e0
cmp dword [0x1404625b8], 0xffffffff
jne 0x1401493f5
xorps xmm0, xmm0
movups xmmword [0x1404625a8], xmm0
movups xmmword [0x140462598], xmm0
movups xmmword [0x140462588], xmm0
lea rcx, [0x140462588]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1404625b8]
call fcn.140252578
jmp 0x1401493f5
test eax, eax
je 0x140149406
cmp eax, 6
jne 0x140149463
mov eax, 2
jmp 0x140149406
cmp eax, 0xc
jne 0x14014946f
mov eax, 3
jmp 0x140149406
mov eax, 4
jmp 0x140149406