joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001b518
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
or qword [rax - 0x38], 0xffffffffffffffff
mov r12, r9
and qword [rax + 8], 0
mov rbx, r8
mov r13, rdx
mov r15, rcx
test rcx, rcx
je 0x14001b668
test rdx, rdx
jne 0x14001b561
test r9, r9
je 0x14001b668
mov r14, qword [rsp + 0xa8]
test r14, r14
je 0x14001b668
mov rbp, qword [rsp + 0xa0]
test rbx, rbx
je 0x14001b59f
test byte [r8 + 0xf], 0x10
je 0x14001b599
mov rax, qword [r8 + 8]
movabs rcx, 0xffffffffffffff
and rax, rcx
jmp 0x14001b5a8
mov rax, qword [r8 + 0x18]
jmp 0x14001b5a8
test rbp, rbp
je 0x14001b5c4
mov rax, qword [rbp + 8]
mov qword [rsp + 0x80], rax
test rbx, rbx
jne 0x14001b5ba
test rbp, rbp
je 0x14001b5c4
lea rax, [rsp + 0x80]
jmp 0x14001b5c6
xor eax, eax
mov r8, qword [rsp + 0xb0]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
mov r9d, 0x4a200000
mov rcx, r15
mov qword [rsp + 0x28], rax
mov rdx, r14
call fcn.14000c7d0
mov rdi, qword [rsp + 0x40]
mov esi, eax
test eax, eax
je 0x14001b63c
mov eax, dword [rsp + 0xc0]
mov r9, r12
mov dword [rsp + 0x38], eax
mov r8, rbx
mov qword [rsp + 0x30], r14
mov rdx, r13
mov qword [rsp + 0x28], rdi
mov rcx, r15
mov qword [rsp + 0x20], rbp
call fcn.14001b448
mov esi, eax
test eax, eax
je 0x14001b63c
mov rax, qword [rsp + 0xb8]
test rax, rax
je 0x14001b63c
mov qword [rax], rdi
jmp 0x14001b664
cmp rdi, 0xffffffffffffffff
je 0x14001b664
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test esi, esi
jne 0x14001b664
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
mov eax, esi
jmp 0x14001b67b
mov ecx, 0x57
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140020028
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
xor ebx, ebx
mov ecx, dword [0x14006c8e8]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
nop dword [rax + rax]
test eax, eax
jne 0x1400200a1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140020083
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140020088
mov ebx, 0x80004005
test ebx, ebx
jns 0x1400200a1
mov r9d, ebx
lea rcx, str.SetImpersonationCount
mov r8d, 0x44
call fcn.14001b2f8
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x140020214
Capabilities:
Get thread local storage value

Disassembly:
bt ecx, 0x11
jb 0x1400202bc
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov ecx, dword [0x14006c8e8]
mov ebp, r8d
mov r14, rdx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
nop dword [rax + rax]
xor esi, esi
mov rbx, rax
test ebp, ebp
je 0x140020286
mov rdi, r14
cmp byte [rdi + 4], 0
jne 0x14002027c
mov ecx, dword [rdi]
lea r9, [r14 + 4]
lea r9, [r9 + rsi*8]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
nop dword [rax + rax]
inc esi
add rdi, 8
cmp esi, ebp
jb 0x14002025b
dec rbx
mov rcx, rbx
call fcn.140020028
test rbx, rbx
jne 0x1400202a2
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_RevertToSelf]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140020480
Capabilities:
Hash data via bcrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rsi, qword [rbp + 0x60]
xor r12d, r12d
mov rdi, r9
mov rbx, r8
mov r13, rcx
mov r15d, 1
test rsi, rsi
je 0x1400204c8
xor eax, eax
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov dword [rsi + 0x10], eax
test rbx, rbx
je 0x140020671
mov qword [rbp - 0x30], r9
test rsi, rsi
je 0x14002051e
call fcn.140018b88
and dword [rsp + 0x30], r12d
lea rdx, [rbp + 0x60]
and dword [rsp + 0x28], r12d
xor r9d, r9d
and qword [rsp + 0x20], r12
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.bcrypt.dll_BCryptCreateHash]
nop dword [rax + rax]
test eax, eax
jns 0x140020512
mov ecx, 7
int 0x29
xor eax, eax
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov dword [rsi + 0x10], eax
test rbx, rbx
je 0x140020623
cmp dword [rbp + 0x54], 0
mov r14d, dword [rbp + 0x70]
jne 0x140020538
cmp r14d, ebx
cmova r14d, ebx
test rdi, rdi
je 0x140020591
movabs rax, 0x6666666666666667
imul rdi
sar rdx, 0x16
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rcx, [rdx + rdx*4]
shl rcx, 0x15
cmp rdi, rcx
jne 0x140020591
xor r9d, r9d
xor r8d, r8d
mov edx, 0x948e
mov rcx, r13
call fcn.1400116e0
cmp eax, 0xffffffff
jne 0x140020591
mov ecx, 0x4d3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor r15d, r15d
test r15d, r15d
je 0x140020608
mov eax, dword [rbp - 0x2c]
lea r9, [rbp - 0x28]
mov rdx, qword [rbp + 0x68]
mov r8d, r14d
mov rcx, qword [rbp + 0x48]
and qword [rbp - 0x28], 0
and qword [rbp - 0x20], 0
and qword [rbp - 0x10], 0
and dword [rsp + 0x20], 0
mov dword [rbp - 0x14], eax
mov dword [rbp - 0x18], edi
call fcn.1400063b8
test eax, eax
je 0x140020608
mov eax, r14d
add rdi, rax
sub rbx, rax
mov qword [rbp - 0x30], rdi
mov qword [rbp + 0x50], rbx
test rsi, rsi
je 0x14002061a
mov rdx, qword [rbp + 0x68]
xor r9d, r9d
mov rcx, qword [rbp + 0x60]
mov r8d, r14d
call qword [sym.imp.bcrypt.dll_BCryptHashData]
nop dword [rax + rax]
test eax, eax
jns 0x14002061a
mov ecx, 7
int 0x29
jmp 0x14002061a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r12d, eax
xor r15d, r15d
test r15d, r15d
jne 0x14002051e
test rsi, rsi
je 0x14002065d
mov rcx, qword [rbp + 0x60]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 0x14]
call qword [sym.imp.bcrypt.dll_BCryptFinishHash]
nop dword [rax + rax]
test eax, eax
jns 0x14002064d
mov ecx, 7
int 0x29
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.bcrypt.dll_BCryptDestroyHash]
nop dword [rax + rax]
test r12d, r12d
je 0x140020671
mov ecx, r12d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rbx, qword [rsp + 0xb0]
mov eax, r15d
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002086c
Capabilities:
Set file attributes

Disassembly:
push rbx
sub rsp, 0x50
xor ebx, ebx
cmp dword [0x14006c0f8], ebx
jne 0x140020886
mov ebx, 1
jmp 0x14002094b
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140020946
cmp edx, 3
jae 0x140020946
xor eax, eax
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
cmp edx, 1
jne 0x1400208b9
mov dword [rsp + 0x70], edx
jmp 0x1400208c6
cmp edx, 2
jne 0x14002094b
mov dword [rsp + 0x70], edx
mov r9d, 8
mov dword [rsp + 0x20], 0x43
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
mov ecx, 0x80000000
mov edx, eax
add eax, ecx
test ecx, eax
jne 0x14002094b
cmp edx, 0xc000000d
je 0x14002094b
cmp edx, 0xc0000003
jne 0x14002093e
xor edx, edx
mov dword [rsp + 0x30], 0xa1
lea rax, str.SetFileStorageTierClass
mov dword [0x14006c0f8], ebx
mov qword [rsp + 0x28], rax
lea r9, str.StorageTiering_not_supported
xor r8d, r8d
mov dword [rsp + 0x20], ebx
lea ecx, [rdx + 2]
call fcn.14000f794
jmp 0x14002087c
bts edx, 0x1c
mov ebx, edx
jmp 0x14002094b
mov ebx, 0x80070057
mov eax, ebx
add rsp, 0x50
pop rbx
ret

Function at 0x1400218a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov r8d, dword [rcx + 8]
mov rbx, rcx
mov eax, 1
test r8d, r8d
je 0x140021902
and dword [rsp + 0x40], 0
lea rdx, [rcx + 0x18]
mov rcx, qword [rcx]
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
je 0x140021902
mov ecx, dword [rbx + 8]
cmp dword [rsp + 0x40], ecx
je 0x1400218fa
mov ecx, 0xea
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
test eax, eax
je 0x140021902
and dword [rbx + 8], 0
add rsp, 0x30
pop rbx
ret
Function at 0x1400219b4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, rdx
mov edi, r9d
mov edx, r9d
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
add rdx, rsi
mov r9, rcx
mov r14, r8
mov eax, dword [rbx + 8]
sub r9, rax
cmp rsi, rcx
ja 0x140021ae6
cmp rdx, rcx
ja 0x140021ae6
cmp r9, rsi
mov r8, rsi
mov rax, r9
mov rbp, rdx
cmova r8, r9
cmovbe rax, rsi
cmp rcx, rdx
cmovb rbp, rcx
cmovae rcx, rdx
cmp rax, rcx
jae 0x140021a3b
mov rdx, rax
lea rcx, [rbx + 0x18]
sub rdx, rsi
sub ebp, r8d
sub rax, r9
mov r8d, ebp
add rdx, r14
add rcx, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
sub edi, ebp
xor ebp, ebp
test edi, edi
je 0x140021adf
mov rdx, qword [0x14006c898]
lea r9d, [rbp + 1]
mov rcx, qword [rbx]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x50], rbp
mov dword [rsp + 0x68], ebp
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointerEx]
nop dword [rax + rax]
test eax, eax
je 0x140021af7
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointerEx]
nop dword [rax + rax]
test eax, eax
je 0x140021af7
mov rcx, qword [rbx]
lea r9, [rsp + 0x68]
mov r8d, edi
mov qword [rsp + 0x20], rbp
mov rdx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
je 0x140021af7
mov rdx, qword [rsp + 0x50]
xor r9d, r9d
mov rcx, qword [rbx]
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointerEx]
nop dword [rax + rax]
test eax, eax
je 0x140021af7
cmp dword [rsp + 0x68], edi
je 0x140021adf
mov ecx, 0xea
jmp 0x140021aeb
mov eax, 1
jmp 0x140021af9
mov ecx, 0x57
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x140021b14
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14006c080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edx, dword [0x14006c0fc]
xor ebx, ebx
mov edi, ecx
lea esi, [rbx + 1]
cmp edx, 0xffffffff
jne 0x140021bb2
xor edx, edx
lea r8d, [rbx + 0x20]
lea rcx, [rsp + 0x28]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea r8d, [rbx + 0x10]
lea rdx, [rsp + 0x28]
lea rcx, str.WIM_Enumerate_Directory_Reparse_Point
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
mov dword [rsp + 0x20], eax
dec eax
cmp eax, 0xf
ja 0x140021ba0
lea r8, [rsp + 0x20]
lea rdx, [0x14005cd90]
lea rcx, [rsp + 0x28]
call fcn.1400592a8
mov edx, dword [0x14006c0fc]
test eax, eax
cmovg edx, dword [rsp + 0x20]
jmp 0x140021ba6
mov edx, dword [0x14006c0fc]
cmp edx, 0xffffffff
cmove edx, esi
mov dword [0x14006c0fc], edx
test edx, edx
je 0x140021bc6
bt edi, 0x1c
jb 0x140021bc4
cmp edi, 0x80000018
jne 0x140021bc6
mov ebx, esi
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400582e0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140023f38
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, ebx
test rcx, rcx
je 0x140023fde
cmp bx, word [rcx]
je 0x140023fde
xor edx, edx
call fcn.1400240d8
mov rsi, rax
test rax, rax
je 0x140023fda
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140023f89
test al, 0x10
je 0x140023f89
lea edi, [rbx + 1]
jmp 0x140023fac
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
mov ecx, 0x10b
cmove eax, ecx
mov ecx, 3
cmp eax, 2
cmove eax, ecx
mov ebx, eax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov eax, edi
jmp 0x140023ff1
mov ecx, 0x57
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
test rcx, rcx
je 0x1400240ad
cmp bx, word [rcx]
je 0x1400240ad
xor edx, edx
call fcn.1400240d8
mov rsi, rax
test rax, rax
je 0x14002408d
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14002405d
and eax, 0x10
sete bl
neg eax
sbb edi, edi
and edi, 2
jmp 0x14002406b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
jmp 0x14002409b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebx
jmp 0x1400240c0
mov ecx, 0x57
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140025920
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rdx
xor ebx, ebx
xor edx, edx
call fcn.1400240d8
mov rsi, rax
test rax, rax
je 0x1400259b2
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebp, eax
cmp edi, 0xffffffff
je 0x14002597a
lea eax, [rbx + 1]
bt edi, 0xa
jb 0x14002597c
mov eax, ebx
test ebp, ebp
mov dword [r14], eax
sete bl
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov ecx, ebp
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14002625c
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
xor r14d, r14d
mov rsi, rcx
mov ebp, r14d
mov edi, r14d
test rcx, rcx
je 0x140023f02
cmp r14w, word [rcx]
je 0x140023f02
xor edx, edx
call fcn.1400240d8
mov rbx, rax
test rax, rax
je 0x140023e9e
mov edx, 0x80
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
nop dword [rax + rax]
test eax, eax
jne 0x140023e64
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r9, rbx
lea r8, str.WdsRemoveDirectory:_Unable_to_clear_attributes_on___s___GLE__0x_x
lea rcx, [0x14006c908]
mov dword [rsp + 0x20], eax
mov edx, 0x3000000
mov edi, eax
call fcn.140023424
xor edx, edx
mov rcx, rbx
call fcn.1400238a0
mov ebp, eax
test eax, eax
jne 0x140023ecb
test edi, edi
jne 0x140023e86
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r9, rbx
lea r8, str.WdsRemoveDirectory:_Unable_to_remove_directory___s___GLE__0x_x
jmp 0x140023eb6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r9, rsi
lea r8, str.WdsRemoveDirectory:_Unable_to_prepare_path___s___GLE__0x_x
mov edi, eax
mov edx, 0x3000000
mov dword [rsp + 0x20], eax
lea rcx, [0x14006c908]
call fcn.140023424
test rbx, rbx
je 0x140023ef0
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebp
jmp 0x140023f15
mov ecx, 0x57
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
sub rsp, 0x28
test rcx, rcx
jne 0x14002627d
mov ecx, 0x57
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
add rsp, 0x28
ret
test dl, 1
je 0x140026290
mov edx, 1
add rsp, 0x28
jmp fcn.1400238a0
add rsp, 0x28
jmp 0x140023dd8
Function at 0x14002ca20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
cmp dword [0x14006c910], 0
jne 0x14002cabf
mov edx, 0x13579bdf
lea r8, [0x14006ca90]
mov r9d, 0x87654321
xor r10d, r10d
mov r11d, r9d
mov ebx, edx
lea edi, [r10 + 0x20]
sub r10d, 0x61c88647
mov ecx, r9d
sar ecx, 5
add r11d, r10d
add ebx, r10d
add ecx, ebx
lea eax, [r11 + r9*8]
xor ecx, eax
lea eax, [r10 + r9]
xor ecx, eax
add edx, ecx
mov eax, edx
sar eax, 5
add eax, r11d
lea ecx, [rbx + rdx*8]
xor ecx, eax
lea eax, [r10 + rdx]
xor ecx, eax
add r9d, ecx
sub edi, 1
jne 0x14002ca55
add edx, r9d
mov ecx, 0x7fff
movzx eax, dx
and ax, cx
mov word [r8], ax
add r8, 2
lea rax, [0x14006d090]
cmp r8, rax
jb 0x14002ca49
mov dword [0x14006c910], 1
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret

Function at 0x14002cad0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r9, qword [rcx - 0x20]
xor esi, esi
mov r10, qword [rcx - 0x28]
mov rbx, rcx
mov r11d, esi
lea rdi, [r9 - 2]
cmp r10, rdi
jae 0x14002cb52
lea rbp, [0x14006ca90]
movzx eax, byte [r10 + 2]
lea r8, [r10 + 1]
movsxd rcx, r11d
movzx edx, word [rbp + rax*2 + 0x400]
movzx eax, byte [r10]
mov r10, r8
movzx eax, word [rbp + rax*2]
xor rdx, rax
movzx eax, byte [r8]
movzx eax, word [rbp + rax*2 + 0x200]
xor rdx, rax
movzx eax, word [rbx + rdx*2 - 0x18288]
mov word [rbx + rcx*2], ax
mov word [rbx + rdx*2 - 0x18288], r11w
inc r11d
cmp r8, rdi
jb 0x14002cb03
cmp r10, r9
jae 0x14002cb6a
sub r9, r10
movsxd rax, r11d
inc r11d
mov word [rbx + rax*2], si
sub r9, 1
jne 0x14002cb5a
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
Function at 0x140034ecc
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
xor r14d, r14d
mov rbp, rcx
mov ebx, r14d
or rdi, 0xffffffffffffffff
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x140035018
mov r8d, 0x104
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumePathNameW]
nop dword [rax + rax]
test eax, eax
je 0x140034fd3
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140034fd3
mov r8d, 0x104
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumeNameForVolumeMountPointW]
nop dword [rax + rax]
test eax, eax
je 0x140034fd3
inc rdi
cmp word [rbx + rdi*2], r14w
jne 0x140034f88
dec edi
cmp word [rbx + rdi*2], 0x5c
jne 0x140034fa0
mov word [rbx + rdi*2], r14w
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
test rbx, rbx
je 0x140035018
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret
Function at 0x1400503b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rcx]
mov rdi, rcx
test rbx, rbx
je 0x14005042e
xor ecx, ecx
cmp qword [rbx + 8], rcx
jbe 0x1400503ef
xor edx, edx
mov rax, qword [rbx + 0x10]
lea rdx, [rdx + 0x90]
inc rcx
and qword [rdx + rax - 0x68], 0
and qword [rdx + rax - 0x80], 0
cmp rcx, qword [rbx + 8]
jb 0x1400503cf
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbx + 0x10]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x18]
and qword [rbx + 0x10], 0
test rcx, rcx
je 0x140050421
call fcn.1400508bc
and qword [rbx + 0x18], 0
mov rcx, rbx
call fcn.140058eb8
and qword [rdi], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400508bc
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
cmp qword [rcx + 8], rdx
jbe 0x1400508ef
xor ecx, ecx
mov rax, qword [rbx + 0x10]
lea rcx, [rcx + 0x90]
inc rdx
and qword [rcx + rax - 0x68], 0
and qword [rcx + rax - 0x80], 0
cmp rdx, qword [rbx + 8]
jb 0x1400508cf
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbx + 0x10]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x18]
and qword [rbx + 0x10], 0
test rcx, rcx
je 0x140050926
mov edx, 1
call fcn.1400508bc
and qword [rbx + 0x18], 0
mov rcx, rbx
call fcn.140058eb8
mov rax, rbx
add rsp, 0x20
pop rbx
ret