joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004aba0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x1400ea3e8]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r15b, r9b
mov r12b, r8b
mov rbx, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea r8, [0x1400c11b0]
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140015690
cmp qword [rax + 0x18], 8
jb 0x1400434ba
mov rax, qword [rax]
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
lea rcx, [rsp + 0x28]
call fcn.140009ca4
mov rbx, qword [rdi]
mov rsi, qword [rdi + 8]
cmp rbx, rsi
je 0x1400434f9
mov rcx, rbx
call fcn.140009ca4
add rbx, 0x20
cmp rbx, rsi
jne 0x1400434e1
mov rax, qword [rdi]
mov qword [rdi + 8], rax
cmp r14, 0xffffffffffffffff
je 0x140043636
xor esi, esi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rsi
lea rax, [rbp - 0x64]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], si
jne 0x14004351c
lea rdx, [rbp - 0x64]
lea rcx, [rsp + 0x48]
call fcn.140012ba4
nop
mov eax, dword [rsp + 0x70]
shr eax, 4
mov rbx, qword [rsp + 0x60]
mov r10, qword [rsp + 0x58]
mov r11, qword [rsp + 0x48]
test al, 1
je 0x1400435cc
lea rcx, [rsp + 0x48]
cmp rbx, 8
setae r9b
cmovae rcx, r11
cmp r10, 1
jne 0x14004358e
mov r8, r10
lea rax, [0x1400c1890]
mov rdx, rax
sub rcx, rax
movzx eax, word [rcx + rdx]
cmp ax, word [rdx]
jne 0x14004358e
add rdx, 2
sub r8, 1
jne 0x140043576
jmp 0x140043616
lea rdx, [rsp + 0x48]
test r9b, r9b
cmovne rdx, r11
cmp r10, 2
jne 0x1400435c5
mov r8, r10
lea rax, [0x1400bf7a0]
mov rcx, rax
sub rdx, rax
movzx eax, word [rdx + rcx]
cmp ax, word [rcx]
jne 0x1400435c5
add rcx, 2
sub r8, 1
jne 0x1400435b0
jmp 0x140043616
test r15b, r15b
jne 0x1400435d1
jmp 0x140043616
test r12b, r12b
je 0x140043616
mov rax, qword [rdi + 8]
cmp rax, qword [rdi + 0x10]
je 0x140043605
mov qword [rax], rsi
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rsi
lea rdx, [rsp + 0x48]
cmp rbx, 8
cmovae rdx, r11
mov r8, r10
mov rcx, rax
call fcn.140027e48
add qword [rdi + 8], 0x20
jmp 0x140043616
lea r8, [rsp + 0x48]
mov rdx, rax
mov rcx, rdi
call fcn.140046760
nop
lea rcx, [rsp + 0x48]
call fcn.140009ca4
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140043505
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14009bdf0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov al, r9b
mov r10, r8
mov r9b, byte [rsp + 0x28]
mov rcx, rdx
mov r8b, al
mov rdx, r10
jmp 0x14004344c
Function at 0x14004ad80
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x1400ea3e8]
xor rax, rsp
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x20]
mov rdi, r8
lea rcx, [0x1400b8360]
xor r8d, r8d
xor edx, edx
call sub.SHELL32.dll_SHGetKnownFolderPath
mov ebx, eax
test eax, eax
js 0x14004ade0
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call fcn.140015610
mov r8d, 9
lea rdx, str.OneDrive
mov rcx, rdi
call fcn.14002a670
mov eax, ebx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14009bdf0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14004ae10
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x1400ea3e8]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x250
call sub.VCRUNTIME140.dll_memset
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14004ae60
mov rcx, qword [rbx]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14004affc
xor esi, esi
mov r14d, 0x104
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
cmp qword [rbx + 0x18], 8
mov r8, rbx
jb 0x14004aea1
mov r8, qword [rbx]
lea rax, [rbp + 0x190]
mov rdx, r14
sub r8, rax
lea rcx, [rbp + 0x190]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14004aed8
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14004aed8
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14004aeb5
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], si
je 0x14004afdd
lea rcx, [rbp + 0x190]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov r8, r14
lea rax, [rbp + 0x190]
cmp word [rax], si
je 0x14004af12
add rax, 2
sub r8, 1
jne 0x14004af03
mov rax, r8
mov rcx, r14
neg rax
mov rax, r8
sbb edx, edx
sub rcx, r8
not edx
and edx, 0x80070057
neg rax
sbb r9, r9
and r9, rcx
test r8, r8
je 0x14004af7c
test r9, r9
je 0x14004af66
cmp word [rbp + r9*2 + 0x18e], 0x5c
je 0x14004af66
lea r8, [0x1400be744]
mov rdx, r14
lea rcx, [rbp + 0x190]
call fcn.1400484ec
mov edx, eax
test eax, eax
js 0x14004af7c
lea r8, [rsp + 0x6c]
mov rdx, r14
lea rcx, [rbp + 0x190]
call fcn.1400484ec
mov edx, eax
test edx, edx
js 0x14004afdd
mov qword [rsp + 0x20], rsi
lea rax, [rbp + 0x190]
mov qword [rsp + 0x30], rsi
or r8, 0xffffffffffffffff
mov qword [rsp + 0x38], rsi
inc r8
cmp word [rax + r8*2], si
jne 0x14004af9a
lea rdx, [rbp + 0x190]
lea rcx, [rsp + 0x20]
call fcn.140012ba4
cmp qword [rsp + 0x38], 8
lea rcx, [rsp + 0x20]
cmovae rcx, qword [rsp + 0x20]
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WerRegisterFile]
lea rcx, [rsp + 0x20]
call fcn.140009ca4
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14004ae80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.14009bdf0
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14004b024
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x2c0]
sub rsp, 0x3c0
mov rax, qword [0x1400ea3e8]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
xor ebx, ebx
mov qword [rbp - 0x78], rbx
movdqa xmm0, xmmword [0x1400c4730]
movdqu xmmword [rbp - 0x68], xmm0
mov word [rbp - 0x78], bx
lea rcx, [rbp - 0x78]
call fcn.14004b208
test eax, eax
js 0x14004b077
lea rcx, [rbp - 0x78]
call fcn.14004ae10
mov qword [rsp + 0x68], rbx
movdqa xmm0, xmmword [0x1400c4730]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], bx
lea rax, str.Expected_non_NULL_setup_log_location
mov qword [rsp + 0x30], rax
lea rax, str._pSetupLogsLocation___NULL_
mov qword [rsp + 0x28], rax
lea rax, str.WatsonReport::GetSetupLogsLocation
mov qword [rsp + 0x20], rax
mov r9d, 0x10d
lea r8, str.D:dbs_shodct1130_230136_1cmdlclientonedriveProductUXSharedWatsonReport.cpp
lea rdx, [0x1400ba7b8]
mov ecx, 1
call fcn.140049a14
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xa0]
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
lea r8d, [r9 + 0x26]
lea rdx, [rbp + 0xa0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, 1
jne 0x14004b1d1
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
mov edx, 1
lea rcx, [rbp - 0x50]
call fcn.140044db4
nop
lea rdx, [rbp + 0xa0]
lea rcx, [rbp - 0x50]
call fcn.140045560
mov rcx, rax
lea rdx, [0x1400c1dfc]
call fcn.14004533c
lea rdx, [0x1400f78c8]
cmp qword [0x1400f78e0], 8
cmovae rdx, qword [0x1400f78c8]
mov r8, qword [0x1400f78d8]
mov rcx, rax
call fcn.140046368
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x48]
call fcn.14004507c
lea rcx, [rsp + 0x68]
call fcn.140009ca4
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rsp + 0x78], xmm1
movdqa xmm0, xmmword [0x1400c4730]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], bx
lea rcx, [rsp + 0x48]
call fcn.140009ca4
nop
lea rcx, [rbp + 0x38]
call fcn.140044d3c
lea rcx, [rbp + 0x38]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rsp + 0x68]
call fcn.14004ae10
nop
lea rcx, [rsp + 0x68]
call fcn.140009ca4
nop
lea rcx, [rbp - 0x78]
call fcn.140009ca4
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.14009bdf0
mov rbx, qword [rsp + 0x3d0]
add rsp, 0x3c0
pop rbp
ret
Function at 0x14004b208
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x288]
sub rsp, 0x380
mov rax, qword [0x1400ea3e8]
xor rax, rsp
mov qword [rbp + 0x270], rax
mov rbx, rcx
xor esi, esi
test rcx, rcx
setne al
lea rcx, str.Expected_non_NULL_sync_engine_log_location
mov qword [rsp + 0x30], rcx
lea rcx, str._pSyncEngineLogPath___NULL_
mov qword [rsp + 0x28], rcx
lea rcx, [0x1400c1e00]
mov qword [rsp + 0x20], rcx
mov r9d, 0xfa
lea r8, str.D:dbs_shodct1130_230136_1cmdlclientonedriveProductUXSharedWatsonReport.cpp
lea rdx, [0x1400ba7b8]
movzx ecx, al
call fcn.140049a14
mov edi, 0x80004005
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x60]
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
lea r8d, [rsi + 0x1c]
lea rdx, [rbp + 0x60]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, 1
jne 0x14004b3a2
xor edx, edx
mov r8d, 0xe8
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea edx, [rsi + 1]
lea rcx, [rsp + 0x70]
call fcn.140044db4
nop
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x70]
call fcn.140045560
mov rcx, rax
lea rdx, [0x1400c1dfc]
call fcn.14004533c
lea rdx, [0x1400f7888]
cmp qword [0x1400f78a0], 8
cmovae rdx, qword [0x1400f7888]
mov rcx, rax
call fcn.140045560
mov rcx, rax
lea rdx, [0x1400c1dfc]
call fcn.14004533c
lea rdx, [0x1400f77a8]
cmp qword [0x1400f77c0], 8
cmovae rdx, qword [0x1400f77a8]
mov rcx, rax
call fcn.140045560
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x78]
call fcn.14004507c
lea rax, [rsp + 0x48]
cmp rbx, rax
je 0x14004b383
mov rcx, rbx
call fcn.140009ca4
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rbx + 0x10], xmm1
movdqa xmm0, xmmword [0x1400c4730]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], si
lea rcx, [rsp + 0x48]
call fcn.140009ca4
mov edi, esi
lea rcx, [rbp - 8]
call fcn.140044d3c
lea rcx, [rbp - 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
mov eax, edi
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.14009bdf0
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x14004b5a0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rsp + 0x70]
mov r10, r9
mov r9d, dword [rsp + 0x60]
mov r11d, r8d
mov qword [rsp + 0x28], rax
mov rcx, rdx
mov rax, qword [rsp + 0x68]
mov r8, r10
mov edx, r11d
mov qword [rsp + 0x20], rax
call sub.SHELL32.dll_SHGetFolderPathAndSubDirW
add rsp, 0x30
pop rbx
ret

Function at 0x14004b930
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [rsp + 0x88]
mov r10, r9
mov r9d, dword [rsp + 0x70]
mov r11, r8
mov qword [rsp + 0x30], rax
mov rcx, rdx
mov rax, qword [rsp + 0x80]
mov r8, r10
mov qword [rsp + 0x28], rax
mov rdx, r11
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
add rsp, 0x40
pop rbx
ret
Function at 0x14004b980
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [rsp + 0x70]
mov r10d, r9d
mov r9d, dword [rsp + 0x60]
mov r11, r8
mov dword [rsp + 0x28], eax
mov rcx, rdx
mov rax, qword [rsp + 0x68]
mov r8d, r10d
mov rdx, r11
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x30
pop rbx
ret

Function at 0x14004ba00
Capabilities:
Delete registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1400ea3e8]
xor rax, rsp
mov qword [rsp + 0x38], rax
and dword [rsp + 0x2c], 0
lea rcx, [r11 - 0x28]
and qword [r11 - 0x28], 0
mov rsi, r9
and dword [rsp + 0x28], 0
mov r9d, 0x2001f
and qword [r11 - 0x18], 0
xor edi, edi
call fcn.140007a84
test eax, eax
jne 0x14004ba57
mov rcx, qword [rsp + 0x20]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
cmp qword [rsp + 0x20], 0
je 0x14004ba6a
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14009bdf0
mov rsi, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x14004baa0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [rsp + 0x70]
mov r10, r9
mov r9d, dword [rsp + 0x60]
mov r11, r8
mov dword [rsp + 0x28], eax
mov rcx, rdx
mov rax, qword [rsp + 0x68]
mov r8, r10
mov rdx, r11
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
add rsp, 0x30
pop rbx
ret

Function at 0x14004bb40
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov eax, dword [rsp + 0x90]
mov r10, r9
mov r9, qword [rsp + 0x70]
mov r11, r8
mov dword [rsp + 0x38], eax
mov rcx, rdx
mov rax, qword [rsp + 0x88]
mov r8, r10
mov qword [rsp + 0x30], rax
mov rdx, r11
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
call sub.SHLWAPI.dll_SHRegGetUSValueW
add rsp, 0x40
pop rbx
ret

Function at 0x14004bc00
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [rsp + 0x70]
mov r10d, r9d
mov r9, qword [rsp + 0x60]
mov r11, r8
mov dword [rsp + 0x28], eax
mov rcx, rdx
mov eax, dword [rsp + 0x68]
mov r8d, r10d
mov rdx, r11
mov dword [rsp + 0x20], eax
call qword [sym.imp.SHLWAPI.dll_SHRegSetUSValueW]
add rsp, 0x30
pop rbx
ret

Function at 0x14004bdb0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [rsp + 0x70]
mov r10, r9
mov r9, qword [rsp + 0x60]
mov r11, r8
mov dword [rsp + 0x28], eax
mov rcx, rdx
mov rax, qword [rsp + 0x68]
mov r8, r10
mov rdx, r11
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
add rsp, 0x30
pop rbx
ret
Function at 0x14004be00
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400ea3e8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, rdx
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x80
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
lea rdx, [rsp + 0x30]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov ebx, eax
test eax, eax
je 0x14004be70
mov eax, 0x4c00
cmp word [rsp + 0x30], ax
je 0x14004be70
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140015610
neg ebx
sbb eax, eax
not eax
and eax, 0x80004005
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14009bdf0
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret

Function at 0x14004bea0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x1400ea3e8]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rdx
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x200
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x100
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov ebx, eax
test eax, eax
je 0x14004bf0b
mov eax, 0x4c00
cmp word [rsp + 0x30], ax
je 0x14004bf0b
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140015610
neg ebx
sbb eax, eax
not eax
and eax, 0x80004005
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14009bdf0
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret

Function at 0x14004c0c0
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x40
mov eax, dword [rsp + 0x90]
mov r10d, r9d
mov r9, qword [rsp + 0x70]
mov r11, r8
mov dword [rsp + 0x38], eax
mov rcx, rdx
mov rax, qword [rsp + 0x88]
mov r8d, r10d
mov qword [rsp + 0x30], rax
mov rdx, r11
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
add rsp, 0x40
pop rbx
ret

Function at 0x14004c150
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [rsp + 0xb0]
mov r10, r9
mov r9, qword [rsp + 0x80]
mov r11, r8
mov qword [rsp + 0x48], rax
mov rcx, rdx
mov rax, qword [rsp + 0xa8]
mov r8, r10
mov qword [rsp + 0x40], rax
mov rdx, r11
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
add rsp, 0x50
pop rbx
ret
Function at 0x140056fb0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x5b0]
sub rsp, 0x6b0
mov rax, qword [0x1400ea3e8]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
mov rdi, rcx
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], bx
cmp word [rdx], bx
jne 0x140057025
xor edx, edx
mov r8d, 0x618
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x80]
mov ecx, 0x30c
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14005702f
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.140015610
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14005706d
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
setae dl
cmovae rax, qword [rsp + 0x60]
dec rcx
cmp word [rax + rcx*2], 0x5c
jne 0x14005706d
lea rax, [rsp + 0x60]
test dl, dl
cmovne rax, qword [rsp + 0x60]
mov qword [rsp + 0x70], rcx
mov word [rax + rcx*2], bx
mov rcx, rdi
call fcn.140057310
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140069ab0
cmp qword [rax + 0x18], 8
jb 0x14005709a
mov rax, qword [rax]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x100001
lea r8d, [r9 + 7]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x28], rax
lea rcx, [rsp + 0x40]
call fcn.140009ca4
cmp qword [rdi + 0x28], 0xffffffffffffffff
je 0x1400570e3
mov rcx, rdi
call fcn.140057120
mov bl, al
lea rcx, [rsp + 0x60]
call fcn.140009ca4
mov al, bl
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.14009bdf0
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140057120
Capabilities:
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r13
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov rax, qword [0x1400ea3e8]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rcx
mov sil, 1
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
xor r14d, r14d
lea r13, [0x1400bf7a0]
mov rcx, qword [rdi + 0x48]
test rcx, rcx
jne 0x1400571d8
mov rdx, qword [rdi + 0x30]
mov rax, qword [rdi + 0x38]
sub rax, rdx
mov byte [rsp + 0x50], r14b
mov qword [rsp + 0x48], r14
mov byte [rsp + 0x40], r14b
mov dword [rsp + 0x38], 0x26
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x27]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
test eax, eax
js 0x1400571c3
cmp qword [rbp + 0x2f], r14
je 0x1400571c3
mov rax, qword [rdi + 0x30]
jmp 0x1400571e2
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov sil, r14b
jmp 0x1400571ec
cmp dword [rcx], r14d
je 0x1400571e8
mov eax, dword [rcx]
add rax, rcx
mov qword [rdi + 0x48], rax
jmp 0x1400571ec
mov qword [rdi + 0x48], r14
test sil, sil
je 0x1400572dc
mov rdx, qword [rdi + 0x48]
test rdx, rdx
je 0x14005725e
mov r8d, dword [rdx + 0x3c]
shr r8, 1
add rdx, 0x50
mov qword [rbp + 7], r14
mov qword [rbp + 0x17], r14
mov qword [rbp + 0x1f], r14
lea rcx, [rbp + 7]
call fcn.140012ba4
lea rbx, [rdi + 8]
lea rax, [rbp + 7]
cmp rbx, rax
je 0x140057253
mov rcx, rbx
call fcn.140009ca4
movups xmm0, xmmword [rbp + 7]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp + 0x17]
movups xmmword [rbx + 0x10], xmm1
mov qword [rbp + 0x17], r14
mov qword [rbp + 0x1f], 7
mov word [rbp + 7], r14w
lea rcx, [rbp + 7]
call fcn.140009ca4
jmp 0x140057262
lea rbx, [rdi + 8]
cmp qword [rdi + 0x48], r14
je 0x140057164
mov r9, qword [rbx + 0x10]
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14005727d
mov rdx, qword [rbx]
cmp r9, 1
jne 0x1400572ab
mov r8, r9
lea r10, [0x1400c1890]
mov rcx, r10
sub rdx, r10
movzx eax, word [rdx + rcx]
cmp ax, word [rcx]
jne 0x1400572ab
add rcx, 2
sub r8, 1
jne 0x140057293
jmp 0x140057164
cmp qword [rbx + 0x18], 8
jb 0x1400572b5
mov rbx, qword [rbx]
cmp r9, 2
jne 0x1400572dc
mov rdx, r9
mov rcx, r13
sub rbx, r13
movzx eax, word [rcx + rbx]
cmp ax, word [rcx]
jne 0x1400572dc
add rcx, 2
sub rdx, 1
jne 0x1400572c4
jmp 0x140057164
mov al, sil
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14009bdf0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rbp
ret
Function at 0x14005953c
Capabilities:
Persist via run registry key

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1400ea3e8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [0x1400ea258]
lea rdx, [rsp + 0x40]
and qword [rsp + 0x40], 0
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov qword [rsp + 0x28], rdx
xor r9d, r9d
mov rdx, 0xffffffff80000001
mov dword [rsp + 0x20], 0xf003f
mov rax, qword [rcx]
mov rax, qword [rax + 0x108]
call qword [case.0x14006f533.0]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400595f0
mov rcx, qword [0x1400ea258]
lea r8, [0x1400be9e8]
mov rdx, qword [rsp + 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x478]
call qword [case.0x14006f533.0]
mov rcx, qword [0x1400ea258]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
mov rdx, qword [rcx]
cmovle ebx, eax
mov rax, qword [rdx + 0x100]
mov rdx, qword [rsp + 0x40]
call qword [case.0x14006f533.0]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14009bdf0
add rsp, 0x50
pop rbx
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400ea3e8]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor edi, edi
mov qword [rsp + 0x40], rdi
movdqa xmm0, xmmword [0x1400c4730]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], di
lea rcx, [rsp + 0x40]
call fcn.14005bd38
mov ebx, eax
test eax, eax
js 0x140064fbd
mov rcx, qword [0x1400ea258]
mov rax, qword [rcx]
mov r10, qword [rax + 0xd0]
mov eax, dword [rsp + 0x50]
lea eax, [rax*2 + 2]
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 1
lea r9, [0x1400be9e8]
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rdx, 0xffffffff80000001
mov rax, r10
call qword [case.0x14006f533.0]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
lea rcx, [rsp + 0x40]
call fcn.140009ca4
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14009bdf0
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
test cl, cl
jne 0x140064f10
jmp 0x14005953c
mov cl, dl
jmp 0x140066a5c

Function at 0x140059ec8
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x1400ea3e8]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edi, edi
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x140059ef6
mov rcx, qword [rcx]
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140059f3b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp qword [rbx + 0x18], 8
jb 0x140059f1a
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140059f3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, edi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14009bdf0
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret
mov rcx, rdx
jmp 0x140059ec8