joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140161028
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
sub r9, r8
mov rax, rdx
sub rax, rcx
mov r15, r8
xor rax, r9
mov rbp, rdx
mov r14, rcx
test rax, 0xfffffffffffffffe
jne 0x1401610a4
mov rbx, qword [rsp + 0x60]
sub r15, rcx
cmp r14, rbp
je 0x1401610a8
movzx edx, word [r15 + r14]
mov rcx, qword [rbx + 8]
movzx esi, word [r14]
call qword [sym.imp.msvcp_win.dll_public:_wchar_t___cdecl_std::ctype_wchar_t_::tolower_wchar_t_const___ptr64]
nop dword [rax + rax]
mov rcx, qword [rbx + 8]
movzx edx, si
movzx edi, ax
call qword [sym.imp.msvcp_win.dll_public:_wchar_t___cdecl_std::ctype_wchar_t_::tolower_wchar_t_const___ptr64]
nop dword [rax + rax]
cmp ax, di
jne 0x1401610a4
add r14, 2
jmp 0x140161065
xor al, al
jmp 0x1401610aa
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140166768
Capabilities:
Check if file exists
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1404fa650]
xor rax, rsp
mov qword [rbp - 8], rax
mov qword [rbp - 0x38], rcx
mov rbx, rcx
cmp qword [rdx + 0x18], 8
mov rdi, rdx
mov rcx, rdx
jb 0x1401667a5
mov rcx, qword [rdx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
xor r14d, r14d
mov esi, eax
test eax, eax
jne 0x140166833
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
call fcn.1400abd44
mov r8, rax
cmp dword [rax], 2
jbe 0x14016681e
mov rcx, rdi
call fcn.1400c75e0
mov qword [rbp - 0x30], rax
lea rdx, [0x14045a830]
lea rax, str.Failed_to_expand_environment_strings_in_path
mov dword [rbp - 0x40], esi
mov qword [rbp - 0x38], rax
mov rcx, r8
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
call fcn.1400063fc
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
jmp 0x140166907
lea edx, [rax - 1]
lea rcx, [rbp - 0x28]
call fcn.1400a6ff8
cmp qword [rbp - 0x10], 8
lea rdx, [rbp - 0x28]
mov rcx, rdi
cmovae rdx, qword [rbp - 0x28]
cmp qword [rdi + 0x18], 8
jb 0x14016685a
mov rcx, qword [rdi]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x1401668de
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
call fcn.1400abd44
mov r8, rax
cmp dword [rax], 2
jbe 0x1401668cc
mov rcx, rdi
call fcn.1400c75e0
mov qword [rbp - 0x38], rax
lea rdx, [0x14045a830]
lea rax, str.Failed_to_expand_environment_strings_in_path_after_increasing_buffer_size
mov dword [rbp - 0x40], esi
mov qword [rbp - 0x30], rax
mov rcx, r8
lea rax, [rbp - 0x38]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
call fcn.1400063fc
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
jmp 0x1401668fe
movups xmm1, xmmword [rbp - 0x18]
mov qword [rbp - 0x18], r14
movups xmm0, xmmword [rbp - 0x28]
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r14w
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
lea rcx, [rbp - 0x28]
call fcn.14007bc80
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140157600
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140167cb0
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rax, qword [0x1404fa650]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp qword [rcx + 0x10], 0
jne 0x140167d03
lea rdi, [0x1403bbccc]
mov rdx, rdi
mov rcx, r14
call fcn.1400ac6f0
mov rdx, rdi
mov rcx, rsi
call fcn.1400ac6f0
jmp 0x140167ed4
and dword [rbp - 0x79], 0
cmp qword [rcx + 0x18], 8
jb 0x140167d11
mov rcx, qword [rcx]
lea rdx, [rbp - 0x79]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
nop dword [rax + rax]
mov rbx, rax
mov qword [rbp - 0x61], rax
test rax, rax
je 0x140167e53
cmp dword [rbp - 0x79], 1
jl 0x140167e53
mov rdx, qword [rax]
mov rcx, r14
call fcn.1400ac6f0
cmp dword [rbp - 0x79], 1
jle 0x140167d52
mov rdi, qword [rbx + 8]
jmp 0x140167d59
lea rdi, [0x1403bbccc]
mov rdx, rdi
mov rcx, rsi
call fcn.1400ac6f0
mov edi, 2
cmp dword [rbp - 0x79], edi
jle 0x140167ecb
add rbx, 0x10
mov rdx, qword [rbx]
lea rcx, [rbp - 0x59]
call fcn.1400d71b0
nop
xor r8d, r8d
lea rdx, [0x1403dc5e4]
lea rcx, [rbp - 0x59]
call fcn.1400f73f4
mov rdx, rsi
cmp rax, 0xffffffffffffffff
jne 0x140167ddb
lea r8, [0x1403dc5e4]
lea rcx, [rbp - 0x19]
call fcn.14009d9e4
nop
lea r8, [rbp - 0x59]
mov rdx, rax
lea rcx, [rbp - 0x39]
call fcn.140095fd0
mov rdx, rax
mov rcx, rsi
call fcn.1400aa694
lea rcx, [rbp - 0x39]
call fcn.14007bc80
nop
lea rcx, [rbp - 0x19]
jmp 0x140167e33
lea r8, [0x1403dc5ec]
lea rcx, [rbp + 7]
call fcn.14009d9e4
nop
lea r8, [rbp - 0x59]
mov rdx, rax
lea rcx, [rbp - 0x39]
call fcn.140095fd0
nop
lea r8, [0x1403dc5e8]
mov rdx, rax
lea rcx, [rbp - 0x19]
call fcn.14007b7b0
mov rdx, rax
mov rcx, rsi
call fcn.1400aa694
lea rcx, [rbp - 0x19]
call fcn.14007bc80
nop
lea rcx, [rbp - 0x39]
call fcn.14007bc80
nop
lea rcx, [rbp + 7]
call fcn.14007bc80
nop
lea rcx, [rbp - 0x59]
call fcn.14007bc80
inc edi
add rbx, 8
cmp edi, dword [rbp - 0x79]
jl 0x140167d76
jmp 0x140167ecb
call fcn.1400abd44
mov rbx, rax
cmp dword [rax], 3
jbe 0x140167eb0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rbp - 0x75], eax
mov rcx, rdi
call fcn.1400c75e0
mov qword [rbp - 0x71], rax
lea rax, str.The_call_to_CommandLineToArgv_has_failed
mov qword [rbp - 0x69], rax
lea rax, [rbp - 0x75]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x71]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x69]
mov qword [rsp + 0x20], rax
lea rdx, [0x14045a7c7]
mov rcx, rbx
call fcn.1400030f4
mov rdx, rdi
mov rcx, r14
call fcn.140078bc0
lea rdx, [0x1403bbccc]
mov rcx, rsi
call fcn.1400ac6f0
nop
lea rcx, [rbp - 0x61]
call fcn.1400f1afc
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140157600
add rsp, 0xf0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14016ae5c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x1404fa650]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov r15, rdx
mov rsi, rcx
mov qword [rbp - 0x20], rcx
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
nop dword [rax + rax]
mov r14d, eax
xor r12d, r12d
movzx edi, r12w
lea r13d, [r12 + 1]
mov cl, dil
mov edx, r13d
shl edx, cl
test r14d, edx
je 0x14016b05f
lea edx, [rdi + 0x41]
lea rcx, [rbp + 0x10]
call fcn.14016a444
nop
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.14016a048
nop
lea rcx, [rbp + 0x10]
call fcn.14013ae90
mov rbx, qword [rbp - 0x68]
test rbx, rbx
je 0x14016b051
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x18]
call fcn.14006bb30
mov r8, rax
mov rdx, rsi
lea rcx, [rbp - 8]
call fcn.14006e64c
mov rdx, r15
mov rcx, rax
call fcn.14016ac50
call fcn.1400abd44
mov r8, rax
cmp dword [rax], 4
jbe 0x14016b051
movzx ecx, byte [rbx + 0xf0]
mov dword [rbp - 0x7c], ecx
mov cl, byte [rbx + 0xe8]
mov byte [rbp - 0x80], cl
lea rcx, [rbx + 0x68]
cmp qword [rcx + 0x18], 8
jb 0x14016af4b
mov rcx, qword [rcx]
mov qword [rbp - 0x58], rcx
lea rax, [rbx + 0xa8]
cmp qword [rax + 0x18], 8
jb 0x14016af60
mov rax, qword [rax]
mov qword [rbp - 0x50], rax
lea rax, [rbx + 0xc8]
cmp qword [rax + 0x18], 8
jb 0x14016af75
mov rax, qword [rax]
mov qword [rbp - 0x48], rax
lea rax, [rbx + 0x88]
cmp qword [rax + 0x18], 8
jb 0x14016af8a
mov rax, qword [rax]
mov qword [rbp - 0x40], rax
mov eax, dword [rbx + 0x64]
mov dword [rbp - 0x78], eax
mov al, byte [rbx + 0x60]
mov byte [rbp - 0x7f], al
lea rax, [rbx + 0x20]
cmp qword [rax + 0x18], 8
jb 0x14016afa8
mov rax, qword [rax]
mov qword [rbp - 0x38], rax
lea rax, [rbx + 0x40]
cmp qword [rax + 0x18], 8
jb 0x14016afba
mov rax, qword [rax]
mov qword [rbp - 0x30], rax
mov rcx, rbx
call fcn.1400c75e0
mov qword [rbp - 0x28], rax
lea rax, str.Storage_volume_discovered
mov qword [rbp - 0x70], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x70], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x68], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x60], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x7f]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea rdx, [0x14045ab8e]
mov rcx, r8
call fcn.1400064f4
nop
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x14016b05f
call fcn.14008a1a0
add di, r13w
cmp di, 0x19
jbe 0x14016aeb1
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x14016b07b
call fcn.14008a1a0
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140157600
mov rbx, qword [rsp + 0x270]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14016b0ac
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1404fa650]
xor rax, rsp
mov qword [rbp + 0x170], rax
movzx edi, dx
mov qword [rsp + 0x50], rcx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x20a
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov eax, dword [0x1403dce38]
movzx ecx, di
mov dword [rsp + 0x58], eax
movzx eax, word [0x1403dce3c]
mov word [rsp + 0x5c], ax
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_iswalpha]
nop dword [rax + rax]
xor esi, esi
test eax, eax
jne 0x14016b16e
call fcn.1400abd44
cmp dword [rax], 3
jbe 0x14016b15a
lea rcx, str.Invalid_drive_character
mov word [rsp + 0x40], di
mov qword [rsp + 0x48], rcx
lea rdx, [0x14045ab62]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.1400068a0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
jmp 0x14016b214
mov r8d, 0x104
mov word [rsp + 0x58], di
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
nop dword [rax + rax]
test eax, eax
jne 0x14016b207
call fcn.1400abd44
mov rdi, rax
cmp dword [rax], 3
jbe 0x14016b15a
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14016b1c2
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x40], eax
lea rdx, [0x14045a957]
lea rax, str.QueryDosDevice_for_volume_without_a_drive_letter_failed
xor r8d, r8d
mov qword [rsp + 0x50], rax
mov rcx, rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140003b38
jmp 0x14016b15a
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.1400d71b0
mov rax, rbx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140157600
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14016b440
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1404fa650]
xor rax, rsp
mov qword [rbp + 0x170], rax
movzx edi, dx
mov qword [rsp + 0x50], rcx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x20a
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movabs rax, 0x5c003a0024
movzx ecx, di
mov qword [rsp + 0x58], rax
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_iswalpha]
nop dword [rax + rax]
xor esi, esi
test eax, eax
jne 0x14016b4fb
call fcn.1400abd44
cmp dword [rax], 3
jbe 0x14016b4e7
lea rcx, str.Invalid_drive_character
mov word [rsp + 0x40], di
mov qword [rsp + 0x48], rcx
lea rdx, [0x14045ab62]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.1400068a0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
jmp 0x14016b5a1
mov r8d, 0x104
mov word [rsp + 0x58], di
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
nop dword [rax + rax]
test eax, eax
jne 0x14016b594
call fcn.1400abd44
mov rdi, rax
cmp dword [rax], 3
jbe 0x14016b4e7
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14016b54f
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x40], eax
lea rdx, [0x14045a9d2]
lea rax, str.GetVolumeNameForVolumeMountPoint_for_driver_letter_without_a_volume
xor r8d, r8d
mov qword [rsp + 0x50], rax
mov rcx, rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140003b38
jmp 0x14016b4e7
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.1400d71b0
mov rax, rbx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140157600
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14016bf84
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1404fa650]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, rdx
mov r14, rcx
mov edx, 0x105
lea rcx, [rbp - 0x48]
call fcn.1400a06ac
nop
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14016bfcb
mov rcx, qword [rsi]
lea r9, [rbp - 0x50]
mov r8d, 0x104
mov rdi, qword [rbp - 0x48]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
xor r12d, r12d
test eax, eax
jne 0x14016c091
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xea
jne 0x14016c091
mov r13d, dword [rbp - 0x50]
inc r13d
mov ebx, r13d
mov r15, qword [rbp - 0x40]
mov rcx, r15
sub rcx, rdi
sar rcx, 1
cmp rbx, rcx
jae 0x14016c030
lea rax, [rdi + r13*2]
mov qword [rbp - 0x40], rax
jmp 0x14016c06d
jbe 0x14016c06d
mov rax, qword [rbp - 0x38]
sub rax, rdi
sar rax, 1
cmp rbx, rax
jbe 0x14016c053
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.1400a0710
mov rdi, qword [rbp - 0x48]
jmp 0x14016c06d
sub rbx, rcx
add rbx, rbx
mov r8, rbx
xor edx, edx
mov rcx, r15
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add r15, rbx
mov qword [rbp - 0x40], r15
cmp qword [rsi + 0x18], 8
jb 0x14016c077
mov rsi, qword [rsi]
lea r8d, [r13 - 1]
lea r9, [rbp - 0x50]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
cmp word [rdi], r12w
je 0x14016c13c
or rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp word [rdi + rax*2], r12w
jne 0x14016c0a2
cmp rax, 3
jne 0x14016c11d
movzx ecx, word [rdi]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_isalpha]
nop dword [rax + rax]
test eax, eax
je 0x14016c11d
cmp word [rdi + 2], 0x3a
jne 0x14016c11d
mov rdx, rdi
lea rcx, [rbp - 0x30]
call fcn.1400d71b0
mov rdx, rax
mov rcx, r14
call fcn.1400aa694
lea rcx, [rbp - 0x30]
call fcn.14007bc80
mov rcx, r14
cmp qword [r14 + 0x18], 8
jb 0x14016c0f9
mov rcx, qword [r14]
mov rax, qword [r14 + 0x10]
dec rax
cmp word [rcx + rax*2], 0x5c
jne 0x14016c11d
mov rcx, r14
cmp qword [r14 + 0x18], 8
jb 0x14016c114
mov rcx, qword [r14]
mov qword [r14 + 0x10], rax
mov word [rcx + rax*2], r12w
mov rax, rbx
inc rax
cmp word [rdi + rax*2], r12w
jne 0x14016c120
lea rdi, [rdi + rax*2]
add rdi, 2
cmp word [rdi], r12w
jne 0x14016c09f
lea rcx, [rbp - 0x48]
call fcn.140135b34
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140157600
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14016c170
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1404fa650]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x20a
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14016c1b9
mov rcx, qword [rbx]
add rcx, 8
lea rdx, [rsp + 0x60]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
nop dword [rax + rax]
test eax, eax
jne 0x14016c24a
call fcn.1400abd44
mov rdi, rax
cmp dword [rax], 3
jbe 0x14016c24a
mov rcx, rbx
call fcn.1400c75e0
mov qword [rsp + 0x48], rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14016c20a
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x40], eax
lea rdx, [0x14045a957]
lea rax, str.QueryDosDeviceW_for_volume_without_a_drive_letter_failed
xor r8d, r8d
mov qword [rsp + 0x50], rax
mov rcx, rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140003b38
lea rcx, [rsi + 0x20]
lea rdx, [rsp + 0x60]
call fcn.1400ac6f0
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140157600
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14016f57c
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x1404fa650]
xor rax, rsp
mov qword [rbp + 0x200], rax
lea rbx, [0x1404fbaf8]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
mov qword [rsp + 0x30], rbx
cmp qword [0x1404fbaf0], 0
jne 0x14016f715
and dword [rsp + 0x20], 0
lea rax, [0x1403bbccc]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x38]
call fcn.14016de68
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x20], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14016f70a
mov dword [rbp - 0x40], 0x238
xor edx, edx
mov r8d, 0x234
lea rcx, [rbp - 0x3c]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
nop dword [rax + rax]
jmp 0x14016f702
mov eax, dword [rbp - 0x38]
test eax, eax
je 0x14016f6ef
mov ecx, dword [rbp - 0x20]
test ecx, ecx
jne 0x14016f67c
mov dword [reloc.OLEAUT32.dll_SysReAllocStringLen], eax
mov dword [rsp + 0x48], eax
lea rax, [rbp - 0x14]
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x58]
call fcn.14016df84
jmp 0x14016f6ef
cmp ecx, dword [reloc.OLEAUT32.dll_SysReAllocStringLen]
jne 0x14016f6ef
lea rdx, str..exe
lea rcx, [rbp - 0x68]
call fcn.1400d71b0
nop
lea rdx, [rbp - 0x14]
lea rcx, [rsp + 0x78]
call fcn.1400d71b0
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x78]
call fcn.14009d920
test al, al
sete dil
lea rcx, [rsp + 0x78]
call fcn.14007bc80
nop
lea rcx, [rbp - 0x68]
call fcn.14007bc80
test dil, dil
je 0x14016f6ef
mov eax, dword [rbp - 0x38]
mov dword [rsp + 0x38], eax
lea rax, [rbp - 0x14]
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x68]
call fcn.14016de68
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [rax + rax]
test eax, eax
jne 0x14016f646
lea rcx, [rsp + 0x20]
call fcn.14011ed2c
nop
lea rcx, [rsp + 0x30]
call fcn.140070574
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140157600
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14017845c
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x20
lea rbx, [rcx + 0x20]
mov rdi, rcx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
nop dword [rax + rax]
mov al, byte [rdi + 0x18]
mov qword [rsp + 0x38], rbx
test al, al
je 0x1401784ac
mov rax, qword [rdi + 0x28]
lock inc qword [rax + 0x38]
mov ecx, 0x323
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
or ebx, 0xffffffff
jmp 0x1401784bf
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
mov ebx, eax
lea rcx, [rsp + 0x38]
call fcn.140079170
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14017beb8
Capabilities:
Check if file exists
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x1404fa650]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rsi, rdx
mov rbx, rcx
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140524780], eax
jle 0x14017bf43
lea rcx, [0x140524780]
call fcn.140159340
cmp dword [0x140524780], 0xffffffff
jne 0x14017bf43
lea rdx, [0x1403dfc38]
lea rcx, [0x140524788]
call fcn.1400d71b0
lea rcx, [0x140399e30]
call fcn.140157b54
nop
lea rcx, [0x140524780]
call fcn.1401592d8
mov edx, 0x104
lea rcx, [rbp - 0x19]
call fcn.1400a06ac
nop
xor r14d, r14d
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x17], 7
mov word [rbp - 1], r14w
mov rax, qword [rbp - 0x11]
mov rdi, qword [rbp - 0x19]
sub rax, rdi
sar rax, 1
cmp qword [rbx + 0x18], 8
jb 0x14017bf7e
mov rbx, qword [rbx]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
nop dword [rax + rax]
test eax, eax
je 0x14017bfd2
mov rdx, rdi
lea rcx, [rbp + 0x1f]
call fcn.1400d71b0
mov rdx, rax
lea rcx, [rbp - 1]
call fcn.1400aa694
lea rcx, [rbp + 0x1f]
call fcn.14007bc80
jmp 0x14017c05d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
call fcn.1400abd44
cmp dword [rax], 2
jbe 0x14017c019
lea rcx, str.GetVolumeInformation_failed
mov qword [rbp - 0x21], rcx
mov dword [rbp - 0x29], ebx
lea rcx, [rbp - 0x21]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x29]
mov qword [rsp + 0x20], rcx
lea rdx, [0x14045a754]
mov rcx, rax
call fcn.140004d64
cmp ebx, 0x3ed
je 0x14017c04d
cmp ebx, 0x80310000
je 0x14017c04d
cmp ebx, 3
je 0x14017c04d
cmp ebx, 0x80070005
je 0x14017c04d
cmp ebx, 0x45d
je 0x14017c04d
test ebx, ebx
jle 0x14017c075
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14017c075
lea rdx, [0x1403bbccc]
lea rcx, [rbp - 1]
call fcn.1400ac6f0
xor r8d, r8d
lea rdx, [0x140524788]
lea rcx, [rbp - 1]
call fcn.14009dda0
mov byte [rsi], al
mov ebx, r14d
lea rcx, [rbp - 1]
call fcn.14007bc80
nop
lea rcx, [rbp - 0x19]
call fcn.140135b34
mov eax, ebx
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140157600
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret