joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14019f060
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov rsi, rcx
lea rcx, [rsp + 0xa8]
call fcn.140180090
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14019f1cb
mov qword [rsp + 0x38], rsi
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov esi, 0xffffffff
xor r14d, r14d
xor r13d, r13d
cmp r8, 0x201
jae 0x14019f120
jmp 0x14019f0ff
jae 0x14019f1e1
cmp r8, 0x201
jae 0x14019f120
mov edi, 0x200
lea rbp, [rsp + 0xa8]
mov r12, r8
jmp 0x14019f167
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x14019f147
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.140180510
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rbx, qword [rsp + 0x50]
cmp rbx, rsi
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rsp + 0x58], r13
mov r14, rbx
mov rdi, r13
mov rbp, qword [rsp + 0x28]
mov r12, r13
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x30]
mov rdx, rbp
mov r8d, r12d
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov r15d, eax
test eax, eax
jne 0x14019f192
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x14019f216
mov r8d, r15d
cmp r12, r8
jne 0x14019f0f0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14019f2a2
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x14019f0ff
jmp 0x14019f120
lea rcx, [rsp + 0xb0]
call fcn.14017d930
mov byte [rsi + 0x18], 2
jmp 0x14019f272
cmp rdi, r8
jb 0x14019f2bc
lea rcx, [rsp + 0x88]
mov rdx, rbp
call fcn.1401820c0
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
jmp 0x14019f22d
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x78], 2
mov rsi, qword [rsp + 0x38]
test rbx, rbx
je 0x14019f246
mov edx, 2
mov rcx, qword [rsp + 0x28]
call fcn.140030e40
cmp byte [rsp + 0x78], 2
jne 0x14019f287
mov byte [rsi + 0x18], 2
lea rcx, [rsp + 0x60]
call fcn.14017d930
cmp qword [rsp + 0x40], 0
je 0x14019f272
mov edx, 2
mov rcx, qword [rsp + 0x30]
call fcn.140030e40
nop
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp qword [rsp + 0x40], 0
jne 0x14019f263
jmp 0x14019f272
lea rcx, str.internal_error:_entered_unreachable_codeQ
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14007f700
jmp 0x14019f2d1
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rdi
mov r8, rax
call fcn.14007f360
ud2
Function at 0x1401a0820
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rbx, r9
mov r14, r8
mov r8, rdx
mov rdx, rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r9
lea rsi, [rsp + 0x28]
mov rcx, rsi
call fcn.140180090
mov rdi, qword [rsp + 0x28]
mov r15, qword [rsp + 0x30]
test rdi, rdi
je 0x1401a08a3
lea rcx, [rsp + 0x28]
mov rdx, r14
mov r8, rbx
call fcn.140180090
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
test r14, r14
je 0x1401a08a8
mov rcx, rdi
mov rdx, r14
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
je 0x1401a08ad
xor ebx, ebx
test r12, r12
jne 0x1401a08c1
jmp 0x1401a08ce
mov rbx, r15
jmp 0x1401a08e0
mov rbx, r12
jmp 0x1401a08ce
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test r12, r12
je 0x1401a08ce
mov edx, 2
mov rcx, r14
call fcn.140030e40
test r15, r15
je 0x1401a08e0
mov edx, 2
mov rcx, rdi
call fcn.140030e40
test rbx, rbx
jne 0x1401a08f6
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov qword [rsp + 0x20], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [0x1401a09c0]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
lea rax, [fcn.14019fc50]
mov qword [rsp + 0x50], rax
lea rax, str.failed_to_set_environment_variable____to___:
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 3
mov qword [rsp + 0x98], 0
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x90], 3
lea rdx, str.library_std_srcenv.rs
lea rcx, [rsp + 0x78]
call fcn.14007e560
ud2
Function at 0x1401a4060
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1402851e8]
test ecx, ecx
je 0x1401a4140
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1401a4094
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1401a4094
add rdi, 0x10
jmp 0x1401a4136
mov ecx, dword [0x1402851e8]
test ecx, ecx
je 0x1401a4153
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1401a4134
mov rsi, rax
test rax, rax
jne 0x1401a4103
movzx eax, byte [0x1403b0290]
mov ecx, 0x18
mov edx, 8
call fcn.140030db0
test rax, rax
je 0x1401a4176
mov rsi, rax
lea rax, [0x1402851d0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1402851e8]
test ecx, ecx
je 0x1401a4166
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x1401a4136
test rcx, rcx
je 0x1401a4136
lock dec qword [rcx]
jne 0x1401a4136
call fcn.1401a4190
jmp 0x1401a4136
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1402851d0]
call fcn.14017e120
mov ecx, eax
jmp 0x1401a4076
lea rcx, [0x1402851d0]
call fcn.14017e120
mov ecx, eax
jmp 0x1401a40a4
lea rcx, [0x1402851d0]
call fcn.14017e120
mov ecx, eax
jmp 0x1401a40fb
mov ecx, 8
mov edx, 0x18
call fcn.1400513e0
ud2
Function at 0x1401ac1d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.140180090
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x1401ac245
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.1401ac100
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x1401ac253
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1401ac273
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x1401ac264
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x30]
call fcn.14017d930
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
ret
mov qword [rsi], 0
movq rax, xmm6
test rax, rax
je 0x1401ac264
mov edx, 2
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp fcn.140030e40
Function at 0x1401addd0
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x1403b0290]
mov ecx, 0x10
mov edx, 8
call fcn.140030db0
test rax, rax
je 0x1401ade88
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1401adee0]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1401ade7b
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x1401ade5a
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.140030e40
mov edx, 8
mov rcx, rsi
call fcn.140030e40
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.1400513e0
ud2

Function at 0x1401ae190
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1098
call fcn.1401d0d70
sub rsp, rax
movaps xmmword [rsp + 0x1080], xmm6
mov rsi, rdx
mov rdi, rcx
lea r14, [rsp + 0x80]
mov r8d, 0x1000
mov rcx, r14
xor edx, edx
call sub.msvcrt.dll_memset
lea r15, [rsp + 0x50]
xorps xmm6, xmm6
lea rbx, [rsp + 0x34]
lea r12, [0x1401a5b60]
lea r13, [rsp + 0x60]
mov qword [rsp + 0x28], rdi
mov r9d, 0x1000
mov rcx, r15
mov rdx, rdi
mov r8, r14
call fcn.1401a5e40
cmp qword [rsp + 0x50], 0
jne 0x1401ae316
mov rbp, qword [rsp + 0x58]
test rbp, rbp
je 0x1401ae2ea
cmp rbp, 0x1000
ja 0x1401ae336
mov rdi, r14
mov r14, r15
xor r15d, r15d
nop word cs:[rax + rax]
mov r8d, ebp
sub r8d, r15d
lea rdx, [rsp + r15]
add rdx, 0x80
mov dword [rsp + 0x34], 0
movaps xmmword [rsp + 0x60], xmm6
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x20], r12
mov rcx, rsi
mov r9, r13
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x1401ae2c0
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x1401ae280
movsxd rax, dword [rsp + 0x38]
test rax, rax
jne 0x1401ae2c5
mov eax, dword [rsp + 0x3c]
add r15, rax
cmp r15, rbp
je 0x1401ae2b0
jbe 0x1401ae240
jmp 0x1401ae322
mov r15, r14
mov r14, rdi
mov rdi, qword [rsp + 0x28]
jmp 0x1401ae1ed
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 1
lea rcx, [rsp + 0x48]
mov rdi, qword [rsp + 0x28]
call fcn.14017d930
mov rcx, rdi
call fcn.1401d11a4
mov rcx, rsi
call fcn.1401d11a4
movaps xmm6, xmmword [rsp + 0x1080]
add rsp, 0x1098
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x58]
call fcn.14017d930
jmp 0x1401ae2ea
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r15
mov rdx, rbp
call fcn.1400800f0
jmp 0x1401ae34a
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, rbp
call fcn.14007f360
ud2
Function at 0x1401ae430
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1401ae466
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [fcn.14019fc50]
mov qword [rsp + 0x48], rax
lea rax, str.fallback_RNG_broken:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.14007e560
ud2

Function at 0x1401b03a0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x1401b04eb
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x1401b03d8
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x1401b04d4
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x1401b04b6
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x1401b0438
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x1401b0469
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x1401b046d
call sub.KERNEL32.dll_GetLastError
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x3e5
je 0x1401b0471
cmp eax, 0x6d
jne 0x1401b049c
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
jmp 0x1401b0476
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1401b04a2
lea rax, [rsp + 0x30]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.14017d930
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x1401b04ac
cmp rax, 1
je 0x1401b0421
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x1401b042b
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140183500
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x1401b03e5
mov r8d, 0x10
mov rcx, rbx
call fcn.140183500
mov rax, qword [rbx + 8]
jmp 0x1401b03d8
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1401b0510
ud2
Function at 0x1401b4140
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x30
mov ecx, dword [0x140285208]
test ecx, ecx
je 0x1401b4239
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1401b4170
cmp qword [rax + 8], 0
je 0x1401b4170
add rax, 0x10
jmp 0x1401b4233
mov ecx, dword [0x140285208]
test ecx, ecx
je 0x1401b424c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1401b4213
mov rsi, rax
test rax, rax
jne 0x1401b41e3
movzx eax, byte [0x1403b0290]
mov ecx, 0x20
mov edx, 8
call fcn.140030db0
test rax, rax
je 0x1401b4272
mov rsi, rax
lea rax, [0x1402851f0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140285208]
test ecx, ecx
je 0x1401b425f
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x1401b4217
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1401b421f
xor eax, eax
jmp 0x1401b4233
call fcn.1401ae430
mov rcx, rax
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
add rsp, 0x30
pop rsi
ret
lea rcx, [0x1402851f0]
call fcn.14017e120
mov ecx, eax
jmp 0x1401b4155
lea rcx, [0x1402851f0]
call fcn.14017e120
mov ecx, eax
jmp 0x1401b4180
lea rcx, [0x1402851f0]
call fcn.14017e120
mov ecx, eax
jmp 0x1401b41db
mov ecx, 8
mov edx, 0x20
call fcn.1400513e0
ud2

Function at 0x1401b4827
Capabilities:
Encode data using xor

Disassembly:
sub rdx, rcx
cmp rdx, 0x20
jb fcn.1400858e0
jmp fcn.14007ece0

Function at 0x1401b7015
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x1401b702e
dec ecx
add rsp, 0x28
jmp sub.KERNEL32.dll_TlsGetValue
mov rcx, rax
call fcn.14017e120
mov ecx, eax
jmp 0x1401b7025

Function at 0x1401bb697
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 0x1401bb69e
test al, 1
je 0x1401bb6bd
test al, 2
jne 0x1401bb6d2
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140342a78]
mov edx, 0x23
jmp 0x1401bb6e5
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140342ab8]
mov edx, 0x25
call fcn.14007f700
ud2
Function at 0x1401bc3e3
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 rbp, r9
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0xc0]
lea rdi, [rsp + 0x3a]
lea r15, [rdx + 0x18]
xor ecx, ecx
cmp qword [rdx + 0x18], 0xffffffffffffffff
cmove r15, rcx
mov r12d, 0x7fffffff
cmp rax, r12
cmovb r12, rax
lea r13, [rsp + 0x52]
lea rsi, [rsp + 0x30]
mov qword [rsp + 0x40], r15
mov rdx, qword [r14 + 0x10]
mov rcx, rsi
mov r8, rbx
call fcn.1401bc186
mov al, byte [rsp + 0x39]
cmp al, 3
je 0x1401bc552
mov rcx, qword [rsp + 0x30]
cmp al, 2
je 0x1401bc560
mov dl, byte [rsp + 0x38]
movzx r8d, word [rdi + 4]
mov word [r13 + 4], r8w
mov r8d, dword [rdi]
mov dword [r13], r8d
mov qword [rsp + 0x48], rcx
mov byte [rsp + 0x50], dl
mov byte [rsp + 0x51], al
mov rcx, r15
lea rdx, str._usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.36.0_src_io_poll_evented.rs
call fcn.1401babdf
mov rcx, qword [r15]
mov rdx, rbp
mov r8d, r12d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x1401bc56e
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.1400bb456
cmp al, 0xd
jne 0x1401bc522
mov rax, qword [r15 + 8]
test rax, rax
je 0x1401bc522
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x1401bc5a1
mov r15, r14
mov r14, rbx
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.1400bb331
mov rbx, rax
xor ecx, ecx
call fcn.1400b9a94
test rbx, rbx
je 0x1401bc517
mov ecx, 1
mov rdx, rsi
call fcn.1400bb714
mov rsi, rbx
mov rbx, r14
mov r14, r15
mov r15, qword [rsp + 0x40]
mov rcx, rsi
call fcn.1401b6350
cmp al, 0xd
jne 0x1401bc580
mov qword [rsp + 0x30], rsi
mov rcx, r14
lea rdx, [rsp + 0x48]
call fcn.1401bbf52
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.1401b629e
jmp 0x1401bc439
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x1401bc590
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
jmp 0x1401bc57a
movsxd rcx, eax
mov rax, qword [rsp + 0x28]
and qword [rax], 0
mov qword [rax + 8], rcx
jmp 0x1401bc590
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x1401bc5a5
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, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x58], rcx
mov rax, qword [rsp + 0xf0]
lea rbp, [rsp + 0x6a]
lea r15, [rdx + 0x18]
xor ecx, ecx
cmp qword [rdx + 0x18], 0xffffffffffffffff
cmove r15, rcx
mov r13d, 0xffffffff
cmp rax, r13
cmovb r13, rax
xorps xmm6, xmm6
mov rdx, qword [r14 + 0x10]
lea rcx, [rsp + 0x40]
mov r8, rbx
mov r9b, 1
call fcn.1401bbfb5
mov al, byte [rsp + 0x49]
cmp al, 3
je 0x1401bc730
mov rcx, qword [rsp + 0x40]
cmp al, 2
je 0x1401bc73e
mov dl, byte [rsp + 0x48]
lea r9, [rsp + 0x4a]
movzx r8d, word [r9 + 4]
mov word [rbp + 4], r8w
mov r8d, dword [r9]
mov dword [rbp], r8d
mov qword [rsp + 0x60], rcx
mov byte [rsp + 0x68], dl
mov byte [rsp + 0x69], al
mov rcx, r15
lea rdx, str._usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.36.0_src_io_poll_evented.rs
call fcn.1401babdf
mov rcx, qword [r15]
and dword [rsp + 0x54], 0
movups xmmword [rsp + 0x28], xmm6
and dword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, r13d
lea r9, [rsp + 0x54]
call sub.ws2_32.dll_WSASend
cmp eax, 0xffffffff
jne 0x1401bc74c
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.1400bb456
cmp al, 0xd
jne 0x1401bc6fa
mov rax, qword [r15 + 8]
test rax, rax
je 0x1401bc6fa
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x1401bc793
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.1400bb331
mov r12, rax
xor ecx, ecx
call fcn.1400b9a94
test r12, r12
je 0x1401bc6fa
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], 1
mov ecx, 1
mov rdx, rsi
call fcn.1400bb714
mov rsi, r12
jmp 0x1401bc708
mov qword [rsp + 0x40], 1
mov qword [rsp + 0x48], rsi
mov rcx, rsi
call fcn.1401b6350
cmp al, 0xd
jne 0x1401bc76a
mov rcx, r14
lea rdx, [rsp + 0x60]
call fcn.1401bbf52
lea rcx, [rsp + 0x48]
call fcn.1401b629e
jmp 0x1401bc5f7
mov rax, qword [rsp + 0x58]
mov qword [rax], 2
jmp 0x1401bc77a
mov rax, qword [rsp + 0x58]
mov qword [rax], 1
jmp 0x1401bc764
mov ecx, dword [rsp + 0x54]
and qword [rsp + 0x40], 0
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x58]
and qword [rax], 0
mov qword [rax + 8], rcx
jmp 0x1401bc77a
mov rax, qword [rsp + 0x58]
mov qword [rax], 1
mov qword [rax + 8], rsi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2

Function at 0x1401d2950
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.1401d36f0
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.1401d36f0
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 0x1401d29c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1403b0324]
mov rbx, rcx
test esi, esi
jle 0x1401d2af0
mov rax, qword [0x1403b0328]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1401d2a0b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1401d2a95
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1401d29f0
mov rcx, rbx
call fcn.1401d3410
mov rdi, rax
test rax, rax
je 0x1401d2b12
mov rax, qword [0x1403b0328]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1401d3550
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1403b0328]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1401d2af7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1401d2a8e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1401d2aa0
add dword [0x1403b0324], 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 [0x1403b0328]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1401d2a8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1401d2950
nop dword [rax]
xor esi, esi
jmp 0x1401d2a18
mov rax, qword [0x1403b0328]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1401d2950
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1401d2950
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1401d3080
Capabilities:
Get thread local storage value

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