joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14017c280
Capabilities:
Resolve dns

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
cmp r8, 0xffffffffffffffff
je 0x14017c3e3
mov rbx, r8
mov r14, r8
inc r14
js 0x14017c3ef
mov rdi, r9
mov r15, rdx
mov rsi, rcx
movzx eax, byte [0x1402a6198]
xor ecx, ecx
mov rdx, r14
call fcn.140188040
test rax, rax
je 0x14017c3f4
mov r12, rax
mov rcx, rax
mov rdx, r15
mov r8, rbx
call sub.msvcrt.dll_memcpy
cmp rbx, 0x10
jae 0x14017c301
test rbx, rbx
je 0x14017c340
xor eax, eax
nop dword [rax]
cmp byte [r15 + rax], 0
je 0x14017c313
inc rax
cmp rbx, rax
jne 0x14017c2f0
jmp 0x14017c340
xor ecx, ecx
mov rdx, r15
mov r8, rbx
call fcn.14006e5f0
test rax, rax
je 0x14017c340
lea rax, [0x14027ec70]
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov edx, 1
mov rcx, r12
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp fcn.14003fe40
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], rbx
lea rcx, [rbp - 0x40]
call fcn.14003a5d0
mov rbx, rax
mov r14, rdx
xorps xmm0, xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x38], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x40]
lea r9, [rbp - 8]
mov rcx, rax
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x14017c3a3
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x14017c3b7
mov rcx, qword [rdi]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rbx], 0
test r14, r14
je 0x14017c3d3
mov edx, 1
mov rcx, rbx
call fcn.14003fe40
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea rcx, [0x1401ad500]
Function at 0x140183920
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
movabs r15, 0x8000000000000000
lea rcx, [rbp - 0x28]
call fcn.1401761a0
mov rax, qword [rbp - 0x28]
mov rbx, qword [rbp - 0x20]
mov rcx, rax
neg rcx
jo 0x140183981
mov rcx, qword [rbp - 0x18]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x30], rcx
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x40]
call fcn.140183830
mov rdi, qword [rbp - 0x10]
mov rbx, qword [rbp - 8]
cmp rdi, r15
jne 0x1401839d4
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x1401839c4
lea rdi, [rbx - 1]
mov r14, qword [rbx - 1]
mov rbx, qword [rbx + 7]
mov rax, qword [rbx]
test rax, rax
je 0x1401839a4
mov rcx, r14
call rax
cmp qword [rbx + 8], 0
je 0x1401839b7
mov rdx, qword [rbx + 0x10]
mov rcx, r14
call fcn.14003fe40
mov edx, 8
mov rcx, rdi
call fcn.14003fe40
mov qword [rsi], r15
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov r14, qword [rbp]
mov rcx, rbx
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1401839f2
mov qword [rsi], rdi
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r14
jmp 0x1401839c7
mov qword [rsi], r15
test rdi, rdi
je 0x1401839c7
mov edx, 2
mov rcx, rbx
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
jmp fcn.14003fe40
Function at 0x140185530
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x1402a6198]
mov edx, 0x10
xor ecx, ecx
call fcn.140188040
test rax, rax
je 0x1401855f3
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140185690]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1401855e5
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, qword [r14]
test rax, rax
je 0x1401855b1
mov rcx, rbx
call rax
cmp qword [r14 + 8], 0
je 0x1401855c4
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.14003fe40
mov edx, 8
mov rcx, rsi
call fcn.14003fe40
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov ecx, 8
mov edx, 0x10
call fcn.14003a45d
ud2
Function at 0x140185a50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1078
call fcn.14019f4d0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xfe0], xmm6
mov rsi, rdx
mov rdi, rcx
lea rcx, [rbp - 0x50]
mov r8d, 0x1000
xor edx, edx
call sub.msvcrt.dll_memset
xorps xmm6, xmm6
lea r13, [rbp + 0xfd4]
lea rbx, [0x14017cdd0]
lea r14, [rbp + 0xfb0]
mov dword [rbp + 0xfd4], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r13
mov qword [rsp + 0x20], rbx
mov rcx, rdi
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, r14
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x140185b30
nop dword [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rbp + 0xfd4], 1
jne 0x140185af0
mov eax, dword [rbp + 0xfd8]
mov r15d, dword [rbp + 0xfdc]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
test eax, eax
cmovne r15, rcx
jne 0x140185b43
jmp 0x140185b86
call sub.KERNEL32.dll_GetLastError
mov r15d, eax
shl r15, 0x20
or r15, 2
mov rcx, r15
mov eax, ecx
and eax, 3
shr rcx, 0x20
cmp eax, 2
jne 0x140185b70
call fcn.140156450
cmp al, 0xb
mov eax, 0
cmove r15, rax
je 0x140185b86
jmp 0x140185c54
cmp rcx, 0xb
mov eax, 0
cmove r15, rax
cmp ecx, 0xb
jne 0x140185c54
test r15, r15
je 0x140185c29
cmp r15, 0x1000
ja 0x140185cae
xor r12d, r12d
nop
cmp r15, r12
jb 0x140185c9a
mov r8d, r15d
sub r8d, r12d
lea rdx, [r12 + rbp]
add rdx, 0xffffffffffffffb0
mov dword [rbp + 0xfd4], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r13
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov r9, r14
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x140185c24
nop
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rbp + 0xfd4], 1
jne 0x140185bf0
cmp dword [rbp + 0xfd8], 0
jne 0x140185c29
mov eax, dword [rbp + 0xfdc]
add r12, rax
cmp r12, r15
jne 0x140185ba0
jmp 0x140185aa7
call sub.KERNEL32.dll_GetLastError
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
movaps xmm6, xmmword [rbp + 0xfe0]
add rsp, 0x1078
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, r15d
and eax, 3
cmp eax, 1
jne 0x140185c29
lea rbx, [r15 - 1]
mov r12, qword [r15 - 1]
mov r15, qword [r15 + 7]
mov rax, qword [r15]
test rax, rax
je 0x140185c78
mov rcx, r12
call rax
cmp qword [r15 + 8], 0
je 0x140185c8b
mov rdx, qword [r15 + 0x10]
mov rcx, r12
call fcn.14003fe40
mov edx, 8
mov rcx, rbx
call fcn.14003fe40
jmp 0x140185c29
lea r8, str.std_src_syspalwindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.14006bdd0
jmp 0x140185cc2
lea r8, str.std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.140068dd0
ud2
Function at 0x1401878e0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov rdi, rdx
cmp qword [rdx], 0
jne 0x1401879d2
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp r8, rdx
je 0x140187998
sub r8, rdx
add rdx, qword [rbx + 8]
mov rax, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp r8, rcx
cmovae r8, rcx
mov dword [rbp - 0x28], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x28]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x140187954
mov eax, dword [rbp - 0x28]
mov ecx, 2
test rax, rax
jne 0x14018796a
jmp 0x140187977
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x6d
je 0x140187977
cmp eax, 0x3e5
jne 0x140187988
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x14018797b
mov byte [rsi + 1], 0
xor eax, eax
mov byte [rsi], al
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop rbp
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x14018797d
test r8, r8
mov ecx, 0x10
mov eax, 1
cmove rax, rcx
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rbx
mov rdx, r8
mov r8, rax
call fcn.140159080
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x140187911
mov qword [rbp - 0x28], 0
lea rdx, [rbp - 0x28]
mov rcx, rdi
call fcn.1401879e7
int3
Function at 0x14018b322
Capabilities:
Encode data using xor

Disassembly:
sub rdx, rcx
cmp rdx, 0x20
jb fcn.14006e900
jmp fcn.140068850

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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rcx
mov ebx, dword [0x1401a21c0]
test ebx, ebx
je 0x14018d0dc
dec ebx
mov ecx, ebx
call sub.KERNEL32.dll_TlsGetValue
mov r14, rax
cmp rax, 1
ja 0x14018d0cd
je 0x14018d06d
test rdi, rdi
je 0x14018d072
lea rax, [rdi + 8]
lea rsi, [0x140281ed0]
test byte [rdi], 1
cmovne rsi, rax
and qword [rdi], 0
jmp 0x14018d079
xor r14d, r14d
jmp 0x14018d0cd
lea rsi, [0x140281ed0]
lea r15, [rsp + 0x28]
mov ecx, 9
mov rdi, r15
rep movsq qword [rdi], qword [rsi]
mov ecx, 0x50
mov edx, 8
call fcn.14018cb34
mov r14, rax
mov ecx, 9
mov rdi, rax
mov rsi, r15
rep movsq qword [rdi], qword [rsi]
mov dword [rax + 0x48], ebx
mov ecx, ebx
call sub.KERNEL32.dll_TlsGetValue
mov rsi, rax
mov ecx, ebx
mov rdx, r14
call sub.KERNEL32.dll_TlsSetValue
test rsi, rsi
je 0x14018d0cd
mov rcx, rsi
call fcn.14018bca3
mov rax, r14
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x1401a21a8]
call fcn.140153820
mov ebx, eax
jmp 0x14018d03e
jmp 0x14018d020

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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rcx
mov ebx, dword [0x1401a21c0]
test ebx, ebx
je 0x14018d0dc
dec ebx
mov ecx, ebx
call sub.KERNEL32.dll_TlsGetValue
mov r14, rax
cmp rax, 1
ja 0x14018d0cd
je 0x14018d06d
test rdi, rdi
je 0x14018d072
lea rax, [rdi + 8]
lea rsi, [0x140281ed0]
test byte [rdi], 1
cmovne rsi, rax
and qword [rdi], 0
jmp 0x14018d079
xor r14d, r14d
jmp 0x14018d0cd
lea rsi, [0x140281ed0]
lea r15, [rsp + 0x28]
mov ecx, 9
mov rdi, r15
rep movsq qword [rdi], qword [rsi]
mov ecx, 0x50
mov edx, 8
call fcn.14018cb34
mov r14, rax
mov ecx, 9
mov rdi, rax
mov rsi, r15
rep movsq qword [rdi], qword [rsi]
mov dword [rax + 0x48], ebx
mov ecx, ebx
call sub.KERNEL32.dll_TlsGetValue
mov rsi, rax
mov ecx, ebx
mov rdx, r14
call sub.KERNEL32.dll_TlsSetValue
test rsi, rsi
je 0x14018d0cd
mov rcx, rsi
call fcn.14018bca3
mov rax, r14
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x1401a21a8]
call fcn.140153820
mov ebx, eax
jmp 0x14018d03e
jmp 0x14018d020

Function at 0x140191d62
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x140191d69
test al, 1
je 0x140191d88
test al, 2
jne 0x140191da0
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1402834f0]
mov edx, 0x23
call fcn.140069290
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140283530]
mov edx, 0x25
call fcn.140069290
int3
Function at 0x14019267f
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.140190ffe
mov rcx, qword [rax]
movzx eax, bl
lea r9, [rsp + 0x2c]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1401926ba
xor eax, eax
jmp 0x1401926c7
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x1401926cd
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov qword [rsp + 0x50], rdx
mov r14, rcx
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x48], rax
mov r13, qword [rcx + 0x18]
mov r15, qword [r8 + 8]
mov rax, qword [r8 + 0x10]
mov qword [rsp + 0x40], r8
mov rbp, qword [r8]
add rbp, rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
sub r15, rax
mov eax, 0x7fffffff
cmp r15, rax
cmovae r15, rax
mov rsi, qword [rcx + 0x20]
lea rdi, [rsp + 0x58]
mov rcx, rdi
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x50]
xor r9d, r9d
call fcn.1401924b3
mov al, byte [rsp + 0x61]
cmp al, 3
je 0x140192856
mov rbx, qword [rsp + 0x58]
cmp al, 2
je 0x140192894
mov cl, byte [rsp + 0x60]
lea r8, [rsp + 0x62]
movzx edx, word [r8 + 4]
lea r9, [rsp + 0x3a]
mov word [r9 + 4], dx
mov edx, dword [r8]
mov dword [r9], edx
mov qword [rsp + 0x30], rbx
mov byte [rsp + 0x38], cl
mov byte [rsp + 0x39], al
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x28], rax
jb 0x1401928b9
cmp r13, 0xffffffffffffffff
je 0x1401928ad
mov rcx, r13
mov rdx, rbp
mov r8d, r15d
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
jne 0x14019285d
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
je 0x140192862
mov ebx, eax
test rsi, rsi
sete r12b
shl rbx, 0x20
or rbx, 2
mov rcx, rbx
call fcn.140080631
cmp al, 0xd
setne al
or al, r12b
jne 0x14019282b
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
lock inc qword [rdx]
jle 0x1401928cf
add rcx, 0x10
mov r8, qword [rsi + 0x10]
mov r9b, byte [rsi + 0x18]
call fcn.1400a4932
mov r12, rax
xor ecx, ecx
call fcn.140153099
test r12, r12
je 0x14019282b
mov ecx, 1
mov rdx, rbx
call fcn.1400a4af2
mov rbx, r12
mov rcx, rbx
call fcn.140080631
cmp al, 0xd
jne 0x140192894
mov qword [rsp + 0x58], rbx
mov rcx, r14
lea rdx, [rsp + 0x30]
call fcn.140192450
mov rcx, rdi
call fcn.14018cc40
jmp 0x14019272a
mov eax, 1
jmp 0x140192896
movsxd r8, eax
jmp 0x140192865
xor r8d, r8d
mov rax, qword [rsp + 0x20]
add rax, r8
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rdx + 0x18]
cmp rax, rcx
jbe 0x140192882
mov qword [rdx + 0x18], rax
mov rcx, rax
add qword [rsp + 0x20], r8
jb 0x1401928d1
cmp rcx, rax
jb 0x1401928e9
mov qword [rdx + 0x10], rax
xor ebx, ebx
xor eax, eax
mov rdx, rbx
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str._root_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.41.1_src_io_poll_evented.rs
call fcn.14006c350
lea r8, [0x1402814f8]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
call fcn.140068390
ud2
lea rcx, str.filled_overflowfilled_must_not_become_larger_than_initialized
lea r8, str._root_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.41.1_src_io_poll_evented.rs
mov edx, 0xf
call fcn.14006c370
lea rax, [0x140281550]
lea rcx, [rsp + 0x58]
mov qword [rcx], rax
mov qword [rcx + 8], 1
mov qword [rcx + 0x10], 8
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
lea rdx, str._root_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.41.1_src_io_poll_evented.rs
call fcn.140068590
int3
Function at 0x14019291c
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x50], rdx
mov rbx, rcx
mov r14, qword [rcx + 0x10]
mov r15d, 0x7fffffff
cmp r9, r15
cmovb r15, r9
mov r12, qword [rcx + 0x18]
mov r13, qword [rcx + 0x20]
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov rdx, r14
mov r8, qword [rsp + 0x50]
call fcn.140192677
mov al, byte [rsp + 0x31]
cmp al, 3
je 0x140192a6d
mov rbp, qword [rsp + 0x28]
cmp al, 2
je 0x140192a66
mov cl, byte [rsp + 0x30]
lea r8, [rsp + 0x32]
movzx edx, word [r8 + 4]
lea r9, [rsp + 0x42]
mov word [r9 + 4], dx
mov edx, dword [r8]
mov dword [r9], edx
mov qword [rsp + 0x38], rbp
mov byte [rsp + 0x40], cl
mov byte [rsp + 0x41], al
cmp r12, 0xffffffffffffffff
je 0x140192a8d
mov rcx, r12
mov rdx, qword [rsp + 0x48]
mov r8d, r15d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x140192a74
test r13, r13
sete sil
call sub.ws2_32.dll_WSAGetLastError
mov ebp, eax
shl rbp, 0x20
or rbp, 2
mov rcx, rbp
call fcn.140080631
cmp al, 0xd
setne al
or al, sil
jne 0x140192a3b
mov rcx, qword [r13]
mov rdx, qword [r13 + 8]
lock inc qword [rdx]
jle 0x140192a99
add rcx, 0x10
mov r8, qword [r13 + 0x10]
mov r9b, byte [r13 + 0x18]
call fcn.1400a4932
mov rsi, rax
xor ecx, ecx
call fcn.140153099
test rsi, rsi
je 0x140192a3b
mov ecx, 1
mov rdx, rbp
call fcn.1400a4af2
mov rbp, rsi
mov rcx, rbp
call fcn.140080631
cmp al, 0xd
jne 0x140192a66
mov qword [rsp + 0x28], rbp
mov rcx, rbx
lea rdx, [rsp + 0x38]
call fcn.140192450
mov rcx, rdi
call fcn.14018cc40
jmp 0x140192957
mov eax, 1
jmp 0x140192a79
mov eax, 2
jmp 0x140192a79
movsxd rbp, eax
xor eax, eax
mov rdx, rbp
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str._root_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.41.1_src_io_poll_evented.rs
call fcn.14006c350
ud2

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov esi, dword [0x1401a21e0]
test esi, esi
je 0x140192b9e
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
cmp rax, 1
ja 0x140192b93
je 0x140192b91
call fcn.14018cf36
mov rbx, rax
mov ecx, 0x10
mov edx, 8
call fcn.14018cb34
mov rdi, rax
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
mov rbx, rax
mov ecx, esi
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
test rbx, rbx
je 0x140192b93
mov rcx, rbx
call fcn.14018cf17
jmp 0x140192b93
xor edi, edi
mov rax, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1401a21c8]
call fcn.140153820
mov esi, eax
jmp 0x140192b3c
Function at 0x14019e4bb
Capabilities:
Get session user name

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
lea rdx, [rsp + 0x2c]
and dword [rdx], 0
xor ecx, ecx
call sub.ADVAPI32.dll_GetUserNameW
test eax, eax
jne 0x14019e5a4
call fcn.140130dd2
movabs rdi, 0xffffffff00000003
and rdi, rax
mov rcx, rax
call fcn.14019e42f
movabs rax, 0x7a00000002
cmp rdi, rax
jne 0x14019e550
lea r14, [rsp + 0x2c]
mov edx, dword [r14]
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.14019e48b
mov rbx, qword [rdi]
mov rdi, qword [rdi + 8]
mov eax, 0xffffffff
cmp rbx, rax
cmovb rax, rbx
mov dword [r14], eax
mov rcx, rdi
mov rdx, r14
call sub.ADVAPI32.dll_GetUserNameW
test eax, eax
je 0x14019e568
mov r8d, dword [rsp + 0x2c]
test r8, r8
je 0x14019e580
dec r8
jmp 0x14019e583
call fcn.140130dd2
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x14019e599
call fcn.140130dd2
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x14019e58e
xor r8d, r8d
mov rcx, rsi
mov rdx, rdi
call fcn.140157b80
mov rcx, rbx
mov rdx, rdi
call fcn.14019ef5b
nop
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140285ec1]
lea r8, [0x140285f30]
mov edx, 0x16
call fcn.140069290
int3

Function at 0x14019e5bd
Capabilities:
Get hostname

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov rsi, rcx
lea r8, [rsp + 0x28]
and dword [r8], 0
xor ecx, ecx
xor edx, edx
call sub.KERNEL32.dll_GetComputerNameExW
test eax, eax
jne 0x14019e6ac
call fcn.140130dd2
movabs rdi, 0xffffffff00000003
and rdi, rax
mov rcx, rax
call fcn.14019e42f
movabs rax, 0xea00000002
cmp rdi, rax
jne 0x14019e668
mov edx, dword [rsp + 0x28]
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.14019e48b
mov rbx, qword [rdi]
mov rdi, qword [rdi + 8]
mov eax, 0xffffffff
cmp rbx, rax
cmovb rax, rbx
lea r8, [rsp + 0x2c]
mov dword [r8], eax
xor ecx, ecx
mov rdx, rdi
call sub.KERNEL32.dll_GetComputerNameExW
test eax, eax
je 0x14019e680
mov r8d, dword [rsp + 0x2c]
lea r14, [rsp + 0x48]
mov rcx, r14
mov rdx, rdi
call fcn.140157b80
mov rcx, rsi
mov rdx, r14
call fcn.14019e3bd
jmp 0x14019e696
call fcn.140130dd2
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x14019e6a1
call fcn.140130dd2
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rcx, rbx
mov rdx, rdi
call fcn.14019ef5b
nop
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140285ec1]
lea r8, [0x140285f48]
mov edx, 0x16
call fcn.140069290
int3

Function at 0x1401a0e50
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 fcn.1401a1c10
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1401a1c10
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x1401a0ec0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1402a6224]
mov rbx, rcx
test esi, esi
jle 0x1401a0ff0
mov rax, qword [0x1402a6228]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1401a0f0b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1401a0f95
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1401a0ef0
mov rcx, rbx
call fcn.1401a1930
mov rdi, rax
test rax, rax
je 0x1401a1012
mov rax, qword [0x1402a6228]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1401a1a70
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1402a6228]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1401a0ff7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1401a0f8e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1401a0fa0
add dword [0x1402a6224], 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 [0x1402a6228]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1401a0f8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1401a0e50
nop dword [rax]
xor esi, esi
jmp 0x1401a0f18
mov rax, qword [0x1402a6228]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1401a0e50
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1401a0e50
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1401a15a0
Capabilities:
Get thread local storage value

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