joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400231c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14003b360]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14003b340]
test rbx, rbx
je 0x140023214
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 0x14002320b
test r12, r12
je 0x14002320b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400231f0
lea rcx, [0x14003b360]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140023440
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x140023450
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x140023460
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400234a5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x14002349c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x1400234a7
add rax, 0x28
cmp rax, r9
jne 0x140023488
xor eax, eax
ret

Function at 0x140023550
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140034400]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400235c9
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400235c9
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 0x1400235c6
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 0x1400235bd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400235c9
add r8, 0x28
cmp r8, r9
jne 0x1400235a8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x1400236b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140034400]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14002371f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14002371f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x14002371d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140023714
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140023728
add rax, 0x28
cmp rax, r9
jne 0x140023700
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140023740
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x140034400]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x1400237b8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400237b8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x1400237b8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400237b8
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x1400237ac
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x1400237c0
add rdx, 0x28
cmp rdx, r10
jne 0x140023798
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x1400237d0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x1400237de
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400237b5
test r8d, r8d
jg 0x1400237c8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret

Function at 0x140029aa0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14002f568], eax
cmp eax, 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
ret

Function at 0x14002a100
Capabilities:
Print debug messages

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, rcx
test rcx, rcx
je 0x14002a125
call dbg.pthread_spin_destroy
cmp eax, 1
je 0x14002a132
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 0x14002a1b8
mov eax, 0x28
jmp 0x14002a18a
add rax, 1
cmp rax, 0x6b
je 0x14002a1aa
cmp byte [r12 + rax], 0
mov edx, eax
jne 0x14002a180
cmp eax, 0x6a
je 0x14002a1aa
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 sym.abort
mov edx, 0x27
jmp 0x14002a198
Function at 0x14002a1c0
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 [0x14003be60], 1
je 0x14002a1d7
call sym._pthread_once_raw.part.0.constprop.0
mov ecx, dword [0x14002f568]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x14002a200
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
call sym.pop_pthread_mem
cmp qword [sym.__dyn_tls_pthread], 0
mov rbx, rax
je 0x14002a1eb
test rax, rax
je 0x14002a1eb
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 sym.replace_spin_keys.constprop.0
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 sym.__pthread_self_lite.cold
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x14002f568]
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 rdi
pop r12
ret
Function at 0x14002a470
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 0x14002a4a0
test r8, r8
je 0x14002a548
mov eax, 1
add rsp, 0x20
pop r12
pop r13
pop r14
ret
cmp edx, 1
je 0x14002a570
cmp edx, 3
jne 0x14002a487
mov ecx, dword [0x14002f568]
cmp ecx, 0xffffffff
je 0x14002a487
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x14002a487
test byte [rax + 0x40], 0x30
je 0x14002a5a0
mov rcx, qword [rax + 0x1d8]
test rcx, rcx
je 0x14002a4e2
call sym._pthread_cleanup_dest.part.0
mov rcx, qword [r12 + 0x28]
test rcx, rcx
je 0x14002a515
mov r13, qword [sym.imp.KERNEL32.dll_CloseHandle]
call r13
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x14002a503
call r13
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
lea rcx, [r12 + 0x38]
call dbg.pthread_mutex_destroy
lea rcx, [r12 + 0x68]
call sym.replace_spin_keys.constprop.0
mov rcx, r12
call sym.push_pthread_mem
mov ecx, dword [0x14002f568]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x14002a487
mov rcx, qword [0x14003be20]
test rcx, rcx
je 0x14002a487
call qword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov qword [0x14003be20], 0
jmp 0x14002a487
lea rdx, [dbg.SetThreadName_VEH]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [0x14003be20], 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 0x14002a628
test rcx, rcx
je 0x14002a5b9
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 0x14002a5e0
call sym._pthread_cleanup_dest.part.0
lea r14, [r12 + 0x38]
lea r13, [r12 + 0x68]
test byte [r12 + 0x44], 4
je 0x14002a658
mov rcx, qword [r12 + 0x28]
mov dword [r12], 0xdeadbeef
test rcx, rcx
je 0x14002a60a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r12 + 0x28], 0
mov rcx, r14
call dbg.pthread_mutex_destroy
mov rcx, r13
jmp 0x14002a524
test rcx, rcx
je 0x14002a633
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r12 + 0x30], 0
lea rcx, [r12 + 0x38]
call dbg.pthread_mutex_destroy
lea rcx, [r12 + 0x68]
call sym.replace_spin_keys.constprop.0
jmp 0x14002a487
mov rcx, r14
call dbg.pthread_mutex_destroy
mov rcx, r13
call sym.replace_spin_keys.constprop.0
jmp 0x14002a487
Function at 0x14002a670
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push r12
push rsi
push rbx
mov rbp, rsp
sub rsp, 0x28
mov qword [rbp + 0x28], rcx
call dbg._fpreset
lea rcx, [0x14002f558]
call dbg.pthread_mutex_lock
mov rax, qword [rbp + 0x28]
lea r12, [rax + 0x38]
mov rcx, r12
call dbg.pthread_mutex_lock
cmp dword [0x14003be60], 1
je 0x14002a6af
call sym._pthread_once_raw.part.0.constprop.0
mov rdx, qword [rbp + 0x28]
mov ecx, dword [0x14002f568]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rbx, qword [rbp + 0x28]
mov rcx, r12
mov dword [rbx + 0x70], eax
call dbg.pthread_mutex_unlock
mov rax, qword [rbp + 0x28]
mov rdx, rbp
lea rcx, [rax + 0xd0]
call sym._setjmp
test eax, eax
je 0x14002a780
lea rcx, [0x14002f558]
call dbg.pthread_mutex_lock
mov rax, qword [rbp + 0x28]
lea r12, [rax + 0x38]
mov rcx, r12
call dbg.pthread_mutex_lock
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax + 0x30]
mov rbx, qword [rax + 8]
test rcx, rcx
je 0x14002a722
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x28]
cmp qword [rax + 0x28], 0
mov qword [rax + 0x30], 0
je 0x14002a7de
mov rcx, r12
call dbg.pthread_mutex_unlock
mov rcx, r12
call dbg.pthread_mutex_destroy
mov rax, qword [rbp + 0x28]
mov qword [rax + 0x38], 0xffffffffffffffff
mov dword [rax + 0xbc], 1
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
lea rsi, [0x14002f558]
mov rcx, rsi
call dbg.pthread_mutex_unlock
test eax, eax
jne 0x14002a7d6
xor ecx, ecx
call r12
jmp 0x14002a76d
lea rcx, [0x14002f558]
call dbg.pthread_mutex_unlock
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x14002a814
mov rsi, qword [rbp + 0x28]
mov rcx, qword [rsi + 8]
call rax
mov r12, rax
nop
nop
lea rcx, [0x14002f558]
call dbg.pthread_mutex_lock
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax + 0x1d8]
mov qword [rax + 8], r12
test rcx, rcx
je 0x14002a6fb
call sym._pthread_cleanup_dest.part.0
jmp 0x14002a6fb
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__endthreadex]
mov rax, qword [rbp + 0x28]
mov rcx, r12
mov dword [rax], 0xdeadbeef
call dbg.pthread_mutex_unlock
mov rcx, r12
call dbg.pthread_mutex_destroy
mov rcx, qword [rbp + 0x28]
call sym.push_pthread_mem
mov ecx, dword [0x14002f568]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x14002a75f
mov r12d, pe_nt_image_headers64
jmp 0x14002a7a6
Function at 0x14002b3c0
Capabilities:
Hijack thread execution

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x4f8
mov rsi, rcx
call dbg.__pth_gpointer_locked
mov rbx, rax
test rax, rax
je 0x14002b48c
mov rcx, qword [rax + 0x28]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14002b48c
lea r12, [rsp + 0x20]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x14002b48c
lea r13, [rbx + 0x38]
mov rcx, r13
call dbg.pthread_mutex_lock
call sym.__pthread_self_lite
test rax, rax
je 0x14002b510
mov rdx, qword [rax + 0x1d8]
movzx eax, byte [rbx + 0x40]
cmp rsi, rdx
je 0x14002b4a0
mov edx, dword [rbx + 0x44]
and edx, 3
cmp edx, 3
je 0x14002b480
test al, 3
jne 0x14002b4f8
and eax, 0xfffffffc
or eax, 1
mov byte [rbx + 0x40], al
lock add dword [0x14003be68], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14002b466
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, r13
call dbg.pthread_mutex_unlock
xor eax, eax
add rsp, 0x4f8
pop rbx
pop rsi
pop r12
pop r13
ret
test al, 0xc
jne 0x14002b4f8
test al, 0xf
je 0x14002b520
mov eax, 3
add rsp, 0x4f8
pop rbx
pop rsi
pop r12
pop r13
ret
test al, 3
jne 0x14002b4f8
and eax, 0xfffffffc
or eax, 1
mov byte [rbx + 0x40], al
lock add dword [0x14003be68], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14002b4c4
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [rbx + 0x44]
mov edx, eax
and edx, 3
cmp edx, 3
jne 0x14002b466
and eax, 0xfffffffe
mov rcx, r13
mov dword [rbx + 0x44], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xfffffff3
or eax, 4
mov byte [rbx + 0x40], al
call dbg.pthread_mutex_unlock
call dbg._pthread_invoke_cancel
nop dword [rax]
mov rcx, r13
call dbg.pthread_mutex_unlock
test byte [rbx + 0x40], 0xc
jne 0x14002b48c
xor eax, eax
jmp 0x14002b470
xor edx, edx
jmp 0x14002b42a
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x50], 0x100001
call qword [sym.imp.KERNEL32.dll_SuspendThread]
xor edx, edx
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14002b466
mov rcx, qword [rbx + 0x28]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
lea rax, [dbg._pthread_invoke_cancel]
mov rcx, qword [rbx + 0x28]
mov rdx, r12
mov qword [rsp + 0x118], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
movzx eax, byte [rbx + 0x40]
and dword [rbx + 0x44], 0xfffffffe
and eax, 0xfffffff0
or eax, 5
mov byte [rbx + 0x40], al
lock add dword [0x14003be68], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14002b59a
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, r13
call dbg.pthread_mutex_unlock
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x14002b466
Function at 0x14002b5c0
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
lea rcx, [0x14002f558]
mov ebx, edx
call dbg.pthread_mutex_lock
mov rcx, r12
call sym.__pthread_get_pointer
test rax, rax
je 0x14002b638
cmp qword [rax + 0x1d8], r12
jne 0x14002b638
test byte [rax + 0x40], 0xc
jne 0x14002b638
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x14002b638
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x14002b638
lea rcx, [0x14002f558]
call dbg.pthread_mutex_unlock
test ebx, ebx
je 0x14002b658
lea edx, [rbx - 2]
cmp edx, 0x15
ja 0x14002b660
mov rcx, r12
add rsp, 0x28
pop rbx
pop r12
jmp dbg.pthread_cancel
lea rcx, [0x14002f558]
call dbg.pthread_mutex_unlock
mov eax, 3
add rsp, 0x28
pop rbx
pop r12
ret
xor eax, eax
jmp 0x14002b649
mov eax, 0x16
jmp 0x14002b649
Function at 0x14002b8e0
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 0x14002bb50
test rdi, rdi
je 0x14002b91a
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 0x14002b990
test ebx, ebx
je 0x14002b988
mov ecx, 0x14
call r14
cmp ebx, 4
je 0x14002b990
add ebx, 1
jmp 0x14002b955
xor ecx, ecx
call r13
jmp 0x14002b97f
mov qword [r12 + 0x38], 0xffffffffffffffff
lea r14, [r12 + 0x68]
mov rcx, r14
call sym.replace_spin_keys.constprop.0
cmp qword [r12 + 0x30], 0
mov dword [r12], 0xbab1f00d
mov dword [r12 + 0xc0], 0
mov dword [r12 + 0xb8], 0
je 0x14002bafc
xor edx, edx
test rsi, rsi
je 0x14002b9f6
mov eax, dword [rsi]
mov edx, dword [rsi + 0x10]
mov dword [r12 + 0x44], eax
test al, 8
jne 0x14002bb28
mov eax, dword [rsi + 0x18]
mov dword [r12 + 0xc0], eax
lea r8, [dbg.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 0x14002bac8
mov eax, dword [r12 + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x14002baa0
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 0x14002ba80
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 0x14002ba66
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x14002ba3c
mov edx, 0xf
cmp eax, 0xe
jg 0x14002ba3c
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x14002ba3c
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x14002bad8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [r12 + 0x38]
call dbg.pthread_mutex_destroy
mov rcx, r14
call sym.replace_spin_keys.constprop.0
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
test rdi, rdi
je 0x14002bb08
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 0x14002b9f6
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140011005
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
jmp 0x1400129f0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x1b8]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x160], rax
lea rcx, [0x1400280f9]
call fcn.140011497
nop
mov dword [rbp + 4], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x48], 0
mov dword [rbp + 0x64], 0
lea r9, [rbp + 0x64]
mov r8d, dword [rbp + 0x64]
mov rdx, qword [rbp + 0x48]
mov ecx, 0x10
call fcn.14001137a
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xc0000004
jne 0x140012aed
cmp qword [rbp + 0x48], 0
je 0x140012ab9
mov eax, dword [rbp + 0x64]
shl rax, 1
mov qword [rbp + 0x158], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rbp + 0x158]
mov r9, rcx
mov r8, qword [rbp + 0x48]
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rbp + 0x48], rax
jmp 0x140012ae8
mov eax, dword [rbp + 0x64]
shl rax, 1
mov qword [rbp + 0x158], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rbp + 0x158]
mov r8, rcx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x48], rax
jmp 0x140012a5b
cmp dword [rbp + 4], 0
je 0x140012af7
jmp 0x140012b73
mov dword [rbp + 0x84], 0
jmp 0x140012b11
mov eax, dword [rbp + 0x84]
inc eax
mov dword [rbp + 0x84], eax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax]
cmp dword [rbp + 0x84], eax
jae 0x140012b73
mov eax, dword [rbp + 0x84]
imul rax, rax, 0x18
mov rcx, qword [rbp + 0x48]
movzx eax, word [rcx + rax + 8]
cmp eax, dword [rbp + 0x190]
jne 0x140012b71
mov eax, dword [rbp + 0x84]
imul rax, rax, 0x18
mov rcx, qword [rbp + 0x48]
movzx eax, word [rcx + rax + 0xe]
movzx ecx, word [rbp + 0x198]
cmp eax, ecx
jne 0x140012b71
mov eax, dword [rbp + 0x84]
imul rax, rax, 0x18
mov rcx, qword [rbp + 0x48]
mov rax, qword [rcx + rax + 0x10]
mov qword [rbp + 0x28], rax
jmp 0x140012b73
jmp 0x140012b03
cmp qword [rbp + 0x48], 0
je 0x140012b90
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 0x48]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rax, qword [rbp + 0x28]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001dc80]
call fcn.14001140b
mov rax, rdi
mov rcx, qword [rbp + 0x160]
xor rcx, rbp
call fcn.140011212
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x14001124e
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x140013eb0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rcx, [0x1400280f9]
call fcn.140011497
nop
mov rax, qword [rbp + 0x180]
mov eax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x180]
add rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, word [rax + 0x14]
mov rcx, qword [rbp + 8]
lea rax, [rcx + rax + 0x18]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0x50]
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x44]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
je 0x140014035
mov eax, dword [rbp + 0x44]
mov r8d, eax
xor edx, edx
mov rcx, qword [rbp + 0x68]
call fcn.140011398
nop
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0x54]
mov r8d, eax
mov rdx, qword [rbp + 0x180]
mov rcx, qword [rbp + 0x68]
call fcn.140011217
nop
mov dword [rbp + 0x84], 0
jmp 0x140013f7e
mov eax, dword [rbp + 0x84]
inc eax
mov dword [rbp + 0x84], eax
mov rax, qword [rbp + 8]
movzx eax, word [rax + 6]
cmp dword [rbp + 0x84], eax
jae 0x140014017
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x28]
mov ecx, dword [rcx + 8]
cmp dword [rax + 0x10], ecx
jae 0x140013fb1
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 0x10]
mov dword [rbp + 0x154], eax
jmp 0x140013fbe
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 8]
mov dword [rbp + 0x154], eax
mov eax, dword [rbp + 0x154]
mov rcx, qword [rbp + 0x28]
mov ecx, dword [rcx + 0x14]
mov rdx, qword [rbp + 0x180]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rbp + 0x28]
mov edx, dword [rdx + 0xc]
mov r8, qword [rbp + 0x68]
add r8, rdx
mov rdx, r8
mov qword [rbp + 0x158], rdx
mov r8d, eax
mov rdx, rcx
mov rax, qword [rbp + 0x158]
mov rcx, rax
call fcn.140011217
nop
mov rax, qword [rbp + 0x28]
add rax, 0x28
mov qword [rbp + 0x28], rax
jmp 0x140013f70
mov rax, qword [rbp + 0x190]
mov rcx, qword [rbp + 0x68]
mov qword [rax], rcx
mov rax, qword [rbp + 0x198]
mov ecx, dword [rbp + 0x44]
mov dword [rax], ecx
mov al, 1
jmp 0x140014037
xor al, al
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x14001126c
Capabilities:
Terminate process

Disassembly:
jmp 0x140016780
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret