joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140069880
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x10], rbx
mov qword [rbp + 0x18], rsi
mov qword [rbp + 0x20], rdi
mov rdi, rcx
mov qword [rbp + 0x28], r14
mov r14, rdx
test rcx, rcx
je 0x14006998b
cmp word [rcx], 0
je 0x14006998b
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
je 0x1400698da
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.dll_SetLastError]
shr ebx, 4
and bl, 1
movzx eax, bl
jmp 0x140069998
mov ebx, 0x5c
mov rcx, rdi
mov edx, ebx
call fcn.1400e17e8
mov rsi, rax
cmp rax, rdi
jbe 0x140069979
cmp word [rax - 2], 0x3a
je 0x140069979
test r14, r14
je 0x140069916
xor eax, eax
mov rdx, rdi
mov rcx, rdi
mov word [rsi], ax
call fcn.140069880
mov word [rsi], bx
jmp 0x14006996e
mov r14, rsi
sub r14, rdi
sar r14, 1
lea rax, [r14*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14006993a
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400fe470
sub rsp, rcx
mov r8, r14
mov rdx, rdi
lea rbx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400eadcc
xor eax, eax
mov rdx, rbx
mov rcx, rbx
mov word [rbx + r14*2], ax
call fcn.140069880
cmp word [rsi + 2], 0
je 0x140069998
test al, al
je 0x140069998
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
jmp 0x140069998
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov rbx, qword [rbp + 0x10]
mov rsi, qword [rbp + 0x18]
mov rdi, qword [rbp + 0x20]
mov r14, qword [rbp + 0x28]
mov rsp, rbp
pop rbp
ret
Function at 0x14006aa50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rdi, r8
mov r14, rdx
mov r15, rcx
test r8, r8
je 0x14006aab9
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call fcn.140001670
cmp byte [rdi + 0x23], 0
mov rsi, rax
jne 0x14006aa8c
mov rbx, qword [rdi + 0x10]
jmp 0x14006aa8f
mov rbx, rdi
cmp byte [rbx + 0x23], 1
jne 0x14006aaad
test byte [rbx + 0x21], 8
je 0x14006aaa3
mov rcx, rbx
call fcn.140001510
mov rbp, qword [rbx + 0x10]
add rbx, 0x10
jmp 0x14006ab03
lea rbx, [0x14014fed8]
mov rbp, qword [rbx]
jmp 0x14006ab03
lea r8, [rsp + 0x88]
xor ecx, ecx
lea rdx, [rsp + 0x80]
call fcn.1400c6240
test eax, eax
jne 0x14006aaf3
mov rax, qword [0x140145a80]
xor ebx, ebx
mov dword [rax + 0x40], ebx
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x88]
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov edx, 0x40000000
mov rcx, r14
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14006ab84
mov dword [rsp + 0x80], ebx
mov ecx, ebx
test rsi, rsi
je 0x14006ab64
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rbx
mov r8d, ebp
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x80]
cmp ecx, ebp
sete bl
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140145a80]
mov dword [rcx + 0x40], eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14006ab94
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140145a80]
mov dword [rcx + 0x40], eax
test rdi, rdi
jne 0x14006aba1
mov rcx, rsi
call fcn.1400e89fc
test ebx, ebx
je 0x14006abd5
mov rcx, qword [0x14014a3b0]
lea rdx, [0x14010d31c]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c6a70
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [0x140145a80]
lea rdx, [0x14012296c]
test byte [rax + 0x140], 1
jne 0x14006ac15
mov rcx, qword [0x14014a3b0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c6a70
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea r9, [0x14010d28c]
xor r8d, r8d
mov rcx, r15
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
jmp fcn.140050010
Function at 0x14006ac50
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
movzx r8d, word [rdx]
mov rbx, rdx
mov rdi, rcx
mov r9, rdx
test r8w, r8w
je 0x14006ad56
test rdx, rdx
je 0x14006acb6
mov edx, 0x3f
nop dword [rax + rax]
lea rcx, [0x14012c808]
movzx eax, dx
nop word [rax + rax]
cmp r8w, ax
je 0x14006ad56
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x14006ac90
movzx r8d, word [r9 + 2]
add r9, 2
test r8w, r8w
jne 0x14006ac80
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140145a80]
mov dword [rcx + 0x40], eax
test ebx, ebx
je 0x14006ad07
mov rcx, qword [0x14014a3b0]
lea rdx, [0x14010d31c]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c6a70
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
test byte [rcx + 0x140], 1
lea rdx, [0x14012296c]
jne 0x14006ad3a
mov rcx, qword [0x14014a3b0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c6a70
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea r9, [0x14010d28c]
xor r8d, r8d
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.140050010
xor r9d, r9d
mov qword [rsp + 0x28], 0
lea rax, [0x14006ac40]
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 1]
call fcn.14006b430
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14006b070
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x130
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov rbx, rdx
mov rdi, rcx
mov rcx, qword [0x14014c6e0]
xor edx, edx
lea r8, [r9 - 1]
call fcn.1400c6a70
test rbx, rbx
je 0x14006b1d5
cmp word [rbx], 0
je 0x14006b1d5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14006b0dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140145a80]
test byte [rcx + 0x140], 1
mov dword [rcx + 0x40], eax
jmp 0x14006b1ea
mov rax, qword [0x140145a80]
lea rdx, [0x14010d31c]
mov rcx, qword [0x14014a3b0]
xor edi, edi
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov dword [rax + 0x40], edi
lea r8, [rdi - 1]
call fcn.1400c6a70
mov ecx, ebx
and ecx, 1
je 0x14006b118
mov eax, 0x52
mov word [rsp + 0x30], ax
test bl, 0x20
je 0x14006b129
mov edx, 0x41
mov word [rsp + rcx*2 + 0x30], dx
inc ecx
test bl, 4
je 0x14006b13a
mov edx, 0x53
mov word [rsp + rcx*2 + 0x30], dx
inc ecx
test bl, 2
je 0x14006b14b
mov edx, 0x48
mov word [rsp + rcx*2 + 0x30], dx
inc ecx
test bl, bl
jns 0x14006b15b
mov edx, 0x4e
mov word [rsp + rcx*2 + 0x30], dx
inc ecx
test bl, 0x10
je 0x14006b16c
mov edx, 0x44
mov word [rsp + rcx*2 + 0x30], dx
inc ecx
bt ebx, 0xc
jae 0x14006b17e
mov edx, 0x4f
mov word [rsp + rcx*2 + 0x30], dx
inc ecx
bt ebx, 0xb
jae 0x14006b190
mov edx, 0x43
mov word [rsp + rcx*2 + 0x30], dx
inc ecx
bt ebx, 8
jae 0x14006b1a2
mov edx, 0x54
mov word [rsp + rcx*2 + 0x30], dx
inc ecx
xor r9d, r9d
mov word [rsp + rcx*2 + 0x30], di
mov rcx, qword [0x14014c6e0]
lea rdx, [rsp + 0x30]
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c6a70
mov rbx, qword [rsp + 0x140]
add rsp, 0x130
pop rdi
ret
mov rax, qword [0x140145a80]
test byte [rax + 0x140], 1
mov dword [rax + 0x40], 0x57
lea rdx, [0x14012296c]
jne 0x14006b21c
mov rcx, qword [0x14014a3b0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c6a70
mov rbx, qword [rsp + 0x140]
add rsp, 0x130
pop rdi
ret
lea r9, [0x14010d28c]
xor r8d, r8d
mov rcx, rdi
call fcn.140050010
mov rbx, qword [rsp + 0x140]
add rsp, 0x130
pop rdi
ret
Function at 0x14006b240
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
xor esi, esi
xor edx, edx
mov r10d, 0xffffffff
mov ebp, r9d
mov dword [rsp + 0x68], r10d
mov r14, r8
mov dword [rsp + 0x6c], edx
movzx eax, word [rdi]
mov r15, rcx
test ax, ax
je 0x14006b35c
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], r12
lea r12, [0x140000000]
nop dword [rax + rax]
movzx ebx, ax
test ebx, 0xffffff80
je 0x14006b29f
xor eax, eax
jmp 0x14006b2b4
mov edx, 2
mov ecx, ebx
call fcn.1400e8e20
mov edx, dword [rsp + 0x6c]
mov r10d, dword [rsp + 0x68]
mov ecx, ebx
and ecx, 0xffffffdf
test eax, eax
cmove ecx, ebx
add ecx, 0xffffffd5
cmp ecx, 0x33
ja case.0x14006b2dd.51
movsxd rax, ecx
movzx eax, byte [r12 + rax + 0x6b3bc]
mov ecx, dword [r12 + rax*4 + 0x6b398]
add rcx, r12
jmp rcx
movzx esi, word [rdi]
jmp case.0x14006b2dd.51
mov ecx, 1
jmp 0x14006b313
mov ecx, SafeArrayAllocDescriptor
jmp 0x14006b313
mov ecx, 4
jmp 0x14006b313
mov ecx, 2
jmp 0x14006b313
mov ecx, 0x80
jmp 0x14006b313
mov ecx, 0x1000
jmp 0x14006b313
mov ecx, 0x100
cmp esi, 0x2b
je 0x14006b32f
cmp esi, 0x2d
je 0x14006b326
cmp esi, 0x5e
jne case.0x14006b2dd.51
xor edx, ecx
jmp 0x14006b33d
not ecx
and r10d, ecx
and edx, ecx
jmp 0x14006b338
mov eax, ecx
not eax
and r10d, eax
or edx, ecx
mov dword [rsp + 0x68], r10d
mov dword [rsp + 0x6c], edx
movzx eax, word [rdi + 2]
add rdi, 2
test ax, ax
jne 0x14006b290
mov r12, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x60]
movzx r9d, byte [rsp + 0x80]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov r8d, ebp
lea rax, [0x14006b3f0]
mov rdx, r14
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.14006b430
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006be40
Capabilities:
Get file size

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x290
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov r14, r8
mov rdi, rdx
mov rbp, rcx
xor edx, edx
mov rcx, qword [0x14014c6e0]
lea r8, [r9 - 1]
call fcn.1400c6a70
test rdi, rdi
je 0x14006c046
cmp word [rdi], 0
je 0x14006c046
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x2b0], rbx
mov edx, 0x80
mov dword [rsp + 0x28], 0
mov rcx, rdi
mov qword [rsp + 0x2c0], rsi
lea r8d, [r9 + 7]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14006bef6
lea rdx, [rsp + 0x2b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14006bef6
mov rcx, qword [rsp + 0x2b8]
jmp 0x14006bf92
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x14006bf72
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140145a80]
lea rdx, [0x14012296c]
test byte [rcx + 0x140], 1
mov dword [rcx + 0x40], eax
jne 0x14006bf5e
mov rcx, qword [0x14014a3b0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c6a70
mov rbx, qword [rsp + 0x2b0]
mov rsi, qword [rsp + 0x2c0]
add rsp, 0x290
pop r14
pop rdi
pop rbp
ret
lea r9, [0x14010d28c]
xor r8d, r8d
mov rcx, rbp
call fcn.140050010
jmp 0x14006bf42
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [rsp + 0x5c]
mov eax, dword [rsp + 0x60]
shl rcx, 0x20
or rcx, rax
mov qword [rsp + 0x2b8], rcx
movzx ebx, word [r14]
test ebx, 0xffffff80
je 0x14006bfa2
xor eax, eax
jmp 0x14006bfb6
mov edx, 2
mov ecx, ebx
call fcn.1400e8e20
mov rcx, qword [rsp + 0x2b8]
mov edx, ebx
and edx, 0xffffffdf
test eax, eax
cmove edx, ebx
cmp edx, 0x4b
je 0x14006bfde
cmp edx, 0x4d
jne 0x14006bff8
mov rax, rcx
cqo
and edx, 0xfffff
add rax, rdx
sar rax, 0x14
jmp 0x14006bff0
mov rax, rcx
cqo
and edx, 0x3ff
add rax, rdx
sar rax, 0xa
mov qword [rsp + 0x2b8], rax
mov rax, qword [0x140145a80]
lea rdx, [0x14010d31c]
mov rcx, qword [0x14014a3b0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov dword [rax + 0x40], 0
lea r8, [r9 - 1]
call fcn.1400c6a70
mov rdx, qword [rsp + 0x2b8]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, qword [0x14014c6e0]
call fcn.140001470
mov eax, 1
jmp 0x14006bf42
mov rax, qword [0x140145a80]
lea rdx, [0x14012296c]
test byte [rax + 0x140], 1
mov dword [rax + 0x40], 0x57
jne 0x14006c088
mov rcx, qword [0x14014a3b0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c6a70
add rsp, 0x290
pop r14
pop rdi
pop rbp
ret
lea r9, [0x14010d28c]
xor r8d, r8d
mov rcx, rbp
call fcn.140050010
add rsp, 0x290
pop r14
pop rdi
pop rbp
ret
Function at 0x140083d50
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
movzx ebx, cl
test cl, cl
jne 0x140083d65
xor al, al
add rsp, 0x20
pop rbx
ret
sub edx, 1
je 0x140083d90
mov ecx, ebx
cmp edx, 1
je 0x140083d82
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.USER32.dll_GetKeyState]
and al, 1
add rsp, 0x20
pop rbx
ret
lea eax, [rbx - 1]
cmp al, 5
ja 0x140083d9c
cmp bl, 3
jne 0x140083da3
lea eax, [rbx + 0x66]
cmp al, 5
ja 0x140083dc0
cmp qword [0x14014a408], 0
jne 0x140083de2
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x20
pop rbx
ret
cmp qword [0x14014a410], 0
je 0x140083dad
xor edx, edx
xor r8d, r8d
movzx ecx, bl
call fcn.14001a9a0
test al, al
je 0x140083de2
mov cl, 1
call fcn.14001a740
lea rcx, [0x14014b250]
movzx eax, byte [rbx + rcx]
shr al, 7
add rsp, 0x20
pop rbx
ret

Function at 0x140084250
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x230
mov rdi, rdx
mov esi, ecx
mov r8d, ecx
xor r15d, r15d
mov word [rdx], r15w
mov ecx, 0x410
xor edx, edx
movzx ebx, r9b
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
jne 0x1400842aa
mov r8d, esi
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
je 0x1400843fc
xor edx, edx
mov qword [rsp + 0x250], rbp
mov r9d, 0x104
mov r8, rdi
mov rcx, r14
test bl, bl
je 0x1400842cc
call qword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
jmp 0x1400842d2
call qword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov ebp, eax
test eax, eax
jne 0x1400843e9
mov rax, qword [0x14012d188]
test rax, rax
je 0x1400843e9
mov r8d, 0x104
mov rdx, rdi
mov rcx, r14
call rax
mov ebp, eax
test eax, eax
je 0x1400843e9
test bl, bl
je 0x140084343
mov edx, 0x5c
mov rcx, rdi
call fcn.1400e17e8
test rax, rax
je 0x1400843e9
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x140084325
add r8, r8
lea rdx, [rax + 2]
mov rcx, rdi
call fcn.1400e1c80
jmp 0x1400843e9
mov eax, 0x41
mov dword [rsp + 0x25a], 0x3a
mov word [rsp + 0x258], ax
nop dword [rax + rax]
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x258]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov ebx, eax
cmp eax, 2
jbe 0x1400843a2
add ebx, 0xfffffffe
lea rcx, [rsp + 0x20]
mov r8d, ebx
mov rdx, rdi
call fcn.1400ef87c
test eax, eax
jne 0x1400843a2
cmp word [rdi + rbx*2], 0x5c
lea rdx, [rdi + rbx*2]
je 0x1400843bd
movzx eax, word [rsp + 0x258]
inc ax
mov word [rsp + 0x258], ax
cmp ax, 0x5a
jbe 0x140084360
jmp 0x1400843e9
movzx eax, word [rsp + 0x258]
lea rcx, [rdi + 4]
mov word [rdi], ax
sub ebp, ebx
movzx eax, word [rsp + 0x25a]
mov word [rdi + 2], ax
lea r8d, [rbp + 1]
add r8, r8
call fcn.1400e1c80
add ebp, 2
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov rbp, qword [rsp + 0x250]
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140088770
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x280
mov rax, rdx
mov rbx, rcx
test rdx, rdx
je 0x14008889c
cmp word [rdx], 0
je 0x14008889c
lea r9, [rsp + 0x298]
mov edx, 0x104
lea r8, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea rcx, [rsp + 0x70]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400887c0
xor edx, edx
test rax, rax
je 0x1400887de
cmp word [rsp + rax*2 + 0x6e], 0x5c
jne 0x1400887de
mov word [rsp + rax*2 + 0x6e], dx
lea rcx, [rsp + 0x70]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], dx
lea rax, [rax + 1]
jne 0x1400887f0
mov word [rsp + rax*2 + 0x72], dx
lea rcx, [rsp + 0x30]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x54], edx
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
mov eax, 0x4054
mov qword [rsp + 0x30], rdx
mov word [rsp + 0x50], ax
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x38], 3
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x14008886a
mov rcx, qword [0x14014a3b0]
lea rdx, [0x14010d31c]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c6a70
add rsp, 0x280
pop rbx
ret
mov rax, qword [0x140145a80]
lea rdx, [0x14012296c]
test byte [rax + 0x140], 1
je 0x1400888b3
mov rcx, rbx
lea r9, [0x14010d28c]
xor r8d, r8d
call fcn.140050010
add rsp, 0x280
pop rbx
ret
mov rax, qword [0x140145a80]
lea rdx, [0x14012296c]
test byte [rax + 0x140], 1
jne 0x140088884
mov rcx, qword [0x14014a3b0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c6a70
add rsp, 0x280
pop rbx
ret

Function at 0x1400888e0
Capabilities:
Empty the recycle bin

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
cmp word [rdx], ax
mov r8d, 7
cmovne rax, rdx
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.SHELL32.dll_SHEmptyRecycleBinW]
test eax, eax
jne 0x14008892c
mov rcx, qword [0x14014a3b0]
lea rdx, [0x14010d31c]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c6a70
add rsp, 0x30
pop rbx
ret
mov rax, qword [0x140145a80]
lea rdx, [0x14012296c]
test byte [rax + 0x140], 1
jne 0x140088961
mov rcx, qword [0x14014a3b0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c6a70
add rsp, 0x30
pop rbx
ret
lea r9, [0x14010d28c]
xor r8d, r8d
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.140050010
Function at 0x140088980
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
sub rsp, 0x148
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov rbx, rdx
mov rbp, rcx
mov rcx, qword [0x14014c6e0]
xor edx, edx
lea r8, [r9 - 1]
call fcn.1400c6a70
test rbx, rbx
je 0x140088ba1
cmp word [rbx], 0
je 0x140088ba1
lea rdx, [rsp + 0x168]
mov qword [rsp + 0x140], rdi
mov rcx, rbx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
jne 0x140088a4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140145a80]
lea rdx, [0x14012296c]
test byte [rcx + 0x140], 1
mov dword [rcx + 0x40], eax
jne 0x140088a26
mov rcx, qword [0x14014a3b0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c6a70
mov rdi, qword [rsp + 0x140]
add rsp, 0x148
pop rbp
pop rbx
ret
lea r9, [0x14010d28c]
xor r8d, r8d
mov rcx, rbp
call fcn.140050010
mov rdi, qword [rsp + 0x140]
add rsp, 0x148
pop rbp
pop rbx
ret
mov rcx, rdi
mov qword [rsp + 0x160], rsi
call fcn.1400e5e30
mov r9, rax
mov r8d, edi
xor edx, edx
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140088b49
lea r9, [rsp + 0x170]
mov rcx, rsi
lea r8, [rsp + 0x178]
lea rdx, [0x140125060]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140088b49
mov rax, qword [rsp + 0x178]
lea r8, str._u._u._u._u
mov edx, dword [rax + 0xc]
mov r9d, dword [rax + 8]
movzx ecx, dx
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x40]
shr edx, 0x10
mov dword [rsp + 0x28], edx
mov edx, 0x80
movzx eax, r9w
shr r9d, 0x10
mov dword [rsp + 0x20], eax
call fcn.1400c16a0
mov rcx, rsi
call fcn.1400e89fc
mov rax, qword [0x140145a80]
lea rdx, [0x14010d31c]
mov rcx, qword [0x14014a3b0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov dword [rax + 0x40], 0
lea r8, [r9 - 1]
call fcn.1400c6a70
mov rcx, qword [0x14014c6e0]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c6a70
mov rsi, qword [rsp + 0x160]
mov rdi, qword [rsp + 0x140]
add rsp, 0x148
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140145a80]
mov dword [rcx + 0x40], eax
mov rcx, rsi
call fcn.1400e89fc
mov rax, qword [0x140145a80]
lea rdx, [0x14012296c]
test byte [rax + 0x140], 1
jne 0x140088b8d
mov rcx, qword [0x14014a3b0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
jmp 0x140088b2a
lea r9, [0x14010d28c]
xor r8d, r8d
mov rcx, rbp
call fcn.140050010
jmp 0x140088b2f
mov rax, qword [0x140145a80]
lea rdx, [0x14012296c]
test byte [rax + 0x140], 1
mov dword [rax + 0x40], 0x57
jne 0x140088be1
mov rcx, qword [0x14014a3b0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400c6a70
add rsp, 0x148
pop rbp
pop rbx
ret
lea r9, [0x14010d28c]
xor r8d, r8d
mov rcx, rbp
call fcn.140050010
add rsp, 0x148
pop rbp
pop rbx
ret
Function at 0x140088ec0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
test dl, dl
jne 0x140088ef2
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x140088fc4
mov al, 1
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
lea r9, [rsp + 0x290]
mov edx, 0x104
lea r8, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x60]
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140088f20
xor edi, edi
test rax, rax
je 0x140088f3e
cmp word [rsp + rax*2 + 0x5e], 0x5c
jne 0x140088f3e
mov word [rsp + rax*2 + 0x5e], di
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140088fc4
test al, 0x10
je 0x140088fc4
lea rax, [rsp + 0x60]
nop word [rax + rax]
cmp word [rax + rbx*2 + 2], di
lea rbx, [rbx + 1]
jne 0x140088f60
lea rax, [rsp + 0x60]
mov word [rsp + rbx*2 + 0x62], di
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
mov eax, 0x614
mov qword [rsp + 0x38], rdi
xorps xmm0, xmm0
mov word [rsp + 0x40], ax
movdqu xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
mov rbx, qword [rsp + 0x280]
xor al, al
add rsp, 0x270
pop rdi
ret
Function at 0x1400895e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x270
mov edx, 0x2a
mov rbx, rcx
call fcn.1400e1554
test rax, rax
jne 0x140089624
lea edx, [rax + 0x3f]
mov rcx, rbx
call fcn.1400e1554
test rax, rax
jne 0x140089624
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140089638
mov al, 1
add rsp, 0x270
pop rbx
ret
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x140089643
xor al, al
add rsp, 0x270
pop rbx
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
add rsp, 0x270
pop rbx
ret

Function at 0x140089660
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x58]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400896ea
lea r8, [rsp + 0x34]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x30]
xor eax, eax
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x3c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400896ea
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x1400896ea
mov al, 1
add rsp, 0x40
pop rbx
ret
xor al, al
add rsp, 0x40
pop rbx
ret

Function at 0x140089700
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x40
xor r9d, r9d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov dword [rsp + 0x28], 0x1f4
mov rbx, rcx
mov dword [rsp + 0x20], 2
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
jne 0x14008977d
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x58], eax
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x58]
test r8d, r8d
je 0x14008977d
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14008977d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x40
pop rbx
ret