joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007bdb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1400bfbc8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 3
mov rsi, r8
mov rbx, rdx
xor bpl, bpl
call fcn.140008160
call fcn.1400083a0
mov r8, qword [rsi]
mov edx, 0x2712
mov rcx, rax
mov rdi, rax
call fcn.1400083f0
lea r8, [0x14007bee0]
mov edx, 0x4e2b
mov rcx, rdi
call fcn.1400083f0
mov r8, rbx
mov edx, 0x2711
mov rcx, rdi
call fcn.1400083f0
lea r8, [rsp + 0x20]
mov dword [rsp + 0x2e], 0x302e31
mov edx, 0x2722
mov dword [rsp + 0x24], 0x2d6c7275
mov rcx, rdi
mov dword [rsp + 0x20], 0x6362696c
mov dword [rsp + 0x28], 0x6e656761
mov word [rsp + 0x2c], 0x2f74
call fcn.1400083f0
mov rcx, rdi
call fcn.140008430
test eax, eax
movzx ebx, bpl
mov ecx, 1
cmove ebx, ecx
mov rcx, rdi
call fcn.140008440
mov rdx, qword [rsi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14007beae
mov r9, qword [rdx]
lea r8, vtable.ATL::CAtlStringMgr.0
mov rcx, qword [r9]
mov rax, qword [rcx + 8]
cmp rcx, r8
jne 0x14007becb
mov rcx, qword [r9 + 8]
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
movzx eax, bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14004bcc0
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov rcx, r9
call rax
jmp 0x14007beae
Function at 0x14007cea0
Capabilities:
Move file

Disassembly:
push rdi
sub rsp, 0x270
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x280], rbx
mov rax, qword [0x1400bfbc8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov byte [0x1400c2aed], 1
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x40]
call fcn.14004d3e0
mov r8d, 0x104
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor edx, edx
lea r8d, [rdx + 4]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x150]
call fcn.14004d3e0
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov r8, rax
mov edx, 0x104
lea rcx, [rsp + 0x150]
call fcn.14005ab28
lea rcx, [rsp + 0x150]
call qword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
call fcn.140006ac0
mov rcx, rax
test rax, rax
jne 0x14007cf64
mov ecx, 0x80004005
call fcn.140006830
int3
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
lea rdi, vtable.ATL::CAtlStringMgr.0
cmp rax, rdi
jne 0x14007cf81
lock inc dword [rcx + 0x20]
lea rax, [rcx + 0x10]
jmp 0x14007cf83
call rdx
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rbx, str.sc_delete
test rbx, 0xffffffffffff0000
jne 0x14007cfbd
movzx ebx, bx
mov ecx, ebx
call fcn.140005fb0
test rax, rax
je 0x14007cfd6
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140006100
jmp 0x14007cfd6
mov rcx, rbx
call fcn.140050890
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140006320
nop
lea r8, [rsp + 0x150]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140005720
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14007d02d
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, rdi
jne 0x14007d02a
mov rcx, qword [rcx + 8]
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14007d02d
call r8
mov rcx, qword [rsp + 0x28]
call fcn.14005bad0
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14007d071
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, rdi
jne 0x14007d06e
mov rcx, qword [rcx + 8]
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14007d071
call r8
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14004bcc0
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
Function at 0x14007e3d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rdi, r8
mov rbx, rdx
mov dword [rsp + 0x20], 0
call fcn.140006ac0
mov rcx, rax
test rax, rax
jne 0x14007e40e
mov ecx, 0x80004005
call fcn.140006830
int3
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
lea r8, vtable.ATL::CAtlStringMgr.0
cmp rax, r8
jne 0x14007e42b
lock inc dword [rcx + 0x20]
lea rax, [rcx + 0x10]
jmp 0x14007e42d
call rdx
add rax, 0x18
mov qword [rbx], rax
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x58], 0
lea r9, [rsp + 0x58]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x14007e479
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x14007e479
mov rcx, rbx
call fcn.140007520
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14007e490
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x1400bfbc8]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rdx
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x104
mov ebx, eax
call fcn.14004d3e0
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x104
call fcn.14004d3e0
lea rdx, [rsp + 0x30]
mov ecx, ebx
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x14007e53e
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x14007e53e
xor r9d, r9d
lea rax, [rsp + 0x40]
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x1c]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea r8, [rsp + 0x40]
mov rcx, rdi
lea rdx, [0x1400a2e8c]
call fcn.140005d80
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14007e540
xor al, al
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14004bcc0
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x14007ed00
Capabilities:
Check if file exists
Contain obfuscated stackstrings

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rsp + 0xf0], rbx
mov rax, qword [0x1400bfbc8]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, r8
mov rsi, rdx
mov word [rbp - 6], 0x6957
mov word [rbp + 0x14], 0x736e
mov dword [rbp + 0x19], 0x6f475c6c
mov dword [rbp + 0xd], 0x5c6e6f69
mov dword [rbp + 0x22], 0x6f726843
mov word [rbp], 0x5c73
mov dword [rbp + 7], 0x6556746e
mov dword [rbp - 0xd], 0x6f736f72
mov dword [rbp - 0x15], 0x45524157
mov dword [rbp + 3], 0x65727275
mov dword [rbp + 0x1e], 0x20656c67
mov dword [rbp - 0x11], 0x63694d5c
mov word [rbp + 0x11], 0x6e55
mov byte [rbp + 0x13], 0x69
mov word [rbp - 9], 0x7466
mov byte [rbp + 2], 0x43
mov word [rbp + 0x17], 0x6c61
mov word [rbp + 0x26], 0x656d
mov dword [rbp - 0x19], 0x54464f53
mov word [rbp + 0xb], 0x7372
mov word [rbp - 3], 0x6f64
mov byte [rbp + 0x28], 0
mov byte [rbp + 0x1d], reloc.WS2_32.dll_WSAGetLastError
mov byte [rbp - 7], 0x5c
mov byte [rbp - 1], 0x77
mov byte [rbp - 4], WSASetLastError
mov byte [rbp + 0x16], reloc.WS2_32.dll_WSACleanup
mov word [rbp - 0x1b], WSASetLastError
mov dword [rbp - 0x29], 0x74736e49
mov word [rbp - 0x22], 0x6f4c
mov word [rbp - 0x25], 0x6c61
mov dword [rbp - 0x20], 0x69746163
mov byte [rbp - 0x1c], reloc.WS2_32.dll_WSAGetLastError
mov byte [rbp - 0x23], WSAGetLastError
mov word [rbp - 0x33], 0x652e
mov word [rbp - 0x36], 0x6d6f
mov word [rbp - 0x39], 0x6863
mov byte [rbp - 0x34], 0x65
mov byte [rbp - 0x37], WSACleanup
mov word [rbp - 0x31], 0x6578
mov byte [rbp - 0x2f], 0
lea rax, [rbp - 0x51]
mov qword [rbp - 0x49], rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x51]
call fcn.140006450
mov rbx, rax
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x59]
call fcn.140006450
mov rcx, qword [0x1400c2b28]
mov r10, qword [rcx]
mov qword [rsp + 0x20], rdi
mov r9, rbx
mov r8, rax
mov rdx, 0xffffffff80000002
call qword [r10 + reloc.WS2_32.dll_WSASetLastError]
test al, al
jne 0x14007eeae
lea rax, [rbp - 0x59]
mov qword [rbp - 0x49], rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x59]
call fcn.140006450
mov rbx, rax
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x51]
call fcn.140006450
mov rcx, qword [0x1400c2b28]
mov r10, qword [rcx]
mov qword [rsp + 0x20], rdi
mov r9, rbx
mov r8, rax
mov rdx, 0xffffffff80000002
call qword [r10 + 0x60]
test al, al
je 0x14007eed6
lea r9, [rbp - 0x39]
mov r8, qword [rdi]
lea rdx, [0x1400a2e7c]
mov rcx, rdi
call fcn.140005d80
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
setne al
test al, al
jne 0x14007eeed
mov rcx, qword [0x1400c2b28]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 0x88]
test al, al
je 0x14007eef2
mov byte [rsi], 1
mov al, 1
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14004bcc0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14007f3a0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r14, r8
mov qword [rsp + 0x60], 0
mov rax, rdx
lea rcx, [rsp + 0x60]
mov rsi, r9
mov qword [rsp + 0x20], rcx
mov r9d, 0x20206
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, rax
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov r15, qword [rsp + 0x70]
test eax, eax
jne 0x14007f42b
mov rcx, qword [r15]
lea rdx, [0x1400a2df8]
mov r8, qword [rsi]
mov r9d, ebx
mov eax, dword [rcx - 0x10]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [r14]
test ebx, ebx
sete dil
sub rdx, 0x18
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
lea rbp, vtable.ATL::CAtlStringMgr.0
sub eax, 1
jg 0x14007f474
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, rbp
jne 0x14007f4f9
mov rcx, qword [rcx + 8]
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdx, qword [rsi]
mov eax, ebx
sub rdx, 0x18
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14007f4a9
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, rbp
jne 0x14007f501
mov rcx, qword [rcx + 8]
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdx, qword [r15]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14007f4dc
mov r8, qword [rdx]
mov rcx, qword [r8]
mov rax, qword [rcx + 8]
cmp rcx, rbp
jne 0x14007f506
mov rcx, qword [r8 + 8]
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
movzx eax, dil
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call r8
jmp 0x14007f474
call r8
jmp 0x14007f4a9
mov rcx, r8
call rax
jmp 0x14007f4dc
Function at 0x14007f520
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
push rdi
push r14
push r15
sub rsp, 0x50
mov qword [r11 - 0x28], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov r14, r9
mov r15, r8
mov rax, rdx
mov esi, 1
xor edi, edi
mov qword [r11 - 0x30], rdi
lea rcx, [r11 - 0x30]
mov qword [r11 - 0x48], rcx
mov r9d, 0x20219
xor r8d, r8d
mov rdx, qword [r15]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14007f622
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x30], 0x800
mov rbx, qword [rsp + 0x90]
mov rax, qword [rbx]
sub esi, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, 0x800
or eax, esi
jge 0x14007f5b0
mov edx, 0x800
mov rcx, rbx
call fcn.1400066f0
mov rax, qword [rbx]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
mov r8, qword [r14]
lea rdx, [0x1400a2df8]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov esi, eax
mov rcx, qword [rbx]
test rcx, rcx
je 0x14007f5f5
movsxd rdx, dword [rcx - 0xc]
call fcn.14005a6dc
mov edi, eax
test eax, eax
js 0x14007f617
mov rax, qword [rbx]
cmp edi, dword [rax - 0xc]
jg 0x14007f617
mov dword [rax - 0x10], edi
movsxd rcx, edi
mov rax, qword [rbx]
mov byte [rcx + rax], 0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14007f622
mov ecx, 0x80070057
call fcn.140006830
int3
test esi, esi
sete dil
mov rdx, qword [r15]
sub rdx, 0x18
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
lea rsi, vtable.ATL::CAtlStringMgr.0
sub eax, 1
jg 0x14007f66d
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, rsi
jne 0x14007f669
mov rcx, qword [rcx + 8]
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14007f66d
call r8
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14007f6a5
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, rsi
jne 0x14007f6a2
mov rcx, qword [rcx + 8]
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14007f6a5
call r8
movzx eax, dil
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret
Function at 0x14007f6d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rax - 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov rsi, r9
mov r14, r8
mov rdi, rdx
mov ecx, 1
mov dword [rax - 0x24], ecx
mov dword [rax - 0x28], 0x800
mov rbx, qword [rsp + 0x80]
mov rax, qword [rbx]
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, 0x800
or eax, ecx
jge 0x14007f732
mov edx, 0x800
mov rcx, rbx
call fcn.1400066f0
mov rax, qword [rbx]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
mov r8, qword [rsi]
mov rdx, qword [r14]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edi, eax
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14007f766
xor eax, eax
jmp 0x14007f777
movsxd rdx, dword [rcx - 0xc]
call fcn.14005a6dc
test eax, eax
js 0x14007f819
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14007f819
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov byte [rcx + rax], 0
test edi, edi
sete dil
mov rdx, qword [r14]
sub rdx, 0x18
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
lea rbp, vtable.ATL::CAtlStringMgr.0
sub eax, 1
jg 0x14007f7db
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, rbp
jne 0x14007f7d7
mov rcx, qword [rcx + 8]
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14007f7db
call r8
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14007f813
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, rbp
jne 0x14007f810
mov rcx, qword [rcx + 8]
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14007f813
call r8
movzx eax, dil
jmp 0x14007f824
mov ecx, 0x80070057
call fcn.140006830
nop
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140083e80
Capabilities:
Get common file path
Get disk information

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x6a0
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov qword [rbp + 0x688], rbx
mov qword [rbp + 0x690], rsi
mov qword [rbp + 0x698], rdi
mov rax, qword [0x1400bfbc8]
xor rax, rbp
mov qword [rbp + 0x650], rax
mov rsi, rcx
xor edi, edi
mov dword [rbp + 0x14], edi
call fcn.140006ac0
mov rcx, rax
test rax, rax
jne 0x140083ee0
mov ecx, 0x80004005
call fcn.140006830
int3
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
lea r15, vtable.ATL::CAtlStringMgr.0
cmp rax, r15
jne 0x140083efd
lock inc dword [rcx + 0x20]
lea rax, [rcx + 0x10]
jmp 0x140083eff
call rdx
lea rbx, [rax + 0x18]
mov qword [rbp], rbx
lea r14, [0x1400a2df8]
test r14, 0xffffffffffff0000
jne 0x140083f39
movzx r14d, r14w
mov ecx, r14d
call fcn.140005fb0
test rax, rax
je 0x140083f54
mov r8d, r14d
mov rdx, rax
lea rcx, [rbp]
call fcn.140006100
jmp 0x140083f50
mov rcx, r14
call fcn.140050890
mov r8d, eax
mov rdx, r14
lea rcx, [rbp]
call fcn.140006320
mov rbx, qword [rbp]
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp + 0x440]
call fcn.14004d3e0
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp + 0x230]
call fcn.14004d3e0
mov dword [rbp + 8], edi
mov dword [rbp + 0x10], edi
mov dword [rbp + 0xc], edi
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x20]
call fcn.14004d3e0
xor r9d, r9d
lea r8d, [r9 + 0x25]
lea rdx, [rbp + 0x20]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov word [rbp + 0x26], di
mov dword [rsp + 0x38], 0x105
lea rax, [rbp + 0x230]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xc]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 8]
mov r8d, 0x105
lea rdx, [rbp + 0x440]
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x14008400a
mov r8d, dword [rbp + 8]
lea rdx, [0x1400a4b68]
lea rcx, [rbp]
call fcn.140005d80
mov rbx, qword [rbp]
test rbx, rbx
je 0x140084063
mov rcx, rbx
call fcn.140050890
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x140084063
movsxd rax, edx
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14008403b
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14004c8b0
sub rsp, rcx
lea rcx, [rsp + 0x40]
mov r9d, 3
mov r8d, edx
mov rdx, rbx
call fcn.140008100
mov rdi, rax
mov rdx, rdi
mov rcx, rsi
call fcn.140007960
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400840a7
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r15
jne 0x1400840a4
mov rcx, qword [rcx + 8]
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1400840a7
call r8
mov rax, rsi
mov rcx, qword [rbp + 0x650]
xor rcx, rbp
call fcn.14004bcc0
mov rbx, qword [rbp + 0x688]
mov rsi, qword [rbp + 0x690]
mov rdi, qword [rbp + 0x698]
lea rsp, [rbp + 0x660]
pop r15
pop r14
pop rbp
ret
Function at 0x1400844e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x270
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1400bfbc8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x40], 0
call fcn.140006ac0
mov rcx, rax
test rax, rax
jne 0x14008452c
mov ecx, 0x80004005
call fcn.140006830
int3
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
lea r8, vtable.ATL::CAtlStringMgr.0
cmp rax, r8
jne 0x140084549
lock inc dword [rcx + 0x20]
lea rax, [rcx + 0x10]
jmp 0x14008454b
call rdx
add rax, 0x18
mov qword [rbx], rax
mov dword [rsp + 0x40], 1
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x60]
call fcn.14004d3e0
mov dword [rsp + 0x30], 0x200
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftCryptography
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140084657
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.MachineGuid
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140084632
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftCryptography
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140084657
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.MachineGuid
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140084657
lea rcx, [rsp + 0x60]
call fcn.14005c2d0
mov r8d, eax
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140007c70
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14004bcc0
add rsp, 0x270
pop rbx
ret
Function at 0x140001488
Capabilities:
Check if file exists
Delete directory
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400390f8]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor ebx, ebx
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
mov rdi, rcx
lea edx, [rbx + 4]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFullPathNameW]
cmp eax, 3
je 0x140018b00
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
test eax, eax
je 0x140018b1f
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400173b0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp word [rsp + 0x2a], 0x3a
jne 0x1400014c2
cmp word [rsp + 0x2c], 0x5c
jne 0x1400014c2
xor eax, eax
jmp 0x1400014d5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
cmp eax, 5
jne 0x1400014d3
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400014d3
test al, 1
je 0x1400014d3
and eax, 0xfffffffe
mov rcx, rdi
mov edx, eax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
test eax, eax
je 0x1400014d3
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
test eax, eax
je 0x140018b74
xor ebx, ebx
jmp 0x1400014d3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
jmp 0x1400014d3
Function at 0x140001ae4
Capabilities:
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
xor edi, edi
mov rsi, rcx
bt edx, 0xa
jb 0x1400190e7
or qword [rbp + 0x77], 0xffffffffffffffff
lea r9, [rbp - 9]
xor r8d, r8d
lea rdx, [rbp - 0x29]
call qword [sym.imp.ntdll.dll_RtlDosPathNameToRelativeNtPathName_U_WithStatus]
test eax, eax
js 0x1400190e7
cmp word [rbp - 9], di
ja 0x1400190ae
mov eax, edi
lea rcx, [rbp - 0x29]
mov qword [rbp + 7], rax
mov qword [rbp + 0x27], rcx
lea r9, [rbp - 0x19]
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x5040
lea rcx, [rbp + 0x77]
mov dword [rbp + 0x17], 0x30
lea r8, [rbp + 0x17]
mov qword [rbp + 0x1f], rax
mov edx, 0x10000
mov dword [rbp + 0x2f], 0x40
movdqu xmmword [rbp + 0x37], xmm0
mov dword [rsp + 0x20], 4
call qword [sym.imp.ntdll.dll_NtOpenFile]
lea rcx, [rbp - 9]
mov ebx, eax
call qword [sym.imp.ntdll.dll_RtlReleaseRelativeName]
lea rcx, [rbp - 0x29]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
test ebx, ebx
js 0x1400190e7
mov rcx, qword [rbp + 0x77]
call fcn.140001bdc
mov ebx, 1
test eax, eax
jne 0x1400190bb
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test ebx, ebx
je 0x1400190e7
mov eax, edi
mov rbx, qword [rsp + 0xc0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbp + 7]
lea rcx, [rbp - 9]
jmp 0x140001b39
mov rcx, qword [rbp + 0x77]
lea r8, [rbp + 0x6f]
mov r9d, ebx
mov byte [rbp + 0x6f], bl
lea rdx, [rbp - 0x19]
mov dword [rsp + 0x20], 0xd
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
mov ebx, edi
setns bl
jmp 0x140001bb2
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x140001bc4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
jmp 0x140001bc4