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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x70
cmp dword [rdx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14003a3f5
cmp dword [r8], 0
je 0x14003a3f5
movsxd r9, dword [r8]
mov rbp, qword [0x1401476f0]
test r9, r9
je 0x14003a338
lea rax, [rax - 0x58]
mov rdx, r8
sub rdx, rax
lea rax, [rdx + r9*4]
sub r9, 1
mov ecx, dword [rsp + rax + 0x20]
mov eax, dword [rbp + rcx*4]
mov dword [rsp + r9*4 + 0x24], eax
jne 0x14003a321
xor edx, edx
mov r8d, 0x90
mov rcx, rbx
call fcn.1400eada0
movsxd r9, dword [rsi]
test r9, r9
je 0x14003a3a8
mov r11, qword [0x1401476e8]
mov eax, dword [rsi + r9*4]
mov r10d, dword [rbp + rax*4]
cmp r10d, 0x7fff
je 0x14003a3a2
movsxd r8, dword [rdi]
test r8, r8
je 0x14003a3a2
mov eax, dword [rsp + r8*4 + 0x20]
cmp eax, 0x7fff
je 0x14003a39c
lea ecx, [rax + r10]
lea rdx, [r8 + r9]
cmp ecx, 0x7fff
lea eax, [rcx - 0x7fff]
cmovae ecx, eax
mov ecx, dword [r11 + rcx*4]
xor dword [rbx + rdx*4 - 4], ecx
sub r8, 1
jne 0x14003a371
sub r9, 1
jne 0x14003a357
mov eax, dword [rdi]
mov ecx, dword [rsi]
lea edx, [rcx + rax - 1]
movsxd rax, edx
mov dword [rbx], edx
cmp rax, 0x11
jle 0x14003a3da
lea rcx, [rbx + rax*4 - 0x38]
lea rdx, [rax - 0x11]
mov eax, dword [rcx + 0x38]
and dword [rcx + 0x38], 0
xor dword [rcx - 0xc], eax
xor dword [rcx], eax
sub rcx, 4
sub rdx, 1
jne 0x14003a3c4
cmp dword [rbx], 0x11
jbe 0x14003a3f8
mov dword [rbx], 0x11
mov eax, dword [rbx]
cmp dword [rbx + rax*4], 0
jne 0x14003a3f8
dec eax
mov dword [rbx], eax
jne 0x14003a3e5
jmp 0x14003a3f8
and dword [rcx], 0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14003a410
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
cmp dword [rdx], 0
mov r9, rdx
mov r8, rcx
je 0x14003a4fe
movsxd rdx, dword [rdx]
mov r11, qword [0x1401476f0]
mov rbx, qword [0x1401476e8]
mov eax, dword [r9 + rdx*4]
mov esi, 0x7fff
mov ecx, dword [r11 + rax*4]
cmp ecx, esi
je 0x14003a462
add ecx, ecx
cmp ecx, esi
lea eax, [rcx - 0x7fff]
cmovae ecx, eax
mov ecx, dword [rbx + rcx*4]
mov dword [r8 + rdx*8 - 4], ecx
jmp 0x14003a468
and dword [r8 + rdx*8 - 4], 0
mov eax, dword [r9]
sub eax, 1
movsxd rdx, eax
je 0x14003a4ac
lea r10, [r8 + rdx*8 - 4]
and dword [r8 + rdx*8], 0
mov eax, dword [r9 + rdx*4]
mov ecx, dword [r11 + rax*4]
cmp ecx, esi
je 0x14003a49e
add ecx, ecx
cmp ecx, esi
lea eax, [rcx - 0x7fff]
cmovae ecx, eax
mov ecx, dword [rbx + rcx*4]
mov dword [r10], ecx
jmp 0x14003a4a2
and dword [r10], 0
sub r10, 8
sub rdx, 1
jne 0x14003a478
mov eax, dword [r9]
lea eax, [rax + rax - 1]
movsxd rdx, eax
mov dword [r8], eax
cmp rdx, 0x11
jle 0x14003a4de
lea rcx, [r8 + rdx*4 - 0x38]
add rdx, 0xffffffffffffffef
mov eax, dword [rcx + 0x38]
and dword [rcx + 0x38], 0
xor dword [rcx - 0xc], eax
xor dword [rcx], eax
sub rcx, 4
sub rdx, 1
jne 0x14003a4c8
cmp dword [r8], 0x11
jbe 0x14003a501
mov dword [r8], 0x11
mov eax, dword [r8]
cmp dword [r8 + rax*4], 0
jne 0x14003a501
dec eax
mov dword [r8], eax
jne 0x14003a4eb
jmp 0x14003a501
and dword [rcx], 0
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
ret
Function at 0x14003c1cc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, r9
mov rsi, r8
xor r9d, r9d
mov qword [rcx], rbx
movzx eax, word [rsi]
mov r8, rdx
mov r10, rcx
mov rdx, r9
mov r15b, 1
mov ecx, r9d
jmp 0x14003c218
mov edi, 0xff
cmp ax, di
ja 0x14003c220
inc ecx
inc rdx
mov ax, word [rsi + rdx*2]
cmp ax, r9w
jne 0x14003c205
jmp 0x14003c228
movsxd rax, ecx
mov r15b, byte [rsi + rax*2 + 1]
mov rax, qword [r10 + 0x18]
or rcx, 0xffffffffffffffff
mov rdi, r8
mov byte [rbx + rax], r15b
mov rax, qword [r10 + 0x18]
mov r11, r9
inc rax
mov qword [r10 + 0x10], rax
inc rax
mov qword [r10 + 0x18], rax
xor eax, eax
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rax, rcx
mov qword [rsp + 0x60], rcx
cmp word [rsi], r9w
je 0x14003c3be
lea rdx, [rsi + r11*2]
mov r12b, byte [rdx + 1]
mov r14b, byte [rdx]
cmp r11, rax
jae 0x14003c35c
lea rbp, [r11 + r8]
mov edi, r9d
xor r13d, r13d
mov r9, rbp
mov r8, rdx
cmp word [r8], r13w
je 0x14003c2af
movzx ecx, word [r8]
movsx eax, byte [r9]
cmp ecx, eax
jne 0x14003c2af
inc edi
add r8, 2
inc r9
cmp edi, 0x81
jl 0x14003c28c
cmp edi, 2
jl 0x14003c2dc
movsxd rax, edi
mov edx, 3
mov rcx, r10
add r11, rax
call fcn.14003bfec
mov rax, qword [r10 + 0x18]
sub dil, 2
mov byte [rbx + rax], dil
inc qword [r10 + 0x18]
jmp 0x14003c3a6
mov r13b, r14b
sub r13b, byte [rbp]
xor r9d, r9d
mov edi, r9d
mov r8w, word [rdx]
cmp r8w, r9w
je 0x14003c323
movzx ecx, r8w
shr cx, 8
cmp cl, r15b
jne 0x14003c323
movsx ecx, byte [rbp]
movzx eax, r13b
add ecx, eax
xor ecx, r8d
cmp cl, r9b
jne 0x14003c323
inc edi
inc rbp
add rdx, 2
cmp edi, 0x81
jl 0x14003c2e9
cmp edi, 2
jl 0x14003c35c
movsxd rax, edi
mov edx, 3
mov rcx, r10
add r11, rax
call fcn.14003bfec
mov rax, qword [r10 + 0x18]
sub dil, 2
or dil, 0x80
mov byte [rbx + rax], dil
inc qword [r10 + 0x18]
mov rax, qword [r10 + 0x18]
mov byte [rax + rbx], r13b
jmp 0x14003c2d3
mov rcx, r10
cmp r12b, r9b
jne 0x14003c375
xor edx, edx
call fcn.14003bfec
mov rcx, qword [r10 + 0x18]
mov byte [rbx + rcx], r14b
jmp 0x14003c39f
cmp r12b, r15b
jne 0x14003c381
mov edx, 1
jmp 0x14003c366
mov edx, 2
call fcn.14003bfec
mov rcx, qword [r10 + 0x18]
mov byte [rbx + rcx], r14b
inc qword [r10 + 0x18]
mov rax, qword [r10 + 0x18]
mov byte [rax + rbx], r12b
inc qword [r10 + 0x18]
inc r11
mov r8, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
xor r9d, r9d
cmp word [rsi + r11*2], r9w
jne 0x14003c268
mov dl, byte [r10 + 8]
mov rax, qword [r10 + 0x10]
mov ecx, 8
sub ecx, dword [r10 + 0xc]
shl dl, cl
mov byte [rbx + rax], dl
mov rax, qword [r10 + 0x18]
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140040ca8
Capabilities:
Move file

Disassembly:
push rsi
push rdi
push r12
mov eax, 0x5070
call fcn.1400fe810
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x5098], rbx
mov qword [rsp + 0x50a0], rbp
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x5060], rax
mov rbx, rcx
mov r12d, 0x800
mov r8d, r12d
lea rdx, [rsp + 0x4060]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
xor ebp, ebp
cmp eax, ebp
je 0x140040ecd
cmp eax, r12d
jae 0x140040ecd
mov r8d, r12d
lea rdx, [rsp + 0x3060]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x140040ec9
cmp eax, r12d
jae 0x140040ec9
lea rcx, [rsp + 0x4060]
call fcn.140050ce8
mov rsi, rax
lea rcx, [rsp + 0x3060]
call fcn.140050ce8
mov rdi, rax
cmp word [rax], bp
je 0x140040ec5
mov rdx, rax
mov rcx, rsi
call fcn.140068d30
cmp eax, ebp
je 0x140040ec5
mov rcx, rbx
call fcn.140050ce8
mov rcx, rax
mov rdx, rdi
call fcn.140068d30
cmp eax, ebp
jne 0x140040ec5
mov ax, bp
mov word [rsp + 0x1060], ax
mov edi, ebp
cmp ax, bp
jne 0x140040e12
mov r8, r12
mov rdx, rbx
lea rcx, [rsp + 0x1060]
call fcn.140065d00
lea rcx, [rsp + 0x1060]
call fcn.140050ce8
mov rcx, rax
mov r9d, edi
lea r8, str.rtmp_d
mov rdx, r12
call fcn.1400e0c0c
lea rcx, [rsp + 0x1060]
call fcn.14004258c
cmp al, bpl
je 0x140040df3
mov eax, ebp
mov word [rsp + 0x1060], ax
jmp 0x140040dfb
mov ax, word [rsp + 0x1060]
add edi, 0x7b
cmp edi, 0x2710
jl 0x140040d9b
cmp ax, bp
jne 0x140040e12
xor al, al
jmp 0x140040ecf
mov r8, r12
mov rdx, rbx
lea rcx, [rsp + 0x2060]
call fcn.140065d00
mov r8, r12
mov rdx, rsi
lea rcx, [rsp + 0x2060]
call fcn.140050ed0
lea rdx, [rsp + 0x1060]
lea rcx, [rsp + 0x2060]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, ebp
jne 0x140040e56
xor al, al
jmp 0x140040ecf
lea rcx, [rsp + 0x30]
call fcn.140041028
nop
mov dil, bpl
mov rcx, rbx
call fcn.14004258c
cmp al, bpl
jne 0x140040e87
mov r8d, 0x12
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140041264
mov dil, al
lea rdx, [rsp + 0x2060]
lea rcx, [rsp + 0x1060]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dil, bpl
je 0x140040eb7
lea rcx, [rsp + 0x30]
call fcn.1400413c4
lea rcx, [rsp + 0x30]
call fcn.14004142c
nop
lea rcx, [rsp + 0x30]
call fcn.1400417f0
mov al, 1
jmp 0x140040ecf
xor al, al
jmp 0x140040ecf
xor al, al
jmp 0x140040ecf
xor al, al
mov rcx, qword [rsp + 0x5060]
xor rcx, rsp
call fcn.1400e9d80
lea r11, [rsp + 0x5070]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1400414d4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor edi, edi
mov rbp, r8
mov r15, rdx
mov rsi, rcx
cmp r8, rdi
jne 0x140041507
mov al, 1
jmp 0x140041679
cmp dword [rcx + 0x14], 1
jne 0x14004151c
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsi + 8], rax
mov r12b, dil
mov dword [rsp + 0x70], edi
cmp dword [rsi + 0x14], edi
je 0x140041579
mov rbx, rdi
cmp rbp, rdi
jbe 0x1400415a3
mov r8d, 0x4000
mov eax, ebp
mov rcx, rbp
sub rcx, rbx
sub eax, ebx
lea rdx, [rbx + r15]
cmp rcx, r8
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x70]
cmovb r8d, eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete r12b
cmp r12b, dil
je 0x1400415a3
add rbx, 0x4000
cmp rbx, rbp
jb 0x140041530
jmp 0x14004159a
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x70]
mov r8d, ebp
mov rdx, r15
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete r12b
cmp r12b, dil
jne 0x140041672
cmp byte [rsi + 0x1c], dil
je 0x140041672
cmp dword [rsi + 0x14], edi
jne 0x140041672
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rsi]
mov rcx, rsi
mov edi, eax
call qword [rdx + 0x20]
lea rcx, [rsi + 0x26]
mov r13, rax
call fcn.140041e40
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rbx, rbp
jbe 0x14004160d
mov rcx, r13
mov ebx, 0xffffffff
sub rcx, rbp
cmp rcx, rbx
ja 0x14004160d
lea rax, [r13 + rbp]
cmp rax, rbx
jbe 0x14004160d
lea rdx, [rsi + 0x26]
lea rcx, [0x140149f20]
call fcn.14003c700
lea rdx, [rsi + 0x26]
lea rcx, [0x140149f20]
xor r8d, r8d
call fcn.14003c748
xor edi, edi
cmp al, dil
je 0x140041660
mov ecx, dword [rsp + 0x70]
mov rax, rcx
cmp rcx, rbp
jae 0x14004151c
cmp ecx, edi
jbe 0x14004151c
mov rbx, qword [rsi]
mov rcx, rsi
call qword [rbx + 0x20]
mov ecx, dword [rsp + 0x70]
xor r8d, r8d
sub rax, rcx
mov rcx, rsi
mov rdx, rax
call qword [rbx + 0x18]
jmp 0x14004151c
lea r8, [rsi + 0x26]
lea rcx, [0x140149f20]
xor edx, edx
call fcn.14003c914
mov byte [rsi + 0x10], 1
mov al, r12b
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140041768
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 0x14004186c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x14], 1
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
jne 0x140041899
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx + 8], rax
mov rcx, qword [rbx + 8]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140041918
mov rcx, rbx
call fcn.1400417c0
test al, al
je 0x1400418dc
mov r8d, 0x4e20
cmp rdi, r8
jbe 0x1400418dc
mov rdx, rsi
mov rcx, rbx
call fcn.14004186c
jmp 0x14004191c
cmp dword [rbx + 0x14], 1
jne 0x1400418f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x1400418f1
xor eax, eax
jmp 0x14004191c
cmp dword [rbx + 0x14], 0
jne 0x140041913
cmp rdi, 0x8000
jbe 0x140041913
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x140041913
mov r8d, 0x8000
jmp 0x1400418cf
or eax, 0xffffffff
jmp 0x14004191c
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140041c2c
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
mov rbx, rcx
call fcn.140041bb0
test al, al
je 0x140041c5a
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov r11, qword [rbx]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [r11 + 0x18]
add rsp, 0x20
pop rbx
ret

Function at 0x140041dc8
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1038
call fcn.1400fe810
sub rsp, rax
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x1020], rax
lea rdx, [rsp + 0x20]
mov r8d, 0x800
call fcn.14005165c
movzx r11d, word [rsp + 0x20]
lea rax, [rsp + 0x20]
neg r11w
sbb rcx, rcx
and rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x140041e20
cmp eax, 5
je 0x140041e20
xor eax, eax
jmp 0x140041e25
mov eax, 1
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400e9d80
add rsp, 0x1038
ret

Function at 0x140041e40
Capabilities:
Get disk size

Disassembly:
mov eax, 0x1058
call fcn.1400fe810
sub rsp, rax
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rdx, [rsp + 0x40]
mov r8d, 0x800
call fcn.140050f64
movzx eax, word [rsp + 0x40]
and dword [rsp + 0x24], 0
and dword [rsp + 0x20], 0
neg ax
lea rax, [rsp + 0x40]
sbb rcx, rcx
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
and rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x140041ebc
mov eax, dword [rsp + 0x24]
cmp eax, dword [rsp + 0x2c]
ja 0x140041ebc
mov ecx, dword [rsp + 0x20]
shl rax, 0x20
add rax, rcx
jmp 0x140041ebe
xor eax, eax
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400e9d80
add rsp, 0x1058
ret
Function at 0x140041ed8
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x1260
call fcn.1400fe810
sub rsp, rax
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x1250], rax
lea rdx, [rsp + 0x250]
mov r8d, 0x800
call fcn.14005165c
mov dword [rsp + 0x38], 0x105
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor ebx, ebx
lea rcx, [rsp + 0x250]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp eax, ebx
je 0x140041f7e
lea rsi, [rsp + 0x40]
lea rdi, [0x14010d090]
lea ecx, [rbx + 4]
repe cmpsw word [rsi], word [rdi]
je 0x140041f75
lea rsi, [rsp + 0x40]
lea rdi, str.FAT32
lea ecx, [rbx + 6]
repe cmpsw word [rsi], word [rdi]
jne 0x140041f7a
mov ebx, 1
mov al, bl
jmp 0x140041f80
xor al, al
mov rcx, qword [rsp + 0x1250]
xor rcx, rsp
call fcn.1400e9d80
lea r11, [rsp + 0x1260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.1400fe810
sub rsp, rax
mov rax, qword [0x140132350]
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 0x14004202d
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.1400509f8
test al, al
je 0x14004202d
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.1400e9d80
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret

Function at 0x140042050
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.1400fe810
sub rsp, rax
mov rax, qword [0x140132350]
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 bl, bl
jne 0x1400420b7
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rsi
call fcn.1400509f8
test al, al
je 0x1400420b7
lea rcx, [rsp + 0x20]
mov edx, edi
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.1400e9d80
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400420e0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x2030
call fcn.1400fe810
sub rsp, rax
mov rax, qword [0x140132350]
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 bl, bl
jne 0x140042168
lea rdx, [rsp + 0x1020]
mov r8d, 0x800
mov rcx, rdi
call fcn.1400509f8
test al, al
je 0x140042168
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rsi
call fcn.1400509f8
test al, al
je 0x140042168
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.1400e9d80
lea r11, [rsp + 0x2030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140042190
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.1400fe810
sub rsp, rax
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test bl, bl
jne 0x1400421ee
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.1400509f8
test al, al
je 0x1400421ee
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.1400e9d80
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret

Function at 0x140042214
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.1400fe810
sub rsp, rax
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test bl, bl
jne 0x140042272
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.1400509f8
test al, al
je 0x140042272
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.1400e9d80
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret

Function at 0x1400425a8
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
xor ebx, ebx
mov rdi, rcx
cmp qword [rcx + 0x20], rbx
jbe 0x1400425fb
mov qword [rcx + 0x20], rbx
lea r8d, [rbx + 0x38]
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.1400eada0
mov rcx, qword [rdi]
lea eax, [rbx + 0x54]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp eax, ebx
sete al
jmp 0x1400425fd
mov al, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140042a08
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.1400fe810
sub rsp, rax
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov esi, r8d
mov dil, dl
mov rbx, rcx
call fcn.140050408
cmp word [rax], 0x2e
je 0x140042a5b
cmp word [rax], 0x20
je 0x140042a5b
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140042a90
mov rcx, rbx
call fcn.140041fd4
cmp eax, 0xffffffff
jne 0x140042aa3
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rbx
call fcn.1400509f8
test al, al
je 0x140042aa3
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140042aa3
test dil, dil
je 0x140042a9f
mov edx, esi
mov rcx, rbx
call fcn.140042050
xor eax, eax
jmp 0x140042abd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140042ab8
cmp eax, 3
mov eax, 1
jne 0x140042abd
mov eax, 2
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400e9d80
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140043c48
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
mov eax, 0x1280
call fcn.1400fe810
sub rsp, rax
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x1270], rax
mov rsi, rdx
mov rdi, r8
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov r12d, 0x800
cmp rcx, 0xffffffffffffffff
jne 0x140043cfc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140043d26
lea rdx, [rsp + 0x270]
mov r8, r12
mov rcx, rsi
call fcn.1400509f8
test al, al
je 0x140043cd3
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140043d26
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140043cef
cmp eax, 3
je 0x140043cef
cmp eax, 0x12
je 0x140043cef
mov eax, 1
jmp 0x140043cf1
xor eax, eax
mov byte [rdi + 0x1044], al
jmp 0x140043ddd
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140043d1c
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [rdi + 0x1044], al
cmp rbx, 0xffffffffffffffff
je 0x140043ddd
mov r8, r12
mov rdx, rsi
mov rcx, rdi
call fcn.140065d00
lea rdx, [rsp + 0x4c]
mov r8, r12
mov rcx, rdi
call fcn.140050ed0
mov eax, dword [rsp + 0x40]
mov r11d, dword [rsp + 0x3c]
shl r11, 0x20
lea rcx, [rdi + 0x1010]
lea rdx, [rsp + 0x34]
add r11, rax
mov eax, dword [rsp + 0x20]
mov dword [rdi + 0x1008], eax
mov rax, qword [rsp + 0x24]
mov qword [rdi + 0x1000], r11
mov qword [rdi + 0x1028], rax
mov rax, qword [rsp + 0x2c]
mov qword [rdi + 0x1030], rax
mov rax, qword [rsp + 0x34]
mov qword [rdi + 0x1038], rax
call fcn.140067298
lea rcx, [rdi + 0x1018]
lea rdx, [rsp + 0x24]
call fcn.140067298
lea rcx, [rdi + 0x1020]
lea rdx, [rsp + 0x2c]
call fcn.140067298
bt dword [rsp + 0x20], 0xa
jae 0x140043dd5
cmp dword [rsp + 0x44], 0xa0000003
jne 0x140043dd5
mov eax, 1
jmp 0x140043dd7
xor eax, eax
mov byte [rdi + 0x100e], al
and dword [rdi + 0x1040], 0
mov rax, rbx
mov rcx, qword [rsp + 0x1270]
xor rcx, rsp
call fcn.1400e9d80
mov rbx, qword [rsp + 0x12b8]
add rsp, 0x1280
pop r12
pop rdi
pop rsi
ret