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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xf70]
mov eax, 0x1070
call fcn.18005f3d0
sub rsp, rax
mov rax, qword [0x180080920]
xor rax, rsp
mov qword [rbp + 0xf60], rax
mov rdi, r8
mov qword [rsp + 0x48], rdx
mov r15, rdx
mov r14, rcx
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x1000
mov rsi, r9
call fcn.18004c900
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r12d, r12d
mov dword [rsp + 0x30], 2
mov rcx, rax
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x58]
mov dword [rsp + 0x20], r12d
mov r8, rbx
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x18002dfd0
mov eax, dword [rsp + 0x4c]
lea r8, [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
xor r9d, r9d
mov edx, r15d
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x18002dfd0
mov rcx, rsi
call fcn.1800069b0
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 1]
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18002dfd0
cmp rdi, 0x1000
jae 0x18002ded1
mov ebx, edi
test rdi, rdi
je 0x18002df83
jmp 0x18002dee0
mov ebx, 0x1000
nop word [rax + rax]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r12
mov r8d, ebx
lea rdx, [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, dword [rsp + 0x40]
test eax, eax
je 0x18002df6b
cmp r8d, ebx
jne 0x18002df6b
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r12
mov r8d, ebx
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, 0x1000
jbe 0x18002df38
sub rdi, 0x1000
jne 0x18002dee0
jmp 0x18002df83
mov eax, ebx
cmp rax, rdi
je 0x18002df83
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r12
mov r8d, edi
lea rdx, [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, dword [rsp + 0x40]
test eax, eax
je 0x18002df6b
cmp r8d, ebx
jne 0x18002df6b
mov r8d, edi
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r12
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x58]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x18002dfaa
test byte [rsp + 0x48], 2
jne 0x18002dfaa
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x18002dfcc
test byte [rsp + 0x48], 2
jne 0x18002dfcc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x18002dff9
mov rbx, qword [rsp + 0x58]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x18002dff7
test byte [rsp + 0x48], 2
jne 0x18002dff7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rbp + 0xf60]
xor rcx, rsp
call fcn.180049ad0
add rsp, 0x1070
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x18002ef70
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rdx, qword [0x180090a88]
mov rsi, rcx
mov rcx, qword [0x180090a90]
movabs r14, 0xeeeeeeeeeeeeeeef
mov rax, rcx
sub rax, rdx
sar rax, 2
imul rax, r14
movsxd rbp, eax
test eax, eax
jle 0x18002f001
xor ebx, ebx
mov edi, ebx
nop
mov rax, rcx
sub rax, rdx
sar rax, 2
imul rax, r14
cmp rax, rbx
jbe 0x18002f022
cmp qword [rdi + rdx], rsi
jne 0x18002eff5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x18002f01e
mov rcx, qword [0x180090a90]
mov rdx, qword [0x180090a88]
inc rbx
add rdi, 0x3c
cmp rbx, rbp
jl 0x18002efc0
xor al, al
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
mov al, 1
jmp 0x18002f003
call fcn.180005850
int3

Function at 0x18002f030
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rdx, qword [0x180090a88]
mov rsi, rcx
mov rcx, qword [0x180090a90]
movabs r14, 0xeeeeeeeeeeeeeeef
mov rax, rcx
sub rax, rdx
sar rax, 2
imul rax, r14
movsxd rbp, eax
test eax, eax
jle 0x18002f0c1
xor ebx, ebx
mov edi, ebx
nop
mov rax, rcx
sub rax, rdx
sar rax, 2
imul rax, r14
cmp rax, rbx
jbe 0x18002f0e2
cmp qword [rdi + rdx], rsi
jne 0x18002f0b5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x18002f0de
mov rcx, qword [0x180090a90]
mov rdx, qword [0x180090a88]
inc rbx
add rdi, 0x3c
cmp rbx, rbp
jl 0x18002f080
xor al, al
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
mov al, 1
jmp 0x18002f0c3
call fcn.180005850
int3

Function at 0x18002f0f0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r9, qword [0x180090a90]
movabs r12, 0xeeeeeeeeeeeeeeef
mov r8, qword [0x180090a88]
mov rax, r9
sub rax, r8
xor esi, esi
sar rax, 2
mov r15d, edx
imul rax, r12
mov rbp, rcx
movsxd r14, eax
test eax, eax
jle 0x18002f199
mov ebx, esi
mov edi, esi
nop word [rax + rax]
mov rax, r9
sub rax, r8
sar rax, 2
imul rax, r12
cmp rax, rbx
jbe 0x18002f1e7
cmp qword [rdi + r8], rbp
jne 0x18002f18b
mov edx, r15d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x18002f1ba
mov r9, qword [0x180090a90]
mov r8, qword [0x180090a88]
inc esi
inc rbx
add rdi, 0x3c
cmp rbx, r14
jl 0x18002f150
xor al, al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
mov r8, qword [0x180090a90]
movsxd rax, esi
imul rcx, rax, 0x3c
add rcx, qword [0x180090a88]
lea rdx, [rcx + 0x3c]
sub r8, rdx
call fcn.18004c130
sub qword [0x180090a90], 0x3c
mov al, 1
jmp 0x18002f19b
call fcn.180005850
int3
Function at 0x18002f1f0
Capabilities:
Suspend thread

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 rdx, qword [0x180090a90]
movzx ebp, cl
mov rcx, qword [0x180090a88]
mov rax, rdx
sub rax, rcx
movabs r15, 0xeeeeeeeeeeeeeeef
sar rax, 2
mov sil, 1
imul rax, r15
movsxd r14, eax
test eax, eax
jle 0x18002f2b1
xor ebx, ebx
xor edi, edi
nop
test bpl, bpl
je 0x18002f26a
mov rax, rdx
sub rax, rcx
sar rax, 2
imul rax, r15
cmp rax, rbx
jbe 0x18002f2ce
mov rax, qword [rdi + rcx]
cmp rax, qword [0x180082d10]
je 0x18002f26a
mov rcx, rax
jmp 0x18002f27e
sub rdx, rcx
sar rdx, 2
imul rdx, r15
cmp rdx, rbx
jbe 0x18002f2ce
mov rcx, qword [rdi + rcx]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
xor ecx, ecx
mov edx, eax
cmp edx, 0xffffffff
movzx eax, sil
cmovne ecx, eax
inc rbx
add rdi, 0x3c
movzx esi, cl
cmp rbx, r14
jge 0x18002f2b1
mov rdx, qword [0x180090a90]
mov rcx, qword [0x180090a88]
jmp 0x18002f240
mov rbx, qword [rsp + 0x40]
movzx eax, sil
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
call fcn.180005850
int3

Function at 0x18002f2e0
Capabilities:
Resume thread

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 rdx, qword [0x180090a90]
movzx ebp, cl
mov rcx, qword [0x180090a88]
mov rax, rdx
sub rax, rcx
movabs r15, 0xeeeeeeeeeeeeeeef
sar rax, 2
mov sil, 1
imul rax, r15
movsxd r14, eax
test eax, eax
jle 0x18002f3a1
xor ebx, ebx
xor edi, edi
nop
test bpl, bpl
je 0x18002f35a
mov rax, rdx
sub rax, rcx
sar rax, 2
imul rax, r15
cmp rax, rbx
jbe 0x18002f3be
mov rax, qword [rdi + rcx]
cmp rax, qword [0x180082d10]
je 0x18002f35a
mov rcx, rax
jmp 0x18002f36e
sub rdx, rcx
sar rdx, 2
imul rdx, r15
cmp rdx, rbx
jbe 0x18002f3be
mov rcx, qword [rdi + rcx]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
mov edx, eax
cmp edx, 0xffffffff
movzx eax, sil
cmovne ecx, eax
inc rbx
add rdi, 0x3c
movzx esi, cl
cmp rbx, r14
jge 0x18002f3a1
mov rdx, qword [0x180090a90]
mov rcx, qword [0x180090a88]
jmp 0x18002f330
mov rbx, qword [rsp + 0x40]
movzx eax, sil
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
call fcn.180005850
int3

Function at 0x18002f550
Capabilities:
Create thread

Disassembly:
sub rsp, 0x58
mov rax, rcx
mov rcx, qword [0x180082d08]
test rcx, rcx
je 0x18002f5c3
mov qword [rsp + 0x30], r9
mov r9, rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], r8
xor r8d, r8d
test dl, dl
jne 0x18002f58c
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
add rsp, 0x58
ret
xor edx, edx
mov qword [rsp + 0x50], rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rax
lea rdx, [rsp + 0x40]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x18002f5be
test byte [rsp + 0x40], 2
jne 0x18002f5be
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x58
ret
Function at 0x18002f5d0
Capabilities:
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov r9d, r8d
mov r8d, edx
mov rdx, rcx
mov rcx, qword [0x180082d08]
jmp sym.TitanEngine.dll_ThreaderInjectAndExecuteCodeEx

Function at 0x18002f5f0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
test rcx, rcx
je 0x18002f660
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], r9
mov r9, rdx
xor edx, edx
test r8b, r8b
jne 0x18002f628
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
add rsp, 0x48
ret
xor r8d, r8d
mov qword [rsp + 0x40], rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rax
lea rdx, [rsp + 0x50]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x18002f65b
test byte [rsp + 0x50], 2
jne 0x18002f65b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x48
ret

Function at 0x18002f670
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov ebp, r8d
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x18002f72b
mov ebx, r9d
xor edx, edx
mov r8d, ebx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
lea rcx, [rsp + 0x40]
xor r14d, r14d
mov qword [rsp + 0x20], rcx
mov r9d, ebx
mov rcx, rdi
mov qword [rsp + 0x40], r14
mov r8, rsi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18002f72b
mov rcx, qword [0x180082d08]
lea r9, [rsi + rbp]
test rcx, rcx
je 0x18002f727
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rax
lea rdx, [rsp + 0x70]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x18002f727
test byte [rsp + 0x70], 2
jne 0x18002f727
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x18002f72d
xor al, al
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret

Function at 0x18002f7d0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, rbx
test eax, eax
je 0x18002f7f4
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor al, al
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
add rsp, 0x20
pop rbx
ret
Function at 0x18002ff80
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor edi, edi
mov rsi, r8
mov rbx, rdx
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1800301bb
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
xor edx, edx
mov dword [rsp + 0x20], eax
lea r8d, [rdi + 2]
mov rcx, r14
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r12, rax
test rax, rax
je 0x180030193
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea edx, [rdi + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r15, rax
test rax, rax
je 0x180030193
mov r9, rax
mov qword [rsp + 0x70], rbp
xor r8d, r8d
mov byte [rsp + 0x20], 1
mov rdx, r14
call fcn.180007830
test al, al
je 0x180030177
movsxd rax, dword [r15 + 0x3c]
mov edx, 0x10b
add rax, r15
movzx ecx, word [rax + 0x18]
cmp cx, dx
jne 0x1800300d0
mov ecx, dword [rax + 0xc0]
test ecx, ecx
je 0x180030177
mov edx, dword [rax + 0x34]
mov r8b, 1
add rdx, rcx
mov rcx, r15
call sym.TitanEngine.dll_ConvertVAtoFileOffset
test rax, rax
je 0x180030177
mov eax, dword [rax + 0xc]
test eax, eax
je 0x180030177
mov edx, eax
mov r8b, 1
mov rcx, r15
mov ebp, edi
call sym.TitanEngine.dll_ConvertVAtoFileOffset
test rax, rax
je 0x180030177
cmp qword [rax], rdi
je 0x18003013d
test rbx, rbx
je 0x1800300c3
mov rcx, qword [rax]
mov qword [rbx], rcx
add rbx, 8
add rax, 8
inc edi
cmp qword [rax], rbp
jne 0x1800300b4
jmp 0x18003013d
mov edx, 0x20b
cmp cx, dx
jne 0x18003017e
mov ecx, dword [rax + 0xd0]
test ecx, ecx
je 0x180030177
mov edx, ecx
mov r8b, 1
add rdx, qword [rax + 0x30]
mov rcx, r15
call sym.TitanEngine.dll_ConvertVAtoFileOffset
test rax, rax
je 0x180030177
mov rdx, qword [rax + 0x18]
test rdx, rdx
je 0x180030177
mov r8b, 1
mov rcx, r15
mov rbp, rdi
call sym.TitanEngine.dll_ConvertVAtoFileOffset
test rax, rax
je 0x180030177
cmp qword [rax], rdi
je 0x18003013d
test rbx, rbx
je 0x180030132
mov rcx, qword [rax]
mov qword [rbx], rcx
add rbx, 8
add rax, 8
inc edi
cmp qword [rax], rbp
jne 0x180030123
test rsi, rsi
je 0x180030144
mov dword [rsi], edi
mov r9, r15
mov r8, r12
mov edx, r13d
mov rcx, r14
call fcn.18000dc30
mov al, 1
mov rbp, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
test rsi, rsi
je 0x18003017e
mov dword [rsi], edi
mov r9, r15
mov r8, r12
mov edx, r13d
mov rcx, r14
call fcn.18000dc30
xor al, al
jmp 0x180030157
lea rdx, [rsp + 0x88]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1800301bb
test byte [rsp + 0x88], 2
jne 0x1800301bb
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x18003015c
Function at 0x180030870
Capabilities:
Get file size

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xe0000000
lea r8d, [r15 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
je 0x180030a86
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
mov dword [rsp + 0x88], eax
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor edx, edx
lea r8d, [r15 + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rsi, rax
mov qword [rsp + 0x98], rax
test rax, rax
je 0x180030a5e
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
mov qword [rsp + 0x90], rax
test rax, rax
je 0x180030a5e
mov byte [rsp + 0x20], 1
mov r9, rax
xor r8d, r8d
mov rdx, rbx
call fcn.180007830
test al, al
je 0x1800309d7
movsxd rax, dword [rdi + 0x3c]
add rax, rdi
movzx ecx, word [rax + 0x18]
mov edx, 0x10b
cmp cx, dx
je 0x1800309f6
mov edx, 0x20b
cmp cx, dx
jne 0x1800309d7
mov ecx, dword [rax + 0xd0]
test ecx, ecx
je 0x1800309d7
mov edx, ecx
add rdx, qword [rax + 0x30]
mov r8b, 1
mov rcx, rdi
call sym.TitanEngine.dll_ConvertVAtoFileOffset
mov r9, rdi
mov r8, rsi
mov edx, r14d
mov rcx, rbx
cmp qword [rax + 0x18], r15
je 0x1800309a3
mov qword [rax + 0x18], r15
call fcn.18000dc30
mov al, 1
jmp 0x180030a88
call fcn.18000dc30
xor al, al
jmp 0x180030a88
mov r9, rdi
mov r8, rsi
mov edx, r14d
mov rcx, rbx
call fcn.18000dc30
xor al, al
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, dword [rax + 0xc0]
test ecx, ecx
je 0x1800309d7
mov edx, dword [rax + 0x34]
add rdx, rcx
mov r8b, 1
mov rcx, rdi
call sym.TitanEngine.dll_ConvertVAtoFileOffset
mov r9, rdi
mov r8, rsi
mov edx, r14d
mov rcx, rbx
cmp dword [rax + 0xc], 0
je 0x180030a30
mov dword [rax + 0xc], r15d
call fcn.18000dc30
mov al, 1
jmp 0x180030a88
call fcn.18000dc30
xor al, al
jmp 0x180030a88
lea rdx, [rsp + 0x88]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x180030a86
test byte [rsp + 0x88], 2
jne 0x180030a86
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x180030b30
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
xor r12d, r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xe0000000
lea r8d, [r12 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
je 0x180030d4a
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
mov dword [rsp + 0x88], eax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor edx, edx
lea r8d, [r12 + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rsi, rax
mov qword [rsp + 0x98], rax
test rax, rax
je 0x180030d22
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
mov qword [rsp + 0x90], rax
test rax, rax
je 0x180030d22
mov byte [rsp + 0x20], 1
mov r9, rax
xor r8d, r8d
mov rdx, rbx
call fcn.180007830
test al, al
je 0x180030ca2
movsxd r15, dword [rdi + 0x3c]
add r15, rdi
movzx eax, word [r15 + 0x18]
mov ecx, 0x10b
cmp ax, cx
je 0x180030cb8
mov ecx, 0x20b
cmp ax, cx
jne 0x180030ca2
mov eax, dword [r15 + 0xd0]
test eax, eax
je 0x180030ca2
mov edx, eax
add rdx, qword [r15 + 0x30]
mov r8b, 1
mov rcx, rdi
call sym.TitanEngine.dll_ConvertVAtoFileOffset
mov qword [r15 + 0xd0], r12
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rax + 0x20], rcx
mov r9, rdi
mov r8, rsi
mov edx, r14d
mov rcx, rbx
call fcn.18000dc30
mov al, 1
jmp 0x180030d4c
mov r9, rdi
mov r8, rsi
mov edx, r14d
mov rcx, rbx
call fcn.18000dc30
jmp 0x180030d4a
mov eax, dword [r15 + 0xc0]
test eax, eax
je 0x180030ca2
mov edx, dword [r15 + 0x34]
add rdx, rax
mov r8b, 1
mov rcx, rdi
call sym.TitanEngine.dll_ConvertVAtoFileOffset
mov qword [r15 + 0xc0], r12
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rcx
mov r9, rdi
mov r8, rsi
mov edx, r14d
mov rcx, rbx
call fcn.18000dc30
mov al, 1
jmp 0x180030d4c
lea rdx, [rsp + 0x88]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x180030d4a
test byte [rsp + 0x88], 2
jne 0x180030d4a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x180031730
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rbx, rdx
mov r13, r8
xor edx, edx
mov r12d, r9d
mov rdi, rcx
lea r8d, [rdx + 1]
call sym.TitanEngine.dll_GetPE32DataW
xor esi, esi
xor r9d, r9d
mov dword [rsp + 0x28], esi
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
mov rbp, rax
lea r8d, [rsi + 0x50]
call sym.TitanEngine.dll_AddNewSectionExW
mov qword [rsp + 0x30], rsi
lea r8d, [rsi + 1]
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov edx, 0xe0000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18003187c
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, rbx
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rsi, rax
test rax, rax
je 0x18003185a
xor r9d, r9d
mov qword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
je 0x18003185a
lea rdx, [r14 + rbp]
mov r8b, 1
mov rcx, rax
call sym.TitanEngine.dll_ConvertVAtoFileOffset
xor bpl, bpl
test eax, eax
je 0x180031840
mov edx, eax
mov r9, r13
mov r8d, r14d
mov dword [rsp + 0x20], r12d
mov rcx, rdi
call sym.TitanEngine.dll_TLSBuildNewTable
movzx ebp, al
mov r9, rdi
mov r8, rsi
mov edx, r15d
mov rcx, rbx
call fcn.18000dc30
test bpl, bpl
je 0x18003187c
mov al, 1
jmp 0x18003187e
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x18003187c
test byte [rsp + 0x40], 2
jne 0x18003187c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180033250
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 + 0x30], rax
mov rdi, rcx
mov edx, 0x1000
xor ecx, ecx
mov r8d, edx
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
movzx edx, word [0x18006d744]
mov rbx, rax
mov ecx, dword [0x18006ddb0]
mov word [rsp + 0x20], dx
movzx edx, byte [0x18006d746]
mov dword [rsp + 0x24], ecx
movzx ecx, byte [0x18006ddb4]
mov byte [rsp + 0x22], dl
mov byte [rsp + 0x28], cl
mov qword [rsp + 0x58], rsi
nop dword [rax]
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
call fcn.18004c900
mov r8d, 0x1000
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x180033317
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rsi, eax
mov rcx, rbx
add rsi, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1800333c2
movzx eax, byte [rsp + 0x20]
inc al
mov byte [rsp + 0x20], al
cmp al, 0x5a
jle 0x1800332c0
cmp byte [rsp + 0x27], 0x39
jg 0x180033392
nop dword [rax]
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
call fcn.18004c900
mov r8d, 0x1000
lea rcx, [rsp + 0x24]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x180033383
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rsi, eax
mov rcx, rbx
add rsi, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1800333f1
movzx eax, byte [rsp + 0x27]
inc al
mov byte [rsp + 0x27], al
cmp al, 0x39
jle 0x180033330
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 + 0x30]
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_lstrcatA]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rax, rbx
jmp 0x1800333a5
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
call fcn.18004c900
lea rdx, [rsp + 0x24]
jmp 0x1800333d7