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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400b1318]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov ebx, edx
mov rdi, rcx
xor esi, esi
lea rdx, [rsp + 0x58]
mov ecx, 0x20019
mov qword [rsp + 0x58], rsi
call fcn.14001b9a0
test eax, eax
jne 0x140009f04
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rsi
lea rdx, [rdi + 0x780]
mov qword [rsp + 0x38], rax
or ebx, 0x2001f
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140009f04
movzx eax, word [0x140093520]
lea r9d, [rsi + 0x10]
movups xmm0, xmmword [str.Recovery]
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x68]
mov word [rsp + 0x78], ax
xor edx, edx
lea rax, [rsp + 0x58]
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
movups xmmword [rsp + 0x68], xmm0
mov dword [rsp + 0x58], 4
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x50], esi
je 0x140009f04
mov rcx, qword [rdi + 8]
lea rax, str.Safe_mode_is_ON._Optional_plugins_will_not_be_loaded
lea r9d, [rsi + 2]
mov qword [rsp + 0x20], rax
mov r8d, 0x145
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercontainerwindowsNvcServiceHost.cpp
call fcn.1400170d0
mov al, 1
jmp 0x140009f06
xor al, al
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140026d60
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000a010
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
lea rax, str.Service_host:
mov rcx, qword [rcx + 8]
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercontainerwindowsNvcServiceHost.cpp
mov r9d, 4
mov qword [rsp + 0x20], rax
mov r8d, 0x21e
call fcn.1400170d0
cmp word [rdi + 0x780], 0
jne 0x14000a091
mov rcx, qword [rdi + 8]
lea rbx, str.Service_host:_service_registration_failed
mov r9d, 1
mov qword [rsp + 0x20], rbx
mov r8d, 0x224
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercontainerwindowsNvcServiceHost.cpp
call fcn.1400170d0
mov rdx, rbx
mov ecx, 0x14
call fcn.140004fb0
xor al, al
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
xor ebx, ebx
mov qword [rsp + 0x40], rsi
mov rcx, rdi
mov dword [rdi + 0x75c], 4
mov dword [rdi + 0x770], ebx
mov dword [rdi + 0x760], 5
lea edx, [rbx + 3]
call fcn.140009f30
call fcn.140018810
shr eax, 1
test al, 1
je 0x14000a167
mov qword [rsp + 0x28], rbx
lea r8, [0x14000a400]
mov r9, rdi
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x808], rax
test rax, rax
jne 0x14000a13f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi + 8]
lea rbx, str.Service_host:_failed_to_create_ServiceConfigThread._Error__u
mov dword [rsp + 0x28], eax
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercontainerwindowsNvcServiceHost.cpp
mov r9d, 1
mov qword [rsp + 0x20], rbx
mov r8d, 0x239
call fcn.1400170d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
mov ecx, 0x11
mov r8d, eax
call fcn.140004fb0
jmp 0x14000a167
mov rcx, qword [rdi + 8]
lea rax, str.Service_host:_Created_ServiceConfigThread
mov r9d, 3
mov qword [rsp + 0x20], rax
mov r8d, 0x23d
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercontainerwindowsNvcServiceHost.cpp
call fcn.1400170d0
cmp qword [rdi + 0x130], 0
je 0x14000a181
call fcn.140014dc0
mov rcx, qword [rdi + 0x130]
mov qword [rcx + 0x18], rax
mov rcx, rdi
call fcn.140005220
movzx esi, al
test al, al
je 0x14000a264
cmp qword [rdi + 0x130], 0
je 0x14000a1b7
mov rbx, qword [rdi + 0x130]
call fcn.140014dc0
sub eax, dword [rbx + 0x18]
cmp dword [rbx + 8], eax
cmovae eax, dword [rbx + 8]
mov dword [rbx + 8], eax
mov rcx, rdi
call fcn.140004ba0
mov rcx, rdi
call fcn.1400038b0
mov edx, 3
mov dword [rdi + 0x75c], 3
mov rcx, rdi
mov dword [rdi + 0x770], 0x7530
movzx esi, al
mov dword [rdi + 0x760], 5
call fcn.140009f30
test sil, sil
je 0x14000a232
mov rax, qword [rdi + 0x130]
test rax, rax
je 0x14000a232
call fcn.140014dc0
mov rcx, qword [rdi + 0x130]
mov qword [rcx + 0x18], rax
mov rax, qword [rdi + 0x130]
test rax, rax
je 0x14000a232
call fcn.140014dc0
mov rcx, qword [rdi + 0x130]
mov qword [rcx + 0x20], rax
xor edx, edx
mov rcx, rdi
call fcn.140005490
test sil, sil
je 0x14000a264
cmp qword [rdi + 0x130], 0
je 0x14000a264
mov rbx, qword [rdi + 0x130]
call fcn.140014dc0
sub eax, dword [rbx + 0x18]
cmp dword [rbx + 0xc], eax
cmovae eax, dword [rbx + 0xc]
mov dword [rbx + 0xc], eax
mov rbx, qword [rsp + 0x48]
movzx eax, sil
mov rsi, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14000a280
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x1400b1318]
xor rax, rsp
mov qword [rsp + 0x88], rax
movups xmm0, xmmword [str.ServiceAutoStart]
movzx eax, word [0x140093580]
mov edi, edx
movups xmm1, xmmword [0x140093570]
mov rbp, rcx
lea rsi, [rcx + 0x780]
movups xmmword [rsp + 0x60], xmm0
xor r14d, r14d
lea rdx, [r11 - 0x58]
movups xmmword [rsp + 0x70], xmm1
mov ecx, 0x20019
mov word [r11 - 0x28], ax
mov ebx, 5
mov qword [r11 - 0x58], r14
call fcn.14001b9a0
test eax, eax
jne 0x14000a33a
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], r14
or edi, 0x20006
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov rdx, rsi
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14000a380
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
lea r9d, [rbx + 4]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x50], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x14000a3d4
mov rcx, qword [rbp + 8]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x38], ebx
lea rdi, str.Failed_to_save_auto_start_flag__ls_to_registry_for_service__ls._Error__ld
mov qword [rsp + 0x30], rsi
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercontainerwindowsNvcServiceHost.cpp
mov qword [rsp + 0x28], rax
mov r9d, 1
mov r8d, 0x169
mov qword [rsp + 0x20], rdi
call fcn.1400170d0
mov r9, rsi
mov dword [rsp + 0x20], ebx
lea r8, [rsp + 0x60]
mov rdx, rdi
mov ecx, 0x13
call fcn.140004fb0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140026d60
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14000c7a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x14000c87f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rbx + rdx*2], si
jne 0x14000c7d7
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x14000c882
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x14000c826
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], di
jne 0x14000c830
test rax, rax
je 0x14000c87f
lfence
mov rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
mov edx, edi
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x14000c870
cmp rdx, rax
jb 0x14000c850
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140011a90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x30
mov rbx, rcx
xor ebp, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x140011cbe
xor edx, edx
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], dx
jne 0x140011ac0
test rax, rax
je 0x140011af4
xor ecx, ecx
movzx r8d, word [rbx + rcx*2]
cmp r8w, 0x5c
je 0x140011cbe
cmp r8w, 0x2f
je 0x140011cbe
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x140011ad0
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call fcn.140011ce0
mov rsi, rax
test rax, rax
je 0x140011bee
mov qword [rsp + 0x50], r14
call fcn.140012aa0
mov r14, rax
test rax, rax
je 0x140011bdb
mov rcx, rsi
call fcn.14000c5f0
test eax, eax
je 0x140011bc4
lea rax, str.system32_
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x20]
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rdx, qword [rdi]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdx + rbx*2], bp
jne 0x140011b70
mov r8, rbx
mov rcx, rsi
call fcn.140061c34
test eax, eax
je 0x140011b98
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
jb 0x140011b60
jmp 0x140011ba7
lea rdx, [rsi + rbx*2]
mov rcx, r14
call fcn.140010460
mov rbp, rax
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x140011bd2
mov rcx, rsi
call fcn.14000c5a0
test eax, eax
je 0x140011bd2
mov rbp, rsi
xor esi, esi
jmp 0x140011bd2
mov rdx, rsi
mov rcx, r14
call fcn.140010460
mov rbp, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x50]
jmp 0x140011c8a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x140011c93
mov rcx, rbx
call fcn.14000c4a0
mov rdi, rax
test rax, rax
je 0x140011c93
mov ecx, 0x37e4
call fcn.14000f680
test eax, eax
je 0x140011c28
xor ecx, ecx
call fcn.1400127b0
jmp 0x140011c2d
call fcn.140012aa0
mov rbx, rax
test rax, rax
je 0x140011c81
mov rdx, rdi
mov rcx, rax
call fcn.140010460
mov rbp, rax
test rax, rax
je 0x140011c78
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140011c5a
test al, 0x50
je 0x140011c78
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140011c6d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
je 0x140011c93
xor ecx, ecx
jmp 0x140011ca0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140011ca6
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x48]
mov rax, rbp
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rbp
ret
Function at 0x140012aa0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov ecx, 0x40
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140012b02
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140012af7
cmp edi, eax
jb 0x140012af7
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rbx, rcx
mov ebp, r8d
xor ecx, ecx
mov r14d, edx
xor esi, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x140012ffe
movzx eax, word [rbx]
cmp eax, 0x5c
je 0x140012f09
cmp eax, 0x2f
je 0x140012f09
mov ecx, eax
call fcn.1400615a8
test eax, eax
je 0x140012ffe
cmp word [rbx + 2], 0x3a
jne 0x140012ffe
movzx eax, word [rbx + 4]
cmp ax, 0x5c
je 0x140012f09
cmp ax, 0x2f
jne 0x140012ffe
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140012ff7
test al, 0x50
jne 0x140012ff7
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140012f5a
lea ecx, [rax + 0x21]
jmp 0x140013003
mov rcx, rbx
call fcn.14000f3b0
test eax, eax
jne 0x140012fcc
test ebp, ebp
mov dword [rsp + 0x60], esi
lea rdx, [rsp + 0x60]
mov rcx, rbx
cmove rdx, rsi
call fcn.140013cc0
test eax, eax
je 0x140012f96
test ebp, ebp
je 0x140012fcc
cmp dword [rsp + 0x60], esi
jne 0x140012fcc
mov ecx, 0x80092009
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.14000fa00
test eax, eax
jne 0x140012fcc
test rdi, rdi
je 0x140012fc8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14001300c
mov r8d, r14d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
test rdi, rdi
je 0x140013009
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
jmp 0x140013003
mov ecx, 0x7e
jmp 0x140013003
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x1400132b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x40
mov rbx, rcx
mov r14d, r8d
xor ecx, ecx
mov ebp, edx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x140013416
movzx eax, word [rbx]
cmp eax, 0x5c
je 0x140013313
cmp eax, 0x2f
je 0x140013313
mov ecx, eax
call fcn.1400615a8
test eax, eax
je 0x140013416
cmp word [rbx + 2], 0x3a
jne 0x140013416
movzx eax, word [rbx + 4]
cmp ax, 0x5c
je 0x140013313
cmp ax, 0x2f
jne 0x140013416
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400133fa
test al, 0x50
jne 0x1400133fa
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov edx, 0x80000000
mov rcx, rbx
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140013380
lea ecx, [rax + 0x21]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
test r14d, r14d
mov dword [rsp + 0x60], edi
lea rdx, [rsp + 0x60]
mov rcx, rbx
cmove rdx, rdi
call fcn.140013cc0
test eax, eax
je 0x1400133b2
test r14d, r14d
je 0x1400133c6
cmp dword [rsp + 0x60], edi
jne 0x1400133c6
mov ecx, 0x80092009
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.14000fa00
test eax, eax
je 0x1400133dd
and ebp, 0xffffe8f7
xor edx, edx
mov r8d, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rsi, rsi
je 0x14001336a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
jmp 0x140013364
mov ecx, 0x7e
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x1400148a0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x140014930
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
je 0x1400149b8
xor r8d, r8d
mov qword [rsp + 0x38], rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test eax, eax
je 0x1400149ab
mov qword [rsp + 0x30], rbx
lfence
mov rcx, 0xffffffffffffffff
mov eax, 2
mul rsi
lea rdx, [0x1400b4794]
cmovo rax, rcx
mov rcx, rax
call fcn.140028004
mov rbx, rax
test rax, rax
je 0x14001499b
lfence
mov r8d, esi
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x140014d00
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400b1318]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov edi, ecx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140014d8c
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x234
call fcn.140028750
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rbx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140014d83
cmp dword [rsp + 0x28], edi
je 0x140014d7f
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140014d66
jmp 0x140014d83
mov esi, dword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140026d60
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140014df0
Capabilities:
Get session user name

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140014e18
test rdx, rdx
je 0x140014e18
mov dword [rsp + 0x30], edx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp eax, 1
sete al
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
xor bl, bl
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140014e4b
mov ebx, eax
shr ebx, 4
and bl, 1
jmp 0x140014e53
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
movzx eax, bl
test rdi, rdi
je 0x140014e5d
mov dword [rdi], esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140014e70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
xor bl, bl
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140014e9b
mov ebx, eax
shr ebx, 0xa
and bl, 1
jmp 0x140014ea3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
movzx eax, bl
test rdi, rdi
je 0x140014ead
mov dword [rdi], esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140015100
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x140016bf0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1400b1318]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov edi, 1
nop dword [rax]
nop word [rax + rax]
mov r8, rdi
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.140017860
cmp qword [rsp + 0x38], 8
lea rcx, [rsp + 0x20]
cmovae rcx, qword [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140016c5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140016d3d
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x140016c6b
mov rax, qword [rbx]
mov r10, qword [rsp + 0x38]
lea r8, [rsp + 0x20]
mov r9, qword [rsp + 0x20]
cmp r10, 8
mov rdx, qword [rsp + 0x30]
cmovae r8, r9
cmp rdx, qword [rbx + 0x10]
jne 0x140016cfe
test rdx, rdx
je 0x140016ca9
sub r8, rax
movzx ecx, word [rax]
cmp word [r8 + rax], cx
jne 0x140016cfe
add rax, 2
sub rdx, 1
jne 0x140016c95
cmp r10, 8
jb 0x140016ce4
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x140016cdc
mov r9, qword [r9 - 8]
add rdx, 0x27
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016d82
mov rcx, r9
call fcn.140026db8
mov al, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140026d60
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
cmp r10, 8
jb 0x140016d35
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x140016d2d
mov r9, qword [r9 - 8]
add rdx, 0x27
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016d82
mov rcx, r9
call fcn.140026db8
inc rdi
jmp 0x140016c20
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140016d7b
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016d76
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016d82
call fcn.140026db8
xor al, al
jmp 0x140016ce6
call fcn.140063e28
int3
Function at 0x140019b20
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x210], 0
mov rbx, rcx
jne 0x140019b65
lea rax, str.Directory_listener_has_not_been_configured.
mov r8d, 0xb0
mov rcx, qword [rcx + 0x218]
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercommonwindowsDirectoryListenerWin32.cpp
mov r9d, 1
mov qword [rsp + 0x20], rax
call fcn.1400170d0
xor al, al
add rsp, 0x30
pop rbx
ret
cmp qword [rcx + 0x228], 0
je 0x140019b7e
lea rax, str.Directory_listener_is_already_running.
mov r8d, 0xb6
jmp 0x140019b3f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x228], rax
test rax, rax
jne 0x140019bb0
mov rcx, qword [rbx + 0x218]
lea rax, str.Failed_to_start_directory_listener__no_start_event_.
mov r8d, 0xbd
jmp 0x140019b46
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 8], rax
test rax, rax
jne 0x140019be4
mov rcx, qword [rbx + 0x218]
lea rax, str.Failed_to_start_directory_listener__no_quit_event_.
mov r8d, 0xc4
jmp 0x140019b46
xor eax, eax
lea r8, [0x140019e80]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x220], rax
test rax, rax
jne 0x140019c28
mov rcx, qword [rbx + 0x218]
lea rax, str.Failed_to_create_directory_listener_thread.
mov r8d, 0xcb
jmp 0x140019b46
mov rcx, qword [rbx + 0x228]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x218]
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercommonwindowsDirectoryListenerWin32.cpp
test eax, eax
je 0x140019c5e
lea rax, str.Failed_to_start_directory_listener_thread.
mov r8d, 0xd1
jmp 0x140019b4d
lea rax, str.Directory_listener_thread_started.
mov r9d, 4
mov r8d, 0xd5
mov qword [rsp + 0x20], rax
call fcn.1400170d0
mov al, 1
add rsp, 0x30
pop rbx
ret