joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180033410
Capabilities:
Allocate or change rwx memory
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x180080920]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov edx, 0x1000
mov rdi, rcx
mov r8d, edx
mov r9d, 4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
movsd xmm0, qword [str.COM0]
mov rbx, rax
mov eax, dword [0x18006ddb8]
mov dword [rsp + 0x20], eax
movzx eax, word [0x18006ddbc]
mov word [rsp + 0x24], ax
movzx eax, word [0x18006ddc8]
mov word [rsp + 0x30], ax
movsd qword [rsp + 0x28], xmm0
mov qword [rsp + 0x58], rsi
nop word [rax + rax]
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
call fcn.18004c900
mov r8d, 0x208
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1800334d8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rsi, [rdi + rcx*2]
mov rcx, rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180033597
movzx eax, word [rsp + 0x20]
inc ax
mov word [rsp + 0x20], ax
cmp ax, 0x5a
jbe 0x180033480
cmp word [rsp + 0x2e], 0x39
ja 0x180033567
nop dword [rax]
nop word [rax + rax]
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
call fcn.18004c900
mov r8d, 0x208
lea rcx, [rsp + 0x28]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x180033554
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rsi, [rdi + rcx*2]
mov rcx, rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1800335c6
movzx eax, word [rsp + 0x2e]
inc ax
mov word [rsp + 0x2e], ax
cmp ax, 0x39
jbe 0x180033500
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rsi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180049ad0
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
call fcn.18004c900
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rax, rbx
jmp 0x18003357a
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
call fcn.18004c900
lea rdx, [rsp + 0x28]
jmp 0x1800335ac
Function at 0x180033b90
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor esi, esi
mov ebx, r8d
mov r15d, edx
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180033c7d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rsp + 0x20], eax
lea r8d, [rsi + 2]
mov rcx, rdi
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rbp, rax
test rax, rax
je 0x180033c5b
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
lea edx, [rsi + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
test rax, rax
je 0x180033c5b
mov r8d, ebx
mov edx, r15d
mov rcx, rax
call sym.TitanEngine.dll_GetPE32DataFromMappedFile
mov r9, rsi
mov r8, rbp
mov edx, r14d
mov rcx, rdi
mov rbx, rax
call fcn.18000dc30
mov rax, rbx
jmp 0x180033c7f
lea rdx, [rsp + 0x78]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x180033c7d
test byte [rsp + 0x78], 2
jne 0x180033c7d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x180033ca0
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor esi, esi
mov ebx, r8d
mov r15d, edx
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180033d8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rsp + 0x20], eax
lea r8d, [rsi + 2]
mov rcx, rdi
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rbp, rax
test rax, rax
je 0x180033d6b
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
lea edx, [rsi + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
test rax, rax
je 0x180033d6b
mov r8d, ebx
mov edx, r15d
mov rcx, rax
call sym.TitanEngine.dll_GetPE32DataFromMappedFile
mov r9, rsi
mov r8, rbp
mov edx, r14d
mov rcx, rdi
mov rbx, rax
call fcn.18000dc30
mov rax, rbx
jmp 0x180033d8f
lea rdx, [rsp + 0x78]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x180033d8d
test byte [rsp + 0x78], 2
jne 0x180033d8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x180033fc0
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor esi, esi
mov rbx, rdx
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], pe_nt_image_headers64
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800340a5
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rsp + 0x20], eax
lea r8d, [rsi + 2]
mov rcx, rdi
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rbp, rax
test rax, rax
je 0x180034083
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
lea edx, [rsi + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
test rax, rax
je 0x180034083
mov rdx, rbx
mov rcx, rax
call sym.TitanEngine.dll_GetPE32DataFromMappedFileEx
mov r9, rsi
movzx ebx, al
mov r8, rbp
mov edx, r14d
mov rcx, rdi
call fcn.18000dc30
test rbx, rbx
je 0x1800340a5
mov al, 1
jmp 0x1800340a7
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1800340a5
test byte [rsp + 0x70], 2
jne 0x1800340a5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x1800340c0
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor esi, esi
mov rbx, rdx
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], pe_nt_image_headers64
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800341a5
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rsp + 0x20], eax
lea r8d, [rsi + 2]
mov rcx, rdi
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rbp, rax
test rax, rax
je 0x180034183
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
lea edx, [rsi + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
test rax, rax
je 0x180034183
mov rdx, rbx
mov rcx, rax
call sym.TitanEngine.dll_GetPE32DataFromMappedFileEx
mov r9, rsi
movzx ebx, al
mov r8, rbp
mov edx, r14d
mov rcx, rdi
call fcn.18000dc30
test rbx, rbx
je 0x1800341a5
mov al, 1
jmp 0x1800341a7
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1800341a5
test byte [rsp + 0x70], 2
jne 0x1800341a5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x1800346a0
Capabilities:
Get file size

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 r12
push r14
push r15
sub rsp, 0x50
xor ebp, ebp
mov rbx, r9
mov qword [rax - 0x38], rbp
mov r15d, r8d
mov r12d, edx
mov dword [rax - 0x40], 0x80
xor r9d, r9d
mov dword [rax - 0x48], 3
lea r8d, [rbp + 1]
mov edx, 0xe0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180034799
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor r9d, r9d
mov qword [rsp + 0x28], rbp
xor edx, edx
mov dword [rsp + 0x20], eax
lea r8d, [rbp + 0x40]
mov rcx, rdi
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rsi, rax
test rax, rax
je 0x180034777
xor r9d, r9d
mov qword [rsp + 0x20], rbp
xor r8d, r8d
lea edx, [rbp + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbp, rax
test rax, rax
je 0x180034777
mov r9, rbx
mov r8d, r15d
mov edx, r12d
mov rcx, rax
call sym.TitanEngine.dll_SetPE32DataForMappedFile
mov r9, rbp
movzx ebx, al
mov r8, rsi
mov edx, r14d
mov rcx, rdi
call fcn.18000dc30
test rbx, rbx
je 0x180034799
mov al, 1
jmp 0x18003479b
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x180034799
test byte [rsp + 0x40], 2
jne 0x180034799
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x1800347c0
Capabilities:
Get file size

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 r12
push r14
push r15
sub rsp, 0x50
xor ebp, ebp
mov rbx, r9
mov qword [rax - 0x38], rbp
mov r15d, r8d
mov r12d, edx
mov dword [rax - 0x40], 0x80
xor r9d, r9d
mov dword [rax - 0x48], 3
lea r8d, [rbp + 1]
mov edx, 0xe0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800348b9
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor r9d, r9d
mov qword [rsp + 0x28], rbp
xor edx, edx
mov dword [rsp + 0x20], eax
lea r8d, [rbp + 0x40]
mov rcx, rdi
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rsi, rax
test rax, rax
je 0x180034897
xor r9d, r9d
mov qword [rsp + 0x20], rbp
xor r8d, r8d
lea edx, [rbp + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbp, rax
test rax, rax
je 0x180034897
mov r9, rbx
mov r8d, r15d
mov edx, r12d
mov rcx, rax
call sym.TitanEngine.dll_SetPE32DataForMappedFile
mov r9, rbp
movzx ebx, al
mov r8, rsi
mov edx, r14d
mov rcx, rdi
call fcn.18000dc30
test rbx, rbx
je 0x1800348b9
mov al, 1
jmp 0x1800348bb
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1800348b9
test byte [rsp + 0x40], 2
jne 0x1800348b9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x180034ae0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor esi, esi
mov rbx, rdx
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], pe_nt_image_headers64
mov edx, 0xe0000000
mov dword [rsp + 0x20], 3
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180034bc5
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rsp + 0x20], eax
lea r8d, [rsi + 0x40]
mov rcx, rdi
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rbp, rax
test rax, rax
je 0x180034ba3
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
lea edx, [rsi + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
test rax, rax
je 0x180034ba3
mov rdx, rbx
mov rcx, rax
call sym.TitanEngine.dll_SetPE32DataForMappedFileEx
mov r9, rsi
movzx ebx, al
mov r8, rbp
mov edx, r14d
mov rcx, rdi
call fcn.18000dc30
test rbx, rbx
je 0x180034bc5
mov al, 1
jmp 0x180034bc7
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x180034bc5
test byte [rsp + 0x70], 2
jne 0x180034bc5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x180034be0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor esi, esi
mov rbx, rdx
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], pe_nt_image_headers64
mov edx, 0xe0000000
mov dword [rsp + 0x20], 3
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180034cc5
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rsp + 0x20], eax
lea r8d, [rsi + 0x40]
mov rcx, rdi
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rbp, rax
test rax, rax
je 0x180034ca3
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
lea edx, [rsi + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
test rax, rax
je 0x180034ca3
mov rdx, rbx
mov rcx, rax
call sym.TitanEngine.dll_SetPE32DataForMappedFileEx
mov r9, rsi
movzx ebx, al
mov r8, rbp
mov edx, r14d
mov rcx, rdi
call fcn.18000dc30
test rbx, rbx
je 0x180034cc5
mov al, 1
jmp 0x180034cc7
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x180034cc5
test byte [rsp + 0x70], 2
jne 0x180034cc5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x180037db0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov eax, 0x2060
call fcn.18005f3d0
sub rsp, rax
mov rax, qword [0x180080920]
xor rax, rsp
mov qword [rsp + 0x2050], rax
xor ebp, ebp
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x48], ebp
xor edx, edx
mov dword [rsp + 0x44], ebp
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x40], ebp
mov r8d, 0x2000
call fcn.18004c900
lea r8, [rsp + 0x44]
mov rcx, rdi
lea rdx, [rsp + 0x48]
call sym.TitanEngine.dll_FindOverlayW
test al, al
je 0x180037f7f
mov qword [rsp + 0x30], rbp
lea r8d, [rbp + 1]
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180037f7f
mov rcx, rbx
call fcn.1800069b0
mov qword [rsp + 0x30], rbp
lea r8d, [rbp + 1]
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov rcx, rdi
cmp rax, 0xffffffffffffffff
je 0x180037f60
mov edx, dword [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [rsp + 0x44]
test ebx, ebx
je 0x180037f4c
nop dword [rax]
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x2000
call fcn.18004c900
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rdi
cmp ebx, 0x1000
jbe 0x180037f20
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180037f7f
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180037f7f
lea eax, [rbx - 0x1000]
mov ebx, eax
test eax, eax
jne 0x180037eb0
jmp 0x180037f4c
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180037f7f
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov r8d, ebx
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180037f7f
mov rcx, rdi
call fcn.18000d5c0
mov rcx, rsi
call fcn.18000d5c0
mov al, 1
jmp 0x180037f81
lea rdx, [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x180037f7f
test byte [rsp + 0x44], 2
jne 0x180037f7f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.180049ad0
mov rbx, qword [rsp + 0x2090]
add rsp, 0x2060
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800380a0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
mov eax, 0x2060
call fcn.18005f3d0
sub rsp, rax
mov rax, qword [0x180080920]
xor rax, rsp
mov qword [rsp + 0x2050], rax
mov rdi, rdx
mov rbx, rcx
xor r14d, r14d
lea rcx, [rsp + 0x50]
xor edx, edx
mov dword [rsp + 0x40], r14d
mov r8d, 0x2000
call fcn.18004c900
mov qword [rsp + 0x30], r14
lea r8d, [r14 + 1]
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18003825b
mov qword [rsp + 0x30], r14
lea r8d, [r14 + 1]
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
mov rcx, rsi
cmp rax, 0xffffffffffffffff
je 0x18003823c
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor edx, edx
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov rcx, rsi
mov edi, eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
test edi, edi
je 0x180038228
nop
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x2000
call fcn.18004c900
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rbp
cmp edi, 0x1000
jbe 0x1800381fc
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18003825b
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r14
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18003825b
add edi, 0xfffff000
jne 0x180038190
jmp 0x180038228
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18003825b
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r14
mov r8d, edi
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18003825b
mov rcx, rsi
call fcn.18000d5c0
mov rcx, rbp
call fcn.18000d5c0
mov al, 1
jmp 0x18003825d
lea rdx, [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x18003825b
test byte [rsp + 0x44], 2
jne 0x18003825b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.180049ad0
lea r11, [rsp + 0x2060]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180038380
Capabilities:
Delete file
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x180080920]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.18004c900
xor edx, edx
lea rcx, [rsp + 0x230]
mov r8d, 0x208
call fcn.18004c900
lea rdx, [rsp + 0x230]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x104
jae 0x18003843b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r9, [rsp + 0x20]
lea rdx, str.OverlayTemp
lea rcx, [rsp + 0x230]
lea r8d, [rax + 0x65]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x18003843b
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sym.TitanEngine.dll_ExtractOverlayW
test al, al
je 0x18003843b
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sym.TitanEngine.dll_AddOverlayW
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
jmp 0x18003843d
xor al, al
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.180049ad0
mov rbx, qword [rsp + 0x470]
add rsp, 0x450
pop rdi
ret

Function at 0x1800384f0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x68], ebp
mov rbx, rcx
call sym.TitanEngine.dll_FindOverlayW
test al, al
je 0x1800385e4
mov qword [rsp + 0x30], rbp
lea r8d, [rbp + 1]
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov edx, 0xe0000000
mov dword [rsp + 0x20], 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800385e4
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor r9d, r9d
mov qword [rsp + 0x28], rbp
xor edx, edx
mov dword [rsp + 0x20], eax
lea r8d, [rbp + 0x40]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rsi, rax
test rax, rax
je 0x1800385c2
xor r9d, r9d
mov qword [rsp + 0x20], rbp
xor r8d, r8d
lea edx, [rbp + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x1800385c2
sub edi, dword [rsp + 0x68]
mov r9, rax
mov edx, edi
mov r8, rsi
mov rcx, rbx
call fcn.18000dc30
mov al, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1800385e4
test byte [rsp + 0x68], 2
jne 0x1800385e4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
xor al, al
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret