joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002aa20
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2a8
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x1401f3f10]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x68]
call fcn.140030030
nop
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x34], 0
xor edx, edx
mov rcx, qword [rsp + 0x2b0]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jbe 0x14002abfb
mov eax, dword [rsp + 0x3c]
inc eax
mov eax, eax
mov ecx, eax
call sub.mfc120u.dll_Ordinal_265
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x14002abfb
mov r9, qword [rsp + 0x40]
mov r8d, dword [rsp + 0x3c]
xor edx, edx
mov rcx, qword [rsp + 0x2b0]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14002abdf
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x48]
lea rdx, str.VarFileInfoTranslation
mov rcx, qword [rsp + 0x40]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002abdf
cmp dword [rsp + 0x34], 0
jbe 0x14002abdf
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 2]
mov rcx, qword [rsp + 0x48]
movzx ecx, word [rcx]
mov dword [rsp + 0x20], eax
mov r9d, ecx
lea r8, str.StringFileInfo_04x_04xFileVersion
mov edx, 0x104
lea rcx, [rsp + 0x80]
call qword [sym.imp.MSVCR120.dll_swprintf_s]
mov dword [rsp + 0x34], 0
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x40]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002abdf
cmp dword [rsp + 0x34], 0
jbe 0x14002abdf
cmp qword [rsp + 0x48], 0
je 0x14002abd0
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x2c0]
cmp qword [rcx], rax
jbe 0x14002abd0
mov eax, dword [rsp + 0x34]
mov r9d, eax
mov r8, qword [rsp + 0x48]
mov rax, qword [rsp + 0x2c0]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x2b8]
call qword [sym.imp.MSVCR120.dll_wcsncpy_s]
mov eax, dword [rsp + 0x34]
xor ecx, ecx
mov rdx, qword [rsp + 0x2b8]
mov word [rdx + rax*2], cx
mov byte [rsp + 0x30], 1
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x2c0]
mov qword [rcx], rax
cmp qword [rsp + 0x40], 0
je 0x14002abfb
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call sub.mfc120u.dll_Ordinal_266
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x38], al
lea rcx, [rsp + 0x68]
call fcn.140030070
movzx eax, byte [rsp + 0x38]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14010f170
add rsp, 0x2a8
ret
Function at 0x14002c1f0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x250
mov rax, qword [0x1401f3f10]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov byte [rsp + 0x20], 0
xor eax, eax
mov word [rsp + 0x30], ax
lea rax, [rsp + 0x32]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_521
rep stosb byte [rdi], al
mov dword [rsp + 0x24], Ordinal_265
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x14002c29b
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x268]
cmp rax, qword [rcx]
jae 0x14002c28c
mov eax, dword [rsp + 0x24]
inc eax
mov eax, eax
mov r9d, eax
lea r8, [rsp + 0x30]
mov rax, qword [rsp + 0x268]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.MSVCR120.dll_wcsncpy_s]
mov byte [rsp + 0x20], 1
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x268]
mov qword [rcx], rax
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14010f170
add rsp, 0x250
pop rdi
ret

Function at 0x14002c540
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14002c5c0
cmp dword [rsp + 0x34], 3
jne 0x14002c5c0
cmp qword [rsp + 0x60], 0
je 0x14002c5be
mov dword [rsp + 0x38], 1
jmp 0x14002c5d5
cmp dword [rsp + 0x30], 0xea
je 0x14002c5d5
mov rax, qword [rsp + 0x68]
mov dword [rax], 0
mov eax, dword [rsp + 0x38]
add rsp, 0x48
ret

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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov byte [rsp + 0x20], 0
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140030130
nop
lea rcx, [rsp + 0x38]
call fcn.140030f30
test eax, eax
jne 0x140031cd2
mov edx, 0x104
lea rcx, [rsp + 0x38]
call fcn.140030800
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rcx, [rsp + 0x38]
call fcn.140030730
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
je 0x140031cd2
mov eax, dword [rsp + 0x24]
and eax, 0x10
test eax, eax
je 0x140031cd2
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x21], al
lea rcx, [rsp + 0x38]
call fcn.140030070
movzx eax, byte [rsp + 0x21]
add rsp, 0x58
ret
Function at 0x140031d00
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x280
mov rax, qword [0x1401f3f10]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x40], 0x18
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0x40]
call fcn.140031e50
movzx eax, al
test eax, eax
je 0x140031d5b
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor eax, eax
mov word [rsp + 0x60], ax
lea rax, [rsp + 0x62]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_521
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x290]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
test eax, eax
je 0x140031e06
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5c
je 0x140031db0
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x2f
jne 0x140031dce
mov rax, qword [rsp + 0x20]
movzx eax, word [rax - 2]
cmp eax, 0x3a
je 0x140031dce
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
movzx ecx, word [rcx]
mov word [rax], cx
mov rax, qword [rsp + 0x28]
add rax, 2
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
add rax, 2
mov qword [rsp + 0x20], rax
xor eax, eax
mov rcx, qword [rsp + 0x28]
mov word [rcx], ax
jmp 0x140031d8a
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [rsp + 0x30]
call fcn.140031ec0
mov rcx, qword [rsp + 0x290]
call fcn.140031c50
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14010f170
add rsp, 0x280
pop rdi
ret
Function at 0x140031f70
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x490
mov rax, qword [0x1401f3f10]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov byte [rsp + 0x20], 0
mov rcx, qword [rsp + 0x4a0]
call fcn.140031d00
mov r8d, 0x38
xor edx, edx
lea rcx, [rsp + 0x28]
call sub.MSVCR120.dll_memset
mov dword [rsp + 0x30], 2
mov eax, 0x414
mov word [rsp + 0x48], ax
xor eax, eax
mov word [rsp + 0x60], ax
lea rax, [rsp + 0x62]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_521
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x270], ax
lea rax, [rsp + 0x272]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_521
rep stosb byte [rdi], al
mov r8, qword [rsp + 0x4a8]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCR120.dll_wcscpy_s]
lea rdx, [0x14013dbe4]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov r8, qword [rsp + 0x4a0]
mov edx, 0x104
lea rcx, [rsp + 0x270]
call qword [sym.imp.MSVCR120.dll_wcscpy_s]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x270]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x28]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x140032079
mov byte [rsp + 0x20], 1
jmp 0x1400320aa
mov rdx, qword [rsp + 0x4a8]
mov rcx, qword [rsp + 0x4a0]
call fcn.140033000
movzx eax, al
test eax, eax
je 0x14003209c
mov byte [rsp + 0x21], 1
jmp 0x1400320a1
mov byte [rsp + 0x21], 0
movzx eax, byte [rsp + 0x21]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14010f170
add rsp, 0x490
pop rdi
ret
Function at 0x140032ea0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x270
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1401f3f10]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call fcn.140030030
nop
mov dword [rsp + 0x28], Ordinal_265
xor eax, eax
mov word [rsp + 0x50], ax
lea rax, [rsp + 0x52]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_521
rep stosb byte [rdi], al
lea rdx, [rsp + 0x50]
mov ecx, dword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x140032f20
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140030410
nop
jmp 0x140032f22
lea rcx, [rsp + 0x30]
call fcn.140030f30
test eax, eax
je 0x140032f41
lea rdx, str.C:_temp
lea rcx, [rsp + 0x30]
call fcn.140030410
lea rcx, [rsp + 0x30]
call fcn.140030f30
test eax, eax
jne 0x140032fbb
lea rcx, [rsp + 0x30]
call fcn.140030750
mov dword [rsp + 0x24], eax
cmp qword [rsp + 0x280], 0
je 0x140032fa8
mov rax, qword [rsp + 0x288]
mov ecx, dword [rsp + 0x24]
cmp dword [rax], ecx
jle 0x140032fa6
lea rcx, [rsp + 0x30]
call fcn.140030730
mov rcx, qword [rsp + 0x288]
movsxd rcx, dword [rcx]
mov r8, rax
mov rdx, rcx
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.MSVCR120.dll_wcscpy_s]
mov byte [rsp + 0x20], 1
jmp 0x140032fad
mov byte [rsp + 0x20], 1
mov rax, qword [rsp + 0x288]
mov ecx, dword [rsp + 0x24]
mov dword [rax], ecx
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x21], al
lea rcx, [rsp + 0x30]
call fcn.140030070
movzx eax, byte [rsp + 0x21]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14010f170
add rsp, 0x270
pop rdi
ret
Function at 0x1400337c0
Capabilities:
Read .ini file

Disassembly:
push rdi
sub rsp, 0x270
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1401f3f10]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor eax, eax
mov word [rsp + 0x50], ax
lea rax, [rsp + 0x52]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_521
rep stosb byte [rdi], al
mov r8d, Ordinal_265
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14003381e
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov rdx, qword [str.pculog.configure]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x50]
call fcn.140031be0
movzx eax, al
test eax, eax
je 0x1400338d0
lea rdx, str.logging_setting
lea rcx, [rsp + 0x28]
call fcn.140030130
nop
lea rcx, [rsp + 0x28]
call fcn.140030730
lea r9, [rsp + 0x50]
mov r8d, 1
lea rdx, str.PerformanceLog
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x14003388e
mov byte [rsp + 0x20], 0
jmp 0x140033893
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
mov byte [0x1401ee569], al
lea rcx, [rsp + 0x28]
call fcn.140030730
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.LoggingLevel
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x1401f9a6c], eax
lea rcx, [rsp + 0x28]
call fcn.140030070
mov al, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14010f170
add rsp, 0x270
pop rdi
ret
Function at 0x140033900
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x1b0
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1401f3f10]
xor rax, rbp
mov qword [rbp + 0x160], rax
movzx eax, byte [0x1401ee568]
test eax, eax
je 0x140033ace
mov eax, dword [0x1401f9a6c]
cmp dword [rbp + 0x188], eax
jg 0x140033ace
mov edx, 0x80
lea rcx, [rbp + 0x60]
call fcn.140033af0
lea rcx, [rbp + 0x38]
call fcn.140030030
nop
mov r9, qword [rbp + 0x180]
lea r8, [rbp + 0x60]
lea rdx, str._s____s_r_n
lea rcx, [rbp + 0x38]
call fcn.140030c60
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [0x1401f9860]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
je 0x140033ac5
call fcn.140015130
mov dword [rbp + 0x14], eax
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp + 0x10], 0
lea rcx, [rbp + 0x38]
call fcn.140030730
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x18], 0
jne 0x140033a08
mov qword [rbp + 0x28], 0
jmp 0x140033a89
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.MSVCR120.dll_wcslen]
inc eax
mov dword [rbp], eax
cmp dword [rbp], 0x3fffffff
jle 0x140033a2a
mov qword [rbp + 0x20], 0
jmp 0x140033a81
movsxd rax, dword [rbp]
shl rax, 1
mov qword [rbp + 0x30], rax
movsxd rcx, dword [rbp]
shl rcx, 1
mov rdx, rcx
add rdx, 0xf
cmp rdx, rcx
ja 0x140033a52
movabs rdx, 0xffffffffffffff0
and rdx, 0xfffffffffffffff0
mov rax, rdx
call fcn.14010f740
sub rsp, rax
lea rax, [rsp + 0x40]
mov r9d, dword [rbp + 0x14]
mov rcx, qword [rbp + 0x30]
mov r8d, ecx
mov rdx, qword [rbp + 0x18]
mov rcx, rax
call fcn.14002ec40
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x28], rax
lea rcx, [rbp + 0x38]
call fcn.140030750
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x10]
mov r8d, eax
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp + 0x38]
call fcn.140030070
mov rcx, qword [rbp + 0x160]
xor rcx, rbp
call fcn.14010f170
lea rsp, [rbp + 0x170]
pop rbp
ret
Function at 0x140054970
Capabilities:
Get common file path
Get disk information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x308
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1401f3f10]
xor rax, rbp
mov qword [rbp + 0x2b0], rax
mov dword [rbp + 4], 0
call fcn.140015130
mov dword [rbp + 0x10], eax
lea rcx, [rbp + 0x38]
call fcn.140030030
nop
xor eax, eax
mov word [rbp + 0xa0], ax
lea rax, [rbp + 0xa2]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_521
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [rbp + 0xc], eax
mov eax, dword [rbp + 0xc]
shl rax, 1
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0x20a
jae 0x140054a01
jmp 0x140054a06
call fcn.14010f4f4
xor eax, eax
mov rcx, qword [rbp + 0x28]
mov word [rbp + rcx + 0xa0], ax
lea rcx, [rbp + 0xa0]
call qword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov dword [rbp + 8], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 8]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov r8d, dword [rbp + 8]
lea rdx, str._016x
lea rcx, [rbp + 0x38]
call fcn.140030c60
mov byte [rbp + 0x88], 0
lea rax, [rbp + 0x89]
mov rdi, rax
xor eax, eax
mov ecx, 0xf
rep stosb byte [rdi], al
lea rcx, [rbp + 0x38]
call fcn.140030730
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x18], 0
jne 0x140054ab0
mov qword [rbp + 0x20], 0
jmp 0x140054b31
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.MSVCR120.dll_wcslen]
inc eax
mov dword [rbp], eax
cmp dword [rbp], 0x3fffffff
jle 0x140054ad2
mov qword [rbp + 0x30], 0
jmp 0x140054b29
movsxd rax, dword [rbp]
shl rax, 1
mov qword [rbp + 0x60], rax
movsxd rcx, dword [rbp]
shl rcx, 1
mov rdx, rcx
add rdx, 0xf
cmp rdx, rcx
ja 0x140054afa
movabs rdx, 0xffffffffffffff0
and rdx, 0xfffffffffffffff0
mov rax, rdx
call fcn.14010f740
sub rsp, rax
lea rax, [rsp + 0x40]
mov r9d, dword [rbp + 0x10]
mov rcx, qword [rbp + 0x60]
mov r8d, ecx
mov rdx, qword [rbp + 0x18]
mov rcx, rax
call fcn.14002ec40
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x20], rax
lea rcx, [rbp + 0x38]
call fcn.140030750
cdqe
lea r8, [rbp + 0x88]
mov rdx, rax
mov rcx, qword [rbp + 0x20]
call fcn.14007d710
mov r8d, 0x10
lea rdx, [rbp + 0x88]
lea rcx, [rbp + 0x70]
call fcn.1400297a0
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x50], rax
mov rdx, qword [rbp + 0x50]
lea rcx, [rbp + 0x38]
call fcn.140030470
nop
lea rcx, [rbp + 0x70]
call fcn.140030070
lea rdx, [rbp + 0x38]
mov rcx, qword [rbp + 0x2e8]
call fcn.1400300a0
mov eax, dword [rbp + 4]
or eax, 1
mov dword [rbp + 4], eax
lea rcx, [rbp + 0x38]
call fcn.140030070
mov rax, qword [rbp + 0x2e8]
mov rcx, qword [rbp + 0x2b0]
xor rcx, rbp
call fcn.14010f170
lea rsp, [rbp + 0x2c8]
pop rdi
pop rbp
ret
Function at 0x1400568c0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov qword [rsp + 0xc0], 0xfffffffffffffffe
mov dword [rsp + 0x24], 0
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x140056925
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x140056925
mov eax, dword [rsp + 0x20]
and eax, 0xfffffffe
mov edx, eax
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [rsp + 0x34], 5
lea rdx, [rsp + 0x34]
lea rcx, [rsp + 0x40]
call fcn.1400a3b90
nop
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0x38]
call fcn.1400274f0
nop
mov rdx, qword [0x1401ee760]
lea rcx, [rsp + 0x58]
call fcn.1400274f0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0xa8]
call fcn.140057a90
nop
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x50], rax
mov rdx, qword [0x1401ee758]
mov rcx, qword [rsp + 0x50]
call fcn.1400274f0
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0xf8]
call fcn.140027720
nop
lea r8, [rsp + 0xa8]
mov rdx, qword [rsp + 0x60]
mov rcx, rax
call fcn.140058180
nop
lea rcx, [rsp + 0xa8]
call fcn.1400e74b0
nop
lea rcx, [rsp + 0x58]
call fcn.140027670
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0xc8]
call fcn.140057a90
nop
mov rcx, qword [rsp + 0xf8]
call fcn.140027720
lea rdx, [rsp + 0xc8]
mov rcx, rax
call fcn.140058020
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0xc8]
call fcn.1400e74b0
cmp dword [rsp + 0x28], 0
jl 0x140056a71
mov dword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x90]
call fcn.1400a3b90
nop
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x40]
call fcn.140057bb0
nop
lea rcx, [rsp + 0x90]
call fcn.140057b80
jmp 0x140056aac
mov dword [rsp + 0x2c], 4
lea rdx, [rsp + 0x2c]
lea rcx, [rsp + 0x80]
call fcn.1400a3b90
nop
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x40]
call fcn.140057bb0
nop
lea rcx, [rsp + 0x80]
call fcn.140057b80
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xf0]
call fcn.140057a40
mov eax, dword [rsp + 0x24]
or eax, 1
mov dword [rsp + 0x24], eax
lea rcx, [rsp + 0x38]
call fcn.140027670
nop
lea rcx, [rsp + 0x40]
call fcn.140057b80
nop
mov rcx, qword [rsp + 0xf8]
call fcn.140027580
mov rax, qword [rsp + 0xf0]
add rsp, 0xe8
ret

Function at 0x1400583f0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x28], 0xfffffffffffffffe
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call fcn.140058590
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
add rsp, 0x38
ret
Function at 0x140058770
Capabilities:
Delete registry key

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x98
mov qword [rsp + 0x48], 0xfffffffffffffffe
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0xb0]
call fcn.140058640
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp dword [rsp + 0xb8], 0xffffffff
je 0x140058876
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0xb8]
lea rcx, [rsp + 0x70]
call fcn.140058d00
lea rcx, [rsp + 0x50]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x80]
call fcn.1400596c0
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140058ee0
mov r9d, 0x400
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.1400592a0
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
mov rcx, qword [rsp + 0x40]
mov r9, rcx
lea r8, [0x140146de8]
mov rdx, rax
mov rcx, 0xffffffff80000001
call fcn.140028c00
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
add rsp, 0x98
pop rdi
pop rsi
ret

Function at 0x14005e4b0
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov r8d, 8
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.MSVCR120.dll_memset
mov r8d, 8
xor edx, edx
lea rcx, [rsp + 0x28]
call sub.MSVCR120.dll_memset
mov r8d, 8
xor edx, edx
lea rcx, [rsp + 0x20]
call sub.MSVCR120.dll_memset
nop
mov rax, qword [rsp + 0x50]
add rax, 0xa0
mov rcx, rax
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
nop
jmp 0x14005e528
mov rax, qword [rsp + 0x20]
add rsp, 0x48
ret
Function at 0x140069490
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0x1f4
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x70]
call qword [rax + 0x60]
movzx eax, al
test eax, eax
je 0x140069524
mov rax, qword [rsp + 0x70]
cmp qword [rax + 8], 0
je 0x140069524
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 8]
mov edx, 0x1f4
mov rcx, qword [rax + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140069524
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 8]
mov edx, 0xffffffff
mov rcx, qword [rax + 0x58]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 8]
mov edx, 0x1f4
mov rcx, qword [rax + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [rsp + 0x70]
add rax, 0x20
mov rcx, rax
call fcn.1400c0b90
mov rax, qword [rsp + 0x70]
cmp qword [rax + 8], 0
je 0x140069582
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14006956c
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x28]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x40], rax
jmp 0x140069575
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x70]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x18], 0
je 0x1400695b8
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rax]
xor edx, edx
call qword [rax + 0x160]
mov rax, qword [rsp + 0x70]
mov qword [rax + 0x18], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400695f3
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x30]
call qword [rax + 0x158]
mov qword [rsp + 0x50], rax
jmp 0x1400695fc
mov qword [rsp + 0x50], 0
add rsp, 0x68
ret