joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140137cd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov rdi, r8
mov rsi, rdx
and dword [rbx + 0x70], 0xfdffffff
cmp dword [rbx + 0xd4], 2
je 0x140137d10
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400f4a60.0]
mov dword [rbx + 0xd4], 2
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14014a830
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x28]
cmp qword [rcx + 0xa8], 0
jne 0x14014a94b
cmp dword [rcx + 0xd0], 0xffffffff
jne 0x14014a94b
mov rcx, qword [rcx + 0xb0]
cmp rcx, 0xffffffffffffffff
je 0x14014a942
xor r12d, r12d
mov edi, r12d
mov rbx, r8
mov r8d, 0x2000000
cmp rbx, r8
cmovl r8d, ebp
mov qword [rax - 0x58], r12
lea r9, [rax + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14014a8ff
nop dword [rax + rax]
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x14014a8fa
add rdi, rax
sub rbx, rax
cmp rdi, rbp
jge 0x14014a8fa
mov r8d, 0x2000000
cmp rbx, r8
cmovl r8d, ebx
lea rdx, [rdi + r14]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x80]
mov rcx, qword [rsi + 0xb0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14014a8b0
test rdi, rdi
je 0x14014a8ff
mov rax, rdi
jmp 0x14014a950
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.140110100
nop
mov r8, rax
mov edx, 2
mov rcx, r15
call fcn.140134c80
nop
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14014a942
mov ecx, 0xffffffff
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14014a942
mov rcx, qword [rsp + 0x30]
call fcn.14021b810
mov rax, 0xffffffffffffffff
jmp 0x14014a950
call fcn.140137d30
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x140139f10
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x50
mov r14, r8
mov rax, rdx
mov rdi, rcx
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.1401357a0
nop
mov rcx, rax
call fcn.140094f50
mov rbx, rax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1401357a0
nop
mov rcx, rax
call fcn.140094f50
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
test eax, eax
setne dil
mov ebx, 0xffffffff
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x140139f9c
mov ecx, ebx
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x140139f9c
mov rcx, qword [rsp + 0x20]
call fcn.14021b810
nop
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140139fb9
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x140139fb9
mov rcx, qword [rsp + 0x38]
call fcn.14021b810
test esi, esi
jne 0x140139fd7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x7c], 2
mov rcx, qword [rsp + 0x78]
mov qword [r14], rcx
movzx eax, dil
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x14013a280
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
movzx esi, r8b
mov rbp, rdx
mov rbx, rcx
mov qword [rsp + 0x20], 2
lea rax, [0x1402ca580]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x30], xmm0
mov r8d, 1
lea rdx, [rsp + 0x30]
call fcn.140093330
mov r14d, 0x5c
test al, al
je 0x14013a2f3
lea r8d, [r14 - 0x5b]
movzx edx, r14w
mov rcx, rbx
call fcn.14008c040
cmp rax, 3
jle 0x14013a444
cmp qword [rbx + 0x10], 2
jne 0x14013a309
mov rax, qword [rbx + 8]
cmp word [rax + 2], 0x3a
je 0x14013a444
mov rdi, 0xffffffffffffffff
test sil, sil
je 0x14013a365
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140149a90
nop
lea rcx, [rsp + 0x40]
call fcn.140094f50
mov rcx, rax
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x14013a35a
mov ecx, edi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14013a35a
mov rcx, qword [rsp + 0x40]
call fcn.14021b810
test esi, esi
je 0x14013a365
mov al, 1
jmp 0x14013a446
mov r9d, 1
mov r8, rdi
movzx edx, r14w
mov rcx, rbx
call fcn.14008f060
nop
cmp eax, 1
jl 0x14013a444
movsxd r8, eax
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.14008f0f0
nop
mov r8b, 1
mov rdx, rbp
lea rcx, [rsp + 0x70]
call fcn.14013a280
test al, al
je 0x14013a420
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140149a90
nop
lea rcx, [rsp + 0x58]
call fcn.140094f50
mov rcx, rax
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x14013a3ee
mov ecx, edi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14013a3ee
mov rcx, qword [rsp + 0x58]
call fcn.14021b810
test esi, esi
je 0x14013a3f6
mov bl, 1
jmp 0x14013a422
mov byte [rsp + 0xc8], 0
lea rdx, [rsp + 0xc8]
mov rcx, rbx
call fcn.14013cb90
test al, al
je 0x14013a420
cmp byte [rsp + 0xc8], 0
je 0x14013a420
mov bl, 1
jmp 0x14013a422
xor bl, bl
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x14013a43f
lock xadd dword [rax], edi
cmp edi, 1
jne 0x14013a43f
mov rcx, qword [rsp + 0x70]
call fcn.14021b810
movzx eax, bl
jmp 0x14013a446
xor al, al
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14013a6d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rbx, rcx
xor r8d, r8d
mov edx, 0x104
lea rcx, [rsp + 0x28]
call fcn.140087250
nop
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x14013a70b
mov eax, dword [rax]
cmp eax, 1
jle 0x14013a720
mov r8d, 1
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x28]
call fcn.140090940
mov rdx, qword [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
cmp eax, 0x104
jbe 0x14013a77a
mov edx, edi
lea rcx, [rsp + 0x28]
call fcn.140092840
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14013a756
mov ecx, dword [rcx]
cmp ecx, 1
jle 0x14013a76b
mov r8d, 1
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x28]
call fcn.140090940
mov rdx, qword [rsp + 0x30]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
cmp edi, 2
jb 0x14013a7c3
mov rax, qword [rsp + 0x30]
cmp word [rax + 2], 0x3a
jne 0x14013a7c3
movzx ecx, word [rax]
call fcn.140093dd0
mov esi, eax
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14013a7a6
mov ecx, dword [rcx]
cmp ecx, 1
jle 0x14013a7bb
mov r8d, 1
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x28]
call fcn.140090940
mov rax, qword [rsp + 0x30]
mov word [rax], si
mov edx, edi
lea rcx, [rsp + 0x28]
call fcn.140092840
movzx r8d, byte [rsp + 0x50]
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.140134d20
nop
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14013a805
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013a805
mov rcx, qword [rsp + 0x28]
call fcn.14021b810
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14013cb90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x14037da00]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rsi, rdx
mov rax, qword [rcx]
mov qword [rsp + 0x38], rax
mov r8, qword [rcx + 8]
mov qword [rsp + 0x40], r8
mov r9, qword [rcx + 0x10]
mov qword [rsp + 0x48], r9
test rax, rax
je 0x14013cbed
lock inc dword [rax]
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
mov r14d, 0x5c
cmp r9, 2
jne 0x14013cc0f
cmp word [r8 + 2], 0x3a
jne 0x14013cc0f
movzx edx, r14w
lea rcx, [rsp + 0x38]
call fcn.1400884b0
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.140149a90
nop
lea rcx, [rsp + 0x58]
call fcn.140094f50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, 0xffffffff
cmp eax, 0xffffffff
jne 0x14013cd4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x14013cc56
cmp eax, 0x20
jne 0x14013cd4a
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rsp + 0x20], xmm1
movsd xmm0, qword [rsp + 0x68]
movsd qword [rsp + 0x30], xmm0
movq rax, xmm1
test rax, rax
je 0x14013cc79
lock inc dword [rax]
lea rax, [rsp + 0x20]
mov qword [rsp + 0x50], rax
mov r8d, 1
movzx edx, r14w
lea rcx, [rsp + 0x20]
call fcn.14008cb10
test al, al
je 0x14013ccc7
nop dword [rax + rax]
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.14008b1e0
mov r8d, 1
movzx edx, r14w
lea rcx, [rsp + 0x20]
call fcn.14008cb10
test al, al
jne 0x14013cca0
mov edx, 0x3a
lea r8d, [rdx - 0x39]
lea rcx, [rsp + 0x20]
call fcn.14008cb10
test al, al
jne 0x14013cd2b
lea rcx, [rsp + 0x20]
call fcn.140094f50
mov rcx, rax
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x14013cd2b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14013cd25
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013cd25
mov rcx, qword [rsp + 0x20]
call fcn.14021b810
mov ebx, dword [rsp + 0x70]
jmp 0x14013cd4a
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14013cd4a
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013cd4a
mov rcx, qword [rsp + 0x20]
call fcn.14021b810
test rsi, rsi
je 0x14013cd57
cmp ebx, 0xffffffff
setne al
mov byte [rsi], al
cmp ebx, 0xffffffff
jne 0x14013cd60
xor bl, bl
jmp 0x14013cd66
shr ebx, 4
and bl, 1
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14013cd86
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013cd86
mov rcx, qword [rsp + 0x58]
call fcn.14021b810
nop
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14013cda3
lock xadd dword [rax], edi
cmp edi, 1
jne 0x14013cda3
mov rcx, qword [rsp + 0x38]
call fcn.14021b810
movzx eax, bl
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140214340
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14013db90
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x4f0
mov rax, qword [0x14037da00]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
mov qword [rcx], r15
mov qword [rcx + 8], r15
mov qword [rcx + 0x10], r15
mov dword [rsp + 0x30], 1
lea edx, [r15 + 2]
lea rcx, [rsp + 0x34]
call fcn.1401ae080
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [0x14033eea0]
xor edx, edx
lea r8d, [r15 + 1]
lea rcx, [0x14033ef00]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14013dd6b
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
lea r8, [rsp + 0x38]
lea rdx, [0x14033eef0]
mov rax, qword [rax]
call qword [case.0x1400f4a60.0]
test eax, eax
js 0x14013dd58
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rbx, qword [rdx + 0x28]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.1401357a0
nop
mov rcx, rax
call fcn.140094f50
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x38]
mov rax, rbx
call qword [case.0x1400f4a60.0]
mov esi, eax
lea rbx, [r15 - 1]
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x14013dc96
mov ecx, ebx
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14013dc96
mov rcx, qword [rsp + 0x50]
call fcn.14021b810
test esi, esi
js 0x14013dd46
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 2
lea r9, [rsp + 0x80]
mov r8d, 0x104
lea rdx, [rsp + 0x2d0]
mov rax, qword [rax + 0x18]
call qword [case.0x1400f4a60.0]
test eax, eax
jne 0x14013dd46
mov r8, rbx
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x68]
call fcn.14008e230
nop
mov rsi, qword [rax]
mov rbp, qword [rax + 8]
mov r14, qword [rax + 0x10]
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
mov dword [rsp + 0x30], 9
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14013dd25
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013dd25
mov rcx, qword [rsp + 0x68]
call fcn.14021b810
mov rcx, qword [rdi]
mov qword [rdi], rsi
mov qword [rdi + 8], rbp
mov qword [rdi + 0x10], r14
test rcx, rcx
je 0x14013dd46
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x14013dd46
call fcn.14021b810
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400f4a60.0]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [case.0x1400f4a60.0]
nop
lea rcx, [rsp + 0x34]
call fcn.1401ae0c0
mov rax, rdi
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.140214340
mov rbx, qword [rsp + 0x530]
add rsp, 0x4f0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14013e6f0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov r14, rdx
mov rsi, rcx
call fcn.140135420
test al, al
je 0x14013e752
mov qword [rsp + 0x50], 2
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
lea rax, str.default
mov qword [rsp + 0x68], rax
lea rdx, str.Empty_filename_passed_to_function
lea rcx, [rsp + 0x50]
call fcn.14010f2c0
call fcn.1402273f8
mov dword [rax], 0x16
xor al, al
jmp 0x14013e84c
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1401357a0
nop
xor edi, edi
lea r9d, [rdi + 1]
xor r8d, r8d
movzx edx, di
mov rcx, rax
call fcn.14008e920
mov rbp, rax
lea ebx, [rdi - 1]
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x14013e799
mov ecx, ebx
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14013e799
mov rcx, qword [rsp + 0x20]
call fcn.14021b810
cmp rbp, 0xffffffffffffffff
je 0x14013e7dd
mov qword [rsp + 0x50], 2
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
lea rax, str.default
mov qword [rsp + 0x68], rax
lea rdx, str.Broken_filename_passed_to_function
lea rcx, [rsp + 0x50]
call fcn.14010f2c0
call fcn.1402273f8
mov dword [rax], 0x16
xor al, al
jmp 0x14013e84c
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.1401357a0
nop
mov rcx, rax
call fcn.140094f50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
test eax, eax
setne sil
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14013e821
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x14013e821
mov rcx, qword [rsp + 0x38]
call fcn.14021b810
test edi, edi
jne 0x14013e848
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xa0], eax
mov dword [rsp + 0xa4], 2
mov rcx, qword [rsp + 0xa0]
mov qword [r14], rcx
movzx eax, sil
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14013e870
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov r12, r8
mov rsi, rdx
mov r14, rcx
call fcn.140135420
test al, al
je 0x14013e8dd
mov qword [rbp - 0x49], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
lea rax, str.default
mov qword [rbp - 0x31], rax
lea rdx, str.Empty_filename_passed_to_function
lea rcx, [rbp - 0x49]
call fcn.14010f2c0
call fcn.1402273f8
mov dword [rax], 0x16
xor al, al
jmp 0x14013ea5c
lea rdx, [rbp - 0x29]
mov rcx, r14
call fcn.1401357a0
nop
xor ebx, ebx
lea r9d, [rbx + 1]
xor r8d, r8d
movzx edx, bx
mov rcx, rax
call fcn.14008e920
mov r15, rax
lea edi, [rbx - 1]
mov rdx, qword [rbp - 0x29]
test rdx, rdx
je 0x14013e921
mov ecx, edi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14013e921
mov rcx, qword [rbp - 0x29]
call fcn.14021b810
cmp r15, 0xffffffffffffffff
je 0x14013e964
mov qword [rbp - 0x49], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
lea rax, str.default
mov qword [rbp - 0x31], rax
lea rdx, str.Broken_filename_passed_to_function
lea rcx, [rbp - 0x49]
call fcn.14010f2c0
call fcn.1402273f8
mov dword [rax], 0x16
xor al, al
jmp 0x14013ea5c
mov rcx, rsi
call fcn.140135420
test al, al
jne 0x14013e8a0
lea rdx, [rbp - 0x11]
mov rcx, rsi
call fcn.1401357a0
nop
mov r9d, 1
xor r8d, r8d
movzx edx, bx
mov rcx, rax
call fcn.14008e920
mov r15, rax
mov rdx, qword [rbp - 0x11]
test rdx, rdx
je 0x14013e9b5
mov ecx, edi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14013e9b5
mov rcx, qword [rbp - 0x11]
call fcn.14021b810
cmp r15, 0xffffffffffffffff
jne 0x14013e927
lea rdx, [rbp + 0x1f]
mov rcx, rsi
call fcn.1401357a0
nop
mov rcx, rax
call fcn.140094f50
mov rbx, rax
lea rdx, [rbp + 7]
mov rcx, r14
call fcn.1401357a0
nop
mov rcx, rax
call fcn.140094f50
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov ebx, eax
test eax, eax
setne sil
mov rdx, qword [rbp + 7]
test rdx, rdx
je 0x14013ea1e
mov ecx, edi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14013ea1e
mov rcx, qword [rbp + 7]
call fcn.14021b810
nop
mov rax, qword [rbp + 0x1f]
test rax, rax
je 0x14013ea39
lock xadd dword [rax], edi
cmp edi, 1
jne 0x14013ea39
mov rcx, qword [rbp + 0x1f]
call fcn.14021b810
test ebx, ebx
jne 0x14013ea58
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x7f], eax
mov dword [rbp + 0x83], 2
mov rcx, qword [rbp + 0x7f]
mov qword [r12], rcx
movzx eax, sil
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14013ea80
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov r12, r8
mov rsi, rdx
mov r14, rcx
call fcn.140135420
test al, al
je 0x14013eaed
mov qword [rbp - 0x49], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
lea rax, str.default
mov qword [rbp - 0x31], rax
lea rdx, str.Empty_filename_passed_to_function
lea rcx, [rbp - 0x49]
call fcn.14010f2c0
call fcn.1402273f8
mov dword [rax], 0x16
xor al, al
jmp 0x14013ec70
lea rdx, [rbp - 0x29]
mov rcx, r14
call fcn.1401357a0
nop
xor ebx, ebx
lea r9d, [rbx + 1]
xor r8d, r8d
movzx edx, bx
mov rcx, rax
call fcn.14008e920
mov r15, rax
lea edi, [rbx - 1]
mov rdx, qword [rbp - 0x29]
test rdx, rdx
je 0x14013eb31
mov ecx, edi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14013eb31
mov rcx, qword [rbp - 0x29]
call fcn.14021b810
cmp r15, 0xffffffffffffffff
je 0x14013eb74
mov qword [rbp - 0x49], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
lea rax, str.default
mov qword [rbp - 0x31], rax
lea rdx, str.Broken_filename_passed_to_function
lea rcx, [rbp - 0x49]
call fcn.14010f2c0
call fcn.1402273f8
mov dword [rax], 0x16
xor al, al
jmp 0x14013ec70
mov rcx, rsi
call fcn.140135420
test al, al
jne 0x14013eab0
lea rdx, [rbp - 0x11]
mov rcx, rsi
call fcn.1401357a0
nop
mov r9d, 1
xor r8d, r8d
movzx edx, bx
mov rcx, rax
call fcn.14008e920
mov r15, rax
mov rdx, qword [rbp - 0x11]
test rdx, rdx
je 0x14013ebc5
mov ecx, edi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14013ebc5
mov rcx, qword [rbp - 0x11]
call fcn.14021b810
cmp r15, 0xffffffffffffffff
jne 0x14013eb37
lea rdx, [rbp + 0x1f]
mov rcx, rsi
call fcn.1401357a0
nop
mov rcx, rax
call fcn.140094f50
mov rbx, rax
lea rdx, [rbp + 7]
mov rcx, r14
call fcn.1401357a0
nop
mov rcx, rax
call fcn.140094f50
lea r8d, [r15 + 2]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, eax
test eax, eax
setne sil
mov rdx, qword [rbp + 7]
test rdx, rdx
je 0x14013ec32
mov ecx, edi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14013ec32
mov rcx, qword [rbp + 7]
call fcn.14021b810
nop
mov rax, qword [rbp + 0x1f]
test rax, rax
je 0x14013ec4d
lock xadd dword [rax], edi
cmp edi, 1
jne 0x14013ec4d
mov rcx, qword [rbp + 0x1f]
call fcn.14021b810
test ebx, ebx
jne 0x14013ec6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x7f], eax
mov dword [rbp + 0x83], 2
mov rcx, qword [rbp + 0x7f]
mov qword [r12], rcx
movzx eax, sil
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14013f4f0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
mov rbp, rdx
mov r14, rcx
xor sil, sil
xor edi, edi
call fcn.140135350
test al, al
je 0x14013f592
mov ecx, 0x8001
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.140134f10
mov rcx, qword [rax + 8]
movzx ecx, word [rcx]
call fcn.140093dd0
lea ecx, [rax - 0x41]
mov ebx, 1
shl ebx, cl
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14013f580
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013f580
mov rcx, qword [rsp + 0x40]
call fcn.14021b810
and ebx, edi
setne sil
neg ebx
sbb edi, edi
and edi, 0x14
jmp 0x14013f65d
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.1401357a0
nop
mov qword [rsp + 0x20], 7
lea rax, str._UNC
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x30], xmm0
mov ebx, 1
mov r8d, ebx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140093330
test al, al
je 0x14013f63b
mov rdx, qword [rsp + 0x48]
mov r9d, ebx
lea r8d, [rbx + 6]
movzx edx, word [rdx]
lea rcx, [rsp + 0x40]
call fcn.14008e920
test eax, eax
jle 0x14013f625
mov rdx, qword [rsp + 0x48]
inc eax
movsxd r8, eax
mov r9d, ebx
movzx edx, word [rdx]
lea rcx, [rsp + 0x40]
call fcn.14008e920
test eax, eax
jle 0x14013f625
mov rcx, qword [rsp + 0x50]
dec rcx
cdqe
cmp rax, rcx
jne 0x14013f63b
lea rcx, [rsp + 0x40]
call fcn.14013faa0
test al, al
je 0x14013f63b
mov edi, reloc.SHLWAPI.dll_SHCreateThread
movzx esi, bl
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14013f65d
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013f65d
mov rcx, qword [rsp + 0x40]
call fcn.14021b810
test sil, sil
je 0x14013f687
mov dword [rbp + 0x10], edi
test dil, 0x10
mov ecx, 0x20000
mov eax, 0x40000
cmovne ecx, eax
or ecx, dword [rbp + 4]
bts ecx, 0x16
mov dword [rbp + 4], ecx
or dword [rbp], 0x560000
movzx eax, sil
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret