joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140081e70
Capabilities:
Convert ip address from string

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rdi, qword [sym.imp.WS2_32.dll_inet_pton]
lea rbp, [rsp + 0x2c]
mov rbx, rcx
mov esi, edx
mov rdx, rcx
mov r8, rbp
mov ecx, 2
call rdi
test eax, eax
jg 0x140081ee0
lea rbp, [rsp + 0x30]
mov rdx, rbx
mov ecx, 0x17
mov r8, rbp
call rdi
mov edx, eax
xor eax, eax
test edx, edx
jg 0x140081ec0
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov r9d, esi
mov r8, rbx
mov rdx, rbp
mov ecx, 0x17
call sym.Curl_ip2addr
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov r9d, esi
mov r8, rbx
mov rdx, rbp
mov ecx, 2
call sym.Curl_ip2addr
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x1400826f0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
mov esi, edx
mov rbp, r8
mov rdi, r9
test byte [rcx + 0xa0e], 0x20
je 0x140082765
cmp qword [rcx + 0x268], 0
je 0x140082760
call sym.Curl_is_in_callback
mov rcx, rbx
mov edx, 1
mov r12d, eax
call sym.Curl_set_in_callback
mov edx, esi
mov rcx, rbx
mov r9, rdi
mov rax, qword [rbx + 0x1e0]
mov r8, rbp
mov qword [rsp + 0x20], rax
call qword [rbx + 0x268]
movzx edx, r12b
mov rcx, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.Curl_set_in_callback
cmp esi, 2
jbe 0x140082770
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r9, qword [rbx + 0x1d8]
lea rcx, [rsi + rsi*2]
mov edx, 2
lea rax, [0x1401796e0]
add rcx, rax
mov r8d, 1
call sym.fwrite
mov r9, qword [rbx + 0x1d8]
mov rdx, rdi
mov rcx, rbp
mov r8d, 1
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.fwrite

Function at 0x140083930
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, qword [0x140186a60]
mov esi, 1
xor ebx, ebx
mov r12, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov rdi, rcx
jmp 0x140083981
mov rdx, rax
mov r8d, esi
mov rcx, rdi
call r12
lea edx, [rax - 1]
cmp edx, 0x7fff
ja 0x1400839b8
cmp esi, eax
je 0x1400839b8
cmp eax, esi
jb 0x1400839a2
mov esi, eax
mov rcx, rbx
mov edx, esi
mov r13, rbx
call qword [rbp]
mov rbx, rax
test rax, rax
jne 0x140083960
mov rax, qword [0x140186a40]
mov rcx, r13
xor ebx, ebx
call qword [rax]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rax, qword [0x140186a40]
mov rcx, rbx
xor ebx, ebx
call qword [rax]
jmp 0x1400839a2

Function at 0x140083e00
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov eax, 0x1505
add rdx, rcx
cmp rcx, rdx
jae 0x140083e2b
nop dword [rax]
mov r9, rax
add rcx, 1
shl r9, 5
add rax, r9
movsx r9, byte [rcx - 1]
xor rax, r9
cmp rdx, rcx
jne 0x140083e10
xor edx, edx
div r8
mov rax, rdx
ret

Function at 0x140084720
Capabilities:
Convert ip address from string

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov rsi, qword [sym.imp.WS2_32.dll_inet_pton]
mov rdx, rcx
mov rbx, rcx
lea r8, [rsp + 0x2c]
mov ecx, 2
call rsi
mov edx, eax
mov eax, 1
test edx, edx
jg 0x14008475e
lea r8, [rsp + 0x30]
mov rdx, rbx
mov ecx, 0x17
call rsi
test eax, eax
setg al
add rsp, 0x48
pop rbx
pop rsi
ret
Function at 0x140084cd0
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
js 0x140084cf0
mov qword [rsp + 0x28], r9
mov r9d, 1
jmp sym.Curl_resolv
mov eax, 0xfffffffe
ret
Function at 0x140090740
Capabilities:
Generate random numbers via winapi

Disassembly:
mov rcx, rdx
mov rdx, r8
jmp sym.Curl_win32_random

Function at 0x140090a80
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, r8
mov rdi, rcx
mov r8, r9
mov rbp, rdx
mov rcx, rsi
xor edx, edx
mov dword [rsp + 0x3c], r9d
mov rbx, r9
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 4
call sym.memset
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140090af8
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rax, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140090b50
mov rcx, qword [rsp + 0x48]
test rcx, rcx
jne 0x140090b48
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140090aea
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x140090b26
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
mov r8d, ebp
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x48]
test eax, eax
je 0x140090b21
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x34]
mov edx, 4
mov dword [rsp + 0x20], 0
mov rdi, qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
call rdi
mov rcx, qword [rsp + 0x48]
test eax, eax
je 0x140090b21
mov eax, dword [rsp + 0x34]
cmp rbx, rax
jb 0x140090b21
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov r8, rsi
mov edx, 2
call rdi
jmp 0x140090b1c
Function at 0x140098920
Capabilities:
Send data
Send data on socket

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x128
mov rdi, qword [rsp + 0x180]
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov dword [rdi], 0
mov rsi, rdx
movsxd rax, dword [rbx + 0x20]
mov rdx, r8
mov r8, r9
mov r9, qword [rbx + 0x18]
mov rcx, qword [rcx + 0x98]
add rax, 0x44
mov rbp, qword [r9 + rax*8]
mov qword [r9 + rax*8], rcx
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
movsxd r12, eax
cmp eax, 0xffffffff
je 0x1400989a0
mov rax, qword [rbx + 0x18]
movsxd rdx, dword [rbx + 0x20]
mov qword [rax + rdx*8 + 0x220], rbp
mov rax, r12
add rsp, 0x128
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r13d, eax
cmp eax, 0x2733
jne 0x1400989c0
mov dword [rdi], 0x51
jmp 0x140098979
lea rdx, [rsp + 0x20]
mov r8d, 0x100
mov ecx, eax
call sym.Curl_strerror
lea rdx, str.Send_failure:__s
mov rcx, rsi
mov r8, rax
call sym.Curl_failf
mov dword [rsi + 0xc34], r13d
mov dword [rdi], 0x37
jmp 0x140098979
Function at 0x140099320
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x128
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
mov rsi, rcx
mov dword [r9], 0
mov rbx, r9
xor r9d, r9d
mov rcx, qword [rax + 0x98]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rdi, eax
cmp eax, 0xffffffff
je 0x140099366
mov rax, rdi
add rsp, 0x128
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp eax, 0x2733
jne 0x14009937d
mov dword [rbx], 0x51
jmp 0x140099357
lea rdx, [rsp + 0x20]
mov r8d, 0x100
mov ecx, eax
call sym.Curl_strerror
mov rcx, qword [rsi + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call sym.Curl_failf
mov rax, qword [rsi + 8]
mov dword [rax + 0xc34], ebp
mov dword [rbx], 0x38
jmp 0x140099357

Function at 0x1400996e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1b8
mov rax, qword [rdx + 0x20]
mov rax, qword [rax + 0x348]
mov rsi, rcx
mov rbx, rdx
test byte [rax + 0x85], 8
je 0x140099718
add rsp, 0x1b8
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rbp, [rsp + 0x30]
xor eax, eax
mov ecx, 0x10
mov dword [rsp + 0x2c], pe_nt_image_headers64
mov rdi, rbp
lea r8, [rsp + 0x2c]
mov rdx, rbp
rep stosq qword [rdi], rax
mov rcx, qword [rsi + 0x98]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400997b0
mov edx, dword [rsp + 0x2c]
lea r9, [rsi + 0x140]
lea r8, [rsi + 0x10e]
mov rcx, rbp
call sym.Curl_addr2string
test al, al
jne 0x140099705
mov rdi, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call rdi
lea rdx, [rsp + 0xb0]
mov r8d, 0x100
mov ecx, dword [rax]
call sym.Curl_strerror
mov rsi, rax
call rdi
mov r9, rsi
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov rcx, rbx
mov r8d, dword [rax]
call sym.Curl_failf
jmp 0x140099705
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0xb0]
mov r8d, 0x100
mov ecx, eax
mov esi, eax
call sym.Curl_strerror
mov r8d, esi
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, rbx
mov r9, rax
call sym.Curl_failf
jmp 0x140099705

Function at 0x140099bd0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov eax, dword [0x1401bc0f0]
mov dword [rsp + 0x34], 0x4020
mov rbx, rcx
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 4
test eax, eax
je 0x140099c60
cmp eax, 2
je 0x140099c52
lea rax, [rsp + 0x3c]
lea r9, [rsp + 0x38]
mov edx, 0xffff
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140099c30
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x38], eax
jg 0x140099c52
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov rcx, rbx
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_setsockopt]
nop
add rsp, 0x40
pop rbx
ret
xor r8d, r8d
xor edx, edx
mov r9d, 2
mov ecx, 6
mov dword [rsp + 0x20], 3
call sym.curlx_verify_windows_version
test al, al
je 0x140099c98
mov dword [0x1401bc0f0], 2
add rsp, 0x40
pop rbx
ret
mov dword [0x1401bc0f0], 1
jmp 0x140099bff
Function at 0x14009a010
Capabilities:
Connect socket

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, qword [rcx + 0x10]
mov rbx, rcx
mov r12, rdx
mov rsi, r9
test byte [rcx + 0x24], 1
jne 0x14009a108
mov edi, 1
test r8b, r8b
jne 0x14009a0dd
mov r8, qword [rbp + 0x98]
mov byte [r9], 0
mov edi, 7
cmp r8, 0xffffffffffffffff
je 0x14009a0f0
xor r9d, r9d
mov rdx, 0xffffffffffffffff
mov rcx, 0xffffffffffffffff
call sym.Curl_socket_check
test eax, eax
je 0x14009a10b
cmp eax, 2
je 0x14009a110
mov rdx, qword [rbx + 0x18]
test byte [rdx + 0x342], 4
jne 0x14009a110
test al, 4
jne 0x14009a1e0
test edi, edi
je 0x14009a10b
mov edi, 7
mov eax, dword [rbp + 0x178]
test eax, eax
jne 0x14009a160
mov r9, qword [rbp + 0x98]
cmp r9, 0xffffffffffffffff
je 0x14009a0da
mov rdx, qword [rbx + 0x18]
mov r8d, 1
mov rcx, r12
call sym.socket_close
mov qword [rbp + 0x98], 0xffffffffffffffff
mov byte [rsi], 0
mov eax, edi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
call sym.cf_socket_open
mov edi, eax
test eax, eax
jne 0x14009a0a2
test byte [rbx + 0x24], 1
je 0x14009a188
nop dword [rax]
mov byte [rsi], 1
xor edi, edi
jmp 0x14009a0dd
mov rcx, qword [rbp + 0x98]
lea rdx, [rbp + 0x178]
call sym.verifyconnect
test al, al
je 0x14009a099
lea rcx, [rsp + 0x20]
xor edi, edi
call sym.Curl_now
movdqu xmm0, xmmword [rsp + 0x20]
mov rcx, qword [rbx + 0x10]
mov rdx, r12
movups xmmword [rbp + 0x158], xmm0
call sym.set_local_ip.isra.0
mov byte [rsi], 1
or byte [rbx + 0x24], 1
jmp 0x14009a0dd
mov rcx, qword [rbx + 0x10]
mov rdx, r12
call sym.set_local_ip.isra.0
mov ecx, dword [rbp + 0x178]
mov dword [r12 + 0xc34], ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x14009a0b0
mov rdx, qword [rbx + 0x18]
mov rax, qword [rbx + 0x10]
test byte [rdx + 0x342], 4
jne 0x14009a1f8
mov rcx, qword [rax + 0x98]
lea rdx, [rax + 0x18]
mov r8d, dword [rax + 0x14]
call qword [sym.imp.WS2_32.dll_connect]
mov r13d, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rbx + 0x10]
mov rdx, r12
mov r14d, eax
call sym.set_local_ip.isra.0
cmp r13d, 0xffffffff
je 0x14009a210
mov r8, qword [rbp + 0x98]
jmp 0x14009a05d
mov rcx, qword [rbp + 0x98]
lea rdx, [rbp + 0x178]
call sym.verifyconnect
jmp 0x14009a09d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rbx + 0x10]
mov rdx, r12
mov r14d, eax
call sym.set_local_ip.isra.0
nop dword [rax]
cmp r14d, 0xb
je 0x14009a10b
lea eax, [r14 - 0x2733]
cmp eax, 1
jbe 0x14009a10b
mov dword [r12 + 0xc34], r14d
jmp 0x14009a09d
Function at 0x14009a240
Capabilities:
Connect socket

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, qword [rcx + 0x10]
mov rbx, rcx
mov rdi, rdx
mov rsi, r9
test byte [rcx + 0x24], 1
jne 0x14009a2a8
cmp qword [rbp + 0x98], 0xffffffffffffffff
mov byte [r9], 0
je 0x14009a280
mov eax, 7
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym.cf_socket_open
test eax, eax
jne 0x14009a26e
cmp dword [rbp], 5
je 0x14009a2b0
mov byte [rsi], 1
xor eax, eax
or byte [rbx + 0x24], 1
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov byte [r9], 1
xor eax, eax
jmp 0x14009a298
mov rbp, qword [rbx + 0x10]
mov rcx, qword [rbp + 0x98]
mov r8d, dword [rbp + 0x14]
lea rdx, [rbp + 0x18]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14009a2f4
or byte [rbp + 0x17c], 4
mov rcx, qword [rbx + 0x10]
mov rdx, rdi
call sym.set_local_ip.isra.0
mov rcx, qword [rbp + 0x98]
mov edx, 1
call sym.curlx_nonblock
jmp 0x14009a28f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x14009a28f
lea edx, [rax - 0x2733]
cmp edx, 1
jbe 0x14009a28f
mov dword [rdi + 0xc34], eax
jmp 0x14009a269

Function at 0x14009d990
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor eax, eax
test edx, edx
lea r8, [rsp + 0x2c]
mov edx, 0x8004667e
setne al
mov dword [rsp + 0x2c], eax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x38
ret
Function at 0x1400a13a0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
mov r10d, 0x80000000
test rcx, rcx
je 0x1400a141d
mov r11d, 3
lea rbx, [0x14017e8c0]
jmp 0x1400a13c9
add r11d, 1
sar rcx, 1
je 0x1400a141d
test cl, 1
je 0x1400a13c0
mov eax, r11d
mov edx, r10d
mov r8d, 0x80000000
xor r10d, r10d
and eax, 0x1f
mov r9d, dword [rbx + rax*4]
jmp 0x1400a1403
mov eax, edx
shr edx, 1
and eax, 1
shr r8d, 1
neg eax
and eax, 0xedb88320
xor edx, eax
test r9d, r8d
je 0x1400a13f0
lea eax, [r8 - 1]
xor r10d, edx
test eax, r9d
jne 0x1400a13f0
add r11d, 1
sar rcx, 1
jne 0x1400a13c9
mov eax, r10d
pop rbx
ret
Function at 0x1400a1840
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
mov rcx, r8
mov esi, edx
call sym.x2nmodp.constprop.0
xor r8d, r8d
mov ecx, 0x80000000
jmp 0x1400a1873
mov edx, ebx
shr ebx, 1
and edx, 1
shr ecx, 1
neg edx
and edx, 0xedb88320
xor ebx, edx
test eax, ecx
je 0x1400a1860
lea edx, [rcx - 1]
xor r8d, ebx
test edx, eax
jne 0x1400a1860
mov eax, esi
xor eax, r8d
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x1400a1890
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
movsxd rcx, r8d
mov esi, edx
call sym.x2nmodp.constprop.0
xor r8d, r8d
mov ecx, 0x80000000
jmp 0x1400a18c3
mov edx, ebx
shr ebx, 1
and edx, 1
shr ecx, 1
neg edx
and edx, 0xedb88320
xor ebx, edx
test eax, ecx
je 0x1400a18b0
lea edx, [rcx - 1]
xor r8d, ebx
test edx, eax
jne 0x1400a18b0
mov eax, esi
xor eax, r8d
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x1400a209c
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov rax, qword [rbp + 0x20]
mov qword [rbp - 8], rax
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
mov rcx, qword [rbp - 8]
mov rax, qword [rbp + 0x10]
mov r9, rcx
mov r8d, 1
mov rcx, rax
call sym.fwrite
cmp rax, 1
je 0x1400a20e3
mov eax, 0xffffffff
jmp 0x1400a20e8
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x1400a551f
Capabilities:
Hash data using djb2

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
add rax, 4
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0x1505
jmp 0x1400a555a
mov eax, dword [rbp - 0xc]
shl eax, 5
mov edx, eax
mov eax, dword [rbp - 0xc]
add edx, eax
mov eax, dword [rbp - 0x10]
add eax, edx
mov dword [rbp - 0xc], eax
add qword [rbp - 8], 1
mov rax, qword [rbp - 8]
movzx eax, byte [rax]
movsx eax, al
mov dword [rbp - 0x10], eax
cmp dword [rbp - 0x10], 0
jne 0x1400a5540
mov eax, dword [rbp - 0xc]
add rsp, 0x10
pop rbp
ret

Function at 0x1400a7db0
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rdi, [0x14016c460]
mov rbx, rcx
mov rcx, rdi
mov esi, edx
call sym.pthread_spin_lock
mov rax, qword [rbx]
cmp dword [rax], 0xbab1feed
jne 0x1400a7df9
mov rax, qword [rbx]
mov eax, dword [rax + 4]
test eax, eax
jle 0x1400a7df9
mov rax, qword [rbx]
mov rcx, rdi
sub dword [rax + 4], 1
call sym.pthread_spin_unlock
mov eax, esi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x20], 0x26
lea r9, str..._mingw_w64_mingw_w64_libraries_winpthreads_src_barrier.c
lea r8, str.___barrier_t__barrier___valid__LIFE_BARRIER______barrier_t__barrier___busy___0_
mov rcx, rax
lea rdx, [0x140181248]
call dbg.fprintf
mov ecx, 1
call sym.exit
nop
nop word cs:[rax + rax]
nop
Function at 0x1400a8090
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
call sym.barrier_ref
test eax, eax
je 0x1400a80b8
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [rbx]
lea rbp, [rsi + 0x18]
mov rcx, rbp
call sym.pthread_mutex_lock
mov edx, 0x16
mov edi, eax
test eax, eax
jne 0x1400a8105
movsxd r12, dword [rsi + 0x14]
lock sub dword [rsi + 0xc], 1
mov eax, dword [rsi + 0xc]
test eax, eax
jne 0x1400a8120
xor eax, eax
mov edx, dword [rsi + 8]
test r12d, r12d
sete al
mov dword [rsi + 0xc], edx
mov dword [rsi + 0x14], eax
cmp edx, 1
jg 0x1400a8140
mov rcx, rbp
call sym.pthread_mutex_unlock
mov edx, 1
mov rcx, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.barrier_unref
mov rcx, rbp
call sym.pthread_mutex_unlock
lea rcx, [rsi + r12*8 + 0x20]
call sym.sem_wait
mov edx, eax
test edx, edx
cmove edx, edi
jmp 0x1400a8105
sub edx, 1
lea rcx, [rsi + r12*8 + 0x20]
mov edi, 1
call sym.sem_post_multiple
mov rcx, rbp
mov dword [rsp + 0x2c], eax
call sym.pthread_mutex_unlock
mov edx, dword [rsp + 0x2c]
jmp 0x1400a8134

Function at 0x1400aa1a0
Capabilities:
Allocate thread local storage

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

Function at 0x1400aa1c0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140187650]
mov qword [rsp + 0x48], 0
lea rbx, [rsp + 0x20]
mov rdx, qword [rax]
mov qword [rsp + 0x58], rdx
xor edx, edx
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x4d], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea r8, str.Error_cleaning_up_spin_keys_for_thread__lu._n
mov edx, 0x35
mov rcx, rbx
mov r9d, eax
call dbg.snprintf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
nop
nop word cs:[rax + rax]

Function at 0x1400aa5d0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1401bc190], 1
je 0x1400aa648
lea rdi, [0x1401bc190]
mov rcx, rdi
call sym.enterOnceObject
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call sym.pthread_mutex_lock
mov esi, dword [0x1401bc190]
test esi, esi
jne 0x1400aa658
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14016c498], eax
cmp eax, 0xffffffff
je sym._pthread_once_raw.constprop.0.isra.0.cold
mov dword [0x1401bc190], 1
mov rcx, rbp
call sym.pthread_mutex_unlock
test rbx, rbx
je 0x1400aa648
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sym.leaveOnceObject.part.0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x1400aa628
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call dbg.fprintf
jmp 0x1400aa628
Function at 0x1400aa680
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call sym.pop_pthread_mem
mov rbx, rax
test rax, rax
je 0x1400aa77c
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 0x1400aa788
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
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.part.0.cold
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x14016c498]
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.part.0.cold
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym.replace_spin_keys.part.0
nop
nop

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

Disassembly:
sub rsp, 0x28
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x14016c498]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400aa7b0
add rsp, 0x28
ret
add rsp, 0x28
jmp sym.__pthread_self_lite.part.0
Function at 0x1400aa900
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
push rsi
push rbx
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
call dbg._fpreset
lea rcx, [0x14016c488]
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x10]
lea rbx, [rax + 0x38]
mov rcx, rbx
call sym.pthread_mutex_lock
call sym._pthread_once_raw.constprop.0.isra.0
mov rdx, qword [rbp + 0x10]
mov ecx, dword [0x14016c498]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rsi, qword [rbp + 0x10]
mov rcx, rbx
mov dword [rsi + 0x70], eax
call sym.pthread_mutex_unlock
mov rax, qword [rbp + 0x10]
mov rdx, rbp
lea rcx, [rax + 0xd0]
call sym.__intrinsic_setjmpex
test eax, eax
jne 0x1400aaa40
lea rcx, [0x14016c488]
call sym.pthread_mutex_unlock
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x1400aaa51
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rdx + 8]
call rax
mov rbx, rax
nop
nop
lea rcx, [0x14016c488]
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 0x1d8]
mov qword [rax + 8], rbx
test rcx, rcx
je 0x1400aa9c5
call sym._pthread_cleanup_dest.part.0
mov rax, qword [rbp + 0x10]
lea rbx, [rax + 0x38]
mov rcx, rbx
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 0x30]
mov rsi, qword [rax + 8]
test rcx, rcx
je 0x1400aa9ec
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x10]
xor edx, edx
cmp qword [rax + 0x28], 0
mov qword [rax + 0x30], rdx
je 0x1400aaa63
mov rcx, rbx
call sym.pthread_mutex_unlock
mov rcx, rbx
call sym.pthread_mutex_destroy
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov dword [rax + 0xbc], 1
lea rbx, [0x14016c488]
mov rcx, rbx
call sym.pthread_mutex_unlock
test eax, eax
jne 0x1400aaa5b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400aaa2a
lea rcx, [0x14016c488]
call sym.pthread_mutex_lock
jmp 0x1400aa9c5
mov ebx, pe_nt_image_headers64
jmp 0x1400aa99e
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
mov rax, qword [rbp + 0x10]
mov rcx, rbx
mov dword [rax], 0xdeadbeef
call sym.pthread_mutex_unlock
mov rcx, rbx
call sym.pthread_mutex_destroy
mov rcx, qword [rbp + 0x10]
call sym.push_pthread_mem
mov ecx, dword [0x14016c498]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x1400aaa23