joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000cf18
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor ecx, ecx
lea edx, [r9 + 1]
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov qword [0x14002c2f8], rax
cmp rax, 0xffffffffffffffff
je 0x14000d059
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
nop dword [rax + rax]
mov dword [0x14002c2ec], eax
cmp eax, 0xffffffff
je 0x14000d059
mov edx, 1
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop dword [rax + rax]
test eax, eax
je 0x14000d059
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
nop dword [rax + rax]
mov dword [0x14002c300], eax
cmp eax, 0xffffffff
je 0x14000d059
call fcn.14000d070
test al, al
je 0x14000d059
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThreadpool]
nop dword [rax + rax]
mov qword [0x14002daa8], rax
test rax, rax
je 0x14000d059
mov edx, dword [0x14002d7c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadpoolThreadMaximum]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_CreateThreadpoolCleanupGroup]
nop dword [rax + rax]
mov qword [0x14002dac0], rax
mov rcx, rax
test rax, rax
je 0x14000d059
mov rax, qword [0x14002daa8]
xor r9d, r9d
and qword [0x14002d5d8], 0
xor r8d, r8d
mov qword [0x14002d5d0], rcx
xor edx, edx
xor ecx, ecx
mov qword [0x14002d5c8], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov qword [0x14002d608], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14000d059
lea rcx, [0x14002d590]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop dword [rax + rax]
xor eax, eax
mov dword [0x14002d928], 1
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x14000d258
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
cmp dword [0x14002d810], edi
je 0x14000d2a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [0x14002c2ec]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
test rax, rax
mov ecx, ebx
sete dil
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x1400101e4
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r8, [0x14002d5c0]
mov rdx, rcx
lea rcx, [0x14000fe60]
call qword [sym.imp.KERNEL32.dll_CreateThreadpoolWork]
nop dword [rax + rax]
test rax, rax
jne 0x14001025e
lea r8d, [rax + 1]
mov rcx, rbx
lea rdx, [0x14002d640]
call fcn.14000b34c
cmp dword [0x14002d810], 0
jne 0x140010234
mov rax, qword [0x1400240d0]
jmp 0x140010251
mov ecx, dword [0x14002c300]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
test rax, rax
cmove rax, qword [0x1400240d0]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.140018f18
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_SubmitThreadpoolWork]
Function at 0x140010364
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, 0x30
mov eax, dword [rcx + 0x68]
xor ebp, ebp
add eax, 0xfffffffc
mov edi, ebp
cmp eax, 5
mov rsi, rdx
mov rbx, rcx
setbe dil
cmp dword [0x14002d87c], ebp
je 0x1400103bf
test edi, edi
je 0x1400103b2
cmp dword [0x14002d908], ebp
jne 0x1400103ab
cmp dword [0x14002d834], ebp
je 0x1400103b2
mov edx, 0x11f9
jmp 0x1400103b7
mov edx, 0x1069
xor r8d, r8d
call fcn.140017e94
cmp dword [0x14002d7ac], ebp
jne 0x140010567
test edi, edi
je 0x140010567
mov eax, dword [0x14002d908]
test eax, eax
je 0x1400104c5
mov rcx, qword [rbx + 0x58]
mov rdx, rsi
call fcn.14000fb70
cmp dword [0x14002d810], ebp
jne 0x1400103fe
mov rax, qword [0x1400240d0]
jmp 0x14001041b
mov ecx, dword [0x14002c300]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
test rax, rax
cmove rax, qword [0x1400240d0]
mov rcx, rax
call fcn.140018eac
mov r8d, dword [0x14002d840]
mov rdx, rsi
mov rcx, rbx
call fcn.14001f5f8
test eax, eax
jne 0x140010489
mov r8d, 1
lea rdx, [0x14002d640]
mov rcx, rbx
call fcn.14000b34c
cmp dword [0x14002d810], ebp
jne 0x14001045f
mov rax, qword [0x1400240d0]
jmp 0x14001047c
mov ecx, dword [0x14002c300]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
test rax, rax
cmove rax, qword [0x1400240d0]
mov rcx, rax
call fcn.140018f18
jmp 0x14001057c
cmp dword [0x14002d810], ebp
jne 0x14001049a
mov rax, qword [0x1400240d0]
jmp 0x1400104b7
mov ecx, dword [0x14002c300]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
test rax, rax
cmove rax, qword [0x1400240d0]
mov rcx, rax
call fcn.140018f18
mov eax, dword [0x14002d908]
cmp dword [0x14002d834], ebp
jne 0x1400104e1
test eax, eax
je 0x140010567
cmp dword [0x14002c2c8], ebp
je 0x140010567
cmp dword [0x14002d810], ebp
jne 0x1400104f2
mov rax, qword [0x1400240d0]
jmp 0x14001050f
mov ecx, dword [0x14002c300]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
test rax, rax
cmove rax, qword [0x1400240d0]
mov rcx, rax
call fcn.140018eac
mov r9d, dword [0x14002c2b0]
mov rdx, rsi
mov rcx, rbx
call fcn.14001a6e0
test eax, eax
je 0x140010439
cmp dword [0x14002d810], ebp
jne 0x140010542
mov rax, qword [0x1400240d0]
jmp 0x14001055f
mov ecx, dword [0x14002c300]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
test rax, rax
cmove rax, qword [0x1400240d0]
mov rcx, rax
call fcn.140018f18
mov r8d, 1
lea rdx, [0x14002d678]
mov rcx, rbx
call fcn.14000b34c
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140010598
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r8, [0x14002d5c0]
mov rdx, rcx
lea rcx, [0x140010630]
call qword [sym.imp.KERNEL32.dll_CreateThreadpoolWork]
nop dword [rax + rax]
test rax, rax
jne 0x140010612
lea r8d, [rax + 1]
mov rcx, rbx
lea rdx, [0x14002d640]
call fcn.14000b34c
cmp dword [0x14002d810], 0
jne 0x1400105e8
mov rax, qword [0x1400240d0]
jmp 0x140010605
mov ecx, dword [0x14002c300]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
test rax, rax
cmove rax, qword [0x1400240d0]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.140018f18
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_SubmitThreadpoolWork]

Function at 0x1400116fc
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x14002c298]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov r14, r8
xor r15d, r15d
mov qword [r8], r15
mov esi, 0x104
mov r9d, esi
lea rdx, [rsp + 0x30]
lea rax, [rsp + 0x30]
sub rcx, rax
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x14001176f
movzx eax, word [rcx + rdx]
test ax, ax
je 0x14001176f
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x14001174d
lea rax, [rdx - 2]
test r9, r9
cmovne rax, rdx
mov word [rax], r15w
lea r8, [0x1400258e0]
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140008c2c
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400118b3
mov dword [rsp + 0x24], r15d
mov dword [rsp + 0x20], r15d
lea rdx, [rsp + 0x24]
mov rcx, rax
call fcn.14000cbd4
mov edi, eax
test eax, eax
jns 0x1400117f8
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xcf
call fcn.14000f880
nop
mov rcx, rbx
call fcn.14000afac
nop
mov eax, edi
jmp 0x1400118d9
lea r8, [0x1400258e8]
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140008c2c
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140011892
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14000cbd4
mov esi, eax
test eax, eax
jns 0x14001186a
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xd7
call fcn.14000f880
nop
mov rcx, rdi
call fcn.14000afac
nop
mov rcx, rbx
call fcn.14000afac
nop
mov eax, esi
jmp 0x1400118d9
mov rcx, rdi
call fcn.14000afac
nop
movsxd rcx, dword [rsp + 0x20]
shl rcx, 0x1f
movsxd rax, dword [rsp + 0x24]
or rax, rcx
mov qword [r14], rax
mov rcx, rbx
call fcn.14000afac
nop
jmp 0x1400118c4
mov rcx, qword [rbp + 0x168]
mov edx, 0xd5
call fcn.14000f860
mov edi, eax
mov rcx, rbx
call fcn.14000afac
nop
jmp 0x1400117f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
jne 0x1400118c8
xor eax, eax
jmp 0x1400118d9
mov rcx, qword [rbp + 0x168]
mov edx, 0xc9
call fcn.14000f860
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140001a50
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140011cb8
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
test ecx, ecx
jg 0x140011cc9
xor eax, eax
jmp 0x140011e3f
cmp edx, ecx
jle 0x140011cde
mov edx, 1
mov ecx, 0xe3
call fcn.1400182bc
jmp 0x140011cc2
mov ecx, dword [0x14002d810]
test ecx, ecx
jne 0x140011cf4
mov rax, qword [0x1400240d0]
mov rdx, rax
jmp 0x140011d1d
mov ecx, dword [0x14002c300]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
mov ecx, dword [0x14002d810]
mov rdx, rax
mov rax, qword [0x1400240d0]
test rdx, rdx
cmove rdx, rax
cmp dword [rdx], 0
je 0x140011d58
mov ebx, 1
test ecx, ecx
je 0x140011d48
mov ecx, dword [0x14002c300]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
test rax, rax
cmove rax, qword [0x1400240d0]
mov rcx, rax
call fcn.140018f18
mov ecx, dword [0x14002d810]
jmp 0x140011d5a
xor ebx, ebx
test ecx, ecx
jne 0x140011d67
mov rcx, qword [0x1400240d8]
jmp 0x140011d89
mov ecx, dword [0x14002c300]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
mov rcx, qword [0x1400240d8]
test rax, rax
je 0x140011d89
lea rcx, [rax + 8]
call fcn.140018eac
mov eax, 0x10624dd3
imul dword [0x14002c2e4]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
call fcn.140018dd4
mov ecx, dword [0x14002c2e4]
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
xor edx, edx
mov ecx, 0xe1
call fcn.1400182bc
cmp dword [0x14002d810], 0
jne 0x140011dd8
mov rcx, qword [0x1400240d8]
jmp 0x140011dfa
mov ecx, dword [0x14002c300]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
mov rcx, qword [0x1400240d8]
test rax, rax
je 0x140011dfa
lea rcx, [rax + 8]
call fcn.140018f18
test ebx, ebx
je 0x140011e3a
cmp dword [0x14002d810], 0
jne 0x140011e15
mov rax, qword [0x1400240d0]
jmp 0x140011e32
mov ecx, dword [0x14002c300]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
test rax, rax
cmove rax, qword [0x1400240d0]
mov rcx, rax
call fcn.140018eac
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x14001b4c4
Capabilities:
Check if file exists
Delete directory
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
push rdi
push r14
push r15
sub rsp, 0x30
mov ebp, r8d
mov rdi, rcx
mov esi, dword [0x14002d7d0]
lea rdx, [rax - 0x28]
call fcn.14001d14c
nop
xor r15d, r15d
mov ebx, r15d
or r14d, 0xffffffff
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
cmove eax, r15d
and eax, 0xfffffff8
mov edx, eax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x14001b5f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x91
je 0x14001b5c3
cmp eax, 0x10b
je 0x14001b5c3
cmp eax, 0x7b
je 0x14001b5c3
cmp eax, 0x43
jne 0x14001b56b
test esi, esi
je 0x14001b5c3
cmp eax, 0x56
je 0x14001b5c3
cmp eax, 5
je 0x14001b5c3
inc ebx
mov r9d, ebx
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.14000f800
test eax, eax
jne 0x14001b4fc
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14001b5f5
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [0x1400249b8]
jmp 0x14001b5f5
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14001b5f5
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [0x1400249b8]
xor eax, eax
jmp 0x14001b630
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov ecx, r14d
lock xadd dword [rdx + 0x10], ecx
add ecx, r14d
test ecx, ecx
jg 0x14001b62b
mov rcx, qword [rdx]
mov r8, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [r8 + 8]
call qword [0x1400249b8]
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14001c1f0
Capabilities:
Get file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xa8
mov rax, qword [0x14002c298]
xor rax, rsp
mov qword [rbp - 1], rax
mov rax, qword [rbp + 0x7f]
mov r12, rdx
lea rdx, [rbp - 0x51]
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x49], r9
mov r13, r8
mov rdi, rcx
call fcn.14001d14c
or r14, 0xffffffffffffffff
xor r15d, r15d
xor esi, esi
cmp dword [0x14002d8c0], esi
je 0x14001c251
cmp dword [rdi + 0x1c], 0xa000000c
sete sil
xor ebx, ebx
cmp dword [0x14002d8b0], ebx
je 0x14001c265
cmp dword [rdi + 0x1c], 0xa0000003
sete bl
xor edi, edi
test rbx, rbx
jne 0x14001c274
lea eax, [rbx + 1]
test rsi, rsi
je 0x14001c279
mov eax, 2
cmp edi, eax
jge 0x14001c2c7
mov eax, edi
mov edx, 0x80
neg eax
sbb ecx, ecx
and qword [rsp + 0x30], r15
and ecx, 0x200000
xor r9d, r9d
add ecx, 0x2000080
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp - 0x51]
lea r8d, [r9 + 7]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
inc edi
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14001c267
cmp r14, 0xffffffffffffffff
je 0x14001c36b
xor eax, eax
mov dword [rsp + 0x20], 4
xorps xmm1, xmm1
mov qword [rbp - 9], rax
xorps xmm0, xmm0
lea r8, [rbp - 0x29]
lea rdx, [rbp - 0x39]
mov rcx, r14
lea r9d, [rax + 0x28]
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm1
movups xmmword [rbp - 0x19], xmm1
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
mov rcx, r14
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test ebx, ebx
js 0x14001c34f
mov rax, qword [rbp - 0x29]
mov r15d, 1
mov rcx, qword [rbp - 0x49]
mov qword [r12], rax
mov rax, qword [rbp - 0x21]
mov qword [r13], rax
mov rax, qword [rbp - 0x19]
mov qword [rcx], rax
mov rcx, qword [rbp - 0x41]
mov rax, qword [rbp - 0x11]
mov qword [rcx], rax
jmp 0x14001c36b
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rdx, qword [rbp - 0x51]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14001c39a
mov rcx, qword [rdx]
mov r8, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [r8 + 8]
call qword [0x1400249b8]
mov eax, r15d
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.140001a50
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14001d6a4
Capabilities:
Set file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xa8
mov rax, qword [0x14002c298]
xor rax, rsp
mov qword [rbp - 1], rax
mov rax, qword [rbp + 0x7f]
mov r12, rdx
lea rdx, [rbp - 0x51]
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x49], r9
mov r13, r8
mov rdi, rcx
call fcn.14001d14c
or r14, 0xffffffffffffffff
xor r15d, r15d
xor esi, esi
cmp dword [0x14002d8c0], esi
je 0x14001d705
cmp dword [rdi + 0x1c], 0xa000000c
sete sil
xor ebx, ebx
cmp dword [0x14002d8b0], ebx
je 0x14001d719
cmp dword [rdi + 0x1c], 0xa0000003
sete bl
xor edi, edi
test rbx, rbx
jne 0x14001d728
lea eax, [rbx + 1]
test rsi, rsi
je 0x14001d72d
mov eax, 2
cmp edi, eax
jge 0x14001d77b
mov eax, edi
mov edx, 0x100
neg eax
sbb ecx, ecx
and qword [rsp + 0x30], r15
and ecx, 0x200000
xor r9d, r9d
add ecx, 0x2000080
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp - 0x51]
lea r8d, [r9 + 7]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
inc edi
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14001d71b
cmp r14, 0xffffffffffffffff
je 0x14001d814
mov rcx, qword [r12]
lea r8, [rbp - 0x29]
mov rax, qword [rbp - 0x49]
lea rdx, [rbp - 0x39]
and qword [rbp - 9], r15
xorps xmm0, xmm0
mov qword [rbp - 0x29], rcx
mov r9d, 0x28
mov rcx, qword [r13]
mov rax, qword [rax]
mov qword [rbp - 0x19], rax
mov rax, qword [rbp - 0x41]
mov qword [rbp - 0x21], rcx
mov rcx, r14
movups xmmword [rbp - 0x39], xmm0
mov dword [rsp + 0x20], 4
mov rax, qword [rax]
mov qword [rbp - 0x11], rax
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
mov rcx, r14
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test ebx, ebx
js 0x14001d7f8
mov r15d, 1
jmp 0x14001d814
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rdx, qword [rbp - 0x51]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14001d843
mov rcx, qword [rdx]
mov r8, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [r8 + 8]
call qword [0x1400249b8]
mov eax, r15d
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.140001a50
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14001fac0
Capabilities:
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov rdi, rcx
lea rdx, [rsp + 0x48]
call fcn.14001fd18
nop
xor ebx, ebx
mov edx, 0x80
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14001fb57
inc ebx
mov r9d, ebx
or r8d, 0xffffffff
mov edx, esi
mov rcx, rdi
call fcn.14000f774
test eax, eax
jne 0x14001fae1
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001fb53
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [0x1400249b8]
xor eax, eax
jmp 0x14001fb8c
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14001fb87
mov rcx, qword [rdx]
mov r8, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [r8 + 8]
call qword [0x1400249b8]
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140020404
Capabilities:
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebp, r9d
mov esi, edx
mov rdi, rcx
lea rdx, [rax - 0x18]
call fcn.14001fd18
nop
xor ebx, ebx
mov edx, esi
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
test eax, eax
jne 0x1400204ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x7b
je 0x1400204b6
cmp eax, 2
je 0x1400204b6
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
inc ebx
mov r9d, ebx
mov r8d, ebp
mov edx, 0x239c
mov rcx, rdi
call fcn.14000f774
test eax, eax
jne 0x14002042c
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400204fb
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [0x1400249b8]
jmp 0x1400204fb
lea r9d, [rbx + 1]
xor r8d, r8d
mov edx, 0x239c
mov rcx, rdi
call fcn.14000f774
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400204fb
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [0x1400249b8]
xor eax, eax
jmp 0x140020534
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14002052f
mov rcx, qword [rdx]
mov r8, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [r8 + 8]
call qword [0x1400249b8]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140020b60
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x30
mov rcx, qword [rcx]
lea rax, [r11 + 0x20]
mov edi, r8d
mov qword [r11 - 0x10], rax
xor ebx, ebx
lea r9, [r11 + 8]
xor r8d, r8d
mov qword [r11 - 0x18], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140020ba0
cmp dword [rsp + 0x40], edi
jne 0x140020ba0
lea ebx, [rax + 1]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140020bb4
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x30
mov r8d, 4
mov rbx, rdx
mov rdi, rcx
call fcn.140020b60
xor esi, esi
test eax, eax
jne 0x140020bf1
mov rcx, qword [rdi]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
mov rcx, qword [rdi]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x40]
test eax, eax
sete sil
mov eax, esi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14002138c
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, r8
mov rsi, rdx
lea r8, [rcx + 0xd0]
mov rbx, rcx
mov rcx, rax
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_OpenEncryptedFileRawW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14002146a
lea r8, [rbx + 0x88]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenEncryptedFileRawW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14002144c
and qword [rsp + 0x28], 0
lea r8, [0x140021160]
mov r9, rbx
mov dword [rsp + 0x20], 4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov qword [rbx], rax
test rax, rax
je 0x14002143c
lea edx, [rdi + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
nop dword [rax + rax]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
nop dword [rax + rax]
mov al, 1
jmp 0x1400214ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x140021494
cmp dword [0x14002d804], 0
je 0x140021494
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rcx, str._nEFS:_OpenEncryptedFileRaw_Source__returned__d
jmp 0x140021486
cmp dword [0x14002d804], 0
je 0x140021494
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rcx, str._nEFS:_OpenEncryptedFileRaw_Target__returned__d
mov edx, eax
call qword [sym.imp.msvcrt.dll_wprintf]
nop dword [rax + rax]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rcx, rbx
call fcn.140021038
xor al, al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret