joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008f9b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rsi, rdx
cmp dword [rcx], 2
jne 0x14008fa46
movdqu xmm0, xmmword [rcx + 8]
pshufd xmm1, xmm0, 0x44
pxor xmm1, xmmword [0x140198d80]
movdqa xmmword [rsp + 0x30], xmm1
pshufd xmm1, xmm0, 0xee
pxor xmm1, xmmword [0x140198d90]
movdqa xmmword [rsp + 0x40], xmm1
movdqa xmmword [rsp + 0x50], xmm0
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
mov rdi, qword [rsi]
xor eax, eax
test rdi, rdi
setne al
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov r8d, 8
call fcn.1400f2f90
test rdi, rdi
je 0x14008fad5
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
lea rcx, [rsp + 0x30]
jmp 0x14008faee
mov rdx, qword [rsi]
xor ecx, ecx
test rdx, rdx
setne cl
movabs rax, 0xcbf29ce484222325
xor rax, rcx
movabs rcx, 0x1efac7090aef4a21
imul rax, rcx
test rdx, rdx
je 0x14008fbe6
mov r9, qword [rsi + 0x10]
test r9, r9
je 0x14008fc68
mov rcx, qword [rsi + 8]
movabs rdx, 0x100000001b3
mov r10, r9
and r10, 7
je 0x14008fbf3
mov r11, rax
mov r8, rcx
nop word cs:[rax + rax]
movzx eax, byte [r8]
inc r8
xor rax, r11
imul rax, rdx
mov r11, rax
dec r10
jne 0x14008fab0
cmp r9, 8
jae 0x14008fbfc
jmp 0x14008fc68
movzx eax, byte [rsi + 8]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov r8d, 8
call fcn.1400f2f90
mov rcx, qword [rsp + 0x40]
mov r9, qword [rsp + 0x60]
shl r9, 0x38
or r9, qword [rsp + 0x68]
mov rax, qword [rsp + 0x48]
mov r8, qword [rsp + 0x30]
add r8, rcx
rol rcx, 0xd
xor rax, r9
xor rcx, r8
rol r8, 0x20
mov rdx, qword [rsp + 0x38]
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rax, r8
xor rcx, rdx
rol rdx, 0x20
xor r8, r9
add r8, rcx
rol rcx, 0xd
xor rcx, r8
rol r8, 0x20
xor rdx, 0xff
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rcx, rdx
rol rdx, 0x20
xor rax, r8
add r8, rcx
rol rcx, 0xd
xor rcx, r8
rol r8, 0x20
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rcx, rdx
rol rdx, 0x20
xor rax, r8
add r8, rcx
rol rcx, 0xd
xor rcx, r8
add rdx, rax
shl rax, 0x10
xor rax, rdx
shr rax, 0x2b
add rdx, rcx
shr rcx, 0x2f
xor rcx, rax
mov rax, rdx
shr rax, 0x20
xor rax, rdx
xor rax, rcx
jmp 0x14008fc68
movzx edx, byte [rsi + 8]
xor rax, rdx
imul rax, rcx
jmp 0x14008fc68
mov r8, rcx
cmp r9, 8
jb 0x14008fc68
add rcx, r9
nop
movzx r9d, byte [r8]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 1]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 2]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 3]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 4]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 5]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 6]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 7]
add r8, 8
xor rax, r9
imul rax, rdx
cmp r8, rcx
jne 0x14008fc00
and eax, 0x7fff
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x1400b6110
Capabilities:
Get remote cert context via schannel

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov esi, ecx
lea rcx, [rdx + 0xf0]
mov qword [rsp + 0x28], 0
and al, 0x28
add byte [rax], al
add byte [rax], al
lea r8, [rsp + 0x28]
mov edx, 0x53
call sub.secur32.dll_QueryContextAttributesW
test eax, eax
je 0x1400b614d
movabs rdi, 0x8000000000000000
jmp 0x1400b61b5
invalid
mov rbx, qword [rsp + 0x28]
mov r14, qword [rbx + 8]
mov edi, dword [rbx + 0x10]
adc byte [rax - 0x7b], cl
invalid
je case.0x1400af26f.77
movzx eax, byte [0x140205110]
mov rcx, qword [0x140205100]
mov r15d, 1
mov rcx, r15
mov rdx, r14
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call sub.crypt32.dll_CertFreeCertificateContext
mov qword [rsi + 8], r15
mov qword [rsi + 0x10], rdi
invalid
mov qword [rsi], rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400d6ef0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x1400d6f1e
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.1400e1bc0
ud2

Function at 0x1400d8a40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
movabs r14, 0x8000000000000000
lea rcx, [rsp + 0x40]
call fcn.1400e6980
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
cmp rcx, r14
je 0x1400d8aa3
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.1400dbcf0
mov rbx, qword [rsp + 0x28]
cmp rbx, r14
jne 0x1400d8b0c
mov rax, qword [rsp + 0x30]
mov ecx, eax
and ecx, 3
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x1400d8afd
test rcx, rcx
je 0x1400d8afd
lea rdi, [rax - 1]
mov rbx, qword [rax - 1]
mov r15, qword [rax + 7]
mov rcx, rbx
call qword [r15]
cmp qword [r15 + 8], 0
je 0x1400d8aec
cmp qword [r15 + 0x10], 0x11
jb 0x1400d8adb
mov rbx, qword [rbx - 8]
mov rcx, qword [0x140205100]
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapFree
mov rcx, qword [0x140205100]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov qword [rsi], r14
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rdi, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1400d8b30
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x1400d8b00
mov qword [rsi], r14
test rbx, rbx
je 0x1400d8b00
mov rcx, qword [0x140205100]
xor edx, edx
mov r8, rdi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp sub.kernel32.dll_HeapFree

Function at 0x1400d9f50
Capabilities:
Create directory

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov r8, rdx
mov rdx, rcx
movabs rbx, 0x8000000000000000
lea rcx, [rsp + 0x20]
call fcn.1400e6980
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
cmp rax, rbx
je 0x1400d9ff7
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x38]
mov r8b, 1
call fcn.1400d68e0
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
cmp r14, rbx
jne 0x1400d9fbc
mov rsi, rdi
jmp 0x1400d9ff7
mov rcx, rdi
xor edx, edx
call sub.kernel32.dll_CreateDirectoryW
mov ebx, eax
test eax, eax
jne 0x1400d9fdb
call sub.kernel32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
test r14, r14
je 0x1400d9ff1
mov rcx, qword [0x140205100]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
test ebx, ebx
je 0x1400d9ff7
xor esi, esi
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400da010
Capabilities:
Delete file

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov r8, rdx
mov rdx, rcx
movabs rbx, 0x8000000000000000
lea rcx, [rsp + 0x20]
call fcn.1400e6980
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
cmp rax, rbx
je 0x1400da0b5
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x38]
mov r8b, 1
call fcn.1400d68e0
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
cmp r14, rbx
jne 0x1400da07c
mov rsi, rdi
jmp 0x1400da0b5
mov rcx, rdi
call sub.kernel32.dll_DeleteFileW
mov ebx, eax
test eax, eax
jne 0x1400da099
call sub.kernel32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
test r14, r14
je 0x1400da0af
mov rcx, qword [0x140205100]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
test ebx, ebx
je 0x1400da0b5
xor esi, esi
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400db390
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400db415
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
cmp eax, 1
jne 0x1400db44c
cmp dword [rsp + 0x2c], 0
je 0x1400db43d
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400db44e
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x140205068]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x140205068], rsi
jne 0x1400db3f0
mov byte [0x140205060], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x1400db442
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400db44c
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x1400db442
mov esi, eax
mov ecx, edi
call sub.kernel32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x1400db442
mov edi, dword [rsi + 0x18]
dec edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
ud2
Function at 0x1400db460
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x140194080]
test ecx, ecx
je 0x1400db490
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400db4a9
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400db4a9
add rdi, 0x10
jmp 0x1400db58a
lea rcx, [0x140194068]
call fcn.1400db390
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1400db47d
mov ecx, dword [0x140194080]
test ecx, ecx
je 0x1400db56b
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400db588
mov rsi, rax
test rax, rax
jne 0x1400db53a
movzx eax, byte [0x140205110]
mov rcx, qword [0x140205100]
test rcx, rcx
jne 0x1400db4fb
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400db5a4
mov rcx, rax
mov qword [0x140205100], rax
mov r8d, 0x18
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400db5a4
mov rsi, rax
lea rax, [0x140194068]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140194080]
test ecx, ecx
je 0x1400db594
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 0x1400db58a
test rcx, rcx
je 0x1400db58a
lock dec qword [rcx]
jne 0x1400db58a
call fcn.1400d7200
jmp 0x1400db58a
lea rcx, [0x140194068]
call fcn.1400db390
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400db4c8
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140194068]
call fcn.1400db390
mov ecx, eax
jmp 0x1400db532
ud2
Function at 0x1400db5b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1401940a0]
test ecx, ecx
je 0x1400db5e0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400db5f9
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400db5f9
add rdi, 0x10
jmp 0x1400db6da
lea rcx, [0x140194088]
call fcn.1400db390
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1400db5cd
mov ecx, dword [0x1401940a0]
test ecx, ecx
je 0x1400db6bb
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400db6d8
mov rsi, rax
test rax, rax
jne 0x1400db68a
movzx eax, byte [0x140205110]
mov rcx, qword [0x140205100]
test rcx, rcx
jne 0x1400db64b
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400db6f4
mov rcx, rax
mov qword [0x140205100], rax
mov r8d, 0x18
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400db6f4
mov rsi, rax
lea rax, [0x140194088]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1401940a0]
test ecx, ecx
je 0x1400db6e4
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 0x1400db6da
test rcx, rcx
je 0x1400db6da
lock dec qword [rcx]
jne 0x1400db6da
call fcn.1400d6fb0
jmp 0x1400db6da
lea rcx, [0x140194088]
call fcn.1400db390
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400db618
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140194088]
call fcn.1400db390
mov ecx, eax
jmp 0x1400db682
ud2

Function at 0x1400dbdc0
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 [0x140205110]
mov rcx, qword [0x140205100]
test rcx, rcx
jne 0x1400dbdfd
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400dbead
mov rcx, rax
mov qword [0x140205100], rax
mov r8d, 0x10
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400dbead
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400dbeb0]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1400dbea0
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x1400dbe7b
cmp qword [rbx + 0x10], 0x11
jb 0x1400dbe6a
mov rdi, qword [rdi - 8]
mov rcx, qword [0x140205100]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov rcx, qword [0x140205100]
xor edx, edx
mov r8, rsi
call sub.kernel32.dll_HeapFree
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
ud2
Function at 0x1400e4b80
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1401cc938]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x1400e4bea
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1400e4bf9
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400e4c30
cmp eax, 0x103
je 0x1400e4c3a
test eax, eax
js 0x1400e4c16
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400e4c30
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1400e7fd0
mov rcx, rax
call fcn.1400dceb0
mov ecx, 7
int 0x29
ud2

Function at 0x1400e4ee0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1401cc938]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x1400e4f51
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400e4f87
test eax, eax
js 0x1400e4f62
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400e4f7a
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1400e7fd0
mov rcx, rax
call fcn.1400dceb0
mov ecx, 7
int 0x29
ud2
Function at 0x1400e5d00
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x140194060]
test ecx, ecx
je 0x1400e5d33
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400e5d4c
mov rcx, rax
cmp qword [rax + 8], 0
je 0x1400e5d4c
add rcx, 0x10
jmp 0x1400e5e68
lea rcx, [0x140194048]
call fcn.1400db390
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1400e5d20
mov ecx, dword [0x140194060]
test ecx, ecx
je 0x1400e5e49
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400e5e66
mov rdi, rax
test rax, rax
jne 0x1400e5de1
movzx eax, byte [0x140205110]
mov rcx, qword [0x140205100]
test rcx, rcx
jne 0x1400e5d9e
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400e5e85
mov rcx, rax
mov qword [0x140205100], rax
mov r8d, 0x20
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400e5e85
mov rdi, rax
lea rax, [0x140194048]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x140194060]
test ecx, ecx
je 0x1400e5e72
dec ecx
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
test rsi, rsi
je 0x1400e5dfe
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x1400e5e33
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 0x1400e5e2e
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400e5e33
call fcn.1400d6ef0
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
jmp 0x1400e5e68
lea rcx, [0x140194048]
call fcn.1400db390
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400e5d6b
xor ecx, ecx
mov rax, rcx
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x140194048]
call fcn.1400db390
mov ecx, eax
jmp 0x1400e5dd9
ud2
Function at 0x1400f2f90
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x1400f2fd2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x1400f2fda
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x1400f2feb
jmp 0x1400f3002
xor r10d, r10d
jmp 0x1400f308d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x1400f3002
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x1400f3019
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x1400f3039
add r11, r8
jmp 0x1400f316a
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x1400f3102
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x1400f30b0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x1400f3120
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x1400f3132
jmp 0x1400f314c
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x1400f314c
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x1400f3166
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400fc660
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, 0x48
mov rbx, rdx
mov rax, qword [r8 + 8]
mov rdx, qword [r8 + 0x10]
sub rax, rdx
jb 0x1400fc823
mov rdi, r8
mov r8, qword [rcx + 0x18]
mov qword [rsp + 0x40], r8
cmp r8, 0xffffffffffffffff
je 0x1400fc823
mov r8, qword [rdi]
mov qword [rsp + 0x30], rdx
add r8, rdx
mov qword [rsp + 0x38], r8
mov r12, qword [rcx + 0x10]
mov r14, qword [rcx + 0x20]
cmp rax, 0x7fffffff
mov r13d, 0x7fffffff
cmovb r13, rax
nop word cs:[rax + rax]
lea rcx, [rsp + 0x20]
mov rdx, r12
mov r8, rbx
xor r9d, r9d
call fcn.1400ff240
movzx eax, byte [rsp + 0x29]
cmp al, 3
je 0x1400fc840
mov rbp, qword [rsp + 0x20]
cmp al, 2
je 0x1400fc887
movzx r15d, byte [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov r8d, r13d
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
jne 0x1400fc852
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
je 0x1400fc857
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.1400467a0
cmp al, 0xd
jne 0x1400fc776
test r14, r14
je 0x1400fc776
mov rcx, qword [r14]
mov rdx, qword [r14 + 8]
lock inc qword [rdx]
jle 0x1400fc89d
add rcx, 0x10
mov r8, qword [r14 + 0x10]
movzx r9d, byte [r14 + 0x18]
call fcn.1400466b0
test rax, rax
cmovne rsi, rax
mov rcx, rsi
call fcn.1400467a0
cmp al, 0xd
jne 0x1400fc884
and ebp, 0x23
mov rax, qword [r12 + 0xd0]
xor rbp, 0x2f
mov rcx, r15
shl rcx, 0x10
nop dword [rax]
mov edx, eax
shr edx, 0x10
cmp r15b, dl
jne 0x1400fc7bd
mov edx, ebp
and edx, eax
or rdx, rcx
lock cmpxchg qword [r12 + 0xd0], rdx
jne 0x1400fc7a0
mov eax, esi
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400fc6d0
test rax, rax
je 0x1400fc6d0
mov rbp, qword [rsi - 1]
mov r15, qword [rsi + 7]
mov rcx, rbp
call qword [r15]
cmp qword [r15 + 8], 0
je 0x1400fc80a
cmp qword [r15 + 0x10], 0x11
jb 0x1400fc7f9
mov rbp, qword [rbp - 8]
mov rcx, qword [0x140205100]
xor edx, edx
mov r8, rbp
call sub.kernel32.dll_HeapFree
dec rsi
mov rcx, qword [0x140205100]
xor edx, edx
mov r8, rsi
call sub.kernel32.dll_HeapFree
jmp 0x1400fc6d0
mov rdx, qword [rcx + 0x10]
lea rcx, [rsp + 0x20]
mov r8, rbx
xor r9d, r9d
call fcn.1400ff240
movzx eax, byte [rsp + 0x29]
cmp al, 3
jne 0x1400fc847
mov eax, 1
jmp 0x1400fc889
cmp al, 2
jne 0x1400fc89d
mov rbp, qword [rsp + 0x20]
jmp 0x1400fc887
movsxd rdx, eax
jmp 0x1400fc859
xor edx, edx
mov r8, qword [rsp + 0x30]
lea rax, [rdx + r8]
mov rcx, qword [rdi + 0x18]
cmp rax, rcx
jbe 0x1400fc872
mov qword [rdi + 0x18], rax
mov rcx, rax
add rdx, r8
jb 0x1400fc89d
cmp rax, rcx
ja 0x1400fc89d
mov qword [rdi + 0x10], rax
xor ebp, ebp
jmp 0x1400fc887
mov rbp, rsi
xor eax, eax
mov rdx, rbp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2