joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400748c0
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 [0x140216028]
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.1400665a0
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x140074a44
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, [0x1401f78f8]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x140074a7b
lea rdx, [0x1401f7948]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140074a69
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [case.0x140174010.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 0x140074a71
shl r12, 3
movabs rax, 0x5555555555555551
cmp r12, rax
jae 0x140074aba
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.14010f758
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 0x140074a8e
mov rdx, qword [r14 + r13]
mov rcx, r15
call fcn.14014b280
add r15, 0x18
add r13, 8
cmp r12, r13
jne 0x1400749cc
mov qword [rsp + 0x38], r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400744c0
movups xmmword [rsi], xmm6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x140074a1a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
jne 0x140074a2e
jmp 0x140074a44
mov rcx, qword [r15 - 0x18]
call fcn.14010f794
add r15, 0xffffffffffffffe8
cmp r15, rbx
je 0x140074a3c
cmp byte [r15 - 1], 0
jns 0x140074a2a
jmp 0x140074a21
mov rcx, rbx
call fcn.14010f794
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140110d20
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r14d, r14d
jmp 0x140074974
xor r15d, r15d
xor ebx, ebx
jmp 0x1400749f3
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x140074971
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.14014d6e0
lea rcx, [rsp + 0x30]
call fcn.14014aff0
int3
Function at 0x140077750
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 [0x140216028]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x14007799a
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x140219f10], rax
jne 0x14007799d
mov rsi, rcx
mov r14d, dword [rcx + 8]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
cmp byte [rcx + 2], 0
sete al
bsr rdx, r14
xor rdx, 0xffffffffffffffc0
lea rcx, [0x1401f7a60]
mov cl, byte [rdx + rcx + 0x41]
mov r8, r14
shr r8, cl
and r8d, 7
lea rcx, [0x1401f7ab0]
mov rcx, qword [rcx + rdx*8 + 0x208]
and rcx, r14
lea rdx, [r8 + rdx*8]
add rdx, 0x208
cmp rcx, 1
sbb rdx, 0xffffffffffffffff
lea rcx, [0x1401e8d30]
movzx ecx, word [rcx + rdx*2 + 0x400]
cmp cx, 0x6e
setb dl
and dl, al
movzx eax, dl
or eax, ecx
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 0x14007791f
mov rax, qword [r15]
mov rdi, qword [rax]
test rdi, rdi
je 0x14007792c
mov byte [rsp + 0x3f], 0
mov rcx, qword [rdi]
test rcx, rcx
je 0x140077918
lea rdx, [rsi + 0x48]
bswap rcx
mov r14d, dword [rdx + r12*8 + 0x18]
mov rdx, rcx
xor rdx, rdi
cmp rdx, 0x1fffff
ja 0x1400779a0
mov edx, ecx
and edx, 0x1fc000
je 0x1400779a0
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.1400efaa0
mov ecx, dword [0x14022ecec]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x140226b84]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x168], rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140110d20
mov rax, rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ecx, ecx
jmp 0x140077879
mov rcx, rbx
call fcn.1400f0690
jmp 0x140077829
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.1400ffbb0
test rax, rax
je 0x140077993
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 0x140077893
xor edi, edi
jmp 0x1400778bd
int3
int3
movaps xmm0, xmmword [0x1401e7a90]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
mov r8, qword [rdi]
lea rdx, str.first
mov rcx, rsi
call fcn.14017a9a0
mov rcx, rsi
call fcn.140038260
mov rcx, r14
call fcn.14014ad30
int3

Function at 0x14007d0c0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x28
test rdx, rdx
jne 0x14007d0da
test r8d, r8d
jne 0x14007d0d3
call fcn.140090d10
xor eax, eax
add rsp, 0x28
ret
mov r8d, r8d
add rsp, 0x28
jmp fcn.1400f4890
Function at 0x14007f950
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140216028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14022ef30]
mov ecx, dword [0x140226b84]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007f9b0
lea rsi, [0x14022ef28]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140110d20
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14022ef30]
call fcn.14010f8b0
cmp dword [0x14022ef30], 0xffffffff
jne 0x14007f98c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140112e60
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.14010f758
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14022ef78]
mov ecx, dword [0x140226b84]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007fa70
lea r8, [0x14022ef48]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14007fb70
mov qword [0x14022ef28], rsi
lea rcx, [0x14022ef30]
call fcn.14010f948
jmp 0x14007f98c
lea rcx, [0x14022ef78]
call fcn.14010f8b0
cmp dword [0x14022ef78], 0xffffffff
jne 0x14007fa41
xorps xmm0, xmm0
movups xmmword [0x14022ef68], xmm0
movups xmmword [0x14022ef58], xmm0
movups xmmword [0x14022ef48], xmm0
lea rcx, [0x14022ef48]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14022ef78]
call fcn.14010f948
jmp 0x14007fa41

Function at 0x14007fac0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14022ef78]
mov ecx, dword [0x140226b84]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007fafb
movzx eax, word [0x14022ef48]
cmp eax, 9
jne 0x14007fb43
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x14022ef78]
call fcn.14010f8b0
cmp dword [0x14022ef78], 0xffffffff
jne 0x14007fae5
xorps xmm0, xmm0
movups xmmword [0x14022ef68], xmm0
movups xmmword [0x14022ef58], xmm0
movups xmmword [0x14022ef48], xmm0
lea rcx, [0x14022ef48]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14022ef78]
call fcn.14010f948
jmp 0x14007fae5
test eax, eax
je 0x14007faf6
cmp eax, 6
jne 0x14007fb53
mov eax, 2
jmp 0x14007faf6
cmp eax, 0xc
jne 0x14007fb5f
mov eax, 3
jmp 0x14007faf6
mov eax, 4
jmp 0x14007faf6
Function at 0x140080280
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x140216028]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x1400803cd
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x1401e7a90]
lea rdi, [rsp + 0x40]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi - 0x10], xmm0
movaps xmmword [rdi - 0x20], xmm0
lea r12, [rsp + 0x30]
lea rbx, [rcx + 0x108]
mov eax, dword [rcx + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rcx + 0x114], eax
mov rax, qword [rcx + 0xf8]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r8, rsi
call qword [case.0x140174010.0]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, r12
mov r8, rsi
call qword [case.0x140174010.0]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [case.0x140174010.0]
test r14, r14
je 0x140080363
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x140080353
lea r14, [rsi + 0xf8]
mov eax, dword [0x14022ef84]
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x1400803d1
call fcn.140003260
lea rax, [0x140001d60]
test r14, r14
je 0x14008039e
lea rcx, section..text
mov qword [r14], rcx
mov qword [rsi + 0x100], rax
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
mov esi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140110d20
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x1400803b0
bt eax, 9
jae 0x1400803f1
call fcn.140004350
lea rax, [0x140004820]
test r14, r14
je 0x14008039e
lea rcx, [0x140004520]
jmp 0x14008039b
call fcn.14017ff00
lea rax, [0x140180700]
test r14, r14
je 0x14008039e
lea rcx, [0x14017fdc0]
jmp 0x14008039b
Function at 0x140080500
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rsi, rcx
mov rax, qword [0x140216028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x50]
mov qword [rbx + 0x40], rax
movaps xmm0, xmmword [0x1401e7a90]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.MapImageToMemory
lea r8, str....._base_filesmemory_mapped_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x1b
call fcn.1400eb5f0
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1400e22c0
mov rcx, rsi
call fcn.1400df1e0
test al, al
je 0x14008067d
mov rcx, rsi
call fcn.140066c30
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 0x11000002
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
cmp qword [rsi + 0x40], rax
je 0x1400805fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x1400806a6
mov rax, rdi
inc rax
cmp rax, 2
jb 0x1400805ef
mov qword [rsi + 0x40], rdi
call fcn.1400eb610
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsi + 0x40]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400806c1
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
mov rcx, qword [rsi + 0x30]
movabs rbx, 0xfffffffc00000000
mov rax, rcx
and rax, rbx
cmp rax, qword [0x140225f48]
je 0x1400806c5
and rbx, rdi
cmp rbx, qword [0x140225f48]
je 0x1400806cf
mov qword [rsi + 0x30], rdi
test rdi, rdi
je 0x1400806c1
lea rax, fcn.14014e540
lea rcx, [rsp + 0x30]
mov qword [rcx], rax
mov qword [rcx + 8], rdi
call fcn.14007f260
mov eax, dword [rax + 0x50]
mov qword [rsi + 0x38], rax
mov dil, 1
lea rcx, [rsp + 0x50]
call fcn.1400e2500
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140110d20
mov eax, edi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400eb610
mov rcx, qword [rsi + 0x40]
call fcn.1400de840
mov qword [rsi + 0x40], 0
jmp 0x1400805da
xor edi, edi
jmp 0x14008067d
call fcn.1400c19c0
jmp 0x140080646
mov rcx, rdi
call fcn.1400c1500
jmp 0x140080652
Function at 0x14008bd50
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x140232460], 0
jne 0x14008bd8d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14008bd80
mov dword [rdi], eax
mov dword [0x140232468], eax
mov qword [0x140232460], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x140094160
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x140216028]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x140094130]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x140234b48]
lea rdx, [0x140093fd0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140094270
cmp dword [0x140234b50], 0
jne 0x140094260
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x140234b54]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x14009420c
mov ecx, 1
mov edx, 0x28
call fcn.1400df8b0
test rax, rax
je 0x140094260
mov r14, rax
mov ecx, dword [0x140234b54]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140094258
lea r15, [0x140234b58]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x140234b60]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140110d20
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, r14
call fcn.1400df810
mov rcx, rsi
mov rax, rdi
call qword [case.0x140174010.0]
xor esi, esi
jmp 0x14009423c
call fcn.140125320
int3

Function at 0x140094630
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14009466c
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 0x140094676
add rdi, rbx
sub rsi, rbx
jne 0x14009464a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140125320
int3
Function at 0x140094c50
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x140094c60
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x140094c81
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x140094ca1
cmp byte [r14 + 0x68], 0
jne 0x140094d23
or edi, 0x20000000
test dil, 8
jne 0x140094d57
xor r15d, r15d
cmp byte [r14 + 0x70], 0
mov r12d, 0
je 0x140094cbf
mov r12, qword [r14 + 0x78]
cmp byte [r14 + 0x50], 0
mov r13d, 0
je 0x140094cd0
mov r13, qword [r14 + 0x58]
cmp byte [r14 + 0x28], 0
jne 0x140094d38
cmp byte [r14], 0
jne 0x140094d46
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x140094d77
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x140094d2e
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or edi, 0x80000000
jmp 0x140094ca1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140094d0e
lea rcx, [r14 + 0x30]
call fcn.140066c30
mov r15, rax
jmp 0x140094cd7
add r14, 8
mov rcx, r14
call fcn.140066c30
mov r9, rax
jmp 0x140094ce0
cmp byte [r14 + 0x88], 0
je 0x140094d6c
or edi, 0x40000000
jmp 0x140094cab
or edi, 0x10000000
jmp 0x140094cab
cmp ebx, 4
jne 0x140094d86
mov edx, 6
jmp 0x140094ced
lea eax, [rbx - 2]
cmp eax, 2
jae 0x140094d98
mov edx, 7
jmp 0x140094ced
cmp ebx, 1
jne 0x140094da7
mov edx, 4
jmp 0x140094ced
xor edx, edx
jmp 0x140094ced
Function at 0x140094c60
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x140094c60
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x140094c81
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x140094ca1
cmp byte [r14 + 0x68], 0
jne 0x140094d23
or edi, 0x20000000
test dil, 8
jne 0x140094d57
xor r15d, r15d
cmp byte [r14 + 0x70], 0
mov r12d, 0
je 0x140094cbf
mov r12, qword [r14 + 0x78]
cmp byte [r14 + 0x50], 0
mov r13d, 0
je 0x140094cd0
mov r13, qword [r14 + 0x58]
cmp byte [r14 + 0x28], 0
jne 0x140094d38
cmp byte [r14], 0
jne 0x140094d46
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x140094d77
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x140094d2e
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or edi, 0x80000000
jmp 0x140094ca1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140094d0e
lea rcx, [r14 + 0x30]
call fcn.140066c30
mov r15, rax
jmp 0x140094cd7
add r14, 8
mov rcx, r14
call fcn.140066c30
mov r9, rax
jmp 0x140094ce0
cmp byte [r14 + 0x88], 0
je 0x140094d6c
or edi, 0x40000000
jmp 0x140094cab
or edi, 0x10000000
jmp 0x140094cab
cmp ebx, 4
jne 0x140094d86
mov edx, 6
jmp 0x140094ced
lea eax, [rbx - 2]
cmp eax, 2
jae 0x140094d98
mov edx, 7
jmp 0x140094ced
cmp ebx, 1
jne 0x140094da7
mov edx, 4
jmp 0x140094ced
xor edx, edx
jmp 0x140094ced

Function at 0x140094db0
Capabilities:
Inspect section memory permissions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r15, rcx
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x140094de8
cmp byte [r15 + 0x68], 0
jne 0x140094e76
or edi, 0x20000000
test dil, 8
jne 0x140094ead
xor r14d, r14d
cmp byte [r15 + 0x70], 0
mov r12d, 0
je 0x140094e06
mov r12, qword [r15 + 0x78]
cmp byte [r15 + 0x50], 0
mov r13d, 0
je 0x140094e17
mov r13, qword [r15 + 0x58]
cmp byte [r15 + 0x28], 0
jne 0x140094e8b
cmp byte [r15], 0
jne 0x140094e99
xor r9d, r9d
cmp ebx, 4
jne 0x140094e67
mov edx, 6
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov esi, eax
test eax, eax
jne 0x140094e81
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea eax, [rbx - 2]
cmp eax, 2
jae 0x140094ecd
mov edx, 7
jmp 0x140094e31
or edi, 0x80000000
jmp 0x140094de8
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140094e52
lea rcx, [r15 + 0x30]
call fcn.140066c30
mov r14, rax
jmp 0x140094e1e
add r15, 8
mov rcx, r15
call fcn.140066c30
mov r9, rax
jmp 0x140094e27
cmp byte [r15 + 0x88], 0
je 0x140094ec2
or edi, 0x40000000
jmp 0x140094df2
or edi, 0x10000000
jmp 0x140094df2
mov edx, 1
test ebx, ebx
je 0x140094e31
cmp ebx, 1
jne 0x140094ee9
mov edx, 4
jmp 0x140094e31
xor edx, edx
jmp 0x140094e31
Function at 0x140099720
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x140216028]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x140099747
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140099781
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400997a0
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140110d20
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.140099870
mov sil, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140110d20
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400eb510
test al, al
jne 0x1400997b2
xor esi, esi
jmp 0x140099784
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.1401786f0
lea rcx, [rsp + 0x60]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.14014b5b0
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.1400e3490
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x140099832
and r8d, 0x7f
jmp 0x14009983c
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.14014b5b0
cmp byte [rsp + 0x4f], 0
jns 0x140099858
mov rcx, qword [rsp + 0x38]
call fcn.14010f794
lea rcx, [rsp + 0x50]
call fcn.140178770
jmp 0x1400997ae
Function at 0x140099870
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x1a8
mov rsi, rcx
mov rax, qword [0x140216028]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
cmp byte [rcx + 0x17], 0
jns 0x140099897
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400998c5
mov dil, 1
test al, 0x10
je 0x1400998db
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140110d20
mov eax, edi
add rsp, 0x1a8
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400eb510
test al, al
jne 0x1400999aa
xor edi, edi
jmp 0x1400998a9
mov ecx, 2
call fcn.1400eb510
test al, al
je 0x1400998d7
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x255
mov r9d, 2
call fcn.140070d30
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.14014b5b0
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.1400e3490
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x140099960
and r8d, 0x7f
jmp 0x14009996a
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call fcn.14014b5b0
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.14014b5b0
cmp byte [rsp + 0x5f], 0
jns 0x14009999b
mov rcx, qword [rsp + 0x48]
call fcn.14010f794
lea rcx, [rsp + 0x60]
call fcn.140071210
jmp 0x1400998d7
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.1401786f0
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.14014b5b0
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.1400e3490
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x140099a2a
and r8d, 0x7f
jmp 0x140099a34
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call fcn.14014b5b0
cmp byte [rsp + 0x5f], 0
jns 0x140099a50
mov rcx, qword [rsp + 0x48]
call fcn.14010f794
lea rcx, [rsp + 0x60]
call fcn.140178770
jmp 0x1400998d7