joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008337
Capabilities:
Get common file path

Disassembly:
jmp 0x14005bbc0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x260
mov rdi, rsp
mov ecx, 0x98
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x270]
mov rax, qword [0x1402840e8]
xor rax, rsp
mov qword [rsp + 0x258], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x20c
rep stosb byte [rdi], al
mov edx, 0x105
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [rsp + 0x244], eax
cmp dword [rsp + 0x244], 0
jbe 0x14005bc83
cmp dword [rsp + 0x244], 0x104
ja 0x14005bc83
mov eax, 2
imul rax, rax, 0x105
mov qword [rsp + 0x250], rax
cmp qword [rsp + 0x250], 0x20c
jae 0x14005bc59
jmp 0x14005bc5e
call fcn.140005038
xor eax, eax
mov rcx, qword [rsp + 0x250]
mov word [rsp + rcx + 0x30], ax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x270]
call fcn.140005731
mov al, 1
jmp 0x14005bc85
xor al, al
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401f6358]
call fcn.14000849f
mov rax, rdi
mov rcx, qword [rsp + 0x258]
xor rcx, rsp
call fcn.1400030d0
add rsp, 0x260
pop rdi
ret

Function at 0x140008634
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400fa420
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
call fcn.1400f94e0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400fa477
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [section..00cfg]
mov r9d, dword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [rsp + 0x28]
jmp 0x1400fa499
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.140004c69
mov r9d, dword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x38
ret

Function at 0x140008abc
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400ffc00
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
je 0x1400ffc95
jmp 0x1400ffc3b
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], si
jne 0x1400ffc2a
lea rax, [rax + rcx*2]
add rax, 2
cmp word [rax], si
jne 0x1400ffc26
sub rax, rbx
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
add rax, 2
mov r9d, 0x40
sar rax, 1
lea edx, [r9 - 0x3e]
lea rbp, [rax + rax]
mov rcx, rbp
call fcn.1400046bf
mov rdi, rax
test rax, rax
je 0x1400ffc80
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call fcn.1400076d5
mov rsi, rdi
mov edx, 2
xor ecx, ecx
call fcn.140007e00
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140018bc0
Capabilities:
Check os version

Disassembly:
jmp 0x140018bc0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x110
mov rdi, rsp
mov ecx, 0x44
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x120]
mov rax, qword [0x1402840e8]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rdi, qword [rsp + 0x120]
xor eax, eax
mov ecx, 0x11c
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x120]
mov dword [rax], 0x11c
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140018d27
mov rax, qword [rsp + 0x120]
cmp dword [rax + 4], 6
ja 0x140018c59
mov rax, qword [rsp + 0x120]
cmp dword [rax + 4], 6
jne 0x140018ccc
mov rax, qword [rsp + 0x120]
cmp dword [rax + 8], 2
jb 0x140018ccc
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x64], 0
mov dword [rsp + 0x84], 0
lea r9, [rsp + 0x84]
lea r8, [rsp + 0x64]
lea rdx, [rsp + 0x44]
lea rcx, [rsp + 0x24]
call fcn.140002676
movzx eax, al
test eax, eax
je 0x140018ccc
mov rax, qword [rsp + 0x120]
mov ecx, dword [rsp + 0x24]
mov dword [rax + 4], ecx
mov rax, qword [rsp + 0x120]
mov ecx, dword [rsp + 0x44]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x120]
mov ecx, dword [rsp + 0x64]
mov dword [rax + 0xc], ecx
mov dword [rsp + 0xa4], 0
mov dword [rsp + 0xc4], 0
mov dword [rsp + 0xe4], 0
lea r8, [rsp + 0xe4]
lea rdx, [rsp + 0xc4]
lea rcx, [rsp + 0xa4]
call fcn.140019c90
movzx eax, al
test eax, eax
je 0x140018d23
mov rax, qword [rsp + 0x120]
mov ecx, dword [rsp + 0xe4]
mov dword [rax + 0xc], ecx
mov al, 1
jmp 0x140018d29
xor al, al
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401dcc30]
call fcn.14000849f
mov rax, rdi
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1400030d0
add rsp, 0x110
pop rdi
ret
Function at 0x140019ae0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x140019ae0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x98
mov rdi, rsp
mov ecx, 0x26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xb0]
mov rax, qword [0x1402840e8]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rcx, [0x1401dc950]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140019b47
xor al, al
jmp 0x140019c54
mov r8d, 0x10
mov edx, 1
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140019c52
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140019c52
lea rax, [rsp + 0x48]
lea rcx, [0x1401dc970]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x20
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x140019c52
mov rax, qword [rsp + 0x78]
add rax, 6
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140019c52
mov rax, qword [rsp + 0x78]
movzx eax, word [rax + 2]
test eax, eax
jle 0x140019c52
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x30]
shr eax, 0x10
and eax, 0xffff
mov rcx, qword [rsp + 0xb0]
mov dword [rcx], eax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x30]
and eax, 0xffff
mov rcx, qword [rsp + 0xb8]
mov dword [rcx], eax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x34]
shr eax, 0x10
and eax, 0xffff
mov rcx, qword [rsp + 0xc0]
mov dword [rcx], eax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x34]
and eax, 0xffff
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov al, 1
jmp 0x140019c54
xor al, al
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401dcfe0]
call fcn.14000849f
mov rax, rdi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400030d0
add rsp, 0x98
pop rdi
pop rsi
ret
Function at 0x14001d9e0
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
jmp 0x14001d9e0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2e0
mov rdi, rsp
mov ecx, 0xb8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2f0]
mov qword [rsp + 0x2d0], 0xfffffffffffffffe
mov rax, qword [0x1402840e8]
xor rax, rsp
mov qword [rsp + 0x2d8], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea rdx, [0x1401de070]
lea rcx, [rsp + 0x48]
call fcn.140001faa
nop
call fcn.140004642
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.140003166
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x48]
call fcn.1400073ce
cmp qword [rsp + 0x40], 0
je 0x14001da85
lea rdx, str.ShellExecuteW
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14001da96
mov eax, dword [rsp + 0x30]
jmp 0x14001dbb9
cmp dword [rsp + 0x30], 0
jne 0x14001dad4
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x2f0]
lea rdx, [0x1401de098]
xor ecx, ecx
call qword [rsp + 0x38]
cmp rax, 0x20
jbe 0x14001dad4
mov dword [rsp + 0x30], 0x10
cmp dword [rsp + 0x30], 0
jne 0x14001dbb5
lea rax, [0x1401de0b0]
mov qword [rsp + 0x78], rax
lea rax, [0x1401de120]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x98], 0
jmp 0x14001db1b
mov rax, qword [rsp + 0x98]
inc rax
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 2
jae 0x14001dbb5
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov r8d, 0x103
lea rdx, [rsp + 0xb0]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + rax*8 + 0x78]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001dbb0
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x2f0]
lea r8, [rsp + 0xb0]
lea rdx, [0x1401de180]
xor ecx, ecx
call qword [rsp + 0x38]
cmp rax, 0x20
jbe 0x14001dbb0
mov dword [rsp + 0x30], 0x10
jmp 0x14001dbb5
jmp 0x14001db08
mov eax, dword [rsp + 0x30]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401de878]
call fcn.14000849f
mov rax, rdi
mov rcx, qword [rsp + 0x2d8]
xor rcx, rsp
call fcn.1400030d0
add rsp, 0x2e0
pop rdi
ret
Function at 0x14001ddf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov rdi, rsp
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
mov rax, qword [0x1402840e8]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x70], 0
je 0x14001de50
cmp dword [rsp + 0x78], 0
je 0x14001de50
cmp qword [rsp + 0x80], 0
je 0x14001de50
cmp qword [rsp + 0x88], 0
jne 0x14001de55
jmp 0x14001df01
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov rdx, qword [rsp + 0x70]
mov word [rdx + rax], cx
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x70]
lea r8, [0x1401ddd98]
mov rdx, qword [rsp + 0x80]
mov rcx, 0xffffffff80000002
call fcn.14001dbf0
movzx eax, al
test eax, eax
je 0x14001deed
lea rdx, [0x1401ddc7c]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14001deeb
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov rdx, qword [rsp + 0x70]
mov word [rdx + rax], cx
jmp 0x14001df01
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov rdx, qword [rsp + 0x70]
mov word [rdx + rax], cx
mov rcx, rsp
lea rdx, [0x1401dea40]
call fcn.14000849f
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400030d0
add rsp, 0x60
pop rdi
ret
Function at 0x140030c90
Capabilities:
Check os version

Disassembly:
jmp 0x140030c90
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x180
mov rdi, rsp
mov ecx, 0x60
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x190]
mov qword [rsp + 0x168], 0xfffffffffffffffe
mov rax, qword [0x1402840e8]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov rcx, qword [rsp + 0x190]
call fcn.140008f7b
nop
mov ecx, 1
call fcn.140003dfa
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x160]
mov qword [rax], rcx
mov rax, qword [rsp + 0x190]
mov rax, qword [rax]
mov byte [rax], 0
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x11c
rep stosb byte [rdi], al
mov dword [rsp + 0x30], 0x11c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140030d69
cmp dword [rsp + 0x34], 6
jb 0x140030d4c
mov byte [rsp + 0x170], 1
jmp 0x140030d54
mov byte [rsp + 0x170], 0
mov rax, qword [rsp + 0x190]
mov rax, qword [rax]
movzx ecx, byte [rsp + 0x170]
mov byte [rax], cl
mov rax, qword [rsp + 0x190]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401e7940]
call fcn.14000849f
mov rax, rdi
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.1400030d0
add rsp, 0x180
pop rdi
ret
Function at 0x14005af80
Capabilities:
Read file on windows

Disassembly:
jmp 0x14005af80
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
jne 0x14005afbc
xor al, al
jmp 0x14005b018
cmp qword [rsp + 0x48], 0
jne 0x14005afc8
xor al, al
jmp 0x14005b018
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
cmp qword [rax], 0xffffffffffffffff
jne 0x14005afda
xor al, al
jmp 0x14005b018
mov rax, qword [rsp + 0x58]
mov dword [rax], 0
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14005b016
xor al, al
jmp 0x14005b018
mov al, 1
add rsp, 0x30
pop rdi
ret

Function at 0x14005b1c0
Capabilities:
Get file size

Disassembly:
jmp 0x14005b1c0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov rdi, rsp
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
mov rax, qword [0x1402840e8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x14005b201
xor al, al
jmp 0x14005b25b
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
cmp qword [rax], 0xffffffffffffffff
jne 0x14005b213
xor al, al
jmp 0x14005b25b
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
lea rdx, [rsp + 0x34]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x14005b242
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14005b242
xor al, al
jmp 0x14005b25b
mov eax, dword [rsp + 0x34]
shl rax, 0x20
mov ecx, dword [rsp + 0x20]
add rax, rcx
mov rcx, qword [rsp + 0x78]
mov qword [rcx], rax
mov al, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401f60d0]
call fcn.14000849f
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400030d0
add rsp, 0x60
pop rdi
ret

Function at 0x14005b700
Capabilities:
Clear file content

Disassembly:
jmp 0x14005b700
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
jne 0x14005b72d
xor al, al
jmp 0x14005b76b
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
cmp qword [rax], 0xffffffffffffffff
jne 0x14005b73f
xor al, al
jmp 0x14005b76b
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14005b75e
mov dword [rsp + 0x20], 1
jmp 0x14005b766
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x14005bbc0
Capabilities:
Get common file path

Disassembly:
jmp 0x14005bbc0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x260
mov rdi, rsp
mov ecx, 0x98
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x270]
mov rax, qword [0x1402840e8]
xor rax, rsp
mov qword [rsp + 0x258], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x20c
rep stosb byte [rdi], al
mov edx, 0x105
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [rsp + 0x244], eax
cmp dword [rsp + 0x244], 0
jbe 0x14005bc83
cmp dword [rsp + 0x244], 0x104
ja 0x14005bc83
mov eax, 2
imul rax, rax, 0x105
mov qword [rsp + 0x250], rax
cmp qword [rsp + 0x250], 0x20c
jae 0x14005bc59
jmp 0x14005bc5e
call fcn.140005038
xor eax, eax
mov rcx, qword [rsp + 0x250]
mov word [rsp + rcx + 0x30], ax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x270]
call fcn.140005731
mov al, 1
jmp 0x14005bc85
xor al, al
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401f6358]
call fcn.14000849f
mov rax, rdi
mov rcx, qword [rsp + 0x258]
xor rcx, rsp
call fcn.1400030d0
add rsp, 0x260
pop rdi
ret

Function at 0x14005bcc0
Capabilities:
Get common file path

Disassembly:
jmp 0x14005bcc0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x260
mov rdi, rsp
mov ecx, 0x98
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x270]
mov rax, qword [0x1402840e8]
xor rax, rsp
mov qword [rsp + 0x258], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x20c
rep stosb byte [rdi], al
mov edx, 0x105
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [rsp + 0x244], eax
cmp dword [rsp + 0x244], 0
jbe 0x14005bd83
cmp dword [rsp + 0x244], 0x104
ja 0x14005bd83
mov eax, 2
imul rax, rax, 0x105
mov qword [rsp + 0x250], rax
cmp qword [rsp + 0x250], 0x20c
jae 0x14005bd59
jmp 0x14005bd5e
call fcn.140005038
xor eax, eax
mov rcx, qword [rsp + 0x250]
mov word [rsp + rcx + 0x30], ax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x270]
call fcn.140005731
mov al, 1
jmp 0x14005bd85
xor al, al
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401f63f0]
call fcn.14000849f
mov rax, rdi
mov rcx, qword [rsp + 0x258]
xor rcx, rsp
call fcn.1400030d0
add rsp, 0x260
pop rdi
ret
Function at 0x14005bf70
Capabilities:
Set file attributes

Disassembly:
jmp 0x14005bf70
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
mov rdi, rsp
mov ecx, 0x20
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1402840e8]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp dword [rsp + 0x98], 0xffffffff
jne 0x14005bfc1
xor al, al
jmp 0x14005c065
mov eax, dword [rsp + 0x98]
and eax, 0xffffb1af
mov dword [rsp + 0x98], eax
mov rcx, qword [rsp + 0x90]
call fcn.140004fac
mov edx, dword [rsp + 0x98]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14005bff9
mov al, 1
jmp 0x14005c065
lea rcx, [rsp + 0x28]
call fcn.1400051eb
nop
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x90]
call fcn.1400038cd
movzx eax, al
test eax, eax
je 0x14005c051
lea rcx, [rsp + 0x28]
call fcn.140004fac
mov edx, dword [rsp + 0x98]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14005c051
mov byte [rsp + 0x60], 1
lea rcx, [rsp + 0x28]
call fcn.1400073ce
movzx eax, byte [rsp + 0x60]
jmp 0x14005c065
mov byte [rsp + 0x61], 0
lea rcx, [rsp + 0x28]
call fcn.1400073ce
movzx eax, byte [rsp + 0x61]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401f64e0]
call fcn.14000849f
mov rax, rdi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400030d0
add rsp, 0x80
pop rdi
ret

Function at 0x14005c0a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x14005c0a0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
mov rdi, rsp
mov ecx, 0x20
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x1402840e8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x90]
call fcn.140004fac
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x14005c142
lea rcx, [rsp + 0x38]
call fcn.1400051eb
nop
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x90]
call fcn.1400038cd
movzx eax, al
test eax, eax
je 0x14005c138
lea rcx, [rsp + 0x38]
call fcn.140004fac
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x38]
call fcn.1400073ce
mov eax, dword [rsp + 0x20]
mov edi, eax
mov rcx, rsp
lea rdx, [0x1401f6570]
call fcn.14000849f
mov eax, edi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400030d0
add rsp, 0x80
pop rdi
ret
Function at 0x14005c320
Capabilities:
Move file

Disassembly:
jmp 0x14005c320
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x120
mov rdi, rsp
mov ecx, 0x48
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x130]
mov qword [rsp + 0xf8], 0xfffffffffffffffe
mov rax, qword [0x1402840e8]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rcx, qword [rsp + 0x138]
call fcn.140004fac
mov qword [rsp + 0x100], rax
mov rcx, qword [rsp + 0x130]
call fcn.140004fac
mov r8d, 0xb
mov rcx, qword [rsp + 0x100]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x14005c3ae
mov al, 1
jmp 0x14005c57a
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x38]
call fcn.1400051eb
nop
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x130]
call fcn.1400038cd
movzx eax, al
test eax, eax
je 0x14005c3dc
mov byte [rsp + 0x20], 1
lea rcx, [rsp + 0x78]
call fcn.1400051eb
nop
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x138]
call fcn.1400038cd
movzx eax, al
test eax, eax
je 0x14005c405
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14005c472
lea rcx, [rsp + 0x78]
call fcn.140004fac
mov qword [rsp + 0x108], rax
lea rcx, [rsp + 0x38]
call fcn.140004fac
mov r8d, 0xb
mov rcx, qword [rsp + 0x108]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x14005c472
mov byte [rsp + 0xf0], 1
lea rcx, [rsp + 0x78]
call fcn.1400073ce
nop
lea rcx, [rsp + 0x38]
call fcn.1400073ce
movzx eax, byte [rsp + 0xf0]
jmp 0x14005c57a
mov rcx, qword [rsp + 0x138]
call fcn.1400029c3
cmp eax, 0xffffffff
je 0x14005c555
mov rdx, qword [rsp + 0x138]
lea rcx, [rsp + 0xb8]
call fcn.1400044f3
nop
lea rcx, [rsp + 0xb8]
call fcn.140001c67
movzx eax, al
test eax, eax
je 0x14005c548
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x138]
call fcn.1400053d0
movzx eax, al
test eax, eax
je 0x14005c548
mov rdx, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x130]
call fcn.1400053d0
movzx eax, al
test eax, eax
je 0x14005c532
lea rcx, [rsp + 0xb8]
call fcn.1400076f3
mov byte [rsp + 0xf1], 1
lea rcx, [rsp + 0xb8]
call fcn.1400073ce
nop
lea rcx, [rsp + 0x78]
call fcn.1400073ce
nop
lea rcx, [rsp + 0x38]
call fcn.1400073ce
movzx eax, byte [rsp + 0xf1]
jmp 0x14005c57a
mov rdx, qword [rsp + 0x138]
lea rcx, [rsp + 0xb8]
call fcn.1400053d0
nop
lea rcx, [rsp + 0xb8]
call fcn.1400073ce
mov byte [rsp + 0xf2], 0
lea rcx, [rsp + 0x78]
call fcn.1400073ce
nop
lea rcx, [rsp + 0x38]
call fcn.1400073ce
movzx eax, byte [rsp + 0xf2]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401f67b0]
call fcn.14000849f
mov rax, rdi
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1400030d0
add rsp, 0x120
pop rdi
ret