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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov r14, r8
inc r14
sete bpl
je 0x1401c0c89
js 0x1401c0c89
mov edi, r9d
mov rbx, r8
mov r15, rdx
mov rsi, rcx
movzx eax, byte [0x1402d9160]
mov rcx, qword [0x1402d9150]
test rcx, rcx
jne 0x1401c0a8b
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1401c0c89
mov rcx, rax
mov qword [0x1402d9150], rax
xor edx, edx
mov r8, r14
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1401c0c89
mov r12, rax
mov rcx, rax
mov rdx, r15
mov r8, rbx
call sub.msvcrt.dll_memcpy
cmp rbx, 0x10
jae 0x1401c0ad8
test rbx, rbx
je 0x1401c0b93
xor eax, eax
cmp byte [r15 + rax], 0
je 0x1401c0c14
inc rax
cmp rbx, rax
jne 0x1401c0ac0
jmp 0x1401c0b93
lea rax, [r15 + 7]
and rax, 0xfffffffffffffff8
sub rax, r15
je 0x1401c0b1e
cmp rax, rbx
cmovae rax, rbx
test rax, rax
je 0x1401c0b1e
xor ecx, ecx
nop word cs:[rax + rax]
cmp byte [r15 + rcx], 0
je 0x1401c0c14
inc rcx
cmp rax, rcx
jne 0x1401c0b00
lea rcx, [rbx - 0x10]
cmp rax, rcx
jbe 0x1401c0b24
jmp 0x1401c0b6e
lea rcx, [rbx - 0x10]
xor eax, eax
movdqa xmm0, xmmword [0x1401fda20]
movabs rdx, 0x8080808080808080
nop word cs:[rax + rax]
movdqu xmm1, xmmword [r15 + rax]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r8, xmm2
test r8, rdx
jne 0x1401c0b6e
add rax, 0x10
cmp rax, rcx
jbe 0x1401c0b40
cmp rax, rbx
je 0x1401c0b93
nop word cs:[rax + rax]
cmp byte [r15 + rax], 0
je 0x1401c0c14
inc rax
cmp rbx, rax
jne 0x1401c0b80
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0x30]
call fcn.1400367a0
mov rbx, rax
mov r14, rdx
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
mov rcx, rax
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x1401c0c4a
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov byte [rbx], 0
test r14, r14
jne 0x1401c0c68
jmp 0x1401c0c79
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
test bpl, bpl
jne 0x1401c0c79
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, r12
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.kernel32.dll_HeapFree
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
mov byte [rbx], 0
test r14, r14
je 0x1401c0c79
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapFree
nop
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2
Function at 0x1401c1700
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1402a1a58]
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 0x1401c176a
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1401c1779
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1401c17b0
cmp eax, 0x103
je 0x1401c17ba
test eax, eax
js 0x1401c1796
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1401c17b0
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.1401b8c20
mov rcx, rax
call fcn.1401c1500
mov ecx, 7
int 0x29
ud2
Function at 0x1401c2340
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
cmp qword [rdx], 0
jne 0x1401c245f
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rdx + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x1401c2378
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x1401c2422
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x1401c2441
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 0x1401c23cd
mov eax, dword [rsp + 0x2c]
mov ecx, 2
test rax, rax
jne 0x1401c23ff
jmp 0x1401c23f4
call sub.kernel32.dll_GetLastError
shl rax, 0x20
movabs rcx, 0x3e500000000
cmp rax, rcx
je 0x1401c23fa
movabs rcx, 0x6d00000000
cmp rax, rcx
jne 0x1401c2416
mov byte [rsi + 1], 0
jmp 0x1401c240a
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 0x1401c240c
mov r8d, 0x10
mov rcx, rbx
call fcn.140089e50
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x1401c2385
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140089e50
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x1401c2385
ud2

Function at 0x1401c5ef0
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 0x1401c5f1e
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.1401ca810
ud2

Function at 0x1401c6a80
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x1401c6b05
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 0x1401c6b3c
cmp dword [rsp + 0x2c], 0
je 0x1401c6b2d
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1401c6b40
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1402d9118]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1402d9118], rsi
jne 0x1401c6ae0
mov byte [0x1402d9110], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x1401c6b32
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1401c6b3c
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x1401c6b32
mov esi, eax
mov ecx, edi
call sub.kernel32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x1401c6b32
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 0x1401c8a30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1401f50d0]
test ecx, ecx
je 0x1401c8af6
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1401c8a5d
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x1401c8af0
mov ecx, dword [0x1401f50d0]
test ecx, ecx
je 0x1401c8b18
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1401c8b35
mov rsi, rax
test rax, rax
jne 0x1401c8aea
movzx eax, byte [0x1402d9160]
mov rcx, qword [0x1402d9150]
test rcx, rcx
jne 0x1401c8aaf
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1401c8b50
mov rcx, rax
mov qword [0x1402d9150], rax
mov r8d, 0x10
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1401c8b50
mov rsi, rax
lea rax, [0x1401f50b8]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1401f50d0]
test ecx, ecx
je 0x1401c8b40
dec ecx
mov rdx, rsi
call fcn.1401f2dc4
mov word [rsi + 8], 1
add rsi, 9
jmp 0x1401c8b37
lea rcx, [0x1401f50b8]
call fcn.1401c6a80
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1401c8a50
jmp 0x1401c8a5d
lea rcx, [0x1401f50b8]
call fcn.1401c6a80
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1401c8a7c
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1401f50b8]
call fcn.1401c6a80
mov ecx, eax
jmp 0x1401c8ae2
ud2
Function at 0x1401c8bf0
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 [0x1401f50f0]
test ecx, ecx
je 0x1401c8c23
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1401c8c3c
mov rcx, rax
cmp qword [rax + 8], 0
je 0x1401c8c3c
add rcx, 0x10
jmp 0x1401c8d58
lea rcx, [0x1401f50d8]
call fcn.1401c6a80
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1401c8c10
mov ecx, dword [0x1401f50f0]
test ecx, ecx
je 0x1401c8d39
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1401c8d56
mov rdi, rax
test rax, rax
jne 0x1401c8cd1
movzx eax, byte [0x1402d9160]
mov rcx, qword [0x1402d9150]
test rcx, rcx
jne 0x1401c8c8e
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1401c8d75
mov rcx, rax
mov qword [0x1402d9150], rax
mov r8d, 0x20
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1401c8d75
mov rdi, rax
lea rax, [0x1401f50d8]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1401f50f0]
test ecx, ecx
je 0x1401c8d62
dec ecx
mov rdx, rdi
call fcn.1401f2dc4
test rsi, rsi
je 0x1401c8cee
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x1401c8d23
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 0x1401c8d1e
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1401c8d23
call fcn.1401c5ef0
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
jmp 0x1401c8d58
lea rcx, [0x1401f50d8]
call fcn.1401c6a80
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1401c8c5b
xor ecx, ecx
mov rax, rcx
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x1401f50d8]
call fcn.1401c6a80
mov ecx, eax
jmp 0x1401c8cc9
ud2
Function at 0x1401c9e00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1401f5118]
test ecx, ecx
je 0x1401c9e30
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1401c9e49
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1401c9e49
add rdi, 0x10
jmp 0x1401c9f2a
lea rcx, [0x1401f5100]
call fcn.1401c6a80
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1401c9e1d
mov ecx, dword [0x1401f5118]
test ecx, ecx
je 0x1401c9f0b
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1401c9f28
mov rsi, rax
test rax, rax
jne 0x1401c9eda
movzx eax, byte [0x1402d9160]
mov rcx, qword [0x1402d9150]
test rcx, rcx
jne 0x1401c9e9b
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1401c9f44
mov rcx, rax
mov qword [0x1402d9150], rax
mov r8d, 0x18
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1401c9f44
mov rsi, rax
lea rax, [0x1401f5100]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1401f5118]
test ecx, ecx
je 0x1401c9f34
dec ecx
mov rdx, rsi
call fcn.1401f2dc4
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 0x1401c9f2a
test rcx, rcx
je 0x1401c9f2a
lock dec qword [rcx]
jne 0x1401c9f2a
call fcn.1401db090
jmp 0x1401c9f2a
lea rcx, [0x1401f5100]
call fcn.1401c6a80
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1401c9e68
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1401f5100]
call fcn.1401c6a80
mov ecx, eax
jmp 0x1401c9ed2
ud2

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1401f50b0]
test ecx, ecx
je 0x1401ca3c0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1401ca3d9
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1401ca3d9
add rdi, 0x10
jmp 0x1401ca4ba
lea rcx, [0x1401f5098]
call fcn.1401c6a80
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1401ca3ad
mov ecx, dword [0x1401f50b0]
test ecx, ecx
je 0x1401ca49b
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1401ca4b8
mov rsi, rax
test rax, rax
jne 0x1401ca46a
movzx eax, byte [0x1402d9160]
mov rcx, qword [0x1402d9150]
test rcx, rcx
jne 0x1401ca42b
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1401ca4d4
mov rcx, rax
mov qword [0x1402d9150], rax
mov r8d, 0x18
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1401ca4d4
mov rsi, rax
lea rax, [0x1401f5098]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1401f50b0]
test ecx, ecx
je 0x1401ca4c4
dec ecx
mov rdx, rsi
call fcn.1401f2dc4
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 0x1401ca4ba
test rcx, rcx
je 0x1401ca4ba
lock dec qword [rcx]
jne 0x1401ca4ba
call fcn.1401bf890
jmp 0x1401ca4ba
lea rcx, [0x1401f5098]
call fcn.1401c6a80
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1401ca3f8
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1401f5098]
call fcn.1401c6a80
mov ecx, eax
jmp 0x1401ca462
ud2
Function at 0x1401cb2b0
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 [0x1402d9160]
mov rcx, qword [0x1402d9150]
test rcx, rcx
jne 0x1401cb2ed
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1401cb39d
mov rcx, rax
mov qword [0x1402d9150], rax
mov r8d, 0x10
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1401cb39d
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1401cb3b0]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1401cb390
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x1401cb36b
cmp qword [rbx + 0x10], 0x11
jb 0x1401cb35a
mov rdi, qword [rdi - 8]
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov rcx, qword [0x1402d9150]
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 0x1401ccd90
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
movaps xmmword [rsp + 0x90], xmm6
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x24]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x1401ccef0
mov rdi, rax
mov qword [rsp + 0x40], rsi
movsxd rbp, dword [rsp + 0x24]
mov qword [rsp + 0x28], 8
xorps xmm6, xmm6
movups xmmword [rsp + 0x30], xmm6
test rbp, rbp
je 0x1401ccec6
shl rbp, 3
mov esi, 8
xor r15d, r15d
lea rbx, [rsp + 0x48]
lea r14, [rsp + 0x78]
xor r12d, r12d
jmp 0x1401cce41
lea rax, [r12 + r12*2]
mov rcx, qword [rsp + 0x70]
mov qword [rsi + rax*8 + 0x10], rcx
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi + rax*8], xmm0
mov r12, qword [rsp + 0x38]
inc r12
mov qword [rsp + 0x38], r12
add r15, 8
cmp rbp, r15
je 0x1401ccec6
mov r13, qword [rdi + r15]
mov rcx, r13
call sub.msvcrt.dll_wcslen
lea rax, [rax*2]
add rax, r13
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x80], rax
mov word [rsp + 0x88], 0
mov qword [rsp + 0x48], 1
lea rax, [rsp + 0x50]
movups xmmword [rax], xmm6
mov rcx, rbx
mov rdx, r14
call fcn.1401d4590
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x60], xmm0
cmp r12, qword [rsp + 0x30]
jne 0x1401cce10
lea rcx, [rsp + 0x28]
mov rdx, r12
call fcn.14008a000
mov rsi, qword [rsp + 0x28]
mov r12, qword [rsp + 0x38]
jmp 0x1401cce10
mov rcx, rdi
call sub.kernel32.dll_LocalFree
test rax, rax
jne 0x1401cced8
call sub.kernel32.dll_GetLastError
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
jmp 0x1401ccefe
mov qword [rsi], 8
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401cf9b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x1401f5178]
test ecx, ecx
je 0x1401cf9e0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1401cf9f9
cmp qword [rax + 8], 0
je 0x1401cf9f9
add rax, 0x10
jmp 0x1401cfad7
lea rcx, [0x1401f5160]
call fcn.1401c6a80
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1401cf9d0
mov ecx, dword [0x1401f5178]
test ecx, ecx
je 0x1401cfab8
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1401cfad5
mov rdi, rax
test rax, rax
jne 0x1401cfa8a
movzx eax, byte [0x1402d9160]
mov rcx, qword [0x1402d9150]
test rcx, rcx
jne 0x1401cfa4b
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1401cfaee
mov rcx, rax
mov qword [0x1402d9150], rax
mov r8d, 0x18
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1401cfaee
mov rdi, rax
lea rax, [0x1401f5160]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1401f5178]
test ecx, ecx
je 0x1401cfade
dec ecx
mov rdx, rdi
call fcn.1401f2dc4
test rsi, rsi
je 0x1401cfaa4
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x1401cfaa6
mov rcx, qword [rsi + 8]
jmp 0x1401cfaa6
xor ecx, ecx
lea rax, [rdi + 0x10]
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rcx
jmp 0x1401cfad7
lea rcx, [0x1401f5160]
call fcn.1401c6a80
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1401cfa18
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1401f5160]
call fcn.1401c6a80
mov ecx, eax
jmp 0x1401cfa82
ud2
Function at 0x1401d59a0
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 0x1401d5b63
mov rdi, r8
mov r8, qword [rcx + 0x18]
mov qword [rsp + 0x40], r8
cmp r8, 0xffffffffffffffff
je 0x1401d5b63
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.1401da680
movzx eax, byte [rsp + 0x29]
cmp al, 3
je 0x1401d5b80
mov rbp, qword [rsp + 0x20]
cmp al, 2
je 0x1401d5bc7
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 0x1401d5b92
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
je 0x1401d5b97
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.1400837b0
cmp al, 0xd
jne 0x1401d5ab6
test r14, r14
je 0x1401d5ab6
mov rcx, qword [r14]
mov rdx, qword [r14 + 8]
lock inc qword [rdx]
jle 0x1401d5bdd
add rcx, 0x10
mov r8, qword [r14 + 0x10]
movzx r9d, byte [r14 + 0x18]
call fcn.1400836c0
test rax, rax
cmovne rsi, rax
mov rcx, rsi
call fcn.1400837b0
cmp al, 0xd
jne 0x1401d5bc4
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 0x1401d5afd
mov edx, ebp
and edx, eax
or rdx, rcx
lock cmpxchg qword [r12 + 0xd0], rdx
jne 0x1401d5ae0
mov eax, esi
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1401d5a10
test rax, rax
je 0x1401d5a10
mov rbp, qword [rsi - 1]
mov r15, qword [rsi + 7]
mov rcx, rbp
call qword [r15]
cmp qword [r15 + 8], 0
je 0x1401d5b4a
cmp qword [r15 + 0x10], 0x11
jb 0x1401d5b39
mov rbp, qword [rbp - 8]
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, rbp
call sub.kernel32.dll_HeapFree
dec rsi
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, rsi
call sub.kernel32.dll_HeapFree
jmp 0x1401d5a10
mov rdx, qword [rcx + 0x10]
lea rcx, [rsp + 0x20]
mov r8, rbx
xor r9d, r9d
call fcn.1401da680
movzx eax, byte [rsp + 0x29]
cmp al, 3
jne 0x1401d5b87
mov eax, 1
jmp 0x1401d5bc9
cmp al, 2
jne 0x1401d5bdd
mov rbp, qword [rsp + 0x20]
jmp 0x1401d5bc7
movsxd rdx, eax
jmp 0x1401d5b99
xor edx, edx
mov r8, qword [rsp + 0x30]
lea rax, [rdx + r8]
mov rcx, qword [rdi + 0x18]
cmp rax, rcx
jbe 0x1401d5bb2
mov qword [rdi + 0x18], rax
mov rcx, rax
add rdx, r8
jb 0x1401d5bdd
cmp rax, rcx
ja 0x1401d5bdd
mov qword [rdi + 0x10], rax
xor ebp, ebp
jmp 0x1401d5bc7
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 0x1401d5bf0
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 0x1401d5d80
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.1401da680
movzx eax, byte [rsp + 0x39]
cmp al, 3
je 0x1401d5d9d
mov rsi, qword [rsp + 0x30]
cmp al, 2
je 0x1401d5db4
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 0x1401d5dc6
call sub.ws2_32.dll_WSAGetLastError
mov ebp, eax
shl rbp, 0x20
or rbp, 2
mov rcx, rbp
call fcn.1400837b0
cmp al, 0xd
jne 0x1401d5cd9
test r13, r13
je 0x1401d5cd9
mov rcx, qword [r13]
mov rdx, qword [r13 + 8]
lock inc qword [rdx]
jle 0x1401d5dfb
add rcx, 0x10
mov r8, qword [r13 + 0x10]
movzx r9d, byte [r13 + 0x18]
call fcn.1400836c0
test rax, rax
cmovne rbp, rax
mov rcx, rbp
call fcn.1400837b0
cmp al, 0xd
jne 0x1401d5dda
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 0x1401d5d1b
mov edx, esi
and edx, eax
or rdx, rcx
lock cmpxchg qword [r15 + 0xd0], rdx
jne 0x1401d5d00
mov eax, ebp
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1401d5c40
test rax, rax
je 0x1401d5c40
mov rsi, qword [rbp - 1]
mov rbx, qword [rbp + 7]
mov rcx, rsi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x1401d5d67
cmp qword [rbx + 0x10], 0x11
jb 0x1401d5d56
mov rsi, qword [rsi - 8]
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, rsi
call sub.kernel32.dll_HeapFree
dec rbp
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, rbp
call sub.kernel32.dll_HeapFree
jmp 0x1401d5c40
mov rdx, qword [rdx + 0x10]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov r9b, 1
call fcn.1401da680
movzx eax, byte [rsp + 0x39]
cmp al, 3
jne 0x1401d5dab
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x1401d5dea
cmp al, 2
jne 0x1401d5dfb
mov rsi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rsi
jmp 0x1401d5dea
cdqe
mov rcx, qword [rsp + 0x28]
mov qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x1401d5dea
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