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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
and qword [rbp + 0x20], 0
lea rax, [rbp + 0x20]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwarePoliciesMicrosoftWindowsMediaPlayer
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140010f9b
and dword [rbp + 0x10], eax
lea rdx, str.PreventCDDVDMetadataRetrieval
mov rcx, qword [rbp + 0x20]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rbp + 0x10]
mov dword [rbp + 0x18], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010f50
cmp dword [rbp + 0x10], 1
jne 0x140010f50
and dword [0x1400516a8], 0xfffffffe
mov rcx, qword [rbp + 0x20]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rdx, str.PreventMusicFileMetadataRetrieval
lea rax, [rbp + 0x10]
mov dword [rbp + 0x18], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010f91
cmp dword [rbp + 0x10], 1
jne 0x140010f91
and dword [0x1400516a8], 0xfffffffd
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x30
pop rbp
ret
Function at 0x140011388
Capabilities:
Check if file exists
Get common file path
Get file attributes
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x160], rax
call fcn.14002dc58
lea rcx, [rsp + 0x38]
mov ebx, eax
call fcn.14003a4e4
mov edi, 4
lea rcx, [rsp + 0x38]
or word [rsp + 0x44], di
call fcn.14002da30
test eax, eax
jns 0x140011419
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x140011401
mov edx, edi
call fcn.140016188
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x1400114cd
cmp dword [0x1400516e0], edi
jl 0x1400114cd
lea rdx, str.Could_not_obtain_SID_for_user._r_n
jmp 0x1400114b1
sub ebx, 1
je 0x14001146d
cmp ebx, 1
jne 0x1400114cd
call fcn.14002dd88
call fcn.14002dcf4
mov rcx, qword [rsp + 0x38]
call fcn.14002de84
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x14001145c
mov edx, edi
call fcn.140016188
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x1400114cd
cmp dword [0x1400516e0], edi
jl 0x1400114cd
lea rdx, str.Finished_migrating_WMCv2_user._r_n
jmp 0x1400114b1
call fcn.14002dd88
call fcn.14002dcf4
mov rcx, qword [rsp + 0x38]
call fcn.14002de84
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x1400114a2
mov edx, edi
call fcn.140016188
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x1400114cd
cmp dword [0x1400516e0], edi
jl 0x1400114cd
lea rdx, str.Finished_migrating_WMCv1_user._r_n
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
and dword [rsp + 0x30], 0
mov r8d, reloc.ATL.DLL_AtlInternalQueryInterface
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rsp + 0x38]
call fcn.14003aa74
mov ebx, 0x104
lea rcx, [rsp + 0x50]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14001154c
lea r8, str.unregmp2.exe
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.140001584
test eax, eax
js 0x14001154c
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001154c
test al, 0x10
jne 0x14001154c
call fcn.14001857c
lea r8, str.__ShowWMP__SetShowState__CreateMediaLibrary
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.140001584
test eax, eax
js 0x14001154c
mov r9d, 0xffff
lea rdx, [rsp + 0x50]
mov r8d, 1
xor ecx, ecx
call fcn.140019694
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14003c810
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140013a04
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rdi, qword [rcx + 0x18]
mov rbx, rcx
test rdi, rdi
jne 0x140013a21
xor eax, eax
jmp 0x140013a71
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x70]
call sub.msvcrt.dll_memset
mov rax, qword [rbx + 0x20]
lea rcx, [rsp + 0x20]
and dword [rsp + 0x24], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x48], 0
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], 0x70
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x50], 1
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret

Function at 0x140013e08
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rax, [0x14003e100]
mov rbx, rcx
mov qword [rcx], rax
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x140013e37
call fcn.14003c408
and qword [rbx + 0x30], 0
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140013e4a
call fcn.14003c408
and qword [rbx + 0x38], 0
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x140013e5d
call fcn.14003c408
and qword [rbx + 0x40], 0
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x140013e70
call fcn.14003c408
and qword [rbx + 0x48], 0
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x140013e83
call fcn.14003c408
and qword [rbx + 0x50], 0
mov rcx, qword [rbx + 0x260]
test rcx, rcx
je 0x140013eae
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, qword [rbx + 0x260]
test rcx, rcx
je 0x140013eae
call fcn.14003c408
and qword [rbx + 0x260], 0
mov rcx, qword [rbx + 0x2a0]
test rcx, rcx
je 0x140013ecf
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14003f118]
and qword [rbx + 0x2a0], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140013f1b
mov rsi, qword [rcx]
mov rdi, qword [rcx + 8]
test rsi, rsi
je 0x140013f00
mov rcx, rsi
call fcn.1400240e0
mov rcx, rsi
call fcn.14003c454
mov rax, qword [rbx + 8]
and qword [rax], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140013f0f
call fcn.14003c454
and qword [rbx + 8], 0
mov qword [rbx + 8], rdi
mov rcx, rdi
test rdi, rdi
jne 0x140013ed8
mov rcx, rbx
call fcn.14003c454
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140013ff0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x14001401f
lea edx, [rcx + 5]
call fcn.140016188
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x140014052
cmp dword [0x1400516e0], 4
jl 0x140014052
and dword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
lea rdx, str.Setup_beginning._r_n
mov r8d, 0x12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x140050310]
cmp dword [rdi + 0x78], 0
jne 0x140014062
mov eax, 0x8000ffff
jmp 0x140014102
xor ebx, ebx
cmp rcx, 0xffffffffffffffff
jne 0x14001407f
lea edx, [rbx + 4]
call fcn.140016188
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x1400140a9
cmp dword [0x1400516e0], 4
jl 0x1400140a9
and dword [rsp + 0x40], ebx
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], rbx
lea rdx, str.Building_Install_list._r_n
mov r8d, AtlInternalQueryInterface
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rdi + 0x6c]
cmp ecx, 3
je 0x1400140ba
cmp ecx, 5
je 0x1400140d0
mov rbx, qword [rdi + 0x50]
mov rax, qword [rdi]
mov dword [rax + 0x28], ecx
cmp dword [rdi + 0x6c], 3
mov rcx, qword [rdi]
jne 0x1400140d7
call fcn.140022a20
jmp 0x1400140df
mov ebx, 1
jmp 0x1400140e1
mov rdx, rbx
call fcn.140022ec0
mov ebx, eax
mov r8d, ebx
lea rdx, str.Finished_building_install_list.__Result:_0x_x._r_n
mov ecx, 4
call fcn.1400168a8
test ebx, ebx
js 0x140014100
mov dword [rdi + 0x18], 1
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140014114
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx], 0
mov rbx, rcx
jne 0x14001412d
mov eax, 0x8000ffff
jmp 0x1400141e2
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x14001414f
lea edx, [rcx + 5]
call fcn.140016188
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x14001417b
cmp dword [0x1400516e0], 4
jl 0x14001417b
and dword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
lea rdx, str.Updating_Install_list_for_UI._r_n
mov r8d, 0x24
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbx]
mov eax, dword [rbx + 0x20]
mov dword [rcx + 0x280], eax
mov edx, dword [rbx + 0x6c]
mov rcx, qword [rbx]
call fcn.140021c20
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x1400141b4
lea edx, [rcx + 5]
call fcn.140016188
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x1400141e0
cmp dword [0x1400516e0], 4
jl 0x1400141e0
and dword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
lea rdx, str.Finished_updating_install_list._r_n
mov r8d, 0x21
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x140015c44
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
and qword [rsp + 0x48], 0
mov rcx, qword [0x1400516d8]
test rcx, rcx
je 0x140015c82
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140015c82
mov r9d, dword [rsp + 0x40]
xor r8d, r8d
mov rcx, qword [0x1400516d8]
mov edx, 0x5c6
call qword [sym.imp.USER32.dll_PostMessageW]
lea rax, [rsp + 0x48]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftMediaPlayerSetup
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140015cf2
mov eax, dword [rsp + 0x40]
lea rdx, str.Progress_MaxInstall
test eax, eax
mov ecx, 1
cmove eax, ecx
xor r8d, r8d
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
lea r9d, [rcx + 3]
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x38
ret

Function at 0x140015d00
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
and qword [rsp + 0x48], 0
mov rcx, qword [0x1400516d8]
test rcx, rcx
je 0x140015d3e
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140015d3e
mov r9d, dword [rsp + 0x40]
xor r8d, r8d
mov rcx, qword [0x1400516d8]
mov edx, 0x5c7
call qword [sym.imp.USER32.dll_PostMessageW]
lea rax, [rsp + 0x48]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftMediaPlayerSetup
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140015d9c
mov rcx, qword [rsp + 0x48]
lea r9d, [rax + 4]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Progress_CurrentInstall
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x38
ret
Function at 0x140016720
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140050310]
or r8, 0xffffffffffffffff
cmp rax, r8
je 0x14001675e
cmp ecx, dword [0x1400516e0]
jg 0x14001675e
xor ecx, ecx
mov dword [rsp + 0x50], ecx
inc r8
cmp byte [rdx + r8], cl
jne 0x140016742
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rsp, 0x38
ret

Function at 0x14001676c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x180
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x170], rax
or rbx, 0xffffffffffffffff
mov rsi, rdx
cmp qword [0x140050310], rbx
mov edi, ecx
jne 0x1400167a9
mov edx, ecx
call fcn.140016188
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x52]
lea r8, str._02lu:_02lu_:_02lu____s
movzx eax, word [rsp + 0x54]
mov edx, 0x104
movzx r9d, word [rsp + 0x50]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x60]
call fcn.140013d18
xor edx, edx
test eax, eax
js 0x14001682c
mov rcx, qword [0x140050310]
cmp rcx, rbx
je 0x14001683b
cmp edi, dword [0x1400516e0]
jg 0x14001683b
mov dword [rsp + 0x40], edx
lea rax, [rsp + 0x60]
inc rbx
cmp byte [rax + rbx], dl
jne 0x14001680a
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14001683b
test rsi, rsi
je 0x14001683b
mov rdx, rsi
mov ecx, edi
call fcn.140016720
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14003c810
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400168a8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x268
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x250], rax
cmp ecx, dword [0x1400516e0]
mov edi, ecx
jle 0x1400168f2
cmp dword [0x1400516e4], 0
jne 0x140016979
test rdx, rdx
je 0x140016979
mov r8, rdx
lea r9, [rsp + 0x290]
mov ebx, 0x206
lea rcx, [rsp + 0x40]
mov edx, ebx
call qword [sym.imp.msvcrt.dll__vsnprintf]
test eax, eax
js 0x14001691a
cdqe
cmp rax, rbx
jb 0x140016922
mov byte [rsp + 0x246], 0
mov rcx, qword [0x140050310]
or rbx, 0xffffffffffffffff
cmp rcx, rbx
jne 0x140016945
mov edx, edi
call fcn.140016188
mov rcx, qword [0x140050310]
cmp rcx, rbx
je 0x140016979
cmp edi, dword [0x1400516e0]
jg 0x140016979
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x40]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140016957
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8, rbx
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14003c810
add rsp, 0x268
pop rdi
pop rbx
ret
Function at 0x140016a9c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov rdi, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140016ad5
mov edx, esi
lea r8, str.unregmp2.exe
mov rcx, rdi
call fcn.140001584
test eax, eax
lea ecx, [rbx + 1]
cmovns ebx, ecx
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140017264
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x168]
sub rsp, 0x260
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r8, rcx
mov edx, 0x103
lea rcx, [rsp + 0x40]
call fcn.140001470
mov edx, 0x5c
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_wcschr]
xor esi, esi
mov rdi, rax
test rax, rax
jne 0x1400172c6
xor eax, eax
jmp 0x14001734e
lea r9, [rsp + 0x28]
mov word [rax + 2], si
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x14001731c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x57
mov ecx, 2
test eax, eax
cmove eax, edx
lea rdx, str.GetDiskFreeSpaceEx_failed.__Error:__x_r_n
movzx r8d, ax
or r8d, 0x80070000
test eax, eax
cmovle r8d, eax
call fcn.1400168a8
jmp 0x1400172bf
mov rbx, qword [rsp + 0x20]
test rbx, rbx
jne 0x14001734b
lea r9, [rsp + 0x28]
mov word [rdi], si
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
cmovne rbx, qword [rsp + 0x20]
mov rax, rbx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14003c810
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x14001737c
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov edx, 0x104
lea rcx, [rsp + 0x20]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400173ba
lea rcx, [rsp + 0x20]
call fcn.140017264
mov rbx, rax
mov rax, rbx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14003c810
add rsp, 0x240
pop rbx
ret
Function at 0x1400173dc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov r8, rcx
mov edx, 0x104
lea rcx, [rsp + 0x20]
xor ebx, ebx
call fcn.140001470
test eax, eax
js 0x140017467
or rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x20]
mov rax, rcx
inc rax
cmp word [rdx + rax*2], bx
jne 0x14001741b
test rax, rax
je 0x14001744e
cmp word [rsp + rax*2 + 0x1e], 0x5c
jne 0x14001744e
lea rdx, [rsp + 0x20]
mov rax, rcx
inc rax
cmp word [rdx + rax*2], bx
jne 0x140017439
test rax, rax
je 0x14001744e
mov word [rsp + rax*2 + 0x1e], bx
jmp 0x140017413
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140017467
test al, 0x10
je 0x140017467
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14003c810
add rsp, 0x240
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1400174a7
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400174a7
test al, 0x10
jne 0x1400174a7
mov eax, 1
jmp 0x1400174a9
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400174b4
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbp, rcx
or rcx, 0xffffffffffffffff
mov rsi, rcx
xor ebx, ebx
inc rsi
cmp word [rbp + rsi*2], bx
jne 0x1400174d6
add rsi, 0x14
mov eax, 2
mul rsi
cmovo rax, rcx
mov rcx, rax
call fcn.14003c460
mov rdi, rax
test rax, rax
je 0x1400175ef
mov r8, rbp
mov rdx, rsi
mov rcx, rax
call fcn.140001470
lea rdx, [0x140042138]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcsstr]
mov r14, rax
test rax, rax
je 0x1400175e7
add r14, 4
mov r15d, ebx
lea rdx, [0x140042140]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x1400175dc
mov rcx, rdi
mov word [rax], bx
lea r14, [rax + 2]
call fcn.1400173dc
test eax, eax
jne 0x1400175ac
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0x57
cmove eax, ecx
mov rcx, rdi
movzx r12d, ax
or r12d, 0x80070000
test eax, eax
cmovle r12d, eax
call fcn.1400173dc
mov r8, rdi
test eax, eax
je 0x1400175c8
xor r9d, r9d
lea edx, [r9 + 5]
lea ecx, [rdx + 3]
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call fcn.140001470
inc r15d
cmp r15d, 0xa
jge 0x1400175dc
jmp 0x140017535
mov r9d, r12d
lea rdx, str.ERROR:_Could_not_create_directory__S.__Error:_0x_x._r_n
mov ecx, 2
call fcn.1400168a8
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, rdi
call fcn.14003c408
test rbp, rbp
je 0x1400175fe
mov rcx, rbp
call fcn.1400173dc
mov ebx, eax
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140017a28
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x47], rax
or qword [rbp + 0x2f], 0xffffffffffffffff
xor r14d, r14d
mov esi, r14d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x2f]
mov edx, 0x20008
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140017b75
mov rcx, qword [rbp + 0x2f]
lea rax, [rbp + 0x27]
lea edi, [r14 + 2]
mov dword [rbp + 0x27], r14d
mov edx, edi
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, dword [rbp + 0x27]
call fcn.14003c460
mov rbx, rax
test rax, rax
je 0x140017b66
mov r9d, dword [rbp + 0x27]
lea rax, [rbp + 0x27]
mov rcx, qword [rbp + 0x2f]
mov r8, rbx
mov edx, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140017b5e
lea rax, [rbp + 0x37]
mov dword [rbp + 0x3f], r14d
mov qword [rsp + 0x50], rax
lea r8d, [r14 + 0x20]
mov dword [rsp + 0x48], r14d
lea rcx, [rbp + 0x3f]
mov dword [rsp + 0x40], r14d
mov r9d, 0x220
mov dword [rsp + 0x38], r14d
mov dl, dil
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov word [rbp + 0x43], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140017b5e
mov edi, r14d
cmp dword [rbx], r14d
jbe 0x140017b54
mov rcx, qword [rbp + 0x37]
mov edx, edi
add rdx, rdx
mov rdx, qword [rbx + rdx*8 + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x140017b4f
inc edi
cmp edi, dword [rbx]
jb 0x140017b2f
jmp 0x140017b54
mov esi, 1
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, rbx
call fcn.14003c408
mov rcx, qword [rbp + 0x2f]
test rcx, rcx
je 0x140017b75
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14003c810
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140017ba8
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
and dword [rsp + 0x40], 0
lea rax, [rsp + 0x48]
and qword [rsp + 0x48], 0
lea rdx, [0x140042298]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140017c15
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.PendingFileRenameOperations
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x140017dc0
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140017e64
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
and qword [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
xor edx, edx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x140017e54
mov r9d, 4
mov dword [rsp + 0x20], 0x80040002
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140017e64
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14003c810
add rsp, 0x58
ret
Function at 0x140018174
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rdx
mov rsi, rcx
mov ebp, 0x104
lea rcx, [rsp + 0x20]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400181dc
lea r8, [0x14003f558]
mov edx, ebp
lea rcx, [rsp + 0x20]
call fcn.140001584
test eax, eax
js 0x1400181dc
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400181dc
test al, 0x10
je 0x14001821b
mov edx, ebp
lea rcx, [rsp + 0x20]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140018235
lea r8, str.msdxm.ocx
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.140001584
test eax, eax
js 0x140018235
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140018235
test al, 0x10
jne 0x140018235
shr rdi, 1
lea r8, [rsp + 0x20]
mov rdx, rdi
mov rcx, rsi
call fcn.140001470
xor ebx, ebx
test eax, eax
setns bl
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14003c810
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret