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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140044158]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000b385
cmp byte [rcx + 0x72], 0
je 0x14000b385
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
cmp di, ax
je 0x14000b381
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_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000b346
sub eax, 1
je 0x14000b34a
cmp eax, 2
jne 0x14000b381
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140020a90
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000b378
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 0x14000b381
cmp byte [rbx + 0x72], 0
sete al
jmp 0x14000b32e
xor al, al
jmp 0x14000b32e
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140020a90
add rsp, 0x60
pop rbx
ret

Function at 0x14000b640
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140044158]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edx, edx
mov qword [rsp + 0x20], rcx
mov rdi, rcx
lea ecx, [rdx + 2]
call sub.api_ms_win_core_toolhelp_l1_1_0.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x238
mov rcx, rax
mov rsi, rax
xor ebx, ebx
call sub.api_ms_win_core_toolhelp_l1_1_0.dll_Process32FirstW
test eax, eax
je 0x14000b6e6
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [rdi]
lea rcx, [rsp + 0x5c]
sub rdx, rcx
nop dword [rax + rax]
movzx eax, word [rcx]
cmp ax, word [rcx + rdx]
jne 0x14000b6c6
add rcx, 2
test ax, ax
jne 0x14000b6b0
xor ecx, ecx
jmp 0x14000b6cb
sbb ecx, ecx
or ecx, 1
test ecx, ecx
lea eax, [rbx + 1]
lea rdx, [rsp + 0x30]
mov rcx, rsi
cmovne eax, ebx
mov ebx, eax
call sub.api_ms_win_core_toolhelp_l1_1_0.dll_Process32NextW
test eax, eax
jne 0x14000b6a0
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140020a90
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000ba90
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140044158]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov ebp, 0xffff
movzx esi, dx
mov rdi, rcx
cmp bp, dx
jne 0x14000bac1
xor eax, eax
jmp 0x14000bc02
mov qword [rsp + 0xb0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::pptr_void_const___ptr64]
test rax, rax
je 0x14000bb02
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x14000bb02
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Pninc_void____ptr64]
mov word [rax], si
movzx eax, si
jmp 0x14000bbfa
cmp qword [rdi + 0x80], 0
je 0x14000bbf7
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x14000bb3c
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::setg_wchar_t____ptr64__wchar_t____ptr64__wchar_t____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x14000bb4a
movzx ecx, si
jmp 0x14000bb9e
lea rax, [rsp + 0x48]
mov word [rsp + 0x40], si
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x42]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000bbb7
sub eax, 1
je 0x14000bbb7
cmp eax, 2
jne 0x14000bbf7
movzx ecx, word [rsp + 0x40]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, bp
cmove si, bp
movzx eax, si
jmp 0x14000bbfa
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x14000bbe5
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x14000bbf7
lea rax, [rsp + 0x40]
mov byte [rdi + 0x72], 1
cmp qword [rsp + 0x50], rax
cmovne bp, si
movzx eax, bp
mov rbx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140020a90
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001637c
Capabilities:
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x14001638a
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
shr eax, 4
and al, 1
add rsp, 0x28
ret

Function at 0x140016460
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x14001646e
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x28
ret

Function at 0x140017484
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [rcx]
mov rdi, rdx
lea rdx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400174b4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
je 0x1400174b4
xor al, al
jmp 0x1400174c4
mov ecx, dword [rsp + 0x30]
mov al, 1
shl rcx, 0x20
add rcx, rbx
mov qword [rdi], rcx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140017588
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov rbx, r9
and dword [rsp + 0x58], 0
lea r9, [rsp + 0x58]
and qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
mov ecx, dword [rsp + 0x58]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x140017638
Capabilities:
Read file on windows

Disassembly:
cmp r8d, dword [0x140044138]
cmova r8d, dword [0x140044138]
jmp fcn.140017588

Function at 0x1400176f4
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rbx, rdx
mov rdi, rcx
call fcn.14001764c
test al, al
je 0x14001772c
cmp qword [rsp + 0x40], rbx
jne 0x14001772c
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetEndOfFile]
test eax, eax
setne al
jmp 0x14001772e
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400177e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
cmp r8d, dword [0x140044138]
mov rbx, r9
mov rcx, qword [rcx]
lea r9, [rsp + 0x50]
cmova r8d, dword [0x140044138]
and dword [rsp + 0x50], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
mov ecx, dword [rsp + 0x50]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret
Function at 0x14001b620
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rbx, rcx
call fcn.14001caa8
cmp eax, 0xffffffff
je 0x14001b659
test al, 0x10
je 0x14001b659
mov eax, 1
jmp 0x14001b7d9
mov rcx, rbx
call fcn.14001f16c
xor r15d, r15d
test al, al
je 0x14001b66f
xor al, al
jmp 0x14001b7d9
mov rcx, rbx
call fcn.14001ee40
mov r14d, eax
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.140018e40
nop
lea rcx, [rbp - 0x60]
call fcn.14001a7e4
mov esi, 1
test eax, eax
js 0x14001b6b7
mov edx, dword [rbp - 0x58]
lea ecx, [rdx - 1]
cmp eax, ecx
jne 0x14001b6b7
cmp edx, esi
je 0x14001b7cd
mov dword [rbp - 0x58], ecx
mov rax, qword [rbp - 0x60]
mov word [rax + rcx*2], r15w
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x50]
call fcn.140018d5c
nop
mov edi, dword [rbp - 0x58]
mov rbx, qword [rbp - 0x60]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x14001b77e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xb7
jne 0x14001b72e
lea rcx, [rbp - 0x40]
call fcn.14001c1b8
lea rcx, [rbp - 0x18]
call fcn.140018e98
nop
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.14001c36c
test al, al
jne 0x14001b71a
mov rcx, qword [rbp - 0x18]
call sub.mfc140u.dll_operator_1
jmp 0x14001b72e
mov ebx, dword [rbp - 0x20]
shr ebx, 4
mov rcx, qword [rbp - 0x18]
call sub.mfc140u.dll_operator_1
and bl, sil
jne 0x14001b77e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xb7
je 0x14001b7c0
lea rcx, [rbp - 0x60]
call fcn.14001a7e4
mov edi, eax
cmp eax, esi
jl 0x14001b7c0
mov rbx, qword [rbp - 0x60]
jne 0x14001b760
cmp word [rbx], 0x5c
je 0x14001b7c0
cmp word [rbx], 0x2f
je 0x14001b7c0
lea eax, [rdi + 1]
cmp r14d, eax
jae 0x14001b7c0
cmp edi, dword [rbp - 0x58]
jae 0x14001b6cc
mov dword [rbp - 0x58], edi
mov word [rbx + rdi*2], r15w
jmp 0x14001b6c8
cmp edi, dword [rbp - 0x48]
jge 0x14001b7c3
lea ecx, [rdi + 1]
mov rax, qword [rbp - 0x50]
lea rcx, [rax + rcx*2]
call fcn.14001ea98
test eax, eax
jns 0x14001b79c
mov edi, dword [rbp - 0x48]
jmp 0x14001b7a0
inc edi
add edi, eax
mov r8d, edi
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x60]
call fcn.14001a890
xor edx, edx
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x14001b77e
mov sil, r15b
mov rcx, qword [rbp - 0x50]
call sub.mfc140u.dll_operator_1
nop
mov rcx, qword [rbp - 0x60]
call sub.mfc140u.dll_operator_1
mov al, sil
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001b8a8
Capabilities:
Check for time delay via gettickcount
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140044158]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbp, r9
mov rsi, r8
mov r14b, dl
mov r12, rcx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
lea ebx, [rax*4]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov edi, eax
xor edi, ebx
shl edi, 0xc
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
mov r15d, eax
xor r15d, edi
xor edi, edi
mov ebx, edi
lea r13d, [rdi + 1]
mov rdx, r12
mov rcx, rsi
call fcn.1400192cc
test r14b, r14b
je 0x14001b994
mov edx, r15d
lea r8, [rsp + 0x20]
mov r9d, 8
mov ecx, edx
shr edx, 4
and ecx, 0xf
cmp ecx, 0xa
sbb al, al
and al, 0xf9
add al, 0x37
add al, cl
mov byte [r8], al
add r8, r13
sub r9, r13
jne 0x14001b923
mov byte [rsp + 0x28], dil
test rbp, rbp
je 0x14001b977
mov ecx, dword [rsi + 8]
cmp dword [rsi + 0xc], ecx
jne 0x14001b95e
mov rcx, rsi
call fcn.140019c24
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
mov r8d, 0x2e
mov eax, ecx
inc ecx
mov word [rdx + rax*2], r8w
mov word [rdx + rcx*2], di
mov dword [rsi + 8], ecx
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140019694
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
add eax, 2
cmove eax, r13d
add r15d, eax
mov r14b, r13b
test rbp, rbp
je 0x14001b9ab
lea rdx, str..tmp
mov rcx, rsi
call fcn.140019694
mov rcx, qword [rsi]
call fcn.14001c314
test al, al
je 0x14001b9c4
mov ecx, UnRegisterTypeLib
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
jmp 0x14001b9fc
test rbp, rbp
je 0x14001b9db
mov rdx, qword [rsi]
xor r8d, r8d
mov rcx, rbp
call fcn.14001742c
test al, al
jmp 0x14001b9e8
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x14001ba15
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x50
je 0x14001b9fc
cmp eax, 0xb7
jne 0x14001ba08
add ebx, r13d
cmp ebx, 0x64
jb 0x14001b905
mov rax, qword [rsi]
mov dword [rsi + 8], edi
mov word [rax], di
xor al, al
jmp 0x14001ba18
mov al, r13b
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140020a90
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001ba40
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.14001caa8
cmp eax, 0xffffffff
je 0x14001ba6d
test al, 0x10
jne 0x14001ba6d
test al, 1
je 0x14001ba6d
and eax, 0xfffffffe
mov rcx, rbx
mov edx, eax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
test eax, eax
je 0x14001ba7e
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
je 0x14001ba7e
mov al, 1
jmp 0x14001ba80
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001bd64
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x140044158]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rcx
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x20], cx
mov rax, qword [rdi]
mov dword [rdi + 8], ecx
mov word [rax], cx
mov ecx, operator
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetTempPathW]
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov ebx, eax
call fcn.1400192cc
lea eax, [rbx - 1]
cmp eax, 0x103
setbe al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140020a90
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret
Function at 0x14001be6c
Capabilities:
Delete directory
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x38]
call fcn.14001c1b8
lea rcx, [rbp - 0x10]
call fcn.140018e98
nop
mov rdx, qword [rdi]
lea rcx, [rbp - 0x38]
call fcn.14001c36c
xor r14d, r14d
test al, al
je 0x14001becb
mov ebx, dword [rbp - 0x18]
mov eax, ebx
shr eax, 4
test al, 1
jne 0x14001bef3
mov ecx, 0x10b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop
mov rcx, qword [rbp - 0x10]
call sub.mfc140u.dll_operator_1
xor al, al
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
shr ebx, 0xa
mov rcx, qword [rbp - 0x10]
call sub.mfc140u.dll_operator_1
test bl, 1
jne 0x14001bfea
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.140018d5c
nop
mov ebx, dword [rbp - 0x58]
cmp dword [rbp - 0x54], ebx
jne 0x14001bf29
lea rcx, [rbp - 0x60]
call fcn.140019c24
mov ebx, dword [rbp - 0x58]
mov rcx, qword [rbp - 0x60]
mov eax, ebx
mov edx, 0x5c
mov word [rcx + rax*2], dx
inc ebx
mov word [rcx + rbx*2], r14w
mov dword [rbp - 0x58], ebx
or qword [rbp - 0x50], 0xffffffffffffffff
lea rcx, [rbp - 0x48]
call fcn.140018e98
nop
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x50]
call fcn.14001cdd8
lea rcx, [rbp - 0x38]
call fcn.14001c1b8
lea rcx, [rbp - 0x10]
call fcn.140018e98
nop
jmp 0x14001bfb3
cmp ebx, dword [rbp - 0x58]
jae 0x14001bf84
mov dword [rbp - 0x58], ebx
mov rax, qword [rbp - 0x60]
mov word [rax + rbx*2], r14w
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x60]
call fcn.140019648
mov eax, dword [rbp - 0x18]
shr eax, 4
test al, 1
je 0x14001bfa6
lea rcx, [rbp - 0x60]
call fcn.14001be6c
jmp 0x14001bfaf
mov rcx, qword [rbp - 0x60]
call fcn.14001ba40
test al, al
je 0x14001c010
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x50]
call fcn.14001cc80
test al, al
jne 0x14001bf73
mov rcx, qword [rbp - 0x10]
call sub.mfc140u.dll_operator_1
nop
mov rcx, qword [rbp - 0x48]
call sub.mfc140u.dll_operator_1
lea rcx, [rbp - 0x50]
call fcn.14001c204
nop
mov rcx, qword [rbp - 0x60]
call sub.mfc140u.dll_operator_1
xor edx, edx
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
test eax, eax
je 0x14001bed4
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x14001bed6
mov rcx, qword [rbp - 0x10]
call sub.mfc140u.dll_operator_1
nop
mov rcx, qword [rbp - 0x48]
call sub.mfc140u.dll_operator_1
lea rcx, [rbp - 0x50]
call fcn.14001c204
nop
mov rcx, qword [rbp - 0x60]
jmp 0x14001becf

Function at 0x14001c0d8
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14001caa8
Capabilities:
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
add rsp, 0x28
ret
Function at 0x14002184c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x140021896
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140021896
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140021896
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140021896
cmp dword [rcx + 0x84], 0xe
jbe 0x140021896
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140021898
xor al, al
add rsp, 0x28
ret
Function at 0x140008f00
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rbp, rcx
mov ecx, dword [0x140233490]
mov rsi, r8
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r9, qword [rbp + 0x28]
lea rbx, [rbp + 0x28]
mov r10, rbx
test r9, r9
je 0x140008f5d
nop dword [rax]
lea r10, [r9 + 0x10]
mov r9, qword [r9 + 0x10]
test r9, r9
jne 0x140008f50
xor r13d, r13d
mov rcx, rbp
mov qword [rdi + 0x10], r13
mov qword [r10], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rsi, rsi
je 0x140008fb2
call fcn.140007950
mov rcx, qword [rsi]
movsxd rdx, dword [rsi + 8]
imul rcx, rcx, 0x3b9aca00
add rdx, rcx
sub rdx, rax
movabs rax, 0x431bde82d7b634db
cmovs rdx, r13
imul rdx
mov rsi, rdx
sar rsi, 0x12
mov rax, rsi
shr rax, 0x3f
add rsi, rax
jmp 0x140008fb5
or esi, 0xffffffff
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rdi + 8]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, r13d
test eax, eax
sete sil
test esi, esi
jne 0x140009028
mov rcx, rbp
mov esi, 1
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [rbx], r13
je 0x14000900e
nop dword [rax + rax]
mov rax, qword [rbx]
cmp rax, rdi
je 0x140009004
cmp qword [rax + 0x10], r13
lea rbx, [rax + 0x10]
jne 0x140008ff0
jmp 0x14000900e
mov rax, qword [rdi + 0x10]
mov esi, r13d
mov qword [rbx], rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x140009028
mov rcx, qword [rdi + 8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [r12]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
neg esi
mov rsi, qword [rsp + 0x50]
sbb eax, eax
neg eax
dec eax
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x1400090c0
Capabilities:
Check if file exists

Disassembly:
mov r11, rsp
push rbp
push r13
push r15
sub rsp, 0x8a0
mov rax, qword [0x1400d1608]
xor rax, rsp
mov qword [rsp + 0x870], rax
mov qword [r11 - 0x20], rsi
mov qword [r11 - 0x28], rdi
mov rdi, rdx
cmp byte [rdi], 0
mov qword [r11 - 0x30], r12
mov qword [r11 - 0x38], r14
mov r12, rcx
mov r14, r9
mov rbp, r8
lea r13, [0x140009060]
mov edx, 0x30c
lea rcx, [rsp + 0x40]
je 0x140009139
lea rax, [rsp + 0x40]
sub rdi, rax
nop dword [rax + rax]
cmp rdx, 1
jbe 0x140009139
movzx eax, byte [rdi + rcx]
inc rcx
dec rdx
cmp byte [rdi + rcx], 0
mov byte [rcx - 1], al
jne 0x140009120
xor r15d, r15d
mov byte [rcx], 0
mov qword [rsp + 0x8c8], rbx
mov esi, r15d
cmp byte [rsp + 0x40], sil
je 0x1400091af
lea rbx, [rsp + 0x40]
movzx eax, byte [rbx]
cmp al, 0x2f
jne 0x140009162
mov byte [rbx], 0x5c
jmp 0x140009166
cmp al, 0x5c
jne 0x1400091a5
test esi, esi
jle 0x1400091a5
nop word [rax + rax]
movzx eax, byte [rbx + 1]
cmp al, 0x5c
je 0x14000917c
cmp al, 0x2f
jne 0x1400091a5
or rcx, 0xffffffffffffffff
movsxd rdx, esi
xor eax, eax
lea r9, [rsp + rdx + 0x41]
lea rdx, [rsp + rdx + 0x42]
mov rdi, r9
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r9
call fcn.14006ffd0
jmp 0x140009170
inc rbx
inc esi
cmp byte [rbx], r15b
jne 0x140009156
lea r8, [r14 + r14]
xor edx, edx
mov rcx, rbp
call fcn.140070680
lea r8, [rsp + 0x40]
or r9d, 0xffffffff
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x560]
mov qword [rsp + 0x30], r15
mov r9d, r14d
mov r8, rbp
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0x30c
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r14, qword [rsp + 0x880]
lea rdx, [rsp + 0x40]
lea rdi, [rsp + 0x560]
sub rdi, rdx
nop word [rax + rax]
movzx ecx, byte [rdx]
movzx eax, byte [rdx + rdi]
sub ecx, eax
jne 0x140009242
inc rdx
test eax, eax
jne 0x140009230
test ecx, ecx
je 0x14000924b
mov word [rbp], r15w
test r12, r12
je 0x140009299
mov rbx, qword [r12 + 0x8d0]
cmp qword [rbx + 0x38], r15
je 0x140009299
mov rbx, qword [rbx + 0x38]
lea rsi, [0x1400a1050]
nop dword [rax]
movzx ecx, byte [rsi]
call fcn.14007f264
movzx ecx, byte [rbx]
mov edi, eax
call fcn.14007f264
inc rsi
inc rbx
cmp eax, edi
jne 0x140009299
cmp byte [rbx - 1], r15b
jne 0x140009270
lea r13, [0x1400805a0]
lea rcx, [rsp + 0x350]
xor edx, edx
mov r8d, 0x20a
call fcn.140070680
lea rdx, [rsp + 0x350]
mov r8d, 0x104
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov r12, qword [rsp + 0x888]
mov rdi, qword [rsp + 0x890]
mov rsi, qword [rsp + 0x898]
mov rbx, qword [rsp + 0x8c8]
test eax, eax
jne 0x1400092f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140009314
jmp 0x1400092fd
cmp eax, 0x105
jae 0x14000930f
lea rdx, [rsp + 0x350]
mov rcx, rbp
call r13
test eax, eax
je 0x140009314
mov word [rbp], r15w
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.14006f1f0
add rsp, 0x8a0
pop r15
pop r13
pop rbp
ret