joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002c40
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x300
mov rax, qword [0x180038240]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov rdi, rdx
lea rdx, [rsp + 0x258]
mov rbx, rcx
sub rdx, rcx
movzx eax, word [rcx]
add rcx, 2
mov word [rdx + rcx - 2], ax
test ax, ax
jne 0x180002c70
mov ecx, dword [0x18003aa90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x50]
mov rcx, rax
lea rax, [rsp + 0x40]
mov r9d, 0x298
mov qword [rsp + 0x30], rax
mov edx, 0x22001c
mov dword [rsp + 0x28], 0x22c
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x180002cd1
mov eax, 1
jmp 0x180002cf8
cmp word [rdi + 0x24], 0
jne 0x180002cf1
sub rdi, rbx
nop dword [rax + rax]
movzx eax, word [rbx]
add rbx, 2
mov word [rdi + rbx + 0x22], ax
test ax, ax
jne 0x180002ce0
mov eax, dword [rsp + 0x2de]
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.180015920
mov rbx, qword [rsp + 0x310]
add rsp, 0x300
pop rdi
ret

Function at 0x180002d20
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x40
mov ecx, dword [0x18003aa90]
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edi, edi
lea r8, [rsp + 0x50]
mov qword [rsp + 0x38], rdi
mov rcx, rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea r9d, [rdi + 4]
mov edx, 0x220050
mov dword [rsp + 0x28], 0x18
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rbx, qword [rsp + 0x58]
test eax, eax
sete dil
mov eax, edi
add rsp, 0x40
pop rdi
ret

Function at 0x180002d90
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov ecx, 0x298
mov rsi, r8
mov rbp, rdx
call sym.dcapi.dll_secure_alloc
mov rdi, rax
test rax, rax
jne 0x180002dc7
lea eax, [rdi + 9]
jmp 0x180002e5d
mov rcx, rax
sub rcx, rbx
nop dword [rax]
movzx eax, word [rbx]
add rbx, 2
mov word [rcx + rbx + 0x206], ax
test ax, ax
jne 0x180002dd0
mov rcx, rdi
mov rdx, rbp
mov r8d, 0x104
call fcn.180016100
movzx r11d, word [rsi]
mov word [rdi + 0x296], r11w
mov ecx, dword [0x18003aa90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x38], 0
mov r9d, 0x298
mov rcx, rax
lea rax, [rsp + 0x68]
mov r8, rdi
mov qword [rsp + 0x30], rax
mov edx, 0x220068
mov dword [rsp + 0x28], 0x298
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, 1
test eax, eax
je 0x180002e53
mov ebx, dword [rdi + 0x28e]
mov rcx, rdi
call sym.dcapi.dll_secure_free
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x180002e80
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x308
mov rax, qword [0x180038240]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
lea rdx, [rsp + 0x258]
sub rdx, rcx
nop word [rax + rax]
movzx eax, word [rcx]
add rcx, 2
mov word [rdx + rcx - 2], ax
test ax, ax
jne 0x180002eb0
mov ecx, dword [0x18003aa90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x50]
mov rcx, rax
lea rax, [rsp + 0x40]
mov r9d, 0x298
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov edx, 0x220070
mov dword [rsp + 0x28], 0x298
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
mov ecx, 1
cmovne ecx, dword [rsp + 0x2de]
mov eax, ecx
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.180015920
add rsp, 0x308
ret

Function at 0x180002f40
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov ecx, dword [0x18003aa90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edx, edx
xor r9d, r9d
mov qword [rsp + 0x38], rdx
mov rcx, rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rdx
mov edx, 0x220054
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
add rsp, 0x48
ret

Function at 0x180002f90
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov ecx, 0x98a
mov rsi, r8
mov rbp, rdx
call sym.dcapi.dll_secure_alloc
mov rdi, rax
test rax, rax
jne 0x180002fc7
lea eax, [rdi + 9]
jmp 0x180003067
mov rcx, rax
sub rcx, rbx
nop dword [rax]
movzx eax, word [rbx]
add rbx, 2
mov word [rcx + rbx - 2], ax
test ax, ax
jne 0x180002fd0
lea rcx, [rdi + 0x82]
mov rdx, rbp
mov r8d, 0x104
call fcn.180016100
mov ecx, dword [0x18003aa90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x38], 0
mov r9d, 0x98a
mov rcx, rax
lea rax, [rsp + 0x68]
mov r8, rdi
mov qword [rsp + 0x30], rax
mov edx, 0x220074
mov dword [rsp + 0x28], 0x98a
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x180003042
lea ebx, [rax + 1]
jmp 0x18000305d
lea rdx, [rdi + 0x186]
mov rcx, rsi
mov r8d, 0x800
call fcn.180016100
mov ebx, dword [rdi + 0x986]
mov rcx, rdi
call sym.dcapi.dll_secure_free
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x180003090
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov ecx, 0x98a
mov rsi, r8
mov rbp, rdx
call sym.dcapi.dll_secure_alloc
mov rdi, rax
test rax, rax
jne 0x1800030c7
lea eax, [rdi + 9]
jmp 0x180003167
mov rcx, rax
sub rcx, rbx
nop dword [rax]
movzx eax, word [rbx]
add rbx, 2
mov word [rcx + rbx - 2], ax
test ax, ax
jne 0x1800030d0
lea rcx, [rdi + 0x82]
mov rdx, rbp
mov r8d, 0x104
call fcn.180016100
lea rcx, [rdi + 0x186]
mov rdx, rsi
mov r8d, 0x800
call fcn.180016100
mov ecx, dword [0x18003aa90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x38], 0
mov r9d, 0x98a
mov rcx, rax
lea rax, [rsp + 0x68]
mov r8, rdi
mov qword [rsp + 0x30], rax
mov edx, 0x220078
mov dword [rsp + 0x28], 0x98a
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, 1
test eax, eax
je 0x18000315d
mov ebx, dword [rdi + 0x986]
mov rcx, rdi
call sym.dcapi.dll_secure_free
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x180003210
Capabilities:
Enumerate disk volumes

Disassembly:
sub rsp, 0xaa8
mov rax, qword [0x180038240]
xor rax, rsp
mov qword [rsp + 0xa90], rax
lea rcx, [rsp + 0x880]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov qword [rsp + 0x20], rax
cmp rax, 0xffffffffffffffff
je 0x1800032f8
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x880]
call fcn.180001dc0
test eax, eax
je 0x1800032b0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x670]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800032ed
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x670]
call fcn.180001dc0
test eax, eax
je 0x1800032b0
lea rcx, [rsp + 0x20]
call sym.dcapi.dll_dc_next_volume
test eax, eax
jne 0x1800032f8
nop dword [rax]
test byte [rsp + 0x448], 1
je 0x1800032c9
lea rcx, [rsp + 0x28]
mov edx, 1
call sym.dcapi.dll_dc_unmount_volume
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x670]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x180003285
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
xor eax, eax
mov rcx, qword [rsp + 0xa90]
xor rcx, rsp
call fcn.180015920
add rsp, 0xaa8
ret
Function at 0x180003440
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rdi, rcx
lea r8, [rsp + 0x60]
lea rdx, str.SYSTEMCurrentControlSetServicesdcryptconfig
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test eax, eax
jne 0x180003564
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rbx, [rdi + 4]
lea rdx, str.Flags
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x58], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ebp, ebp
test eax, eax
je 0x1800034b2
mov dword [rbx], ebp
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
lea rdx, str.sysBuild
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x58], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1800034e7
mov dword [rdi], ebp
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
lea rbx, [rdi + 0xc]
mov qword [rsp + 0x28], rax
lea rdx, str.Hotkeys
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x58], 0x10
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x180003527
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
xor edx, edx
mov ecx, 0x220058
mov dword [rsp + 0x20], 8
call sym.dcapi.dll_dc_device_control
mov rcx, qword [rsp + 0x60]
test eax, eax
cmove ebp, dword [rsp + 0x6c]
mov dword [rdi + 8], ebp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x50]
mov eax, esi
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x180003580
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
mov eax, dword [rcx + 4]
lea rbx, [rcx + 4]
mov rdi, rcx
mov dword [rsp + 0x50], eax
mov eax, dword [rcx + 8]
lea r8, [rsp + 0x48]
lea rdx, str.SYSTEMCurrentControlSetServicesdcryptconfig
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x40], 0x322
mov dword [rsp + 0x54], eax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x18000369d
mov rcx, qword [rsp + 0x48]
lea r9d, [rax + 4]
lea rdx, str.Flags
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x180003690
mov rcx, qword [rsp + 0x48]
lea rax, [rdi + 0xc]
lea r9d, [rbx + 3]
lea rdx, str.Hotkeys
xor r8d, r8d
mov dword [rsp + 0x28], 0x10
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x180003690
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea r9d, [rbx + 4]
lea rdx, str.sysBuild
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x180003690
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ebx, eax
test eax, eax
jne 0x180003690
lea r8d, [rax + 8]
lea rdx, [rsp + 0x50]
xor edi, edi
xor r9d, r9d
mov ecx, 0x22005c
mov dword [rsp + 0x20], edi
call sym.dcapi.dll_dc_device_control
mov ebx, eax
cmp eax, 0x591
cmove ebx, edi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1800036b0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x860
mov rax, qword [0x180038240]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rsi, r8
mov rbp, rdx
mov rdx, rcx
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000002
lea rbx, [rsp + 0x50]
mov dword [rsp + 0x30], 0x800
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x18000387e
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x890], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x180003869
cmp dword [rsp + 0x40], 7
jne 0x180003864
mov r8d, dword [rsp + 0x30]
cmp r8d, 2
jb 0x180003864
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
lea r9, [rcx - 1]
add r9d, r9d
je 0x180003837
nop word [rax + rax]
mov rdi, rsi
mov rax, rbx
sub rdi, rbx
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + rdi]
sub edx, ecx
jne 0x1800037a3
add rax, 2
test ecx, ecx
jne 0x180003790
test edx, edx
jne 0x18000380f
mov eax, 0xfffffffe
mov rcx, rbx
sub eax, r9d
add r8d, eax
mov eax, r8d
mov dword [rsp + 0x30], r8d
sub rax, rbx
lea r8, [rsp + rax + 0x50]
mov eax, r9d
lea rdx, [rax + rbx + 2]
call fcn.180016100
mov r8d, dword [rsp + 0x30]
test r8d, r8d
je 0x1800037e4
cmp word [rsp + 0x50], 0
jne 0x18000381a
mov dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x38]
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
test eax, eax
jne 0x180003869
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edi, eax
jmp 0x180003869
mov eax, r9d
shr rax, 1
lea rbx, [rbx + rax*2 + 2]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
add ecx, ecx
mov r9d, ecx
jne 0x180003780
test r8d, r8d
je 0x1800037ec
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x28], r8d
lea rax, [rsp + 0x50]
mov r9d, 7
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1800037fa
mov edi, 0x65d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rdi, qword [rsp + 0x890]
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.180015920
add rsp, 0x860
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800038a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push r13
sub rsp, 0x878
mov rax, qword [0x180038240]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rbp, r8
mov r13, rdx
mov rdx, rcx
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x180003a79
mov qword [rsp + 0x8a8], rbx
xor eax, eax
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x870], rsi
mov qword [rsp + 0x868], rdi
mov rdi, rbp
repne scasw ax, word [rdi]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x860], r12
not rcx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea r12d, [rcx + rcx]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, r13
mov dword [rsp + 0x30], 0x800
lea rbx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
je 0x18000396a
cmp eax, 2
jne 0x180003a4c
xor eax, eax
mov r8d, esi
mov word [rsp + 0x50], ax
mov dword [rsp + 0x30], r8d
jmp 0x1800039e3
cmp dword [rsp + 0x40], 7
jne 0x180003a47
mov r8d, dword [rsp + 0x30]
lea eax, [r8 + r12]
cmp eax, 0x800
ja 0x180003a47
cmp word [rsp + 0x50], 0
je 0x1800039e3
nop word [rax + rax]
mov rdi, rbp
mov rax, rbx
sub rdi, rbx
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + rdi]
sub edx, ecx
jne 0x1800039c3
add rax, 2
test ecx, ecx
jne 0x1800039b0
test edx, edx
je 0x180003a4c
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea rbx, [rbx + rcx*2]
cmp word [rbx], ax
jne 0x1800039a0
lea rcx, [rsp + r12 + 0x50]
lea rdx, [rsp + 0x50]
call fcn.180016100
lea rcx, [rsp + 0x50]
mov r8d, r12d
mov rdx, rbp
call fcn.180016100
mov ecx, dword [rsp + 0x30]
lea rax, [rsp + 0x50]
add ecx, r12d
mov r9d, 7
xor r8d, r8d
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x30], ecx
mov rcx, qword [rsp + 0x38]
mov rdx, r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test eax, eax
jne 0x180003a4c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov esi, eax
jmp 0x180003a4c
mov esi, 0x65d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r12, qword [rsp + 0x860]
mov rdi, qword [rsp + 0x868]
mov rbx, qword [rsp + 0x8a8]
mov eax, esi
mov rsi, qword [rsp + 0x870]
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.180015920
add rsp, 0x878
pop r13
pop rbp
ret
Function at 0x180003b40
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
lea r8, [rsp + 0x50]
lea rdx, str.SYSTEMCurrentControlSetServicesdcryptInstances
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], eax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ebx, eax
test eax, eax
jne 0x180003c59
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rdi
lea rdi, str.dcrypt
lea r9d, [rax + 1]
lea rdx, str.DefaultInstance
xor r8d, r8d
mov dword [rsp + 0x28], 0xe
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x180003c54
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x48]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ebx, eax
test eax, eax
jne 0x180003c54
mov rcx, qword [rsp + 0x48]
lea rax, str.87150
lea r9d, [rbx + 1]
lea rdx, str.Altitude
xor r8d, r8d
mov dword [rsp + 0x28], 0xc
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x180003c54
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea r9d, [rbx + 4]
lea rdx, str.Flags
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x180003c54
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ebx, eax
test eax, eax
jne 0x180003c54
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ebx, eax
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180003c69
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180003c79
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x180003d30
Capabilities:
Copy file
Get common file path

Disassembly:
sub rsp, 0x678
mov rax, qword [0x180038240]
xor rax, rsp
mov qword [rsp + 0x660], rax
mov rcx, qword [0x18003aa88]
test rcx, rcx
je 0x180003e87
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x180003e87
mov qword [rsp + 0x680], rbx
mov ebx, 0x103
cmp eax, ebx
jae 0x180003e7d
lea rcx, [rsp + 0x30]
mov edx, 0x5c
call fcn.180016548
test rax, rax
je 0x180003e7d
lea rdx, [rsp + 0x30]
mov rcx, rax
mov qword [rsp + 0x670], rdi
sub rcx, rdx
lea rdi, str.dcrypt.sys
sar rcx, 1
mov r8, rdi
sub rbx, rcx
lea rcx, [rax + 2]
mov rdx, rbx
call fcn.180004550
test eax, eax
jns 0x180003dff
mov eax, 0x7a
mov rdi, qword [rsp + 0x670]
mov rbx, qword [rsp + 0x680]
mov rcx, qword [rsp + 0x660]
xor rcx, rsp
call fcn.180015920
add rsp, 0x678
ret
lea rcx, [rsp + 0x240]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x180003e73
cmp eax, 0x104
jae 0x180003e73
lea r9, [rsp + 0x240]
lea r8, str._sdrivers_s
lea rcx, [rsp + 0x450]
mov edx, 0x104
mov qword [rsp + 0x20], rdi
call fcn.1800045d0
test eax, eax
js 0x180003dd2
lea rdx, [rsp + 0x450]
lea rcx, [rsp + 0x30]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x180003e6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180003dd7
xor eax, eax
jmp 0x180003dd7
mov eax, 0x7b
jmp 0x180003dd7
mov eax, 0x7b
jmp 0x180003ddf
mov eax, 0x7b
mov rcx, qword [rsp + 0x660]
xor rcx, rsp
call fcn.180015920
add rsp, 0x678
ret
Function at 0x180003eb0
Capabilities:
Create service
Get common file path

Disassembly:
sub rsp, 0x4a8
mov rax, qword [0x180038240]
xor rax, rsp
mov qword [rsp + 0x490], rax
lea rcx, [rsp + 0x70]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x18000401c
cmp eax, 0x104
jae 0x18000401c
lea rax, str.dcrypt.sys
lea r9, [rsp + 0x70]
lea r8, str._sdrivers_s
lea rcx, [rsp + 0x280]
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.1800045d0
test eax, eax
jns 0x180003f37
mov eax, 0x7a
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.180015920
add rsp, 0x4a8
ret
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov qword [rsp + 0x4b0], rbx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x180003f7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x4b0]
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.180015920
add rsp, 0x4a8
ret
lea rax, str.FltMgr
mov qword [rsp + 0x4a0], rdi
xor edi, edi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rdi
lea rax, str.Filter
lea r8, str.DiskCryptor_driver
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x280]
lea rdx, [0x18002a6c0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 3
mov r9d, 0xf01ff
mov rcx, rbx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
je 0x180003ffc
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x180004004
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
mov rdi, qword [rsp + 0x4a0]
jmp 0x180003f5d
mov eax, 0x7b
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.180015920
add rsp, 0x4a8
ret
Function at 0x180004040
Capabilities:
Delete file
Delete service
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x180038240]
xor rax, rsp
mov qword [rsp + 0x450], rax
lea r8, [0x18002a6c0]
lea rdx, str.UpperFilters
lea rcx, str.SYSTEMCurrentControlSetControlClass4D36E965_E325_11CE_BFC1_08002BE10318
xor ebp, ebp
call fcn.1800036b0
lea r8, [0x18002a6c0]
test eax, eax
lea rdx, str.LowerFilters
lea rcx, str.SYSTEMCurrentControlSetControlClass71A27CDD_812A_11D0_BEC7_08002BE2092F
mov esi, ebp
cmovne esi, eax
call fcn.1800036b0
mov r8d, 0xf003f
test eax, eax
mov ebx, ebp
cmovne esi, eax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x1800040f0
lea rdx, [0x18002a6c0]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x1800040f0
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1800040f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test rbx, rbx
je 0x180004106
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x180004114
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, [rsp + 0x30]
test ebp, ebp
mov edx, 0x104
cmovne esi, ebp
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x180004187
cmp eax, 0x104
jae 0x180004187
lea rax, str.dcrypt.sys
lea r9, [rsp + 0x30]
lea r8, str._sdrivers_s
lea rcx, [rsp + 0x240]
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.1800045d0
test eax, eax
jns 0x180004169
mov eax, 0x7a
jmp 0x18000418c
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180004183
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18000418c
mov eax, esi
jmp 0x18000418c
mov eax, 0x7b
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.180015920
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

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

Disassembly:
sub rsp, 0x468
mov rax, qword [0x180038240]
xor rax, rsp
mov qword [rsp + 0x450], rax
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x180004252
cmp eax, 0x104
jae 0x180004252
lea rax, str.dcrypt.sys
lea r9, [rsp + 0x30]
lea r8, str._sdrivers_s
lea rcx, [rsp + 0x240]
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.1800045d0
test eax, eax
js 0x180004252
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.180015920
add rsp, 0x468
ret
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.180015920
add rsp, 0x468
ret