joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140069b70
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rdi
push r14
sub rsp, 0x250
mov rbp, qword [0x140115db0]
xor ecx, ecx
mov rdi, r8
mov rbx, rdx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140021fa0
movzx r14d, al
test al, al
jne 0x140069c0f
xor r8d, r8d
lea rdx, [rsp + 0x270]
mov rcx, rbx
call fcn.1400846d0
xor r9d, r9d
test eax, eax
jne 0x140069bda
lea rdx, [0x1400da7a4]
jmp 0x140069c7d
mov edx, dword [rsp + 0x270]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rcx
lea r8, [rsp + 0x30]
xor edi, edi
mov ecx, eax
mov dword [rsp + 0x40], edi
call fcn.140084ad0
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.1400be820
jmp 0x140069c91
mov qword [rsp + 0x278], rsi
mov ebx, 2
movzx esi, word [rdi]
xor edi, edi
test esi, 0xffffff80
je 0x140069c2d
mov eax, edi
jmp 0x140069c37
mov edx, ebx
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
mov ecx, esi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, esi
mov rsi, qword [rsp + 0x278]
cmp ecx, 0x50
je 0x140069c56
cmp ecx, 0x54
cmovne ebx, edi
jmp 0x140069c5b
mov ebx, 1
mov edx, ebx
movzx ecx, r14b
call fcn.140084a20
test al, al
lea rcx, [0x1400faa88]
lea rdx, [0x1400faa8c]
cmovne rdx, rcx
xor r9d, r9d
mov r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
mov rcx, rbp
call fcn.1400befb0
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rdi
pop rbp
ret

Function at 0x140069cb0
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x250
xor r9d, r9d
mov byte [rsp + 0x20], 1
movzx esi, r8b
mov rbx, rdx
mov rdi, rcx
xor edx, edx
mov rcx, qword [0x140115db0]
lea r8, [r9 - 1]
call fcn.1400befb0
test rbx, rbx
je 0x140069dc3
cmp word [rbx], 0
je 0x140069dc3
mov r8d, 0x103
lea rcx, [rsp + 0x40]
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
xor edx, edx
lea rcx, [rsp + 0x40]
mov word [rsp + 0x246], dx
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], dx
jne 0x140069d23
lea rcx, [rax + rax]
cmp word [rsp + rcx + 0x3e], 0x5c
je 0x140069d4f
inc rax
cmp rax, 0x104
jae 0x140069dc3
mov dword [rsp + rcx + 0x40], 0x5c
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x268]
lea rdx, [rsp + 0x278]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x140069dc3
mov rbx, qword [rsp + 0x268]
lea rdx, [0x1400da884]
mov rcx, qword [0x140113a28]
test sil, sil
mov byte [rsp + 0x20], 1
cmovne rbx, qword [rsp + 0x278]
xor r9d, r9d
shr rbx, 0x14
lea r8, [r9 - 1]
call fcn.1400befb0
mov rcx, qword [0x140115db0]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rdx, rbx
call fcn.1400015d0
mov eax, 1
jmp 0x140069e06
mov rax, qword [0x1401101f0]
lea rdx, [0x1400f11dc]
test byte [rax + 0x140], 1
jne 0x140069df4
mov rcx, qword [0x140113a28]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400befb0
jmp 0x140069e06
lea r9, [0x1400da7a4]
xor r8d, r8d
mov rcx, rdi
call fcn.140056cc0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14006bf00
Capabilities:
Set current directory

Disassembly:
push rbx
sub rsp, 0x30
movzx eax, word [rcx]
mov rbx, rcx
test ax, ax
je 0x14006bf38
cmp word [rcx + 2], 0x3a
jne 0x14006bf38
cmp word [rcx + 4], 0
jne 0x14006bf38
mov word [rsp + 0x40], ax
lea rbx, [rsp + 0x40]
xor eax, eax
mov dword [rsp + 0x42], 0x5c003a
mov word [rsp + 0x46], ax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x14006bf80
cmp byte [0x140117b90], al
je 0x14006bfb0
mov rax, qword [0x1401101f0]
lea rdx, [0x1400f11dc]
test byte [rax + 0x140], 1
je 0x14006bf98
mov rcx, qword [0x140117680]
lea r9, [0x1400da7a4]
xor r8d, r8d
call fcn.140056cc0
add rsp, 0x30
pop rbx
ret
cmp byte [0x140117b90], 0
je 0x14006bfb0
mov rcx, rbx
call fcn.14006bfc0
lea rdx, [0x1400da884]
mov rcx, qword [0x140113a28]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400befb0
add rsp, 0x30
pop rbx
ret

Function at 0x14006bfc0
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x10020
call fcn.1400d7ad0
sub rsp, rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14006bfed
lea rbx, [rsp + 0x20]
jmp 0x14006bff2
test rbx, rbx
je 0x14006c001
mov rdx, rbx
lea rcx, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
call fcn.1400850e0
add rsp, 0x10020
pop rbx
ret

Function at 0x14006c010
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10028
call fcn.1400d7ad0
sub rsp, rax
lea rdx, [rsp + 0x20]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14006c044
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
add rsp, 0x10028
ret
xor eax, eax
add rsp, 0x10028
ret
Function at 0x14006c910
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x20], rbx
mov r15, rdx
mov qword [rbp + 0x28], rsi
mov rbx, rcx
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x38], r12
test rcx, rcx
je 0x14006ca23
cmp word [rcx], 0
je 0x14006ca23
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x14006c970
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.dll_SetLastError]
shr edi, 4
and dil, 1
movzx eax, dil
jmp 0x14006ca30
mov r12d, 0x5c
mov rcx, rbx
mov edx, r12d
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov rdi, rax
cmp rax, rbx
jbe 0x14006ca11
cmp word [rax - 2], 0x3a
je 0x14006ca11
test r15, r15
je 0x14006c9a4
xor eax, eax
mov r14, rbx
mov word [rdi], ax
jmp 0x14006c9f2
mov rsi, rdi
sub rsi, rbx
sar rsi, 1
lea rax, [rsi*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14006c9c8
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400d7ad0
sub rsp, rcx
mov r8, rsi
mov rdx, rbx
lea r14, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
xor eax, eax
mov word [r14 + rsi*2], ax
mov rdx, r14
mov rcx, r14
call fcn.14006c910
test r15, r15
je 0x14006ca06
mov word [rdi], r12w
cmp word [rdi + 2], 0
je 0x14006ca30
test al, al
je 0x14006ca30
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
jmp 0x14006ca30
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov rbx, qword [rbp + 0x20]
mov rsi, qword [rbp + 0x28]
mov rdi, qword [rbp + 0x30]
mov r12, qword [rbp + 0x38]
mov rsp, rbp
pop r15
pop r14
pop rbp
ret
Function at 0x14006d8e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rdi, r8
mov r15, rdx
mov r12, rcx
mov ebp, 1
test r8, r8
je 0x14006d952
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call fcn.1400017c0
cmp byte [rdi + 0x23], 0
mov rsi, rax
jne 0x14006d925
mov rbx, qword [rdi + 0x10]
jmp 0x14006d928
mov rbx, rdi
cmp byte [rbx + 0x23], bpl
jne 0x14006d946
test byte [rbx + 0x21], 8
je 0x14006d93c
mov rcx, rbx
call fcn.140001670
lea r14, [rbx + 0x10]
mov r14, qword [rbx + 0x10]
jmp 0x14006d990
lea r14, [0x1401195c0]
mov r14, qword [r14]
jmp 0x14006d990
lea r8, [rsp + 0x88]
xor ecx, ecx
lea rdx, [rsp + 0x80]
call fcn.1400be940
test eax, eax
jne 0x14006d980
mov rax, qword [0x1401101f0]
xor ebx, ebx
mov dword [rax + 0x40], ebx
xor eax, eax
jmp 0x14006da33
mov rsi, qword [rsp + 0x80]
mov r14, 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, r15
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14006d9fa
mov dword [rsp + 0x80], ebx
mov ecx, ebx
test rsi, rsi
je 0x14006d9f1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rbx
mov r8d, r14d
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x80]
cmp ecx, r14d
mov ebp, ebx
setne bpl
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1401101f0]
mov dword [rcx + 0x40], eax
cmp r15, 0xffffffffffffffff
je 0x14006da19
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
jne 0x14006da27
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movzx edx, bpl
mov rcx, r12
call fcn.140056d90
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x14006da60
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
mov r9, rdx
test rdx, rdx
je 0x14006dac2
movzx r8d, word [rdx]
test r8w, r8w
je 0x14006db03
mov edx, 0x3f
nop dword [rax + rax]
lea rcx, [0x1400fb098]
movzx eax, dx
nop word [rax + rax]
cmp r8w, ax
je 0x14006db03
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x14006daa0
movzx r8d, word [r9 + 2]
add r9, 2
test r8w, r8w
jne 0x14006da90
cmp word [rbx], 0
je 0x14006db03
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
sete bl
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1401101f0]
movzx edx, bl
mov dword [rcx + 0x40], eax
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.140056d90
xor r9d, r9d
mov qword [rsp + 0x28], 0
lea rax, [0x14006da50]
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 1]
call fcn.14006e0c0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14006ddf0
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 [0x140115db0]
xor edx, edx
lea r8, [r9 - 1]
call fcn.1400befb0
test rbx, rbx
je 0x14006de9a
cmp word [rbx], 0
je 0x14006de9a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14006de4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1401101f0]
mov dword [rcx + 0x40], eax
jmp 0x14006dea8
mov rax, qword [0x1401101f0]
xor edx, edx
mov rcx, rdi
mov dword [rax + 0x40], 0
call fcn.140056d90
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1400bb6a0
mov rcx, qword [0x140115db0]
xor r9d, r9d
mov rdx, rax
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400befb0
mov rbx, qword [rsp + 0x140]
add rsp, 0x130
pop rdi
ret
mov rax, qword [0x1401101f0]
mov dword [rax + 0x40], 0x57
mov dl, 1
mov rcx, rdi
call fcn.140056d90
mov rbx, qword [rsp + 0x140]
add rsp, 0x130
pop rdi
ret

Function at 0x14006ded0
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 0x14006dfed
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], r12
lea r12, [0x140000000]
nop dword [rax + rax]
movzx ebx, ax
test ebx, 0xffffff80
je 0x14006df2f
xor eax, eax
jmp 0x14006df45
mov edx, 2
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
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.0x14006df6e.51
movsxd rax, ecx
movzx eax, byte [r12 + rax + 0x6e04c]
mov ecx, dword [r12 + rax*4 + 0x6e028]
add rcx, r12
jmp rcx
movzx esi, word [rdi]
jmp case.0x14006df6e.51
mov ecx, 1
jmp 0x14006dfa4
mov ecx, SafeArrayAllocDescriptor
jmp 0x14006dfa4
mov ecx, 4
jmp 0x14006dfa4
mov ecx, 2
jmp 0x14006dfa4
mov ecx, 0x80
jmp 0x14006dfa4
mov ecx, 0x1000
jmp 0x14006dfa4
mov ecx, 0x100
cmp esi, 0x2b
je 0x14006dfc0
cmp esi, 0x2d
je 0x14006dfb7
cmp esi, 0x5e
jne case.0x14006df6e.51
xor edx, ecx
jmp 0x14006dfce
not ecx
and r10d, ecx
and edx, ecx
jmp 0x14006dfc9
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 0x14006df20
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, [0x14006e080]
mov rdx, r14
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.14006e0c0
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006e980
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 [0x140115db0]
lea r8, [r9 - 1]
call fcn.1400befb0
test rdi, rdi
je 0x14006eb3d
cmp word [rdi], 0
je 0x14006eb3d
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 0x14006ea33
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 0x14006ea33
mov rcx, qword [rsp + 0x2b8]
jmp 0x14006ea9d
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x14006ea7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1401101f0]
mov dl, 1
mov dword [rcx + 0x40], eax
mov rcx, rbp
call fcn.140056d90
mov rbx, qword [rsp + 0x2b0]
mov rsi, qword [rsp + 0x2c0]
add rsp, 0x290
pop r14
pop rdi
pop rbp
ret
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 0x14006eaad
xor eax, eax
jmp 0x14006eac2
mov edx, 2
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
mov rcx, qword [rsp + 0x2b8]
mov edx, ebx
and edx, 0xffffffdf
test eax, eax
cmove edx, ebx
cmp edx, 0x4b
je 0x14006eaea
cmp edx, 0x4d
jne 0x14006eb04
mov rax, rcx
cqo
and edx, 0xfffff
add rax, rdx
sar rax, 0x14
jmp 0x14006eafc
mov rax, rcx
cqo
and edx, 0x3ff
add rax, rdx
sar rax, 0xa
mov qword [rsp + 0x2b8], rax
mov rax, qword [0x1401101f0]
xor edx, edx
mov rcx, rbp
mov dword [rax + 0x40], 0
call fcn.140056d90
mov rdx, qword [rsp + 0x2b8]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, qword [0x140115db0]
call fcn.1400015d0
mov eax, 1
jmp 0x14006ea61
mov rax, qword [0x1401101f0]
mov dl, 1
mov rcx, rbp
mov dword [rax + 0x40], 0x57
call fcn.140056d90
add rsp, 0x290
pop r14
pop rdi
pop rbp
ret
Function at 0x140084a20
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
movzx ebx, cl
test cl, cl
jne 0x140084a35
xor al, al
add rsp, 0x20
pop rbx
ret
sub edx, 1
je 0x140084a61
movzx ecx, bl
cmp edx, 1
je 0x140084a53
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 0x140084a6d
cmp bl, 3
jne 0x140084a74
lea eax, [rbx + 0x66]
cmp al, 5
ja 0x140084a92
cmp qword [0x140113a78], 0
jne 0x140084ab4
movzx ecx, bl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x20
pop rbx
ret
cmp qword [0x140113a80], 0
je 0x140084a7e
xor edx, edx
xor r8d, r8d
movzx ecx, bl
call fcn.140021580
test al, al
je 0x140084ab4
mov cl, 1
call fcn.140021320
movzx eax, bl
lea rcx, [0x1401148c0]
movzx eax, byte [rax + rcx]
shr al, 7
add rsp, 0x20
pop rbx
ret

Function at 0x140084f10
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 0x140084f6a
mov r8d, esi
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
je 0x1400850bd
xor edx, edx
mov qword [rsp + 0x250], rbp
mov r9d, 0x104
mov r8, rdi
mov rcx, r14
test bl, bl
je 0x140084f8c
call qword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
jmp 0x140084f92
call qword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov ebp, eax
test eax, eax
jne 0x1400850aa
mov rax, qword [0x1400fb9d8]
test rax, rax
je 0x1400850aa
mov r8d, 0x104
mov rdx, rdi
mov rcx, r14
call rax
mov ebp, eax
test eax, eax
je 0x1400850aa
test bl, bl
je 0x140085004
mov edx, 0x5c
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
je 0x1400850aa
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x140084fe6
add r8, r8
lea rdx, [rax + 2]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
jmp 0x1400850aa
mov eax, 0x41
mov dword [rsp + 0x25a], 0x3a
mov word [rsp + 0x258], ax
nop dword [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 0x140085063
add ebx, 0xfffffffe
lea rcx, [rsp + 0x20]
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
jne 0x140085063
cmp word [rdi + rbx*2], 0x5c
lea rdx, [rdi + rbx*2]
je 0x14008507e
movzx eax, word [rsp + 0x258]
inc ax
mov word [rsp + 0x258], ax
cmp ax, 0x5a
jbe 0x140085020
jmp 0x1400850aa
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 sub.VCRUNTIME140.dll_memmove
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 0x140088350
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x280
mov rax, rdx
mov rbx, rcx
test rdx, rdx
je 0x140088429
cmp word [rdx], 0
je 0x140088429
lea r9, [rsp + 0x298]
mov edx, 0x104
lea r8, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x70]
mov rax, r8
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400883a0
xor ecx, ecx
test rax, rax
je 0x1400883be
cmp word [rsp + rax*2 + 0x6e], 0x5c
jne 0x1400883be
mov word [rsp + rax*2 + 0x6e], cx
lea rax, [rsp + 0x70]
cmp word [rax + r8*2 + 2], cx
lea r8, [r8 + 1]
jne 0x1400883c3
lea rax, [rsp + 0x70]
mov word [rsp + r8*2 + 0x72], cx
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
mov eax, 0x4054
mov dword [rsp + 0x54], ecx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x30]
mov word [rsp + 0x50], ax
movdqu xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x38], 3
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
mov rcx, rbx
setne dl
call fcn.140056d90
add rsp, 0x280
pop rbx
ret
mov rax, qword [0x1401101f0]
lea rdx, [0x1400f11dc]
test byte [rax + 0x140], 1
jne 0x140088461
mov rcx, qword [0x140113a28]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400befb0
add rsp, 0x280
pop rbx
ret
lea r9, [0x1400da7a4]
xor r8d, r8d
call fcn.140056cc0
add rsp, 0x280
pop rbx
ret
Function at 0x140088480
Capabilities:
Get file version info

Disassembly:
push rbx
push rdi
sub rsp, 0x148
xor r9d, r9d
mov byte [rsp + 0x20], 1
mov rbx, rdx
mov rdi, rcx
mov rcx, qword [0x140115db0]
xor edx, edx
lea r8, [r9 - 1]
call fcn.1400befb0
test rbx, rbx
je 0x14008864d
cmp word [rbx], 0
je 0x14008864d
lea rdx, [rsp + 0x168]
mov qword [rsp + 0x140], rsi
mov rcx, rbx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
jne 0x140088508
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1401101f0]
mov dl, 1
mov dword [rcx + 0x40], eax
mov rcx, rdi
call fcn.140056d90
mov rsi, qword [rsp + 0x140]
add rsp, 0x148
pop rdi
pop rbx
ret
mov rcx, rsi
mov qword [rsp + 0x160], rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8d, esi
xor edx, edx
mov r9, rax
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1400885f4
lea r9, [rsp + 0x170]
mov rcx, rbp
lea r8, [rsp + 0x178]
lea rdx, [0x1400f2230]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1400885f4
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.1400ba350
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1401101f0]
xor edx, edx
mov rcx, rdi
mov dword [rax + 0x40], 0
call fcn.140056d90
mov rcx, qword [0x140115db0]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400befb0
mov rbp, qword [rsp + 0x160]
mov rsi, qword [rsp + 0x140]
add rsp, 0x148
pop rdi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1401101f0]
mov dword [rcx + 0x40], eax
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1401101f0]
lea rdx, [0x1400f11dc]
test byte [rax + 0x140], 1
jne 0x140088639
mov rcx, qword [0x140113a28]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
jmp 0x1400885d5
lea r9, [0x1400da7a4]
xor r8d, r8d
mov rcx, rdi
call fcn.140056cc0
jmp 0x1400885da
mov rax, qword [0x1401101f0]
mov dl, 1
mov rcx, rdi
mov dword [rax + 0x40], 0x57
call fcn.140056d90
add rsp, 0x148
pop rdi
pop rbx
ret
Function at 0x140088940
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 0x140088972
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x140088a44
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 0x1400889a0
xor edi, edi
test rax, rax
je 0x1400889be
cmp word [rsp + rax*2 + 0x5e], 0x5c
jne 0x1400889be
mov word [rsp + rax*2 + 0x5e], di
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140088a44
test al, 0x10
je 0x140088a44
lea rax, [rsp + 0x60]
nop word [rax + rax]
cmp word [rax + rbx*2 + 2], di
lea rbx, [rbx + 1]
jne 0x1400889e0
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