joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002980
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000aae0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400029a0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400029a8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400029a0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400029f0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400029e7
test rcx, rcx
je 0x1400029a0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400029d8
xor eax, eax
ret

Function at 0x140002a00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000aae0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002a1f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002a28
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002a40
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000aae0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002a60
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002a68
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002a60
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002a60
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002ab4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002ac0
add rdx, 0x28
cmp r9, rdx
jne 0x140002aa0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002ad0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000aae0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002af2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002b00
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002af2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002af2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002af2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002b55
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002b68
add rdx, 0x28
cmp rdx, r10
jne 0x140002b40
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002b77
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002b87
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002b5e
test ecx, ecx
jg 0x140002b70
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x2b6ab0790
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2b6ab1192
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2b6ab9908]
test eax, eax
je 0x2b6ab122a
lea rax, [0x2b6ab98e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2b6ab9910]
mov qword [rbp - 8], rax
jmp 0x2b6ab120e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2b6ab1202
cmp qword [rbp - 0x10], 0
je 0x2b6ab1202
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2b6ab11c8
lea rax, [0x2b6ab98e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2b6ab122b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2b6ab1330
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2b6ab1358
mov eax, 0
jmp 0x2b6ab13a6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2b6ab1381
mov eax, 0
jmp 0x2b6ab13a6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2b6ab13a1
mov eax, 0
jmp 0x2b6ab13a6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2b6ab13ac
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2b6ab142a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2b6ab1421
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2b6ab1421
mov rax, qword [rbp - 8]
jmp 0x2b6ab143f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2b6ab13f4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x553610
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov si, word [rsp]
xchg dword [rsp + 0x1b], r14d
pop qword [rsp + 3]
pop word [rsp + 0x15]
xchg dword [rsp + 8], esi
mov dword [rsp + 0xf], r11d
jmp 0x55366a
bsr rcx, r8
lea rsi, [0x5c0091b8]
std
push r10
jmp 0x5535e7
add rsp, 0x12
rdtsc
mov r11d, 0x7b1d7359
neg cx
bswap r14
xchg dil, r14b
jmp 0x55364f
pop rbx
mov ebx, r13d
btc rbx, r10
mov dword [rsp + 0xe], eax
mov r10, rbp
cld
jmp 0x553621
std
sub rsp, 0xd
xchg byte [rsp + 0xb], r12b
rdtsc
cld
lea rdx, [rdi + r9]
jmp 0x553688
pop r12w
xchg word [rsp + 0x11], di
mov r12d, r14d
xchg dword [rsp + 0x10], ebx
mov r12d, 0xd394255b
mov r11w, word [rsp + 7]
jmp 0x55363d
mov qword [rsp], rbx
mov r13w, 0x62be
xchg r8d, r12d
neg r10b
lea rdi, [r11 + riz + 0xb2]
mov r13d, dword [rsp + 1]
jmp 0x5536dd
xchg dword [rsp + 4], r8d
mov ebp, 0x305039ce
add rsp, 2
rdtsc
lea r8, [rcx + rbx]
bswap rdx
jmp 0x5536bd

Function at 0x553925
Capabilities:
Execute anti-debugging instructions

Disassembly:
bswap r12
pushfq
bts r10d, r8d
mov byte [rsp + 0x12], sil
jmp 0x55393c
neg r10b
mov r12w, 0x9c48
call fcn.00553925
add byte [rax], al
add byte [rdi - 0x42], dl
pop qword [rsp + 4]
and eax, eax
lea r10, [rsp + rbp]
push qword [rsp + 0x10]
xchg dword [rsp + 4], r14d
xchg dword [rsp + 1], r11d
bswap rdx
mov dx, word [rsp + 0x10]
xchg dil, sil
jmp 0x553916

Function at 0x553ebe
Capabilities:
Execute anti-debugging instructions

Disassembly:
cpuid
mov r13w, word [rsp]
mov r13d, dword [rsp + 0xf]
mov r12, rbp
mov r12, rdi
add rsp, 0x11
cpuid
cpuid
jmp 0x553db1
inc r11b
bt r10d, r11d
stc
jmp 0x553e26
Function at 0x558445
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov r9b, byte [rsp + 0x67]
bsf r9w, r13w
neg rax
xchg r9d, r14d
jmp 0x558465
xchg r12, rbp
mov ax, word [rsp + 0x3a]
jmp 0x55842e
mov dl, r13b
push qword [rsp + 0x30]
push word [rsp + 0x39]
jmp 0x55849a
xchg dword [rsp + 0x3c], eax
mov r12, 0x610c3865
not r14d
add rsp, 0x3c
mov r12b, byte [rsp + 0x13]
mov word [rsp + 0xb], r11w
jmp 0x55844f
dec r12w
xchg r9b, bpl
lea r9, [rdx*8]
jmp 0x558508
mov word [rsp + 0x42], r14w
push qword [rsp + 4]
mov r12b, r15b
mov rbp, 0x1aac78ad
mov eax, dword [rsp + 9]
mov eax, dword [rsp + 3]
jmp 0x558484
mov r9b, 0x36
mov r12d, 0x2b403a12
xchg r12d, edx
mov bp, r10w
bt ebp, esp
lea r9, [rdi*4]
jmp 0x558523
mov word [rsp + 0x49], dx
setg r14b
pop bp
or ax, 0xc397
mov dword [rsp + 0x1f], edx
xchg qword [rsp + 0x42], rdx
jmp 0x5584e4
xchg ebp, r14d
pop qword [rsp + 0x28]
mov r12, 0x7d97b681
mov rbp, qword [rsp + 0x21]
not r9
adc ax, cx
jmp 0x558cf2
lea r14, [rdx + rdx]
lea r14, [rdx + r14]
bsr rbp, r15
xchg r12b, bpl
jmp 0x5585c4
lea rax, [r9*8]
xchg bpl, r14b
add ax, 0x2cd9
rdtsc
jmp 0x558569
mov al, 0xc1
rdtsc
mov r12d, 0xfd04b77e
stc
mov al, r12b
xchg bpl, r14b
jmp 0x55857f
add rsp, 0x2e
mov r12w, 0x8749
bts eax, ecx
mov rdx, 0xb86f854
jmp 0x5585f5
push word [rsp + 0x22]
push qword [rsp + 0xc]
cmc
mov dl, byte [rsp + 0xc]
mov byte [rsp + 0x10], r15b
mov r14d, dword [rsp + 0x15]
jmp 0x5585aa
mov r14b, 0x98
xchg rdx, r14
call fcn.005585df
lea rax, [r9 + r11]
mov dx, r15w
bswap rax
call fcn.0055866a
jmp 0x558614
invalid
pop ax
clc
mov r14, rcx
mov r9b, 0xa5
xchg ebp, r9d
mov r14, 0x5ee59c96
jmp 0x558597
lea rsp, [rsp + 0x18]
setle al
mov r9, 0x438f7af1
rdtsc
lea rax, [rsi + r12]
neg rbp
jmp 0x558638
pop dx
mov rbp, qword [rsp + 0x39]
mov bp, ax
push word [rsp + 8]
push word [rsp + 0x2d]
dec dx
jmp 0x5587f7
bswap ebp
ror rdx, cl
xchg byte [rsp + 0xb], dl
bswap ebp
push word [rsp + 0x21]
pop r9
jmp 0x5588dc
Function at 0x55a19a
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + riz + 0x18]
mov rax, qword [rax + riz + 0x30]
jmp 0x55a15b
lea rsp, [rsp + 6]
lea rsp, [rsp + 0x40]
jmp 0x55a171
Function at 0x14000e050
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
or edi, 0xffffffff
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test rdx, rdx
je 0x14000e0df
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov ebx, eax
cmp eax, edi
je 0x14000e098
shr ebx, 4
not ebx
and ebx, 1
jmp 0x14000e09a
xor ebx, ebx
xor ecx, ecx
int3
test rbp, rbp
je 0x14000e148
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov ebx, eax
cmp eax, edi
je 0x14000e101
shr ebx, 4
and ebx, 1
jmp 0x14000e103
xor ebx, ebx
xor ecx, ecx
int3
lea r15, [rsi + 0x90]
mov rbx, qword [r15]
test rbx, rbx
je 0x14000e183
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
lea r8, [rbx - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
xor ecx, ecx
int3
xor edi, edi
test r14, r14
je 0x14000e1c4
mov rdx, r15
mov rcx, r14
call fcn.140024bb8
mov edi, eax
test eax, eax
jns 0x14000e1c4
mov rcx, qword [rsi]
mov rax, qword [rcx + 0x18]
mov rcx, rsi
call qword [str.PN_t_]
xor ecx, ecx
test rax, rax
je 0x14000e25e
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 0x1de
jmp 0x14000e238
lea r14, [rsi + 0x98]
mov rbx, qword [r14]
test rbx, rbx
je 0x14000e1ff
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
lea r8, [rbx - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
xor ecx, ecx
int3
test rbp, rbp
je 0x14000e263
mov rdx, r14
mov rcx, rbp
call fcn.140024bb8
mov edi, eax
test eax, eax
jns 0x14000e263
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
xor ecx, ecx
test rax, rax
je 0x14000e25e
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 0x1e4
lea r9, str.CSetupHost::SetAutomationPaths
mov edx, 4
lea r8, str._s__d_:_Result__0x_X
mov rcx, rax
call fcn.14002374c
mov ecx, eax
test eax, eax
jns 0x14000e25e
call fcn.140025d30
int3
mov ecx, edi
int3
Function at 0x140014f80
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400c5a08]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs rax, 0x5c003a003f
movzx esi, dx
mov qword [rsp + 0x30], rax
xor ebx, ebx
mov eax, dword [rcx + 0x11c]
mov rdi, rcx
cmp eax, 5
jne 0x140015129
cmp qword [rcx + 0x148], rbx
jne 0x140014fec
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
xor ecx, ecx
int3
xor edx, edx
mov word [rsp + 0x30], si
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x64]
call sub.msvcrt.dll_memset
mov r8d, 0x32
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
nop dword [rax + rax]
test eax, eax
jne 0x14001509c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x140015038
mov ebx, 0x80004005
jmp 0x140015046
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
xor ecx, ecx
test ebx, ebx
jns 0x140014fe2
test rax, rax
je 0x140014fe2
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x88f
lea r9, str.CSetupHost::ReportStorageLocation
mov edx, 4
lea r8, str._s__d_:_Result__0x_X
mov rcx, rax
call fcn.14002374c
mov ecx, eax
test eax, eax
jns 0x140014fe2
call fcn.140025d30
jmp 0x140014fe2
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
test rax, rax
je 0x1400150da
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
lea r9, [rsp + 0x40]
mov edx, 2
mov rcx, rax
lea r8, str.SetupHost:_Reporting_external_storage_location_for_download_to_WU___s_
call fcn.14002374c
mov rcx, qword [rdi + 0x148]
lea rdx, [rsp + 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [str.PN_t_]
mov ebx, eax
test eax, eax
jns 0x1400151dd
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x18]
mov rcx, rdi
call qword [str.PN_t_]
xor ecx, ecx
test rax, rax
je 0x140014fe2
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x892
jmp 0x14001506d
cmp eax, 6
jne 0x1400151dd
call fcn.140023f14
mov ebx, eax
test eax, eax
jns 0x140015169
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
xor ecx, ecx
test rax, rax
je 0x140014fe2
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x896
jmp 0x14001506d
mov r9d, esi
lea r8, str.StorageDriveLetter
lea rdx, str.SYSTEMSetupMoSetupVolatile
call fcn.140023cac
mov ebx, eax
mov rcx, rdi
mov rax, qword [rdi]
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
test ebx, ebx
jns 0x1400151b1
xor ecx, ecx
test rax, rax
je 0x140014fe2
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x89a
jmp 0x14001506d
test rax, rax
je 0x1400151dd
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
mov r9d, esi
lea r8, str.SetupHost:_Putting_external_storage_location_for_download_in_Reg___c_
mov rcx, rax
mov edx, 2
call fcn.14002374c
mov ecx, ebx
int3
Function at 0x140015730
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r13, rdx
mov r12, rcx
xor ebx, ebx
mov qword [rbp + 0x50], rbx
xor edi, edi
mov qword [rbp + 0x58], rdi
xor esi, esi
mov qword [rbp - 0x10], rsi
test rdx, rdx
jne 0x1400157c5
mov r15d, 0x80070057
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
xor ecx, ecx
test rax, rax
je 0x1400157bb
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 0x922
lea r9, str.CSetupHost::OnWorkingPathChanged
lea r8, str._s__d_:_Result__0x_X
mov edx, 4
mov rcx, rax
call fcn.14002374c
test eax, eax
mov ecx, eax
jns 0x1400157bb
call fcn.140025d30
int3
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov r14d, eax
cmp eax, 0xffffffff
je 0x1400157e6
shr r14d, 4
and r14d, 1
jmp 0x1400157e9
xor r14d, r14d
xor ecx, ecx
int3

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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1b8]
sub rsp, 0x280
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x1400c5a08]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x40], rdx
mov r14, rcx
xor r12d, r12d
mov qword [rsp + 0x20], r12
xor r15d, r15d
mov qword [rsp + 0x28], r15
xor r13d, r13d
mov qword [rsp + 0x30], r13
xor esi, esi
mov qword [rsp + 0x38], rsi
test rcx, rcx
jne 0x1400173c8
mov edi, 0x80070057
mov ecx, edi
call fcn.140025d30
jmp 0x1400177ad
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xffffffff
je 0x1400173e3
shr ebx, 4
and ebx, 1
jmp 0x1400173e5
xor ebx, ebx
xor ecx, ecx
int3
mov ecx, edi
int3

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

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x78
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov rax, rdx
mov r12, rcx
xor r13d, r13d
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r13
mov ebx, r13d
mov qword [rbp - 0x38], rbx
mov qword [rbp + 0x58], r13
mov edi, r13d
mov qword [rbp + 0x60], r13
mov r14d, r13d
mov qword [rbp + 0x48], r13
mov esi, r13d
mov qword [rbp - 0x28], r13
test rcx, rcx
jne 0x14001d87c
mov ecx, 0x80070057
mov r15d, ecx
call fcn.140025d30
jmp 0x14001db8c
test rax, rax
je 0x14001d86a
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov r15d, eax
cmp eax, 0xffffffff
je 0x14001d8a2
shr r15d, 4
not r15d
and r15d, 1
jmp 0x14001d8a5
mov r15d, r13d
xor ecx, ecx
int3
mov ecx, r15d
int3
Function at 0x1400212f4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r12, rdx
mov r15, rcx
xor edx, edx
mov qword [rbp - 0x28], rdx
mov esi, edx
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x20], rdx
mov edi, edx
mov qword [rbp + 0x50], rdx
mov ebx, edx
mov qword [rbp - 0x38], rdx
test r9, r9
jne 0x14002135c
mov r12d, 0x80070057
mov r14d, r12d
mov ecx, r12d
call fcn.140025d30
jmp 0x140021868
test r12, r12
je 0x14002141c
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov r14d, eax
cmp eax, 0xffffffff
je 0x140021386
shr r14d, 4
and r14d, 1
jmp 0x140021389
xor r14d, r14d
xor ecx, ecx
int3
lea rcx, [r15 + 0x78]
and qword [rbp - 0x18], 0
mov qword [rbp - 0x10], rdx
mov r14d, edx
mov r12d, 0x80070057
test rcx, rcx
jne 0x140021444
mov r14d, r12d
mov ecx, r12d
call fcn.140025d30
jmp 0x14002144d
lea rdx, [rbp - 0x18]
call fcn.140024fe0
mov ecx, r14d
int3
mov ecx, r14d
int3
Function at 0x140021c78
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1b8]
sub rsp, 0x280
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x1400c5a08]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov qword [rsp + 0x50], r8
mov r13, rdx
xor r12d, r12d
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
mov esi, r12d
mov qword [rsp + 0x30], r12
mov r14d, r12d
mov r15d, r12d
mov qword [rsp + 0x38], r12
mov ebx, r12d
mov qword [rsp + 0x20], rbx
mov edi, r12d
test rdx, rdx
jne 0x140021cfb
mov ecx, 0x80070057
mov edi, ecx
call fcn.140025d30
jmp 0x140021fb1
test r8, r8
je 0x140021cea
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x60]
mov ecx, 0x103
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x140021d55
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x140021d43
mov edi, 0x80004005
jmp 0x140021d51
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
jmp 0x140021cf1
lea r12, [rsp + 0x60]
xor eax, eax
cmp word [rsp + 0x60], ax
je 0x140021f35
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
nop dword [rax + rax]
add eax, 0xfffffffe
cmp eax, 1
ja 0x140021f0e
xor esi, esi
test rbx, rbx
je 0x140021db6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
lea r8, [rbx - 4]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
xor ecx, ecx
int3
lea r9, [rsp + 0x20]
lea rdx, str._Windows.LS
mov rcx, r12
call fcn.140024234
mov edi, eax
test eax, eax
js 0x140022059
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov esi, eax
cmp eax, 0xffffffff
je 0x140021df7
shr esi, 4
and esi, 1
jmp 0x140021dfb
xor eax, eax
mov esi, eax
xor ecx, ecx
int3
xor ecx, ecx
or rax, 0xffffffffffffffff
inc rax
cmp word [r12 + rax*2], cx
jne 0x140021f14
lea r12, [r12 + rax*2]
add r12, 2
cmp word [r12], cx
jne 0x140021d67
mov esi, dword [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, r13
call fcn.140024fe0
mov rcx, qword [rsp + 0x50]
mov r13d, dword [rcx]
mov eax, dword [rcx + 4]
mov dword [rsp + 0x28], eax
mov r12, qword [rcx + 8]
xor edx, edx
mov qword [rcx + 8], rdx
mov dword [rcx], esi
mov dword [rcx + 4], r14d
mov rsi, qword [rcx + 8]
test rsi, rsi
je 0x140021f95
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
xor edx, edx
mov qword [rcx + 8], r15
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x34], eax
mov rax, rdx
test r12, r12
cmovne rax, r12
mov qword [rsp + 0x38], rax
mov ecx, edi
int3
mov ecx, eax
call fcn.140025d30
mov rbx, qword [rsp + 0x20]
jmp 0x140021fb1
Function at 0x140022124
Capabilities:
Shutdown system

Disassembly:
mov rax, rsp
mov dword [rax + 8], ecx
push rdi
sub rsp, 0x40
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov ebx, edx
and qword [rax + 0x18], 0
mov dword [rax + 8], FDICopy
lea rdx, [rax + 8]
lea rcx, [rax + 0x18]
call fcn.140027e14
mov edi, eax
test eax, eax
jns 0x140022160
mov ecx, eax
jmp 0x1400221bc
mov eax, 0x80030002
test ebx, ebx
cmovne eax, ebx
mov dword [rsp + 0x28], eax
mov r9d, 1
mov dword [rsp + 0x20], r9d
xor r8d, r8d
lea rdx, str.WinDLP_System_Reboot
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400221c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x1400221ac
mov edi, 0x80004005
jmp 0x1400221ba
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
call fcn.140025d30
mov ecx, edi
int3

Function at 0x140023a00
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push r14
sub rsp, 0x40
and qword [rax - 0x10], 0
mov rbp, r9
mov r14, r8
lea r9, [rax - 0x10]
xor ebx, ebx
mov rcx, 0xffffffff80000002
lea r8d, [rbx + 1]
call fcn.14002a384
mov esi, eax
test eax, eax
jns 0x140023a4c
mov ecx, eax
call fcn.140025d30
jmp 0x140023b10
and dword [rsp + 0x50], ebx
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x140023a91
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x140023acd
test rbx, rbx
jne 0x140023adb
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140023ad4
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140023a50
mov esi, 0x8007000e
mov ecx, esi
jmp 0x140023a42
mov esi, 0x8000ffff
jmp 0x140023acd
cmp dword [rsp + 0x30], 1
je 0x140023ae9
mov esi, 0x8007000d
jmp 0x140023acd
mov edx, dword [rsp + 0x50]
lea r9, [rsp + 0x34]
mov r8, rbp
mov rcx, rbx
call fcn.140002c54
mov esi, eax
test eax, eax
js 0x140023a40
cmp dword [rsp + 0x34], 0
je 0x140023b10
xor ebx, ebx
mov ecx, esi
int3