joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000662c
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140061944], 2
mov edi, r8d
mov esi, edx
mov rbx, rcx
jl 0x14000668c
movdqa xmm0, xmmword [0x140038a80]
movdqa xmm1, xmmword [0x140038a70]
movdqa xmmword [0x14004c6c0], xmm0
movdqa xmm0, xmmword [0x140038a50]
movdqa xmmword [0x14004c6d0], xmm1
movdqa xmm1, xmmword [0x140038a60]
movdqa xmmword [0x14004c6e0], xmm0
movdqa xmmword [0x14004c6f0], xmm1
xor edx, edx
mov r8d, 0xf0
call fcn.140023860
xor edx, edx
mov qword [rbx + 0x110], rdx
mov byte [rbx + 0x118], dl
mov rcx, qword [rbx + 0xf8]
lea rax, [0x140038a30]
mov eax, dword [rdx + rax]
mov dword [rdx + rcx], eax
add rdx, 4
cmp rdx, 0x20
jl 0x1400066a8
mov rax, qword [rbx + 0xf8]
bts edi, 0xd
shl edi, 0x10
xor dword [rax], 0x2080020
mov rax, qword [rbx + 0xf8]
xor dword [rax + 8], esi
mov rax, qword [rbx + 0xf8]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor dword [rax + 0xc], edi
add rsp, 0x20
pop rdi
ret

Function at 0x140007bcc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x850
mov rax, qword [0x14004bc38]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rax, rdx
mov rdi, r8
mov rbx, rcx
lea rdx, [rsp + 0x40]
mov rcx, rax
mov r8d, 0x400
call fcn.140016aac
mov esi, 1
mov ecx, esi
call fcn.14002a5a0
cmp rbx, rax
jne 0x140007c23
cmp byte [0x14004d71d], 0
jne 0x140007c45
mov ebp, 2
mov ecx, ebp
call fcn.14002a5a0
cmp rbx, rax
jne 0x140007d05
cmp byte [0x14004d71e], 0
je 0x140007d05
mov ecx, esi
call fcn.14002a5a0
sub rbx, rax
neg rbx
sbb ecx, ecx
add ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbp, rax
call fcn.1400050d4
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
lea rdi, [0x14004ff20]
mov esi, 0x1800
mov rdx, rdi
mov rcx, qword [rax]
mov r8d, esi
call fcn.140029e98
mov eax, dword [0x14004d718]
mov rcx, rdi
cmp eax, 3
jne 0x140007cab
call fcn.140027a5c
mov rdx, rdi
lea r8d, [rax + rax]
jmp 0x140007cef
lea rbx, [0x140052f20]
mov r8, rsi
mov rdx, rbx
cmp eax, 4
jne 0x140007cc4
call fcn.1400190d0
jmp 0x140007cc9
call fcn.140019038
test dword [0x14004d718], 0xfffffffd
jne 0x140007ce1
mov rdx, rbx
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharToOemA]
mov rcx, rbx
call fcn.14002a120
mov r8, rax
mov rdx, rbx
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140007d6f
call fcn.1400050d4
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
lea rdi, [0x14004ff20]
mov r8d, 0x1800
mov rdx, rdi
mov rcx, qword [rax]
call fcn.140029e98
mov ecx, ebp
call fcn.14002a5a0
xor ecx, ecx
cmp rbx, rax
setne cl
add ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rdi
mov rbx, rax
call fcn.140027a5c
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8, rax
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.1400224d0
mov rbx, qword [rsp + 0x888]
add rsp, 0x850
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007ffc
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140008022
movzx r9d, byte [rdx]
inc rdx
movzx eax, cl
xor r9, rax
shr ecx, 8
lea rax, [0x140054720]
xor ecx, dword [rax + r9*4]
sub r8, 1
jne 0x140008001
mov eax, ecx
ret

Function at 0x140008288
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x14004bc38]
xor rax, rsp
mov qword [rsp + 0x78], rax
cmp dword [rcx], 2
lea rbx, [rcx + 4]
mov rsi, rdx
mov rdi, rcx
mov r14d, 0x20
jne 0x140008320
and qword [r11 - 0x58], 0
lea r9d, [r14 - 0x1c]
and qword [r11 - 0x60], 0
lea r8, [r11 - 0x48]
mov eax, dword [rbx]
mov edx, r14d
and qword [r11 - 0x68], 0
mov rcx, rsi
and qword [r11 - 0x70], 0
mov dword [rsp + 0x50], eax
lea rax, [r11 - 0x40]
mov qword [r11 - 0x78], rax
call fcn.140008c6c
xor r9d, r9d
lea r10, [rsp + 0x58]
xor r8d, r8d
movzx edx, byte [r10]
mov ecx, r9d
and ecx, 3
inc r9d
shl ecx, 3
inc r10
shl edx, cl
xor edx, r8d
mov r8d, edx
cmp r9d, r14d
jb 0x1400082fe
mov dword [rbx], edx
cmp dword [rdi], 3
jne 0x140008368
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
and qword [rsp + 0x38], 0
mov r9, r14
and qword [rsp + 0x30], 0
mov r8, rbx
and qword [rsp + 0x28], 0
mov rdx, r14
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.140008c6c
mov r8, r14
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.140024600
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400224d0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop rdi
pop rsi
ret
Function at 0x140008f88
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x14004bc38]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov rdi, qword [rbp + 0x190]
mov rax, r8
mov rsi, qword [rbp + 0x198]
mov r8d, 0x40
mov r14, qword [rbp + 0x1a0]
cmp r9, r8
mov r12, rdx
mov r15, rcx
cmovb r8, r9
lea rcx, [rbp + 0xb0]
mov rdx, rax
mov rbx, r9
call fcn.140024600
cmp rbx, 0x44
jae 0x1400091dd
lea rax, [rbx + 1]
mov byte [rbp + rbx + 0xb0], 0
cmp rax, 0x44
jae 0x1400091dd
mov byte [rbp + rax + 0xb0], 0
lea rax, [rbx + 2]
cmp rax, 0x44
jae 0x1400091dd
and qword [rsp + 0x40], 0
lea r9, [rbx + 4]
and qword [rsp + 0x38], 0
lea r8, [rbp + 0xb0]
and qword [rsp + 0x30], 0
mov rdx, r12
and qword [rsp + 0x28], 0
mov rcx, r15
mov byte [rbp + rax + 0xb0], 0
lea rax, [rbp + 0x68]
mov qword [rsp + 0x20], rax
mov byte [rbp + rbx + 0xb3], 1
call fcn.140008c6c
mov ebx, 0x20
lea rdx, [rbp + 0x68]
mov r8d, ebx
lea rcx, [rbp + 0x88]
call fcn.140024600
mov eax, dword [rbp + 0x1a8]
dec eax
mov qword [rbp + 0x50], rdi
mov qword [rbp + 0x58], rsi
lea rdi, [rbp + 0x40]
mov qword [rbp + 0x60], r14
lea rsi, [rbp + 0x50]
mov dword [rbp + 0x40], eax
lea r14d, [rbx - 0x1d]
mov dword [rbp + 0x44], 0x10
mov dword [rbp + 0x48], 0x10
mov byte [rsp + 0x51], 0
mov byte [rsp + 0x50], 0
cmp dword [rdi], 0
jbe 0x14000915e
mov ebx, dword [rdi]
lea rax, [rsp + 0x50]
mov r9d, 0x20
mov qword [rsp + 0x40], rax
lea r8, [rbp + 0x68]
lea rax, [rsp + 0x60]
mov rdx, r12
mov qword [rsp + 0x38], rax
mov rcx, r15
lea rax, [rsp + 0x51]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x100]
mov qword [rsp + 0x20], rax
call fcn.140008c6c
mov r8d, 0x20
lea rdx, [rbp + 0x100]
lea rcx, [rbp + 0x68]
call fcn.140024600
xor eax, eax
lea ecx, [rax + 2]
movdqu xmm0, xmmword [rbp + rax + 0x88]
movdqu xmm1, xmmword [rbp + rax + 0x68]
lea rax, [rax + 0x10]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax + 0x78], xmm1
sub rcx, 1
jne 0x14000912e
sub rbx, 1
jne 0x1400090cb
lea ebx, [rcx + 0x20]
mov rcx, qword [rsi]
lea rdx, [rbp + 0x88]
mov r8, rbx
call fcn.140024600
add rdi, 4
add rsi, 8
sub r14, 1
jne 0x1400090c0
lea edx, [r14 + 0x44]
lea rcx, [rbp + 0xb0]
call fcn.1400157e8
mov rdx, rbx
lea rcx, [rbp + 0x88]
call fcn.1400157e8
mov rdx, rbx
lea rcx, [rbp + 0x68]
call fcn.1400157e8
mov rdx, rbx
lea rcx, [rbp + 0x100]
call fcn.1400157e8
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.1400224d0
add rsp, 0x230
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140022604
int3
Function at 0x14000d364
Capabilities:
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x4f98]
mov eax, 0x5080
call fcn.140022830
sub rsp, rax
mov rax, qword [0x14004bc38]
xor rax, rsp
mov qword [rbp + 0x4f70], rax
mov rbx, rcx
mov r15d, 0x800
mov r8d, r15d
lea rdx, [rbp + 0x2f70]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
lea edi, [r15 - 2]
cmp eax, edi
ja 0x14000d55f
mov r8d, r15d
lea rdx, [rbp + 0x3f70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
dec eax
cmp eax, edi
ja 0x14000d55f
lea rcx, [rbp + 0x2f70]
call fcn.140012154
mov rsi, rax
lea rcx, [rbp + 0x3f70]
call fcn.140012154
mov rdi, rax
xor r14d, r14d
cmp word [rax], r14w
je 0x14000d55f
mov rdx, rax
mov rcx, rsi
call fcn.140019224
test eax, eax
je 0x14000d55f
mov rcx, rbx
call fcn.140012154
mov rcx, rax
mov rdx, rdi
call fcn.140019224
test eax, eax
jne 0x14000d55f
movzx eax, r14w
mov word [rbp + 0xf70], ax
mov edi, r14d
test ax, ax
jne 0x14000d4b7
mov r8, r15
mov rdx, rbx
lea rcx, [rbp + 0xf70]
call fcn.140016e14
lea rcx, [rbp + 0xf70]
call fcn.140012154
mov rcx, rax
mov r9d, edi
lea r8, str.rtmp_d
mov rdx, r15
call fcn.1400050dc
lea rcx, [rbp + 0xf70]
call fcn.14000e504
test al, al
je 0x14000d49c
mov eax, r14d
mov word [rbp + 0xf70], ax
jmp 0x14000d4a3
movzx eax, word [rbp + 0xf70]
add edi, 0x7b
cmp edi, 0x2710
jl 0x14000d448
test ax, ax
je 0x14000d55f
mov r8, r15
mov rdx, rbx
lea rcx, [rbp + 0x1f70]
call fcn.140016e14
mov r8, r15
mov rdx, rsi
lea rcx, [rbp + 0x1f70]
call fcn.1400121e0
lea rdx, [rbp + 0xf70]
lea rcx, [rbp + 0x1f70]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14000d55f
lea rcx, [rsp + 0x20]
call fcn.14000d590
nop
mov dil, r14b
mov rcx, rbx
call fcn.14000e504
test al, al
jne 0x14000d523
mov r8d, 0x12
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14000d6b8
mov dil, al
lea rdx, [rbp + 0x1f70]
lea rcx, [rbp + 0xf70]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test dil, dil
je 0x14000d551
lea rcx, [rsp + 0x20]
call fcn.14000d650
lea rcx, [rsp + 0x20]
call fcn.14000d7e4
nop
lea rcx, [rsp + 0x20]
call fcn.14000d5d8
mov al, 1
jmp 0x14000d561
xor al, al
mov rcx, qword [rbp + 0x4f70]
xor rcx, rsp
call fcn.1400224d0
lea r11, [rsp + 0x5080]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14000d7e4
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x14], 0
mov rbx, rcx
jne 0x14000d81b
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x14000d807
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140038440]
cmp byte [rbx + 0x21], 0
je 0x14000d81b
lea rcx, [rbx + 0x3a]
add rsp, 0x20
pop rbx
jmp fcn.14000e480
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14000d824
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 0x14000d856
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 0x14000d8d3
mov rcx, rbx
call fcn.14000d98c
test al, al
je 0x14000d899
mov r8d, 0x4e20
cmp rsi, r8
jbe 0x14000d899
mov rdx, rbp
mov rcx, rbx
call fcn.14000d824
jmp 0x14000d8d7
cmp dword [rbx + 0x14], 1
jne 0x14000d8ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14000d8ae
xor eax, eax
jmp 0x14000d8d7
cmp dword [rbx + 0x14], 0
jne 0x14000d8ce
mov edi, 0x8000
cmp rsi, rdi
jbe 0x14000d8ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x14000d8ce
mov r8d, edi
jmp 0x14000d88c
or eax, 0xffffffff
jmp 0x14000d8d7
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 0x14000db88
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
mov rbx, rcx
call fcn.14000dbc4
test al, al
je 0x14000dbbc
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 [0x140038440]
add rsp, 0x20
pop rbx
ret

Function at 0x14000e0a0
Capabilities:
Clear file content

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x30
mov rsi, r8
mov r15, rdx
mov rdi, rcx
test r8, r8
jne 0x14000e14f
mov al, 1
jmp 0x14000e267
cmp dword [rcx + 0x14], 1
lea r14, [rcx + 8]
jne 0x14000e167
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [r14], rax
mov r13d, 0x4000
and dword [rsp + 0x70], 0
xor bpl, bpl
cmp dword [rdi + 0x14], 0
je 0x14000e1c1
xor ebx, ebx
test rsi, rsi
je 0x14000e1e7
mov eax, esi
lea rdx, [rbx + r15]
sub eax, ebx
lea r9, [rsp + 0x70]
mov r8d, r13d
mov rcx, rsi
sub rcx, rbx
cmp rcx, r13
mov rcx, qword [r14]
cmovb r8d, eax
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete bpl
jne 0x14000e1e2
add rbx, r13
cmp rbx, rsi
jb 0x14000e182
jmp 0x14000e1e2
mov rcx, qword [r14]
lea r9, [rsp + 0x70]
and qword [rsp + 0x20], 0
mov r8d, esi
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete bpl
test bpl, bpl
jne 0x14000e260
cmp byte [rdi + 0x22], 0
je 0x14000e260
cmp dword [rdi + 0x14], 0
jne 0x14000e260
xor r8d, r8d
lea rdx, [rdi + 0x3a]
lea rcx, [0x1400567e8]
call fcn.140009598
test al, al
je 0x14000e24e
mov ecx, dword [rsp + 0x70]
cmp rcx, rsi
jae 0x14000e16d
test ecx, ecx
je 0x14000e16d
mov rbx, qword [rdi]
mov rcx, rdi
mov rax, qword [rbx + 0x28]
call qword [0x140038440]
mov ecx, dword [rsp + 0x70]
xor r8d, r8d
sub rax, rcx
mov rcx, rdi
mov rdx, rax
mov rax, qword [rbx + 0x20]
call qword [0x140038440]
jmp 0x14000e16d
lea r8, [rdi + 0x3a]
xor edx, edx
lea rcx, [0x1400567e8]
call fcn.140009b38
mov byte [rdi + 0x10], 1
mov al, bpl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret

Function at 0x14000e3fc
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.140022830
sub rsp, rax
mov rax, qword [0x14004bc38]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000e45a
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14001184c
test al, al
je 0x14000e45a
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
mov al, bl
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400224d0
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret

Function at 0x14000e480
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.140022830
sub rsp, rax
mov rax, qword [0x14004bc38]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test eax, eax
jne 0x14000e4de
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14001184c
test al, al
je 0x14000e4de
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov al, bl
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400224d0
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret
Function at 0x14000e518
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.140022830
sub rsp, rax
mov rax, qword [0x14004bc38]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14000e571
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14001184c
test al, al
je 0x14000e571
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400224d0
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret

Function at 0x14000e5b0
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1038
call fcn.140022830
sub rsp, rax
mov rax, qword [0x14004bc38]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov r8d, 0x800
lea rdx, [rsp + 0x20]
call fcn.1400116b8
movzx eax, word [rsp + 0x20]
neg ax
lea rax, [rsp + 0x20]
sbb rcx, rcx
and rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x14000e606
cmp eax, 5
je 0x14000e606
xor al, al
jmp 0x14000e608
mov al, 1
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400224d0
add rsp, 0x1038
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
mov eax, 0x1030
call fcn.140022830
sub rsp, rax
mov rax, qword [0x14004bc38]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov ebp, r8d
mov sil, dl
mov rdi, rcx
call fcn.14001212c
xor ebx, ebx
cmp word [rax], 0x2e
je 0x14000e826
cmp word [rax], 0x20
je 0x14000e826
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000e85b
mov rcx, rdi
call fcn.14000e518
cmp eax, 0xffffffff
jne 0x14000e86e
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14001184c
test al, al
je 0x14000e86e
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000e86e
test sil, sil
je 0x14000e86a
mov edx, ebp
mov rcx, rdi
call fcn.14000ec4c
xor eax, eax
jmp 0x14000e889
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000e884
cmp eax, 3
sete bl
lea eax, [rbx + 1]
jmp 0x14000e889
mov eax, 2
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400224d0
mov rbx, qword [rsp + 0x1058]
add rsp, 0x1030
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000e9d4
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x2030
call fcn.140022830
sub rsp, rax
mov rax, qword [0x14004bc38]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
test eax, eax
jne 0x14000ea5c
mov r8d, 0x800
lea rdx, [rsp + 0x1020]
mov rcx, rdi
call fcn.14001184c
test al, al
je 0x14000ea5c
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14001184c
test al, al
je 0x14000ea5c
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x1020]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
mov al, bl
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.1400224d0
lea r11, [rsp + 0x2030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14000ec4c
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.140022830
sub rsp, rax
mov rax, qword [0x14004bc38]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov edi, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x14000ecb3
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14001184c
test al, al
je 0x14000ecb3
mov edx, edi
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov al, bl
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400224d0
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000ed54
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x1180]
mov eax, 0x1280
call fcn.140022830
sub rsp, rax
mov rax, qword [0x14004bc38]
xor rax, rsp
mov qword [rbp + 0x1170], rax
mov rsi, rdx
lea rdx, [rsp + 0x20]
mov rdi, r8
mov rbx, rcx
mov r15d, 0x800
cmp rcx, 0xffffffffffffffff
jne 0x14000ee05
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000ee21
mov r8d, r15d
lea rdx, [rbp + 0x170]
mov rcx, rsi
call fcn.14001184c
test al, al
je 0x14000edde
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000ee21
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
test ecx, 0xffffffee
jne 0x14000edf8
cmp eax, 0x13
je 0x14000edf8
xor al, al
jmp 0x14000edfa
mov al, 1
mov byte [rdi + 0x1044], al
jmp 0x14000eeb6
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000ee21
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x14000edfa
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call fcn.140016e14
mov r8, r15
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call fcn.1400121e0
mov eax, dword [rsp + 0x40]
lea rdx, [rsp + 0x34]
mov ecx, dword [rsp + 0x3c]
shl rcx, 0x20
add rcx, rax
mov eax, dword [rsp + 0x20]
mov dword [rdi + 0x1008], eax
mov rax, qword [rsp + 0x24]
mov qword [rdi + 0x1028], rax
mov rax, qword [rsp + 0x2c]
mov qword [rdi + 0x1030], rax
mov rax, qword [rsp + 0x34]
mov qword [rdi + 0x1000], rcx
lea rcx, [rdi + 0x1010]
mov qword [rdi + 0x1038], rax
call fcn.1400181b8
lea rcx, [rdi + 0x1018]
lea rdx, [rsp + 0x24]
call fcn.1400181b8
lea rcx, [rdi + 0x1020]
lea rdx, [rsp + 0x2c]
call fcn.1400181b8
and dword [rdi + 0x1040], 0
mov rax, rbx
mov rcx, qword [rbp + 0x1170]
xor rcx, rsp
call fcn.1400224d0
add rsp, 0x1280
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x14000f7f0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x14004bc38]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor bl, bl
cmp byte [0x140056800], bl
jne 0x14000f855
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 0xa
ja 0x14000f844
jne 0x14000f846
cmp dword [rsp + 0x2c], 0x55f0
jb 0x14000f846
call fcn.14000f878
test al, al
jne 0x14000f846
mov bl, 1
mov byte [0x140056801], bl
mov byte [0x140056800], 1
jmp 0x14000f85b
mov bl, byte [0x140056801]
mov al, bl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400224d0
add rsp, 0x150
pop rbx
ret