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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
mov rsi, rcx
mov edi, dword [rdx + 0x8c]
mov rbx, qword [rdx + 0x28]
mov rbp, qword [rax + 0x28]
imul edi, dword [rdx + 0x80]
add rdi, rbx
jmp 0x1000931e8
mov eax, dword [rdx + 0x88]
mov r12d, dword [rdx + 0x80]
mov r15, rbp
lea r13, [rbx + rax*2]
add r12, rbx
mov r14, rbx
cmp rbx, r13
jae 0x1000931ce
mov esi, 0xe3
movzx r8d, word [r12]
movzx r10d, word [r14]
movzx r9d, word [r14 + 2]
movzx r11d, word [r12 + 2]
mov ecx, r10d
mov eax, r8d
and eax, esi
and ecx, esi
add r14, 4
add ecx, eax
mov eax, r9d
add r12, 4
and eax, esi
add ecx, eax
mov eax, r11d
and eax, esi
lea edx, [rcx + rax + 0x42]
mov ecx, r10d
mov eax, r8d
and eax, 0xff1c
and ecx, 0xff1c
shr edx, 2
add ecx, eax
mov eax, r9d
and eax, 0xff1c
add ecx, eax
mov eax, r11d
and eax, 0xff1c
lea ecx, [rcx + rax + 0x208]
mov eax, 0xff1c
and r10d, eax
and r8d, eax
and r9d, eax
and r11d, eax
add r10d, r8d
shr ecx, 2
xor dx, cx
add r10d, r9d
and dx, si
lea eax, [r10 + r11 + 0x208]
shr eax, 2
xor dx, ax
mov word [r15], dx
add r15, 2
cmp r14, r13
jb 0x100093123
mov rsi, qword [rsp + 0x30]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi]
mov ecx, dword [rax + 0x80]
mov eax, dword [rdx + 0x80]
lea rbx, [rbx + rax*2]
add rbp, rcx
cmp rbx, rdi
jb 0x1000930fb
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x100093340
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
push r15
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
mov rdi, rcx
mov esi, dword [rdx + 0x8c]
mov rbx, qword [rdx + 0x28]
mov rbp, qword [rax + 0x28]
imul esi, dword [rdx + 0x80]
add rsi, rbx
jmp 0x100093466
mov eax, dword [rdx + 0x88]
mov r12d, dword [rdx + 0x80]
mov r15, rbp
lea r13, [rbx + rax*2]
add r12, rbx
mov r14, rbx
cmp rbx, r13
jae 0x10009344c
movzx r8d, word [r12]
movzx r10d, word [r14]
movzx r9d, word [r14 + 2]
movzx r11d, word [r12 + 2]
movzx ecx, r10b
movzx eax, r8b
add ecx, eax
movzx eax, r9b
add r14, 4
add ecx, eax
movzx eax, r11b
add r12, 4
lea edx, [rcx + rax + 2]
mov ecx, r10d
mov eax, r8d
and eax, 0xff00
and ecx, 0xff00
shr edx, 2
add ecx, eax
mov eax, r9d
and eax, 0xff00
add ecx, eax
mov eax, r11d
and eax, 0xff00
lea ecx, [rcx + rax + 0x200]
mov eax, 0xff
shr ecx, 2
xor dx, cx
and dx, ax
mov eax, 0xff00
and r10d, eax
and r8d, eax
and r9d, eax
and r11d, eax
add r10d, r8d
add r10d, r9d
lea eax, [r10 + r11 + 0x200]
shr eax, 2
xor dx, ax
mov word [r15], dx
add r15, 2
cmp r14, r13
jb 0x1000933a5
mov rax, qword [rdi + 8]
mov rdx, qword [rdi]
mov ecx, dword [rax + 0x80]
mov eax, dword [rdx + 0x80]
lea rbx, [rbx + rax*2]
add rbp, rcx
cmp rbx, rsi
jb 0x100093382
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
xor eax, eax
pop r15
pop r14
pop r13
pop r12
ret

Function at 0x100093494
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
push r15
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
mov rsi, rcx
mov edi, dword [rdx + 0x8c]
mov rbx, qword [rdx + 0x28]
mov rbp, qword [rax + 0x28]
imul edi, dword [rdx + 0x80]
add rdi, rbx
jmp 0x1000935aa
mov r12d, dword [rdx + 0x88]
mov r13d, dword [rdx + 0x80]
mov r15, rbp
add r12, rbx
add r13, rbx
mov r14, rbx
cmp rbx, r12
jae 0x100093590
movzx r8d, byte [r13]
movzx r10d, byte [r14]
movzx r9d, byte [r14 + 1]
movzx r11d, byte [r13 + 1]
mov edx, 0xf0
mov ecx, r10d
and ecx, edx
mov eax, r8d
add r14, 2
and eax, edx
add r13, 2
add ecx, eax
mov eax, r9d
and eax, edx
add ecx, eax
mov eax, r11d
and eax, edx
lea edx, [rcx + rax + 0x20]
mov ecx, r10d
mov eax, r8d
and eax, 0xf
and ecx, 0xf
shr edx, 2
add ecx, eax
mov eax, r9d
and eax, 0xf
add ecx, eax
mov eax, r11d
and eax, 0xf
lea ecx, [rcx + rax + 2]
mov eax, 0xf0
and r10d, eax
and r8d, eax
and r9d, eax
and r11d, eax
add r10d, r8d
shr ecx, 2
xor dl, cl
add r10d, r9d
and dl, 0xf
lea eax, [r10 + r11 + 0x20]
shr eax, 2
xor dl, al
mov byte [r15], dl
inc r15
cmp r14, r12
jb 0x1000934f9
mov rax, qword [rsi + 8]
mov rdx, qword [rsi]
mov ecx, dword [rax + 0x80]
mov eax, dword [rdx + 0x80]
lea rbx, [rbx + rax*2]
add rbp, rcx
cmp rbx, rdi
jb 0x1000934d6
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
xor eax, eax
pop r15
pop r14
pop r13
pop r12
ret
Function at 0x1000ac65c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
mov r13, rdx
mov rdx, r9
mov rbx, r9
mov r14, r8
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r12, rax
test rax, rax
je 0x1000ac79e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rbx
mov rcx, rdi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test rbp, rbp
je 0x1000ac795
test eax, eax
je 0x1000ac795
lea rdx, [0x100002840]
mov ecx, 0x38
call fcn.10007b104
mov rdi, rax
test rax, rax
je 0x1000ac706
and dword [rax + 0x28], 0
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rbp
lea rax, [rsi + rbp]
mov qword [rdi + 0x30], r12
mov qword [rdi + 0x18], rax
lea rax, [0x100031f70]
mov qword [rdi], rax
jmp 0x1000ac708
xor edi, edi
test rdi, rdi
jne 0x1000ac720
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 0x8007000e
jmp 0x1000ac7a3
lea rdx, [0x100002840]
mov ecx, 0x58
call fcn.10007b104
mov esi, 1
mov rbx, rax
test rax, rax
je 0x1000ac77b
mov dword [rbx + 8], esi
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], rdi
lea rax, [0x10002e500]
mov rcx, r13
mov qword [rbx], rax
and qword [rbx + 0x20], 0
and qword [rbx + 0x28], 0
and qword [rbx + 0x38], 0
mov qword [rbx + 0x30], 0x64
and qword [rbx + 0x50], 0
mov rax, qword [r13]
call qword [rax + 8]
jmp 0x1000ac77d
xor ebx, ebx
mov qword [r14], rbx
test rbx, rbx
jne 0x1000ac791
mov rax, qword [rdi]
mov edx, esi
mov rcx, rdi
call qword [rax]
jmp 0x1000ac716
xor eax, eax
jmp 0x1000ac7a3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 0x8876038b
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x1000ac7c8
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x40
and qword [rax - 0x28], 0
and dword [rax - 0x30], 0
xor r9d, r9d
mov r14, r8
mov r13, rdx
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov dword [rax - 0x38], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1000ac820
mov eax, 0x88760389
jmp 0x1000ac984
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rsi
mov r12d, eax
cmp eax, 0xffffffff
jne 0x1000ac846
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8876038f
jmp 0x1000ac984
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
lea r8d, [r9 + 2]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1000ac86e
mov rcx, rsi
jmp 0x1000ac836
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
test rax, rax
jne 0x1000ac896
mov ebx, 0x8876038f
jmp 0x1000ac8f6
lea rdx, [0x100002840]
mov ecx, 0x48
call fcn.10007b104
mov rdi, rax
test rax, rax
je 0x1000ac8e1
and dword [rdi + 0x28], 0
mov qword [rax + 8], rbx
mov rax, r12
mov qword [rdi + 0x10], rax
add rax, rbx
mov qword [rdi + 0x20], rbx
mov qword [rdi + 0x18], rax
lea rax, [0x100031fc0]
mov qword [rdi + 0x30], rsi
mov qword [rdi + 0x38], rbp
mov qword [rdi + 0x40], rbx
mov qword [rdi], rax
jmp 0x1000ac8e3
xor edi, edi
test rdi, rdi
jne 0x1000ac90c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, 0x8007000e
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x1000ac984
lea rdx, [0x100002840]
mov ecx, 0x58
call fcn.10007b104
mov rbx, rax
test rax, rax
je 0x1000ac966
mov dword [rbx + 8], 1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], rdi
lea rax, [0x10002e500]
mov rcx, r13
mov qword [rbx], rax
and qword [rbx + 0x20], 0
and qword [rbx + 0x28], 0
and qword [rbx + 0x38], 0
mov qword [rbx + 0x30], 0x64
and qword [rbx + 0x50], 0
mov rax, qword [r13]
call qword [rax + 8]
jmp 0x1000ac968
xor ebx, ebx
mov qword [r14], rbx
test rbx, rbx
jne 0x1000ac982
mov rax, qword [rdi]
lea edx, [rbx + 1]
mov rcx, rdi
call qword [rax]
mov eax, 0x8007000e
jmp 0x1000ac984
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
ret
Function at 0x1000ac9ac
Capabilities:
Get file size
Read file via mapping

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x160
mov rax, qword [0x100190170]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov r14, r8
mov r13, rdx
mov rbx, rcx
call fcn.10007b088
test eax, eax
jne 0x1000aca12
lea rcx, [rsp + 0x40]
mov r8d, 0x104
mov rdx, rbx
call sub.msvcrt.dll_wcstombs
lea rcx, [rsp + 0x40]
mov r8, r14
mov rdx, r13
mov byte [rsp + 0x143], 0
call fcn.1000ac7c8
jmp 0x1000acbb1
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1000aca4d
mov eax, 0x88760389
jmp 0x1000acbb1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rsi
mov r12d, eax
cmp eax, 0xffffffff
jne 0x1000aca73
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8876038f
jmp 0x1000acbb1
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
lea r8d, [r9 + 2]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1000aca9b
mov rcx, rsi
jmp 0x1000aca63
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
test rax, rax
jne 0x1000acac3
mov ebx, 0x8876038f
jmp 0x1000acb23
lea rdx, [0x100002840]
mov ecx, 0x48
call fcn.10007b104
mov rdi, rax
test rax, rax
je 0x1000acb0e
and dword [rdi + 0x28], 0
mov qword [rax + 8], rbx
mov rax, r12
mov qword [rdi + 0x10], rax
add rax, rbx
mov qword [rdi + 0x20], rbx
mov qword [rdi + 0x18], rax
lea rax, [0x100031fc0]
mov qword [rdi + 0x30], rsi
mov qword [rdi + 0x38], rbp
mov qword [rdi + 0x40], rbx
mov qword [rdi], rax
jmp 0x1000acb10
xor edi, edi
test rdi, rdi
jne 0x1000acb39
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, 0x8007000e
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x1000acbb1
lea rdx, [0x100002840]
mov ecx, 0x58
call fcn.10007b104
mov rbx, rax
test rax, rax
je 0x1000acb93
mov dword [rbx + 8], 1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], rdi
lea rax, [0x10002e500]
mov rcx, r13
mov qword [rbx], rax
and qword [rbx + 0x20], 0
and qword [rbx + 0x28], 0
and qword [rbx + 0x38], 0
mov qword [rbx + 0x30], 0x64
and qword [rbx + 0x50], 0
mov rax, qword [r13]
call qword [rax + 8]
jmp 0x1000acb95
xor ebx, ebx
mov qword [r14], rbx
test rbx, rbx
jne 0x1000acbaf
mov rax, qword [rdi]
lea edx, [rbx + 1]
mov rcx, rdi
call qword [rax]
mov eax, 0x8007000e
jmp 0x1000acbb1
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.10017a260
add rsp, 0x160
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1000acf18
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
lea rax, [0x10002e548]
mov rdi, rcx
mov qword [rcx], rax
call fcn.1000adaf0
lea rcx, [rdi + 0x60]
call fcn.1000e4918
mov rcx, qword [rdi + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rdi + 0x88]
xor esi, esi
cmp rbx, rsi
je 0x1000acf75
mov rcx, qword [rbx + 0x18]
call sub.msvcrt.dll_free
mov rcx, rbx
call sub.msvcrt.dll_free
mov rbx, qword [rdi + 0x90]
cmp rbx, rsi
je 0x1000acf92
mov rcx, qword [rbx + 0x18]
call sub.msvcrt.dll_free
mov rcx, rbx
call sub.msvcrt.dll_free
mov rax, qword [rdi + 0x98]
cmp rax, rsi
je 0x1000acffe
mov rbp, rsi
cmp qword [rax], rsi
jbe 0x1000acfe1
mov rax, qword [rdi + 0x98]
movsxd rbx, ebp
mov rcx, qword [rax + 0x18]
mov rcx, qword [rcx + rbx*8]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov r11, qword [rdi + 0x98]
mov rcx, qword [r11 + 0x18]
mov rcx, qword [rcx + rbx*8]
call sub.msvcrt.dll_free
mov rax, qword [rdi + 0x98]
inc rbp
cmp rbp, qword [rax]
jb 0x1000acfa6
mov rbx, qword [rdi + 0x98]
cmp rbx, rsi
je 0x1000acffe
mov rcx, qword [rbx + 0x18]
call sub.msvcrt.dll_free
mov rcx, rbx
call sub.msvcrt.dll_free
mov rbx, qword [rdi + 0xa0]
cmp rbx, rsi
je 0x1000ad01b
mov rcx, qword [rbx + 0x18]
call sub.msvcrt.dll_free
mov rcx, rbx
call sub.msvcrt.dll_free
mov rcx, qword [rdi + 0x58]
call sub.msvcrt.dll_free
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x10]
lea rcx, [rdi + 0x60]
call fcn.1000e4918
mov rcx, qword [rdi + 0x68]
call sub.msvcrt.dll_free
cmp qword [rdi + 0x50], rsi
je 0x1000ad073
mov rbx, rsi
cmp qword [rdi + 0x38], rsi
jbe 0x1000ad073
mov rax, qword [rdi + 0x50]
cmp qword [rax + rbx*8], rsi
je 0x1000ad06a
mov rcx, qword [rax + rbx*8]
mov rax, qword [rcx]
call qword [rax]
mov r11, qword [rdi + 0x50]
mov qword [r11 + rbx*8], rsi
inc rbx
cmp rbx, qword [rdi + 0x38]
jb 0x1000ad04f
mov rcx, qword [rdi + 0x50]
call sub.msvcrt.dll_free
cmp qword [rdi + 0x30], rsi
je 0x1000ad0a9
cmp qword [rdi + 0x18], rsi
jbe 0x1000ad0a9
mov rax, qword [rdi + 0x30]
mov rcx, qword [rax + rsi*8]
add dword [rcx + 0x20], 0xffffffff
jne 0x1000ad0a0
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
inc rsi
cmp rsi, qword [rdi + 0x18]
jb 0x1000ad088
mov rcx, qword [rdi + 0x30]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
jmp sub.msvcrt.dll_free
Function at 0x1000ad0d4
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x40
mov r14, rcx
mov rdi, rdx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rsi, rdx
lea rdx, [0x100002840]
repne scasb al, byte [rdi]
mov r13, r9
mov ebp, r8d
not rcx
lea rdi, [rcx - 1]
call fcn.10007b104
mov rbx, rax
test rax, rax
jne 0x1000ad12d
mov eax, 0x8007000e
jmp 0x1000ad219
lea r8, [rdi + 1]
mov rdx, rsi
mov rcx, rax
call sub.msvcrt.dll_memcpy
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rsi
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x1000ad181
mov rcx, rbx
call sub.msvcrt.dll_free
mov eax, 0x8876038f
jmp 0x1000ad219
test bpl, 2
jne 0x1000ad177
lea rdx, [0x100002840]
mov ecx, 0xb0
call fcn.10007b104
test rax, rax
je 0x1000ad1c5
mov ecx, ebp
and ebp, 1
mov r9, r12
shr ecx, 1
mov r8, rbx
mov rdx, r14
and ecx, 1
mov dword [rsp + 0x28], ecx
mov rcx, rax
mov dword [rsp + 0x20], ebp
call fcn.1000acc70
mov rdi, rax
jmp 0x1000ad1c7
xor edi, edi
test rdi, rdi
jne 0x1000ad1eb
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, rbx
call sub.msvcrt.dll_free
jmp 0x1000ad123
mov rcx, rdi
call fcn.1000ad6d4
test eax, eax
je 0x1000ad213
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x1000ad177
mov qword [r13], rdi
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
ret
Function at 0x1000ad240
Capabilities:
Delete file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x168
mov rax, qword [0x100190170]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbp, r9
mov esi, r8d
mov rbx, rdx
mov r14, rcx
call fcn.10007b088
test eax, eax
jne 0x1000ad2ae
lea rcx, [rsp + 0x40]
mov r8d, 0x104
mov rdx, rbx
call sub.msvcrt.dll_wcstombs
lea rdx, [rsp + 0x40]
mov r9, rbp
mov r8d, esi
mov rcx, r14
mov byte [rsp + 0x143], 0
call fcn.1000ad0d4
jmp 0x1000ad3cf
xor eax, eax
or r15, 0xffffffffffffffff
mov rdi, rbx
lea r13d, [rax + 2]
mov rcx, r15
repne scasw ax, word [rdi]
mov rax, r13
not rcx
mov rdi, rcx
mul rcx
lea rdx, [0x100002840]
cmovo rax, r15
mov rcx, rax
call fcn.10007b104
mov r12, rax
test rax, rax
jne 0x1000ad2f2
mov eax, 0x8007000e
jmp 0x1000ad3cf
lea r8, [rdi + rdi]
mov rdx, rbx
mov rcx, rax
call sub.msvcrt.dll_memcpy
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, r15
jne 0x1000ad337
mov edi, 0x8876038f
jmp 0x1000ad393
lea rdx, [0x100002840]
mov ecx, 0xb0
call fcn.10007b104
test rax, rax
je 0x1000ad375
mov ecx, esi
and esi, 1
mov r9, r13
shr ecx, 1
mov r8, r12
mov rdx, r14
and ecx, 1
mov dword [rsp + 0x28], ecx
mov rcx, rax
mov dword [rsp + 0x20], esi
call fcn.1000acde0
mov rdi, rax
jmp 0x1000ad377
xor edi, edi
test rdi, rdi
jne 0x1000ad39f
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 0x8007000e
mov rcx, r12
call sub.msvcrt.dll_free
mov eax, edi
jmp 0x1000ad3cf
mov rcx, rdi
call fcn.1000ad6d4
test eax, eax
je 0x1000ad3c9
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 0x8876038f
jmp 0x1000ad3cf
mov qword [rbp], rdi
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.10017a260
add rsp, 0x168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1000adaf0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xf0
mov rax, qword [0x100190170]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rax, qword [rcx + 0x98]
xor r14d, r14d
mov rbx, rcx
cmp rax, r14
je 0x1000add40
cmp qword [rax], r14
je 0x1000add40
mov rax, qword [rcx + 0xa0]
cmp rax, r14
je 0x1000add40
cmp qword [rax], r14
je 0x1000add40
mov ecx, dword [rcx + 0x80]
cmp ecx, r14d
je 0x1000adb8c
cmp ecx, 1
jne 0x1000adbb7
mov edx, dword [rbx + 0xa8]
mov rcx, rbx
call fcn.1000ad3fc
lea rcx, [rbx + 0x60]
mov dword [rsp + 0x40], r14d
cmp qword [rcx], r14
je 0x1000adbb7
lea r8d, [r14 + 0x10]
lea rdx, [0x10002e4c0]
jmp 0x1000adbad
lea rcx, [rbx + 0x60]
mov dword [rsp + 0x48], 0x37
mov dword [rsp + 0x40], r14d
cmp qword [rcx], r14
je 0x1000adbb7
mov r8d, 2
lea rdx, [rsp + 0x48]
lea r9, [rsp + 0x40]
call fcn.1000e4984
mov rcx, qword [rbx + 0x78]
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
cmp eax, 0xffffffff
jne 0x1000adbdd
mov eax, 0x8876038f
jmp 0x1000add42
mov rax, qword [rbx + 0x98]
mov rbp, r14
cmp qword [rax], r14
jbe 0x1000add40
mov rax, qword [rbx + 0xa0]
movsxd r12, ebp
xor r9d, r9d
mov rcx, qword [rax + 0x18]
xor r8d, r8d
mov edx, dword [rcx + r12*4]
mov rcx, qword [rbx + 0x78]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1000adbd3
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x48], r14d
cmp qword [rbx + 0x60], r14
je 0x1000adc3f
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x50]
lea rcx, [rbx + 0x60]
mov r8d, 4
call fcn.1000e4984
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x50], r14d
cmp qword [rbx + 0x60], r14
je 0x1000adc68
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x48]
lea rcx, [rbx + 0x60]
mov r8d, 4
call fcn.1000e4984
mov rcx, qword [rbx + 0x78]
xor r9d, r9d
xor r8d, r8d
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1000adbd3
mov rax, qword [rbx + 0x98]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov rcx, qword [rax + 0x18]
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rcx + r12*8]
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1000adbd3
mov r13d, r14d
mov rcx, rax
jmp 0x1000add01
mov eax, dword [rsp + 0x40]
cmp eax, r14d
je 0x1000add21
mov dword [rsp + 0x50], r14d
cmp qword [rbx + 0x60], r14
je 0x1000adcfb
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x60]
lea rcx, [rbx + 0x60]
mov r8d, eax
call fcn.1000e4984
mov eax, dword [rsp + 0x40]
add r13d, eax
mov rcx, r12
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov r8d, 0x80
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, r14d
jne 0x1000adccd
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx + 0x98]
inc rbp
add esi, r13d
cmp rbp, qword [rax]
jb 0x1000adbf0
xor eax, eax
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.10017a260
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1000ae528
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rax, [0x10002e5c0]
mov rbx, rcx
mov qword [rcx], rax
mov rcx, qword [rcx + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x1000ae568
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [rbx + 0x80]
test al, 0x40
je 0x1000ae582
test al, al
js 0x1000ae590
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1000ae590
test al, al
js 0x1000ae590
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [rbx + 0x18]
call sub.msvcrt.dll_free
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x10]
xor edi, edi
cmp qword [rbx + 0x58], rdi
je 0x1000ae5d4
mov rsi, rdi
cmp qword [rbx + 0x40], rdi
jbe 0x1000ae5d4
mov rax, qword [rbx + 0x58]
mov rcx, qword [rax + rsi*8]
cmp rcx, rdi
je 0x1000ae5cb
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
inc rsi
cmp rsi, qword [rbx + 0x40]
jb 0x1000ae5b4
mov rcx, qword [rbx + 0x58]
call sub.msvcrt.dll_free
cmp qword [rbx + 0x38], rdi
je 0x1000ae60a
cmp qword [rbx + 0x20], rdi
jbe 0x1000ae60a
mov rax, qword [rbx + 0x38]
mov rcx, qword [rax + rdi*8]
add dword [rcx + 0x20], 0xffffffff
jne 0x1000ae601
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
inc rdi
cmp rdi, qword [rbx + 0x20]
jb 0x1000ae5e9
mov rcx, qword [rbx + 0x38]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp sub.msvcrt.dll_free