joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140058da4
Capabilities:
Get file attributes
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x1400c5a08]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r15, qword [rsp + 0xf0]
mov rbp, rdx
lea rdx, [rsp + 0x48]
mov r14, r9
mov edi, r8d
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x140058eba
mov ecx, dword [rsp + 0x48]
shr ecx, 9
and ecx, 1
je 0x140058e87
xor edx, edx
mov ecx, 1
test edi, edi
je 0x140058e25
mov rax, rbp
cmp byte [rax], 0
jne 0x140058e23
inc edx
inc rax
cmp edx, edi
jb 0x140058e13
jmp 0x140058e25
xor ecx, ecx
test ecx, ecx
je 0x140058e87
mov ebx, 1
mov dword [rsp + 0x20], 0x23
lea r8, [rsp + 0x30]
mov rcx, rsi
lea rdx, [rsp + 0x38]
lea r9d, [rbx + 7]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
test eax, eax
js 0x140058e66
xor ecx, ecx
cmp dword [rsp + 0x34], 0x80000008
setne cl
jmp 0x140058e87
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor ebx, ebx
lea ecx, [rbx + 1]
test ebx, ebx
je 0x140058eba
test ecx, ecx
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r9, r14
mov r8d, edi
je 0x140058ea9
lea rdx, [rsp + 0x48]
call fcn.140058bcc
jmp 0x140058eb8
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140094220
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140058ee4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
mov rdi, r9
and dword [rax - 0x28], ebx
mov ebp, r8d
mov r14, rdx
mov rsi, rcx
cmp dword [rsp + 0x80], ebx
je 0x140058f28
mov qword [rax - 0x38], r9
lea r9, [rax - 0x28]
call fcn.140058da4
jmp 0x140058fb1
cmp dword [0x1400c99e8], ebx
je 0x140058f92
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
and dword [rsp + 0x80], ebx
lea rdx, [rsp + 0x80]
mov rcx, rsi
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
nop dword [rax + rax]
test eax, eax
jne 0x140058f92
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rax, qword [0x1400c99d0]
lea r9, [rsp + 0x30]
mov r8d, ebp
mov qword [rsp + 0x20], rdi
mov rdx, r14
mov rcx, rsi
call qword [str.PN_t_]
jmp 0x140058fb1
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
mov r8d, ebp
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x140059032
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r14d, 0x80070000
mov r15d, 0x80004005
mov ecx, eax
movzx eax, ax
or eax, r14d
test ecx, ecx
cmovle eax, ecx
test eax, eax
jns 0x140058ff7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
jmp 0x140058ffa
mov ebx, r15d
test rdi, rdi
je 0x1400590b3
cmp ebx, 0x800703e5
jne 0x1400590b3
mov r9d, 1
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
nop dword [rax + rax]
test eax, eax
je 0x14005906e
xor ebx, ebx
cmp ebp, dword [rsp + 0x30]
je 0x140059052
mov ebx, 0x8007000d
mov r8d, 0x174
mov r9d, ebx
lea rcx, str.ReadWriteDataInternal
call fcn.140066474
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, r14d
test ecx, ecx
cmovle eax, ecx
test eax, eax
jns 0x1400590a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
jmp 0x1400590a7
mov ebx, r15d
test ebx, ebx
jns 0x140059032
mov r8d, 0x164
jmp 0x140059043
test ebx, ebx
jns 0x140059032
mov r8d, 0x16b
jmp 0x140059043
Function at 0x14005afd0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x60
mov r12, rcx
xor esi, esi
call fcn.140059380
xor edi, edi
mov rbx, rax
test rax, rax
je 0x14005b192
mov rcx, rbx
call fcn.1400595b4
and al, 3
cmp al, 2
jne 0x14005b18d
lea r8, [rsp + 0x98]
mov edx, 1
mov rcx, rbx
call fcn.14005df70
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14005b189
lea rdx, [rbx + 0x18]
lea rcx, [rbx + 0x10]
call fcn.140064ab0
mov esi, eax
test eax, eax
je 0x14005b12a
mov r9, qword [rbx + 0x20]
mov rcx, rbp
mov r8, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x1f0]
call fcn.140064c38
mov esi, eax
test eax, eax
je 0x14005b12a
and qword [rsp + 0xa0], rdi
lea rdx, [rsp + 0xa0]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop dword [rax + rax]
mov rcx, rbx
call fcn.1400595b4
mov rcx, rbx
mov r15d, eax
call fcn.140059f4c
mov rdx, qword [rsp + 0x98]
add rax, 0x30
mov qword [rsp + 0x40], rax
mov r9d, 2
and dword [rsp + 0x28], edi
mov r8, rbp
mov rcx, r12
call fcn.14005f79c
mov esi, eax
test eax, eax
je 0x14005b0e3
mov rcx, rbx
call fcn.1400595b4
test al, 2
je 0x14005b0f1
test r15b, 2
jne 0x14005b0f1
mov edx, 2
mov rcx, rbx
call fcn.1400596cc
jmp 0x14005b0f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov r8, qword [0x1400c99f8]
xor edx, edx
mov rcx, rbx
call fcn.140059dd4
mov rcx, rbx
mov r8, rax
call fcn.140059734
mov rcx, rax
mov rdx, r8
call fcn.140053274
mov rcx, rbx
call fcn.140059734
mov rcx, rax
call fcn.1400533a0
jmp 0x14005b138
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
cmp qword [rsp + 0x98], 0
je 0x14005b177
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, qword [rsp + 0x98]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test edi, edi
je 0x14005b189
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, esi
jmp 0x14005b192
mov eax, 1
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005c1ac
Capabilities:
Hash data via bcrypt

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 8], 0
mov rdi, r8
and qword [rbp - 0x10], 0
mov r14d, edx
and dword [rbp + 0x30], 0
mov r15, rcx
test rcx, rcx
je 0x14005c350
test edx, edx
je 0x14005c350
test r8, r8
je 0x14005c350
xorps xmm0, xmm0
lea rdx, str.SHA1
movups xmmword [r8], xmm0
xor eax, eax
lea rcx, [rbp - 8]
mov dword [r8 + 0x10], eax
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x14005c355
and dword [rsp + 0x28], 0
lea rax, [rbp + 0x48]
mov rcx, qword [rbp - 8]
lea r8, [rbp + 0x30]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea rdx, str.ObjectLength
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x14005c338
mov ebx, dword [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rsi, rax
neg rax
sbb ebx, ebx
not ebx
and ebx, 0xc0000017
test rsi, rsi
je 0x14005c338
and dword [rsp + 0x30], 0
lea rdx, [rbp - 0x10]
and dword [rsp + 0x28], 0
mov r8, rsi
mov r9d, dword [rbp + 0x30]
mov rcx, qword [rbp - 8]
and qword [rsp + 0x20], 0
call qword [sym.imp.bcrypt.dll_BCryptCreateHash]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x14005c318
mov rcx, qword [rbp - 0x10]
xor r9d, r9d
mov r8d, r14d
mov rdx, r15
call qword [sym.imp.bcrypt.dll_BCryptHashData]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x14005c308
mov rcx, qword [rbp - 0x10]
xor r9d, r9d
mov rdx, rdi
lea r8d, [r9 + 0x14]
call qword [sym.imp.bcrypt.dll_BCryptFinishHash]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.bcrypt.dll_BCryptDestroyHash]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rcx, qword [rbp - 8]
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
nop dword [rax + rax]
test ebx, ebx
jns 0x14005c371
jmp 0x14005c355
mov ebx, 0xc000000d
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
not ebx
shr ebx, 0x1f
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005e068
Capabilities:
Clear file content
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rdi, r8
mov r14, rdx
mov rbx, rcx
xor esi, esi
lea rax, [rdx + 1]
test rax, 0xfffffffffffffffe
jne 0x14005e0a1
test r8, r8
je 0x14005e280
test rdi, rdi
je 0x14005e246
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov edx, 8
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rsi, rax
or r15d, 0xffffffff
mov eax, r15d
test rbx, rbx
je 0x14005e0df
mov eax, dword [rbx]
mov r12d, 0xfeedf002
cmp eax, r12d
jne 0x14005e246
test rsi, rsi
je 0x14005e246
mov rcx, rdi
call fcn.14005a378
mov qword [rsi], rax
test rax, rax
je 0x14005e246
lea rax, [r14 + 1]
test rax, 0xfffffffffffffffe
jne 0x14005e155
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 7]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
cmp rax, 0xffffffffffffffff
je 0x14005e246
mov r14, rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
nop dword [rax + rax]
test eax, eax
je 0x14005e246
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
nop dword [rax + rax]
test eax, eax
je 0x14005e246
mov rdi, rbx
mov eax, r15d
test rbx, rbx
je 0x14005e198
mov eax, dword [rbx]
cmp eax, r12d
je 0x14005e1a1
xor edi, edi
jmp 0x14005e1ba
mov rax, qword [rbx + 0x40]
jmp 0x14005e1ae
mov rdi, rax
mov rax, qword [rax + 0x40]
test rax, rax
jne 0x14005e1a7
add rdi, 0x208
mov qword [rsp + 0x68], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
nop
mov rax, rbx
mov ecx, r15d
test rbx, rbx
je 0x14005e1dc
mov ecx, dword [rbx]
cmp ecx, r12d
je 0x14005e1e5
xor eax, eax
jmp 0x14005e1fa
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x14005e1f3
mov rax, rcx
jmp 0x14005e1e5
mov rax, qword [rax + 0xe8]
mov qword [rsi + 8], rax
test rbx, rbx
je 0x14005e206
mov r15d, dword [rbx]
cmp r15d, r12d
jne 0x14005e220
mov rax, qword [rbx + 0x40]
test rax, rax
je 0x14005e219
mov rbx, rax
jmp 0x14005e20b
mov qword [rbx + 0xe8], rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
or r14, 0xffffffffffffffff
xor edi, edi
xor esi, esi
lea rax, [r14 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14005e25f
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test rdi, rdi
je 0x14005e273
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test rsi, rsi
je 0x14005e280
mov rcx, rsi
call fcn.14005e2a4
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x14005e2a4
Capabilities:
Delete file

Disassembly:
test rcx, rcx
je 0x14005e331
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, qword [rbx]
mov rsi, qword [rbx + 8]
test rdi, rdi
je 0x14005e2fa
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rbx, rsi
test rsi, rsi
jne 0x14005e2bf
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400655e0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, rdx
mov rdi, rcx
xor esi, esi
lea rdx, [rbp - 0x41]
and qword [rbp - 0x41], rsi
xor ebx, ebx
and qword [rbp - 0x29], rsi
mov rcx, rax
mov r12, r8
mov qword [rbp - 0x21], rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop dword [rax + rax]
test eax, eax
je 0x140065814
lea rdx, [rbp - 0x29]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop dword [rax + rax]
test eax, eax
je 0x140065814
mov rax, qword [rbp - 0x29]
cmp qword [rbp - 0x41], rax
jne 0x140065814
and dword [rbp - 0x49], ebx
xorps xmm0, xmm0
and qword [rbp - 0x31], rbx
and qword [rbp - 0x39], rbx
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
test rdi, rdi
je 0x140065814
mov rax, qword [rdi + 0x180]
mov r13, qword [rdi + 0x188]
mov qword [rbp + 7], rax
test rax, rax
je 0x140065814
test r13, r13
je 0x140065814
lea rax, [rbp + 0x7f]
mov rcx, rdi
lea r9, [rbp - 0x39]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x31]
lea esi, [rbx + 1]
call fcn.1400598b8
test eax, eax
je 0x140065814
cmp qword [rbp - 0x31], rbx
je 0x140065814
cmp qword [rbp - 0x39], rbx
je 0x140065814
mov rax, qword [rbp - 0x41]
test rax, rax
je 0x140065814
mov ecx, dword [rbp - 0x49]
lea r9, [rbp + 0x7f]
mov edi, dword [rbp - 0x49]
cmp rcx, rax
mov rdx, qword [rbp - 0x31]
mov rcx, qword [rbp + 0x6f]
cmovg edi, eax
and dword [rbp + 0x7f], 0
xor esi, esi
and qword [rbp + 0xf], rsi
mov rax, rbx
and qword [rbp + 0x17], rsi
mov r8d, edi
shr rax, 0x20
mov dword [rbp + 0x23], eax
mov rax, qword [rbp + 7]
mov qword [rbp + 0x27], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x1f], ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x140065754
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x3e5
jne 0x1400657f8
mov eax, dword [rbp - 0x1d]
lea r9, [rbp + 0x7f]
mov rdx, qword [rbp - 0x39]
mov r8d, edi
and qword [rbp - 0x19], rsi
mov rcx, r12
and qword [rbp - 0x11], rsi
mov dword [rbp - 5], eax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov dword [rbp - 9], ebx
mov qword [rbp - 1], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x1400657a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x3e5
jne 0x1400657f8
mov rcx, qword [rbp + 0x6f]
lea r8, [rbp + 0x7f]
mov r9d, 1
lea rdx, [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
nop dword [rax + rax]
mov r9d, 1
lea r8, [rbp + 0x7f]
lea rdx, [rbp - 0x19]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
nop dword [rax + rax]
mov rdx, qword [rbp - 0x39]
mov rcx, qword [rbp - 0x31]
mov r8d, edi
call sub.msvcrt.dll_memcmp
test eax, eax
mov eax, 1
cmove esi, eax
mov rax, qword [rbp - 0x41]
mov ecx, edi
add rbx, rcx
sub rax, rcx
mov qword [rbp - 0x21], rbx
mov qword [rbp - 0x41], rax
test esi, esi
jne 0x1400656dd
mov rbx, qword [rsp + 0xe0]
mov eax, esi
add rsp, 0xb0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140065fbc
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor esi, esi
mov rdi, rcx
mov ebx, esi
test rcx, rcx
je 0x14006605e
cmp word [rcx], si
je 0x14006605e
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
mov qword [rsp + 0x30], rsi
lea r8d, [rsi + 7]
mov dword [rsp + 0x28], 0x6200000
xor r9d, r9d
mov edx, 0x10000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
cmp rax, 0xffffffffffffffff
je 0x14006603c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14006605a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
je 0x14006605a
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebx
jmp 0x140066071
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140067184
Capabilities:
Hash data via bcrypt

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov r14, qword [rbp + 0x60]
xor r13d, r13d
mov rdi, r9
mov rbx, r8
mov r10, rcx
mov r12d, 1
test r14, r14
je 0x1400671d1
xorps xmm0, xmm0
xor eax, eax
movups xmmword [r14], xmm0
mov dword [r14 + 0x10], eax
test rbx, rbx
je 0x1400673a5
mov qword [rbp - 0x30], r9
test r14, r14
je 0x140067242
call fcn.1400520c8
lea rdx, [rbp + 0x60]
mov rcx, rax
mov rsi, rax
call fcn.14005215c
mov r15, qword [rbp + 0x60]
mov rcx, rsi
and dword [rsp + 0x30], r13d
mov rdx, r15
and dword [rsp + 0x28], r13d
and qword [rsp + 0x20], r13
mov r9d, dword [r15 + 0x10]
mov r8, qword [r15 + 8]
call qword [sym.imp.bcrypt.dll_BCryptCreateHash]
nop dword [rax + rax]
test eax, eax
jns 0x14006722f
mov ecx, 7
int 0x29
mov r10, qword [rbp + 0x40]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [r14], xmm0
mov dword [r14 + 0x10], eax
jmp 0x140067246
mov r15, qword [rbp + 0x60]
test rbx, rbx
je 0x14006734a
cmp dword [rbp + 0x54], 0
mov esi, dword [rbp + 0x70]
jne 0x14006725d
cmp esi, ebx
cmova esi, ebx
test rdi, rdi
je 0x1400672b6
movabs rax, 0x6666666666666667
imul rdi
sar rdx, 0x16
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rcx, [rdx + rdx*4]
shl rcx, 0x15
cmp rdi, rcx
jne 0x1400672b6
xor r9d, r9d
xor r8d, r8d
mov edx, 0x948e
mov rcx, r10
call fcn.1400586fc
cmp eax, 0xffffffff
jne 0x1400672b6
mov ecx, 0x4d3
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor r12d, r12d
test r12d, r12d
je 0x14006732b
mov eax, dword [rbp - 0x2c]
lea r9, [rbp - 0x28]
mov rdx, qword [rbp + 0x68]
mov r8d, esi
mov rcx, qword [rbp + 0x48]
and qword [rbp - 0x28], 0
and qword [rbp - 0x20], 0
and qword [rbp - 0x10], 0
and dword [rsp + 0x20], 0
mov dword [rbp - 0x14], eax
mov dword [rbp - 0x18], edi
call fcn.1400590cc
test eax, eax
je 0x14006732b
mov eax, esi
add rdi, rax
sub rbx, rax
mov qword [rbp - 0x30], rdi
mov qword [rbp + 0x50], rbx
test r14, r14
je 0x14006733d
mov rdx, qword [rbp + 0x68]
xor r9d, r9d
mov rcx, qword [r15]
mov r8d, esi
call qword [sym.imp.bcrypt.dll_BCryptHashData]
nop dword [rax + rax]
test eax, eax
jns 0x14006733d
mov ecx, 7
int 0x29
jmp 0x14006733d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r13d, eax
xor r12d, r12d
mov r10, qword [rbp + 0x40]
test r12d, r12d
jne 0x140067246
test r14, r14
je 0x140067391
mov rcx, qword [r15]
xor r9d, r9d
mov rdx, r14
lea r8d, [r9 + 0x14]
call qword [sym.imp.bcrypt.dll_BCryptFinishHash]
nop dword [rax + rax]
test eax, eax
jns 0x140067373
mov ecx, 7
int 0x29
mov rcx, qword [r15]
call qword [sym.imp.bcrypt.dll_BCryptDestroyHash]
nop dword [rax + rax]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
test r13d, r13d
je 0x1400673a5
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rbx, qword [rsp + 0xc8]
mov eax, r12d
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006819c
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov r8d, dword [rcx + 8]
mov rbx, rcx
mov eax, 1
test r8d, r8d
je 0x1400681fe
and dword [rsp + 0x40], 0
lea rdx, [rcx + 0x18]
mov rcx, qword [rcx]
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
je 0x1400681fe
mov ecx, dword [rbx + 8]
cmp dword [rsp + 0x40], ecx
je 0x1400681f6
mov ecx, 0xea
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
test eax, eax
je 0x1400681fe
and dword [rbx + 8], 0
add rsp, 0x30
pop rbx
ret

Function at 0x1400682b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov eax, dword [rcx + 8]
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
mov r14, r8
mov ebx, r9d
sub rcx, rax
mov rsi, rdx
lea rbp, [rdx + rbx]
cmp rdx, qword [rdi + 0x10]
ja 0x1400683cd
cmp rbp, qword [rdi + 0x10]
ja 0x1400683cd
cmp rcx, rdx
mov rax, rcx
cmovbe rax, rsi
cmova rdx, rcx
cmp rax, rbp
jae 0x140068322
sub ebp, edx
mov rdx, rax
sub rax, rcx
mov r8d, ebp
sub rdx, rsi
lea rcx, [rdi + 0x18]
add rdx, r14
add rcx, rax
call sub.msvcrt.dll_memcpy
sub ebx, ebp
xor ebp, ebp
test ebx, ebx
je 0x1400683c6
mov rdx, qword [0x1400c99f8]
lea r9d, [rbp + 1]
mov rcx, qword [rdi]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x50], rbp
mov dword [rsp + 0x68], ebp
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
nop dword [rax + rax]
test eax, eax
je 0x1400683de
mov rcx, qword [rdi]
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
nop dword [rax + rax]
test eax, eax
je 0x1400683de
mov rcx, qword [rdi]
lea r9, [rsp + 0x68]
mov r8d, ebx
mov qword [rsp + 0x20], rbp
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
je 0x1400683de
mov rdx, qword [rsp + 0x50]
xor r9d, r9d
mov rcx, qword [rdi]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
nop dword [rax + rax]
test eax, eax
je 0x1400683de
cmp dword [rsp + 0x68], ebx
je 0x1400683c6
mov ecx, 0xea
jmp 0x1400683d2
mov eax, 1
jmp 0x1400683e0
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x1400683fc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400c5a08]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edx, dword [0x1400c5a78]
xor ebx, ebx
mov edi, ecx
lea esi, [rbx + 1]
cmp edx, 0xffffffff
jne 0x14006849e
xorps xmm0, xmm0
lea r8d, [rbx + 0x10]
lea rdx, [rsp + 0x28]
lea rcx, str.WIM_Enumerate_Directory_Reparse_Point
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
mov dword [rsp + 0x20], eax
dec eax
cmp eax, 0xf
ja 0x14006848c
lea r8, [rsp + 0x20]
lea rdx, [0x1400afbe8]
lea rcx, [rsp + 0x28]
call qword [sym.imp.msvcrt.dll_swscanf_s]
nop dword [rax + rax]
mov edx, dword [0x1400c5a78]
test eax, eax
cmovg edx, dword [rsp + 0x20]
jmp 0x140068492
mov edx, dword [0x1400c5a78]
cmp edx, 0xffffffff
cmove edx, esi
mov dword [0x1400c5a78], edx
test edx, edx
je 0x1400684b2
bt edi, 0x1c
jb 0x1400684b0
cmp edi, 0x80000018
jne 0x1400684b2
mov ebx, esi
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140094220
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret