joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c57a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.14016c8c0
sub rsp, rax
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x14038ebe8]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x1400c5854
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1400c5892
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.1401a5320
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14016b41c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.1401a4c80
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.14016c920
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.1400e1e70
test al, al
je 0x1400c5895
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x1400c5898
mov eax, 0xffffffff
lock cmpxchg dword [0x14038ebe8], ecx
je 0x1400c57d8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x14038ebe8]
mov dword [rsp + 0x2c], ecx
jmp 0x1400c57d8
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.1400e1e70
test al, al
je 0x1400c58bd
cmp dword [rsp + 0x2c], 0xffffffff
je 0x1400c58bd
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x1400c586b
int3

Function at 0x1400c58d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14038ebe8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
jne 0x1400c58f8
test rdi, rdi
je 0x1400c5911
call fcn.1400c57a0
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x1400db370
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x14039c350], 0
jne 0x1400db3ad
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400db3a0
mov dword [rdi], eax
mov dword [0x14039c358], eax
mov qword [0x14039c350], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3

Function at 0x1400e1e70
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400e1e85
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x1400e2ff0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov eax, dword [0x14039d1c0]
mov ecx, dword [0x14038f0a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400e3071
lea rcx, [0x14039d1b0]
call fcn.140144a20
test rax, rax
jne 0x1400e305e
mov ecx, 4
call fcn.14016b3ac
mov rdi, rax
mov dword [rax], 0
lea rbx, [0x14039d1b0]
mov rcx, rbx
call fcn.140144a20
mov rsi, rax
mov rcx, rbx
mov rdx, rdi
call fcn.1400c58d0
test rsi, rsi
jne 0x1400e30b4
lea rcx, [0x14039d1b0]
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140144a20
lea rcx, [0x14039d1c0]
call fcn.14016b42c
cmp dword [0x14039d1c0], 0xffffffff
jne 0x1400e3018
xorps xmm0, xmm0
movups xmmword [0x14039d1b0], xmm0
lea rcx, [0x14039d1b0]
lea rdx, [0x14002dac0]
call fcn.1400c5920
lea rcx, [0x14039d1c0]
call fcn.14016b4e0
jmp 0x1400e3018
mov rcx, rsi
call fcn.14016b3e8
jmp 0x1400e305e

Function at 0x1400e7a90
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, rcx
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x1400e7b40]
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 0x1400e7aeb
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14016c920
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.140125120
lea rdi, [rsp + 0x58]
mov rcx, rdi
mov rdx, rsi
call fcn.1401e0430
lea rdx, [0x14031b90a]
mov rcx, rdi
call fcn.1401dd020
mov rcx, rdi
call fcn.1401e04e0
jmp 0x1400e7ad6
Function at 0x1400f4460
Capabilities:
Parse pe header

Disassembly:
cmp rdx, 0x40
jb 0x1400f44ae
cmp byte [rcx], 0x4d
jne 0x1400f44ae
cmp byte [rcx + 1], 0x5a
jne 0x1400f44ae
mov r9d, dword [rcx + 0x3c]
mov r10, rdx
sub r10, r9
xor eax, eax
cmp r10, 0x18
jb 0x1400f44b0
cmp rdx, r9
jbe 0x1400f44b0
cmp r9d, 0x40
jb 0x1400f44b0
mov r10d, r9d
and r10d, 7
jne 0x1400f44b0
cmp byte [rcx + r9], 0x50
jne 0x1400f44ae
cmp byte [rcx + r9 + 1], 0x45
jne 0x1400f44ae
cmp byte [rcx + r9 + 2], 0
je 0x1400f44b1
xor eax, eax
ret
cmp byte [rcx + r9 + 3], 0
jne 0x1400f44ae
lea rax, [r9 + 0x18]
sub rdx, rax
setbe r9b
cmp rdx, 2
setb dl
or dl, r9b
jne 0x1400f44ae
cmp word [rcx + rax], r8w
sete al
ret
Function at 0x1400fe680
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x1400fe6c8
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1400fe6d1
lea rax, [rsi + 1]
cmp rax, 2
jb 0x1400fe6b8
mov qword [rdi], rsi
call fcn.140125140
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140125140
mov rcx, qword [rdi]
call fcn.140113500
mov qword [rdi], 0
jmp 0x1400fe6a6
Function at 0x140109800
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
movdqa xmmword [rsp + 0x40], xmm10
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
movdqu xmm4, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rcx + 0x30]
movd xmm0, r8d
pxor xmm0, xmm4
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x40
jb 0x1401098fe
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x140306e20]
nop dword [rax]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm7, xmm3
pclmulqdq xmm7, xmm4, 0
movdqa xmm8, xmm2
pclmulqdq xmm8, xmm4, 0
movdqa xmm9, xmm1
pclmulqdq xmm9, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pclmulqdq xmm3, xmm5, 0x11
pclmulqdq xmm2, xmm5, 0x11
pclmulqdq xmm1, xmm5, 0x11
movdqu xmm10, xmmword [rcx]
pxor xmm10, xmm6
pxor xmm0, xmm10
movdqu xmm6, xmmword [rcx + 0x10]
pxor xmm6, xmm7
pxor xmm3, xmm6
movdqu xmm6, xmmword [rcx + 0x20]
pxor xmm6, xmm8
pxor xmm2, xmm6
movdqu xmm6, xmmword [rcx + 0x30]
pxor xmm6, xmm9
pxor xmm1, xmm6
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x3f
ja 0x140109870
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
pmovzxdq xmm3, qword [0x140306e40]
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm2
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
cmp rdx, 0x10
jb 0x14010998e
movdqu xmm1, xmmword [rcx]
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
add rcx, 0x10
add rdx, 0xfffffffffffffff0
cmp rdx, 0xf
ja 0x140109964
pmovzxdq xmm1, qword [0x140306e40]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
psrldq xmm0, 4
movabs rax, 0x163cd6124
movq xmm3, rax
pclmulqdq xmm3, xmm2, 0
pxor xmm3, xmm0
pxor xmm0, xmm0
pblendw xmm0, xmm3, 3
pclmulqdq xmm0, xmmword [0x140306e30], 0x10
pblendw xmm0, xmm1, 0xfc
movabs rax, 0x1db710641
movq xmm1, rax
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm3
pextrd eax, xmm1, 1
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x140113830
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov ebx, ecx
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, dword [0x140392248]
mov ecx, dword [0x14038f0a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140113a1c
mov rsi, qword [0x140392240]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140113a69
movzx ebx, bl
dec ebx
or ebx, 1
test byte [0x1403921f0], 1
mov eax, 1
mov ecx, 8
cmovne ecx, eax
xor ebp, ebp
add ebx, dword [0x1403921f4]
mov dword [0x1403921f4], ebx
cmovne ebp, ecx
mov eax, dword [0x1403921f8]
cmp ebp, eax
je 0x1401139fb
test eax, eax
je 0x14011398c
mov rax, qword [0x140380938]
lea rcx, [0x140113b60]
lea rdi, [rsp + 0x28]
cmp rax, rcx
jne 0x140113a87
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rdi]
movabs rax, 0x8637bd05af7
cmp rcx, rax
jge 0x140113ae4
imul rax, rcx, 0xf4240
cqo
idiv qword [0x140392260]
mov qword [rsp + 0x28], rax
mov rcx, qword [0x140392250]
xor edx, edx
cmp rax, rcx
setns dl
movabs r8, 0x7fffffffffffffff
add r8, rdx
sub rax, rcx
cmovo rax, r8
movabs rdx, 0x8000000000000001
lea r8, [rax + rdx]
mov rcx, qword [0x140392200]
cmp r8, 2
jb 0x140113a98
lea rdx, [rcx + rax]
sar rdx, 0x3f
btc rdx, 0x3f
add rcx, rax
cmovo rcx, rdx
mov rax, rcx
mov qword [0x140392200], rax
mov ecx, dword [0x1403921f8]
call qword [sym.imp.WINMM.dll_timeEndPeriod]
mov dword [0x1403921f8], ebp
test ebx, ebx
je 0x1401139fb
mov rax, qword [0x140380938]
lea rcx, [0x140113b60]
lea rdi, [rsp + 0x28]
cmp rax, rcx
jne 0x140113a76
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rdi]
movabs rax, 0x8637bd05af7
cmp rcx, rax
jge 0x140113ab3
imul rax, rcx, 0xf4240
cqo
idiv qword [0x140392260]
mov qword [0x140392250], rax
mov ecx, dword [0x1403921f8]
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14016c920
mov al, 1
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x140392248]
call fcn.14016b42c
cmp dword [0x140392248], 0xffffffff
jne 0x14011386e
mov ecx, 8
call fcn.14016b3ac
mov rsi, rax
mov qword [rax], 0
mov rcx, rax
call fcn.140113e30
mov qword [0x140392240], rsi
lea rcx, [0x140392248]
call fcn.14016b4e0
jmp 0x14011386e
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140113886
mov rcx, rdi
call qword [0x14036e550]
mov rax, qword [rdi]
jmp 0x1401139e8
mov rcx, rdi
call qword [0x14036e550]
mov rax, qword [rdi]
jmp 0x140113920
add rdx, rcx
cmp rdx, 2
setae dl
cmp rcx, rax
sete cl
or cl, dl
jne 0x140113979
int3
mov r8, qword [0x140392260]
mov rax, rcx
cqo
idiv r8
imul r9, rax, 0xf4240
imul rax, r8
sub rcx, rax
imul rax, rcx, 0xf4240
cqo
idiv r8
add rax, r9
jmp 0x1401139e8
mov r8, qword [0x140392260]
mov rax, rcx
cqo
idiv r8
imul r9, rax, 0xf4240
imul rax, r8
sub rcx, rax
imul rax, rcx, 0xf4240
cqo
idiv r8
add rax, r9
jmp 0x14011391b
Function at 0x140113c00
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsd xmm6, qword [0x140392210]
xorpd xmm0, xmm0
ucomisd xmm6, xmm0
jne 0x140113c35
jnp 0x140113c59
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14016c920
movapd xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov esi, eax
call rdi
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x140392220]
mov ecx, dword [0x14038f0a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140113d6e
mov eax, dword [0x140392230]
mov ecx, dword [0x14038f0a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140113da8
rdtsc
mov rdi, rax
mov rbx, rdx
xor r15d, r15d
lea r14, [rsp + 0x20]
mov qword [r14], r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r12, qword [r14]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [r14], r15
lea rsi, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub r12, qword [0x140392228]
xorps xmm0, xmm0
cvtsi2sd xmm0, r12
cvtsi2sd xmm1, qword [rsi]
divsd xmm0, xmm1
xorpd xmm6, xmm6
movsd xmm1, qword [0x140306668]
ucomisd xmm1, xmm0
ja 0x140113c35
shl rbx, 0x20
or rdi, rbx
sub rdi, qword [0x140392218]
movq xmm6, rdi
punpckldq xmm6, xmmword [0x140306670]
subpd xmm6, xmmword [0x140306680]
haddpd xmm6, xmm6
divsd xmm6, xmm0
movsd qword [0x140392210], xmm6
jmp 0x140113c35
lea rcx, [0x140392220]
call fcn.14016b42c
cmp dword [0x140392220], 0xffffffff
jne 0x140113ca2
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140392218], rdx
lea rcx, [0x140392220]
call fcn.14016b4e0
jmp 0x140113ca2
lea rcx, [0x140392230]
call fcn.14016b42c
cmp dword [0x140392230], 0xffffffff
jne 0x140113cc7
lea rdi, [rsp + 0x20]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
mov qword [0x140392228], rax
lea rcx, [0x140392230]
call fcn.14016b4e0
jmp 0x140113cc7
Function at 0x1401173f0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov esi, r9d
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm0, xmmword [0x1402faf80]
lea r12, [rsp + 0x60]
movaps xmmword [r12 + 0x30], xmm0
movaps xmmword [r12 + 0x20], xmm0
movaps xmmword [r12 + 0x10], xmm0
movaps xmmword [r12], xmm0
lea rdx, str.Read
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x42
call fcn.140125120
mov rcx, r12
mov rdx, r15
xor r8d, r8d
call fcn.14011a200
mov ebp, 0xffffffff
test r14, r14
js 0x1401174ec
test esi, esi
js 0x1401174ec
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.1401350f0
test al, al
jne 0x140117532
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], r15
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14011751a
mov ebp, dword [rsp + 0x2c]
test ebp, ebp
js 0x14011752d
lea rcx, [rsp + 0x30]
call fcn.140135170
lea rcx, [rsp + 0x60]
call fcn.14011a280
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14016c920
mov eax, ebp
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
cmp eax, 0x26
setne bpl
neg ebp
jmp 0x1401174e2
int3
mov r9d, esi
lea rdx, str.File::Read
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.14025c1b0
jmp 0x1401174a4

Function at 0x140117550
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x1402faf80]
lea r14, [rsp + 0x50]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.ReadAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x5f
call fcn.140125120
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14011a200
test esi, esi
js 0x140117655
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.1401350f0
test al, al
jne 0x140117661
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14011767d
mov esi, dword [rsp + 0x2c]
test esi, esi
js 0x14011765c
lea rcx, [rsp + 0x30]
call fcn.140135170
lea rcx, [rsp + 0x50]
call fcn.14011a280
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14016c920
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14011762a
int3
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.14025c1b0
jmp 0x1401175f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x140117620
Function at 0x140117690
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov esi, r9d
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm0, xmmword [0x1402faf80]
lea r12, [rsp + 0x60]
movaps xmmword [r12 + 0x30], xmm0
movaps xmmword [r12 + 0x20], xmm0
movaps xmmword [r12 + 0x10], xmm0
movaps xmmword [r12], xmm0
lea rdx, str.Write
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x7f
call fcn.140125120
mov rcx, r12
mov rdx, r15
xor r8d, r8d
call fcn.14011a200
mov ebp, 0xffffffff
test r14, r14
js 0x140117789
test esi, esi
js 0x140117789
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.1401350f0
test al, al
jne 0x1401177b7
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
lea r14, [rsp + 0x2c]
mov dword [r14], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], r15
mov rdx, rdi
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor ebp, ebp
cmp eax, 1
sbb ebp, ebp
or ebp, dword [r14]
lea rcx, [rsp + 0x30]
call fcn.140135170
lea rcx, [rsp + 0x60]
call fcn.14011a280
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14016c920
mov eax, ebp
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r9d, esi
lea rdx, str.File::Write
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.14025c1b0
jmp 0x140117740
Function at 0x1401177e0
Capabilities:
Get file version info

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x1402faf80]
lea rdi, [rsp + 0x50]
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.CreateFileVersionInfoWin
lea r8, str....._base_file_version_info_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x4d
call fcn.140125120
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
call fcn.14011a200
mov dword [rsp + 0x2c], 0xaaaaaaaa
cmp byte [rbx + 0x17], 0
jns 0x140117866
mov rbx, qword [rbx]
lea rdx, [rsp + 0x2c]
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
jne 0x1401178af
mov qword [rsi], 0
lea rcx, [rsp + 0x50]
call fcn.14011a280
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14016c920
mov rax, rsi
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ebp, eax
mov r14d, eax
mov rcx, r14
call fcn.14016b3ac
mov rdi, rax
lea r15, [rax + r14]
xor r12d, r12d
jmp 0x1401179d5
mov edx, dword [rsp + 0x2c]
mov rcx, rbx
mov r8d, ebp
mov r9, rdi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1401179ef
lea r8, [rsp + 0x30]
mov qword [r8], 0
lea r9, [rsp + 0x9c]
mov dword [r9], 0xaaaaaaaa
lea rdx, str.VarFileInfoTranslation
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1401179ef
mov r14, qword [rsp + 0x30]
test r14, r14
je 0x1401179ef
add r12, rdi
mov ecx, 0x38
call fcn.14016b3ac
mov rbx, rax
movzx r13d, word [r14]
movzx ebp, word [r14 + 2]
lea rax, fcn.1400681b0
mov qword [rbx], rax
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r15
movabs r14, 0xfffffffc00000000
mov rax, rdi
and rax, r14
cmp rax, qword [0x140380a88]
jne 0x140117975
mov rcx, rdi
call fcn.140025b30
mov qword [rbx + 0x20], rdi
mov word [rbx + 0x28], r13w
mov word [rbx + 0x2a], bp
lea r8, [rsp + 0x30]
mov qword [r8], 0
lea r9, [rsp + 0x9c]
mov dword [r9], 0xaaaaaaaa
lea rdx, [0x140315b12]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140117a0c
mov rdi, qword [rsp + 0x30]
and r14, rdi
cmp r14, qword [0x140380a88]
jne 0x1401179c9
mov rcx, rdi
call fcn.140025b30
mov qword [rbx + 0x30], rdi
mov qword [rsi], rbx
jmp 0x14011787e
mov rax, rdi
add rax, r12
je 0x1401179ed
mov byte [rax], 0
inc r12
cmp r14, r12
jne 0x1401179d5
jmp 0x1401178cb
ud2
mov qword [rsi], 0
test rdi, rdi
je 0x14011787e
mov rcx, rdi
call fcn.14016b3e8
jmp 0x14011787e
int3
Function at 0x140127a80
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.1401172b0
mov qword [rsi], 0
test rax, rax
je 0x140127ad3
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140127b07
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140127acb
mov qword [rsi], rbx
call fcn.140125140
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.140125dc0
lea rcx, [rsi + 0x20]
call fcn.140135110
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
mov al, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.140125140
mov rcx, qword [rsi]
call fcn.140113500
mov qword [rsi], 0
jmp 0x140127ab9