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

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140110158]
test eax, eax
jne 0x140012638
xor eax, eax
add rsp, 0x28
ret
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400d1048]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012668
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001262e
test byte [rax + 0x40], 3
je 0x14001262e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140012630
call sym.__pthread_self_lite.part.0
test rax, rax
je 0x14001262e
jmp 0x14001264e

Function at 0x140012680
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400d1048]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400126c0
test ebx, ebx
jle 0x1400126b0
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x14001269d
add rsp, 0x20
pop rbx
ret

Function at 0x1400127b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400d1048]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140012828
test byte [rbx + 0x40], 0xc
jne 0x1400127df
mov eax, dword [0x140110158]
test eax, eax
jne 0x1400127f0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call sym.pthread_mutex_lock
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140012813
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140012813
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001283c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp sym.pthread_mutex_unlock
call sym.__pthread_self_lite.part.0
mov rbx, rax
test rax, rax
jne 0x1400127cf
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001285a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call sym.pthread_mutex_unlock
call sym._pthread_invoke_cancel
nop
nop dword [rax + rax]
Function at 0x140012870
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400128d8
call sym._pthread_time_in_ms_from_timespec
mov rsi, rax
mov eax, 0xffffffff
cmp rsi, rax
cmovbe rax, rsi
mov rdi, rax
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400d1048]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140012920
test rsi, rsi
je 0x1400128ee
call sym.pthread_testcancel
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140012910
mov edx, edi
call sym._pthread_wait_for_single_object
call sym.pthread_testcancel
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400d1048]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012930
call sym.pthread_testcancel
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call sym.pthread_testcancel
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400128c6
call sym.__pthread_self_lite.part.0
mov rbx, rax
jmp 0x1400128ac
call sym.__pthread_self_lite.part.0
jmp 0x1400128ee

Function at 0x140012940
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400d1048]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400129b0
test esi, esi
je 0x140012990
call sym.pthread_testcancel
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400129c0
mov edx, esi
call sym._pthread_wait_for_single_object
call sym.pthread_testcancel
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call sym.pthread_testcancel
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call sym.pthread_testcancel
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call sym.__pthread_self_lite.part.0
mov rbx, rax
jmp 0x140012961
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001297a
Function at 0x1400129d0
Capabilities:
Get thread local storage value
Hijack thread execution

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x518
mov rdi, qword [0x1400db730]
mov rax, qword [rdi]
mov qword [rsp + 0x508], rax
xor eax, eax
mov rsi, rcx
test rcx, rcx
je 0x140012ad0
lea rbp, [0x1400d1038]
mov rcx, rbp
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
mov rcx, rbp
mov rbx, rax
call sym.pthread_mutex_unlock
test rbx, rbx
je 0x140012ad0
mov rcx, qword [rbx + 0x28]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140012ad0
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x140012ad0
lea rbp, [rbx + 0x38]
mov rcx, rbp
call sym.pthread_mutex_lock
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400d1048]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012c00
cmp rsi, qword [rax + 0x1d8]
je 0x140012af8
mov edx, dword [rbx + 0x44]
movzx eax, byte [rbx + 0x40]
not edx
and edx, 3
je 0x140012b50
test al, 3
jne 0x140012ac0
and eax, 0xfffffffc
or eax, 1
mov byte [rbx + 0x40], al
lock add dword [0x140110158], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140012ab0
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbp
call sym.pthread_mutex_unlock
xor eax, eax
jmp 0x140012ad5
mov rcx, rbp
call sym.pthread_mutex_unlock
test byte [rbx + 0x40], 0xc
je 0x140012ab8
nop
mov eax, 3
mov rdx, qword [rsp + 0x508]
sub rdx, qword [rdi]
jne 0x140012c13
add rsp, 0x518
pop rbx
pop rsi
pop rdi
pop rbp
ret
movzx eax, byte [rbx + 0x40]
test al, 3
jne 0x140012ac0
and eax, 0xfffffffc
or eax, 1
mov byte [rbx + 0x40], al
lock add dword [0x140110158], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140012b20
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [rbx + 0x44]
mov edx, eax
not edx
and edx, 3
jne 0x140012ab0
and eax, 0xfffffffe
mov rcx, rbp
mov dword [rbx + 0x44], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xfffffff3
or eax, 4
mov byte [rbx + 0x40], al
call sym.pthread_mutex_unlock
call sym._pthread_invoke_cancel
test al, 0xc
jne 0x140012ac0
test al, 0xf
jne 0x140012ad0
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x60], 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 0x140012ab0
lea rsi, [rsp + 0x30]
mov rcx, qword [rbx + 0x28]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
lea rax, [sym._pthread_invoke_cancel]
mov rcx, qword [rbx + 0x28]
mov rdx, rsi
mov qword [rsp + 0x128], 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 [0x140110158], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140012bdf
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbp
call sym.pthread_mutex_unlock
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x140012ab0
call sym.__pthread_self_lite.part.0
test rax, rax
je 0x140012a7a
jmp 0x140012a71
call dbg.__stack_chk_fail
nop
nop dword [rax]
Function at 0x140012c20
Capabilities:
Get thread local storage value
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1400d1038]
mov rbx, rcx
mov rcx, rdi
mov esi, edx
call sym.pthread_mutex_lock
mov rcx, rbx
call sym.__pthread_get_pointer
test rax, rax
je 0x140012c98
cmp qword [rax + 0x1d8], rbx
jne 0x140012c98
test byte [rax + 0x40], 0xc
jne 0x140012c98
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x140012c98
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x140012c98
mov rcx, rdi
call sym.pthread_mutex_unlock
test esi, esi
je 0x140012cb0
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x140012cb8
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sym.pthread_cancel
mov rcx, rdi
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor eax, eax
jmp 0x140012ca5
mov eax, 0x16
jmp 0x140012ca5

Function at 0x140012e50
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov rdi, rdx
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400d1048]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140012ec0
cmp esi, 1
ja 0x140012ecd
lea rbp, [rbx + 0x38]
mov rcx, rbp
call sym.pthread_mutex_lock
test rdi, rdi
je 0x140012e94
mov eax, dword [rbx + 0x44]
and eax, 1
mov dword [rdi], eax
mov eax, dword [rbx + 0x44]
mov rcx, qword [rbx + 0x1d8]
and eax, 0xfffffffe
or eax, esi
mov dword [rbx + 0x44], eax
call sym.test_cancel_locked
mov rcx, rbp
call sym.pthread_mutex_unlock
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym.__pthread_self_lite.part.0
mov rbx, rax
test rax, rax
jne 0x140012e76
mov eax, 0x16
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x140012ee0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
mov rdi, rdx
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400d1048]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140012f58
mov ebp, esi
and ebp, 0xfffffffd
jne 0x140012f65
lea r12, [rbx + 0x38]
mov rcx, r12
call sym.pthread_mutex_lock
test rdi, rdi
je 0x140012f28
mov eax, dword [rbx + 0x44]
and eax, 2
mov dword [rdi], eax
mov eax, dword [rbx + 0x44]
mov rcx, qword [rbx + 0x1d8]
and eax, 0xfffffffd
or eax, esi
mov dword [rbx + 0x44], eax
call sym.test_cancel_locked
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, ebp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call sym.__pthread_self_lite.part.0
mov rbx, rax
test rax, rax
jne 0x140012f08
mov ebp, 0x16
mov eax, ebp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140013240
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, qword [0x1400db730]
mov rax, qword [rbp]
mov qword [rsp + 0x28], rax
xor eax, eax
mov rsi, rcx
mov rdi, rdx
test rcx, rcx
je 0x140013370
lea r12, [0x1400d1038]
mov rcx, r12
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
mov rcx, r12
mov rbx, rax
call sym.pthread_mutex_unlock
test rbx, rbx
je 0x140013370
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x140013370
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x140013370
test byte [rbx + 0x44], 4
jne 0x140013390
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400d1048]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400133b0
cmp rsi, qword [rax + 0x1d8]
je 0x1400133e0
mov eax, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test eax, eax
je 0x1400132ff
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001330e
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140013322
call rsi
mov qword [rbx + 0x30], 0
test rdi, rdi
je 0x1400133c8
mov rax, qword [rbx + 8]
lea rcx, [rbx + 0x38]
mov qword [rdi], rax
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x1400133ec
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x1400133a0
xor eax, eax
jmp 0x140013375
mov eax, 3
mov rdx, qword [rsp + 0x28]
sub rdx, qword [rbp]
jne 0x1400133e7
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, 0x16
jmp 0x140013375
mov rcx, rbx
call sym.push_pthread_mem.part.0
xor eax, eax
jmp 0x140013375
call sym.__pthread_self_lite.part.0
test rax, rax
je 0x1400132e7
jmp 0x1400132da
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x140013347
mov eax, 0x24
jmp 0x140013375
call dbg.__stack_chk_fail
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140013400
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, qword [0x1400db730]
mov r12, qword [rbp]
mov qword [rsp + 0x28], r12
lea r12, [0x1400d1038]
mov rsi, rcx
mov rdi, rdx
mov rcx, r12
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
mov rbx, rax
test rax, rax
je 0x140013540
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x140013540
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x140013540
test byte [rbx + 0x44], 4
jne 0x140013550
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400d1048]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140013580
mov rdx, qword [rax + 0x1d8]
cmp rsi, rdx
je 0x1400135c0
mov edx, dword [rbx + 0xbc]
test edx, edx
jne 0x1400134b5
xor edx, edx
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140013560
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400134cd
call rsi
mov qword [rbx + 0x30], 0
test rdi, rdi
je 0x140013598
mov rax, qword [rbx + 8]
lea rcx, [rbx + 0x38]
mov qword [rdi], rax
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x1400135d7
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x1400135b0
mov rcx, r12
call sym.pthread_mutex_unlock
xor eax, eax
mov rdx, qword [rsp + 0x28]
sub rdx, qword [rbp]
jne 0x1400135d2
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, 3
jmp 0x140013520
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, 0x16
jmp 0x140013520
mov eax, dword [rbx + 0xbc]
test eax, eax
jne 0x1400134b5
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, 0x10
jmp 0x140013520
call sym.__pthread_self_lite.part.0
xor edx, edx
test rax, rax
je 0x14001348e
jmp 0x140013487
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x1400134f2
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x140013516
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, 0x24
jmp 0x140013520
call dbg.__stack_chk_fail
call sym.replace_spin_keys.part.0
nop
nop dword [rax]

Function at 0x140014ed0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140014f40
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401101d4]
mov rbx, rcx
test esi, esi
jle 0x140015070
mov rax, qword [0x1401101d8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140014f8b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140015015
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140014f70
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140015092
mov rax, qword [0x1401101d8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401101d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140015077
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14001500e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140015020
add dword [0x1401101d4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1401101d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001500e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140014f98
mov rax, qword [0x1401101d8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140015630
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140110240]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140110220]
test rbx, rbx
je 0x14001568c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140015683
test eax, eax
jne 0x140015683
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140015668
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400158a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400158b8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400158c0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400158d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14001591d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140015914
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14001591f
add rax, 0x28
cmp rax, r9
jne 0x140015900
xor eax, eax
ret

Function at 0x140015920
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400159b0
mov rdx, qword [0x1400db630]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14001599e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14001599e
cmp word [rax + 0x18], 0x20b
jne 0x14001599e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400159b0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140015989
add rbx, 0x28
cmp rbx, rdi
je 0x1400159b0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140015980
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400159c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400db630]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400159e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400159e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400159e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140015a3d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140015a34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400159e0
add rax, 0x28
cmp rax, r9
jne 0x140015a20
xor eax, eax
ret

Function at 0x140015a40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400db630]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140015a5f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140015a68
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140015a5f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140015a80
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400db630]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140015aa0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140015aa8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140015aa0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140015af0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140015ae7
test rcx, rcx
je 0x140015aa0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140015ad8
xor eax, eax
ret
Function at 0x140015b00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400db630]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140015b1f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140015b28
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140015b40
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400db630]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140015b60
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140015b68
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140015b60
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140015b60
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140015bb4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140015bc0
add rdx, 0x28
cmp r9, rdx
jne 0x140015ba0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140015bd0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400db630]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140015bf2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140015c00
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140015bf2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140015bf2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140015bf2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140015c55
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140015c68
add rdx, 0x28
cmp r10, rdx
jne 0x140015c40
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140015c77
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140015c87
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140015c5e
test ecx, ecx
jg 0x140015c70
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140016a40
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, global_msg.0
call sym.write
mov ecx, 0x17
call sym.IsProcessorFeaturePresent
test eax, eax
je 0x140016a70
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140016a90
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, [0x1400da640]
call sym.write
mov ecx, 0x17
call sym.IsProcessorFeaturePresent
test eax, eax
je 0x140016ac0
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop