joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f2c0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push r13
push r12
sub rsp, 0x4f8
mov r13, 0xffffffffffffffff
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x40f30a
mov rcx, r12
mov dword [rsp + 0x50], 0x100003
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rcx, r12
test eax, eax
cmovne r13, qword [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, r13
add rsp, 0x4f8
pop r12
pop r13
ret

Function at 0x40f390
Capabilities:
Create thread

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov r12d, dword [rsp + 0xb0]
mov rbx, rcx
mov rbp, rdx
mov rsi, r8
mov rdi, r9
cmp r12d, 0x10000
ja 0x40f560
mov rdx, qword [rcx + 8]
test rdx, rdx
je 0x40f3ee
mov rcx, qword [rcx + 0x10]
xor r9d, r9d
mov r8d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
mov rcx, qword [rbx + 0x10]
mov r13, qword [sym.imp.KERNEL32.dll_CloseHandle]
call r13
mov rcx, qword [rbx + 8]
call r13
mov rcx, qword [rbx]
test rcx, rcx
je 0x40f3fc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r13d, r13d
test r12d, r12d
jne 0x40f418
mov eax, r13d
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r8, rsi
xor edx, edx
mov rcx, rbp
call sym.memset
mov rax, rsi
mov ecx, r12d
xor edx, edx
shr rax, 1
mov qword [rbx], 0
shl rax, 0x10
mov qword [rbx + 8], 0
div rcx
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov qword [rbx + 0x20], 0
mov qword [rbx + 0x28], 0
mov qword [rbx + 0x30], 0
mov qword [0x00518400], rdi
mov dword [0x00518410], r12d
mov qword [0x005183f8], rbp
lea rax, [rdi + rax*2]
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [0x00518408], rax
call rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rdi
mov dword [rsp + 0x30], 2
mov r9, rbx
mov r8, rsi
mov dword [rsp + 0x28], 0
mov rcx, rax
mov rdx, r12
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x40f540
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x40f5a3
lea rax, [rsp + 0x4c]
xor ecx, ecx
mov r9, rbx
xor edx, edx
mov qword [rsp + 0x28], rax
lea r8, [dbg.profthr_func]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
mov rcx, rax
test rax, rax
je 0x40f576
mov edx, 0xf
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, r13d
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call sym._errno
mov r13d, 0xffffffff
mov dword [rax], 3
jmp 0x40f404
call sym._errno
mov r13d, 0xffffffff
mov dword [rax], 0x16
jmp 0x40f404
mov rcx, qword [rbx]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
or r13d, 0xffffffff
call rsi
mov rcx, qword [rbx + 0x10]
call rsi
mov qword [rbx], 0
call sym._errno
mov dword [rax], 0xb
jmp 0x40f404
xor ecx, ecx
or r13d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0
call sym._errno
mov dword [rax], 0xb
jmp 0x40f404
Function at 0x410e10
Capabilities:
Check for time delay via gettickcount
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, 0x48
lea eax, [rdx - 1]
mov r13, rcx
mov r12d, edx
cmp eax, 0xfffffffd
ja 0x410f40
mov rax, qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea r15, [rsp + 0x30]
mov rcx, r15
mov qword [rsp + 0x28], rax
call rax
test eax, eax
je 0x410f80
mov rbx, qword [rsp + 0x30]
test rbx, rbx
jle 0x410e6d
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x410f50
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
mov esi, r12d
mov rdi, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbp, qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14, qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
add rsi, rax
jmp 0x410eb8
test rbx, rbx
jle 0x410ea9
lea rcx, [rsp + 0x38]
call r14
test eax, eax
jne 0x410ee8
call rbp
mov eax, eax
cmp rsi, rax
jbe 0x410f15
mov r12d, esi
sub r12d, eax
mov edx, r12d
mov rcx, r13
call rdi
mov r12d, eax
cmp eax, 0x102
jne 0x410f15
test rbx, rbx
jne 0x410e98
mov rax, qword [rsp + 0x28]
mov rcx, r15
call rax
test eax, eax
je 0x410f30
mov rbx, qword [rsp + 0x30]
jmp 0x410e98
movabs rax, 0x20c49ba5e353f7cf
imul rbx
mov rax, rbx
sar rax, 0x3f
sar rdx, 7
sub rdx, rax
mov rax, qword [rsp + 0x38]
mov rcx, rdx
cqo
idiv rcx
cmp rsi, rax
ja 0x410eb2
mov eax, r12d
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, 0xffffffffffffffff
jmp 0x410ea9
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r12d, eax
jmp 0x410f15
movabs rdx, 0x20c49ba5e353f7cf
mov rax, rbx
imul rdx
mov rax, rbx
sar rax, 0x3f
sar rdx, 7
sub rdx, rax
mov rax, qword [rsp + 0x38]
mov rcx, rdx
cqo
idiv rcx
jmp 0x410e75
mov rbx, 0xffffffffffffffff
jmp 0x410e6d
Function at 0x410f90
Capabilities:
Check for time delay via gettickcount
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, 0x48
lea eax, [r9 - 1]
mov r13d, ecx
mov r14, rdx
mov edi, r8d
cmp eax, 0xfffffffd
ja 0x4110f0
lea rax, [rsp + 0x30]
mov dword [rsp + 0xa8], r9d
mov qword [rsp + 0x28], rax
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov qword [rsp + 0x20], rax
call rax
mov r9d, dword [rsp + 0xa8]
test eax, eax
je 0x411130
mov rbx, qword [rsp + 0x30]
test rbx, rbx
jle 0x41100e
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r9d, dword [rsp + 0xa8]
test eax, eax
jne 0x411100
mov dword [rsp + 0xa8], r9d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, dword [rsp + 0xa8]
mov eax, eax
mov esi, r9d
mov rbp, qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov r15, qword [sym.imp.KERNEL32.dll_GetTickCount]
add rsi, rax
jmp 0x411064
test rbx, rbx
jle 0x411054
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x411098
call r15
mov eax, eax
cmp rsi, rax
jbe 0x4110c5
mov r9d, esi
sub r9d, eax
mov r8d, edi
mov rdx, r14
mov ecx, r13d
call rbp
mov r12d, eax
cmp eax, 0x102
jne 0x4110c5
test rbx, rbx
jne 0x411040
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x20]
call rax
test eax, eax
je 0x4110e0
mov rbx, qword [rsp + 0x30]
jmp 0x411040
movabs rax, 0x20c49ba5e353f7cf
imul rbx
mov rax, rbx
sar rax, 0x3f
sar rdx, 7
sub rdx, rax
mov rax, qword [rsp + 0x38]
mov rcx, rdx
cqo
idiv rcx
cmp rsi, rax
ja 0x41105e
mov eax, r12d
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, 0xffffffffffffffff
jmp 0x411054
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov r12d, eax
jmp 0x4110c5
movabs rdx, 0x20c49ba5e353f7cf
mov rax, rbx
imul rdx
mov rax, rbx
sar rax, 0x3f
sar rdx, 7
sub rdx, rax
mov rax, qword [rsp + 0x38]
mov rcx, rdx
cqo
idiv rcx
jmp 0x411026
mov rbx, 0xffffffffffffffff
jmp 0x41100e
Function at 0x411a20
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
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 qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
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 0x411b31
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x411b09
inc rax
cmp rax, 0x6b
je 0x411b26
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x411b00
cmp edx, 0x6a
je 0x411b26
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x411b1a
Function at 0x411f30
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x00518490], 1
je 0x411fde
lea rcx, [0x004e61d0]
lea rbx, [0x00518490]
call sym.pthread_spin_lock
mov r12, qword [0x00518440]
test r12, r12
jne 0x411f81
jmp 0x412178
mov rax, qword [r12 + 0x18]
test rax, rax
je 0x412140
mov r12, rax
cmp qword [r12], rbx
jne 0x411f70
inc dword [r12 + 0x10]
lea r13, [r12 + 8]
lea rcx, [0x004e61d0]
call sym.pthread_spin_unlock
mov rcx, r13
call sym.pthread_mutex_lock
mov ebx, dword [0x00518490]
test ebx, ebx
jne 0x412000
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x004e61e8], eax
cmp eax, 0xffffffff
je sym.__pthread_self_lite.cold
mov dword [0x00518490], 1
mov rcx, r13
call sym.pthread_mutex_unlock
mov rcx, r12
call sym.leaveOnceObject.part.0
mov ecx, dword [0x004e61e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x412030
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop r12
pop r13
ret
cmp ebx, 1
je 0x411fce
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r9d, ebx
lea r8, [0x00518490]
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sym.fprintf
jmp 0x411fce
call sym.pop_pthread_mem
cmp qword [sym.__dyn_tls_pthread], 0
mov rbx, rax
je 0x411ff2
test rax, rax
je 0x411ff2
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call sym.pthread_spin_destroy
cmp eax, 1
je 0x41219d
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rsi
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rsi
mov dword [rsp + 0x30], 2
mov r8, r13
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 sym.__pthread_self_lite.cold
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x004e61e8]
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 sym.__pthread_self_lite.cold
mov r12, rbx
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop r12
pop r13
ret
mov edx, 0x20
mov ecx, 1
call sym.calloc
mov qword [rax], rbx
mov dword [rax + 0x10], 1
mov qword [r12 + 0x18], rax
mov r12, rax
lea r13, [r12 + 8]
xor edx, edx
mov rcx, r13
call sym.pthread_mutex_init
jmp 0x411f91
mov edx, 0x20
mov ecx, 1
call sym.calloc
mov qword [rax], rbx
mov r12, rax
mov dword [rax + 0x10], 1
mov qword [0x00518440], rax
jmp 0x412161
call sym.replace_spin_keys.part.0
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x412630
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push r13
push r12
sub rsp, 0x20
test edx, edx
jne 0x412660
test r8, r8
je 0x412710
mov eax, 1
add rsp, 0x20
pop r12
pop r13
pop r14
ret
cmp edx, 1
je 0x412740
cmp edx, 3
jne 0x412647
mov ecx, dword [0x004e61e8]
cmp ecx, 0xffffffff
je 0x412647
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x412647
test byte [rax + 0x40], 0x30
je 0x412770
mov rcx, qword [rax + 0x1d8]
test rcx, rcx
je 0x4126a2
call sym._pthread_cleanup_dest.part.0
mov rcx, qword [r12 + 0x28]
test rcx, rcx
je 0x4126cd
mov r13, qword [sym.imp.KERNEL32.dll_CloseHandle]
call r13
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x4126c3
call r13
pxor xmm0, xmm0
movups xmmword [r12 + 0x28], xmm0
lea rcx, [r12 + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [r12 + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x412804
mov qword [r12 + 0x68], 0xffffffffffffffff
mov rcx, r12
call sym.push_pthread_mem
mov ecx, dword [0x004e61e8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x412647
mov rcx, qword [0x00518450]
test rcx, rcx
je 0x412647
call qword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov qword [0x00518450], 0
jmp 0x412647
lea rdx, [sym.SetThreadName_VEH]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [0x00518450], rax
mov eax, 1
add rsp, 0x20
pop r12
pop r13
pop r14
ret
mov rcx, qword [rax + 0x30]
mov eax, dword [rax + 0xbc]
test eax, eax
jne 0x412810
test rcx, rcx
je 0x41278d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r12 + 0x1d8]
mov qword [r12 + 0x30], 0
mov dword [r12 + 0xbc], 1
test rcx, rcx
je 0x4127b4
call sym._pthread_cleanup_dest.part.0
lea r13, [r12 + 0x38]
lea r14, [r12 + 0x68]
test byte [r12 + 0x44], 4
je 0x412850
mov rcx, qword [r12 + 0x28]
mov dword [r12], 0xdeadbeef
test rcx, rcx
je 0x4127e2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r12 + 0x28], 0
mov rcx, r13
call sym.pthread_mutex_destroy
mov rcx, r14
call sym.pthread_spin_destroy
cmp eax, 1
jne 0x4126ea
call sym.replace_spin_keys.part.0
nop dword [rax]
test rcx, rcx
je 0x41281b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r12 + 0x30], 0
lea rcx, [r12 + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [r12 + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x412804
mov qword [r12 + 0x68], 0xffffffffffffffff
jmp 0x412647
mov rcx, r13
call sym.pthread_mutex_destroy
mov rcx, r14
call sym.pthread_spin_destroy
cmp eax, 1
jne 0x41283d
jmp 0x412804

Function at 0x4132f0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x004e61e8], eax
cmp eax, 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
ret
Function at 0x413b80
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
lea rcx, [0x004e61d8]
mov ebx, edx
call sym.pthread_mutex_lock
mov rax, qword [0x00518468]
test rax, rax
je 0x413bf0
mov r9, qword [0x00518470]
lea r8, [rax - 1]
xor edx, edx
cmp rax, 1
jne 0x413bce
jmp 0x413c70
cmp rax, rdx
je 0x413bf0
lea r8, [rax - 1]
cmp r8, rdx
jb 0x413bf0
lea rax, [rdx + r8]
shr rax, 1
mov rcx, rax
shl rcx, 4
add rcx, r9
cmp r12, qword [rcx + 8]
je 0x413c10
jb 0x413bc0
lea rdx, [rax + 1]
cmp r8, rdx
jae 0x413bce
lea rcx, [0x004e61d8]
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x28
pop rbx
pop r12
ret
mov rax, qword [rcx]
test rax, rax
je 0x413bf0
cmp qword [rax + 0x1d8], r12
jne 0x413bf0
test byte [rax + 0x40], 0xc
jne 0x413bf0
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x413bf0
mov rax, qword [rax + 0x28]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x413bf0
lea rcx, [0x004e61d8]
call sym.pthread_mutex_unlock
test ebx, ebx
je 0x413c68
sub ebx, 2
cmp ebx, 0x15
ja 0x413c80
mov rcx, r12
add rsp, 0x28
pop rbx
pop r12
jmp sym.pthread_cancel
xor eax, eax
jmp 0x413c01
cmp r12, qword [r9 + 8]
jne 0x413bf0
mov rax, qword [r9]
jmp 0x413c13
mov eax, 0x16
jmp 0x413c01
Function at 0x413f00
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 sym.pop_pthread_mem
mov r12, rax
test rax, rax
je 0x4141a0
test rdi, rdi
je 0x413f3a
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 0x413fb0
test ebx, ebx
je 0x4140b8
mov ecx, 0x14
call r14
cmp ebx, 4
je 0x413fb0
inc ebx
jmp 0x413f75
mov qword [r12 + 0x38], 0xffffffffffffffff
lea r14, [r12 + 0x68]
mov rcx, r14
call sym.pthread_spin_destroy
cmp eax, 1
je 0x4141b4
cmp qword [r12 + 0x30], 0
mov qword [r12 + 0x68], 0xffffffffffffffff
mov dword [r12], 0xbab1f00d
mov dword [r12 + 0xc0], 0
mov dword [r12 + 0xb8], 0
je 0x414152
xor edx, edx
test rsi, rsi
je 0x414028
mov eax, dword [rsi]
mov edx, dword [rsi + 0x10]
mov dword [r12 + 0x44], eax
test al, 8
jne 0x414180
mov eax, dword [rsi + 0x18]
mov dword [r12 + 0xc0], eax
lea r8, [sym.pthread_create_wrapper]
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 0x414118
mov eax, dword [r12 + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x4140e8
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 0x4140c8
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
xor ecx, ecx
inc ebx
call r13
jmp 0x413f75
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 0x414098
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x41406e
mov edx, 0xf
cmp eax, 0xe
jg 0x41406e
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x41406e
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x414128
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [r12 + 0x38]
call sym.pthread_mutex_destroy
mov rcx, r14
call sym.pthread_spin_destroy
cmp eax, 1
je 0x4141b4
mov qword [r12 + 0x68], 0xffffffffffffffff
pxor xmm0, xmm0
movups xmmword [r12 + 0x28], xmm0
test rdi, rdi
je 0x41415e
mov qword [rdi], 0
mov rcx, r12
call sym.push_pthread_mem
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 sym.__pthread_self_lite
mov edx, dword [rsp + 0x3c]
mov eax, dword [rax + 0xc0]
mov dword [r12 + 0xc0], eax
jmp 0x414028
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
call sym.replace_spin_keys.part.0
nop
nop word [rax + rax]
Function at 0x417e10
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x417e3c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x492860
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x492887
call rbp
cmp dword [rax], 4
jne 0x4928a4
mov rcx, qword [rdi]
call sym.fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sym.read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x492880
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001871
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x20], xmm8
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp], xmm6
aesimc xmm0, xmmword [rdx + 0x10]
aesimc xmm1, xmmword [rdx + 0x20]
aesimc xmm2, xmmword [rdx + 0x30]
aesimc xmm3, xmmword [rdx + 0x40]
aesimc xmm4, xmmword [rdx + 0x50]
aesimc xmm5, xmmword [rdx + 0x60]
aesimc xmm6, xmmword [rdx + 0x70]
aesimc xmm7, xmmword [rdx + 0x80]
aesimc xmm8, xmmword [rdx + 0x90]
mov rax, rcx
movaps xmm9, xmmword [rdx]
movaps xmm10, xmmword [rdx + 0xa0]
movaps xmmword [rcx], xmm9
movdqa xmmword [rcx + 0x10], xmm0
movdqa xmmword [rcx + 0x20], xmm1
movdqa xmmword [rcx + 0x30], xmm2
movdqa xmmword [rcx + 0x40], xmm3
movdqa xmmword [rcx + 0x50], xmm4
movdqa xmmword [rcx + 0x60], xmm5
movdqa xmmword [rcx + 0x70], xmm6
movdqa xmmword [rcx + 0x80], xmm7
movdqa xmmword [rcx + 0x90], xmm8
movaps xmmword [rcx + 0xa0], xmm10
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x14000254d
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x90
mov r14, rdx
mov rsi, rcx
movabs r12, 0x8000000000000000
lea r15, [rsp + 0x78]
mov rcx, r15
mov rdx, r8
mov r8, r9
call fcn.14000269c
lea r13, [rsp + 0x38]
mov dword [r13], 0x800
lea rdi, [rsp + 0x3c]
and dword [rdi], 0
lea rbx, [rsp + 0x60]
mov edx, 0x800
mov rcx, rbx
call fcn.140002376
mov r14, qword [r14]
mov r15, qword [r15 + 8]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
mov rcx, r14
mov rdx, r15
xor r8d, r8d
mov r9, rdi
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x1400025e5
mov edx, dword [rsp + 0x38]
mov rcx, rbx
call fcn.14009d890
jmp 0x1400025b0
test eax, eax
jne 0x140002607
mov eax, dword [rsp + 0x38]
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x3c]
cmp eax, 0xb
jbe 0x14000264f
movabs rax, 0xde00000002
jmp 0x14000260f
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r12
lea rcx, [rsp + 0x60]
call fcn.140001dfb
lea rcx, [rsp + 0x78]
call fcn.140001e15
mov rax, qword [rsp + 0x48]
mov qword [rsi + 8], rax
mov qword [rsi], r12
mov rax, rsi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movups xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x40], xmm0
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x50], rcx
mov byte [rsp + 0x58], al
mov rdi, qword [rsp + 0x40]
lea rcx, [rsp + 0x78]
call fcn.140001e15
cmp rdi, r12
je 0x14000262d
lea rdi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rdi
call fcn.14000807a
cmp qword [rdi], r12
je 0x140002639
lea rcx, [rsp + 0x40]
call fcn.140001dfb
jmp 0x140002639