joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400be304
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 0x1400be366
mov r8d, 1
cmp edx, r8d
jb 0x1400be348
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 0x1400be332
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.1401b1520
mov eax, dword [rdi]
jmp 0x1400be3a3
jae 0x1400be3a7
mov edx, 1
cmp r9d, edx
jb 0x1400be388
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 0x1400be372
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.1401b1520
mov eax, dword [rbx]
mov dword [rsi], eax
jmp 0x1400be3ed
or r8d, 0xffffffff
test r9d, r9d
je 0x1400be3ca
mov rdx, rdi
lea rcx, [rbx + r9*4]
sub rdx, rbx
mov eax, dword [rcx]
cmp dword [rdx + rcx], eax
jne 0x1400be3ca
sub rcx, 4
add r9d, r8d
jne 0x1400be3ba
mov dword [rsi], r9d
test r9d, r9d
je 0x1400be3ed
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 0x1400be3dc
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400be4a4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x20
mov eax, dword [0x14023fc38]
inc eax
mov dword [0x14023fc38], eax
cmp eax, 1
jg 0x1400be574
mov esi, 0x20000
mov ecx, esi
call fcn.1401bc7f0
xor ebx, ebx
mov qword [0x14023fc30], rax
test rax, rax
jne 0x1400be4ef
dec dword [0x14023fc38]
mov eax, 1
jmp 0x1400be576
mov rcx, rsi
call fcn.1401bc7f0
mov qword [0x14023fc28], rax
mov r8, rax
test rax, rax
jne 0x1400be521
dec dword [0x14023fc38]
mov rcx, qword [0x14023fc30]
call fcn.1401bc7dc
mov qword [0x14023fc30], rbx
jmp 0x1400be4e5
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 0x1400be536
mov rcx, qword [0x14023fc30]
mov eax, dword [r8]
lea r8, [r8 + 4]
mov dword [rcx + rax*4], ebx
inc ebx
cmp ebx, esi
jb 0x1400be562
mov dword [rcx], esi
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rsi
ret

Function at 0x1400be9c4
Capabilities:
Encode data using xor

Disassembly:
movsxd r9, dword [rcx]
mov edx, 0x11
cmp r9d, edx
jle 0x1400be9f7
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 0x1400be9dd
cmp dword [rcx], edx
jbe 0x1400bea0c
mov dword [rcx], edx
mov eax, edx
cmp dword [rcx + rax*4], 0
jne 0x1400bea0c
sub edx, 1
mov dword [rcx], edx
jne 0x1400be9fd
ret
Function at 0x1400c9f14
Capabilities:
Delete file

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

Function at 0x1400c9f54
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 0x1400c9f86
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 0x1400ca003
mov rcx, rbx
call fcn.1400ca134
test al, al
je 0x1400c9fc9
mov r8d, 0x4e20
cmp rsi, r8
jbe 0x1400c9fc9
mov rdx, rbp
mov rcx, rbx
call fcn.1400c9f54
jmp 0x1400ca007
cmp dword [rbx + 0x14], 1
jne 0x1400c9fde
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x1400c9fde
xor eax, eax
jmp 0x1400ca007
cmp dword [rbx + 0x14], 0
jne 0x1400c9ffe
mov edi, 0x8000
cmp rsi, rdi
jbe 0x1400c9ffe
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x1400c9ffe
mov r8d, edi
jmp 0x1400c9fbc
or eax, 0xffffffff
jmp 0x1400ca007
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 0x1400ca3ec
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
mov rbx, rcx
call fcn.1400ca448
test al, al
je 0x1400ca420
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.0x1400f17b3.0]
add rsp, 0x20
pop rbx
ret

Function at 0x1400caa10
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 0x1400caa90
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 [0x140231eb8]
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 0x1400caacd
mov al, 1
jmp 0x1400cacc5
lea r15, [rcx + 8]
cmp dword [rcx + 0x14], 1
jne 0x1400caae9
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 0x1400cab45
mov rbx, rdi
test r14, r14
je 0x1400cab69
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 0x1400cab60
add rbx, 0x4000
cmp rbx, r14
mov rdx, qword [rbp - 0x38]
jb 0x1400caafc
jmp 0x1400cab60
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 0x1400cacbe
cmp byte [rsi + 0x22], dil
je 0x1400cacbe
cmp dword [rsi + 0x14], edi
jne 0x1400cacbe
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.0x1400f17b3.0]
mov qword [rbp - 0x30], rax
lea r13, [rsi + 0x40]
mov rcx, r13
call fcn.1400cbb64
mov rbx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rbx, r14
jbe 0x1400cabdf
mov rax, qword [rbp - 0x30]
mov rcx, rax
sub rcx, r14
mov ebx, 0xffffffff
cmp rcx, rbx
ja 0x1400cabdf
add rax, r14
cmp rax, rbx
jbe 0x1400cabdf
mov rdx, r13
lea rcx, [0x14023fd90]
call fcn.1400c04cc
xor r8d, r8d
mov rdx, r13
lea rcx, [0x14023fd90]
call fcn.1400bfc24
xor edi, edi
test al, al
je 0x1400cac3d
mov ecx, dword [rbp - 0x40]
cmp rcx, r14
mov rdx, qword [rbp - 0x38]
jae 0x1400caae9
test ecx, ecx
je 0x1400caae9
mov rbx, qword [rsi]
mov rcx, rsi
mov rax, qword [rbx + 0x28]
call qword [case.0x1400f17b3.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.0x1400f17b3.0]
jmp 0x1400caae5
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, [0x14023fd90]
call fcn.1400c0494
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1400cacad
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400caca8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cace9
call fcn.1401af36c
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.1401af480
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.1401b6544
int3
Function at 0x1400cb3d8
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 [0x140231eb8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400cb40a
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor esi, esi
test eax, eax
setne dil
test eax, eax
jne 0x1400cb4b4
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.1400e1ce4
test al, al
je 0x1400cb467
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 0x1400cb4a3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cb49e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cb4d8
call fcn.1401af36c
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.1401af480
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
call fcn.1401b6544
int3

Function at 0x1400cb4e0
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 [0x140231eb8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400cb512
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
test eax, eax
setne dil
test eax, eax
jne 0x1400cb5bc
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.1400e1ce4
test al, al
je 0x1400cb56f
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 0x1400cb5ab
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cb5a6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cb5e0
call fcn.1401af36c
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.1401af480
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
call fcn.1401b6544
int3
Function at 0x1400cba08
Capabilities:
Delete file

Disassembly:
sub rsp, 0x68
cmp qword [rcx + 0x18], 0
jbe 0x1400cba5d
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 0x1400cba5f
mov al, 1
add rsp, 0x68
ret

Function at 0x1400cba64
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 [0x140231eb8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400cba96
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1400cbb39
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.1400e1ce4
test al, al
je 0x1400cbaec
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 0x1400cbb28
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cbb23
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cbb5c
call fcn.1401af36c
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.1401af480
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
call fcn.1401b6544
int3
Function at 0x1400cbb64
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 [0x140231eb8]
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.1400e1954
mov qword [rbp - 0x40], rdi
cmp qword [rbp - 0x18], rdi
jne 0x1400cbbb9
mov ecx, edi
jmp 0x1400cbbc7
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 0x1400cbbf3
mov eax, dword [rbp - 0x3c]
cmp eax, dword [rbp - 0x34]
ja 0x1400cbbf3
mov ebx, eax
shl rbx, 0x20
mov eax, dword [rbp - 0x40]
add rbx, rax
jmp 0x1400cbbf6
mov rbx, rdi
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1400cbc32
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cbc2d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cbc63
call fcn.1401af36c
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.1401af480
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1401b6544
int3

Function at 0x1400cbf64
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 [0x140231eb8]
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.1400e1620
cmp qword [rsp + 0x50], rdi
jne 0x1400cbfc8
mov ecx, edi
jmp 0x1400cbfd9
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 0x1400cc035
lea rdx, [0x1401ee3c0]
lea rcx, [rsp + 0x60]
call fcn.1401bbdd8
test eax, eax
je 0x1400cc031
lea rdx, str.FAT32
lea rcx, [rsp + 0x60]
call fcn.1401bbdd8
test eax, eax
jne 0x1400cc035
mov bl, 1
jmp 0x1400cc038
mov bl, dil
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x1400cc076
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cc071
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cc0af
call fcn.1401af36c
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.1401af480
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1401b6544
int3
Function at 0x1400cc0c4
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 [0x140231eb8]
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.1400e1620
cmp qword [rbp - 0x20], rdi
jne 0x1400cc115
mov ecx, edi
jmp 0x1400cc123
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 0x1400cc136
cmp eax, 5
mov bl, dil
jne 0x1400cc138
mov bl, 1
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400cc174
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cc16f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cc1a2
call fcn.1401af36c
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.1401af480
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret
call fcn.1401b6544
int3

Function at 0x1400cc474
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 [0x140231eb8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15d, r8d
mov r14b, dl
mov rdi, rcx
call fcn.1400e146c
cmp ax, 0x2e
je 0x1400cc4d2
cmp ax, 0x20
je 0x1400cc4d2
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400cc4bc
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
xor ebx, ebx
test eax, eax
jne 0x1400cc57d
jmp 0x1400cc4d6
xor ebx, ebx
mov esi, ebx
mov rcx, rdi
call fcn.1400cba64
cmp eax, 0xffffffff
jne 0x1400cc591
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.1400e1ce4
test al, al
je 0x1400cc52c
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 0x1400cc568
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cc563
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cc5cc
call fcn.1401af36c
movdqa xmm0, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], bx
test esi, esi
je 0x1400cc591
test r14b, r14b
je 0x1400cc58d
mov edx, r15d
mov rcx, rdi
call fcn.1400cccb8
xor eax, eax
jmp 0x1400cc5ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400cc5a7
cmp eax, 3
sete bl
lea eax, [rbx + 1]
jmp 0x1400cc5ac
mov eax, 2
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401af480
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1401b6544
int3
Function at 0x1400cc88c
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 [0x140231eb8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rdx
mov rdi, rcx
cmp qword [rdx + 0x18], 8
jb 0x1400cc8bf
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x1400cc8c9
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
xor r14d, r14d
test eax, eax
setne sil
test eax, eax
jne 0x1400cc9f6
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.1400e1ce4
test al, al
je 0x1400cc959
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.1400e1ce4
test al, al
je 0x1400cc959
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 0x1400cc99a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, rbx
jb 0x1400cc995
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cca20
call fcn.1401af36c
movdqa xmm0, xmmword [0x1401dc090]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r14w
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400cc9e4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, rbx
jb 0x1400cc9df
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cca1a
call fcn.1401af36c
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.1401af480
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.1401b6544
nop
call fcn.1401b6544
nop
int3
Function at 0x1400cccb8
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 [0x140231eb8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov esi, edx
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400cccea
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor r14d, r14d
test eax, eax
setne dil
test eax, eax
jne 0x1400ccd99
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.1400e1ce4
test al, al
je 0x1400ccd4b
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 0x1400ccd87
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ccd82
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ccdbd
call fcn.1401af36c
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.1401af480
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.1401b6544
int3