joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400dae20
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1401b6100]
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
xor ecx, ecx
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x1400dae91
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400daec7
test eax, eax
js 0x1400daea2
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp case.0x1400db223.359
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.1400d14d0
mov rcx, rax
call fcn.1400dace0
mov ecx, 7
int 0x29
ud2

Function at 0x1400db0f0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1401b6100]
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 0x1400db15a
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1400db169
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400db1a0
cmp eax, 0x103
je 0x1400db1aa
test eax, eax
js 0x1400db186
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov dword [rsi + 8], eax
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
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
adc dword [rsp + 0x90], eax
Function at 0x1400dc480
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
cmp qword [rdx], 0
jne 0x1400dc59f
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rdx + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x1400dc4b8
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x1400dc562
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x1400dc581
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 0x1400dc50d
mov eax, dword [rsp + 0x2c]
mov ecx, 2
test rax, rax
jne 0x1400dc53f
jmp 0x1400dc534
call sub.kernel32.dll_GetLastError
shl rax, 0x20
movabs rcx, 0x3e500000000
cmp rax, rcx
je 0x1400dc53a
movabs rcx, 0x6d00000000
cmp rax, rcx
jne 0x1400dc556
mov byte [rsi + 1], 0
jmp 0x1400dc54a
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x1400dc54c
mov r8d, 0x10
mov rcx, rbx
call fcn.14002a040
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x1400dc4c5
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.14002a040
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x1400dc4c5
ud2

Function at 0x1400df790
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 0x1400df7be
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.1400e4180
ud2

Function at 0x1400e0040
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400e00c5
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 0x1400e00fc
cmp dword [rsp + 0x2c], 0
je 0x1400e00ed
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400e0100
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1401ee0c8]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1401ee0c8], rsi
jne 0x1400e00a0
mov byte [0x1401ee0c0], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x1400e00f2
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400e00fc
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x1400e00f2
mov esi, eax
mov ecx, edi
call sub.kernel32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x1400e00f2
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 0x1400e22f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140183058]
test ecx, ecx
je 0x1400e23b6
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400e231d
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x1400e23b0
mov ecx, dword [0x140183058]
test ecx, ecx
je 0x1400e23d8
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400e23f5
mov rsi, rax
test rax, rax
jne 0x1400e23aa
movzx eax, byte [0x1401ee110]
mov rcx, qword [0x1401ee100]
test rcx, rcx
jne 0x1400e236f
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400e2410
mov rcx, rax
mov qword [0x1401ee100], rax
mov r8d, 0x10
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400e2410
mov rsi, rax
lea rax, [0x140183040]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x140183058]
test ecx, ecx
je 0x1400e2400
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x1400e23f7
lea rcx, [0x140183040]
call fcn.1400e0040
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1400e2310
jmp 0x1400e231d
lea rcx, [0x140183040]
call fcn.1400e0040
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400e233c
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140183040]
call fcn.1400e0040
mov ecx, eax
jmp 0x1400e23a2
ud2
Function at 0x1400e24b0
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 [0x140183078]
test ecx, ecx
je 0x1400e24e3
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400e24fc
mov rcx, rax
cmp qword [rax + 8], 0
je 0x1400e24fc
add rcx, 0x10
jmp 0x1400e2618
lea rcx, [0x140183060]
call fcn.1400e0040
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1400e24d0
mov ecx, dword [0x140183078]
test ecx, ecx
je 0x1400e25f9
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400e2616
mov rdi, rax
test rax, rax
jne 0x1400e2591
movzx eax, byte [0x1401ee110]
mov rcx, qword [0x1401ee100]
test rcx, rcx
jne 0x1400e254e
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400e2635
mov rcx, rax
mov qword [0x1401ee100], rax
mov r8d, 0x20
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400e2635
mov rdi, rax
lea rax, [0x140183060]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x140183078]
test ecx, ecx
je 0x1400e2622
dec ecx
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
test rsi, rsi
je 0x1400e25ae
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x1400e25e3
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 0x1400e25de
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400e25e3
call fcn.1400df790
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
jmp 0x1400e2618
lea rcx, [0x140183060]
call fcn.1400e0040
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400e251b
xor ecx, ecx
mov rax, rcx
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x140183060]
call fcn.1400e0040
mov ecx, eax
jmp 0x1400e2589
ud2
Function at 0x1400e36c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x140183098]
test ecx, ecx
je 0x1400e36f0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400e3709
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400e3709
add rdi, 0x10
jmp 0x1400e37ea
lea rcx, [0x140183080]
call fcn.1400e0040
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1400e36dd
mov ecx, dword [0x140183098]
test ecx, ecx
je 0x1400e37cb
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400e37e8
mov rsi, rax
test rax, rax
jne 0x1400e379a
movzx eax, byte [0x1401ee110]
mov rcx, qword [0x1401ee100]
test rcx, rcx
jne 0x1400e375b
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400e3804
mov rcx, rax
mov qword [0x1401ee100], rax
mov r8d, 0x18
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400e3804
mov rsi, rax
lea rax, [0x140183080]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140183098]
test ecx, ecx
je 0x1400e37f4
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 0x1400e37ea
test rcx, rcx
je 0x1400e37ea
lock dec qword [rcx]
jne 0x1400e37ea
call fcn.1400bb130
jmp 0x1400e37ea
lea rcx, [0x140183080]
call fcn.1400e0040
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400e3728
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140183080]
call fcn.1400e0040
mov ecx, eax
jmp 0x1400e3792
ud2
Function at 0x1400e3d00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x140183038]
test ecx, ecx
je 0x1400e3d30
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400e3d49
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400e3d49
add rdi, 0x10
jmp 0x1400e3e2a
lea rcx, [0x140183020]
call fcn.1400e0040
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1400e3d1d
mov ecx, dword [0x140183038]
test ecx, ecx
je 0x1400e3e0b
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400e3e28
mov rsi, rax
test rax, rax
jne 0x1400e3dda
movzx eax, byte [0x1401ee110]
mov rcx, qword [0x1401ee100]
test rcx, rcx
jne 0x1400e3d9b
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400e3e44
mov rcx, rax
mov qword [0x1401ee100], rax
mov r8d, 0x18
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400e3e44
mov rsi, rax
lea rax, [0x140183020]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140183038]
test ecx, ecx
je 0x1400e3e34
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 0x1400e3e2a
test rcx, rcx
je 0x1400e3e2a
lock dec qword [rcx]
jne 0x1400e3e2a
call fcn.1400d4c80
jmp 0x1400e3e2a
lea rcx, [0x140183020]
call fcn.1400e0040
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400e3d68
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140183020]
call fcn.1400e0040
mov ecx, eax
jmp 0x1400e3dd2
ud2
Function at 0x1400e4c20
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 [0x1401ee110]
mov rcx, qword [0x1401ee100]
test rcx, rcx
jne 0x1400e4c5d
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400e4d0d
mov rcx, rax
mov qword [0x1401ee100], rax
mov r8d, 0x10
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400e4d0d
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400e4d20]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1400e4d00
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x1400e4cdb
cmp qword [rbx + 0x10], 0x11
jb 0x1400e4cca
mov rdi, qword [rdi - 8]
mov rcx, qword [0x1401ee100]
xor edx, edx
mov r8, rdi
call fcn.140104a84
mov rcx, qword [0x1401ee100]
xor edx, edx
mov r8, rsi
call fcn.140104a84
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 0x1400e70e0
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 [0x140183110]
test ecx, ecx
je 0x1400e72b3
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400e7115
mov rsi, rax
cmp qword [rax + 8], 0
jne 0x1400e72e8
mov ecx, dword [0x140183110]
test ecx, ecx
je 0x1400e72ee
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400e730b
mov rsi, rax
test rax, rax
jne 0x1400e71aa
movzx eax, byte [0x1401ee110]
mov rcx, qword [0x1401ee100]
test rcx, rcx
jne 0x1400e7167
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400e732d
mov rcx, rax
mov qword [0x1401ee100], rax
mov r8d, 0x60
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400e732d
mov rsi, rax
lea rax, [0x1401830f8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140183110]
test ecx, ecx
je 0x1400e731a
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
lea rax, [rsi + 8]
test rdi, rdi
je 0x1400e71cf
lea rdx, [rdi + 8]
cmp qword [rdi], 0
mov qword [rdi], 0
lea rcx, [0x1401b7388]
cmovne rcx, rdx
jmp 0x1400e71d6
lea rcx, [0x1401b7388]
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 0x1400e72e8
mov rax, qword [rsp + 0x80]
cmp rax, 2
je 0x1400e72e8
lea rcx, [rsp + 0x88]
test rax, rax
je 0x1400e72d5
mov rax, qword [rsp + 0x88]
lock dec qword [rax]
jne 0x1400e72e8
call fcn.1400e5ff0
jmp 0x1400e72e8
lea rcx, [0x1401830f8]
call fcn.1400e0040
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1400e7107
jmp 0x1400e7115
mov rax, qword [rsp + 0x88]
lock dec qword [rax]
jne 0x1400e72e8
call fcn.1400e5f50
add rsi, 0x10
jmp 0x1400e730d
lea rcx, [0x1401830f8]
call fcn.1400e0040
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400e7134
xor esi, esi
mov rax, rsi
add rsp, 0xc8
pop rdi
pop rsi
ret
lea rcx, [0x1401830f8]
call fcn.1400e0040
mov ecx, eax
jmp 0x1400e71a2
ud2
Function at 0x1400e7340
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1401830f0]
test ecx, ecx
je 0x1400e736f
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400e7388
mov rsi, rax
cmp qword [rax + 8], 0
je 0x1400e7388
add rsi, 8
jmp 0x1400e74b7
lea rcx, [0x1401830d8]
call fcn.1400e0040
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1400e735c
mov ecx, dword [0x1401830f0]
test ecx, ecx
je 0x1400e7498
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400e74b5
mov rsi, rax
test rax, rax
jne 0x1400e741d
movzx eax, byte [0x1401ee110]
mov rcx, qword [0x1401ee100]
test rcx, rcx
jne 0x1400e73da
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400e74d3
mov rcx, rax
mov qword [0x1401ee100], rax
mov r8d, 0x10
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400e74d3
mov rsi, rax
lea rax, [0x1401830d8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1401830f0]
test ecx, ecx
je 0x1400e74c0
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
movzx eax, byte [0x1401ee110]
mov rcx, qword [0x1401ee100]
test rcx, rcx
jne 0x1400e7448
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400e74d3
mov rcx, rax
mov qword [0x1401ee100], rax
mov r8d, 0x30
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400e74d3
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 0x1400e74b7
lock dec qword [rcx]
jne 0x1400e74b7
call fcn.1400264b0
jmp 0x1400e74b7
lea rcx, [0x1401830d8]
call fcn.1400e0040
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400e73a7
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1401830d8]
call fcn.1400e0040
mov ecx, eax
jmp 0x1400e7415
ud2
Function at 0x1400ed4b0
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 0x1400ed673
mov rdi, r8
mov r8, qword [rcx + 0x18]
mov qword [rsp + 0x40], r8
cmp r8, 0xffffffffffffffff
je 0x1400ed673
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.1400ec3c0
movzx eax, byte [rsp + 0x29]
cmp al, 3
je 0x1400ed690
mov rbp, qword [rsp + 0x20]
cmp al, 2
je 0x1400ed6d7
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 0x1400ed6a2
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
je 0x1400ed6a7
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.140037680
cmp al, 0xd
jne 0x1400ed5c6
test r14, r14
je 0x1400ed5c6
mov rcx, qword [r14]
mov rdx, qword [r14 + 8]
lock inc qword [rdx]
jle 0x1400ed6ed
add rcx, 0x10
mov r8, qword [r14 + 0x10]
movzx r9d, byte [r14 + 0x18]
call fcn.140037590
test rax, rax
cmovne rsi, rax
mov rcx, rsi
call fcn.140037680
cmp al, 0xd
jne 0x1400ed6d4
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 0x1400ed60d
mov edx, ebp
and edx, eax
or rdx, rcx
lock cmpxchg qword [r12 + 0xd0], rdx
jne 0x1400ed5f0
mov eax, esi
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400ed520
test rax, rax
je 0x1400ed520
mov rbp, qword [rsi - 1]
mov r15, qword [rsi + 7]
mov rcx, rbp
call qword [r15]
cmp qword [r15 + 8], 0
je 0x1400ed65a
cmp qword [r15 + 0x10], 0x11
jb 0x1400ed649
mov rbp, qword [rbp - 8]
mov rcx, qword [0x1401ee100]
xor edx, edx
mov r8, rbp
call fcn.140104a84
dec rsi
mov rcx, qword [0x1401ee100]
xor edx, edx
mov r8, rsi
call fcn.140104a84
jmp 0x1400ed520
mov rdx, qword [rcx + 0x10]
lea rcx, [rsp + 0x20]
mov r8, rbx
xor r9d, r9d
call fcn.1400ec3c0
movzx eax, byte [rsp + 0x29]
cmp al, 3
jne 0x1400ed697
mov eax, 1
jmp 0x1400ed6d9
cmp al, 2
jne 0x1400ed6ed
mov rbp, qword [rsp + 0x20]
jmp 0x1400ed6d7
movsxd rdx, eax
jmp 0x1400ed6a9
xor edx, edx
mov r8, qword [rsp + 0x30]
lea rax, [rdx + r8]
mov rcx, qword [rdi + 0x18]
cmp rax, rcx
jbe 0x1400ed6c2
mov qword [rdi + 0x18], rax
mov rcx, rax
add rdx, r8
jb 0x1400ed6ed
cmp rax, rcx
ja 0x1400ed6ed
mov qword [rdi + 0x10], rax
xor ebp, ebp
jmp 0x1400ed6d7
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 0x1400ed700
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 0x1400ed890
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.1400ec3c0
movzx eax, byte [rsp + 0x39]
cmp al, 3
je 0x1400ed8ad
mov rsi, qword [rsp + 0x30]
cmp al, 2
je 0x1400ed8c4
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 0x1400ed8d6
call sub.ws2_32.dll_WSAGetLastError
mov ebp, eax
shl rbp, 0x20
or rbp, 2
mov rcx, rbp
call fcn.140037680
cmp al, 0xd
jne 0x1400ed7e9
test r13, r13
je 0x1400ed7e9
mov rcx, qword [r13]
mov rdx, qword [r13 + 8]
lock inc qword [rdx]
jle 0x1400ed90b
add rcx, 0x10
mov r8, qword [r13 + 0x10]
movzx r9d, byte [r13 + 0x18]
call fcn.140037590
test rax, rax
cmovne rbp, rax
mov rcx, rbp
call fcn.140037680
cmp al, 0xd
jne 0x1400ed8ea
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 0x1400ed82b
mov edx, esi
and edx, eax
or rdx, rcx
lock cmpxchg qword [r15 + 0xd0], rdx
jne 0x1400ed810
mov eax, ebp
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400ed750
test rax, rax
je 0x1400ed750
mov rsi, qword [rbp - 1]
mov rbx, qword [rbp + 7]
mov rcx, rsi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x1400ed877
cmp qword [rbx + 0x10], 0x11
jb 0x1400ed866
mov rsi, qword [rsi - 8]
mov rcx, qword [0x1401ee100]
xor edx, edx
mov r8, rsi
call fcn.140104a84
dec rbp
mov rcx, qword [0x1401ee100]
xor edx, edx
mov r8, rbp
call fcn.140104a84
jmp 0x1400ed750
mov rdx, qword [rdx + 0x10]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov r9b, 1
call fcn.1400ec3c0
movzx eax, byte [rsp + 0x39]
cmp al, 3
jne 0x1400ed8bb
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x1400ed8fa
cmp al, 2
jne 0x1400ed90b
mov rsi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rsi
jmp 0x1400ed8fa
cdqe
mov rcx, qword [rsp + 0x28]
mov qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x1400ed8fa
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