joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400be904
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r9d, dword [rdx]
mov rdi, rdx
mov edx, dword [r8]
mov rbx, r8
mov rsi, rcx
cmp r9d, edx
jbe 0x1400be966
mov r8d, 1
cmp edx, r8d
jb 0x1400be948
mov ecx, r8d
inc r8d
mov eax, dword [rdi + rcx*4]
xor eax, dword [rbx + rcx*4]
mov dword [rsi + rcx*4], eax
mov edx, dword [rbx]
cmp r8d, edx
jbe 0x1400be932
mov ecx, r8d
mov r8d, dword [rdi]
sub r8d, edx
shl r8, 2
lea rdx, [rdi + rcx*4]
lea rcx, [rsi + rcx*4]
call fcn.1401b1b70
mov eax, dword [rdi]
jmp 0x1400be9a3
jae 0x1400be9a7
mov edx, 1
cmp r9d, edx
jb 0x1400be988
mov ecx, edx
inc edx
mov eax, dword [rdi + rcx*4]
xor eax, dword [r8 + rcx*4]
mov dword [rsi + rcx*4], eax
mov r9d, dword [rdi]
cmp edx, r9d
jbe 0x1400be972
mov r8d, dword [r8]
mov ecx, edx
sub r8d, r9d
shl r8, 2
lea rdx, [rbx + rcx*4]
lea rcx, [rsi + rcx*4]
call fcn.1401b1b70
mov eax, dword [rbx]
mov dword [rsi], eax
jmp 0x1400be9ed
or r8d, 0xffffffff
test r9d, r9d
je 0x1400be9ca
mov rdx, rdi
lea rcx, [rbx + r9*4]
sub rdx, rbx
mov eax, dword [rcx]
cmp dword [rdx + rcx], eax
jne 0x1400be9ca
sub rcx, 4
add r9d, r8d
jne 0x1400be9ba
mov dword [rsi], r9d
test r9d, r9d
je 0x1400be9ed
sub rdi, rbx
lea rcx, [rbx + r9*4]
sub rsi, rbx
mov eax, dword [rcx + rdi]
xor eax, dword [rcx]
mov dword [rsi + rcx], eax
lea rcx, [rcx - 4]
add r9d, r8d
jne 0x1400be9dc
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400beaa4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x20
mov eax, dword [0x14023fc48]
inc eax
mov dword [0x14023fc48], eax
cmp eax, 1
jg 0x1400beb74
mov esi, 0x20000
mov ecx, esi
call fcn.1401bce40
xor ebx, ebx
mov qword [0x14023fc40], rax
test rax, rax
jne 0x1400beaef
dec dword [0x14023fc48]
mov eax, 1
jmp 0x1400beb76
mov rcx, rsi
call fcn.1401bce40
mov qword [0x14023fc38], rax
mov r8, rax
test rax, rax
jne 0x1400beb21
dec dword [0x14023fc48]
mov rcx, qword [0x14023fc40]
call fcn.1401bce2c
mov qword [0x14023fc40], rbx
jmp 0x1400beae5
mov esi, 0x7fff
mov dword [rax], 1
mov r11d, esi
lea r9, [rax + 4]
mov r10, rax
mov edx, dword [r10]
lea r10, [r10 + 4]
add edx, edx
mov ecx, edx
xor ecx, 0x8003
bt edx, 0xf
cmovae ecx, edx
mov dword [r9], ecx
lea r9, [r9 + 4]
sub r11, 1
jne 0x1400beb36
mov rcx, qword [0x14023fc40]
mov eax, dword [r8]
lea r8, [r8 + 4]
mov dword [rcx + rax*4], ebx
inc ebx
cmp ebx, esi
jb 0x1400beb62
mov dword [rcx], esi
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rsi
ret

Function at 0x1400befc4
Capabilities:
Encode data using xor

Disassembly:
movsxd r9, dword [rcx]
mov edx, 0x11
cmp r9d, edx
jle 0x1400beff7
lea r8, [rcx - 0x38]
lea r8, [r8 + r9*4]
add r9d, 0xffffffef
mov eax, dword [r8 + 0x38]
xor dword [r8 - 0xc], eax
xor dword [r8], eax
and dword [r8 + 0x38], 0
lea r8, [r8 - 4]
sub r9, 1
jne 0x1400befdd
cmp dword [rcx], edx
jbe 0x1400bf00c
mov dword [rcx], edx
mov eax, edx
cmp dword [rcx + rax*4], 0
jne 0x1400bf00c
sub edx, 1
mov dword [rcx], edx
jne 0x1400beffd
ret
Function at 0x1400ca514
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x14], 0
mov rbx, rcx
jne 0x1400ca54b
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x1400ca537
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400f1dc3.0]
cmp byte [rbx + 0x21], 0
je 0x1400ca54b
lea rcx, [rbx + 0x40]
add rsp, 0x20
pop rbx
jmp fcn.1400cbae0
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400ca554
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x14], 1
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jne 0x1400ca586
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx + 8], rax
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400ca603
mov rcx, rbx
call fcn.1400ca734
test al, al
je 0x1400ca5c9
mov r8d, 0x4e20
cmp rsi, r8
jbe 0x1400ca5c9
mov rdx, rbp
mov rcx, rbx
call fcn.1400ca554
jmp 0x1400ca607
cmp dword [rbx + 0x14], 1
jne 0x1400ca5de
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x1400ca5de
xor eax, eax
jmp 0x1400ca607
cmp dword [rbx + 0x14], 0
jne 0x1400ca5fe
mov edi, 0x8000
cmp rsi, rdi
jbe 0x1400ca5fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x1400ca5fe
mov r8d, edi
jmp 0x1400ca5bc
or eax, 0xffffffff
jmp 0x1400ca607
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400ca9ec
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
mov rbx, rcx
call fcn.1400caa48
test al, al
je 0x1400caa20
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rax, qword [rbx]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x1400f1dc3.0]
add rsp, 0x20
pop rbx
ret

Function at 0x1400cb010
Capabilities:
Clear file content

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x1400cb090
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14, r8
mov qword [rbp - 0x38], rdx
mov rsi, rcx
xor edi, edi
test r8, r8
jne 0x1400cb0cd
mov al, 1
jmp 0x1400cb2c5
lea r15, [rcx + 8]
cmp dword [rcx + 0x14], 1
jne 0x1400cb0e9
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [r15], rax
mov rdx, qword [rbp - 0x38]
mov r12b, dil
mov dword [rbp - 0x40], edi
cmp dword [rsi + 0x14], edi
je 0x1400cb145
mov rbx, rdi
test r14, r14
je 0x1400cb169
mov rcx, r14
sub rcx, rbx
mov eax, r14d
sub eax, ebx
mov r8d, 0x4000
cmp rcx, r8
cmovb r8d, eax
add rdx, rbx
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x40]
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne r12b
test eax, eax
je 0x1400cb160
add rbx, 0x4000
cmp rbx, r14
mov rdx, qword [rbp - 0x38]
jb 0x1400cb0fc
jmp 0x1400cb160
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x40]
mov r8d, r14d
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne r12b
test r12b, r12b
jne 0x1400cb2be
cmp byte [rsi + 0x22], dil
je 0x1400cb2be
cmp dword [rsi + 0x14], edi
jne 0x1400cb2be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [rsi]
mov rax, qword [rcx + 0x28]
mov rcx, rsi
call qword [case.0x1400f1dc3.0]
mov qword [rbp - 0x30], rax
lea r13, [rsi + 0x40]
mov rcx, r13
call fcn.1400cc164
mov rbx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rbx, r14
jbe 0x1400cb1df
mov rax, qword [rbp - 0x30]
mov rcx, rax
sub rcx, r14
mov ebx, 0xffffffff
cmp rcx, rbx
ja 0x1400cb1df
add rax, r14
cmp rax, rbx
jbe 0x1400cb1df
mov rdx, r13
lea rcx, [0x14023fda0]
call fcn.1400c0acc
xor r8d, r8d
mov rdx, r13
lea rcx, [0x14023fda0]
call fcn.1400c0224
xor edi, edi
test al, al
je 0x1400cb23d
mov ecx, dword [rbp - 0x40]
cmp rcx, r14
mov rdx, qword [rbp - 0x38]
jae 0x1400cb0e9
test ecx, ecx
je 0x1400cb0e9
mov rbx, qword [rsi]
mov rcx, rsi
mov rax, qword [rbx + 0x28]
call qword [case.0x1400f1dc3.0]
mov rdx, rax
mov eax, dword [rbp - 0x40]
sub rdx, rax
xor r8d, r8d
mov rcx, rsi
mov rax, qword [rbx + 0x20]
call qword [case.0x1400f1dc3.0]
jmp 0x1400cb0e5
mov qword [rbp - 0x28], rdi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
xor r8d, r8d
lea rdx, [0x1401dbff0]
lea rcx, [rbp - 0x28]
call fcn.1400041b8
nop
mov r8, r13
lea rdx, [rbp - 0x28]
lea rcx, [0x14023fda0]
call fcn.1400c0a94
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1400cb2ad
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cb2a8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cb2e9
call fcn.1401af9bc
movdqa xmm0, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], di
mov byte [rsi + 0x10], 1
mov al, r12b
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401afad0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1401b6b94
int3
Function at 0x1400cb9d8
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400cba0a
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor esi, esi
test eax, eax
setne dil
test eax, eax
jne 0x1400cbab4
mov qword [rbp - 0x30], rsi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
movdqa xmm1, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x20], xmm1
mov word [rbp - 0x30], si
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.1400e22e4
test al, al
je 0x1400cba67
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne dil
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400cbaa3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cba9e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cbad8
call fcn.1401af9bc
movdqa xmm0, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], si
mov al, dil
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401afad0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
call fcn.1401b6b94
int3

Function at 0x1400cbae0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400cbb12
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
test eax, eax
setne dil
test eax, eax
jne 0x1400cbbbc
mov qword [rbp - 0x30], rsi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
movdqa xmm1, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x20], xmm1
mov word [rbp - 0x30], si
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.1400e22e4
test al, al
je 0x1400cbb6f
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne dil
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400cbbab
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cbba6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cbbe0
call fcn.1401af9bc
movdqa xmm0, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], si
mov al, dil
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401afad0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
call fcn.1401b6b94
int3
Function at 0x1400cc008
Capabilities:
Delete file

Disassembly:
sub rsp, 0x68
cmp qword [rcx + 0x18], 0
jbe 0x1400cc05d
and qword [rcx + 0x18], 0
xor eax, eax
xorps xmm0, xmm0
mov qword [rsp + 0x50], rax
mov eax, 0x54
movups xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x40], ax
mov rax, qword [rcx]
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x28], 3
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x30], rax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
jmp 0x1400cc05f
mov al, 1
add rsp, 0x68
ret

Function at 0x1400cc064
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400cc096
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1400cc139
xor esi, esi
mov qword [rbp - 0x30], rsi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
movdqa xmm1, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x20], xmm1
mov word [rbp - 0x30], si
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.1400e22e4
test al, al
je 0x1400cc0ec
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400cc128
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cc123
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cc15c
call fcn.1401af9bc
movdqa xmm0, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], si
mov eax, edi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401afad0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
call fcn.1401b6b94
int3
Function at 0x1400cc164
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rbp - 8], rax
xor edi, edi
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], rdi
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], di
lea rdx, [rbp - 0x28]
call fcn.1400e1f54
mov qword [rbp - 0x40], rdi
cmp qword [rbp - 0x18], rdi
jne 0x1400cc1b9
mov ecx, edi
jmp 0x1400cc1c7
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
lea r9, [rbp - 0x38]
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1400cc1f3
mov eax, dword [rbp - 0x3c]
cmp eax, dword [rbp - 0x34]
ja 0x1400cc1f3
mov ebx, eax
shl rbx, 0x20
mov eax, dword [rbp - 0x40]
add rbx, rax
jmp 0x1400cc1f6
mov rbx, rdi
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1400cc232
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cc22d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cc263
call fcn.1401af9bc
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], di
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401afad0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1401b6b94
int3

Function at 0x1400cc564
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor edi, edi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], di
lea rdx, [rsp + 0x40]
call fcn.1400e1c20
cmp qword [rsp + 0x50], rdi
jne 0x1400cc5c8
mov ecx, edi
jmp 0x1400cc5d9
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
mov dword [rsp + 0x38], 0x105
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x1400cc635
lea rdx, [0x1401ee3b0]
lea rcx, [rsp + 0x60]
call fcn.1401bc428
test eax, eax
je 0x1400cc631
lea rdx, str.FAT32
lea rcx, [rsp + 0x60]
call fcn.1401bc428
test eax, eax
jne 0x1400cc635
mov bl, 1
jmp 0x1400cc638
mov bl, dil
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x1400cc676
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cc671
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cc6af
call fcn.1401af9bc
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], di
mov al, bl
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1401afad0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1401b6b94
int3
Function at 0x1400cc6c4
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor edi, edi
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], di
lea rdx, [rbp - 0x30]
call fcn.1400e1c20
cmp qword [rbp - 0x20], rdi
jne 0x1400cc715
mov ecx, edi
jmp 0x1400cc723
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x1400cc736
cmp eax, 5
mov bl, dil
jne 0x1400cc738
mov bl, 1
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400cc774
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cc76f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cc7a2
call fcn.1401af9bc
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], di
mov al, bl
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401afad0
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret
call fcn.1401b6b94
int3

Function at 0x1400cca74
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15d, r8d
mov r14b, dl
mov rdi, rcx
call fcn.1400e1a6c
cmp ax, 0x2e
je 0x1400ccad2
cmp ax, 0x20
je 0x1400ccad2
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400ccabc
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
xor ebx, ebx
test eax, eax
jne 0x1400ccb7d
jmp 0x1400ccad6
xor ebx, ebx
mov esi, ebx
mov rcx, rdi
call fcn.1400cc064
cmp eax, 0xffffffff
jne 0x1400ccb91
mov qword [rbp - 0x30], rbx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
movdqa xmm1, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x20], xmm1
mov word [rbp - 0x30], bx
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.1400e22e4
test al, al
je 0x1400ccb2c
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400ccb68
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ccb63
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ccbcc
call fcn.1401af9bc
movdqa xmm0, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], bx
test esi, esi
je 0x1400ccb91
test r14b, r14b
je 0x1400ccb8d
mov edx, r15d
mov rcx, rdi
call fcn.1400cd2b8
xor eax, eax
jmp 0x1400ccbac
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400ccba7
cmp eax, 3
sete bl
lea eax, [rbx + 1]
jmp 0x1400ccbac
mov eax, 2
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401afad0
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1401b6b94
int3
Function at 0x1400cce8c
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rdx
mov rdi, rcx
cmp qword [rdx + 0x18], 8
jb 0x1400ccebf
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x1400ccec9
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
xor r14d, r14d
test eax, eax
setne sil
test eax, eax
jne 0x1400ccff6
mov qword [rbp - 0x30], r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
movdqa xmm1, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x20], xmm1
mov word [rbp - 0x30], r14w
mov qword [rbp - 0x50], r14
movdqu xmmword [rbp - 0x40], xmm0
movdqu xmmword [rbp - 0x40], xmm1
mov word [rbp - 0x50], r14w
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.1400e22e4
test al, al
je 0x1400ccf59
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.1400e22e4
test al, al
je 0x1400ccf59
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne sil
mov ebx, 0x1000
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x1400ccf9a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, rbx
jb 0x1400ccf95
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cd020
call fcn.1401af9bc
movdqa xmm0, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r14w
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400ccfe4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, rbx
jb 0x1400ccfdf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cd01a
call fcn.1401af9bc
movdqa xmm0, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r14w
mov al, sil
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401afad0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1401b6b94
nop
call fcn.1401b6b94
nop
int3
Function at 0x1400cd2b8
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov esi, edx
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400cd2ea
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor r14d, r14d
test eax, eax
setne dil
test eax, eax
jne 0x1400cd399
mov qword [rbp - 0x30], r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
movdqa xmm1, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x20], xmm1
mov word [rbp - 0x30], r14w
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.1400e22e4
test al, al
je 0x1400cd34b
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne dil
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400cd387
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cd382
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cd3bd
call fcn.1401af9bc
movdqa xmm0, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r14w
mov al, dil
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401afad0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1401b6b94
int3