joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400dca60
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.1400eaf20
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
cmp rcx, r14
je 0x1400dcac3
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.1400dfd10
mov rbx, qword [rsp + 0x28]
cmp rbx, r14
jne 0x1400dcb2c
mov rax, qword [rsp + 0x30]
mov ecx, eax
and ecx, 3
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x1400dcb1d
test rcx, rcx
je 0x1400dcb1d
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 0x1400dcb0c
cmp qword [r15 + 0x10], 0x11
jb 0x1400dcafb
mov rbx, qword [rbx - 8]
mov rcx, qword [0x140206128]
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapFree
mov rcx, qword [0x140206128]
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 0x1400dcb50
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x1400dcb20
mov qword [rsi], r14
test rbx, rbx
je 0x1400dcb20
mov rcx, qword [0x140206128]
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 0x1400ddf70
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.1400eaf20
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
cmp rax, rbx
je 0x1400de017
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.1400da900
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
cmp r14, rbx
jne 0x1400ddfdc
mov rsi, rdi
jmp 0x1400de017
mov rcx, rdi
xor edx, edx
call sub.kernel32.dll_CreateDirectoryW
mov ebx, eax
test eax, eax
jne 0x1400ddffb
call sub.kernel32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
test r14, r14
je 0x1400de011
mov rcx, qword [0x140206128]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
test ebx, ebx
je 0x1400de017
xor esi, esi
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400de030
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.1400eaf20
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
cmp rax, rbx
je 0x1400de0d5
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.1400da900
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
cmp r14, rbx
jne 0x1400de09c
mov rsi, rdi
jmp 0x1400de0d5
mov rcx, rdi
call sub.kernel32.dll_DeleteFileW
mov ebx, eax
test eax, eax
jne 0x1400de0b9
call sub.kernel32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
test r14, r14
je 0x1400de0cf
mov rcx, qword [0x140206128]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
test ebx, ebx
je 0x1400de0d5
xor esi, esi
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400df3b0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400df435
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 0x1400df46c
cmp dword [rsp + 0x2c], 0
je 0x1400df45d
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400df46e
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x140206068]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x140206068], rsi
jne 0x1400df410
mov byte [0x140206060], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x1400df462
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400df46c
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x1400df462
mov esi, eax
mov ecx, edi
call sub.kernel32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x1400df462
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 0x1400df480
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x140195080]
test ecx, ecx
je 0x1400df4b0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400df4c9
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400df4c9
add rdi, 0x10
jmp 0x1400df5aa
lea rcx, [0x140195068]
call fcn.1400df3b0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1400df49d
mov ecx, dword [0x140195080]
test ecx, ecx
je 0x1400df58b
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400df5a8
mov rsi, rax
test rax, rax
jne 0x1400df55a
movzx eax, byte [0x140206138]
mov rcx, qword [0x140206128]
test rcx, rcx
jne 0x1400df51b
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400df5c4
mov rcx, rax
mov qword [0x140206128], rax
mov r8d, 0x18
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400df5c4
mov rsi, rax
lea rax, [0x140195068]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140195080]
test ecx, ecx
je 0x1400df5b4
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 0x1400df5aa
test rcx, rcx
je 0x1400df5aa
lock dec qword [rcx]
jne 0x1400df5aa
call fcn.1400db220
jmp 0x1400df5aa
lea rcx, [0x140195068]
call fcn.1400df3b0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400df4e8
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140195068]
call fcn.1400df3b0
mov ecx, eax
jmp 0x1400df552
ud2
Function at 0x1400df5d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1401950a0]
test ecx, ecx
je 0x1400df600
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400df619
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400df619
add rdi, 0x10
jmp 0x1400df6fa
lea rcx, [0x140195088]
call fcn.1400df3b0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1400df5ed
mov ecx, dword [0x1401950a0]
test ecx, ecx
je 0x1400df6db
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400df6f8
mov rsi, rax
test rax, rax
jne 0x1400df6aa
movzx eax, byte [0x140206138]
mov rcx, qword [0x140206128]
test rcx, rcx
jne 0x1400df66b
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400df714
mov rcx, rax
mov qword [0x140206128], rax
mov r8d, 0x18
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400df714
mov rsi, rax
lea rax, [0x140195088]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1401950a0]
test ecx, ecx
je 0x1400df704
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 0x1400df6fa
test rcx, rcx
je 0x1400df6fa
lock dec qword [rcx]
jne 0x1400df6fa
call fcn.1400dafd0
jmp 0x1400df6fa
lea rcx, [0x140195088]
call fcn.1400df3b0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400df638
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140195088]
call fcn.1400df3b0
mov ecx, eax
jmp 0x1400df6a2
ud2

Function at 0x1400dfde0
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 [0x140206138]
mov rcx, qword [0x140206128]
test rcx, rcx
jne 0x1400dfe1d
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400dfecd
mov rcx, rax
mov qword [0x140206128], rax
mov r8d, 0x10
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400dfecd
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400dfed0]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1400dfec0
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x1400dfe9b
cmp qword [rbx + 0x10], 0x11
jb 0x1400dfe8a
mov rdi, qword [rdi - 8]
mov rcx, qword [0x140206128]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov rcx, qword [0x140206128]
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 0x1400e8f80
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1401cdb08]
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 0x1400e8fea
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1400e8ff9
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400e9030
cmp eax, 0x103
je 0x1400e903a
test eax, eax
js 0x1400e9016
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400e9030
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.1400ec570
mov rcx, rax
call fcn.1400e12b0
mov ecx, 7
int 0x29
ud2

Function at 0x1400e92e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1401cdb08]
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 0x1400e9351
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400e9387
test eax, eax
js 0x1400e9362
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400e937a
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.1400ec570
mov rcx, rax
call fcn.1400e12b0
mov ecx, 7
int 0x29
ud2
Function at 0x1400ea100
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 [0x140195060]
test ecx, ecx
je 0x1400ea133
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400ea14c
mov rcx, rax
cmp qword [rax + 8], 0
je 0x1400ea14c
add rcx, 0x10
jmp 0x1400ea268
lea rcx, [0x140195048]
call fcn.1400df3b0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1400ea120
mov ecx, dword [0x140195060]
test ecx, ecx
je 0x1400ea249
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400ea266
mov rdi, rax
test rax, rax
jne 0x1400ea1e1
movzx eax, byte [0x140206138]
mov rcx, qword [0x140206128]
test rcx, rcx
jne 0x1400ea19e
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400ea285
mov rcx, rax
mov qword [0x140206128], rax
mov r8d, 0x20
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400ea285
mov rdi, rax
lea rax, [0x140195048]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x140195060]
test ecx, ecx
je 0x1400ea272
dec ecx
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
test rsi, rsi
je 0x1400ea1fe
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x1400ea233
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 0x1400ea22e
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400ea233
call fcn.1400daf10
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
jmp 0x1400ea268
lea rcx, [0x140195048]
call fcn.1400df3b0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400ea16b
xor ecx, ecx
mov rax, rcx
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x140195048]
call fcn.1400df3b0
mov ecx, eax
jmp 0x1400ea1d9
ud2
Function at 0x1400fdb70
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 0x1400fdd33
mov rdi, r8
mov r8, qword [rcx + 0x18]
mov qword [rsp + 0x40], r8
cmp r8, 0xffffffffffffffff
je 0x1400fdd33
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.140100770
movzx eax, byte [rsp + 0x29]
cmp al, 3
je 0x1400fdd50
mov rbp, qword [rsp + 0x20]
cmp al, 2
je 0x1400fdd97
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 0x1400fdd62
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
je 0x1400fdd67
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.140049bd0
cmp al, 0xd
jne 0x1400fdc86
test r14, r14
je 0x1400fdc86
mov rcx, qword [r14]
mov rdx, qword [r14 + 8]
lock inc qword [rdx]
jle 0x1400fddad
add rcx, 0x10
mov r8, qword [r14 + 0x10]
movzx r9d, byte [r14 + 0x18]
call fcn.140049ae0
test rax, rax
cmovne rsi, rax
mov rcx, rsi
call fcn.140049bd0
cmp al, 0xd
jne 0x1400fdd94
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 0x1400fdccd
mov edx, ebp
and edx, eax
or rdx, rcx
lock cmpxchg qword [r12 + 0xd0], rdx
jne 0x1400fdcb0
mov eax, esi
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400fdbe0
test rax, rax
je 0x1400fdbe0
mov rbp, qword [rsi - 1]
mov r15, qword [rsi + 7]
mov rcx, rbp
call qword [r15]
cmp qword [r15 + 8], 0
je 0x1400fdd1a
cmp qword [r15 + 0x10], 0x11
jb 0x1400fdd09
mov rbp, qword [rbp - 8]
mov rcx, qword [0x140206128]
xor edx, edx
mov r8, rbp
call sub.kernel32.dll_HeapFree
dec rsi
mov rcx, qword [0x140206128]
xor edx, edx
mov r8, rsi
call sub.kernel32.dll_HeapFree
jmp 0x1400fdbe0
mov rdx, qword [rcx + 0x10]
lea rcx, [rsp + 0x20]
mov r8, rbx
xor r9d, r9d
call fcn.140100770
movzx eax, byte [rsp + 0x29]
cmp al, 3
jne 0x1400fdd57
mov eax, 1
jmp 0x1400fdd99
cmp al, 2
jne 0x1400fddad
mov rbp, qword [rsp + 0x20]
jmp 0x1400fdd97
movsxd rdx, eax
jmp 0x1400fdd69
xor edx, edx
mov r8, qword [rsp + 0x30]
lea rax, [rdx + r8]
mov rcx, qword [rdi + 0x18]
cmp rax, rcx
jbe 0x1400fdd82
mov qword [rdi + 0x18], rax
mov rcx, rax
add rdx, r8
jb 0x1400fddad
cmp rax, rcx
ja 0x1400fddad
mov qword [rdi + 0x10], rax
xor ebp, ebp
jmp 0x1400fdd97
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
Function at 0x1400fddb0
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, 0x48
mov qword [rsp + 0x40], r9
mov rdi, r8
mov qword [rsp + 0x28], rcx
mov r14, qword [rdx + 0x18]
cmp r14, 0xffffffffffffffff
je 0x1400fdf40
mov rax, qword [rsp + 0xb0]
mov r15, qword [rdx + 0x10]
mov r13, qword [rdx + 0x20]
cmp rax, 0x7fffffff
mov r12d, 0x7fffffff
cmovb r12, rax
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
mov rdx, r15
mov r8, rdi
mov r9b, 1
call fcn.140100770
movzx eax, byte [rsp + 0x39]
cmp al, 3
je 0x1400fdf5d
mov rsi, qword [rsp + 0x30]
cmp al, 2
je 0x1400fdf74
movzx ebx, byte [rsp + 0x38]
mov rcx, r14
mov rdx, qword [rsp + 0x40]
mov r8d, r12d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x1400fdf86
call sub.ws2_32.dll_WSAGetLastError
mov ebp, eax
shl rbp, 0x20
or rbp, 2
mov rcx, rbp
call fcn.140049bd0
cmp al, 0xd
jne 0x1400fde99
test r13, r13
je 0x1400fde99
mov rcx, qword [r13]
mov rdx, qword [r13 + 8]
lock inc qword [rdx]
jle 0x1400fdfbb
add rcx, 0x10
mov r8, qword [r13 + 0x10]
movzx r9d, byte [r13 + 0x18]
call fcn.140049ae0
test rax, rax
cmovne rbp, rax
mov rcx, rbp
call fcn.140049bd0
cmp al, 0xd
jne 0x1400fdf9a
and esi, 0x23
mov rax, qword [r15 + 0xd0]
xor rsi, 0x2f
mov rcx, rbx
shl rcx, 0x10
nop
mov edx, eax
shr edx, 0x10
cmp bl, dl
jne 0x1400fdedb
mov edx, esi
and edx, eax
or rdx, rcx
lock cmpxchg qword [r15 + 0xd0], rdx
jne 0x1400fdec0
mov eax, ebp
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400fde00
test rax, rax
je 0x1400fde00
mov rsi, qword [rbp - 1]
mov rbx, qword [rbp + 7]
mov rcx, rsi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x1400fdf27
cmp qword [rbx + 0x10], 0x11
jb 0x1400fdf16
mov rsi, qword [rsi - 8]
mov rcx, qword [0x140206128]
xor edx, edx
mov r8, rsi
call sub.kernel32.dll_HeapFree
dec rbp
mov rcx, qword [0x140206128]
xor edx, edx
mov r8, rbp
call sub.kernel32.dll_HeapFree
jmp 0x1400fde00
mov rdx, qword [rdx + 0x10]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov r9b, 1
call fcn.140100770
movzx eax, byte [rsp + 0x39]
cmp al, 3
jne 0x1400fdf6b
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x1400fdfaa
cmp al, 2
jne 0x1400fdfbb
mov rsi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rsi
jmp 0x1400fdfaa
cdqe
mov rcx, qword [rsp + 0x28]
mov qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x1400fdfaa
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rbp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x140102a40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0xc8
mov rdi, rcx
mov ecx, dword [0x140195120]
test ecx, ecx
je 0x140102c13
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140102a75
mov rsi, rax
cmp qword [rax + 8], 0
jne 0x140102c48
mov ecx, dword [0x140195120]
test ecx, ecx
je 0x140102c4e
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140102c6b
mov rsi, rax
test rax, rax
jne 0x140102b0a
movzx eax, byte [0x140206138]
mov rcx, qword [0x140206128]
test rcx, rcx
jne 0x140102ac7
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x140102c8d
mov rcx, rax
mov qword [0x140206128], rax
mov r8d, 0x60
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x140102c8d
mov rsi, rax
lea rax, [0x140195108]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140195120]
test ecx, ecx
je 0x140102c7a
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
lea rax, [rsi + 8]
test rdi, rdi
je 0x140102b2f
lea rdx, [rdi + 8]
cmp qword [rdi], 0
mov qword [rdi], 0
lea rcx, [0x1401ceb00]
cmovne rcx, rdx
jmp 0x140102b36
lea rcx, [0x1401ceb00]
movups xmm0, xmmword [rcx + 0x40]
movaps xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movups xmm2, xmmword [rcx + 0x20]
movups xmm3, xmmword [rcx + 0x30]
movaps xmmword [rsp + 0x50], xmm3
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov rcx, qword [rax + 0x50]
mov qword [rsp + 0xc0], rcx
movups xmm0, xmmword [rax + 0x40]
movaps xmmword [rsp + 0xb0], xmm0
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmm3, xmmword [rax + 0x30]
movaps xmmword [rsp + 0xa0], xmm3
movaps xmmword [rsp + 0x90], xmm2
movaps xmmword [rsp + 0x80], xmm1
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsi + 8], 1
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x50], xmm0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmm2, xmmword [rsp + 0x40]
movaps xmm3, xmmword [rsp + 0x50]
movups xmmword [rsi + 0x40], xmm3
movups xmmword [rsi + 0x30], xmm2
movups xmmword [rsi + 0x20], xmm1
movups xmmword [rsi + 0x10], xmm0
cmp qword [rsp + 0x70], 0
je 0x140102c48
mov rax, qword [rsp + 0x80]
cmp rax, 2
je 0x140102c48
lea rcx, [rsp + 0x88]
test rax, rax
je 0x140102c35
mov rax, qword [rsp + 0x88]
lock dec qword [rax]
jne 0x140102c48
call fcn.140100000
jmp 0x140102c48
lea rcx, [0x140195108]
call fcn.1400df3b0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x140102a67
jmp 0x140102a75
mov rax, qword [rsp + 0x88]
lock dec qword [rax]
jne 0x140102c48
call fcn.1400ff900
add rsi, 0x10
jmp 0x140102c6d
lea rcx, [0x140195108]
call fcn.1400df3b0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x140102a94
xor esi, esi
mov rax, rsi
add rsp, 0xc8
pop rdi
pop rsi
ret
lea rcx, [0x140195108]
call fcn.1400df3b0
mov ecx, eax
jmp 0x140102b02
ud2
Function at 0x140102c90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1401950f8]
test ecx, ecx
je 0x140102cbf
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140102cd8
mov rsi, rax
cmp qword [rax + 8], 0
je 0x140102cd8
add rsi, 8
jmp 0x140102e07
lea rcx, [0x1401950e0]
call fcn.1400df3b0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x140102cac
mov ecx, dword [0x1401950f8]
test ecx, ecx
je 0x140102de8
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140102e05
mov rsi, rax
test rax, rax
jne 0x140102d6d
movzx eax, byte [0x140206138]
mov rcx, qword [0x140206128]
test rcx, rcx
jne 0x140102d2a
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x140102e23
mov rcx, rax
mov qword [0x140206128], rax
mov r8d, 0x10
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x140102e23
mov rsi, rax
lea rax, [0x1401950e0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1401950f8]
test ecx, ecx
je 0x140102e10
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
movzx eax, byte [0x140206138]
mov rcx, qword [0x140206128]
test rcx, rcx
jne 0x140102d98
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x140102e23
mov rcx, rax
mov qword [0x140206128], rax
mov r8d, 0x30
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x140102e23
add rsi, 8
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], 0
mov byte [rax + 0x18], 0
xorps xmm0, xmm0
movups xmmword [rax + 0x20], xmm0
mov rcx, qword [rsi]
mov qword [rsi], rax
test rcx, rcx
je 0x140102e07
lock dec qword [rcx]
jne 0x140102e07
call fcn.1400391f0
jmp 0x140102e07
lea rcx, [0x1401950e0]
call fcn.1400df3b0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x140102cf7
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1401950e0]
call fcn.1400df3b0
mov ecx, eax
jmp 0x140102d65
ud2