joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff74197c30
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov eax, dword [rsp + 0x90]
mov rbp, r9
mov r13, r8
mov r14d, edx
mov rbx, rcx
cmp eax, 0x11
je 0x7ff741a16c6
xor r15d, r15d
cmp eax, r15d
mov edi, r15d
mov ecx, r15d
sete dil
cmp eax, 1
mov esi, r15d
sete cl
cmp eax, 0x10
sete sil
cmp rbx, r15
je 0x7ff741a16bc
cmp qword [rbx], r15
jne 0x7ff74197ca0
cmp qword [rbx + 0x10], r15
je 0x7ff741a16bc
cmp edi, r15d
jne 0x7ff74197cb3
cmp ecx, r15d
jne 0x7ff74197cb3
cmp esi, r15d
je 0x7ff741a16bc
mov r12d, dword [r9]
cmp ecx, r15d
jne 0x7ff7419801c
cmp edi, r15d
jne 0x7ff7419801c
mov eax, 2
jmp 0x7ff74197ccf
cmp esi, r15d
je 0x7ff74198046
mov r9d, dword [rbx + 0x220]
lea r8, [rbx + 0x20]
lea rdx, [rbx + 0x18]
lea rcx, [rbx + 0x10]
mov dword [rsp + 0x20], r15d
call fcn.7ff7418c1a0
cmp eax, r15d
jne 0x7ff74197d27
mov qword [rsp + 0x38], r15
mov dword [rbp], r12d
mov rcx, qword [rbx + 0x10]
mov qword [rsp + 0x30], r15
mov r9, rbp
mov r8, r13
mov edx, r14d
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumKeyExW]
jmp 0x7ff74197d27
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov r9d, dword [rbx + 0x220]
lea r8, [rbx + 0x20]
lea rdx, [rbx + 8]
mov rcx, rbx
mov dword [rsp + 0x20], r15d
call fcn.7ff7418c1a0
cmp eax, r15d
jne 0x7ff74197ccf
jmp 0x7ff741a1690
cmp edi, r15d
je 0x7ff74197d27
cmp eax, r15d
je 0x7ff74197d27
cmp eax, 0xea
je 0x7ff74197d27
cmp eax, 0x103
jne 0x7ff74197cd8
jmp 0x7ff74197d27
mov rcx, qword [rbx]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov r9, rbp
mov r8, r13
mov edx, r14d
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumKeyExW]
nop
jmp 0x7ff74197ccf
mov eax, 0x57
jmp 0x7ff74197d27
mov eax, 0x78
jmp 0x7ff74197d27
Function at 0x7ff74198b70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x7ff741e77a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x7ff741a2c2f
mov ecx, dword [0x7ff741e77a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11 + 0x10]
xor eax, eax
jmp 0x7ff74198baa
add rsp, 0x20
pop rbx
ret
mov eax, 1
jmp 0x7ff74198baa

Function at 0x7ff7419a7d0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x1470]
xor esi, esi
mov edi, 0x80004001
cmp rcx, rsi
jne 0x7ff741a5a21
mov rcx, qword [rbx + 0x1468]
cmp rcx, rsi
jne 0x7ff741a5a35
cmp word [rbx + 0x1260], si
jne 0x7ff741a5a5d
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, edi
add rsp, 0x20
pop rdi
ret
mov qword [rbx + 0x1470], rsi
mov rax, qword [rcx]
call qword [rax + 0x48]
mov edi, eax
jmp 0x7ff7419a816
call fcn.7ff741bb2e8
mov rcx, qword [rbx + 0x1468]
cmp rcx, rsi
je 0x7ff7419a809
mov qword [rbx + 0x1468], rsi
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
jmp 0x7ff7419a809
lea rcx, [rbx + 0x1260]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov word [rbx + 0x1260], si
mov edi, esi
jmp 0x7ff7419a816
Function at 0x7ff7419b310
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov rax, qword [0x7ff741e7790]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r13d, r13d
mov rsi, rdx
mov rdi, rcx
mov r12d, r13d
cmp rdx, r13
je 0x7ff741a3103
cmp rcx, r13
je 0x7ff7419b352
cmp dword [rdx], r13d
jbe 0x7ff7419b352
mov word [rcx], r13w
lea rax, [rsp + 0x38]
lea rdx, str.SoftwareMicrosoftInternet_ExplorerInternational
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExA]
mov ebx, eax
cmp eax, r13d
jne 0x7ff7419b3ce
mov ebp, dword [rsi]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x34]
lea eax, [rbp + rbp]
lea rdx, [0x7ff741dc148]
xor r8d, r8d
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov ebx, eax
cmp eax, r13d
je 0x7ff741a310d
mov ebx, 3
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov ebp, 0x80070000
cmp ebx, 3
jne 0x7ff7419b42a
mov ebx, dword [rsi]
cmp rdi, r13
je 0x7ff741a318f
cmp ebx, r13d
jbe 0x7ff741a318f
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
xor r9d, r9d
mov r8d, ebx
mov ecx, eax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_LCIDToLocaleName]
cmp eax, r13d
je 0x7ff741a316f
mov ecx, r13d
jmp 0x7ff7419b411
movzx ebx, cx
cmp ebx, r13d
jne 0x7ff741a3199
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [rsi], eax
jmp 0x7ff7419b42a
cmp r12d, r13d
jne 0x7ff741a31a1
movzx eax, bx
or eax, ebp
cmp ebx, r13d
cmovle eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.7ff741947a0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, 0x80070057
jmp 0x7ff7419b43e
mov eax, dword [rsp + 0x30]
shr eax, 1
dec eax
cmp dword [rsp + 0x34], 1
mov dword [rsi], eax
jne 0x7ff741a3157
cmp rdi, r13
je 0x7ff7419b3c3
cmp word [rdi], r13w
jne 0x7ff741a3138
mov r12d, 1
jmp 0x7ff7419b3c3
cmp ebp, r13d
jbe 0x7ff7419b3c3
mov rcx, rdi
mov word [rdi + rbp*2 - 2], r13w
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [rsi], eax
jmp 0x7ff7419b3c3
mov rcx, qword [rsp + 0x38]
lea rdx, str.AcceptLanguage
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteValueA]
nop
jmp 0x7ff7419b3be
call fcn.7ff7418a670
movzx ecx, ax
or ecx, ebp
cmp eax, r13d
cmovle ecx, eax
mov eax, 0x80004005
cmp ecx, r13d
cmovge ecx, eax
jmp 0x7ff7419b411
mov ecx, 0x80070057
jmp 0x7ff7419b411
mov dword [rsi], r13d
jmp 0x7ff7419b42a
mov eax, 1
jmp 0x7ff7419b43e
Function at 0x7ff7419b6e0
Capabilities:
Check if file exists
Get file attributes
Set file attributes
Timestomp file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x7ff741e7790]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor ebp, ebp
mov rbx, rcx
mov edi, ebp
cmp rcx, rbp
je 0x7ff7419b833
cmp word [rcx], bp
je 0x7ff7419b833
call fcn.7ff7419b864
cmp eax, ebp
jne 0x7ff741a1076
mov qword [rsp + 0x30], rbp
lea r8, [0x7ff741dc168]
lea rdx, [0x7ff741d0370]
mov r9d, 0xffff
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x28], rbp
mov esi, 1
mov qword [rsp + 0x20], rbp
call sym.SHLWAPI.dll_SHRegGetValueW
lea ecx, [rsi + 3]
cmp eax, ebp
cmove esi, ecx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x7ff7419b80a
test al, 0x10
je 0x7ff7419b80a
and eax, 0xfffffffa
mov rcx, rbx
or eax, esi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, eax
cmp eax, ebp
je 0x7ff7419b80a
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
xor r9d, r9d
mov qword [rsp + 0x30], rbp
lea r8d, [r9 + 5]
mov edx, 0x80000100
mov rcx, rbx
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x7ff7419b7f5
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
mov r8, rbx
mov ecx, 0x2000
lea edx, [r9 + 5]
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
lea r8, [0x7ff741dc1a0]
lea rcx, [rsp + 0x50]
mov rdx, rbx
call sym.SHLWAPI.dll_PathCombineW
cmp rax, rbp
je 0x7ff7419b833
lea rcx, [rsp + 0x50]
mov edx, 6
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, edi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.7ff741947a0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea edi, [rbp + 1]
jmp 0x7ff7419b80a
Function at 0x7ff7419b864
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x7ff741e7790]
xor rax, rsp
mov qword [rsp + 0x440], rax
xor ebx, ebx
mov rdi, rcx
cmp qword [0x7ff741e77c8], rbx
jne 0x7ff7419b8bd
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, ebx
je 0x7ff7419b8bd
cmp eax, 0x104
jae 0x7ff7419b8bd
lea rcx, [rsp + 0x20]
call sym.SHLWAPI.dll_StrDupW
mov qword [0x7ff741e77c8], rax
mov rax, qword [0x7ff741e77d0]
cmp rax, rbx
jne 0x7ff7419b905
lea rcx, [rsp + 0x230]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
je 0x7ff741a1060
cmp eax, 0x104
jae 0x7ff741a1060
lea rcx, [rsp + 0x230]
call sym.SHLWAPI.dll_StrDupW
mov qword [0x7ff741e77d0], rax
jmp 0x7ff7419b905
mov rcx, qword [0x7ff741e77c8]
cmp rcx, rbx
je 0x7ff7419b929
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, ebx
je 0x7ff741a106c
mov rax, qword [0x7ff741e77d0]
cmp rax, rbx
je 0x7ff7419b942
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, ebx
je 0x7ff741a106c
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.7ff741947a0
mov rbx, qword [rsp + 0x468]
add rsp, 0x450
pop rdi
ret
mov rax, qword [0x7ff741e77d0]
jmp 0x7ff7419b905
mov ebx, 1
jmp 0x7ff7419b942

Function at 0x7ff7419bda8
Capabilities:
Encrypt data using chaskey
Hash data using murmur3
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov dword [rbp - 8], 0x113e841
jmp 0x7ff74186989

Function at 0x7ff7419d30c
Capabilities:
Encrypt data using chaskey
Hash data using murmur3
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov dword [rbp - 8], 0x113e841
jmp 0x7ff7418108b

Function at 0x7ff7419d380
Capabilities:
Access peb ldr_data
Encode data using xor
Encrypt data using chaskey
Hash data using murmur3
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov dword [rbp - 8], 0x113e841
jmp 0x7ff74187cc4
Function at 0x7ff7419f290
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov rax, qword [0x7ff741e7790]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebp, ecx
xor ebx, ebx
mov r12, r8
lea eax, [rbp + 0x10]
mov r13d, edx
cmp eax, ecx
jb 0x7ff741a5f71
lea r8d, [rbx + 4]
xor r9d, r9d
xor edx, edx
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rsi, rax
cmp rax, rbx
je 0x7ff7419f361
lea edx, [rbx + 6]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
cmp rax, rbx
je 0x7ff7419f356
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rdi], ebp
mov dword [rdi + 4], 0xbaff1aff
mov dword [rdi + 0xc], r13d
mov dword [rdi + 8], eax
cmp r12, rbx
jne 0x7ff741a5f5c
lea rax, [rsp + 0x30]
xor r9d, r9d
mov r8d, 0xf001f
mov edx, r13d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.7ff7419f390
cmp eax, ebx
jl 0x7ff7419f34d
movzx ebx, word [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x7ff7419f361
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.7ff741947a0
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rdi + 0x10]
mov r8, rbp
mov rdx, r12
call sub.ntdll.dll_memcpy
nop
jmp 0x7ff7419f326
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
jmp 0x7ff7419f361

Function at 0x7ff741a7ffc
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x7ff741e7790]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor ebx, ebx
mov rsi, rdx
mov rdi, rcx
cmp rdx, rbx
je 0x7ff741a802d
or dword [rdx], 0xffffffff
cmp rcx, rbx
je 0x7ff741a80cf
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov rcx, rdi
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp rsi, rbx
je 0x7ff741a8053
mov dword [rsi], eax
cmp eax, 0xffffffff
jne 0x7ff741a80c2
mov rcx, rdi
call sym.SHLWAPI.dll_PathIsUNCServerA
cmp eax, ebx
jne 0x7ff741a8070
mov rcx, rdi
call sym.SHLWAPI.dll_PathIsUNCServerShareA
cmp eax, ebx
je 0x7ff741a80c7
xor edx, edx
lea rcx, [rsp + 0x34]
lea r8d, [rdx + 0x2c]
call sub.ntdll.dll_memset
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x34], ebx
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x20], 0x100
mov qword [rsp + 0x28], rbx
call sub.MPR.dll_WNetGetResourceInformationA
cmp eax, ebx
je 0x7ff741a80c2
cmp eax, 0xea
jne 0x7ff741a80c7
mov ebx, 1
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.7ff741947a0
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x170
pop rdi
pop rsi
pop rbp
ret
Function at 0x7ff741a80fc
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x7ff741e7790]
xor rax, rsp
mov qword [rsp + 0x170], rax
lea rax, [rdx - 5]
mov esi, r9d
mov dword [rsp + 0x20], r8d
mov rdi, rdx
mov rbp, rcx
cmp rsi, rax
jae 0x7ff741a82aa
lea rbx, [rsi + rcx]
mov qword [rsp + 0x28], rbx
call sym.SHLWAPI.dll_PathFindFileNameA
and dword [rsp + 0x30], 0
mov ecx, ebx
xor edx, edx
mov r8d, 0x13c
sub ecx, eax
mov r14d, 7
mov dword [rsp + 0x24], ecx
lea rcx, [rsp + 0x34]
call sub.ntdll.dll_memset
sub rdi, rsi
mov r15d, 0x7ffffffe
je 0x7ff741a81c4
cmp rdi, 0x7fffffff
ja 0x7ff741a81c4
lea r10, [0x7ff741de018]
mov r9, r15
mov r8, rdi
sub r9, rdi
sub r10, rbx
mov rdx, rbx
lea rax, [r9 + r8]
test rax, rax
je 0x7ff741a81b9
mov al, byte [r10 + rdx]
test al, al
je 0x7ff741a81b9
mov byte [rdx], al
inc rdx
sub r8, 1
jne 0x7ff741a819d
test r8, r8
jne 0x7ff741a81c1
dec rdx
mov byte [rdx], 0
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x7ff741a82a7
mov r15d, dword [rsp + 0x20]
lea rbx, str..pif
mov ebp, r15d
mov r15d, dword [rsp + 0x24]
xor esi, esi
mov r12, rbx
test bpl, 1
jne 0x7ff741a8203
cmp esi, 6
jne 0x7ff741a8216
mov rdx, qword [r12]
lea rcx, [rsp + r15 + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x7ff741a8223
inc esi
add r12, 8
shr ebp, 1
cmp esi, 7
jb 0x7ff741a81f8
lea rdx, [rsp + 0x30]
cmp esi, r14d
mov rcx, r13
cmovb r14d, esi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
mov r15d, dword [rsp + 0x20]
test eax, eax
jne 0x7ff741a81eb
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x28]
mov r15d, 0x7ffffffe
cmp r14d, 7
jae 0x7ff741a82a7
lea rcx, str..pif
mov rcx, qword [rcx + r14*8]
test rdi, rdi
je 0x7ff741a82a0
cmp rdi, 0x7fffffff
ja 0x7ff741a82a0
sub r15, rdi
sub rcx, rbx
lea rax, [r15 + rdi]
test rax, rax
je 0x7ff741a8295
mov al, byte [rbx + rcx]
test al, al
je 0x7ff741a8295
mov byte [rbx], al
inc rbx
sub rdi, 1
jne 0x7ff741a827a
test rdi, rdi
jne 0x7ff741a829d
dec rbx
mov byte [rbx], 0
mov eax, 1
jmp 0x7ff741a82ac
mov byte [rbx], 0
xor eax, eax
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.7ff741947a0
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x7ff741a8f5c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x7ff741e7790]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
test rcx, rcx
je 0x7ff741a9009
call sym.SHLWAPI.dll_PathIsUNCServerA
test eax, eax
jne 0x7ff741a9009
mov rcx, rbx
call sym.SHLWAPI.dll_PathIsUNCServerShareA
test eax, eax
je 0x7ff741a9024
lea rcx, [rsp + 0x34]
xor edx, edx
mov r8d, 0x1fc
call sub.ntdll.dll_memset
and qword [rsp + 0x28], 0
and dword [rsp + 0x34], 0
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x20], 0x200
mov dword [rsp + 0x30], 2
mov qword [rsp + 0x48], rbx
call sub.MPR.dll_WNetGetResourceInformationA
test eax, eax
jne 0x7ff741a9024
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x7ff741a9024
cmp eax, 3
jne 0x7ff741a9009
mov ecx, dword [rsp + 0x34]
mov eax, 1
test ecx, ecx
je 0x7ff741a900b
cmp ecx, eax
je 0x7ff741a900b
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.7ff741947a0
add rsp, 0x240
pop rbx
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x7ff741a9009
and eax, 0x10
jmp 0x7ff741a900b

Function at 0x7ff741a9040
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x7ff741e7790]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor ebx, ebx
test rcx, rcx
je 0x7ff741a90dd
mov rdx, rcx
lea r8, [0x7ff741de028]
lea rcx, [rsp + 0x160]
call sym.SHLWAPI.dll_PathCombineA
test rax, rax
je 0x7ff741a90dd
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x7ff741a90dd
mov ebx, 1
cmp byte [rsp + 0x4c], 0x2e
jne 0x7ff741a90d2
mov cl, byte [rsp + 0x4d]
test cl, cl
je 0x7ff741a90be
cmp cl, 0x2e
jne 0x7ff741a90d2
cmp byte [rsp + 0x4e], 0
jne 0x7ff741a90d2
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x7ff741a90d4
jmp 0x7ff741a90a3
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.7ff741947a0
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret
Function at 0x7ff741a9d88
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x7ff741e7790]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor ebx, ebx
mov rdi, rcx
cmp qword [0x7ff741e84f0], rbx
jne 0x7ff741a9de1
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp eax, ebx
je 0x7ff741a9de1
cmp eax, 0x104
jae 0x7ff741a9de1
lea rcx, [rsp + 0x20]
call sym.SHLWAPI.dll_StrDupA
mov qword [0x7ff741e84f0], rax
mov rax, qword [0x7ff741e84f8]
cmp rax, rbx
jne 0x7ff741a9e28
lea rcx, [rsp + 0x130]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, ebx
je 0x7ff741a9e21
cmp eax, 0x104
jae 0x7ff741a9e21
lea rcx, [rsp + 0x130]
call sym.SHLWAPI.dll_StrDupA
mov qword [0x7ff741e84f8], rax
jmp 0x7ff741a9e28
mov rax, qword [0x7ff741e84f8]
mov rcx, qword [0x7ff741e84f0]
cmp rcx, rbx
je 0x7ff741a9e48
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
cmp eax, ebx
je 0x7ff741a9e5d
mov rax, qword [0x7ff741e84f8]
cmp rax, rbx
je 0x7ff741a9e62
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
cmp eax, ebx
jne 0x7ff741a9e62
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.7ff741947a0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x7ff741a9e8c
Capabilities:
Check if file exists
Get file attributes
Set file attributes
Timestomp file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x7ff741e7790]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x7ff741a9fdf
cmp byte [rcx], dil
je 0x7ff741a9fdf
call fcn.7ff741a9d88
test eax, eax
je 0x7ff741a9eda
mov edi, 1
jmp 0x7ff741a9fb6
and qword [rsp + 0x30], rdi
and qword [rsp + 0x28], rdi
and qword [rsp + 0x20], rdi
lea r8, str.UseSystemForSystemFolders
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorer
mov r9d, 0xffff
mov rcx, 0xffffffff80000002
call sym.SHLWAPI.dll_SHRegGetValueA
mov esi, 1
lea ecx, [rsi + 3]
test eax, eax
cmove esi, ecx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x7ff741a9fb6
test al, 0x10
je 0x7ff741a9fb6
and eax, 0xfffffffa
mov rcx, rbx
or eax, esi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, eax
test eax, eax
je 0x7ff741a9fb6
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
and qword [rsp + 0x30], 0
xor r9d, r9d
lea r8d, [r9 + 5]
mov edx, 0x80000100
mov rcx, rbx
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x7ff741a9fa1
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
mov r8, rbx
mov ecx, 0x2000
lea edx, [r9 + 1]
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
lea r8, str.desktop.ini
lea rcx, [rsp + 0x50]
mov rdx, rbx
call sym.SHLWAPI.dll_PathCombineA
test rax, rax
je 0x7ff741a9fdf
lea rcx, [rsp + 0x50]
mov edx, 6
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, edi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.7ff741947a0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x7ff741aa00c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x7ff741aa03e
cmp byte [rcx], 0
je 0x7ff741aa03e
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x7ff741aa03e
test al, 0x10
je 0x7ff741aa03e
and eax, 0xfffffffa
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x7ff741aa040
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x7ff741aa04c
Capabilities:
Get file attributes

Disassembly:
sub rsp, 0x28
mov eax, edx
test rcx, rcx
je 0x7ff741aa062
cmp byte [rcx], 0
je 0x7ff741aa062
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x7ff741aa076
test al, 0x10
je 0x7ff741aa076
test al, 5
je 0x7ff741aa076
mov eax, 1
jmp 0x7ff741aa078
xor eax, eax
add rsp, 0x28
ret