joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14026de60
Capabilities:
Hash data using djb2

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, rdx
movsx rdx, byte [rdx]
mov r8, rcx
test rdx, rdx
je 0x14026df1a
mov rcx, rbp
mov esi, 0x1505
nop dword [rax + rax]
mov rax, rsi
add rcx, 1
shl rax, 5
add rax, rsi
lea rsi, [rax + rdx]
movsx rdx, byte [rcx]
test rdx, rdx
jne 0x14026de88
mov rcx, qword [r8 + 0x10]
lea rdi, [0x14030cdc0]
mov rax, rsi
xor edx, edx
add r8, 0x18
div qword [rdi + rcx*8]
mov rdi, qword [r8 - 0x10]
shl rdx, 4
add rdi, rdx
mov rbx, qword [rdi]
cmp rbx, r8
jne 0x14026deda
jmp 0x14026df10
cmp rbx, qword [rdi + 8]
je 0x14026df00
mov rbx, qword [rbx + 8]
cmp qword [rbx - 8], rsi
jne 0x14026ded0
lea rcx, [rbx + 0x20]
mov rdx, rbp
call sym.strcmp
test eax, eax
jne 0x14026ded0
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor eax, eax
cmp rbx, qword [rdi + 8]
jne 0x14026deda
jmp 0x14026def3
mov esi, 0x1505
jmp 0x14026dea3

Function at 0x1402709c0
Capabilities:
Hash data using djb2

Disassembly:
test rcx, rcx
je 0x1402709d8
mov eax, dword [rcx]
test eax, eax
jne 0x1402709d8
add rcx, 0x10
jmp sym.hashtable_get
xor eax, eax
ret

Function at 0x1402709e0
Capabilities:
Hash data using djb2

Disassembly:
test rcx, rcx
je 0x1402709f8
mov eax, dword [rcx]
test eax, eax
jne 0x1402709f8
add rcx, 0x10
jmp sym.hashtable_del
mov eax, 0xffffffff
ret

Function at 0x140270a60
Capabilities:
Hash data using djb2

Disassembly:
test rdx, rdx
je 0x140270a80
test rcx, rcx
je 0x140270a80
mov eax, dword [rcx]
test eax, eax
jne 0x140270a80
add rcx, 0x10
jmp sym.hashtable_iter_at
xor eax, eax
ret
Function at 0x1402759b0
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, rdx
mov ecx, 1
mov edx, 0x20
call sym.calloc
mov rbx, rax
mov eax, 0xc
test rbx, rbx
je 0x1402759f9
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [rbx], eax
je 0x140275a04
test rdi, rdi
je 0x140275a20
mov qword [rbx + 0x10], 0
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [rsi], rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rcx, rbx
xor ebx, ebx
call sym.free
mov eax, 0xb
mov qword [rsi], rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor eax, eax
jmp 0x1402759f9
Function at 0x140276120
Capabilities:
Allocate thread local storage
Get common file path

Disassembly:
push rsi
push rbx
sub rsp, 0x428
mov eax, dword [0x1403b97c8]
mov esi, 1
test eax, eax
je 0x140276250
lea rbx, [rsp + 0x20]
mov edx, 0x400
mov dword [0x1403b97a0], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x1402762d0
mov rcx, qword [0x1403b97d0]
test rcx, rcx
je 0x140276230
lea rdx, str.QueueUserAPCEx
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rbx
mov rcx, qword [0x1403b97d0]
test rax, rax
mov qword [0x1403b9790], rax
je 0x140276200
lea rdx, str.QueueUserAPCEx_Init
call rbx
test rax, rax
je 0x1402761a8
call rax
test eax, eax
jne 0x1402761e0
lea rax, [sym.ptw32_RegisterCancelation]
mov rcx, qword [0x1403b97d0]
mov qword [0x1403b9790], rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x1403b97d0], 0
mov eax, esi
add rsp, 0x428
pop rbx
pop rsi
ret
cmp qword [0x1403b97d0], 0
je 0x1402761ce
or dword [0x1403b97a0], 2
mov eax, esi
add rsp, 0x428
pop rbx
pop rsi
ret
lea rax, [sym.ptw32_RegisterCancelation]
test rcx, rcx
mov qword [0x1403b9790], rax
je 0x140276219
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x1403b97d0], 0
mov eax, esi
add rsp, 0x428
pop rbx
pop rsi
ret
cmp qword [0x1403b9790], 0
je 0x140276393
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x140276194
mov edx, 0x20
mov ecx, 1
mov dword [0x1403b97c8], 1
call sym.calloc
test rax, rax
mov rbx, rax
je 0x14027634e
mov rsi, qword [sym.imp.KERNEL32.dll_TlsAlloc]
call rsi
cmp eax, 0xffffffff
mov dword [rbx], eax
je 0x140276340
mov edx, 0x20
mov ecx, 1
mov qword [0x1403b97c0], rbx
call sym.calloc
test rax, rax
mov rbx, rax
je 0x140276380
call rsi
cmp eax, 0xffffffff
mov dword [rbx], eax
je 0x140276371
mov qword [0x1403b97b8], rbx
mov esi, dword [0x1403b97c8]
jmp 0x14027613c
mov rax, rbx
mov ecx, dword [rax]
add rax, 4
lea edx, [rcx - 0x1010101]
not ecx
and edx, ecx
and edx, 0x80808080
je 0x1402762d3
mov ecx, edx
shr ecx, 0x10
test edx, 0x8080
cmove edx, ecx
lea rcx, [rax + 2]
cmove rax, rcx
add dl, dl
mov rdx, rbx
mov rcx, rbx
sbb rax, 3
sub rdx, rax
lea r8, [rdx + 0x3ff]
lea rdx, str.QUSEREX.DLL
call sym.strncat
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
mov qword [0x1403b97d0], rax
jmp 0x140276168
mov rcx, rbx
call sym.free
mov esi, dword [0x1403b97c8]
mov qword [0x1403b97c0], 0
test esi, esi
je 0x14027613c
call sym.ptw32_processTerminate.part.5
mov esi, dword [0x1403b97c8]
jmp 0x14027613c
mov rcx, rbx
call sym.free
nop dword [rax]
mov qword [0x1403b97b8], 0
mov esi, dword [0x1403b97c8]
jmp 0x140276359
lea rax, [sym.ptw32_RegisterCancelation]
mov qword [0x1403b9790], rax
jmp 0x140276219
Function at 0x1402763c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov edx, dword [0x1403b97c8]
test edx, edx
jne 0x1402763e0
mov eax, 1
add rsp, 0x38
pop rbx
pop rsi
ret
mov rbx, qword [0x1403b97c0]
test rbx, rbx
je 0x140276460
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x140276415
cmp dword [rbx + 0x184], 1
je 0x140276470
mov eax, dword [0x1403b97c8]
test eax, eax
jne 0x140276460
mov rcx, qword [0x1403b97d0]
test rcx, rcx
je 0x1402763d0
lea rdx, str.QueueUserAPCEx_Fini
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14027643f
call rax
mov rcx, qword [0x1403b97d0]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
add rsp, 0x38
pop rbx
pop rsi
ret
call sym.ptw32_processTerminate.part.5
jmp 0x14027641f
mov rax, qword [rbx + 0x10]
lea rcx, [rsp + 0x20]
mov rdx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rdx
call sym.ptw32_threadDestroy
mov rax, qword [0x1403b97c0]
xor edx, edx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x140276415

Function at 0x1402764b0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov eax, dword [0x1403b97c8]
mov ebx, 1
test eax, eax
je 0x1402764d0
mov eax, ebx
add rsp, 0x28
pop rbx
pop rsi
ret
mov edx, 0x20
mov ecx, 1
mov dword [0x1403b97c8], 1
call sym.calloc
test rax, rax
mov rsi, rax
je 0x14027654e
mov rbx, qword [sym.imp.KERNEL32.dll_TlsAlloc]
call rbx
cmp eax, 0xffffffff
mov dword [rsi], eax
je 0x140276540
mov edx, 0x20
mov ecx, 1
mov qword [0x1403b97c0], rsi
call sym.calloc
test rax, rax
mov rsi, rax
je 0x140276580
call rbx
cmp eax, 0xffffffff
mov dword [rsi], eax
je 0x140276571
mov qword [0x1403b97b8], rsi
mov ebx, dword [0x1403b97c8]
jmp 0x1402764c5
mov rcx, rsi
call sym.free
mov ebx, dword [0x1403b97c8]
mov qword [0x1403b97c0], 0
test ebx, ebx
je 0x1402764c5
call sym.ptw32_processTerminate.part.5
mov ebx, dword [0x1403b97c8]
jmp 0x1402764c5
mov rcx, rsi
call sym.free
nop dword [rax]
mov qword [0x1403b97b8], 0
mov ebx, dword [0x1403b97c8]
jmp 0x140276559
Function at 0x1402765a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov ecx, dword [0x1403b97c8]
test ecx, ecx
jne 0x1402765c0
add rsp, 0x38
pop rbx
pop rsi
ret
call sym.pthread_win32_thread_detach_np.part.8
mov edx, dword [0x1403b97c8]
test edx, edx
je 0x1402765b0
mov rbx, qword [0x1403b97c0]
test rbx, rbx
je 0x140276645
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x140276604
cmp dword [rbx + 0x184], 1
je 0x140276650
mov eax, dword [0x1403b97c8]
test eax, eax
jne 0x140276645
mov rcx, qword [0x1403b97d0]
test rcx, rcx
je 0x1402765b0
lea rdx, str.QueueUserAPCEx_Fini
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14027662e
call rax
mov rcx, qword [0x1403b97d0]
mov rax, qword [sym.imp.KERNEL32.dll_FreeLibrary]
add rsp, 0x38
pop rbx
pop rsi
jmp rax
call sym.ptw32_processTerminate.part.5
jmp 0x14027660e
mov rax, qword [rbx + 0x10]
lea rcx, [rsp + 0x20]
mov rdx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rdx
call sym.ptw32_threadDestroy
mov rax, qword [0x1403b97c0]
xor edx, edx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x140276604
Function at 0x140276b40
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x1403b97b8]
test rbx, rbx
je 0x140276ba2
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x140276ba2
test esi, esi
je 0x140276b87
mov rax, qword [rbx]
test rax, rax
je 0x140276b87
mov rcx, qword [rbx + 8]
call rax
mov rdx, qword [rbx + 0x10]
mov rcx, qword [0x1403b97b8]
call sym.pthread_setspecific
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 0x140276bb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1403b97b8]
test rsi, rsi
mov rbx, rcx
mov qword [rcx], rdx
mov qword [rcx + 8], r8
je 0x140276c10
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [0x1403b97b8]
mov rdx, rbx
mov rcx, rsi
mov qword [rbx + 0x10], rdi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sym.pthread_setspecific
xor edi, edi
jmp 0x140276bf0

Function at 0x140276c20
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, qword [0x1403b97c0]
test rsi, rsi
mov rbx, rcx
je 0x140276c82
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x140276c82
mov rdi, qword [rsi + 0x18]
mov rsi, qword [rsi + 0x10]
mov qword [rbx], rsi
mov qword [rbx + 8], rdi
mov rax, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r12, [rsp + 0x40]
mov rcx, r12
call sym.ptw32_new
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
test rbp, rbp
mov rsi, rbp
je 0x140276c67
or byte [rbp + 0x194], 1
mov dword [rbp + 0x184], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r13, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rbp + 0x198], eax
call r13
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r14, rax
call r13
lea r9, [rbp + 8]
mov r8, r15
mov rdx, r14
mov rcx, rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140276d30
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov rcx, qword [0x1403b97c0]
mov rdx, rbp
mov dword [rbp + 0x188], eax
call sym.pthread_setspecific
jmp 0x140276c67
mov rcx, r12
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rdi
call sym.ptw32_threadReusePush
mov qword [rbx], 0
mov dword [rbx + 8], 0
jmp 0x140276c6e
Function at 0x140276d60
Capabilities:
Create thread
Resume thread

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
test rdx, rdx
mov r12, rcx
mov r14, r8
mov dword [rcx + 8], 0
mov r13, r9
je 0x140276ea0
mov rbp, qword [rdx]
lea rdi, [rsp + 0x30]
mov rcx, rdi
call sym.ptw32_new
mov rbx, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
test rbx, rbx
je 0x140276e70
mov ecx, 0x20
call sym.malloc
test rax, rax
mov rsi, rax
je 0x140276e70
test rbp, rbp
mov qword [rax], rbx
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r13
je 0x140276ed0
mov eax, dword [rbp + 0x18]
mov r14, qword [rbp + 0x10]
mov r13d, dword [rbp + 0x1c]
mov dword [rbx + 0x184], eax
mov eax, dword [rbp + 0x20]
test eax, eax
je 0x140276eb0
mov dword [rbx + 0x28], 0
xor ecx, ecx
mov r9, rsi
mov edx, r14d
lea rax, [rbx + 0x198]
mov qword [rbx + 0x58], 0
lea r8, [sym.ptw32_threadStart]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov rbp, rax
mov qword [rbx + 8], rax
je 0x140276f20
mov r8d, r13d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r15
call sym.ptw32_setthreadpriority
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov qword [r12], rbx
xor eax, eax
mov qword [r12 + 8], r15
jmp 0x140276e87
mov rcx, rdi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r15
call sym.ptw32_threadDestroy
mov eax, 0xb
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor ebp, ebp
jmp 0x140276d8c
mov rcx, rdi
call sym.pthread_self
mov rax, qword [rsp + 0x30]
mov r13d, dword [rax + 0x188]
jmp 0x140276df6
mov dword [rbx + 0x28], 0
xor edx, edx
xor ecx, ecx
mov r9, rsi
lea rax, [rbx + 0x198]
mov qword [rbx + 0x58], 0
lea r8, [sym.ptw32_threadStart]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov rbp, rax
mov qword [rbx + 8], rax
jne 0x140276e55
nop word [rax + rax]
mov rcx, rdi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r15
call sym.ptw32_threadDestroy
mov rcx, rsi
call sym.free
mov eax, 0xb
jmp 0x140276e87
Function at 0x14027d670
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x1403b97b8]
test rbx, rbx
je 0x14027d6d3
test ecx, ecx
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_SetLastError]
jne 0x14027d70a
jmp 0x14027d6bd
mov rdx, qword [rbx + 0x10]
mov rcx, qword [0x1403b97b8]
call sym.pthread_setspecific
mov rbx, qword [0x1403b97b8]
test rbx, rbx
je 0x14027d6d3
call rbp
mov ecx, dword [rbx]
mov r12d, eax
call rdi
mov ecx, r12d
mov rbx, rax
call rsi
test rbx, rbx
jne 0x14027d6a1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rbx]
test rax, rax
je 0x14027d6ee
mov rcx, qword [rbx + 8]
call rax
mov rdx, qword [rbx + 0x10]
mov rcx, qword [0x1403b97b8]
call sym.pthread_setspecific
mov rbx, qword [0x1403b97b8]
test rbx, rbx
je 0x14027d6d3
call rbp
mov ecx, dword [rbx]
mov r12d, eax
call rdi
mov ecx, r12d
mov rbx, rax
call rsi
test rbx, rbx
jne 0x14027d6e0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x14027d730
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
test rcx, rcx
je 0x14027d746
test rdx, rdx
jne 0x14027d760
mov eax, 0x16
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r8d, r8d
lock xadd dword [rcx], r8d
xor eax, eax
test r8d, r8d
jne 0x14027d74b
lea rax, [rcx + 8]
mov rbx, rcx
mov rsi, rdx
mov qword [rsp + 0x58], 0
lea rdi, [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov rcx, rdi
mov qword [rsp + 0x48], 0
xchg qword [rax], rcx
test rcx, rcx
je 0x14027d7de
mov qword [rcx + 8], rdi
lea rdx, [rcx + 0x18]
xor eax, eax
mov rcx, 0xffffffffffffffff
lock cmpxchg qword [rdx], rcx
test rax, rax
mov rcx, rax
je 0x14027d7cd
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea r12, [rdi + 0x10]
xor ebp, ebp
lock xadd qword [r12], rbp
test rbp, rbp
je 0x14027d830
mov eax, dword [rbx]
test eax, eax
je 0x14027d863
mov r8, qword [rsp + 0x40]
lea rcx, [rdi + 8]
xor edx, edx
lock xadd qword [rcx], rdx
test rdx, rdx
mov rcx, rdx
je 0x14027d904
add rcx, 0x10
xor eax, eax
mov rdx, 0xffffffffffffffff
lock cmpxchg qword [rcx], rdx
test rax, rax
mov rcx, rax
je 0x14027d820
call qword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov r13, rax
mov rax, rbp
lock cmpxchg qword [r12], r13
test rax, rax
je 0x14027d933
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14027d7de
mov rbp, qword [0x1403b97b8]
lea rax, [sym.ptw32_mcs_lock_release]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
test rbp, rbp
je 0x14027d94d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbp]
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [0x1403b97b8]
lea rdx, [rsp + 0x20]
mov rcx, rbp
mov qword [rsp + 0x30], r12
call sym.pthread_setspecific
call rsi
mov rsi, qword [0x1403b97b8]
test rsi, rsi
je 0x14027d8f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebp
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x14027d8f9
mov rdx, qword [rsi + 0x10]
mov rcx, qword [0x1403b97b8]
call sym.pthread_setspecific
mov dword [rbx], 1
jmp 0x14027d7e4
mov rax, rdi
lock cmpxchg qword [r8], rdx
cmp rdi, rax
je 0x14027d820
lea rcx, [rdi + 0x18]
lock xadd qword [rcx], rdx
test rdx, rdx
je 0x14027d946
add rdi, 8
xor ecx, ecx
lock xadd qword [rdi], rcx
jmp 0x14027d800
mov edx, 0xffffffff
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x14027d855
call sym.ptw32_mcs_flag_wait.part.0
jmp 0x14027d923
xor r12d, r12d
jmp 0x14027d8a9
Function at 0x14027d960
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
test rcx, rcx
je 0x14027d993
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret
xor ebx, ebx
jmp 0x14027d989

Function at 0x14027d9a0
Capabilities:
Get thread local storage value

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov edi, ecx
mov rcx, qword [0x1403b97c0]
call sym.pthread_getspecific
mov rsi, rax
mov dword [rax + 0x28], 5
lea eax, [rdi - 1]
cmp eax, 1
jbe 0x14027d9d8
mov ecx, 1
call sym.exit
test byte [rsi + 0x194], 1
jne 0x14027da52
mov rbx, qword [0x1403b97b8]
test rbx, rbx
je 0x14027da47
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14027da2f
mov r8, qword [rbx]
test r8, r8
je 0x14027da13
mov rcx, qword [rbx + 8]
call r8
mov rdx, qword [rbx + 0x10]
mov rcx, qword [0x1403b97b8]
call sym.pthread_setspecific
mov rbx, qword [0x1403b97b8]
test rbx, rbx
je 0x14027da47
call r13
mov ecx, dword [rbx]
mov r14d, eax
call r12
mov ecx, r14d
mov rbx, rax
call rbp
test rbx, rbx
jne 0x14027da04
lea rcx, [rsi + 0x70]
mov edx, edi
call sym.longjmp
or ecx, 0xffffffff
cmp edi, 2
jne 0x14027da69
cmp dword [0x1403b97c8], 0
jne 0x14027da6e
call qword [sym.imp.msvcrt.dll__endthreadex]
mov ecx, dword [rsi + 0x48]
jmp 0x14027da5a
mov dword [rsp + 0x2c], ecx
call sym.pthread_win32_thread_detach_np.part.8
mov ecx, dword [rsp + 0x2c]
jmp 0x14027da63
Function at 0x1402a0840
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 0x1402a08b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1403b9864]
mov rbx, rcx
test esi, esi
jle 0x1402a09e0
mov rax, qword [0x1403b9868]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1402a08fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1402a0985
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1402a08e0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1402a0a02
mov rax, qword [0x1403b9868]
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 [0x1403b9868]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1402a09e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1402a097e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1402a0990
add dword [0x1403b9864], 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 [0x1403b9868]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1402a097e
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 0x1402a0908
mov rax, qword [0x1403b9868]
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 0x1402a0f70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1403b98c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1403b98a0]
test rbx, rbx
je 0x1402a0fcc
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 eax, eax
jne 0x1402a0fc3
test rsi, rsi
je 0x1402a0fc3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1402a0fa8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]