joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400025c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, dword [rcx + 0x44]
mov rdi, rcx
mov qword [rsp + 0x30], rbp
nop
nop
mov edx, dword [rdi + 0x94]
mov esi, dword [rdi + 0x58]
mov eax, dword [rdi + 0x44]
sub esi, dword [rdi + 0x9c]
lea ecx, [rbx + rax - 0x106]
sub esi, edx
cmp edx, ecx
jb 0x14000267c
mov rcx, qword [rdi + 0x50]
mov r8, rbx
lea rdx, [rcx + rbx]
call sub.VCRUNTIME140.dll_memcpy
mov r8d, dword [rdi + 0x74]
mov rax, qword [rdi + 0x68]
sub dword [rdi + 0x98], ebx
sub dword [rdi + 0x94], ebx
sub dword [rdi + 0x84], ebx
lea rdx, [rax + r8*2]
nop
movzx eax, word [rdx - 2]
sub rdx, 2
cmp eax, ebx
jb 0x140002640
sub eax, ebx
jmp 0x140002642
xor eax, eax
add r8d, 0xffffffff
mov word [rdx], ax
jne 0x140002630
mov rax, qword [rdi + 0x60]
mov edx, ebx
lea rcx, [rax + rbx*2]
nop
nop
nop
movzx eax, word [rcx - 2]
sub rcx, 2
cmp eax, ebx
jb 0x140002670
sub eax, ebx
jmp 0x140002672
xor eax, eax
add edx, 0xffffffff
mov word [rcx], ax
jne 0x140002660
add esi, ebx
mov rcx, qword [rdi]
cmp dword [rcx + 8], 0
je 0x1400026f7
mov edx, dword [rdi + 0x9c]
mov eax, dword [rdi + 0x94]
mov r8d, esi
add rdx, rax
add rdx, qword [rdi + 0x50]
call fcn.140002370
add dword [rdi + 0x9c], eax
mov r9d, dword [rdi + 0x9c]
cmp r9d, 3
jb 0x1400026e1
mov eax, dword [rdi + 0x94]
mov rdx, qword [rdi + 0x50]
mov ecx, dword [rdi + 0x80]
movzx r8d, byte [rax + rdx]
add eax, 1
mov dword [rdi + 0x70], r8d
movzx eax, byte [rax + rdx]
shl r8d, cl
xor r8d, eax
and r8d, dword [rdi + 0x7c]
mov dword [rdi + 0x70], r8d
cmp r9d, 0x106
jae 0x1400026f7
mov rax, qword [rdi]
cmp dword [rax + 8], 0
jne 0x1400025e0
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140010094
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
movsxd r10, dword [rcx + 0xc]
mov r9, rcx
movsxd r11, r8d
test r8d, r8d
jle 0x1400100eb
mov rsi, qword [rcx]
mov rbx, r10
movsxd rbp, dword [rcx + 8]
xor edi, edi
mov al, byte [rdi + rdx]
lea rcx, [rbx + 1]
xor byte [rbx + rsi], al
lea eax, [r10 + 1]
xor r10d, r10d
cmp rcx, rbp
cmovl r10d, eax
xor ebx, ebx
inc rdi
cmp rcx, rbp
cmovl rbx, rcx
cmp rdi, r11
jl 0x1400100c2
add dword [r9 + 0x10], r8d
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov dword [r9 + 0xc], r10d
ret
Function at 0x14003434c
Capabilities:
Create thread

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 r14
sub rsp, 0x30
xor ebx, ebx
mov rsi, rcx
mov qword [rcx], rbx
mov rbp, r8
mov r14, rdx
lea ecx, [rbx + 0x28]
call fcn.14000917c
mov rdi, rax
test rax, rax
jne 0x14003438b
lea ebx, [rax + 7]
jmp 0x140034410
cmp byte [0x1401015a4], bl
je 0x1400343df
mov rax, qword [0x140101728]
test rax, rax
je 0x1400343ae
mov ecx, 0xc8
call qword [str.__r_]
test eax, eax
jne 0x1400343df
lea rax, [rdi + 8]
mov qword [rdi + 0x10], r14
mov qword [rsp + 0x28], rax
lea r8, [0x14000b6c0]
mov r9, rdi
mov dword [rsp + 0x20], ebx
xor edx, edx
mov qword [rdi + 0x18], rbp
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
jne 0x1400343ee
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 0x28]
call qword [sym.imp.VCRUNTIME140.dll_memset]
cmp qword [rdi + 0x10], rbx
jne 0x14003440d
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rdi + 8], eax
mov rcx, rbp
mov rax, r14
call qword [str.__r_]
mov qword [rdi + 0x20], rax
mov qword [rsi], rdi
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14003fa18
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ebx, r8d
mov rdi, rdx
mov r8, rdx
mov dword [rsp + 0x20], ebx
mov r9, rdx
mov rsi, rcx
lea rdx, str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
call fcn.14004467c
test ebx, ebx
jne 0x14003fa5c
mov r8, rdi
lea rdx, str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
mov rcx, rsi
call fcn.14004467c
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140083100
Capabilities:
Write file on windows

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 r14
sub rsp, 0x20
mov rbx, r8
mov r14, rdx
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x140083131
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x1400831ab
mov rsi, rbx
mov rax, qword [rcx + 0x40]
mov r9, qword [rax]
test r9, r9
je 0x140083148
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14008314a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400831a5
test ecx, ecx
jle 0x140083185
cmp rbx, rbp
cmovl rbp, rbx
mov r8, rbp
mov rcx, r9
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
nop
sub rbx, rbp
mov rax, qword [rdi + 0x58]
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
add r14, rbp
test rbx, rbx
jle 0x1400831a5
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400831a5
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400831d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400831fd
xor eax, eax
jmp 0x1400832f6
cmp qword [rcx + 0x68], 0
je 0x14008320f
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x1400832f6
mov rbp, rdi
mov rax, qword [rcx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140083226
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140083228
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14008325f
mov rbx, rdi
cmp rax, rdi
cmovb rbx, rax
mov r8, rbx
mov rcx, r14
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
nop
add r14, rbx
mov rbp, rdi
sub rbp, rbx
mov rax, qword [rsi + 0x50]
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
mov rbx, rbp
cmp qword [rsi + 0x80], 0
je 0x1400832f0
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14008329d
mov rdx, qword [rsi + 0x90]
mov rcx, qword [rsi + 0x88]
mov qword [r8], rcx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov r15d, 0xfff
jmp 0x1400832cb
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbp, rax
mov rbx, rbp
cmp rax, r15
jne 0x14008330f
cmp rbp, r15
ja 0x1400832a5
test rbx, rbx
je 0x1400832f0
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rdi, rbx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
sub rdi, rbp
jmp 0x1400832f3
Function at 0x140083720
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140101078]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x140083759
xor eax, eax
jmp 0x14008386c
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140083782
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, qword [rax]
cmp qword [rax], r8
jae 0x140083782
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x14008386c
cmp qword [rcx + 0x80], 0
je 0x14008386a
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1400837bd
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x1400837e1
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
cmovne edi, esi
jmp 0x14008386a
lea rax, [rbp - 0x38]
mov byte [rbp - 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x3f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x40]
lea rax, [rbp - 0x30]
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 0x14008382f
sub eax, 1
je 0x14008382f
cmp eax, 2
jne 0x14008386a
movsx ecx, byte [rbp - 0x40]
jmp 0x1400837ca
mov r14, qword [rbp - 0x38]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x14008385a
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x14008386a
lea rax, [rbp - 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x30], rax
mov eax, esi
jne 0x14008386c
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400b8190
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140083fb4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140101078]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14008402a
cmp byte [rcx + 0x71], 0
je 0x14008402a
mov rax, qword [rcx]
or edx, 0xffffffff
mov rax, qword [rax + 0x18]
call qword [str.__r_]
cmp eax, 0xffffffff
je 0x14008407f
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 0x140084044
sub eax, 1
je 0x140084048
cmp eax, 2
jne 0x14008407f
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400b8190
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140084076
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 0x14008407f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14008402c
xor al, al
jmp 0x14008402c
Function at 0x14008bd44
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rax, qword [0x140101078]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov rsi, rcx
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.14008c0c8
nop
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
lea rdx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
xor r14d, r14d
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], r14w
cmp rax, 0xffffffffffffffff
je 0x14008be92
lea rdx, [rbp - 0x34]
lea rcx, [rsp + 0x60]
call fcn.140088428
nop
lea r8, [rsp + 0x60]
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.14008c0c8
mov rbx, rax
lea rax, [rsp + 0x20]
cmp rax, rbx
je 0x14008be27
lea rcx, [rsp + 0x20]
call fcn.14008858c
nop
mov r8d, 0x20
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
nop
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
lea rcx, [rbp - 0x80]
call fcn.14008858c
nop
lea rcx, [rsp + 0x60]
call fcn.14008858c
test byte [rbp - 0x60], 4
jne 0x14008be73
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x14008be73
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp - 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14008bdca
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rcx, [rsp + 0x20]
call fcn.14008858c
nop
lea rcx, [rsp + 0x40]
call fcn.14008858c
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.1400b8190
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14008bed0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x140101078]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rsi, rdx
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x14008bf0c
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
xor r15d, r15d
test eax, eax
je 0x14008c0a0
lea rdx, [0x1400ec4e0]
lea rcx, [rsp + 0x50]
call fcn.140088428
nop
lea r8, [rsp + 0x50]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.14008c0c8
nop
lea rcx, [rsp + 0x50]
call fcn.14008858c
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
lea rdx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r15w
cmp rax, 0xffffffffffffffff
je 0x14008c08b
lea rdx, [rbp - 0x24]
lea rcx, [rsp + 0x50]
call fcn.140088428
nop
lea r8, [rsp + 0x50]
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.14008c0c8
mov rdi, rax
lea rax, [rsp + 0x30]
cmp rax, rdi
je 0x14008bfe9
lea rcx, [rsp + 0x30]
call fcn.14008858c
nop
mov r8d, 0x20
mov rdx, rdi
lea rcx, [rsp + 0x30]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
nop
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
lea rcx, [rbp - 0x70]
call fcn.14008858c
nop
lea rcx, [rsp + 0x50]
call fcn.14008858c
test byte [rbp - 0x50], 4
jne 0x14008c06c
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x14008c06c
mov rax, qword [rsi + 0x10]
mov r9, rsi
cmp qword [rsi + 0x18], 8
jb 0x14008c02f
mov r9, qword [rsi]
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x40]
call fcn.140090054
cmp rax, 0xffffffffffffffff
je 0x14008c06c
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp - 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14008bf8c
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rcx, [rsp + 0x30]
call fcn.14008858c
nop
lea rcx, [rsp + 0x70]
call fcn.14008858c
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1400b8190
mov rbx, qword [rsp + 0x350]
add rsp, 0x310
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008c338
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
cmp qword [rcx + 0x10], rdi
je 0x14008c3b5
cmp qword [rcx + 0x18], 8
jb 0x14008c357
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x14008c385
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14008c36f
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x14008c385
mov rcx, rbx
call fcn.14008c3c4
test al, al
je 0x14008c3b5
cmp qword [rbx + 0x18], 8
jb 0x14008c38f
mov rbx, qword [rbx]
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov ecx, eax
test eax, eax
je 0x14008c3ad
sub ecx, 0x50
je 0x14008c3ad
cmp ecx, 0x67
jne 0x14008c3b0
mov dil, 1
mov al, dil
jmp 0x14008c3b7
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14008c3c4
Capabilities:
Check if file exists
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x14008c3d7
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x14008c3e6
mov al, 1
jmp 0x14008c3ff
cmp qword [rbx + 0x18], 8
jb 0x14008c3f0
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete al
add rsp, 0x20
pop rbx
ret

Function at 0x14008c408
Capabilities:
Check os version

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x140101078]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor ebx, ebx
mov r15, r8
cmp qword [rcx + 0x18], 8
mov r14, rdx
jb 0x14008c43b
mov rcx, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
xor edx, edx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14008c520
lea rcx, str.Kernel32.dll
mov qword [rsp + 0x48], rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x114
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x54], 5
mov rcx, rdi
jae 0x14008c4d0
lea rdx, [0x1400e0028]
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14008c4f0
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [str.__r_]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x4c], eax
jmp 0x14008c4f0
lea rdx, str.GetFileSizeEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14008c4f0
lea rdx, [rsp + 0x48]
mov rcx, rsi
call qword [str.__r_]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r9d, 8
lea r8, [rsp + 0x48]
mov edx, r9d
mov rcx, r14
call fcn.140088c2c
mov rax, qword [r14]
mov rcx, rsi
mov qword [r15], rax
mov bl, 1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400b8190
add rsp, 0x180
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x14008c544
Capabilities:
Check if file exists
Copy file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rdi, rdx
mov rsi, rcx
cmp qword [rcx + 0x18], 8
jb 0x14008c565
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
xor ebx, ebx
test eax, eax
jne 0x14008c6ca
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14008c582
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x14008c69f
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14008c59d
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x14008c69f
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], rax
mov dword [rbp - 0x30], 3
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rbx
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14008c5de
mov rcx, qword [rdi]
mov rax, qword [rdi + 0x10]
lea r9, [rcx + rax*2]
mov r8, rdi
jb 0x14008c5ee
mov r8, qword [rdi]
mov rdx, rbx
lea rcx, [rbp - 0x50]
call fcn.140090c58
mov word [rbp + 0x30], bx
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
mov r8, qword [rbp - 0x48]
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x50]
call fcn.14008e84c
mov word [rbp + 0x40], bx
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r8, qword [rbp - 0x48]
lea rdx, [rbp + 0x48]
lea rcx, [rbp - 0x50]
call fcn.14008e84c
mov rax, qword [rbp - 0x50]
mov qword [rbp - 0x28], rax
mov eax, 0x494
mov word [rbp - 0x18], ax
lea rcx, [rbp - 0x38]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete r14b
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14008c69a
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008c695
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008c695
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b8460
test r14b, r14b
je 0x14008c6ca
cmp qword [rdi + 0x18], 8
jb 0x14008c6a9
mov rdi, qword [rdi]
cmp qword [rsi + 0x18], 8
jb 0x14008c6b3
mov rsi, qword [rsi]
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
sete al
jmp 0x14008c6cc
xor al, al
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14008dfc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140101078]
xor rax, rsp
mov qword [rbp - 8], rax
mov edi, 0xffff
xor r14d, r14d
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x14008e002
movzx eax, r14w
jmp 0x14008e127
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x14008e032
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rdx, [rcx + r8*2]
cmp rcx, rdx
jae 0x14008e032
mov rcx, rbx
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 0x14008e127
cmp qword [rbx + 0x80], r14
je 0x14008e124
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14008e070
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14008e09a
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, di
je 0x14008e124
movzx edi, si
jmp 0x14008e124
lea rax, [rbp - 0x38]
mov word [rbp - 0x40], si
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x3e]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x40]
lea rax, [rbp - 0x30]
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 0x14008e0e8
sub eax, 1
je 0x14008e0e8
cmp eax, 2
jne 0x14008e124
movzx ecx, word [rbp - 0x40]
jmp 0x14008e07c
mov r14, qword [rbp - 0x38]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x14008e113
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x14008e124
lea rax, [rbp - 0x40]
mov byte [rbx + 0x72], 1
cmp qword [rbp - 0x30], rax
movzx eax, si
jne 0x14008e127
movzx eax, di
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400b8190
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret