joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002acc0
Capabilities:
Check if file exists
Get common file path
Get disk size
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x2c], 0
call fcn.14002a790
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
test eax, eax
je 0x14002adf3
mov rax, qword [0x1402e1908]
mov qword [rsp + 0x78], rax
mov eax, 2
imul rax, rax, 0
movzx ecx, word [rsp + 0x20]
mov word [rsp + rax + 0x78], cx
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x68]
call fcn.140004170
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
lea r8, [0x1402e1910]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.140011200
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.140003250
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14002ad80
mov dword [rsp + 0x28], 1
jmp 0x14002ad88
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x24], al
lea rcx, [rsp + 0x60]
call fcn.1400031c0
nop
lea rcx, [rsp + 0x68]
call fcn.1400031c0
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x14002adf3
mov eax, 2
imul rax, rax, 0
movzx ecx, word [rsp + 0x20]
mov word [rsp + rax + 0x78], cx
mov qword [rsp + 0x40], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp qword [rsp + 0x40], 0x25800000
jae 0x14002adf3
xor eax, eax
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
test eax, eax
jne 0x14002ae4e
lea rcx, [rsp + 0x30]
call fcn.140004410
nop
mov edx, 0x100
lea rcx, [rsp + 0x30]
call fcn.140057cc0
mov edx, 0xff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.1400118c0
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140054e90
mov word [rsp + 0x20], ax
lea rcx, [rsp + 0x30]
call fcn.1400031c0
lea rcx, [rsp + 0x38]
call fcn.140004410
nop
movzx eax, word [rsp + 0x20]
mov r8d, eax
lea rdx, [0x1402e1930]
lea rcx, [rsp + 0x38]
call fcn.140004850
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0xa0]
call fcn.140007200
mov eax, dword [rsp + 0x2c]
or eax, 1
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x38]
call fcn.1400031c0
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140263a60
add rsp, 0x98
ret
Function at 0x14002dc00
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov dword [rsp + 0x60], 0
lea rdx, [0x1402e2148]
lea rcx, [rsp + 0x58]
call fcn.140004170
nop
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x58]
call fcn.140011410
cmp dword [rsp + 0xc0], 0
je 0x14002dc67
mov dword [rsp + 0x50], 1
jmp 0x14002dc6f
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0x58]
call fcn.140003250
mov qword [rsp + 0x80], rax
cmp dword [rsp + 0xb8], 0
je 0x14002dc96
mov qword [rsp + 0x70], 0xffffffff80000001
jmp 0x14002dc9f
mov qword [rsp + 0x70], 0xffffffff80000002
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2011f
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x14002dd08
mov dword [rsp + 0x68], 0
lea rcx, [rsp + 0x58]
call fcn.1400031c0
mov eax, dword [rsp + 0x68]
jmp 0x14002dd5a
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x6c], 1
lea rcx, [rsp + 0x58]
call fcn.1400031c0
mov eax, dword [rsp + 0x6c]
add rsp, 0x98
ret
Function at 0x14003adf0
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x250
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14003ae5c
mov eax, 2
imul rax, rax, 3
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0x208
jae 0x14003ae4b
jmp 0x14003ae50
call fcn.14026431c
xor eax, eax
mov rcx, qword [rsp + 0x28]
mov word [rsp + rcx + 0x30], ax
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x30]
mov ecx, eax
call fcn.1402780d0
cmp eax, 0x78
jne 0x14003ae80
mov dword [rsp + 0x20], 1
jmp 0x14003ae88
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140263a60
add rsp, 0x250
pop rdi
ret

Function at 0x14003b0d0
Capabilities:
Get common file path

Disassembly:
mov byte [rsp + 0x18], r8b
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea rdx, [0x1402e14f0]
mov rcx, qword [rsp + 0x60]
call fcn.140004120
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x28]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x14003b1b2
lea r8, [rsp + 0x30]
mov edx, dword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14003b192
mov edx, 0x104
mov rcx, qword [rsp + 0x60]
call fcn.140057cc0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [rsp + 0x48]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x60]
call fcn.1400118c0
jmp 0x14003b1a2
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
call qword [rax + 0x10]
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
call qword [rax + 0x10]
cmp dword [rsp + 0x68], 5
je 0x14003b1c0
cmp dword [rsp + 0x68], 0
jne 0x14003b1d3
lea rdx, [0x1402e1394]
mov rcx, qword [rsp + 0x60]
call fcn.140011410
jmp 0x14003b200
movzx eax, byte [rsp + 0x70]
test eax, eax
je 0x14003b1ef
lea rdx, [0x1402e14f8]
mov rcx, qword [rsp + 0x60]
call fcn.140011410
jmp 0x14003b200
lea rdx, [0x1402e1510]
mov rcx, qword [rsp + 0x60]
call fcn.140011410
add rsp, 0x58
ret
Function at 0x14003b290
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x48], 0xfffffffffffffffe
lea rcx, [0x1402e2b38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14003b33b
lea rdx, [0x1402e2b58]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14003b330
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x68]
call fcn.140003250
xor r9d, r9d
mov r8d, 0x100
mov rdx, rax
mov rcx, qword [rsp + 0x60]
call qword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
mov rcx, qword [rsp + 0x68]
call fcn.1400031c0
mov eax, dword [rsp + 0x24]
jmp 0x14003b365
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x68]
call fcn.140003250
mov rdx, rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x68]
call fcn.1400031c0
mov eax, dword [rsp + 0x28]
add rsp, 0x58
ret
Function at 0x1400b9da0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x4f0
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov qword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
xor r8d, r8d
mov rdx, qword [rsp + 0x508]
mov rcx, qword [rsp + 0x500]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [0x1403cf588], eax
cmp dword [0x1403cf588], 0
je 0x1400b9e18
xor al, al
jmp 0x1400b9fc1
lea rcx, [rsp + 0x70]
call fcn.1400031a0
nop
mov rdx, qword [rsp + 0x508]
lea rcx, [rsp + 0x98]
call fcn.1400055b0
nop
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0x500]
call fcn.1400b85c0
nop
lea rcx, [rsp + 0x98]
call fcn.1400049b0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140066060
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x60]
call fcn.140066100
mov qword [rsp + 0x68], rax
jmp 0x1400b9e99
mov rax, qword [rsp + 0x48]
add rax, 0x20
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x68]
cmp qword [rsp + 0x48], rax
je 0x1400b9f72
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x50], 0x104
lea rax, [rsp + 0xc0]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
lea r8, [rsp + 0xc0]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400b9f16
jmp 0x1400b9f72
lea rax, [rsp + 0x2d0]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x508]
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rsp + 0x2d0]
call fcn.14006fbd0
lea rdx, [rsp + 0x2d0]
mov rcx, qword [rsp + 0x500]
call fcn.1400b9da0
jmp 0x1400b9e8b
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsp + 0x508]
mov rcx, qword [rsp + 0x500]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x1400b9fa1
mov dword [rsp + 0x44], 1
jmp 0x1400b9fa9
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0x44]
mov byte [rsp + 0x40], al
lea rcx, [rsp + 0x70]
call fcn.140003260
movzx eax, byte [rsp + 0x40]
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.140263a60
add rsp, 0x4f0
pop rdi
ret
Function at 0x1400c2b00
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0x58]
call fcn.140004410
nop
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x64], 0
mov dword [rsp + 0x60], 0x104
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x64]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20119
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.system_setup
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
je 0x1400c2bd4
lea rdx, [0x1402f3364]
mov rcx, qword [rsp + 0xc0]
call fcn.140004170
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x58]
call fcn.1400031c0
mov rax, qword [rsp + 0xc0]
jmp 0x1400c2ce1
mov edx, 0x104
lea rcx, [rsp + 0x58]
call fcn.140057cc0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, [0x1402f33a8]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x54], eax
mov edx, 0xffffffff
lea rcx, [rsp + 0x58]
call fcn.1400118c0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x54], 0
jne 0x1400c2c52
cmp dword [rsp + 0x60], 0
jne 0x1400c2c85
lea rdx, [0x1402f3384]
mov rcx, qword [rsp + 0xc0]
call fcn.140004170
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x58]
call fcn.1400031c0
mov rax, qword [rsp + 0xc0]
jmp 0x1400c2ce1
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x88], rax
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x88]
call fcn.140007200
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0xc0]
call fcn.1400c2740
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x58]
call fcn.1400031c0
mov rax, qword [rsp + 0xc0]
add rsp, 0xb8
ret
Function at 0x1400c2f70
Capabilities:
Copy file
Move file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov qword [rsp + 0xa8], 0xfffffffffffffffe
lea rcx, [rsp + 0x28]
call fcn.140004410
nop
lea rcx, [rsp + 0x20]
call fcn.140004410
nop
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0xc0]
call fcn.1400c3c50
mov dword [rsp + 0x30], eax
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0xc0]
call fcn.1400c3b40
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x1400c2feb
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x38], rax
jae 0x1400c3123
cmp dword [rsp + 0x30], 0
je 0x1400c30fe
lea rcx, [rsp + 0x20]
call fcn.140003250
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x28]
call fcn.140003250
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1400c30f0
lea r8, [0x1402f37e0]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.140011200
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.140003250
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x28]
call fcn.140003250
mov qword [rsp + 0x68], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rcx, [rsp + 0x70]
call fcn.1400031c0
lea rcx, [rsp + 0x20]
call fcn.140003250
mov qword [rsp + 0x80], rax
lea r8, str._recover
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x90]
call fcn.140011200
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.140003250
mov qword [rsp + 0x88], rax
mov r8d, 5
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
lea rcx, [rsp + 0x90]
call fcn.1400031c0
lea rcx, str.MacriumRebootScheduled
call qword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
nop
lea rcx, [rsp + 0x20]
call fcn.1400031c0
nop
lea rcx, [rsp + 0x28]
call fcn.1400031c0
nop
mov rcx, qword [rsp + 0xc0]
call fcn.1400031c0
jmp 0x1400c319e
cmp dword [rsp + 0x30], 0
je 0x1400c3136
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x40], rax
jae 0x1400c317b
cmp dword [rsp + 0x34], 0
je 0x1400c317b
lea rcx, [rsp + 0x28]
call fcn.140003250
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0x20]
call fcn.140003250
mov qword [rsp + 0xa0], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop
lea rcx, [rsp + 0x20]
call fcn.1400031c0
nop
lea rcx, [rsp + 0x28]
call fcn.1400031c0
nop
mov rcx, qword [rsp + 0xc0]
call fcn.1400031c0
add rsp, 0xb8
ret
Function at 0x1400c3a00
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x60]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1400c3b26
mov eax, dword [rsp + 0x20]
mov ecx, eax
call fcn.140270fd8
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400c3a58
xor eax, eax
jmp 0x1400c3b2b
mov r9, qword [rsp + 0x30]
mov r8d, dword [rsp + 0x20]
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x60]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x1400c3a85
mov rcx, qword [rsp + 0x30]
call fcn.14026f9b4
xor eax, eax
jmp 0x1400c3b2b
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x38]
lea rdx, [0x1402f3664]
mov rcx, qword [rsp + 0x30]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x1400c3ab2
mov rcx, qword [rsp + 0x30]
call fcn.14026f9b4
xor eax, eax
jmp 0x1400c3b2b
cmp qword [rsp + 0x38], 0
jne 0x1400c3ac8
mov rcx, qword [rsp + 0x30]
call fcn.14026f9b4
xor eax, eax
jmp 0x1400c3b2b
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 8]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
shl rax, 0x30
mov rcx, qword [rsp + 0x38]
mov ecx, dword [rcx + 8]
and rcx, 0xffff
movzx ecx, cx
shl rcx, 0x20
or rax, rcx
mov rcx, qword [rsp + 0x38]
mov ecx, dword [rcx + 0xc]
shr rcx, 0x10
and rcx, 0xffff
movzx ecx, cx
shl rcx, 0x10
or rax, rcx
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x30]
call fcn.14026f9b4
mov rax, qword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x1400c3b40
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x268
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rcx, [rsp + 0x20]
call fcn.140004410
nop
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400c3bb1
mov rax, qword [rsp + 0x270]
mov r9, qword [rax]
lea r8, [rsp + 0x40]
lea rdx, str._sdrivers_s
lea rcx, [rsp + 0x20]
call fcn.140004850
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x278]
call fcn.140007070
lea rcx, [rsp + 0x20]
call fcn.140003250
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400c3bf2
mov dword [rsp + 0x28], 0
lea rcx, [rsp + 0x20]
call fcn.1400031c0
mov eax, dword [rsp + 0x28]
jmp 0x1400c3c25
lea rcx, [rsp + 0x20]
call fcn.140003250
mov rcx, rax
call fcn.1400c3a00
mov rcx, qword [rsp + 0x280]
mov qword [rcx], rax
mov dword [rsp + 0x2c], 1
lea rcx, [rsp + 0x20]
call fcn.1400031c0
mov eax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140263a60
add rsp, 0x268
ret
Function at 0x14021b6dc
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x18], 0
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.14028490c
test eax, eax
jne 0x14021b740
mov eax, dword [rsp + 0x30]
lea r8, str._s_s_X.tmp
mov dword [rsp + 0x28], eax
mov r9, rsi
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call fcn.14006fbd0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14021b752
jmp 0x14021b700
mov r9, rbx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140285ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140285c24

Function at 0x14028ba6c
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x14028ba49
call fcn.14026f590
mov dword [rax], socket
call fcn.14026bae4
or eax, 0xffffffff
jmp 0x14028ba66
sub dword [rcx + 0x10], 1
jns 0x14028ba58
add rsp, 0x28
jmp fcn.14029190c
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x14028ba28
Function at 0x14028c074
Capabilities:
Terminate process

Disassembly:
push rdi
push r12
push r15
push rbp
sub rsp, 0x58
lea rdi, [0x1403c8678]
mov rcx, qword [rdi + 0x4c]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, dword [rdi + 0x84]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, rbx
call fcn.14028c2aa
cdqe
lea rbp, [rbx + rax*2]
mov rbx, qword [rdi + 0x1c]
cmp dword [rbx], 0
je 0x14028c104
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movzx eax, al
cmp al, byte [rbx]
je 0x14028c0ee
cmp al, byte [rbx + 1]
jne 0x14028c194
mov rcx, rbp
call fcn.14028c2ce
cmp eax, dword [rbx + 4]
je 0x14028c104
cmp eax, dword [rbx + 8]
jne 0x14028c194
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, dword [rdi + 0x84]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
mov rcx, qword [rdi + 0x44]
mov rbx, rbp
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r15, rax
lea r12, sym.imp.KERNEL32.dll_GetProcAddress
mov rcx, r15
mov rdx, qword [rdi + 0x74]
call qword [r12]
mov qword [rsp + 0x48], rax
mov rcx, r15
mov rdx, qword [rdi + 0x54]
call qword [r12]
mov qword [rsp + 0x50], rax
mov rcx, r15
mov rdx, qword [rdi + 0x10]
call qword [r12]
mov r10, rsp
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor edx, edx
inc edx
xor r9d, r9d
xor eax, eax
mov r11, qword [rsp + 0x48]
mov rcx, qword [rdi + 0x90]
mov dword [rsp + 0x30], eax
mov dword [r10 + 0x20], eax
call r11
mov rcx, rax
test rcx, rcx
jne 0x14028c19c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov r11, rsp
xor r8d, r8d
mov rax, qword [rsp + 0x50]
xor r9d, r9d
mov rdx, qword [rdi + 0x2c]
mov r10d, dword [rdi + 0x18]
mov dword [r11 + 0x20], r10d
mov qword [r11 + 0x28], 0
call rax
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14028c194
mov rdx, rbp
lea r9, [rsp + 0x30]
mov rax, qword [r9 + 0x10]
mov r8d, dword [rdi + 0x84]
mov rcx, qword [r9 + 8]
call rax
jmp 0x14028c20d
mov eax, dword [rsp + 0x30]
test eax, eax
jbe 0x14028c211
lea r9, [rsp + 0x30]
add rbx, rax
mov rdx, rbx
mov r10, qword [r9 + 0x10]
mov r8d, dword [rdi + 0x84]
mov rcx, qword [r9 + 8]
call r10
test eax, eax
jne 0x14028c1e8
cmp rbx, rbp
je 0x14028c194
mov r9d, dword [rbp]
xor r8d, r8d
mov rax, qword [rdi + 0x34]
mov ebp, dword [rax + r8]
add ebp, r9d
mov dword [r8 + rbx], ebp
add r8, 4
cmp r8, 0x14
jl 0x14028c221
mov rcx, rsi
mov rdx, rbx
call qword [r12]
test rax, rax
je 0x14028c194
xor ecx, ecx
mov r8d, 0x1000
mov edx, dword [rdi + 0x84]
mov r9d, dword [rdi + 0x64]
call rax
mov rbp, rax
mov ebx, dword [rdi]
push 8
pop rdx
mov rax, qword [rdi + 0x98]
add rbx, rax
mov ecx, dword [rbx + 4]
mov eax, dword [rdx + rbx]
add eax, ecx
mov dword [rdx + rbp], eax
add rdx, 4
cmp rdx, 0x6000
jl 0x14028c276
mov eax, dword [rdi + 0x70]
mov dword [rbp + 8], eax
mov ebx, dword [rbp + 0xc]
add rbx, rbp
mov edx, dword [rdi + 0x5c]
add rbx, rdx
mov ecx, dword [rdi + 0x5c]
add rcx, rbp
call rbx
jmp 0x14028c194
Function at 0x14029a820
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14029a833
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.14029ae40
lea rdx, [0x1403bdab0]
lea rcx, [rsp + 0x20]
call fcn.140269104
int3

Function at 0x1402a50bc
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1403dbe88]
xor edx, edx
jmp fcn.14029a820

Function at 0x1402a5a40
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1403dbe88]
jmp fcn.14029a820

Function at 0x1402b16b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1402b176c]
mov r9, qword [r9 + 8]
jmp fcn.1402a2a74

Function at 0x1402b1744
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1402b177c]
mov r9, qword [r9 + 8]
jmp fcn.1402a2a74

Function at 0x1402b5e52
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x30
lea rsi, [rsp + 0x28]
mov qword [rsi], 0
mov rcx, qword [str._n_f__]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, qword [str.InitOnceExecuteOnce]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [0x1403c86e0]
mov rcx, rsi
xor r8d, r8d
xor r9d, r9d
call rax
test eax, eax
je 0x1402b5e9c
add rsp, 0x30
pop rsi
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]