joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004cc60
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x14004cc60
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 0x14004cc81
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x14004cca1
cmp byte [r14 + 0x50], 1
je 0x14004cd2c
or edi, 0x20000000
test dil, 8
jne 0x14004cd37
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x14004ccbf
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x14004ccd0
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 1
je 0x14004cd5e
cmp byte [r14 + 0x18], 1
je 0x14004cd6f
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x14004cd7f
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 0x14004cd54
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 0x14004cca1
cmp byte [r14 + 0x68], 1
jne 0x14004cd49
or edi, 0x40000000
jmp 0x14004ccab
or edi, 0x10000000
jmp 0x14004ccab
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14004cd17
lea rcx, [r14 + 0x20]
call fcn.140039f40
mov r15, rax
jmp 0x14004ccdb
mov rcx, r14
call fcn.140039f40
mov r9, rax
jmp 0x14004cce9
cmp ebx, 4
jne 0x14004cd8e
mov edx, 6
jmp 0x14004ccf6
lea eax, [rbx - 2]
cmp eax, 2
jae 0x14004cda0
mov edx, 7
jmp 0x14004ccf6
cmp ebx, 1
jne 0x14004cdaf
mov edx, 4
jmp 0x14004ccf6
xor edx, edx
jmp 0x14004ccf6

Function at 0x14004cdc0
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 0x14004cdf8
cmp byte [r15 + 0x50], 1
je 0x14004ce8f
or edi, 0x20000000
test dil, 8
jne 0x14004ce9a
xor r14d, r14d
cmp byte [r15 + 0x60], 0
mov r12d, 0
je 0x14004ce16
mov r12, qword [r15 + 0x58]
cmp byte [r15 + 0x48], 0
mov r13d, 0
je 0x14004ce27
mov r13, qword [r15 + 0x40]
cmp byte [r15 + 0x38], 1
je 0x14004cec1
cmp byte [r15 + 0x18], 1
je 0x14004ced2
xor r9d, r9d
cmp ebx, 4
jne 0x14004ce80
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 0x14004ceb7
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 0x14004cee2
mov edx, 7
jmp 0x14004ce4a
or edi, 0x80000000
jmp 0x14004cdf8
cmp byte [r15 + 0x68], 1
jne 0x14004ceac
or edi, 0x40000000
jmp 0x14004ce02
or edi, 0x10000000
jmp 0x14004ce02
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14004ce6b
lea rcx, [r15 + 0x20]
call fcn.140039f40
mov r14, rax
jmp 0x14004ce32
mov rcx, r15
call fcn.140039f40
mov r9, rax
jmp 0x14004ce40
mov edx, 1
test ebx, ebx
je 0x14004ce4a
cmp ebx, 1
jne 0x14004cefe
mov edx, 4
jmp 0x14004ce4a
xor edx, edx
jmp 0x14004ce4a
Function at 0x14004e4f0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x14004e567
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x14011ecf0], rax
jne 0x14004e56a
mov rsi, rcx
call fcn.140057050
mov edx, 0x570
mov rcx, rax
xor r8d, r8d
call fcn.14004f060
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.14004e580
mov ecx, dword [0x140131140]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x14012ada8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x160], rdi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
int3
int3

Function at 0x1400528b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14011c040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
cmovae r8, rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140052910
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x140052919
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400863f0
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x1400528f9
int3
mov rcx, qword [rcx + 8]
jmp 0x1400528b0

Function at 0x140052920
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 [0x14011c040]
xor rax, rsp
mov ebx, 0xffffffff
cmp r8, rbx
cmovb rbx, r8
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
mov r12, qword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r15
test eax, eax
je 0x1400529c6
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1400529b2
cmp eax, 0xffffffff
je 0x1400529c3
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400863f0
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
call r12
cmp eax, 3
je 0x140052961
mov eax, dword [rsp + 0x2c]
jmp 0x140052992
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x140052994

Function at 0x140052eb0
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rdi, rcx
mov rax, qword [0x14011c040]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.140052db0
test rax, rax
jne 0x140052eef
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x140052f0b
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400863f0
mov eax, esi
add rsp, 0x168
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14006e070
test al, al
je 0x140052f61
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_file_io_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0xfc
mov r9d, 2
call fcn.1400d4a30
lea rcx, [rsp + 0x38]
lea rdx, [0x14010b2a2]
mov r8d, 0xc
call fcn.140058f60
mov rcx, rsi
call fcn.1400d4aa0
xor esi, esi
jmp 0x140052eef
Function at 0x1400533d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14011c040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
cmovae r8, rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140052910
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x140052919
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400863f0
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x1400528f9
int3
mov rcx, qword [rcx + 8]
jmp 0x1400528b0

Function at 0x1400564c0
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 [0x14011c040]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x140056490]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x140131ee0]
lea rdx, [0x140056330]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400565b8
cmp dword [0x140131ee8], 0
jne 0x1400565c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x140131eec]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x14005656c
mov ecx, 1
mov edx, 0x28
call fcn.140034890
test rax, rax
je 0x1400565c5
mov r14, rax
mov ecx, dword [0x140131eec]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400565bd
lea r15, [0x140131ef0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x140131f00]
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.1400863f0
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14009ce4c
mov rcx, r14
call fcn.1400347f0
mov rcx, rsi
mov rax, rdi
call qword [0x140111288]
xor esi, esi
jmp 0x14005659c

Function at 0x140056f50
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x140131f58], 0
jne 0x140056f8d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140056f80
mov dword [rdi], eax
mov dword [0x140131f60], eax
mov qword [0x140131f58], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x140061120
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 0x14006121e
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x1400f9dc0]
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 0x140061190
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
pmovzxdq xmm3, qword [0x1400f9de0]
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 0x1400612ae
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 0x140061284
pmovzxdq xmm1, qword [0x1400f9de0]
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 [0x1400f9dd0], 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 0x1400679e0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x140067a7a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140067a64
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140067a41
mov qword [rsi], rdi
call fcn.1400736e0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 0
inc rax
cmp rax, 1
jbe 0x140067a7e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400736e0
mov rcx, qword [rsi]
call fcn.1400736f0
mov qword [rsi], 0
jmp 0x140067a2f
mov byte [rsi + 8], 0
int3
Function at 0x140068940
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 [0x14011c040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x1400f6a90]
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.1400736c0
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
call fcn.140073b00
mov dword [rsp + 0x2c], 0xaaaaaaaa
cmp byte [rbx + 0x17], 0
jns 0x1400689c6
mov rbx, qword [rbx]
lea rdx, [rsp + 0x2c]
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
jne 0x140068a0f
mov qword [rsi], 0
lea rcx, [rsp + 0x50]
call fcn.140073b80
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400863f0
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.140085054
mov rdi, rax
lea r15, [rax + r14]
xor r12d, r12d
jmp 0x140068b35
mov edx, dword [rsp + 0x2c]
mov rcx, rbx
mov r8d, ebp
mov r9, rdi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140068b4f
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 0x140068b4f
mov r14, qword [rsp + 0x30]
test r14, r14
je 0x140068b4f
add r12, rdi
mov ecx, 0x38
call fcn.140085054
mov rbx, rax
movzx r13d, word [r14]
movzx ebp, word [r14 + 2]
lea rax, fcn.140026e90
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 [0x14011ec08]
jne 0x140068ad5
mov rcx, rdi
call fcn.1400193c0
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, [0x1400fc392]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140068b6c
mov rdi, qword [rsp + 0x30]
and r14, rdi
cmp r14, qword [0x14011ec08]
jne 0x140068b29
mov rcx, rdi
call fcn.1400193c0
mov qword [rbx + 0x30], rdi
mov qword [rsi], rbx
jmp 0x1400689de
mov rax, rdi
add rax, r12
je 0x140068b4d
mov byte [rax], 0
inc r12
cmp r14, r12
jne 0x140068b35
jmp 0x140068a2b
ud2
mov qword [rsi], 0
test rdi, rdi
je 0x1400689de
mov rcx, rdi
call fcn.140085090
jmp 0x1400689de
int3
Function at 0x140073720
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14011c040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14012e740]
mov ecx, dword [0x14012ada8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140073780
mov rsi, qword [0x14012e738]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400863f0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14012e740]
call fcn.1400850dc
cmp dword [0x14012e740], 0xffffffff
jne 0x14007375c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400ba050
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, 0x88
call fcn.140085054
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14012e788]
mov ecx, dword [0x14012ada8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140073840
lea r8, [0x14012e758]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140038110
mov qword [0x14012e738], rsi
lea rcx, [0x14012e740]
call fcn.140085190
jmp 0x14007375c
lea rcx, [0x14012e788]
call fcn.1400850dc
cmp dword [0x14012e788], 0xffffffff
jne 0x140073811
xorps xmm0, xmm0
movups xmmword [0x14012e778], xmm0
movups xmmword [0x14012e768], xmm0
movups xmmword [0x14012e758], xmm0
lea rcx, [0x14012e758]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14012e788]
call fcn.140085190
jmp 0x140073811

Function at 0x140074800
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.1400746c0
mov qword [rsi], 0
test rax, rax
je 0x140074853
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140074887
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14007484b
mov qword [rsi], rbx
call fcn.1400736e0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.14006f340
lea rcx, [rsi + 0x20]
call fcn.14007eef0
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.1400736e0
mov rcx, qword [rsi]
call fcn.1400736f0
mov qword [rsi], 0
jmp 0x140074839
Function at 0x1400823a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x14011c040]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x140056490]
mov qword [rsp + 0x20], rax
lea rcx, [0x140131ee0]
lea rdx, [0x140056330]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140082434
cmp dword [0x140131ee8], 0
jne 0x140082430
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x140131eec]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x140082430
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400863f0
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x140082418
call fcn.14009ce4c
int3

Function at 0x1400858b4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400858fe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400858fe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400858fe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400858fe
cmp dword [rcx + 0x84], 0xe
jbe 0x1400858fe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140085900
xor al, al
add rsp, 0x28
ret

Function at 0x140085c10
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140085c88
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140085c88
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140085c88
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140085c7c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140085c9a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140085c6a
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140085c8a
Function at 0x140097f30
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x140097f30
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140097f9f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140097f9f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140097f9f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140097f9f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140097f9f
cmp dword [rcx + 0x84], 0xe
jbe 0x140097f9f
cmp dword [rcx + 0xf8], 0
je 0x140097f9f
mov ecx, ebx
call fcn.140097e68
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400980c4
nop
cmp dword [rbp + 0x20], 0
je 0x140097fed
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140097efc
int3

Function at 0x14009af24
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14011c040]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1400ee978]
mov rbp, rcx
call fcn.1400acd0c
xor edi, edi
test rax, rax
je 0x14009b00a
mov ebx, edi
call fcn.14009abc0
mov r14d, dword [rax]
call fcn.14009abc0
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.14009f7bc
mov rsi, rax
test rax, rax
je 0x14009af9b
call fcn.14009abc0
mov dword [rax], r14d
jmp 0x14009afc5
call fcn.14009abc0
cmp dword [rax], 0x22
jne 0x14009b002
call fcn.14009abc0
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14009f7bc
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14009b002
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14009afc9
cmp rax, 3
je 0x14009afe4
mov rcx, rsi
call fcn.14009ae80
test al, al
je 0x14009aff5
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14009aff5
mov dil, 1
mov rcx, rbx
call fcn.1400347f0
mov al, dil
jmp 0x14009b00c
mov rcx, rbx
call fcn.1400347f0
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400863f0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret