joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011050
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x140106b98]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov esi, edx
mov rbx, rcx
movups xmm0, xmmword [str.ServiceAutoStart]
movups xmmword [rbp + 7], xmm0
movups xmm1, xmmword [0x1400dabd0]
movups xmmword [rbp + 0x17], xmm1
movzx eax, word [0x1400dabe0]
mov word [rbp + 0x27], ax
mov edi, 5
xor r15d, r15d
mov qword [rbp - 0x29], r15
mov rcx, qword [rcx + 0x18]
mov rax, qword [rcx]
lea rdx, [rbp - 0x19]
mov rax, qword [rax + 0xa0]
call qword [0x1400d7670]
nop
lea r8, [rbp - 0x29]
mov edx, 0x20019
mov rcx, rax
call fcn.14002b5b0
test eax, eax
sete r14b
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x140011118
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011113
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011255
call fcn.14006b8b4
test r14b, r14b
je 0x14001116c
lea rdx, [rbx + 0x608]
cmp qword [rdx + 0x18], 8
jb 0x14001112e
mov rdx, qword [rdx]
or esi, 0x20006
mov qword [rsp + 0x40], r15
lea rax, [rbp - 0x21]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x1400111b1
mov dword [rbp - 0x29], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 4]
xor r8d, r8d
lea rdx, [rbp + 7]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x140011232
movdqa xmm0, xmmword [str.NvcServiceHost..]
movdqu xmmword [rbp - 0x19], xmm0
mov dword [rbp - 9], 0x707063
mov rcx, qword [rbx + 8]
add rbx, 0x608
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400111dd
mov rax, qword [rbx]
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rax
lea rax, [rbp + 7]
mov qword [rsp + 0x28], rax
lea rsi, str.Failed_to_save_auto_start_flag__ls_to_registry_for_service__ls._Error__ld
mov qword [rsp + 0x20], rsi
mov r9d, 1
mov r8d, 0x140
lea rdx, [rbp - 0x19]
call fcn.1400226f0
cmp qword [rbx + 0x18], 8
jb 0x14001121a
mov rbx, qword [rbx]
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [rbp + 7]
mov rdx, rsi
mov ecx, 0x13
call fcn.140008170
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14006b950
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14007ce08
int3
Function at 0x140013910
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x140106b98]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdx
xor r15d, r15d
mov qword [rsp + 0x40], r15
mov rdi, qword [rcx + 0x20]
mov rax, qword [rdi]
mov r14, qword [rax + 0x10]
mov qword [r11 - 0x60], r15
mov qword [r11 - 0x50], r15
mov qword [r11 - 0x48], 7
mov word [r11 - 0x60], r15w
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140013980
lea rcx, [rsp + 0x88]
call fcn.1400099f0
nop
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0xa8]
mov rcx, rdi
mov rax, r14
call qword [0x1400d7670]
nop
mov rdx, qword [rsp + 0xa0]
cmp rdx, 8
jb 0x1400139fe
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400139f9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013ba9
call fcn.14006b8b4
mov qword [rsp + 0x98], r15
mov qword [rsp + 0xa0], 7
mov word [rsp + 0x88], r15w
lea rdx, [rsp + 0xa8]
cmp qword [rsp + 0xc0], 8
cmovae rdx, qword [rsp + 0xa8]
xor r8d, r8d
mov rcx, rsi
call fcn.140013bc0
mov rdi, rax
mov qword [rsp + 0x40], rax
movdqa xmm0, xmmword [str.NvcPluginLoadHeP]
mov dword [rsp + 0x78], 0x7265706c
mov dword [rsp + 0x7c], 0x336e6957
mov dword [rsp + 0x80], 0x70632e32
mov word [rsp + 0x84], 0x70
movdqu xmmword [rsp + 0x68], xmm0
test rax, rax
je 0x140013aaf
mov qword [rsp + 0x28], rbx
lea rax, str.Loaded_dependency_module__ls
mov qword [rsp + 0x20], rax
mov r9d, 3
mov r8d, 0x8c
lea rdx, [rsp + 0x68]
mov rcx, qword [rsi]
call fcn.1400226f0
jmp 0x140013b31
mov rbx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0xa8]
cmp qword [rsp + 0xc0], 8
cmovae rdx, qword [rsp + 0xa8]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rsi, str.Failed_to_load_dependency__ls._Error__u
mov qword [rsp + 0x20], rsi
mov r9d, 1
mov r8d, 0x90
lea rdx, [rsp + 0x68]
mov rcx, rbx
call fcn.1400226f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rsp + 0xa8]
cmp qword [rsp + 0xc0], 8
cmovae r8, qword [rsp + 0xa8]
mov r9d, eax
mov rdx, rsi
mov ecx, 0x1d
call fcn.140008170
nop
mov rdx, qword [rsp + 0xc0]
cmp rdx, 8
jb 0x140013b76
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xa8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013b70
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013baf
call fcn.14006b8b4
nop
jmp 0x140013b7d
mov rax, rdi
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.14006b950
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.14007ce08
nop
call fcn.14007ce08
int3
Function at 0x140013bc0
Capabilities:
Contain obfuscated stackstrings
Get file version info

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x140106b98]
xor rax, rsp
mov qword [rbp], rax
movups xmm0, xmmword [str.Unknown]
mov r14, rdx
mov r15, rcx
xorps xmm1, xmm1
xor edx, edx
mov rcx, r14
movaps xmmword [rbp - 0x80], xmm0
movzx r12d, r8b
movups xmmword [rbp - 0x70], xmm1
movups xmmword [rbp - 0x60], xmm1
movups xmmword [rbp - 0x50], xmm1
movups xmmword [rbp - 0x40], xmm1
movups xmmword [rbp - 0x30], xmm1
movups xmmword [rbp - 0x20], xmm1
movups xmmword [rbp - 0x10], xmm1
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
je 0x140013d0a
mov ecx, esi
lea rdx, [0x1400e2104]
call fcn.14006c748
mov rdi, rax
test rax, rax
je 0x140013d0a
lea rdx, [0x1400e2104]
mov ecx, 4
call fcn.14006be84
mov rbx, rax
test rax, rax
je 0x140013d02
mov r9, rdi
mov dword [rax], 1
mov r8d, esi
xor edx, edx
mov rcx, r14
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140013ce6
xor eax, eax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x58], rax
lea rdx, [0x1400db2b0]
mov dword [rsp + 0x50], eax
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140013ce6
mov rdx, qword [rsp + 0x58]
movzx ecx, word [rdx + 0xc]
movzx r8d, word [rdx + 0xe]
movzx eax, word [rdx + 8]
movzx r9d, word [rdx + 0xa]
mov edx, 0x40
mov dword [rsp + 0x30], ecx
lea rcx, [rbp - 0x80]
mov dword [rsp + 0x28], r8d
lea r8, str._u._u._u._u
mov dword [rsp + 0x20], eax
call fcn.14000b1a0
sub dword [rbx], 1
jne 0x140013d0a
mov rcx, rdi
call fcn.14006c740
mov edx, 4
mov rcx, rbx
call fcn.14006b8b4
jmp 0x140013d0a
mov rcx, rdi
call fcn.14006c740
call fcn.14001e1f0
mov edx, 0x800
mov r8d, 1
mov rcx, r14
mov rbx, rax
call fcn.14001be50
mov rdi, rax
call fcn.14001e1f0
movdqa xmm0, xmmword [str.NvcPluginLoadHeP]
lea rdx, [rsp + 0x60]
mov rcx, qword [r15]
mov rsi, rax
mov r9d, 3
mov dword [rsp + 0x70], 0x7265706c
lea rax, [rbp - 0x80]
mov dword [rsp + 0x74], 0x336e6957
sub esi, ebx
mov dword [rsp + 0x78], 0x70632e32
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x38], rdi
lea r8d, [r9 + 0x70]
mov qword [rsp + 0x30], rax
lea rax, str.Secure_loading__ls____ls_at__p_took__lu_microseconds
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x7c], 0x70
call fcn.1400226f0
test rdi, rdi
je 0x140013daf
test r12b, r12b
je 0x140013daf
mov rax, qword [r15 + 0x30]
test rax, rax
je 0x140013daf
mov dword [rax + 0x40], esi
mov rax, rdi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.14006b950
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400156c0
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 0x14001579f
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 0x1400156f7
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 0x1400157a2
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 0x140015746
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 0x140015750
test rax, rax
je 0x14001579f
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 0x140015790
cmp rdx, rax
jb 0x140015770
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 0x14001b830
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 0x14001b892
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14001b887
cmp edi, eax
jb 0x14001b887
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 0x14001be50
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 0x14001bfb5
movzx eax, word [rbx]
cmp eax, 0x5c
je 0x14001beb3
cmp eax, 0x2f
je 0x14001beb3
mov ecx, eax
call fcn.1400961e0
test eax, eax
je 0x14001bfb5
cmp word [rbx + 2], 0x3a
jne 0x14001bfb5
movzx eax, word [rbx + 4]
cmp ax, 0x5c
je 0x14001beb3
cmp ax, 0x2f
jne 0x14001bfb5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001bf99
test al, 0x50
jne 0x14001bf99
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 0x14001bf20
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.14001cb80
test eax, eax
je 0x14001bf6b
test r14d, r14d
je 0x14001bf54
cmp dword [rsp + 0x60], edi
jne 0x14001bf54
mov ecx, 0x80092009
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001bf6b
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 0x14001bf89
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x14001bf0a
xor ecx, ecx
jmp 0x14001bf04
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 0x14001dbc0
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 0x14001dc50
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0xa0
mov rax, qword [0x140106b98]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x14001dc97
mov rcx, qword [rdx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
mov qword [rbx], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
mov dword [rsp + 0x30], 1
test eax, eax
je 0x14001ddb1
lfence
mov ecx, ebp
mov r8, qword [rbx + 0x10]
mov rdi, qword [rbx + 0x18]
cmp rbp, r8
ja 0x14001dcf0
mov rax, rbx
cmp rdi, 8
jb 0x14001dce5
mov rax, qword [rbx]
mov qword [rbx + 0x10], rcx
mov word [rax + rbp*2], r14w
jmp 0x14001dd46
mov rdx, rcx
sub rdx, r8
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x14001dd2f
mov qword [rbx + 0x10], rcx
mov r9, rbx
cmp rdi, 8
jb 0x14001dd11
mov r9, qword [rbx]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x14001dd24
movzx eax, r14w
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], r14w
jmp 0x14001dd46
lfence
mov word [rsp + 0x20], r14w
mov r9, rdx
xor r8d, r8d
mov rcx, rbx
call fcn.14001d330
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001dd53
mov rdx, qword [rbx]
cmp qword [rsi + 0x18], 8
jb 0x14001dd5d
mov rsi, qword [rsi]
mov r8d, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, qword [rbx + 0x10]
dec rcx
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001dd7d
mov rdx, qword [rbx]
mov qword [rbx + 0x10], rcx
mov word [rdx + rcx*2], r14w
mov rax, rbx
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14006b950
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x58]
call fcn.14001ec20
nop
mov r8, rax
lea rdx, str.ExpandEnvironmentStringsW_failed__error:
lea rcx, [rsp + 0x78]
call fcn.14001d1c0
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14001d890
lea rdx, [0x140103928]
lea rcx, [rsp + 0x40]
call fcn.14006db8c
int3
Function at 0x14001e130
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140106b98]
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 0x14001e1bc
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x234
call fcn.14006d5a0
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rbx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14001e1b3
cmp dword [rsp + 0x28], edi
je 0x14001e1af
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14001e196
jmp 0x14001e1b3
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.14006b950
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14001e220
Capabilities:
Get session user name

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14001e248
test rdx, rdx
je 0x14001e248
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 0x14001e250
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 0x14001e27b
mov ebx, eax
shr ebx, 4
and bl, 1
jmp 0x14001e283
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
movzx eax, bl
test rdi, rdi
je 0x14001e28d
mov dword [rdi], esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001e2a0
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 0x14001e2cb
mov ebx, eax
shr ebx, 0xa
and bl, 1
jmp 0x14001e2d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
movzx eax, bl
test rdi, rdi
je 0x14001e2dd
mov dword [rdi], esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001e420
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 0x140021350
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140106b98]
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.1400229a0
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 0x1400213be
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140021471
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x1400213cb
mov rax, qword [rbx]
mov r11, qword [rsp + 0x38]
lea r9, [rsp + 0x20]
mov r10, qword [rsp + 0x20]
cmp r11, 8
mov rcx, qword [rsp + 0x30]
cmovae r9, r10
cmp rcx, qword [rbx + 0x10]
jne 0x14002142e
test rcx, rcx
je 0x1400214c9
movzx edx, word [r9]
movzx r8d, word [rax]
cmp dx, r8w
jb 0x14002142e
sub r9, rax
cmp dx, r8w
ja 0x14002142e
cmp rcx, 1
je 0x1400214c9
movzx edx, word [r9 + rax + 2]
add rax, 2
dec rcx
movzx r8d, word [rax]
cmp dx, r8w
jae 0x14002140b
cmp r11, 8
jb 0x140021469
lea rdx, [r11*2 + 2]
mov rax, r10
cmp rdx, 0x1000
jb 0x140021461
mov r10, qword [r10 - 8]
add rdx, 0x27
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021504
mov rcx, r10
call fcn.14006b8b4
inc rdi
jmp 0x140021380
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x1400214af
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400214aa
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021504
call fcn.14006b8b4
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14006b950
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
cmp r11, 8
jb 0x140021500
lea rdx, [r11*2 + 2]
mov rax, r10
cmp rdx, 0x1000
jb 0x1400214f8
mov r10, qword [r10 - 8]
add rdx, 0x27
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021504
mov rcx, r10
call fcn.14006b8b4
mov al, 1
jmp 0x1400214b1
call fcn.14007ce08
int3
Function at 0x1400280a0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140106b98]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov edi, r8d
mov rbx, rdx
xor esi, esi
lea r8, [rsp + 0x58]
mov edx, 0x20019
mov qword [rsp + 0x58], rsi
call fcn.14002b5b0
test eax, eax
jne 0x1400281aa
cmp qword [rbx + 0x18], 8
jb 0x1400280eb
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rsi
or edi, 0x2001f
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov rdx, rbx
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 0x1400281aa
movzx eax, word [0x1400dcc48]
lea r9d, [rbx + 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 0x1400281aa
mov al, 1
jmp 0x1400281ac
xor al, al
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14006b950
add rsp, 0x90
pop rdi
pop rsi
pop rbx
ret
Function at 0x140029ff0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140106b98]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
lea rax, vtable.DirectoryListenerWin32.0
mov qword [rcx], rax
xor r14d, r14d
cmp qword [rcx + 0x228], r14
je 0x14002a0e5
movdqa xmm0, xmmword [str.DirectoryListen]
movdqu xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x40], 0x69577265
mov dword [rbp - 0x3c], 0x2e32336e
mov dword [rbp - 0x38], 0x707063
lea rax, str.Waiting_for_the_listener_thread_to_finish...
mov qword [rsp + 0x20], rax
lea r9d, [r14 + 3]
lea r8d, [r14 + 0x66]
lea rdx, [rbp - 0x50]
mov rcx, qword [rcx + 0x218]
call fcn.140022460
mov edx, 0xffffffff
mov rcx, qword [rbx + 0x228]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x228]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x228], r14
movdqa xmm0, xmmword [str.DirectoryListen]
movdqu xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x20], 0x69577265
mov dword [rbp - 0x1c], 0x2e32336e
mov dword [rbp - 0x18], 0x707063
lea rax, str.Listener_thread_finished...
mov qword [rsp + 0x20], rax
lea r9d, [r14 + 3]
lea r8d, [r14 + 0x6a]
lea rdx, [rbp - 0x30]
mov rcx, qword [rbx + 0x218]
call fcn.140022460
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14002a0f8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], r14
mov rcx, qword [rbx + 0x230]
test rcx, rcx
je 0x14002a111
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x230], r14
mov esi, r14d
cmp dword [rbx + 0x210], r14d
jbe 0x14002a13e
nop dword [rax]
mov eax, esi
lea rdi, [rbx + rax*8]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov qword [rdi + 0x18], r14
inc esi
cmp esi, dword [rbx + 0x210]
jb 0x14002a120
mov rdi, qword [rbx + 0x240]
mov esi, 0xffffffff
test rdi, rdi
je 0x14002a186
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14002a186
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [0x1400d7670]
mov eax, esi
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x14002a186
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [0x1400d7670]
mov rdi, qword [rbx + 0x220]
test rdi, rdi
je 0x14002a1c7
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14002a1c7
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [0x1400d7670]
lock xadd dword [rdi + 0xc], esi
cmp esi, 1
jne 0x14002a1c7
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [0x1400d7670]
lea rax, vtable.DirectoryListenerBase.0
mov qword [rbx], rax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14006b950
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret