joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001fafc
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rcx, rdx
call fcn.1400295e0
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ebx, ebx
test eax, eax
jne 0x14001fb80
mov r9d, 0xb0
lea r8, str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerNoMSIInstaller7zPackageHepler.cpp
lea edx, [rbx + 2]
lea rcx, [rsp + 0x30]
call fcn.14000b3b8
nop
mov rcx, rdi
call fcn.1400295e0
mov rbx, rax
lea rdx, str.C7zWrap::CreateDir____create_directory_failed__directory_is:
lea rcx, [0x1400be210]
call fcn.140009fb8
mov rcx, rax
mov rdx, rbx
call fcn.140009fb8
nop
lea rcx, [rsp + 0x30]
call fcn.14000b5e4
mov ebx, 0x2778
mov rcx, rdi
call fcn.140029560
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001fcb4
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x30
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov rcx, r8
call fcn.1400295e0
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.1400239c0
test eax, eax
je 0x14001fd42
mov r9d, 0xcf
lea r8, str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerNoMSIInstaller7zPackageHepler.cpp
mov edx, 2
lea rcx, [rbp + 0x38]
call fcn.14000b3b8
nop
mov rcx, rdi
call fcn.1400295e0
mov rbx, rax
lea rdx, str.C7zWrap::OutFile____open_dest_file_failed__filename_is:
lea rcx, [0x1400be210]
call fcn.140009fb8
mov rcx, rax
mov rdx, rbx
call fcn.140009fb8
nop
lea rcx, [rbp + 0x38]
call fcn.14000b5e4
mov ebx, 0x2779
jmp 0x14001fde2
mov rax, qword [rbx + 0x398]
mov qword [rbp + 0x38], rax
mov rdx, qword [rbx + 0x3a0]
add rdx, qword [rbx + 0x380]
lea r8, [rbp + 0x38]
lea rcx, [rbp - 0x10]
call fcn.140023a8c
test eax, eax
jne 0x14001fe51
mov rax, qword [rbx + 0x398]
cmp qword [rbp + 0x38], rax
jne 0x14001fe51
lea rcx, [rbp - 0x10]
call fcn.1400239cc
test eax, eax
je 0x14001fdf1
mov r9d, 0xda
lea r8, str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerNoMSIInstaller7zPackageHepler.cpp
mov edx, 2
lea rcx, [rbp + 0x38]
call fcn.14000b3b8
nop
mov rcx, rdi
call fcn.1400295e0
mov rbx, rax
lea rdx, str.C7zWrap::OutFile____close_dest_file_failed__filename_is:
lea rcx, [0x1400be210]
call fcn.140009fb8
mov rcx, rax
mov rdx, rbx
call fcn.140009fb8
nop
lea rcx, [rbp + 0x38]
call fcn.14000b5e4
mov ebx, 0x277b
mov rcx, rdi
call fcn.140029560
mov eax, ebx
jmp 0x14001feae
mov r8, qword [rbx + 0x310]
test r8, r8
je 0x14001fe45
mov cl, sil
and cl, 7
mov edx, 0x80
sar edx, cl
mov rax, rsi
shr rax, 3
test byte [rax + r8], dl
je 0x14001fe45
mov rax, qword [rbx + 0x318]
mov ecx, dword [rax + rsi*4]
mov eax, ecx
mov edx, ecx
and edx, 0x7fff
and eax, 0xf0000000
cmove edx, ecx
mov rcx, rdi
call fcn.1400295e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop
mov rcx, rdi
call fcn.140029560
xor eax, eax
jmp 0x14001feae
mov r9d, 0xd5
lea r8, str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerNoMSIInstaller7zPackageHepler.cpp
mov edx, 2
lea rcx, [rbp + 0x38]
call fcn.14000b3b8
nop
mov rcx, rdi
call fcn.1400295e0
mov rbx, rax
lea rdx, str.C7zWrap::OutFile____write_dest_file_failed__filename_is:
lea rcx, [0x1400be210]
call fcn.140009fb8
mov rcx, rax
mov rdx, rbx
call fcn.140009fb8
nop
lea rcx, [rbp + 0x38]
call fcn.14000b5e4
nop
mov rcx, rdi
call fcn.140029560
mov eax, 0x277a
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x140022af8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
lea r11, [0x1400bfb00]
xor edx, edx
mov r8, r11
mov r9d, edx
mov r10d, 8
mov ecx, r9d
mov eax, r9d
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
mov r9d, ecx
xor r9d, eax
sub r10, 1
jne 0x140022b11
mov dword [r8], r9d
inc edx
add r8, 4
cmp edx, 0x100
jb 0x140022b08
lea r8, [0x1400bff00]
mov r9d, 0x700
mov edx, dword [r8 - 0x400]
movzx ecx, dl
shr edx, 8
xor edx, dword [r11 + rcx*4]
mov dword [r8], edx
lea r8, [r8 + 4]
sub r9, 1
jne 0x140022b4e
lea rax, [0x140022ba0]
mov qword [0x1400bfaf0], rax
call fcn.1400245c8
mov rcx, qword [0x1400bfaf0]
lea rdx, [0x140022c70]
test eax, eax
cmove rcx, rdx
mov qword [0x1400bfaf0], rcx
add rsp, 0x28
ret

Function at 0x140023a8c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, qword [r8]
mov rdi, r8
mov rsi, rdx
mov r14, rcx
test rbx, rbx
je 0x140023afa
and qword [r8], 0
mov r15d, 0x400000
and dword [rsp + 0x60], 0
lea r9, [rsp + 0x60]
mov rcx, qword [r14]
mov r8d, ebx
cmp rbx, r15
mov rdx, rsi
cmova r8d, r15d
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [rsp + 0x60]
add qword [rdi], rdx
add rsi, rdx
sub rbx, rdx
test eax, eax
je 0x140023b10
test edx, edx
je 0x140023afa
test rbx, rbx
jne 0x140023aba
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140023afc

Function at 0x140024160
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
and rdx, 0xfffffffffffffffe
mov r9, rcx
mov r8, rcx
lea r11, [rdx - 4]
mov rdx, rcx
add r11, rcx
cmp rdx, r11
ja 0x1400241f2
movzx r10d, byte [r8 + 1]
movzx eax, byte [r8 + 3]
xor r10d, 8
lea r8, [rdx + 2]
and eax, r10d
mov rbx, r8
mov rdx, r8
cmp eax, 0xf8
jb 0x140024179
movzx ecx, byte [r8 - 2]
movzx eax, byte [r8 + 1]
and eax, 7
shl r10d, 8
add ecx, r10d
lea edx, [rax + rcx*8]
movzx eax, byte [r8]
shl edx, 8
add r8, 2
add edx, eax
mov eax, r8d
sub eax, r9d
shr eax, 1
sub edx, eax
mov eax, edx
mov byte [rbx], dl
shr eax, 0xb
mov byte [rbx - 2], al
mov eax, edx
shr eax, 0x13
and al, 7
shr edx, 8
or al, 0xf0
or dl, 0xf8
mov byte [rbx - 1], al
mov byte [rbx + 1], dl
mov rdx, r8
jmp 0x140024179
mov rbx, qword [rsp + 8]
sub rdx, r9
mov rax, rdx
ret
Function at 0x1400242c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov r8d, dword [r9]
xor r14d, r14d
and r8d, 7
mov rdi, r9
mov r11, rcx
mov r10d, r14d
cmp rdx, 5
jae 0x1400242f3
xor eax, eax
jmp 0x140024424
lea rbx, [rdx - 4]
add rbx, r11
lea r9, [r10 + r11]
jmp 0x14002430c
mov al, byte [r9]
and al, 0xfe
cmp al, 0xe8
je 0x140024311
inc r9
cmp r9, rbx
jb 0x140024300
mov rax, r9
sub rax, r10
mov r10, r9
sub r10, r11
sub rax, r11
cmp r9, rbx
jae 0x140024411
cmp rax, 2
jbe 0x1400243bd
mov r8d, r14d
movzx edx, byte [r9 + 4]
lea eax, [rdx + 1]
test al, 0xfe
jne 0x1400243fd
movzx eax, byte [r9 + 3]
lea esi, [r10 + 5]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 2]
shl edx, 8
or edx, eax
movzx eax, byte [r9 + 1]
shl edx, 8
or edx, eax
sub edx, esi
test r8d, r8d
je 0x140024394
and r8d, 6
mov eax, edx
shl r8d, 2
mov ecx, r8d
shr eax, cl
inc eax
test al, 0xfe
jne 0x140024391
mov eax, 0x100
shl eax, cl
dec eax
xor edx, eax
sub edx, esi
mov r8d, r14d
mov eax, edx
mov byte [r9 + 1], dl
shr eax, 8
mov byte [r9 + 2], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
and dl, 1
mov byte [r9 + 3], al
neg dl
mov eax, 5
mov byte [r9 + 4], dl
jmp 0x140024409
mov ecx, eax
shr r8d, cl
test r8d, r8d
je 0x140024336
cmp r8d, 4
ja 0x1400243ee
cmp r8d, 3
je 0x1400243ee
mov eax, r8d
shr rax, 1
movzx ecx, byte [rax + r9 + 1]
inc ecx
test cl, 0xfe
jne 0x140024336
or r8d, 8
shr r8d, 1
inc r10
jmp 0x1400242fa
or r8d, 8
mov eax, 1
shr r8d, 1
add r10, rax
jmp 0x1400242fa
mov ecx, eax
shr r8d, cl
cmp rax, 2
mov rax, r10
cmova r8d, r14d
mov dword [rdi], r8d
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov r14, qword [rsp + 0x20]
ret

Function at 0x140027368
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140027395
test al, 0x10
jbe 0x140027395
xor eax, eax
jmp 0x140027417
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.140026db8
nop
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
call fcn.14005e824
mov edx, 0x5c
xor ebp, ebp
cmp eax, 1
jle 0x1400273ca
cdqe
cmp word [rdi + rax*2 - 2], dx
jne 0x1400273ca
mov word [rdi + rax*2 - 2], bp
mov rcx, rdi
call fcn.14007f120
test rax, rax
jne 0x1400273dc
lea ebx, [rax + 0xf]
jmp 0x14002740d
mov word [rax], bp
mov rcx, rdi
call fcn.140027368
mov ebx, eax
test eax, eax
jne 0x14002740d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14002740b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
jne 0x14002740d
mov ebx, ebp
mov rcx, rdi
call fcn.140028090
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140027798
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x20
mov rbx, rcx
lea rax, vtable.Cabinet::CExtract.0
mov qword [rcx], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x120], eax
je 0x1400277d7
mov dword [rbx + 0xe8], 0x3f3
and dword [rbx + 0xec], 0
and dword [rbx + 0xf0], 0
jmp 0x140027841
mov rcx, qword [rbx + 0xf8]
test rcx, rcx
je 0x14002781e
mov rax, qword [rbx + 0x148]
call qword [case.0x14002b591.0]
mov esi, eax
and qword [rbx + 0xf8], 0
mov rcx, qword [rbx + 0xb8]
test rcx, rcx
je 0x14002780b
call fcn.140028090
and qword [rbx + 0xb8], 0
and dword [rbx + 0xc0], 0
test esi, esi
je 0x140027841
mov ecx, dword [0x1400beb20]
cmp ecx, 0xffffffff
je 0x140027841
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140027841
mov ecx, dword [0x1400beb20]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rbx + 0x128]
test rcx, rcx
je 0x140027853
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rbx + 0x108]
test rcx, rcx
je 0x140027869
mov edx, 1
call fcn.140028090
mov rcx, qword [rbx + 0xd8]
call fcn.140028090
mov rcx, qword [rbx + 0xb8]
test rcx, rcx
je 0x140027886
call fcn.140028090
and qword [rbx + 0xb8], 0
and dword [rbx + 0xc0], 0
mov rcx, qword [rbx + 0xa8]
call fcn.140028090
mov rcx, qword [rbx + 0x98]
call fcn.140028090
mov edx, 8
mov rcx, qword [rbx + 0x88]
call fcn.140028090
mov edx, 4
mov rcx, qword [rbx + 0x90]
call fcn.140028090
mov rcx, qword [rbx + 0x20]
call fcn.140028090
mov rcx, qword [rbx + 0x10]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rsi
jmp fcn.140028090
Function at 0x1400278fc
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ebx, ebx
cmp dword [rsi + 0x120], eax
je 0x140027939
mov qword [rsi + 0xe8], 0x3f3
mov dword [rsi + 0xf0], ebx
jmp 0x140027af0
mov ecx, dword [0x1400beb20]
or edi, 0xffffffff
cmp ecx, edi
je 0x140027ade
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140027962
mov qword [rsi + 0xe8], 0x3f4
jmp 0x14002792e
mov ecx, dword [0x1400beb20]
cmp ecx, edi
je 0x140027ade
mov rdx, rsi
lea rbp, [rsi + 0xc8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140027ae5
mov ecx, dword [0x1400beb20]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140027ae5
xor eax, eax
mov qword [rbp + 0x20], rbx
mov dword [rbp + 0x28], ebx
mov rdi, rbp
lea ecx, [rax + 0xc]
rep stosb byte [rdi], al
cmp qword [rsi + 0xf8], rbx
jne 0x140027af2
cmp qword [rsi + 0x128], rbx
jne 0x140027a73
call fcn.1400275dc
lea rdx, str.FDICreate
mov qword [rsi + 0x128], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x128]
lea rdx, str.FDICopy
mov qword [rsi + 0x130], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x128]
lea rdx, str.FDIIsCabinet
mov qword [rsi + 0x138], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x128]
lea rdx, str.FDIDestroy
mov qword [rsi + 0x140], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x148], rax
cmp qword [rsi + 0x130], rbx
je 0x140027a5c
cmp qword [rsi + 0x138], rbx
je 0x140027a5c
cmp qword [rsi + 0x140], rbx
je 0x140027a5c
test rax, rax
jne 0x140027a73
mov qword [rsi + 0x128], rbx
mov qword [rsi + 0xe8], 0x3e8
jmp 0x14002792e
mov qword [rsp + 0x40], rbp
lea rax, [0x140028430]
mov dword [rsp + 0x38], 1
lea r9, [0x140028150]
mov qword [rsp + 0x30], rax
lea r8, [0x1400280a0]
lea rax, [0x140028400]
mov qword [rsp + 0x28], rax
lea rdx, [fcn.140028090]
lea rax, [0x1400282a0]
mov qword [rsp + 0x20], rax
lea rcx, [0x140028080]
mov rax, qword [rsi + 0x130]
call qword [case.0x14002b591.0]
test rax, rax
mov qword [rsi + 0xf8], rax
setne bl
mov eax, ebx
jmp 0x140027af2
lea rbp, [rsi + 0xc8]
mov dword [rbp + 0x20], ebx
mov qword [rbp + 0x24], 0xe
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140027f60
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1400bba20]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r8
mov r14, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ebx, ebx
cmp dword [rsi + 0x120], eax
je 0x140027fbe
mov qword [rsi + 0xe8], 0x3f3
mov dword [rsi + 0xf0], ebx
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400793d0
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp qword [rsi + 0xf8], rbx
je 0x140027fa4
xor eax, eax
lea rdi, [rsi + 0xc8]
mov qword [rdi + 0x20], rbx
mov r9d, 0x100
mov dword [rdi + 0x28], ebx
mov r8d, 0x8020
lea ecx, [rax + 0xc]
rep stosb byte [rdi], al
mov rax, qword [rsi]
mov rcx, rsi
mov dword [rsi + 0x84], ebx
mov dword [rsi + 0x104], ebx
mov rdx, qword [r14]
mov rax, qword [rax + 0x28]
call qword [case.0x14002b591.0]
mov rdi, rax
lea rcx, [rax + 1]
cmp rcx, 1
jbe 0x140027fa4
lea rcx, [rsi + 0x80]
xor r8d, r8d
mov rdx, rax
call fcn.140029064
test rdi, rdi
jle 0x140027fa4
mov rax, qword [rsi + 0x140]
mov rdx, rdi
mov rcx, qword [rsi + 0xf8]
lea r8, [rsp + 0x30]
test rbp, rbp
je 0x14002804d
mov r8, rbp
call qword [case.0x14002b591.0]
mov ecx, dword [0x1400beb20]
mov esi, eax
cmp ecx, 0xffffffff
je 0x140028069
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rdx, rdi
mov rcx, rbx
call fcn.14002852c
mov eax, esi
jmp 0x140027fa6

Function at 0x140028ce0
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov esi, r9d
mov edi, r8d
mov rbx, rdx
bt r8d, 8
jae 0x140028d0d
mov edx, 0x80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
and dword [rsp + 0x28], 0
lea rax, [rsp + 0x50]
mov r9d, esi
mov qword [rsp + 0x20], rax
mov r8d, 0x40
mov edx, edi
mov rcx, rbx
call fcn.140063330
mov ecx, dword [rsp + 0x50]
or edx, 0xffffffff
mov rbx, qword [rsp + 0x40]
test eax, eax
mov rsi, qword [rsp + 0x48]
cmovne ecx, edx
movsxd rax, ecx
add rsp, 0x30
pop rdi
ret

Function at 0x14002916c
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400beb20], eax
lea rax, [0x1400bf7e4]
add rsp, 0x28
ret

Function at 0x14002a310
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rdx, rcx
lea rcx, [0x14002a350]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rbx + 8]
xor eax, eax
mov dword [rbx + 0x18], eax
test rcx, rcx
je 0x14002a346
cmp dword [rbx + 0x14], eax
jbe 0x14002a346
mov rax, qword [rcx]
mov dword [rbx + 0x18], 1
add rsp, 0x20
pop rbx
ret
Function at 0x140031e48
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
test rcx, rcx
jne 0x140031e60
lea ecx, [rbx + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140031e7c
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140031e7c
mov edx, 0x410
mov ecx, 1
and eax, edx
cmp eax, edx
cmove ebx, ecx
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x140031f70
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x280
mov rax, qword [0x1400bba20]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r14, rdx
mov rbp, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x250
call main
or r15, 0xffffffffffffffff
mov rdi, r15
test rbp, rbp
je 0x1400320d2
mov rcx, rbp
call fcn.14005e824
test rax, rax
je 0x1400320d2
mov r9, r15
lea r8, [0x1400a3b48]
mov rdx, r15
mov rcx, rbp
call fcn.14003116c
mov rsi, rax
test rax, rax
jne 0x140031ff9
lea ecx, [rax + 0xe]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400320c2
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, r15
je 0x1400320ba
test byte [rsp + 0x20], 0x10
je 0x140032044
lea rdx, [0x1400a3b4c]
lea rcx, [rsp + 0x4c]
call fcn.1400608a0
test eax, eax
je 0x1400320a4
lea rdx, [0x1400a242c]
lea rcx, [rsp + 0x4c]
call fcn.1400608a0
test eax, eax
je 0x1400320a4
mov r9, r15
lea r8, [rsp + 0x4c]
mov rdx, r15
mov rcx, rbp
call fcn.14003116c
mov rbx, rax
test rax, rax
je 0x1400320a4
test byte [rsp + 0x20], 0x10
mov rcx, rax
je 0x14003208b
call fcn.140031e48
test eax, eax
jne 0x140032080
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call fcn.140031f70
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14003209c
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov rax, r14
call qword [case.0x14002b591.0]
mov rcx, rbx
call fcn.140031124
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140032013
mov rcx, rsi
call fcn.140031124
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x1400320df
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400793d0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x280
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140032108
Capabilities:
Check if file exists
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
jne 0x140032129
lea ecx, [rdi + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140032165
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14003213a
mov eax, 1
jmp 0x140032165
mov rcx, rdi
call fcn.140031e48
test eax, eax
jne 0x140032155
lea rdx, [0x140031e90]
mov rcx, rdi
call fcn.140031f70
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140032170
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x1400bba20]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov edi, 0x400
lea rcx, [rsp + 0x40]
mov r8d, edi
xor edx, edx
call main
xor ebx, ebx
cmp dword [0x1400bf9e0], ebx
je 0x1400321b8
mov eax, dword [0x1400bbd0c]
jmp 0x140032273
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor ecx, ecx
lea r8d, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x14003224c
lea r8, [0x14009cf34]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.14005f4d0
lea r8, [0x14009fc38]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.14005f4d0
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea r8, str._appsafecheck.txt
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.14005f4d0
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x40]
mov edx, 0xc0000000
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [0x1400bbd28], rax
call fcn.140031dd8
mov edi, 1
test eax, eax
je 0x140032265
call fcn.140031c5c
test eax, eax
je 0x140032265
mov ebx, edi
mov dword [0x1400bbd0c], ebx
mov eax, ebx
mov dword [0x1400bf9e0], edi
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400793d0
mov rbx, qword [rsp + 0x460]
add rsp, 0x450
pop rdi
ret

Function at 0x140032294
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test rcx, rcx
je 0x1400322ee
mov rcx, qword [0x1400bbd28]
cmp rcx, 0xffffffffffffffff
je 0x1400322ee
and dword [rsp + 0x40], 0
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rbx
call fcn.14005e824
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, qword [0x1400bbd28]
mov rdx, rbx
lea r8d, [rax + rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400322f0
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x1400322f8
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x1400bba20]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rdx
mov rsi, rcx
or r13, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x250
mov r14, r13
call main
xor ebp, ebp
and dword [rsp + 0x20], ebp
test rsi, rsi
je 0x140032492
mov rcx, rsi
call fcn.14005e824
test rax, rax
je 0x140032492
test rbx, rbx
je 0x140032492
and dword [rbx], ebp
call fcn.140031d14
test eax, eax
jne 0x140032485
call fcn.140032170
test eax, eax
je 0x140032485
mov rcx, rsi
call fcn.140031e48
test eax, eax
je 0x1400323af
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400327ac
test eax, eax
jne 0x1400323af
mov dword [rbx], 1
jmp 0x140032485
mov r9, r13
lea r8, [0x1400a3b48]
mov rdx, r13
mov rcx, rsi
call fcn.14003116c
mov r15, rax
test rax, rax
jne 0x1400323d5
lea eax, [r15 + 0xe]
jmp 0x140032497
lea rdx, [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
cmp rax, r13
jne 0x1400323f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x14003247d
test byte [rsp + 0x30], 0x10
je 0x140032461
lea rdx, [0x1400a3b4c]
lea rcx, [rsp + 0x5c]
call fcn.1400608a0
test eax, eax
je 0x140032461
lea rdx, [0x1400a242c]
lea rcx, [rsp + 0x5c]
call fcn.1400608a0
test eax, eax
je 0x140032461
mov r9, r13
lea r8, [rsp + 0x5c]
mov rdx, r13
mov rcx, rsi
call fcn.14003116c
mov rdi, rax
test rax, rax
je 0x140032461
mov rdx, rbx
mov rcx, rax
call fcn.1400322f8
mov ebp, eax
test eax, eax
jne 0x140032459
cmp dword [rbx], eax
jne 0x140032475
mov rcx, rdi
call fcn.140031124
lea rdx, [rsp + 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14003247d
jmp 0x1400323f8
mov rcx, rdi
call fcn.140031124
mov rcx, r15
call fcn.140031124
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebp
jmp 0x140032497
mov eax, 0x57
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400793d0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret