joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400675d0
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 [0x140346038]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x50]
mov qword [rbx + 0x40], rax
movaps xmm0, xmmword [0x1402fccc0]
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.1400c6940
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.140066fa0
mov rcx, qword [rsi]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140067743
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
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 0x1400676c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x140067781
mov rax, rdi
inc rax
cmp rax, 2
jb 0x1400676b5
mov qword [rsi + 0x40], rdi
call fcn.1400bcc80
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsi + 0x40]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14006776c
movabs rbx, 0xfffffffc00000000
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]
mov rax, rcx
and rax, rbx
cmp rax, qword [0x140346fc8]
je 0x140067770
and rbx, rdi
cmp rbx, qword [0x140346fc8]
je 0x140067777
mov qword [rsi + 0x30], rdi
test rdi, rdi
je 0x14006776c
lea rax, [0x1402ff6a8]
lea rcx, [rsp + 0x30]
mov qword [rcx], rax
mov qword [rcx + 8], rdi
call fcn.140141de4
mov eax, dword [rax + 0x50]
mov qword [rsi + 0x38], rax
mov dil, 1
lea rcx, [rsp + 0x50]
call fcn.140067230
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140156fe0
mov eax, edi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
xor edi, edi
jmp 0x140067743
call fcn.140152310
jmp 0x14006770c
mov rcx, rdi
call fcn.140151d50
jmp 0x140067718
call fcn.1400bcc80
mov r14, qword [rsi + 0x40]
mov rcx, qword [0x140362b78]
test rcx, rcx
je 0x1400677b2
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x14037e008]
mov qword [rsi + 0x40], 0
jmp 0x1400676a0
call fcn.140053470
mov rcx, qword [0x140362b78]
jmp 0x140067796
Function at 0x140067ff0
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 0x140068112
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 0x140068148
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 0x140068150
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 0x140068154
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 0x14006815a
pop rdi
pop rsi
ret
xor r10d, r10d
jmp 0x14006804c
xor eax, eax
jmp 0x1400680e1
mov dl, byte [r8 + 0x19]
jmp 0x140068141
cmp byte [r8 + 0x1a], 0
je 0x140068145
mov eax, 0x40000000
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x140068145
cmp ecx, 0x666f736f
jne 0x140068145
cmp edx, 0x76482074
jne 0x140068145
mov byte [r8 + 0x19], 1
jmp 0x140068145
Function at 0x14006baa0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140357044]
cmp ecx, 0xffffffff
jne 0x14006bb50
call fcn.140074760
call fcn.140107390
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14006bb45
mov rax, qword [0x140363908]
inc rax
xor ecx, ecx
lea rdx, [0x140363910]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x14006bb63
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x140365110]
inc ecx
mov dword [0x140365110], ecx
mov dword [rax + 0x14], ecx
mov qword [0x140363908], r8
mov qword [rsi], r8
mov eax, dword [rax + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x14006bb75
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x14006bad6
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x14006babc
jmp 0x14006bac1
inc rcx
cmp rcx, 0x100
jne 0x14006bae9
jmp 0x14006bb2b
int3

Function at 0x14006c880
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov byte [rcx + 8], 0
xorps xmm0, xmm0
movups xmmword [rcx + 0x10], xmm0
lea rax, [0x140300068]
mov qword [rcx], rax
mov rcx, 0xffffffffffffffff
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp qword [rsi + 0x18], rax
je 0x14006c8f0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jae 0x14006c8fb
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14006c8e8
mov qword [rsi + 0x18], rdi
call fcn.1400bcc80
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400bcc80
mov rcx, qword [rsi + 0x18]
call fcn.1400d2f70
mov qword [rsi + 0x18], 0
jmp 0x14006c8d5
Function at 0x140074760
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1028
call fcn.140156f80
sub rsp, rax
mov rax, qword [0x140346038]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov esi, dword [0x140357044]
cmp esi, 0xffffffff
jne 0x1400747b3
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140074846
mov esi, eax
mov eax, 0xffffffff
lock cmpxchg dword [0x140357044], esi
jne 0x140074833
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140074849
lea rdi, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call fcn.140159120
lea rdx, [rsp + 0x23]
mov r14, qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call r14
mov ecx, 0x1000
call fcn.140153d54
mov rbx, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rdi
call fcn.140158a70
mov rdx, rbx
or rdx, 3
mov ecx, esi
call r14
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140156fe0
mov rax, rbx
add rsp, 0x1028
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov esi, dword [0x140357044]
jmp 0x1400747b3
int3
int3
Function at 0x140076b70
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 0x140076c34
cmp qword [rsi], 0
jne 0x140076c34
cmp dword [rsi + 0x14], 0
jne 0x140076c34
cmp qword [rsi + 8], 0
jne 0x140076c34
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x140076be4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140076c5c
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140076bdc
mov qword [rsi], r14
call fcn.1400bcc80
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x140076c1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140076c44
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140076c16
mov qword [rsi + 8], r14
call fcn.1400bcc80
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
mov rcx, rsi
call fcn.1400760c0
mov rax, qword [rsi]
jmp 0x140076baa
call fcn.1400bcc80
mov rcx, qword [rsi + 8]
call fcn.1400d2f70
mov qword [rsi + 8], 0
jmp 0x140076c03
call fcn.1400bcc80
mov rcx, qword [rsi]
call fcn.1400d2f70
mov qword [rsi], 0
jmp 0x140076bca
Function at 0x140081ed2
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, r8
mov rax, qword [0x140346038]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, 0xaaaaaaaa
lea rdi, [rsp + 0x44]
mov dword [rdi], eax
lea r8, [rsp + 0x40]
mov dword [r8], eax
lea rax, [rsp + 0x3c]
mov dword [rax], 4
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rdi]
xor ecx, 4
or ecx, eax
sete bl
jne 0x140081f32
mov eax, dword [rsp + 0x40]
mov dword [rsi], eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140156fe0
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x140085540
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov edi, r8d
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x140346038]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x50]
mov qword [r15 + 0x40], rax
movaps xmm0, xmmword [0x1402fccc0]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea rdx, str.WriteAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r12, [rsp + 0x30]
mov rcx, r12
mov r9d, 0x9d
call fcn.1400c6940
xor esi, esi
mov rcx, r15
mov rdx, r12
xor r8d, r8d
call fcn.140066fa0
test edi, edi
js 0x140085629
lea r15, [rsp + 0x30]
mov dword [r15], 0xaaaaaaaa
mov rcx, qword [r14]
mov qword [rsp + 0x20], 0
mov rdx, rbx
mov r8d, edi
mov r9, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sbb esi, esi
or esi, dword [r15]
lea rcx, [rsp + 0x50]
call fcn.140067230
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140156fe0
mov eax, esi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x1400855fc
Function at 0x140087f7e
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rbx, qword [rcx + 0x50]
mov r15, qword [rcx + 0x58]
cmp rbx, r15
jne 0x140087fa6
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rsi, r8
mov edi, edx
mov r12, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [rbx + 0x68], edi
jne 0x140087fce
cmp byte [rbx + 0x27], 0
jns 0x140087fc3
mov rcx, qword [rbx + 0x10]
jmp 0x140087fc7
lea rcx, [rbx + 0x10]
call r12
test al, 0x10
je 0x140087fd9
add rbx, 0x70
cmp rbx, r15
je 0x140087f98
jmp 0x140087fb2
mov r14, qword [rsi + 8]
cmp r14, qword [rsi + 0x10]
jne 0x140087ff0
mov rcx, rsi
mov rdx, rbx
call fcn.14026e870
jmp 0x140087fce
test r14, r14
je 0x14008800a
mov rcx, r14
mov rdx, rbx
call fcn.14009fc7c
add r14, 0x68
mov qword [rsi + 8], r14
jmp 0x140087fce
int3
Function at 0x140094208
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140346038]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
movaps xmm0, xmmword [0x1402fccc0]
lea r15, [rsp + 0x160]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea r14, [rcx + 0x18]
mov rcx, r14
call fcn.140094432
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
mov r9, r15
call fcn.140093c78
test al, al
je 0x1400942f1
movzx eax, word [rsp + 0x160]
cmp eax, 0x5a4d
jne 0x1400943a3
mov rcx, r14
call fcn.140094432
movsxd r14, dword [rsp + 0x19c]
add r14, rax
mov r8d, 0x108
mov rcx, rsi
mov rdx, r14
mov r9, rbx
call fcn.140093c78
test al, al
je 0x140094367
cmp dword [rbx], 0x4550
jne 0x1400943e8
mov sil, 1
test rdi, rdi
je 0x1400942d0
mov qword [rdi], r14
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.140156fe0
mov eax, esi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 1
call fcn.14008daf0
test al, al
je 0x140094360
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.140117f40
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
call fcn.140097cc9
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140094349
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
jmp 0x14009434d
and r8d, 0x7f
mov rcx, rax
mov rdx, rsi
call fcn.140097cc9
mov rcx, rdi
call fcn.14009caf0
xor esi, esi
jmp 0x1400942d0
mov ecx, 1
call fcn.14008daf0
test al, al
je 0x140094360
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.140117f40
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x14009432b
mov ecx, 1
call fcn.14008daf0
test al, al
je 0x140094360
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.140117f40
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x140094331
mov ecx, 1
call fcn.14008daf0
test al, al
je 0x140094360
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.140117f40
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
jmp 0x140094331
Function at 0x1400959f6
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, rcx
mov rax, qword [0x140346038]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x1400a09b0]
xor ecx, ecx
xor edx, edx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 8], rax
test rax, rax
je 0x140095a51
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140156fe0
nop
add rsp, 0x68
pop rdi
pop rsi
ret
lea rdx, str.Start
lea r8, str....._third_partycrashpadcrashpadutil_thread_thread_win.cc
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov r9d, 0x1b
call fcn.1400c6940
lea rdi, [rsp + 0x58]
mov rcx, rdi
mov rdx, rsi
call fcn.140245e50
lea rdx, [0x14031f7a0]
mov rcx, rdi
call fcn.140248aba
mov rcx, rdi
call fcn.140245e80
jmp 0x140095a3c
Function at 0x1400983fc
Capabilities:
Check if file exists
Create thread

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rdx
mov rax, qword [0x140346038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rax, qword [rcx + 8]
mov ebx, 8
inc rax
cmp rax, 1
ja 0x14009858f
mov rdi, rcx
cmp qword [rcx + 0x18], 0
jne 0x14009858f
mov rcx, 0xffffffffffffffff
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov rbx, rax
cmp qword [rdi + 8], rax
je 0x140098496
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rdi + 8]
inc rax
cmp rax, 2
jae 0x14009863e
mov rax, rbx
inc rax
cmp rax, 2
jb 0x14009848a
mov qword [rdi + 8], rbx
call fcn.1400bcc80
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rdi + 8]
inc rbx
cmp rbx, 2
jb 0x1400985ba
lea r14, [rsp + 0x30]
mov rcx, r14
call fcn.1400986f1
mov r15, qword [rdi + 8]
mov ecx, 0x18
call fcn.140153bd4
mov rbx, rax
mov rax, qword [r14]
mov rcx, qword [rsi]
mov qword [rsi], 0
mov qword [rbx], r15
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x38], rbx
test rax, rax
je 0x1400984f8
mov ecx, 1
lock xadd dword [rax], ecx
cmp ecx, 0x7fffffff
je 0x14009868b
mov rcx, qword [rdi + 0x18]
mov qword [rdi + 0x18], rax
test rcx, rcx
jne 0x1400985c1
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x14009f7b0]
xor ecx, ecx
xor edx, edx
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
cmp qword [rdi + 0x10], rax
je 0x140098571
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rdi + 0x10]
inc rax
cmp rax, 2
jae 0x14009860d
mov rax, rbx
inc rax
cmp rax, 2
jb 0x140098565
mov qword [rdi + 0x10], rbx
call fcn.1400bcc80
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rdi + 0x10]
inc rbx
cmp rbx, 1
jbe 0x1400985e8
mov qword [rsp + 0x38], 0
xor ebx, ebx
lea rcx, [rsp + 0x38]
call fcn.140098690
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
jne 0x1400985d4
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140156fe0
mov eax, ebx
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov ebx, 0x3b
jmp 0x14009858f
lock dec dword [rcx]
jne 0x140098509
call fcn.14014c4fe
jmp 0x140098509
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
mov edx, 1
call qword [0x14037e008]
jmp 0x14009859e
mov rcx, qword [rdi + 0x18]
mov qword [rdi + 0x18], 0
mov ebx, 0x3b
test rcx, rcx
je 0x140098585
lock dec dword [rcx]
jne 0x140098585
call fcn.14014c4fe
jmp 0x140098585
call fcn.1400bcc80
mov r14, qword [rdi + 0x10]
mov rcx, qword [0x140362b78]
test rcx, rcx
je 0x14009867d
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x14037e008]
mov qword [rdi + 0x10], 0
jmp 0x140098550
call fcn.1400bcc80
mov r14, qword [rdi + 8]
mov rcx, qword [0x140362b78]
test rcx, rcx
je 0x14009866f
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x14037e008]
mov qword [rdi + 8], 0
jmp 0x140098475
call fcn.140053470
mov rcx, qword [0x140362b78]
jmp 0x140098653
call fcn.140053470
mov rcx, qword [0x140362b78]
jmp 0x140098622
int3
Function at 0x14009abb0
Capabilities:
Get file version info

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa0
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140346038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x50]
mov qword [rbx + 0x40], rax
movaps xmm0, xmmword [0x1402fccc0]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.CreateFileVersionInfoWin
lea r8, str....._base_file_version_info_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x62
call fcn.1400c6940
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.140066fa0
mov dword [rsp + 0x2c], 0xaaaaaaaa
cmp byte [rdi + 0x17], 0
jns 0x14009ac3e
mov rdi, qword [rdi]
lea rdx, [rsp + 0x2c]
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
jne 0x14009ac81
mov qword [rsi], 0
lea rcx, [rsp + 0x50]
call fcn.140067230
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140156fe0
mov rax, rsi
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov ebp, eax
mov r14d, eax
mov rcx, r14
call fcn.140153bd4
mov rbx, rax
mov qword [rsp + 0x30], rax
add rax, r14
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov rdx, rbx
add rdx, rcx
je 0x14009ad39
mov byte [rdx], 0
inc rcx
cmp r14, rcx
jne 0x14009aca0
mov qword [rsp + 0x38], rax
mov edx, dword [rsp + 0x2c]
mov rcx, rdi
mov r8d, ebp
mov r9, rbx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14009ad15
mov rcx, rbx
call fcn.14009ad40
mov ebx, eax
mov ebp, eax
shr ebp, 0x10
mov ecx, 0x38
call fcn.140153bd4
mov rdi, rax
lea r14, [rsp + 0x30]
mov rcx, rax
mov rdx, r14
mov r8d, ebx
mov r9d, ebp
call fcn.14009adc0
mov rbx, qword [r14]
mov qword [rsi], rdi
test rbx, rbx
je 0x14009ac56
jmp 0x14009ad19
xor edi, edi
jmp 0x14009ad07
mov rax, qword [rsp + 0x38]
mov rcx, rax
sub rcx, rbx
dec rax
cmp rcx, rax
ja 0x14009ad3c
mov rcx, rbx
call fcn.140153bcc
jmp 0x14009ac56
int3
int3

Function at 0x14009ad40
Capabilities:
Identify system language via api

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140346038]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x28]
mov qword [r8], 0
lea r9, [rsp + 0x24]
mov dword [r9], 0xaaaaaaaa
lea rdx, [0x140310a70]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14009ada7
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx]
movzx edi, word [rcx + 2]
shl edi, 0x10
movzx esi, ax
or esi, edi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140156fe0
mov eax, esi
add rsp, 0x38
pop rdi
pop rsi
ret
mov edi, 0x4e40000
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
jmp 0x14009ad8c
Function at 0x14009b640
Capabilities:
Check if file exists
Copy file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc0
movaps xmmword [rsp + 0xb0], xmm6
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140346038]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x60]
mov qword [r14 + 0x40], r12
movaps xmm6, xmmword [0x1402fccc0]
movaps xmmword [r14 + 0x30], xmm6
movaps xmmword [r14 + 0x20], xmm6
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
lea rdx, str.DoLinkOrCopyFile
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x20]
mov rcx, r15
mov r9d, 0xb8
call fcn.1400c6940
xor ebp, ebp
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140066fa0
mov rcx, rsi
call fcn.1400c9030
test al, al
jne 0x14009b79a
mov rcx, rdi
call fcn.1400c9030
test al, al
jne 0x14009b7d0
cmp byte [rsi + 0x17], 0
jns 0x14009b706
cmp qword [rsi + 8], 0x103
ja 0x14009b7d0
cmp byte [rdi + 0x17], 0
jns 0x14009b71a
cmp qword [rdi + 8], 0x103
ja 0x14009b7d0
lea r14, [rsp + 0x40]
mov qword [r14 + 0x10], r12
movaps xmmword [r14], xmm6
lea rdx, str.DoLinkOrCopyFile
lea r8, str....._base_files_file_util_win.cc
lea r15, [rsp + 0x20]
mov rcx, r15
mov r9d, 0xcb
call fcn.1400c6940
lea r8, [0x140362838]
mov rcx, r14
mov rdx, r15
call fcn.140194d70
cmp byte [rsi + 0x17], 0
jns 0x14009b763
mov rsi, qword [rsi]
cmp byte [rdi + 0x17], 0
mov r14, rdi
jns 0x14009b76f
mov r14, qword [rdi]
mov r15d, ebx
and r15d, 1
test bl, 2
jne 0x14009b7d4
mov rcx, rsi
mov rdx, r14
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14009b7f1
xor ebp, ebp
lea rcx, [rsp + 0x40]
call fcn.1400fafa0
lea rcx, [rsp + 0x60]
call fcn.140067230
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140156fe0
mov eax, ebp
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ebp, ebp
jmp 0x14009b79a
test r15d, r15d
jne 0x14009b820
mov rcx, r14
mov rdx, rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov bpl, 1
test eax, eax
jne 0x14009b790
jmp 0x14009b77b
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bpl
je 0x14009b790
mov ecx, eax
and ecx, 1
je 0x14009b790
and eax, 0xfffffffe
mov rcx, r14
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov bpl, 1
jmp 0x14009b790
mov rcx, rdi
call fcn.140109890
test al, al
jne 0x14009b78e
jmp 0x14009b7d9