joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016f20
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.14000e274
xor ebx, ebx
mov rdi, rax
cmp qword [0x14002dba8], rbx
jne 0x140017026
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1400170fb
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400170fb
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14002dba8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14002dbb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x14002dbb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x14002dbc8], rax
test rax, rax
je 0x14001701d
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14002dbc0], rax
jmp 0x14001702d
mov rax, qword [0x14002dbc0]
jmp 0x140017034
mov rax, qword [0x14002dbc0]
mov r11, qword [0x14002dbc8]
cmp rax, rdi
je 0x14001709c
cmp r11, rdi
je 0x14001709c
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14002dbc8]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14001709c
test rax, rax
je 0x14001709c
call rsi
test rax, rax
je 0x140017096
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140017096
test byte [rsp + 0x38], 1
jne 0x14001709c
bts ebp, 0x15
jmp 0x1400170da
mov rcx, qword [0x14002dbb0]
cmp rcx, rdi
je 0x1400170da
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400170da
call rax
mov rbx, rax
test rax, rax
je 0x1400170da
mov rcx, qword [0x14002dbb8]
cmp rcx, rdi
je 0x1400170da
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400170da
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14002dba8]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400170fb
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1400170fd
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x6968be70
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.6969b8e0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.6969b8e0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x6968bee0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x69a625e4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x6968c088
mov rax, qword [0x69a625e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x6968bf2c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x6968bfb7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x6968bf10
mov rcx, r12
call fcn.6968cbe0
mov rbp, rax
test rax, rax
je 0x6968c0c2
mov rax, qword [0x69a625e8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.6968cd10
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x69a625e8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6968c0d1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x6968bfb0
sub eax, 4
and eax, 0xfffffffb
jne 0x6968c040
add dword [0x69a625e4], 1
cmp ebx, 8
jae 0x6968bfe8
test bl, 4
jne 0x6968c090
test ebx, ebx
je 0x6968bfd9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x6968c0b0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x6968bfd9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x6968c01a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x69a625e8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6968bfb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.6968be70
nop dword [rax]
xor edi, edi
jmp 0x6968bf37
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x6968bfd9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x6968bfd9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.6968be70
mov rax, qword [0x69a625e8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.6968be70
nop
nop dword [rax]
Function at 0x6968c850
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x69a628c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x69a628a0]
test rbx, rbx
je 0x6968c8a4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x6968c89b
test r12, r12
je 0x6968c89b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6968c880
lea rcx, [0x69a628c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x6968cbe0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x69a01c60]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x6968cc59
mov rcx, r10
call fcn.6968cab0
test eax, eax
je 0x6968cc59
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x6968cc56
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x6968cc4d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x6968cc59
add r8, 0x28
cmp r8, r9
jne 0x6968cc38
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x6968d190
Capabilities:
Allocate thread local storage

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x6968d1c0
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp fcn.696a1060
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x6968d200
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x6968d240
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x6968d258
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x6968dc90
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, qword [rcx + 8]
mov rdi, qword [rcx]
mov rbx, rcx
cmp rsi, 8
ja 0x6968dc40
lea rcx, [rdi + 8]
call sub.msvcrt.dll_malloc
test rax, rax
je 0x6968dc82
mov rdx, qword [rbx + 0x18]
mov qword [rax], rax
lea r9, [rax + 8]
mov r8, rdi
test rdx, rdx
je 0x6968dc6a
mov rcx, r9
call sub.msvcrt.dll_memcpy
mov r9, rax
mov rax, r9
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
lea rcx, [rsi + rdi + 7]
call sub.msvcrt.dll_malloc
test rax, rax
je 0x6968dc82
lea r9, [rax + rsi + 7]
neg rsi
mov r8, rdi
and r9, rsi
mov qword [r9 - 8], rax
mov rdx, qword [rbx + 0x18]
test rdx, rdx
jne 0x6968dc28
mov rcx, r9
xor edx, edx
call sub.msvcrt.dll_memset
mov r9, rax
mov rax, r9
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
sub rsp, 0x28
xor ecx, ecx
xor r9d, r9d
mov r8d, 0xffff
mov dword [0x69a62910], 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x69a62918], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x6968dce0
lea rdx, [0x6968dba0]
mov dword [0x69a62908], eax
call fcn.696a1060
test eax, eax
jne 0x6968dce8
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x6968dcd7
call sub.msvcrt.dll_abort
nop
nop
Function at 0x6968dcf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r13, qword [0x69a01ac0]
mov r11d, dword [r13]
mov r12, rcx
test r11d, r11d
jne 0x6968dd30
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x6968dd98
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x6968ddb0
mov r13d, dword [0x69a62908]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rsi
mov r14d, eax
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r14d
mov r13, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r13, r13
je 0x6968de28
mov r14, qword [r13]
cmp r14, rbx
jb 0x6968de70
lea r13, [r13 + rbx*8]
mov rax, qword [r13]
test rax, rax
jne 0x6968dd19
mov rcx, r12
call fcn.6968dbf0
mov qword [r13], rax
jmp 0x6968dd19
call fcn.6968dbf0
mov qword [r12 + 0x10], rax
jmp 0x6968dd19
mov r10d, dword [r13]
test r10d, r10d
je 0x6968ded2
mov r9d, dword [0x699ee030]
test r9d, r9d
je 0x6968df00
lock add dword [0x69a62910], 1
jne 0x6968df34
mov rbx, qword [r12 + 0x10]
test rbx, rbx
je 0x6968dee0
mov eax, dword [r13]
test eax, eax
je 0x6968dd39
mov eax, 0xffffffff
lock xadd dword [0x69a62910], eax
sub eax, 1
js 0x6968dd39
mov rcx, qword [0x69a62918]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x6968dd39
lea rcx, [rbx + 0x21]
mov edx, 8
lea rdi, [rbx + 0x20]
call sub.msvcrt.dll_calloc
mov r13, rax
test rax, rax
je 0x6968df5b
mov qword [rax], rdi
mov ecx, dword [0x69a62908]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x6968dd77
call rsi
jmp 0x6968dd77
lea rdi, [r14 + r14]
lea rax, [rbx + 0x20]
mov rcx, r13
cmp rbx, rdi
cmova rdi, rax
lea rdx, [rdi*8 + 8]
call sub.msvcrt.dll_realloc
mov r13, rax
test rax, rax
je 0x6968df5b
mov qword [rax], rdi
sub rdi, r14
lea rcx, [rax + r14*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sub.msvcrt.dll_memset
jmp 0x6968de49
call 0x6968dc90
mov dword [0x699ee030], 1
mov edx, dword [r13]
test edx, edx
jne 0x6968ddcd
mov rbx, qword [r12 + 0x10]
test rbx, rbx
jne 0x6968dd39
mov rax, qword [0x69a62900]
lea rbx, [rax + 1]
mov qword [0x69a62900], rbx
mov qword [r12 + 0x10], rbx
jmp 0x6968dde9
lock add dword [0x699ee034], 1
je 0x6968deb7
mov r8d, dword [0x699ee030]
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [0x699ee030]
test r8d, r8d
jne 0x6968dec6
nop dword [rax]
xor ecx, ecx
call rsi
mov ecx, dword [rbx]
test ecx, ecx
je 0x6968df28
jmp 0x6968dec6
mov rcx, qword [0x69a62918]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x6968dddb
lock sub dword [0x69a62910], 1
jmp 0x6968dddb
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]
nop dword [rax]
cmp qword [rcx], rdx
jae 0x6968df80
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x6968df8a
mov qword [rcx + 8], r8
test r9, r9
je 0x6968df94
cmp qword [rcx], rdx
je 0x6968df98
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x6969d7f0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x699ee128], eax
cmp eax, 0xffffffff
je 0x699ed730
add rsp, 0x28
ret
call sub.msvcrt.dll_abort
nop

Function at 0x6969de50
Capabilities:
Print debug messages

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, rcx
test rcx, rcx
je 0x6969de75
call fcn.6969d6b0
cmp eax, 1
je 0x6969de82
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
ret
lea r12, [rsp + 0x20]
xor eax, eax
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
mov rdi, r12
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x6969df08
mov eax, 0x28
jmp 0x6969deda
add rax, 1
cmp rax, 0x6b
je 0x6969defa
cmp byte [r12 + rax], 0
mov edx, eax
jne 0x6969ded0
cmp eax, 0x6a
je 0x6969defa
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x27
jmp 0x6969dee8

Function at 0x6969df10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x69a63380], 1
je 0x6969df27
call fcn.6969ddc0
mov ecx, dword [0x699ee128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x6969df50
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
call fcn.6969dcf0
cmp qword [0x69a68040], 0
mov rbx, rax
je 0x6969df3b
test rax, rax
je 0x6969df3b
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.6969de50
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rdi
mov dword [rsp + 0x30], 2
mov r8, rsi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x699ed736
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x699ee128]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x699ed736
mov r12, rbx
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x6969f630
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
mov rbp, r9
call fcn.6969dcf0
mov r12, rax
test rax, rax
je 0x6969f8a0
test rdi, rdi
je 0x6969f66a
mov rax, qword [rax + 0x1d8]
mov qword [rdi], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [r12 + 8], rbp
mov dword [r12 + 0x44], 1
mov rbp, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [r12 + 0xbc], 0
mov r14, r13
mov qword [r12 + 0x28], 0xffffffffffffffff
mov qword [r12 + 0x10], rbx
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call rbp
mov qword [r12 + 0x30], rax
test rax, rax
jne 0x6969f6e0
test ebx, ebx
je 0x6969f6d8
mov ecx, 0x14
call r14
cmp ebx, 4
je 0x6969f6e0
add ebx, 1
jmp 0x6969f6a5
xor ecx, ecx
call r13
jmp 0x6969f6cf
mov qword [r12 + 0x38], 0xffffffffffffffff
lea r14, [r12 + 0x68]
mov rcx, r14
call fcn.6969de50
cmp qword [r12 + 0x30], 0
mov dword [r12], 0xbab1f00d
mov dword [r12 + 0xc0], 0
mov dword [r12 + 0xb8], 0
je 0x6969f84c
xor edx, edx
test rsi, rsi
je 0x6969f746
mov eax, dword [rsi]
mov edx, dword [rsi + 0x10]
mov dword [r12 + 0x44], eax
test al, 8
jne 0x6969f878
mov eax, dword [rsi + 0x18]
mov dword [r12 + 0xc0], eax
lea r8, [0x6969e3c0]
mov r9, r12
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov r13, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x6969f818
mov eax, dword [r12 + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x6969f7f0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [r12 + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [r12 + 0x44], 4
jne 0x6969f7d0
mov qword [r12 + 0x28], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov qword [r12 + 0x28], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x6969f7b6
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x6969f78c
mov edx, 0xf
cmp eax, 0xe
jg 0x6969f78c
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x6969f78c
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x6969f828
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [r12 + 0x38]
call fcn.6969d530
mov rcx, r14
call fcn.6969de50
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
test rdi, rdi
je 0x6969f858
mov qword [rdi], 0
mov rcx, r12
call fcn.6969da40
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov dword [rsp + 0x3c], edx
call fcn.6969df10
mov edx, dword [rsp + 0x3c]
mov eax, dword [rax + 0xc0]
mov dword [r12 + 0xc0], eax
jmp 0x6969f746
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x696b83e0
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbx, rcx
mov rsi, rdx
test rcx, rcx
je 0x696b8540
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov r8d, 1
mov rcx, rsi
mov dword [rsp + 0x28], pe_nt_image_headers64
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
mov eax, 1
cmp r12, 0xffffffffffffffff
je 0x696b8501
lea rdx, [rsp + 0x48]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x696b8510
mov rax, qword [rsp + 0x48]
cmp rax, 0x7fffffff
jg 0x696b8510
test rax, rax
je 0x696b8510
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
mov rcx, r12
mov qword [rsp + 0x28], 0
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r13, rax
test rax, rax
je 0x696b8510
mov edx, dword [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], 0
mov dword [rbx + 8], edx
mov edx, 4
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
mov qword [rbx], rax
call rdi
cmp qword [rbx], 0
je 0x696b8558
lea r10, [0x698d9b50]
mov qword [rbx + 0x28], r10
mov rcx, r12
call rdi
mov r11, qword [rbx]
mov qword [rbx + 0x18], rsi
xor eax, eax
mov qword [rbx + 0x20], 0
mov qword [rbx + 0x10], r11
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call rdi
mov eax, 0x51
mov qword [rbx], 0
mov qword [rbx + 8], 0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov eax, 0x28
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [rbx + 0x30]
movsxd r8, dword [rbx + 8]
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x696b8517
mov r8d, dword [rbx + 8]
mov r13, qword [sym.imp.KERNEL32.dll_ReadFile]
xor ebp, ebp
lea r14, [rsp + 0x44]
jmp 0x696b85a0
mov r8d, dword [rbx + 8]
add ebp, dword [rsp + 0x44]
cmp r8d, ebp
je 0x696b85d8
mov rax, qword [rbx]
mov edx, ebp
sub r8d, ebp
mov r9, r14
mov rcx, r12
mov qword [rsp + 0x20], 0
add rdx, rax
call r13
test eax, eax
jne 0x696b8590
mov r9, qword [rbx + 0x30]
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [r9]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x696b8517
lea r8, [0x698d9b10]
mov qword [rbx + 0x28], r8
jmp 0x696b84e7
Function at 0x696d7370
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
movups xmmword [rsp + 0x80], xmm6
movups xmmword [rsp + 0x90], xmm7
movups xmmword [rsp + 0xa0], xmm8
pxor xmm7, xmm7
mov rsi, qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movupd xmm6, xmm1
lea rdi, [rsp + 0x30]
mov rbx, rcx
mov rcx, rdi
call rsi
comisd xmm7, xmm6
mov rdx, qword [rbx]
mov rax, qword [rsp + 0x30]
movsd xmm2, qword [rbx + 0x10]
movsd xmm3, qword [rdx]
ja 0x696d75a0
movsd xmm1, qword [0x699f3928]
comisd xmm1, xmm6
jae 0x696d74a0
pxor xmm0, xmm0
subsd xmm6, xmm1
cvtsi2sd xmm0, rax
divsd xmm0, xmm3
subsd xmm0, xmm2
addsd xmm6, xmm0
comisd xmm0, xmm6
jae 0x696d7590
mov r14, qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov r15, qword [sym.imp.USER32.dll_WaitMessage]
lea r13, [rbx + 0x18]
lea rbp, [rbx + 0x20]
movsd xmm8, qword [0x699f3930]
jmp 0x696d7484
mulsd xmm4, xmm8
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0x4bf
cvttsd2si r9, xmm4
call r14
mov rdx, rbp
mov rcx, r13
call fcn.696f9c50
mov r12d, eax
test eax, eax
jne 0x696d74b0
mov rcx, rdi
call rsi
mov rcx, qword [rbx]
pxor xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x30]
divsd xmm0, qword [rcx]
subsd xmm0, qword [rbx + 0x10]
comisd xmm0, xmm6
jae 0x696d7590
movupd xmm4, xmm6
subsd xmm4, xmm0
comisd xmm7, xmm4
jbe 0x696d7430
call r15
jmp 0x696d744c
lea rdx, [rbx + 0x20]
lea rcx, [rbx + 0x18]
call fcn.696f9c50
mov r12d, eax
xor esi, esi
cmp qword [rbx + 0x18], 0
mov r13, qword [sym.imp.USER32.dll_UpdateWindow]
je 0x696d74eb
mov r8, qword [rbx + 0x20]
mov rcx, qword [r8 + rsi*8]
mov r9d, dword [rcx + 0x48]
and r9d, 0x11
cmp r9d, 1
je 0x696d7520
mov r10, qword [rcx + 0x10]
mov rcx, qword [r10 + 0x30]
add rsi, 1
call r13
cmp qword [rbx + 0x18], rsi
ja 0x696d74c0
movups xmm6, xmmword [rsp + 0x80]
movups xmm7, xmmword [rsp + 0x90]
mov eax, r12d
movups xmm8, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x30], 0
mov rdx, rdi
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x30], 4
call qword [rcx + 0x20]
mov r11, qword [rbx + 0x20]
mov rax, qword [r11 + rsi*8]
mov r10, qword [rax + 0x10]
jmp 0x696d74da
xor r12d, r12d
jmp 0x696d74b0
call qword [sym.imp.USER32.dll_WaitMessage]
lea rdx, [rbx + 0x20]
lea rcx, [rbx + 0x18]
call fcn.696f9c50
mov r12d, eax
jmp 0x696d74b0