joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001600
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
lea rdx, [0x140008978]
lea rcx, [0x140008958]
call fcn.140001350
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
test al, al
je 0x140001730
lea rdx, str.Data_file_downloaded_successfully.
mov qword [rsp + 0x30], rbx
call fcn.1400029e0
mov rcx, rax
lea rdx, [0x140002bc0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], 1
call fcn.140002c00
lea rbx, [0x140008998]
mov rdx, rbx
lea rcx, [0x1400089b8]
call fcn.140001350
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
test al, al
je 0x140001705
lea rdx, str.Executable_file_downloaded_successfully.
call fcn.1400029e0
mov rcx, rax
lea rdx, [0x140002bc0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], 1
call fcn.140002c00
cmp qword [0x1400089b0], 7
lea rdx, str.open
mov dword [rsp + 0x28], 1
cmova rbx, qword [0x140008998]
xor r9d, r9d
mov r8, rbx
mov qword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x1400016f9
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.Failed_to_execute_the_downloaded_executable_file.
jmp 0x14000170c
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x38
ret
lea rdx, str.Failed_to_download_executable_file.
call fcn.1400029e0
mov rcx, rax
lea rdx, [0x140002bc0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x38
ret
lea rdx, str.Failed_to_download_data_file.
call fcn.1400029e0
mov rcx, rax
lea rdx, [0x140002bc0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov eax, 1
add rsp, 0x38
ret
Function at 0x140001af0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140001b11
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp 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]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140001b3e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140001b40
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001b99
test ecx, ecx
jle 0x140001b79
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140001b99
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001b99
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
push rsp
invalid
Function at 0x140001bc0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140001be2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140001bf1
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp 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]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140001c14
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140001c16
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140001c52
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140001cee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140001c8d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140001cce
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140001cee
cmp rbx, rax
ja 0x140001ca0
test rbx, rbx
je 0x140001cee
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
jle 0x14000c84d
fimul word [rsi]
jmp rdi
jle 0x14000c7ed
adc cl, byte [rsi - 0x40f71a0d]
call 0x17ead7441
sar dl, 1
mov bh, 0x51
invalid
invalid
Function at 0x140002150
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 0x14000217d
xor eax, eax
jmp 0x1400022e9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400021b7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400021b7
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 0x1400022e9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400022dc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400021fa
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 0x140002225
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 0x1400022e1
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 0x140002294
sub eax, 1
je 0x140002294
cmp eax, 2
jne 0x1400022dc
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 0x1400022e1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400022c2
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 0x1400022dc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400022e1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400031b0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002640
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 0x140002713
cmp byte [rcx + 0x71], 0
je 0x140002713
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000270f
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 0x1400026d4
sub eax, 1
je 0x1400026d8
cmp eax, 2
jne 0x14000270f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400031b0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002706
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 0x14000270f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400026bc
xor al, al
jmp 0x1400026bc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400031b0
add rsp, 0x60
pop rbx
ret

Function at 0x140003bd0
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Computer_herunterfahren___j_n_:
call fcn.140001070
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
lea rdx, [rsp + 0x30]
call fcn.140001240
movzx eax, byte [rsp + 0x30]
sub al, 0x4a
test al, 0xdf
je 0x14000104d
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Vorgang_abgebrochen._n
call fcn.140001070
xor eax, eax
add rsp, 0x28
ret
lea rcx, str.shutdown__s__t_0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001c78
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
xor eax, eax
lea rdx, [rcx + 0x58]
mov rdi, rcx
mov dword [rsp + 0x40], eax
mov rcx, qword [rcx + 0x20]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r8d, [rax + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rdi + 0x68], 1
mov rcx, qword [rdi + 0x58]
mov rax, rcx
jne 0x1400081df
shr rax, 0x38
mov byte [rsp + 0x40], al
mov rax, rcx
shr rax, 0x30
mov byte [rsp + 0x41], al
mov rax, rcx
shr rax, 0x28
mov byte [rsp + 0x42], al
mov rax, rcx
shr rax, 0x20
mov byte [rsp + 0x43], al
mov rax, rcx
shr rax, 0x18
mov byte [rsp + 0x44], al
mov rax, rcx
shr rax, 0x10
mov byte [rsp + 0x45], al
mov rax, rcx
shr rax, 8
mov byte [rsp + 0x46], al
mov byte [rsp + 0x47], cl
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400081f0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x40
mov dword [rcx + 0x68], 1
mov rsi, rdx
mov qword [rcx + 0x38], 0
mov rdi, rcx
mov rdx, qword [rdx]
add rcx, 0x30
mov edx, dword [rdx - 8]
call fcn.14001e440
mov rdx, qword [rsi]
mov rcx, qword [rdi + 0x30]
mov eax, dword [rdx - 8]
lea eax, [rax*2 + 2]
movsxd r8, eax
call fcn.1402d15b0
mov rbx, qword [rsi]
mov edx, 1
lea ecx, [rdx + 9]
call fcn.1402deebc
add rax, 8
mov rdx, 0xffffffffffffffff
mov qword [rsp + 0x60], rax
nop word [rax + rax]
inc rdx
cmp word [rbx + rdx*2], 0
jne 0x140008260
lea rcx, [rsp + 0x60]
call fcn.14001e440
mov rcx, qword [rsp + 0x60]
mov rdx, rbx
mov eax, dword [rcx - 8]
lea eax, [rax*2 + 2]
movsxd r8, eax
call fcn.1402d15b0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x68]
call fcn.14001da90
lea rcx, [rdi + 0x28]
mov rbx, rax
mov rdx, qword [rax]
mov edx, dword [rdx - 8]
call fcn.14001e440
mov rdx, qword [rbx]
mov rcx, qword [rdi + 0x28]
mov eax, dword [rdx - 8]
add eax, eax
movsxd r8, eax
call fcn.1402d15b0
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400082d6
add rcx, 0xfffffffffffffff8
call fcn.1402d83b4
mov rcx, qword [rdi + 0x28]
xor r9d, r9d
mov qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x20], rax
cmp rax, 0xffffffffffffffff
jne 0x140008321
mov qword [rdi + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsi]
jmp 0x140008349
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [rsp + 0x60]
shl rdx, 0x20
mov eax, eax
add rdx, rax
mov qword [rdi + 0x40], rdx
mov rcx, qword [rsi]
cmp rdx, 0x20
jae 0x140008367
test rcx, rcx
je 0x140008357
add rcx, 0xfffffffffffffff8
call fcn.1402d83b4
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
test rcx, rcx
je 0x140008375
add rcx, 0xfffffffffffffff8
call fcn.1402d83b4
mov rbx, qword [rsp + 0x70]
mov eax, 1
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140008610
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
lea rdx, [rcx + 0x58]
mov rdi, rcx
mov dword [rsp + 0x68], ebx
mov rcx, qword [rcx + 0x20]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rbx
lea r8d, [rbx + 4]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rdi + 0x20]
lea r9, [rsp + 0x68]
lea r8d, [rbx + 4]
mov dword [rsp + 0x68], ebx
lea rdx, [rdi + 0x58]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rdi + 0x68], 1
mov ebp, dword [rdi + 0x58]
jne 0x140008692
mov eax, ebp
mov byte [rsp + 0x6b], bpl
shr eax, 0x18
mov byte [rsp + 0x68], al
mov eax, ebp
shr eax, 0x10
mov byte [rsp + 0x69], al
mov eax, ebp
shr eax, 8
mov byte [rsp + 0x6a], al
mov ebp, dword [rsp + 0x68]
mov rcx, qword [rdi + 0x20]
lea r9, [rsp + 0x68]
mov r8d, 4
mov dword [rsp + 0x68], ebx
lea rdx, [rdi + 0x58]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rdi + 0x68], 1
mov r14d, dword [rdi + 0x58]
jne 0x1400086e6
mov eax, r14d
mov byte [rsp + 0x6b], r14b
shr eax, 0x18
mov byte [rsp + 0x68], al
mov eax, r14d
shr eax, 0x10
mov byte [rsp + 0x69], al
mov eax, r14d
shr eax, 8
mov byte [rsp + 0x6a], al
mov r14d, dword [rsp + 0x68]
mov rcx, qword [rdi + 0x20]
lea r9, [rsp + 0x68]
mov r8d, 4
mov dword [rsp + 0x68], ebx
lea rdx, [rdi + 0x58]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rdi + 0x68], 1
mov esi, dword [rdi + 0x58]
jne 0x140008735
mov eax, esi
mov byte [rsp + 0x6b], sil
shr eax, 0x18
mov byte [rsp + 0x68], al
mov eax, esi
shr eax, 0x10
mov byte [rsp + 0x69], al
mov eax, esi
shr eax, 8
mov byte [rsp + 0x6a], al
mov esi, dword [rsp + 0x68]
mov rcx, qword [rdi + 0x20]
lea r9, [rsp + 0x68]
mov r8d, 1
mov dword [rsp + 0x68], ebx
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rdi + 0x20]
lea r9, [rsp + 0x68]
mov r8d, 3
mov dword [rsp + 0x68], ebx
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp r14d, 0x16
jb 0x1400087b9
mov rcx, qword [rdi + 0x20]
lea r9, [rsp + 0x68]
mov r8d, 4
mov dword [rsp + 0x68], ebx
lea rdx, [rdi + 0x58]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rdi
call fcn.140008150
mov rcx, rdi
mov rbp, rax
call fcn.140008150
mov rsi, rax
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x68], rbx
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov r8, qword [rdi + 0x40]
lea edx, [rbp + 0x10]
cmp rdx, r8
je 0x1400087e6
mov eax, ebp
cmp rax, r8
jne 0x140008806
mov eax, esi
cmp rax, r8
ja 0x140008806
cmp esi, 0x20
setae bl
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x78]
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140012e30
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x1404b0028]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r14, rcx
lea rax, vtable.SFile.0
xor edi, edi
mov qword [rsp + 0x50], rax
mov ebp, 1
mov edx, ebp
lea ecx, [rdi + 0xa]
call fcn.1402deebc
mov rbx, qword [r14]
lea ecx, [rdi + 0xa]
add rax, 8
mov qword [rsp + 0x58], rdi
mov edx, ebp
mov qword [rsp + 0x60], rax
call fcn.1402deebc
add rax, 8
mov rdx, 0xffffffffffffffff
mov qword [rsp + 0x40], rax
nop
inc rdx
cmp word [rbx + rdx*2], di
jne 0x140012ea0
lea rcx, [rsp + 0x40]
call fcn.14001e440
mov rcx, qword [rsp + 0x40]
mov rdx, rbx
mov eax, dword [rcx - 8]
lea eax, [rax*2 + 2]
movsxd r8, eax
call fcn.1402d15b0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14001da90
lea rcx, [rsp + 0x60]
mov rbx, rax
mov rdx, qword [rax]
mov edx, dword [rdx - 8]
call fcn.14001e440
mov rdx, qword [rbx]
mov rsi, qword [rsp + 0x60]
mov rcx, rsi
mov eax, dword [rdx - 8]
add eax, eax
movsxd r8, eax
call fcn.1402d15b0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140012f1a
add rcx, 0xfffffffffffffff8
call fcn.1402d83b4
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140012f55
mov rbx, rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
cmp eax, 0x10
jbe 0x140012fad
add eax, 0xfffffff0
lea r8, [rsp + 0x48]
mov edx, eax
xor r9d, r9d
mov rcx, rbx
mov qword [rsp + 0x48], rdx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], edi
mov r8d, 0x10
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test rbx, rbx
je 0x140012fbe
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, rdi
mov rax, qword [str.3DMGAME_tkwlee]
sub rax, qword [rsp + 0x68]
jne 0x140012fd8
mov rax, qword [0x14064b448]
sub rax, qword [rsp + 0x70]
test rax, rax
cmove edi, ebp
test rbx, rbx
je 0x140012fec
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x140012ffa
lea rcx, [rsi - 8]
call fcn.1402d83b4
mov rcx, qword [r14]
test rcx, rcx
je 0x14001300b
add rcx, 0xfffffffffffffff8
call fcn.1402d83b4
mov eax, edi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140048b40
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14001dcb0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rdx
mov rdi, rcx
call fcn.1400214e0
mov edx, 1
lea ecx, [rdx + 9]
call fcn.1402deebc
add rax, 8
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x50], rax
mov rdx, rbx
nop word [rax + rax]
inc rdx
cmp word [rsi + rdx*2], 0
jne 0x14001dcf0
lea rcx, [rsp + 0x50]
call fcn.14001e440
mov rcx, qword [rsp + 0x50]
mov rdx, rsi
mov eax, dword [rcx - 8]
lea eax, [rax*2 + 2]
movsxd r8, eax
call fcn.1402d15b0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.14001da90
mov edx, 1
mov rsi, qword [rax]
lea ecx, [rdx + 9]
call fcn.1402deebc
add rax, 8
mov qword [rsp + 0x50], rax
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14001dd46
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14001e440
mov rcx, qword [rsp + 0x50]
mov rdx, rdi
mov eax, dword [rcx - 8]
lea eax, [rax*2 + 2]
movsxd r8, eax
call fcn.1402d15b0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.14001da90
mov rdx, rsi
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
test rcx, rcx
je 0x14001dda7
add rcx, 0xfffffffffffffff8
call fcn.1402d83b4
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14001ddba
add rcx, 0xfffffffffffffff8
call fcn.1402d83b4
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14001ddd0
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.1400214e0
mov edx, 1
lea ecx, [rdx + 9]
call fcn.1402deebc
add rax, 8
mov rdx, 0xffffffffffffffff
mov qword [rsp + 0x38], rax
nop dword [rax + rax]
inc rdx
cmp word [rbx + rdx*2], 0
jne 0x14001de00
lea rcx, [rsp + 0x38]
call fcn.14001e440
mov rcx, qword [rsp + 0x38]
mov rdx, rbx
mov eax, dword [rcx - 8]
lea eax, [rax*2 + 2]
movsxd r8, eax
call fcn.1402d15b0
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.14001da90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test rcx, rcx
je 0x14001de5d
add rcx, 0xfffffffffffffff8
call fcn.1402d83b4
mov eax, ebx
add rsp, 0x20
pop rbx
ret