joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002460
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001ae00]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002480
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002488
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x1400024a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x14001ae00]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400024c0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400024c8
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400024c0
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1400024c0
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002504
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002518
add rax, 0x28
cmp r9, rax
jne 0x1400024f0
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

Function at 0x140002530
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14001ae00]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002552
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002560
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002552
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002552
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002552
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400025ad
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400025c0
add rdx, 0x28
cmp r10, rdx
jne 0x140002598
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400025cf
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400025df
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400025b6
test ecx, ecx
jg 0x1400025c8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140003c50
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14001ae80]
mov rax, qword [rsi]
test rax, rax
je 0x140003ce0
cmp qword [rax + 0x30], 0
jne 0x140003d00
lea rbx, [0x140019078]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140003cb0
cmp qword [rax + 0x30], 0
jne 0x140003cd0
lea rdx, [0x140019078]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
pop rbx
pop rsi
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140003c92
test rax, rax
jne 0x140003cd0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140003ca0
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140003c70
test rax, rax
jne 0x140003d00
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140003c7b
Function at 0x140003d10
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140003e22
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140003dfa
add rax, 1
cmp rax, 0x6b
je 0x140003e17
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140003df0
cmp edx, 0x6a
je 0x140003e17
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140003e0b
Function at 0x1400078d0
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x14001ae80]
mov rax, qword [rbx]
mov r12, rcx
mov esi, edx
test rax, rax
je 0x1400079a0
cmp qword [rax + 0x60], 0
jne 0x1400079c0
lea rcx, [0x140019068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_lock
mov rcx, r12
call sym.__pthread_get_pointer
test rax, rax
je 0x1400079d0
cmp qword [rax + 0x1d8], r12
jne 0x1400079d0
test byte [rax + 0x40], 0xc
jne 0x1400079d0
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x1400079d0
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x1400079d0
mov rax, qword [rbx]
test rax, rax
je 0x140007a30
cmp qword [rax + 0x60], 0
jne 0x140007a50
lea rcx, [0x140019068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
test esi, esi
je 0x140007a60
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x140007a68
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
jmp sym.pthread_cancel
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x1400078fb
test rax, rax
jne 0x1400079c0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140007906
mov rax, qword [rbx]
test rax, rax
je 0x140007a00
cmp qword [rax + 0x60], 0
jne 0x140007a20
lea rcx, [0x140019068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rbx]
cmp qword [r8 + 0x60], 0
je 0x1400079df
test rax, rax
jne 0x140007a20
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x1400079ea
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x14000796a
test rax, rax
jne 0x140007a50
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140007975
xor eax, eax
jmp 0x1400079f4
mov eax, 0x16
jmp 0x1400079f4
Function at 0x140007ce0
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
mov rbp, r9
call sym.pop_pthread_mem
mov r12, rax
test rax, rax
je 0x140007f49
test rdi, rdi
je 0x140007d1a
mov rax, qword [rax + 0x1d8]
mov qword [rdi], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [r12 + 8], rbp
mov dword [r12 + 0x44], 1
mov rbp, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [r12 + 0xbc], 0
mov r14, r13
mov qword [r12 + 0x28], 0xffffffffffffffff
mov qword [r12 + 0x10], rbx
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call rbp
mov qword [r12 + 0x30], rax
test rax, rax
jne 0x140007d87
add ebx, 1
cmp ebx, 1
je 0x140007e90
mov ecx, 0x14
call r14
cmp ebx, 5
jne 0x140007d55
mov qword [r12 + 0x38], 0xffffffffffffffff
lea r14, [r12 + 0x68]
mov rcx, r14
call sym.pthread_spin_destroy
cmp eax, 1
je 0x140007f8f
cmp qword [r12 + 0x30], 0
mov qword [r12 + 0x68], 0xffffffffffffffff
mov dword [r12], 0xbab1f00d
mov dword [r12 + 0xc0], 0
mov dword [r12 + 0xb8], 0
je 0x140007f32
xor edx, edx
test rsi, rsi
je 0x140007dff
mov eax, dword [rsi]
mov edx, dword [rsi + 0x10]
mov dword [r12 + 0x44], eax
test al, 8
jne 0x140007f60
mov eax, dword [rsi + 0x18]
mov dword [r12 + 0xc0], eax
lea r8, [sym.pthread_create_wrapper]
mov r9, r12
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov r13, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140007ef0
mov eax, dword [r12 + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x140007ec0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [r12 + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [r12 + 0x44], 4
jne 0x140007ea0
mov qword [r12 + 0x28], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor ecx, ecx
call r13
jmp 0x140007d55
mov qword [r12 + 0x28], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140007e6f
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x140007e45
mov edx, 0xf
cmp eax, 0xe
jg 0x140007e45
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x140007e45
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x140007f00
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [r12 + 0x38]
call sym.pthread_mutex_destroy
mov rcx, r14
call sym.pthread_spin_destroy
cmp eax, 1
je 0x140007f8f
mov qword [r12 + 0x68], 0xffffffffffffffff
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
test rdi, rdi
je 0x140007f3e
mov qword [rdi], 0
cmp qword [r12 + 0x1d0], 0
je 0x140007f80
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov dword [rsp + 0x3c], edx
call sym.__pthread_self_lite
mov edx, dword [rsp + 0x3c]
mov eax, dword [rax + 0xc0]
mov dword [r12 + 0xc0], eax
jmp 0x140007dff
mov rcx, r12
call sym.push_pthread_mem.part.0
mov eax, 0xb
jmp 0x140007f4e
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
Function at 0x1400089d0
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400089f0
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140008a38
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400089e4
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140008a25

Function at 0x140008a60
Capabilities:
Check mutex on windows

Disassembly:
push r12
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
lea r8, [0x14001e2c0]
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140008b18
mov rdx, qword [0x14001e200]
lea rcx, [0x14001e200]
mov rax, qword [rdx + 8]
test rax, rax
je 0x140008ae8
cmp rdx, rcx
jne 0x140008aca
mov qword [rdx], rax
cmp rax, rcx
je 0x140008acf
nop dword [rax]
test rax, rax
je 0x140008afa
mov rdx, qword [rdx]
mov qword [rax], rdx
mov rdx, rax
mov rax, qword [rdx + 8]
cmp rax, rcx
jne 0x140008ab8
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
test rax, rax
je 0x140008afa
mov rdx, rax
jmp 0x140008ac6
lea rcx, [0x14001e300]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140008b36
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
lea rcx, str.failed_to_to_lock_cleanup_mutex_n
call sym.__shmem_get_error
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_DeleteAtom]
jmp 0x140008afa
Function at 0x1400011b4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r9b, r9b
movzx r11d, cl
shl r11d, 2
mov rbx, r8
movzx r8d, r9b
xor r10b, r10b
add r8d, r11d
shl r8d, 2
movzx eax, r10b
inc r10b
add eax, r8d
mov cl, byte [rax + rbx]
xor byte [rdx], cl
inc rdx
cmp r10b, 4
jb 0x1400011d5
inc r9b
cmp r9b, 4
jb 0x1400011c7
mov rbx, qword [rsp + 8]
ret
Function at 0x1400011fc
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x14004e010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
mov rdi, rdx
mov ecx, 0x10
lea r14d, [rcx + 0x18]
lea r13d, [rcx - 0xc]
cmp rcx, 0x10
jne 0x1400013d4
movups xmm0, xmmword [rbx + 0xb0]
mov r8, rbx
lea rdx, [rbp - 0x20]
xor ecx, ecx
movdqu xmmword [rbp - 0x20], xmm0
call fcn.1400011b4
mov sil, 1
lea rdx, [rbp - 0x20]
mov r8, r13
mov rcx, rdx
mov r9, r13
movzx eax, byte [rcx]
lea r10, [0x140042150]
mov al, byte [rax + r10]
mov byte [rcx], al
add rcx, r13
sub r9, 1
jne 0x14000126a
inc rdx
sub r8, 1
jne 0x140001264
mov al, byte [rbp - 0x1b]
mov cl, byte [rbp - 0x1f]
mov byte [rbp - 0x1f], al
mov al, byte [rbp - 0x17]
mov byte [rbp - 0x1b], al
mov al, byte [rbp - 0x13]
mov byte [rbp - 0x17], al
mov al, byte [rbp - 0x16]
mov byte [rbp - 0x13], cl
mov cl, byte [rbp - 0x1e]
mov byte [rbp - 0x1e], al
mov al, byte [rbp - 0x12]
mov byte [rbp - 0x16], cl
mov cl, byte [rbp - 0x1a]
mov byte [rbp - 0x1a], al
mov al, byte [rbp - 0x11]
mov byte [rbp - 0x12], cl
mov cl, byte [rbp - 0x1d]
mov byte [rbp - 0x1d], al
mov al, byte [rbp - 0x15]
mov byte [rbp - 0x11], al
mov al, byte [rbp - 0x19]
mov byte [rbp - 0x15], al
mov byte [rbp - 0x19], cl
cmp sil, 0xa
je 0x14000139a
lea r11, [rbp - 0x1f]
mov r15, r13
mov r9b, byte [r11 - 1]
mov r8b, byte [r11 + 2]
mov dl, r9b
xor dl, byte [r11]
xor r8b, byte [r11 + 1]
mov al, dl
shr al, 7
add dl, dl
movzx eax, al
mov r10b, r8b
imul ecx, eax, 0x1b
xor r10b, r9b
xor r10b, byte [r11]
xor cl, dl
mov dl, byte [r11 + 1]
xor dl, byte [r11]
xor cl, r9b
xor cl, r10b
mov al, dl
mov byte [r11 - 1], cl
add dl, dl
shr al, 7
movzx eax, al
imul ecx, eax, 0x1b
mov al, r8b
shr al, 7
add r8b, r8b
movzx eax, al
xor cl, dl
mov dl, byte [r11 + 2]
xor cl, byte [r11]
xor dl, r9b
xor cl, r10b
mov byte [r11], cl
imul ecx, eax, 0x1b
mov al, dl
shr al, 7
add dl, dl
movzx eax, al
xor cl, r8b
xor cl, byte [r11 + 1]
xor cl, r10b
mov byte [r11 + 1], cl
imul ecx, eax, 0x1b
xor cl, dl
xor cl, byte [r11 + 2]
xor cl, r10b
mov byte [r11 + 2], cl
add r11, r13
sub r15, 1
jne 0x1400012e5
mov r8, rbx
lea rdx, [rbp - 0x20]
mov cl, sil
call fcn.1400011b4
inc sil
jmp 0x14000125d
mov r8, rbx
lea rdx, [rbp - 0x20]
mov cl, 0xa
call fcn.1400011b4
mov eax, 0xf
mov cl, byte [rax + rbx + 0xb0]
cmp cl, 0xff
jne 0x1400013c9
mov byte [rbx + rax + 0xb0], 0
sub rax, 1
jns 0x1400013ad
jmp 0x1400013d2
inc cl
mov byte [rbx + rax + 0xb0], cl
xor ecx, ecx
mov al, byte [rbp + rcx - 0x20]
inc rcx
xor byte [rdi], al
inc rdi
sub r14, 1
jne 0x140001236
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140016280
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x1400015d8
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x48
mov rbx, rdx
mov byte [rcx + 8], 0
mov rsi, rcx
lea rbp, [rax + 0x18]
call fcn.140001410
mov r8d, 0x208
mov qword [rsp + 0x30], rbp
and qword [rsp + 0x28], 0
lea rdx, [rsi + 0xa]
mov r9d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, qword [rax]
call fcn.140021bf4
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
lea rcx, [rsi + 0xa]
mov dword [rsi + 0x41c], eax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140001648
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, r8
mov rdi, rdx
mov rbp, rcx
call fcn.140001410
mov r8d, 0x208
mov qword [rsp + 0x30], rbx
and qword [rsp + 0x28], 0
lea rdx, [rbp + 0xa]
mov r9d, r8d
mov qword [rsp + 0x20], rdi
mov rcx, qword [rax]
call fcn.140021bf4
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
lea rcx, [rbp + 0xa]
mov dword [rbp + 0x41c], eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
Function at 0x140002838
Capabilities:
Clear file content

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 [0x14004e010]
xor rax, rsp
mov qword [rbp - 8], rax
cmp qword [rcx + 0x440], 0xffffffffffffffff
mov rsi, rcx
je 0x1400028c4
and dword [rbp - 0x30], 0
lea rdx, [rbp - 0x28]
mov rdi, qword [rcx + 0x450]
xor eax, eax
mov dword [rbp - 0x2c], eax
mov rbx, qword [rbp - 0x30]
call fcn.140014dc0
xor r9d, r9d
lea rdx, [rbx - 0x6c]
mov rcx, rsi
lea r8d, [r9 + 2]
call fcn.140015460
mov rcx, rsi
test al, al
jne 0x1400028e7
lea rdx, str.Set_pos:__s
cmp qword [rbp - 0x10], 8
lea r8, [rbp - 0x28]
cmovae r8, qword [rbp - 0x28]
call fcn.1400015d8
lea rcx, [rbp - 0x28]
call fcn.1400046e0
xor al, al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140016280
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
and dword [rbp - 0x30], 0
lea rdx, [rsi + 0x798]
lea r9, [rbp - 0x30]
mov r8d, 0x6c
call fcn.140014f00
test al, al
jne 0x140002911
lea rdx, str.Cant_read:__s
mov rcx, rsi
jmp 0x1400028a8
lea rcx, [rsi + 0x7e0]
mov r8d, 0x20
lea rdx, [0x14004ebf0]
call fcn.140019d50
test eax, eax
je 0x140002937
lea rdx, str.Invalid_key:__s
jmp 0x14000290c
add rdi, 0xffffffffffffff94
mov rcx, rsi
cmp rdi, qword [rsi + 0x7a0]
je 0x140002953
lea rdx, str.Invalid_size:__s
jmp 0x1400028a8
xor r9d, r9d
lea rdx, [rbx - 0x6c]
lea r8d, [r9 + 2]
call fcn.140015460
mov rdx, qword [rsi + 0x7a0]
mov rcx, rsi
call fcn.1400145d0
mov rcx, qword [rsi + 0x440]
cmp rcx, 0xffffffffffffffff
je 0x1400028bb
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1400028bb
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.140015460
mov eax, dword [rsi + 0x79c]
lea rcx, [rbp - 0x28]
mov qword [rsi + 0x808], rax
call fcn.1400046e0
lea rbx, [rsi + 0x530]
mov rcx, rbx
call fcn.140001070
movups xmm0, xmmword [rsi + 0x7d0]
lea rdi, [rsi + 0x7a8]
mov rcx, rbx
mov rdx, rdi
movdqu xmmword [rbx + 0xb0], xmm0
call fcn.1400011fc
movups xmm0, xmmword [rdi]
lea rbx, [rsi + 0x4f8]
xor edx, edx
movups xmm1, xmmword [rdi + 0x10]
lea rdi, [rsi + 0x518]
mov r8d, 0x1a8
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
mov rax, qword [rsi + 0x7c8]
add rsi, 0x5f0
mov rcx, rsi
mov qword [rdi], rax
call fcn.140019250
mov r9d, 0x100
mov r8, rbx
mov edx, 2
mov rcx, rsi
call fcn.140007e90
test eax, eax
jne 0x1400028c4
mov r8, rdi
mov rcx, rsi
call fcn.140008590
test eax, eax
sete al
jmp 0x1400028c6
Function at 0x140007060
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x9a0]
sub rsp, 0xaa0
mov rax, qword [0x14004e010]
xor rax, rsp
mov qword [rbp + 0x990], rax
mov r14, rcx
mov ecx, 0x2000
call fcn.140022440
xor r12d, r12d
mov rdi, rax
test rax, rax
je 0x1400072b0
call fcn.140015890
mov rcx, rax
call fcn.1400157c0
mov r9, r14
lea r8, str._s
mov edx, 0x1000
mov rcx, rdi
mov r15, rax
call qword [sym.imp.SHLWAPI.dll_wnsprintfW]
xor r9d, r9d
mov dword [rsp + 0x28], 2
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r12
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140007138
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1400072a8
mov dword [rsp + 0x28], r12d
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], r12
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400072a8
lea rdx, [0x140047230]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14000725c
lea rdx, [0x140047234]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14000725c
lea rax, [rsp + 0x5c]
mov r9, r14
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov edx, 0x1000
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_wnsprintfW]
test byte [rsp + 0x30], 0x10
je 0x1400071d0
movzx ebx, r12w
lea rax, str.msocache
movzx edx, bx
lea rcx, [rsp + 0x5c]
mov rdx, qword [rax + rdx*8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000725c
inc bx
cmp bx, 0x28
jb 0x140007199
mov rcx, rdi
call fcn.140007060
jmp 0x14000725c
test byte [rsp + 0x30], 0xa7
je 0x14000725c
lea rdx, str..mallox
lea rcx, [rsp + 0x5c]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x14000725c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, str..mallox
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp ebx, eax
jne 0x14000725c
xor edx, edx
lea rcx, [rbp + 0x180]
mov r8d, 0x810
call fcn.140019250
mov r8, r15
lea rcx, [rbp + 0x180]
mov rdx, rdi
call fcn.14000241c
lea rcx, [rbp + 0x180]
call fcn.140002838
test al, al
je 0x140007250
lea rcx, [rbp + 0x180]
call fcn.1400146a0
lea rcx, [rbp + 0x180]
call fcn.140002534
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140007138
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rax, str.HOW_TO_BACK_FILES.txt
mov r9, r14
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov edx, 0x1000
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rdi
call fcn.140021f18
xor eax, eax
mov rcx, qword [rbp + 0x990]
xor rcx, rsp
call fcn.140016280
lea r11, [rsp + 0xaa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret