joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140025404
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 0x140025466
mov r8d, 1
cmp edx, r8d
jb 0x140025448
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 0x140025432
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.14007a940
mov eax, dword [rdi]
jmp 0x1400254a3
jae 0x1400254a7
mov edx, 1
cmp r9d, edx
jb 0x140025488
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 0x140025472
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.14007a940
mov eax, dword [rbx]
mov dword [rsi], eax
jmp 0x1400254ed
or r8d, 0xffffffff
test r9d, r9d
je 0x1400254ca
mov rdx, rdi
lea rcx, [rbx + r9*4]
sub rdx, rbx
mov eax, dword [rcx]
cmp dword [rdx + rcx], eax
jne 0x1400254ca
sub rcx, 4
add r9d, r8d
jne 0x1400254ba
mov dword [rsi], r9d
test r9d, r9d
je 0x1400254ed
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 0x1400254dc
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400255a4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x20
mov eax, dword [0x1400b3ac8]
inc eax
mov dword [0x1400b3ac8], eax
cmp eax, 1
jg 0x140025674
mov esi, 0x20000
mov ecx, esi
call fcn.140080d8c
xor ebx, ebx
mov qword [0x1400b3ac0], rax
test rax, rax
jne 0x1400255ef
dec dword [0x1400b3ac8]
mov eax, 1
jmp 0x140025676
mov rcx, rsi
call fcn.140080d8c
mov qword [0x1400b3ab8], rax
mov r8, rax
test rax, rax
jne 0x140025621
dec dword [0x1400b3ac8]
mov rcx, qword [0x1400b3ac0]
call fcn.140080c1c
mov qword [0x1400b3ac0], rbx
jmp 0x1400255e5
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 0x140025636
mov rcx, qword [0x1400b3ac0]
mov eax, dword [r8]
lea r8, [r8 + 4]
mov dword [rcx + rax*4], ebx
inc ebx
cmp ebx, esi
jb 0x140025662
mov dword [rcx], esi
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rsi
ret

Function at 0x140025ac4
Capabilities:
Encode data using xor

Disassembly:
movsxd r9, dword [rcx]
mov edx, 0x11
cmp r9d, edx
jle 0x140025af7
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 0x140025add
cmp dword [rcx], edx
jbe 0x140025b0c
mov dword [rcx], edx
mov eax, edx
cmp dword [rcx + rax*4], 0
jne 0x140025b0c
sub edx, 1
mov dword [rcx], edx
jne 0x140025afd
ret
Function at 0x140031858
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x14], 0
mov rbx, rcx
jne 0x14003188f
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x14003187b
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14005b02f.0]
cmp byte [rbx + 0x21], 0
je 0x14003188f
lea rcx, [rbx + 0x40]
add rsp, 0x20
pop rbx
jmp fcn.140032f20
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140031898
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 0x1400318ca
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 0x140031947
mov rcx, rbx
call fcn.140031a74
test al, al
je 0x14003190d
mov r8d, 0x4e20
cmp rsi, r8
jbe 0x14003190d
mov rdx, rbp
mov rcx, rbx
call fcn.140031898
jmp 0x14003194b
cmp dword [rbx + 0x14], 1
jne 0x140031922
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x140031922
xor eax, eax
jmp 0x14003194b
cmp dword [rbx + 0x14], 0
jne 0x140031942
mov edi, 0x8000
cmp rsi, rdi
jbe 0x140031942
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x140031942
mov r8d, edi
jmp 0x140031900
or eax, 0xffffffff
jmp 0x14003194b
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 0x140031d1c
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
mov rbx, rcx
call fcn.140031d78
test al, al
je 0x140031d50
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.0x14005b02f.0]
add rsp, 0x20
pop rbx
ret

Function at 0x140032360
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 0x1400323e0
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
sub rsp, 0x70
mov rax, qword [0x1400aa998]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14, r8
mov qword [rsp + 0x38], rdx
mov rsi, rcx
xor edi, edi
test r8, r8
jne 0x14003241c
mov al, 1
jmp 0x14003260d
lea r15, [rcx + 8]
cmp dword [rcx + 0x14], 1
jne 0x140032439
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [r15], rax
mov rdx, qword [rsp + 0x38]
mov bpl, dil
mov dword [rsp + 0x30], edi
cmp dword [rsi + 0x14], edi
je 0x140032498
mov rbx, rdi
test r14, r14
je 0x1400324bd
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, [rsp + 0x30]
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test eax, eax
je 0x1400324b4
add rbx, 0x4000
cmp rbx, r14
mov rdx, qword [rsp + 0x38]
jb 0x14003244d
jmp 0x1400324b4
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x30]
mov r8d, r14d
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test bpl, bpl
jne 0x140032606
cmp byte [rsi + 0x22], dil
je 0x140032606
cmp dword [rsi + 0x14], edi
jne 0x140032606
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.0x14005b02f.0]
mov r13, rax
lea r12, [rsi + 0x40]
mov rcx, r12
call fcn.1400335dc
mov rbx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rbx, r14
jbe 0x14003252f
mov rcx, r13
sub rcx, r14
mov ebx, 0xffffffff
cmp rcx, rbx
ja 0x14003252f
lea rax, [r14 + r13]
cmp rax, rbx
jbe 0x14003252f
mov rdx, r12
lea rcx, [0x1400b3b88]
call fcn.140027a50
xor r8d, r8d
mov rdx, r12
lea rcx, [0x1400b3b88]
call fcn.140027184
xor edi, edi
test al, al
je 0x140032590
mov ecx, dword [rsp + 0x30]
cmp rcx, r14
mov rdx, qword [rsp + 0x38]
jae 0x140032439
test ecx, ecx
je 0x140032439
mov rbx, qword [rsi]
mov rcx, rsi
mov rax, qword [rbx + 0x28]
call qword [case.0x14005b02f.0]
mov ecx, dword [rsp + 0x30]
sub rax, rcx
xor r8d, r8d
mov rdx, rax
mov rcx, rsi
mov rax, qword [rbx + 0x20]
call qword [case.0x14005b02f.0]
jmp 0x140032434
mov qword [rsp + 0x40], rdi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xor r8d, r8d
lea rdx, [0x140091a30]
lea rcx, [rsp + 0x40]
call fcn.1400012dc
nop
mov r8, r12
lea rdx, [rsp + 0x40]
lea rcx, [0x1400b3b88]
call fcn.140027a30
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140032606
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140032601
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140032632
call fcn.140078b24
mov byte [rsi + 0x10], 1
mov al, bpl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140078ca0
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.14007e144
int3
Function at 0x140032e34
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400aa998]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x140032e5f
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor esi, esi
test eax, eax
setne dil
test eax, eax
jne 0x140032ef9
mov qword [rsp + 0x20], rsi
movdqa xmm0, xmmword [0x140090bc0]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], si
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14004b534
test al, al
je 0x140032ebb
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140032ef9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140032ef4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140032f19
call fcn.140078b24
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140078ca0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.14007e144
int3

Function at 0x140032f20
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400aa998]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x140032f4b
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
test eax, eax
setne dil
test eax, eax
jne 0x140032fe5
mov qword [rsp + 0x20], rsi
movdqa xmm0, xmmword [0x140090bc0]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], si
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14004b534
test al, al
je 0x140032fa7
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140032fe5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140032fe0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140033005
call fcn.140078b24
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140078ca0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.14007e144
int3

Function at 0x14003349c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x68
cmp qword [rcx + 0x18], 0
jbe 0x1400334f1
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 0x1400334f3
mov al, 1
add rsp, 0x68
ret
Function at 0x1400334f8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400aa998]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x140033523
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1400335b6
xor esi, esi
mov qword [rsp + 0x20], rsi
movdqa xmm0, xmmword [0x140090bc0]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], si
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14004b534
test al, al
je 0x140033578
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x1400335b6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400335b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400335d5
call fcn.140078b24
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140078ca0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.14007e144
int3

Function at 0x1400335dc
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1400aa998]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], bx
lea rdx, [rbp - 0x28]
call fcn.14004b19c
mov qword [rbp - 0x40], rbx
cmp qword [rbp - 0x18], rbx
jne 0x140033624
mov ecx, ebx
jmp 0x140033632
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 0x14003365c
mov eax, dword [rbp - 0x3c]
cmp eax, dword [rbp - 0x34]
ja 0x14003365c
mov ebx, eax
shl rbx, 0x20
mov eax, dword [rbp - 0x40]
add rbx, rax
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x140033698
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140033693
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400336b2
call fcn.140078b24
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140078ca0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rbp
ret
call fcn.14007e144
int3
Function at 0x140033918
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400aa998]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], bx
lea rdx, [rsp + 0x40]
call fcn.14004ae44
cmp qword [rsp + 0x50], rbx
jne 0x14003396d
mov ecx, ebx
jmp 0x14003397e
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], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x1400339d8
lea rdx, [0x140091a88]
lea rcx, [rsp + 0x60]
call fcn.140082360
test eax, eax
je 0x1400339d6
lea rdx, str.FAT32
lea rcx, [rsp + 0x60]
call fcn.140082360
test eax, eax
jne 0x1400339d8
mov bl, 1
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140033a16
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140033a11
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140033a38
call fcn.140078b24
mov al, bl
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140078ca0
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rbp
ret
call fcn.14007e144
int3

Function at 0x140033a4c
Capabilities:
Get disk information

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
mov rax, qword [0x1400aa998]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov qword [r11 - 0x38], rbx
mov qword [r11 - 0x28], rbx
mov qword [r11 - 0x20], 7
mov word [rsp + 0x20], bx
lea rdx, [r11 - 0x38]
call fcn.14004ae44
cmp qword [rsp + 0x30], rbx
jne 0x140033a8e
mov ecx, ebx
jmp 0x140033a9f
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x140033aaf
cmp eax, 5
jne 0x140033ab1
mov bl, 1
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140033aef
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140033aea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140033b04
call fcn.140078b24
mov al, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140078ca0
add rsp, 0x50
pop rbx
ret
call fcn.14007e144
int3
Function at 0x140033dd8
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1400aa998]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14d, r8d
mov bpl, dl
mov rdi, rcx
call fcn.14004ac9c
cmp ax, 0x2e
je 0x140033e36
cmp ax, 0x20
je 0x140033e36
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140033e20
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
xor ebx, ebx
test eax, eax
jne 0x140033ed1
jmp 0x140033e3a
xor ebx, ebx
mov esi, ebx
mov rcx, rdi
call fcn.1400334f8
cmp eax, 0xffffffff
jne 0x140033ee5
mov qword [rsp + 0x20], rbx
movdqa xmm0, xmmword [0x140090bc0]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], bx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14004b534
test al, al
je 0x140033e8f
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140033ecd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140033ec8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140033f22
call fcn.140078b24
test esi, esi
je 0x140033ee5
test bpl, bpl
je 0x140033ee1
mov edx, r14d
mov rcx, rdi
call fcn.140034748
xor eax, eax
jmp 0x140033f00
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140033efb
cmp eax, 3
sete bl
lea eax, [rbx + 1]
jmp 0x140033f00
mov eax, 2
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140078ca0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14007e144
int3
Function at 0x140034348
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 [0x1400aa998]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rdx
mov rbx, rcx
cmp qword [rdx + 0x18], 8
jb 0x14003437b
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x140034385
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
xor r14d, r14d
test eax, eax
setne sil
test eax, eax
jne 0x14003448f
mov qword [rbp - 0x30], r14
movdqa xmm0, xmmword [0x140090bc0]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r14w
mov qword [rbp - 0x50], r14
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r14w
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.14004b534
test al, al
je 0x140034408
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.14004b534
test al, al
je 0x140034408
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 0x140034445
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, rbx
jb 0x140034440
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400344b9
call fcn.140078b24
movdqa xmm0, xmmword [0x140090bc0]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r14w
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x14003448f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, rbx
jb 0x14003448a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400344b3
call fcn.140078b24
mov al, sil
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140078ca0
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.14007e144
nop
call fcn.14007e144
nop
int3
Function at 0x140034748
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400aa998]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov esi, edx
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x140034772
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ebp, ebp
test eax, eax
setne dil
test eax, eax
jne 0x14003480e
mov qword [rsp + 0x20], rbp
movdqa xmm0, xmmword [0x140090bc0]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], bp
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14004b534
test al, al
je 0x1400347d0
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14003480e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140034809
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003482e
call fcn.140078b24
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140078ca0
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
call fcn.14007e144
int3
Function at 0x140035848
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x1400aa998]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rdi, r8
mov rbx, rdx
mov r14, rcx
xor r15d, r15d
or rsi, 0xffffffffffffffff
cmp rcx, rsi
jne 0x140035964
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x14003589a
mov rcx, qword [rdx]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
cmp rax, rsi
jne 0x140035984
mov qword [rsp + 0x20], r15
movdqa xmm0, xmmword [0x140090bc0]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], r15w
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14004b534
test al, al
je 0x1400358fa
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14003593c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035937
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140035ab4
call fcn.140078b24
cmp r14, rsi
jne 0x140035984
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
test ecx, 0xffffffee
jne 0x14003595a
cmp eax, 0x13
mov al, r15b
jne 0x14003595c
mov al, 1
mov byte [rdi + 0x64], al
jmp 0x140035a81
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140035984
mov r14, rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x14003595c
cmp rdi, rbx
je 0x1400359a2
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140035996
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rdi
call fcn.1400099c4
mov qword [rsp + 0x20], r15
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
lea rax, [rsp + 0x6c]
inc rsi
cmp word [rax + rsi*2], r15w
jne 0x1400359b5
mov r8, rsi
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.1400012dc
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14004cc6c
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140035a22
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035a1d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140035aae
call fcn.140078b24
mov ecx, dword [rsp + 0x5c]
shl rcx, 0x20
mov eax, dword [rsp + 0x60]
add rcx, rax
mov qword [rdi + 0x20], rcx
mov eax, dword [rsp + 0x40]
mov dword [rdi + 0x28], eax
mov rax, qword [rsp + 0x44]
mov qword [rdi + 0x48], rax
mov rax, qword [rsp + 0x4c]
mov qword [rdi + 0x50], rax
mov rax, qword [rsp + 0x54]
mov qword [rdi + 0x58], rax
lea rcx, [rdi + 0x30]
lea rdx, [rsp + 0x54]
call fcn.140068e70
lea rcx, [rdi + 0x38]
lea rdx, [rsp + 0x44]
call fcn.140068e70
lea rcx, [rdi + 0x40]
lea rdx, [rsp + 0x4c]
call fcn.140068e70
mov dword [rdi + 0x60], r15d
mov rax, r14
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140078ca0
mov rbx, qword [rsp + 0x2e8]
add rsp, 0x2a0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14007e144
int3
call fcn.14007e144
int3