joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140075288
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x250
mov eax, 1
mov r14, rcx
mov r13, rdx
lea rcx, [rsp + 0x30]
xor ebp, ebp
mov edx, 0x100000
mov rdi, r9
mov r15d, r8d
mov r12d, eax
mov ebx, eax
mov word [rsp + 0x40], bp
call fcn.140063314
cmp rdi, rbp
jne 0x1400752fa
lea rdx, [rsp + 0x40]
mov ecx, 0x104
mov r12d, ebp
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdi, [rsp + 0x40]
mov ebx, eax
cmp eax, ebp
je 0x14007547a
mov eax, 0xe0000000
mov esi, 0xa0000000
cmp r12d, ebp
cmovne esi, eax
xor r9d, r9d
lea rax, [rsp + 0x298]
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 3]
mov rcx, r13
mov edx, esi
mov dword [rsp + 0x298], ebp
mov dword [rsp + 0x20], ebp
call qword [0x14013d468]
mov rbp, rax
test rax, rax
jne 0x14007538c
cmp r12d, 1
jne 0x140075379
lea rax, [rsp + 0x298]
mov r12d, 2
btr esi, 0x1e
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r8d, [r12 + 1]
xor r9d, r9d
mov edx, esi
mov rcx, r13
call qword [0x14013d468]
mov rbp, rax
test rax, rax
je 0x14007533c
xor r13d, r13d
cmp rbp, r13
jne 0x14007538f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, r13d
jmp 0x14007538f
xor r13d, r13d
cmp ebx, r13d
je 0x14007546c
mov rdx, rdi
mov rcx, rbp
call qword [0x14013d470]
mov ebx, eax
cmp eax, r13d
jne 0x1400753b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 1
mov edx, r15d
mov rcx, rbp
call qword [0x14013d478]
mov rsi, rax
cmp rax, r13
jne 0x1400753d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, r13d
cmp ebx, r13d
je 0x14007545e
mov eax, 0x600
mov edi, 0x400
cmp r12d, r13d
cmove edi, eax
mov rdx, r14
mov rcx, rsi
mov r8d, edi
call qword [0x14013d480]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, r13d
jne 0x14007545e
bt edi, 0xa
jae 0x140075433
cmp eax, 0x57
jne 0x140075433
btr edi, 0xa
mov rdx, r14
mov rcx, rsi
mov r8d, edi
call qword [0x14013d480]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, r13d
je 0x140075408
cmp ebx, r13d
jne 0x14007545e
cmp r12d, 2
jne 0x140075458
bts edi, 9
mov rdx, r14
mov rcx, rsi
mov r8d, edi
call qword [0x14013d480]
mov ebx, eax
cmp eax, r13d
jne 0x14007545e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rsi, r13
je 0x14007546c
mov rcx, rsi
call qword [0x14013d488]
cmp rbp, r13
je 0x14007547a
mov rcx, rbp
call qword [0x14013d488]
lea rcx, [rsp + 0x30]
call fcn.14005aef8
lea r11, [rsp + 0x250]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140075bfc
Capabilities:
Get disk information

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov edi, r9d
mov r14, r8
mov r13, rdx
mov rbp, rcx
cmp r8, r15
jne 0x140075c4f
movzx eax, word [rdx]
lea r14, [r11 + 0x18]
mov word [rsp + 0x70], ax
movzx eax, word [rdx + 2]
mov word [rsp + 0x72], ax
lea eax, [r15 + 0x5c]
mov word [rsp + 0x74], ax
mov word [r11 + 0x1e], r15w
lea rcx, [rsp + 0x20]
mov edx, 0x209
call fcn.140063314
mov rbx, qword [rsp + 0x20]
lea rcx, str.Device_
mov r8d, 8
mov rdx, rbp
mov word [rbx], r15w
call fcn.14005c4dc
cmp al, r15b
jne 0x140075cbd
lea rcx, str.DosDevices_
mov r8d, 0xc
mov rdx, rbp
call fcn.14005c4dc
cmp al, r15b
jne 0x140075cbd
cmp word [rbp], r15w
je 0x140075cc0
cmp word [rbp + 2], r15w
je 0x140075cc0
lea rcx, [rbp + 4]
mov edx, 0x3a
call qword [sym.imp.SHLWAPI.dll_StrChrW]
cmp rax, r15
je 0x140075cc0
or edi, 1
lea rcx, [0x140126dd8]
mov r8d, 0xb
mov rdx, rbp
call fcn.14005c4dc
mov sil, byte [rsp + 0x80]
cmp al, r15b
je 0x140075cea
and edi, 0xfffffffe
cmp sil, r15b
jne 0x140075d17
cmp sil, r15b
je 0x140075cf9
movzx ecx, word [r13]
call fcn.14005f454
mov r8, rbp
mov rdx, r13
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
mov r12d, eax
cmp eax, r15d
jne 0x140075d2b
cmp sil, r15b
jl 0x140075d79
mov sil, r15b
mov r8d, 0x208
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x140075d58
cmp sil, r15b
jle 0x140075d79
mov r8d, 0x208
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
cmp eax, r15d
je 0x140075d79
mov ecx, edi
mov r8, rbp
mov rdx, r13
or ecx, 0xe
call qword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
cmp sil, r15b
mov r12d, eax
jl 0x140075d79
cmp eax, r15d
jne 0x140075d79
mov sil, 0xff
jmp 0x140075cea
lea rcx, [rsp + 0x20]
call fcn.14005aef8
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
mov eax, r12d
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140077c18
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
and dword [rax + 0x20], 0
mov r14, rdx
mov esi, 0x200
mov edx, esi
mov r13d, r9d
mov r15, r8
mov rdi, rcx
shl r14, 9
call fcn.14005f5d4
cmp eax, esi
lea rcx, [rsp + 0x78]
cmovge esi, eax
lea edx, [rsi + rsi + 0x200]
call fcn.140063028
mov rbp, qword [rsp + 0x78]
xor r8d, r8d
add rbp, 0x200
mov rdx, r14
mov rcx, rdi
and rbp, 0xfffffffffffffe00
mov r12d, esi
lea rbx, [rsi + rbp]
call fcn.14005c3c8
cmp rax, r14
jne 0x140077d35
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140077d35
mov r8, r12
mov rdx, rbx
mov rcx, rbp
call fcn.14001d7d8
cmp r13d, 1
jne 0x140077cdd
lea rcx, [rbx + 0x1ce]
lea r8d, [r13 + 0xf]
mov rdx, r15
call fcn.14001d7d8
xor eax, eax
mov ecx, 0xaa55
cmp r13d, 1
cmove ax, cx
xor r8d, r8d
mov rcx, rdi
mov rdx, r14
mov word [rbx + 0x1fe], ax
call fcn.14005c3c8
cmp rax, r14
jne 0x140077d35
mov r8, r12
mov rdx, rbx
mov rcx, rbp
call fcn.14005af28
test eax, eax
je 0x140077d35
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rsp + 0x78]
call fcn.14005aef8
mov rbx, qword [rsp + 0x70]
mov eax, 1
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140078174
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14, rcx
mov r15, rdx
xor esi, esi
mov dword [rdx], esi
lea rcx, [rax + 0x20]
mov edx, 0x4008
mov r12, r8
call fcn.140063028
mov rbx, qword [rsp + 0x88]
lea rdi, [rbx + 0x800]
xor edx, edx
mov r8d, 0x800
mov rcx, rdi
mov dword [rsp + 0x78], esi
call fcn.140101f00
lea r9, [rsp + 0x78]
mov r8d, 0x1000
mov rdx, rbx
mov rcx, r14
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
je 0x1400783ab
mov eax, dword [rbx + 0x1b4]
movzx ecx, word [rbx + 0x1fe]
mov r13b, sil
cmp eax, 0x46424246
je 0x1400782c3
cmp eax, 0x534c5055
je 0x1400782c3
cmp eax, 0x5352424d
jne 0x1400783ab
cmp ecx, 0xaa55
jne 0x1400783ab
cmp dword [rbx + 0x1c], esi
jne 0x1400783ab
mov ebp, 0x200
xor edx, edx
mov rcx, rdi
mov r8, rbp
call fcn.140101f00
xor r8d, r8d
mov edx, 0x4a00
mov rcx, r14
call fcn.14005c3c8
lea r9, [rsp + 0x78]
mov r8d, ebp
mov rdx, rdi
mov rcx, r14
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
je 0x1400783ab
cmp dword [rdi + 0x1b4], 0x5352424d
movzx eax, word [rdi + 0x1fe]
jne 0x1400783ab
cmp eax, 0xaa55
jne 0x1400783ab
cmp dword [rdi + 0x1c], 0x25
jne 0x1400783ab
movzx esi, byte [rdi + 0x67]
xor eax, eax
cmp ax, si
jne 0x1400782af
lea esi, [rax + 1]
mov ebx, dword [rdi + 0x5c]
movzx eax, si
add ebx, eax
mov eax, dword [rdi + 0x60]
shl rax, 0x20
add rbx, rax
jmp 0x14007832a
mov ebp, 0x200
mov esi, 1
xor edx, edx
mov r8, rbp
mov rcx, rdi
mov r13b, sil
call fcn.140101f00
xor r8d, r8d
mov edx, 0x8600
mov rcx, r14
call fcn.14005c3c8
lea r9, [rsp + 0x78]
xor ebx, ebx
mov r8d, ebp
mov rdx, rdi
mov rcx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x1400783ab
mov al, byte [rdi + 0x1f8]
and al, 0xc0
cmp al, 0x40
jne 0x1400783ab
mov rbx, qword [rdi + 0x1f0]
add rbx, rsi
mov r8, rbp
xor edx, edx
mov rcx, rdi
call fcn.140101f00
mov rdx, rbx
shl rdx, 9
jmp 0x14007837d
lea rdx, [0x140127090]
lea rcx, [rdi + 3]
mov r8d, 0xa
call fcn.14005af28
cmp eax, r9d
je 0x1400783d1
cmp rbx, 0x41
je 0x1400783ab
cmp r13b, r9b
jne 0x1400783ab
mov r8, rbp
xor edx, edx
mov rcx, rdi
mov ebx, 0x41
call fcn.140101f00
mov edx, 0x8200
xor r8d, r8d
mov rcx, r14
call fcn.14005c3c8
xor eax, eax
lea r9, [rsp + 0x78]
mov r8d, ebp
mov rdx, rdi
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor r9d, r9d
cmp eax, r9d
jne 0x140078340
lea rcx, [rsp + 0x88]
call fcn.14005aef8
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, dword [rdi + 0x2c]
mov ebx, dword [rdi + 0x68]
mov eax, dword [rdi + 0x28]
and ecx, 0xffffffc0
shl rbx, 0x20
shl ecx, 9
or rbx, rax
mov dword [r15], ecx
cmp r12, r9
je 0x1400783fb
mov rcx, qword [rdi + 0x74]
shl rcx, 9
mov qword [r12], rcx
lea rcx, [rsp + 0x88]
call fcn.14005aef8
shl rbx, 9
mov rax, rbx
jmp 0x1400783bc
Function at 0x1400789ec
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
lea rcx, [rsp + 0x30]
lea r8d, [rax + rax*2]
movsxd rdx, r8d
call fcn.140063028
mov rdx, qword [rsp + 0x30]
xor ebx, ebx
lea r8, [rdx + 1]
mov byte [rdx], 0x20
mov r9d, ebx
mov byte [r8], bl
mov cl, bl
jmp 0x140078a4a
mov al, byte [rdi]
cmp al, 0x3d
jne 0x140078a83
cmp cl, bl
jle 0x140078a47
mov byte [r8], r9b
mov cl, bl
inc r8
mov r9d, ebx
inc rdi
cmp byte [rdi], bl
jne 0x140078a32
mov byte [r8], bl
mov r9d, 0xfde9
mov rcx, rsi
or r8, 0xffffffffffffffff
call fcn.14006345c
mov rbx, qword [rsi]
lea rcx, [rsp + 0x30]
call fcn.14005aef8
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp al, 0x41
jb 0x140078a8f
cmp al, 0x5a
ja 0x140078a8f
sub al, 0x41
jmp 0x140078ab5
cmp al, 0x61
jb 0x140078a9b
cmp al, 0x7a
ja 0x140078a9b
sub al, 0x47
jmp 0x140078ab5
cmp al, 0x30
jb 0x140078aa7
cmp al, 0x39
ja 0x140078aa7
add al, 4
jmp 0x140078ab5
cmp al, 0x2b
jne 0x140078aaf
mov al, 0x3e
jmp 0x140078ab5
cmp al, 0x2f
jne 0x140078ae4
mov al, 0x3f
movzx eax, al
shl eax, cl
or r9d, eax
add cl, 6
cmp cl, 8
jge 0x140078ad5
cmp cl, bl
jle 0x140078a47
cmp byte [rdi], bl
jne 0x140078a47
mov byte [r8], r9b
inc r8
shr r9d, 8
add cl, 0xf8
jmp 0x140078ac0
mov rax, qword [rsi]
mov word [rax], bx
jmp 0x140078a66

Function at 0x140078af0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
xor esi, esi
xor ecx, ecx
mov word [rax], si
call qword [sym.imp.USER32.dll_OpenClipboard]
cmp eax, esi
je 0x140078b4a
lea ecx, [rsi + 0xd]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rdi, rax
cmp rax, rsi
je 0x140078b44
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, rbx
mov rdx, rax
call fcn.14006ffb0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140079cd0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x50
movzx eax, word [rsp + 0xb0]
mov rbx, rcx
mov r13, rdx
mov dword [rsp + 0xa8], eax
dec eax
lea rcx, [rsp + 0x38]
movsxd r14, eax
mov edx, 0xa0000
movsxd rbp, r9d
not r14
mov rdi, r8
call fcn.140063028
mov rax, qword [rsp + 0x38]
and dword [rsp + 0xa0], 0
mov qword [rsp + 0x48], rdi
add rax, 0x20000
and rax, 0xfffffffffffe0000
cmp dword [rsp + 0xb0], 0
mov qword [rsp + 0x30], rax
jne 0x140079d49
xor ebp, ebp
xor r15d, r15d
jmp 0x140079d5d
movzx ecx, word [rsp + 0xb0]
lea rax, [rdi + rbp]
cqo
idiv rcx
mov r15, rdx
test rdi, rdi
jle 0x140079e66
mov ecx, 0x10000000
test ebp, ebp
jne 0x140079d7b
movsxd rax, r15d
cmp rdi, rax
jle 0x140079d7b
xor al, al
jmp 0x140079d7d
mov al, 1
cmp rdi, rcx
mov esi, edi
mov rdx, r13
cmovg esi, ecx
mov r8d, esi
test al, al
je 0x140079e1e
mov esi, dword [rsp + 0xa8]
mov rcx, rbx
sub esi, ebp
mov eax, esi
cmp rax, rdi
cmovg esi, edi
xor edx, edx
lea r8d, [rdx + 1]
call fcn.14005c3c8
mov r8d, dword [rsp + 0xa8]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x90]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0xa0]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rax, qword [rsp + 0x30]
movsxd rcx, ebp
mov r8d, esi
mov rdx, r13
add rcx, rax
mov qword [rsp + 0x40], rax
call fcn.14001d7d8
mov rdx, rbx
mov rbx, qword [rsp + 0x90]
mov rcx, rbx
xor r8d, r8d
call fcn.14005c3c8
mov r8d, dword [rsp + 0xa8]
mov rdx, qword [rsp + 0x40]
jmp 0x140079e2e
cmp dword [rsp + 0xb0], 0
je 0x140079e2e
and esi, r14d
mov r8d, esi
and dword [rsp + 0xa0], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0xa0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r11d, esi
xor ebp, ebp
sub rdi, r11
add r13, r11
mov ecx, 0x10000000
test rdi, rdi
jg 0x140079d6b
lea rcx, [rsp + 0x38]
call fcn.14005aef8
mov rax, qword [rsp + 0x48]
add rsp, 0x50
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14007bbd8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14d, r8d
mov rbx, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor r15d, r15d
mov rdi, rax
cmp rax, r15
je 0x14007bce2
cmp rbx, r15
mov r12, rbp
cmovne r12, rbx
mov rbx, rax
cmp word [rax], r15w
je 0x14007bcd9
mov rsi, rbx
jmp 0x14007bc34
cmp ax, 0x3d
je 0x14007bc41
add rbx, 2
movzx eax, word [rbx]
cmp ax, r15w
jne 0x14007bc2e
mov rdx, rsi
cmp r14d, r15d
je 0x14007bc69
or qword [rsp + 0x20], 0xffffffffffffffff
mov rax, rbx
lea r8, [rbx + 2]
sub rax, rsi
mov rcx, rbp
sar rax, 1
mov r9d, eax
call fcn.14001e620
jmp 0x14007bcc5
mov r13, rbx
lea rcx, [rsp + 0x78]
sub r13, rsi
sar r13, 1
mov r8, r13
call fcn.14006ff38
mov rdx, qword [rsp + 0x78]
or r9d, 0xffffffff
xor r8d, r8d
mov rcx, r12
mov qword [rsp + 0x20], r15
call fcn.1400189c4
cmp rax, r15
jne 0x14007bcb5
or qword [rsp + 0x20], 0xffffffffffffffff
lea r8, [rbx + 2]
mov r9d, r13d
mov rdx, rsi
mov rcx, rbp
call fcn.14001e620
lea rcx, [rsp + 0x78]
call fcn.14005aef8
jmp 0x14007bcc5
add rbx, 2
cmp word [rbx], r15w
jne 0x14007bcc1
add rbx, 2
cmp word [rbx], r15w
jne 0x14007bc29
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14007c44c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ebx, edx
movzx esi, cx
call fcn.14006f67c
xor edx, edx
mov edi, eax
cmp ebx, edx
jge 0x14007c4dc
lea ecx, [rdx + 0x20]
lea eax, [rdx + 0x2a]
mov word [rsp + 0x26], si
mov word [rsp + 0x22], ax
lea eax, [rdx + 0x2c]
mov word [rsp + 0x20], cx
mov word [rsp + 0x24], cx
lea ecx, [rdx + 0x3a]
mov word [rsp + 0x2a], ax
lea eax, [rdx + 0x5c]
mov word [rsp + 0x28], cx
mov word [rsp + 0x52], cx
lea rcx, [rsp + 0x50]
mov word [rsp + 0x2c], dx
mov word [rsp + 0x50], si
mov word [rsp + 0x54], ax
mov word [rsp + 0x56], dx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
je 0x14007c4c8
cmp edi, 2
je 0x14007c4dc
lea rdx, [rsp + 0x20]
lea rcx, [0x14013d130]
xor r8d, r8d
call fcn.140075da4
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14007d534
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x60
xor r12d, r12d
xor edi, edi
mov r13, r9
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x14007d62c
test rdx, rdx
jne 0x14007d570
mov eax, 0x80070057
jmp 0x14007d7b5
cmp qword [0x14013d870], rdi
jle 0x14007d7b2
and qword [rsp + 0x30], rdi
and dword [rsp + 0x90], edi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbp
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14007d5c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rbx + 2]
test eax, eax
cmove eax, ecx
jmp 0x14007d7b5
mov r8d, dword [0x14013d870]
mov rdx, qword [0x14013e0e0]
and qword [rsp + 0x20], rdi
lea r9, [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [0x14013e0e0]
and qword [0x14013d870], rdi
test r8, r8
je 0x14007d7b2
mov rcx, qword [0x14013d328]
add r8, 0xfffffffffffffff8
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [0x14013e0e0], rdi
jmp 0x14007d7b2
xor edx, edx
test r8, r8
je 0x14007d76a
mov rcx, r8
call fcn.14001f244
mov rdi, rax
test rax, rax
jne 0x14007d651
mov eax, 1
jmp 0x14007d7b5
mov eax, dword [rbx + 8]
sub eax, dword [rbx]
movsxd r14, eax
mov eax, dword [rbx + 0xc]
sub eax, dword [rbx + 4]
movsxd r12, eax
test r14, r14
jle 0x14007d751
test eax, eax
jle 0x14007d751
and dword [rsp + 0x90], 0
and dword [rsp + 0x40], 0
lea rdx, [rsp + 0x90]
mov rcx, rdi
call qword [0x14013ce08]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [0x14013ce10]
mov r11d, dword [rsp + 0x90]
cmp r14, r11
jne 0x14007d6b9
mov eax, dword [rsp + 0x40]
cmp r12, rax
je 0x14007d751
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
lea rdx, [rsp + 0x50]
mov r8, r13
mov rcx, rbx
call fcn.1400626a4
mov rsi, rax
test rax, rax
je 0x14007d647
mov rbx, qword [rsp + 0x50]
and qword [rsp + 0x48], 0
lea rdx, [rsp + 0x48]
mov rcx, rbx
call qword [0x14013ce28]
mov rcx, qword [rsp + 0x48]
mov edx, 2
call qword [0x14013ce38]
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r14d
call qword [0x14013cd98]
mov rdx, qword [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14007d782
call qword [0x14013ce30]
jmp 0x14007d782
mov r9, r13
mov r8d, 1
mov rdx, rbp
mov rcx, rdi
call fcn.14007d0b0
mov r12d, eax
jmp 0x14007d7a4
lea r8, str.DISPLAY
call fcn.1400626a4
mov rsi, rax
test rax, rax
je 0x14007d647
mov r9, r13
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call fcn.14007d0b0
mov r12d, eax
test rsi, rsi
je 0x14007d7a4
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
test rdi, rdi
je 0x14007d7b2
mov rcx, rdi
call qword [0x14013cd90]
mov eax, r12d
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14008ba28
Capabilities:
Enumerate disk volumes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xc0
mov rax, qword [str.__Volume]
mov r14, rcx
lea rcx, [rsp + 0x40]
mov qword [rcx], rax
mov rax, qword [0x140127790]
mov rbp, rdx
mov qword [rcx + 8], rax
mov eax, dword [0x140127798]
xor edx, edx
mov dword [rcx + 0x10], eax
movzx eax, word [0x14012779c]
mov rbx, r8
mov word [rcx + 0x14], ax
lea rcx, [rsp + 0x56]
lea r8d, [rdx + 0x6a]
call fcn.140101f00
or r12d, 0xffffffff
cmp rbx, 4
movzx eax, bl
cmovbe r12d, eax
cmp rbx, 4
ja 0x14008baae
lea rcx, [rsp + 0x54]
mov r8d, 1
mov rdx, r14
lea rbx, [rsp + 0x40]
call fcn.14005f8f8
mov rax, qword [rbp]
xor edi, edi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
mov word [rax], di
call fcn.14001d914
cmp r12b, dil
jle 0x14008bc61
mov rax, qword [rbp]
cmp word [rax], di
jne 0x14008bc61
lea rcx, [rsp + 0x118]
mov edx, 0x105
call fcn.140063314
mov rbx, qword [rsp + 0x118]
mov edx, 0x103
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x14008bb23
lea rcx, [rsp + 0x118]
call fcn.14005aef8
xor eax, eax
jmp 0x14008bc83
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
movsxd rcx, eax
mov eax, 0x5c
cmp ax, word [rbx + rcx*2]
jne 0x14008bb40
mov word [rbx + rcx*2], di
mov eax, 0x3f
lea rcx, [rsp + 0x110]
mov dword [rsp + 0x108], edi
mov word [rbx + 2], ax
call fcn.140062fc4
lea rax, [rsp + 0x108]
lea r9, [rsp + 0x110]
lea rdx, str.SYSTEMMountedDevices
mov r8, rbx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140068d6c
cmp dword [rsp + 0x108], 0x18
mov esi, 2
jne 0x14008bbcf
mov r9, qword [rsp + 0x110]
lea r8d, [rsi + 6]
lea rcx, str.DMIO:ID:
mov rdx, r9
call fcn.14005af28
cmp eax, edi
jne 0x14008bbcf
lea rdx, [r9 + 8]
lea r8d, [rsi + 0xe]
mov rcx, r14
call fcn.14005af28
cmp eax, edi
je 0x14008bbfa
lea rcx, [rsp + 0x110]
call fcn.14005aef8
mov r8d, 0x103
mov rdx, rbx
mov rcx, r13
mov word [rbx], di
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
cmp eax, edi
je 0x14008bc36
jmp 0x14008bb23
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
call fcn.14001d914
add rbx, 0x14
mov qword [rsp + 0x30], rbx
cmp r12b, sil
jne 0x14008bc29
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov rdx, r14
call fcn.140077d5c
lea rcx, [rsp + 0x110]
call fcn.14005aef8
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
cmp r12b, sil
je 0x14008bc50
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea rcx, [rsp + 0x118]
call fcn.14005aef8
mov eax, edi
jmp 0x14008bc83
mov esi, 2
cmp r12b, sil
jne 0x14008bc74
mov rax, qword [rbp]
cmp word [rax], di
jne 0x14008bc81
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rsi, eax
mov eax, esi
add rsp, 0xc0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret