joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012a52
Capabilities:
Persist via run registry key

Disassembly:
mov qword [rsp + 8], rcx
xor rax, rax
push rax
push rax
sub rsp, 0x28
mov rax, qword [rsp + 0x60]
mov qword [0x14002aec0], rax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.14001ffc0
add rsp, 0x10
push qword [0x14002aec0]
push qword [0x14002aec0]
movabs rax, 0x140025052
push rax
push qword [rsp + 0x40]
movabs rax, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push rax
movabs rax, 0x80000001
push rax
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.14000e0be
add rsp, 0x28
lea rcx, [rsp + 0x30]
pop rdx
call fcn.14001fe80
push qword [0x14002aec0]
sub rsp, 8
push qword [0x14002aec0]
movabs rax, str._::
push rax
push 1
push qword [rsp + 0x50]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.140016850
add rsp, 0x28
lea rcx, [rsp + 0x38]
pop rdx
call fcn.14001fe80
mov rcx, qword [rsp + 0x30]
push qword [0x14002aec0]
sub rsp, 0x28
call fcn.14001ff50
add rsp, 0x28
pop rax
add rax, qword [0x14002aed0]
jmp 0x140012b49
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.140020090
add rsp, 0x28
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.140020090
add rsp, 0x28
pop rax
add rsp, 0x38
ret
Function at 0x1400160b4
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
lea rcx, [rsp + 0x20]
mov ebx, 0xc8
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1400161c9
mov eax, dword [rsp + 0x30]
dec eax
je 0x1400161a6
dec eax
jne 0x1400161c9
lea rcx, [rsp + 0xc0]
xor edi, edi
mov dword [rsp + 0xc0], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x140016121
lea eax, [rdi + 1]
cmp byte [rsp + 0x15a], al
cmove edi, eax
mov eax, dword [rsp + 0x24]
sub eax, 3
je 0x14001619f
dec eax
je 0x140016198
dec eax
je 0x14001616e
dec eax
jne 0x1400161c9
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x140016162
dec eax
je 0x140016156
dec eax
jne 0x1400161c9
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x5f
jmp 0x1400161c9
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x55
jmp 0x1400161c9
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x4b
jmp 0x1400161c9
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x140016191
dec eax
je 0x14001618a
dec eax
jne 0x1400161c9
neg edi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x41
jmp 0x1400161c9
mov ebx, 0x3c
jmp 0x1400161c9
mov ebx, 0x32
jmp 0x1400161c9
mov ebx, 0x14
jmp 0x1400161c9
mov ebx, 5
jmp 0x1400161c9
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x1400161c4
cmp eax, 0xa
je 0x1400161bd
cmp eax, 0x5a
jne 0x1400161c9
lea ebx, [rax - 0x32]
jmp 0x1400161c9
mov ebx, 0x1e
jmp 0x1400161c9
mov ebx, 0xa
movsxd rax, ebx
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret

Function at 0x140018aa8
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140018b1f
movsxd rdx, ecx
lea rcx, [0x140018a04]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x14002ad28]
test rbx, rbx
je 0x140018b92
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140018b15
cmp byte [rbx + 0x20], 0
je 0x140018b15
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x140018adb
jmp 0x140018b92
mov rbx, qword [0x14002ad28]
test rbx, rbx
je 0x140018b92
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140018b8a
cmp byte [rbx + 0x21], 0
je 0x140018b4e
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140018b7a
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.DLL_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x14002ad28]
call fcn.14001f8c8
mov rbx, rdi
test rdi, rdi
jne 0x140018b2b
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140018c6c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
xor r8d, r8d
xor edx, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ebp, ebp
mov edi, eax
test eax, eax
je 0x140018c9a
dec edi
mov edx, ebx
mov ecx, edi
call fcn.140020170
lea r8d, [rdi + 1]
mov rcx, rsi
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rsi, qword [rsp + 0x40]
movsxd r11, edi
mov word [rbx + r11*2], bp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140018cd4
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
mov rax, rdx
test rcx, rcx
je 0x140018cf4
test rax, rax
lea rdx, [0x140023fcc]
cmovne rdx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret

Function at 0x140018da0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x14002aef0]
call fcn.14001f784
xor r12d, r12d
or esi, 0xffffffff
mov rbp, rax
mov ebx, r12d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
movzx edx, word [rax]
test dx, dx
je 0x140018e80
mov rcx, qword [rsp + 0x40]
cmp dx, 0x20
jne 0x140018df4
add rax, 2
cmp word [rax], 0x20
je 0x140018dea
movzx edx, word [rax]
mov r8d, 1
cmp dx, 0x22
jne 0x140018e38
add rax, 2
mov rbx, rax
movzx ecx, word [rax]
test cx, cx
je 0x140018e33
cmp cx, 0x22
je 0x140018e24
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140018e12
cmp word [rax], r12w
je 0x140018e33
mov rcx, rax
add rax, 2
jmp 0x140018e60
mov rcx, rax
jmp 0x140018e60
test dx, dx
je 0x140018e5d
mov rbx, rax
cmp dx, 0x20
je 0x140018e52
add rax, 2
movzx edx, word [rax]
test dx, dx
jne 0x140018e40
mov rcx, rax
cmp word [rax], r12w
je 0x140018e60
jmp 0x140018e2d
mov r8d, r12d
cmp dword [rbp], esi
jne 0x140018e6a
test rdi, rdi
jne 0x140018e8a
test r8d, r8d
je 0x140018e71
inc esi
movzx edx, word [rax]
mov rbx, r12
test dx, dx
jne 0x140018de4
test rdi, rdi
jne 0x140018e9f
movsxd rax, esi
jmp 0x140018ea2
test rbx, rbx
je 0x140018e9f
sub rcx, rbx
mov rax, rbx
sar rcx, 1
mov dword [rdi], ecx
inc dword [rbp]
jmp 0x140018ea2
mov dword [rdi], r12d
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret

Function at 0x140018f94
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x14002aef0]
call fcn.14001f784
xor ecx, ecx
add rsp, 0x28
jmp fcn.140018da0
Function at 0x140019670
Capabilities:
Read file on windows

Disassembly:
test byte [rcx + 0x28], 0x80
mov r8d, edx
mov edx, 0x19
je 0x140019685
mov edx, 0x18
jmp 0x14001969f
test dword [rcx + 0x28], 0x100
je 0x140019695
mov edx, 2
jmp 0x14001969f
test dword [rcx + 0x28], 0x200
cmovne edx, edx
mov rcx, qword [rcx + 0x18]
jmp 0x140019718
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
xor eax, eax
mov r14, rcx
mov ecx, 0x1000
mov r13d, r8d
mov edi, edx
mov esi, ecx
mov r12d, eax
mov r15d, eax
cmp edx, 0x18
je 0x14001982c
cmp edx, 0x19
je 0x14001982c
mov rcx, qword [0x14002a940]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r9, [rbp - 0x14]
lea r8d, [r15 + 2]
lea rdx, [rbp - 0x18]
xor edi, edi
mov rcx, r14
mov rbx, rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140019815
mov r15, qword [rbp + 0x48]
xor r13d, r13d
mov r14d, esi
cmp dword [rbp - 0x14], 2
jne 0x14001980f
test esi, esi
jne 0x1400197cf
mov rcx, qword [0x14002a940]
movsxd r9, r14d
lea edx, [rsi + 8]
add r9, r9
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, 0x1000
mov rbx, rax
movzx eax, word [rbp - 0x18]
cmp ax, 0xa
je 0x14001980f
cmp ax, 0xd
je 0x1400197ef
mov word [rdi + rbx], ax
inc r12d
inc r14d
add rdi, 2
dec esi
lea r9, [rbp - 0x14]
lea rdx, [rbp - 0x18]
mov r8d, 2
mov rcx, r15
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400197a4
mov r13d, dword [rbp + 0x58]
xor edi, edi
movsxd rax, r12d
mov edx, r13d
mov rcx, rbx
mov word [rbx + rax*2], di
call fcn.140020cd0
jmp 0x1400198f1
mov r8, rcx
mov rcx, qword [0x14002a940]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and qword [rsp + 0x20], r12
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r14
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400198d3
mov r13, qword [rbp + 0x48]
mov r14d, esi
xor edi, edi
cmp dword [rbp - 0x14], 1
jne 0x1400198cc
test esi, esi
jne 0x140019892
mov rcx, qword [0x14002a940]
lea edx, [rsi + 8]
movsxd r9, r14d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, 0x1000
mov rbx, rax
mov al, byte [rbp + 0x60]
cmp al, 0xa
je 0x1400198cc
cmp al, 0xd
je 0x1400198ac
mov byte [r15 + rbx], al
inc r12d
inc r14d
inc r15
dec esi
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r13
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001986a
mov edi, dword [rbp + 0x50]
mov r13d, dword [rbp + 0x58]
movsxd rax, r12d
mov edx, r13d
mov rcx, rbx
mov byte [rax + rbx], 0
cmp edi, 0x18
jne 0x1400198ec
call fcn.140020e00
jmp 0x1400198f1
call fcn.140021050
mov rcx, qword [0x14002a940]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140019718
Capabilities:
Read file on windows

Disassembly:
test byte [rcx + 0x28], 0x80
mov r8d, edx
mov edx, 0x19
je 0x140019685
mov edx, 0x18
jmp 0x14001969f
test dword [rcx + 0x28], 0x100
je 0x140019695
mov edx, 2
jmp 0x14001969f
test dword [rcx + 0x28], 0x200
cmovne edx, edx
mov rcx, qword [rcx + 0x18]
jmp 0x140019718
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
xor eax, eax
mov r14, rcx
mov ecx, 0x1000
mov r13d, r8d
mov edi, edx
mov esi, ecx
mov r12d, eax
mov r15d, eax
cmp edx, 0x18
je 0x14001982c
cmp edx, 0x19
je 0x14001982c
mov rcx, qword [0x14002a940]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r9, [rbp - 0x14]
lea r8d, [r15 + 2]
lea rdx, [rbp - 0x18]
xor edi, edi
mov rcx, r14
mov rbx, rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140019815
mov r15, qword [rbp + 0x48]
xor r13d, r13d
mov r14d, esi
cmp dword [rbp - 0x14], 2
jne 0x14001980f
test esi, esi
jne 0x1400197cf
mov rcx, qword [0x14002a940]
movsxd r9, r14d
lea edx, [rsi + 8]
add r9, r9
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, 0x1000
mov rbx, rax
movzx eax, word [rbp - 0x18]
cmp ax, 0xa
je 0x14001980f
cmp ax, 0xd
je 0x1400197ef
mov word [rdi + rbx], ax
inc r12d
inc r14d
add rdi, 2
dec esi
lea r9, [rbp - 0x14]
lea rdx, [rbp - 0x18]
mov r8d, 2
mov rcx, r15
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400197a4
mov r13d, dword [rbp + 0x58]
xor edi, edi
movsxd rax, r12d
mov edx, r13d
mov rcx, rbx
mov word [rbx + rax*2], di
call fcn.140020cd0
jmp 0x1400198f1
mov r8, rcx
mov rcx, qword [0x14002a940]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and qword [rsp + 0x20], r12
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r14
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400198d3
mov r13, qword [rbp + 0x48]
mov r14d, esi
xor edi, edi
cmp dword [rbp - 0x14], 1
jne 0x1400198cc
test esi, esi
jne 0x140019892
mov rcx, qword [0x14002a940]
lea edx, [rsi + 8]
movsxd r9, r14d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, 0x1000
mov rbx, rax
mov al, byte [rbp + 0x60]
cmp al, 0xa
je 0x1400198cc
cmp al, 0xd
je 0x1400198ac
mov byte [r15 + rbx], al
inc r12d
inc r14d
inc r15
dec esi
lea r9, [rbp - 0x14]
lea rdx, [rbp + 0x60]
mov r8d, 1
mov rcx, r13
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001986a
mov edi, dword [rbp + 0x50]
mov r13d, dword [rbp + 0x58]
movsxd rax, r12d
mov edx, r13d
mov rcx, rbx
mov byte [rax + rbx], 0
cmp edi, 0x18
jne 0x1400198ec
call fcn.140020e00
jmp 0x1400198f1
call fcn.140021050
mov rcx, qword [0x14002a940]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140019c6c
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x14002af90]
call fcn.14001f784
mov rcx, rax
add rsp, 0x28
jmp 0x140019914
Function at 0x14001c07c
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
mov edx, ecx
mov ebx, 0x104
mov ecx, ebx
call fcn.140020170
mov ecx, ebx
mov rdx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, str.Kernel32.DLL
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor r12d, r12d
mov rbp, rax
test rax, rax
je 0x14001c0f6
lea rdx, str.GetLongPathNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001c0ed
mov r8d, ebx
mov rdx, rsi
mov rcx, rsi
call rax
mov edi, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
sub ebx, edi
mov ecx, ebx
call fcn.140020310
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
movsxd r11, edi
mov rdi, qword [rsp + 0x48]
mov word [rsi + r11*2], r12w
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r12
ret

Function at 0x14001c140
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
lea rbp, [rsp - 0x380]
sub rsp, 0x480
or rbx, 0xffffffffffffffff
xor esi, esi
test rcx, rcx
je 0x14001c294
cmp word [rcx], si
je 0x14001c294
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_wcsncpy
lea rcx, [rsp + 0x20]
mov word [rbp + 0x128], si
call sub.msvcrt.dll_wcslen
mov r11, rax
cdqe
lea rcx, [rsp + rax*2 + 0x1e]
cmp r11d, 2
je 0x14001c1ac
cmp r11d, 3
jne 0x14001c1eb
cmp word [rsp + 0x22], 0x3a
jne 0x14001c1eb
cmp r11d, 2
jne 0x14001c1cb
lea rdx, [0x1400240e4]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14001c294
jmp 0x14001c26c
mov word [rcx], si
sub rcx, 2
cmp word [rcx], 0x5c
je 0x14001c1e4
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x14001c238
test byte [rbp + 0x130], 0x10
je 0x14001c21d
mov rbx, 0xfffffffffffffffe
jmp 0x14001c230
mov ebx, dword [rbp + 0x14c]
mov eax, dword [rbp + 0x150]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14001c294
cmp word [rsp + 0x20], 0x5c
jne 0x14001c248
cmp word [rsp + 0x22], 0x5c
je 0x14001c258
cmp word [rsp + 0x20], 0x2e
jne 0x14001c294
cmp word [rsp + 0x22], 0x2e
jne 0x14001c294
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001c275
test al, 0x10
je 0x14001c294
mov rbx, 0xfffffffffffffffe
jmp 0x14001c294
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov rcx, rbx
mov rbx, 0xfffffffffffffffe
cmp eax, 1
cmova rcx, rbx
mov rbx, rcx
lea r11, [rsp + 0x480]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14001c3f8
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor ebx, ebx
mov rsi, r8
mov rbp, rdx
cmp qword [0x14002ad48], rbx
mov r13, rcx
jne 0x14001c43f
lea r8, [fcn.14001c3b4]
lea edx, [rbx + 0x10]
mov ecx, 0x260
call fcn.14001f708
mov qword [0x14002ad48], rax
test rbp, rbp
lea rdi, [0x140023fcc]
cmovne rdi, rbp
test rsi, rsi
je 0x14001c457
cmp word [rsi], bx
jne 0x14001c45e
lea rsi, [0x1400240e8]
mov rcx, rdi
call sub.msvcrt.dll_wcslen
mov rcx, rsi
mov r12, rax
call sub.msvcrt.dll_wcslen
mov rcx, qword [0x14002a940]
lea eax, [rax + r12 + 2]
xor edx, edx
movsxd r8, eax
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14001c53a
mov rdx, rdi
mov rcx, rax
call sub.msvcrt.dll_wcscpy
test r12d, r12d
je 0x14001c4c1
movsxd rax, r12d
cmp word [rdi + rax*2 - 2], 0x5c
je 0x14001c4c1
lea rdx, [0x1400240e4]
mov rcx, rbp
call sub.msvcrt.dll_wcscat
mov rdx, rsi
mov rcx, rbp
call sub.msvcrt.dll_wcscat
mov rcx, qword [0x14002ad48]
mov rdx, r13
call fcn.14001f5bc
mov rcx, rbp
lea rdx, [rax + 0xc]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x14001c4f9
mov dword [rdi + 8], ebx
jmp 0x14001c50b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14001c510
mov dword [rdi + 8], 1
mov rbx, rdi
jmp 0x14001c528
cmp r13, 0xffffffffffffffff
jne 0x14001c525
mov rcx, qword [0x14002ad48]
mov rdx, rdi
call fcn.14001f6c8
mov qword [rdi], rbx
mov rcx, qword [0x14002a940]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x14001c5cc
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x28
xor eax, eax
test rcx, rcx
je 0x14001c5dd
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cdqe
add rsp, 0x28
ret

Function at 0x14001c5e4
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14001c5f7
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cdqe
jmp 0x14001c5f9
xor eax, eax
add rsp, 0x28
ret

Function at 0x14001c600
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14001c62b
test dl, 2
je 0x14001c61e
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
jmp 0x14001c62d
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor edx, edx
jmp 0x14001c600

Function at 0x14001c634
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14001c62b
test dl, 2
je 0x14001c61e
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
jmp 0x14001c62d
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor edx, edx
jmp 0x14001c600
Function at 0x14001c63c
Capabilities:
Copy file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14001c657
test rdx, rdx
je 0x14001c657
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cdqe
jmp 0x14001c659
xor eax, eax
add rsp, 0x28
ret
Function at 0x14001c95c
Capabilities:
Timestomp file

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x50
xor edi, edi
movsxd rbx, r8d
mov r12d, edx
test rcx, rcx
je 0x14001ca5e
mov qword [rax - 0x38], rdi
lea r8d, [rdi + 3]
mov dword [rax - 0x40], 0x80
xor r9d, r9d
mov edx, 0x40000000
mov dword [rax - 0x48], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14001ca5e
mov rcx, rbx
call fcn.14001ed84
mov rcx, rbx
mov word [rbp - 0x10], ax
call fcn.14001edc0
mov rcx, rbx
mov word [rbp - 0xe], ax
call fcn.14001edf8
mov rcx, rbx
mov word [rbp - 0xc], ax
call fcn.14001ee30
mov rcx, rbx
mov word [rbp - 0xa], ax
call fcn.14001ee68
mov rcx, rbx
mov word [rbp - 8], ax
call fcn.14001eea0
mov rcx, rbx
mov word [rbp - 6], ax
call fcn.14001eed8
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x10]
mov word [rbp - 2], di
mov word [rbp - 4], ax
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov r8d, edi
mov r9d, edi
cmp r12d, 1
jne 0x14001ca37
lea r8, [rbp + 0x20]
jmp 0x14001ca47
cmp r12d, 2
jne 0x14001ca43
lea r9, [rbp + 0x20]
jmp 0x14001ca47
lea rdi, [rbp + 0x20]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rsi
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x50]
movsxd rax, edi
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret

Function at 0x14001cae0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x14001cb26
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r11d, dword [rbx + 0x10]
movsxd rax, dword [rsp + 0x40]
mov dword [rbx + 0x14], r11d
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret

Function at 0x14001d240
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x14001d2b8
test r8d, r8d
je 0x14001d2b8
mov rdx, rcx
mov rcx, qword [0x14002afc0]
call fcn.14001f65c
test rax, rax
je 0x14001d2b4
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x14001d2a1
mov rcx, rax
call fcn.14001dd50
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret