joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400824f0
Capabilities:
Generate random numbers via rtlgenrandom

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

Function at 0x140082b40
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x140148df8]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.14007eb20
test rax, rax
je 0x140082bfe
mov rsi, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140082c50]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x140082bf1
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x140082bcc
mov r8, qword [rbx + 0x10]
mov rcx, rdi
call fcn.14007ebb0
mov rcx, qword [0x140190150]
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 edi, 1
mov rax, rdi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.140004200
ud2

Function at 0x140082db0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
invalid
cmp qword [rcx], 0
je 0x140082e35
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
Function at 0x1400842a0
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1f0
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x140190158]
cmp rax, 3
jne 0x140084394
cmp rbx, 0x17f
ja 0x1400843a6
lea r15, [rsp + 0x70]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov byte [rsp + rbx + 0x70], 0
inc rbx
lea rcx, [rsp + 0x28]
mov rdx, r15
mov r8, rbx
call fcn.140006600
cmp qword [rsp + 0x28], 0
je 0x140084324
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400843b7
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x20]
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x14008437c
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
jmp 0x1400843b7
mov rax, qword [rsp + 0x20]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
jmp 0x1400843b7
call fcn.14007ccd0
cmp rbx, 0x17f
jbe 0x1400842da
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
call fcn.14007d110
mov rax, rsi
add rsp, 0x1f0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1400843d0
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x1400843f2
mov qword [rsi + 8], rbx
mov qword [rsi], 1
jmp 0x1400844c4
mov rax, qword [0x140190158]
cmp rax, 3
jne 0x1400844cf
lea rcx, [rsp + 0x20]
mov rdx, rbx
mov r8d, 1
call fcn.1400816f0
cmp qword [rsp + 0x20], 0
mov rdi, qword [rsp + 0x28]
je 0x140084433
mov qword [rsi + 8], rdi
mov qword [rsi], 1
jmp 0x1400844c4
cmp word [rbx], 0
je 0x140084454
movups xmm0, xmmword [rbx + 4]
mov eax, dword [rbx + 0x14]
mov edx, dword [rbx + 0x18]
movzx ecx, word [rbx + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x140084469
mov eax, dword [rbx + 2]
movzx ecx, word [rbx + 6]
mov r8d, 0x10
mov r9w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rsp + 0x20], r9w
mov word [rsp + 0x22], cx
mov dword [rsp + 0x24], eax
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x38], edx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x1400844a4
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x1400844c4
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call sub.WS2_32.dll_closesocket
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
call fcn.14007ccd0
jmp 0x140084403
Function at 0x140084920
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0xb0
mov rax, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x2c], pe_nt_image_headers64
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x2c]
mov rcx, rax
call sub.WS2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x1400849c4
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x30]
cmp ecx, 2
je 0x1400849d3
cmp ecx, 0x17
jne 0x1400849f3
cmp eax, 0x1b
jbe 0x140084a0c
movzx eax, word [rsp + 0x32]
rol ax, 8
movups xmm0, xmmword [rsp + 0x38]
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x48]
mov word [rsi], 1
movups xmmword [rsi + 4], xmm0
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
jmp 0x140084a03
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x1400849fa
cmp eax, 0xf
jbe 0x140084a26
movzx eax, word [rsp + 0x32]
rol ax, 8
mov ecx, dword [rsp + 0x34]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
jmp 0x140084a03
lea rax, str.invalid_argumentH
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xb0
pop rsi
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x14010ba30]
mov edx, 0x43
call fcn.140008b70
ud2
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x14010b9d0]
mov edx, 0x42
call fcn.140008b70
ud2
Function at 0x140088da0
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm6
mov rax, r8
mov rsi, rcx
mov dword [rsp + 0x60], 0
mov word [rsp + 0x64], 0
mov dword [rsp + 0x40], 0
xorps xmm6, xmm6
movups xmmword [rsp + 0x48], xmm6
mov qword [rsp + 0x58], 7
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call fcn.140080e10
mov rdi, rdx
test rax, rax
je 0x140088e17
mov rcx, rdi
call fcn.140060920
mov qword [rsi], 0
jmp 0x140088f89
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x70], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileInformationByHandle
test eax, eax
je 0x140088ec6
test byte [rsp + 0x41], 4
je 0x140088e6f
mov qword [rsp + 0x78], 0
lea r8, [rsp + 0x78]
mov rcx, rdi
mov edx, 9
mov r9d, 8
call sub.KERNEL32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x140088ec6
mov r12d, dword [rsp + 0x60]
mov r15d, dword [rsp + 0x64]
test rdi, rdi
je 0x140088ef2
mov qword [rsp + 0x40], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x140088f75
mov rbx, qword [rsp + 0x40]
jmp 0x140088ef4
call sub.KERNEL32.dll_GetLastError
mov qword [rsi], 0
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.KERNEL32.dll_CloseHandle
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
test rax, rax
je 0x140088f64
mov r14, rax
shl r12, 0x20
or r12, r15
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
test r15, r15
je 0x140088f64
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x140088f81
mov qword [rsi], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x140088f81
call sub.KERNEL32.dll_GetLastError
mov qword [rsi], 0
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14008b020
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 [0x1400df070]
test ecx, ecx
je 0x14008b106
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14008b054
cmp qword [rax + 8], 0
je 0x14008b054
add rax, 0x10
jmp 0x14008b0ff
mov ecx, dword [0x1400df070]
test ecx, ecx
je 0x14008b119
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14008b0fd
mov rdi, rax
test rax, rax
jne 0x14008b0c6
mov rax, qword [0x140148df8]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call fcn.14007eb20
test rax, rax
je 0x14008b13c
mov rdi, rax
lea rax, [0x1400df058]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1400df070]
test ecx, ecx
je 0x14008b12c
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
xor ecx, ecx
test rsi, rsi
je 0x14008b0e6
mov rax, qword [rsi]
mov qword [rsi], 0
cmp rax, 1
jne 0x14008b0e6
mov rdx, qword [rsi + 8]
mov ecx, dword [rsi + 0x10]
jmp 0x14008b0e8
xor edx, edx
mov qword [rdi + 8], 1
lea rax, [rdi + 0x10]
mov qword [rdi + 0x10], rdx
mov byte [rdi + 0x18], cl
jmp 0x14008b0ff
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400df058]
call fcn.140082db0
mov ecx, eax
jmp 0x14008b039
lea rcx, [0x1400df058]
call fcn.140082db0
mov ecx, eax
jmp 0x14008b064
lea rcx, [0x1400df058]
call fcn.140082db0
mov ecx, eax
jmp 0x14008b0be
mov ecx, 8
mov edx, 0x20
call fcn.140004200
ud2
Function at 0x14008b150
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
mov ecx, dword [0x1400df090]
test ecx, ecx
je 0x14008b28a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14008b182
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x14008b27c
mov ecx, dword [0x1400df090]
test ecx, ecx
je 0x14008b29d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14008b231
mov rdi, rax
test rax, rax
jne 0x14008b20c
mov qword [rsp + 0x28], 0
lea rax, [0x1400df078]
mov qword [rsp + 0x20], rax
mov rax, qword [0x140148df8]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call fcn.14007eb20
test rax, rax
je 0x14008b2c3
mov rdi, rax
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov ecx, dword [0x1400df090]
test ecx, ecx
je 0x14008b2b0
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
lea rax, [rdi + 8]
test rsi, rsi
je 0x14008b235
mov rcx, qword [rsi]
mov qword [rsi], 0
mov rdx, rcx
test rcx, rcx
je 0x14008b239
mov rcx, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
jmp 0x14008b239
xor edi, edi
jmp 0x14008b280
xor ecx, ecx
xor edx, edx
mov r8, qword [rax + 0x10]
mov qword [rsp + 0x30], r8
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x20], xmm0
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rcx
mov qword [rdi + 0x18], rdx
cmp qword [rsp + 0x20], 0
je 0x14008b27c
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14008b27c
lock dec qword [rax]
jne 0x14008b27c
lea rcx, [rsp + 0x30]
call fcn.1400654e0
add rdi, 0x10
mov rax, rdi
add rsp, 0x48
pop rdi
pop rsi
ret
lea rcx, [0x1400df078]
call fcn.140082db0
mov ecx, eax
jmp 0x14008b169
lea rcx, [0x1400df078]
call fcn.140082db0
mov ecx, eax
jmp 0x14008b192
lea rcx, [0x1400df078]
call fcn.140082db0
mov ecx, eax
jmp 0x14008b204
mov ecx, 8
mov edx, 0x20
call fcn.140004200
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400df0b0]
test ecx, ecx
je 0x14008b396
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14008b319
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x14008b385
mov ecx, dword [0x1400df0b0]
test ecx, ecx
je 0x14008b3a9
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14008b38b
mov rsi, rax
test rax, rax
jne 0x14008b37f
mov rax, qword [0x140148df8]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.14007eb20
test rax, rax
je 0x14008b3cc
mov rsi, rax
lea rax, [0x1400df098]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1400df0b0]
test ecx, ecx
je 0x14008b3bc
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x14008b38d
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400df098]
call fcn.140082db0
mov ecx, eax
jmp 0x14008b305
lea rcx, [0x1400df098]
call fcn.140082db0
mov ecx, eax
jmp 0x14008b329
lea rcx, [0x1400df098]
call fcn.140082db0
mov ecx, eax
jmp 0x14008b377
mov ecx, 8
mov edx, 0x10
call fcn.140004200
ud2
Function at 0x14008b3e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1400df0d0]
test ecx, ecx
je 0x14008b502
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14008b412
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x14008b4f4
mov ecx, dword [0x1400df0d0]
test ecx, ecx
je 0x14008b515
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14008b4b6
mov rdi, rax
test rax, rax
jne 0x14008b49c
mov qword [rsp + 0x28], 0
lea rax, [0x1400df0b8]
mov qword [rsp + 0x20], rax
mov rax, qword [0x140148df8]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call fcn.14007eb20
test rax, rax
je 0x14008b53b
mov rdi, rax
mov rax, qword [rsp + 0x30]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
mov ecx, dword [0x1400df0d0]
test ecx, ecx
je 0x14008b528
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
test rsi, rsi
je 0x14008b4ba
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x14008b4bc
mov rax, qword [rsi + 8]
jmp 0x14008b4bc
xor edi, edi
jmp 0x14008b4f8
xor eax, eax
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x14008b4f4
test rcx, rcx
je 0x14008b4f4
lock dec qword [rcx]
jne 0x14008b4f4
lea rcx, [rsp + 0x28]
call fcn.140065490
add rdi, 0x10
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x1400df0b8]
call fcn.140082db0
mov ecx, eax
jmp 0x14008b3f9
lea rcx, [0x1400df0b8]
call fcn.140082db0
mov ecx, eax
jmp 0x14008b422
lea rcx, [0x1400df0b8]
call fcn.140082db0
mov ecx, eax
jmp 0x14008b494
mov ecx, 8
mov edx, 0x18
call fcn.140004200
ud2
Function at 0x14008b570
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 [0x1400df0f0]
test ecx, ecx
je 0x14008b691
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14008b5a7
mov rcx, rax
cmp qword [rax + 8], 0
je 0x14008b5a7
add rcx, 0x10
jmp 0x14008b687
mov ecx, dword [0x1400df0f0]
test ecx, ecx
je 0x14008b6a4
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14008b66a
mov rdi, rax
test rax, rax
jne 0x14008b61d
mov rax, qword [0x140148df8]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call fcn.14007eb20
test rax, rax
je 0x14008b6ca
mov rdi, rax
lea rax, [0x1400df0d8]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1400df0f0]
test ecx, ecx
je 0x14008b6b7
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
test rsi, rsi
je 0x14008b63a
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x14008b673
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 0x14008b66e
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14008b673
xor ecx, ecx
jmp 0x14008b687
call fcn.1400824f0
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
mov rax, rcx
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x1400df0d8]
call fcn.140082db0
mov ecx, eax
jmp 0x14008b589
lea rcx, [0x1400df0d8]
call fcn.140082db0
mov ecx, eax
jmp 0x14008b5b7
lea rcx, [0x1400df0d8]
call fcn.140082db0
mov ecx, eax
jmp 0x14008b615
mov ecx, 8
mov edx, 0x20
call fcn.140004200
ud2
Function at 0x14009831c
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov esi, r8d
mov rdi, rdx
mov rax, qword [rcx + 0xd8]
mov rdx, qword [rcx + 0xe0]
mov rcx, rax
call qword [rdx + 0xb8]
test rax, rax
je 0x140098358
mov rcx, rax
mov rdx, rdi
mov r8d, esi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14007ac80
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x1400b5150
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenc xmm4, xmm1
aesenc xmm5, xmm1
aesenc xmm6, xmm1
aesenc xmm7, xmm1
movups xmm1, xmmword [rcx + rax]
add rax, 0x20
aesenc xmm2, xmm0
aesenc xmm3, xmm0
aesenc xmm4, xmm0
aesenc xmm5, xmm0
aesenc xmm6, xmm0
aesenc xmm7, xmm0
movups xmm0, xmmword [rcx + rax - 0x10]
jne fcn.1400b5150
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenc xmm4, xmm1
aesenc xmm5, xmm1
aesenc xmm6, xmm1
aesenc xmm7, xmm1
aesenclast xmm2, xmm0
aesenclast xmm3, xmm0
aesenclast xmm4, xmm0
aesenclast xmm5, xmm0
aesenclast xmm6, xmm0
aesenclast xmm7, xmm0
repz ret

Function at 0x1400b525a
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenc xmm4, xmm1
aesenc xmm5, xmm1
aesenc xmm6, xmm1
aesenc xmm7, xmm1
aesenc xmm8, xmm1
aesenc xmm9, xmm1
movups xmm1, xmmword [rcx + rax]
add rax, 0x20
aesenc xmm2, xmm0
aesenc xmm3, xmm0
aesenc xmm4, xmm0
aesenc xmm5, xmm0
aesenc xmm6, xmm0
aesenc xmm7, xmm0
aesenc xmm8, xmm0
aesenc xmm9, xmm0
movups xmm0, xmmword [rcx + rax - 0x10]
jne 0x1400b5230
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenc xmm4, xmm1
aesenc xmm5, xmm1
aesenc xmm6, xmm1
aesenc xmm7, xmm1
aesenc xmm8, xmm1
aesenc xmm9, xmm1
aesenclast xmm2, xmm0
aesenclast xmm3, xmm0
aesenclast xmm4, xmm0
aesenclast xmm5, xmm0
aesenclast xmm6, xmm0
aesenclast xmm7, xmm0
aesenclast xmm8, xmm0
aesenclast xmm9, xmm0
repz ret
Function at 0x1400c27c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
vmovdqu xmm4, xmmword [rcx - 0x80]
vmovdqu xmm2, xmmword [r11 + 0x20]
lea r13, [rbp - 1]
vmovups xmm15, xmmword [rcx - 0x70]
lea r12, [rcx - 0x60]
vpxor xmm9, xmm1, xmm4
add ebx, 0x6000000
jb 0x1400c28e0
vpaddb xmm10, xmm1, xmm2
vpaddb xmm11, xmm10, xmm2
vpxor xmm10, xmm10, xmm4
vpaddb xmm12, xmm11, xmm2
vpxor xmm11, xmm11, xmm4
vpaddb xmm13, xmm12, xmm2
vpxor xmm12, xmm12, xmm4
vpaddb xmm14, xmm13, xmm2
vpxor xmm13, xmm13, xmm4
vpaddb xmm1, xmm14, xmm2
vpxor xmm14, xmm14, xmm4
jmp 0x1400c2820
vaesenc xmm9, xmm9, xmm15
vaesenc xmm10, xmm10, xmm15
vaesenc xmm11, xmm11, xmm15
vaesenc xmm12, xmm12, xmm15
vaesenc xmm13, xmm13, xmm15
vaesenc xmm14, xmm14, xmm15
vmovups xmm15, xmmword [r12]
lea r12, [r12 + 0x10]
dec r13d
jne 0x1400c2820
vmovdqu xmm3, xmmword [r12]
vaesenc xmm9, xmm9, xmm15
vpxor xmm4, xmm3, xmmword [rdi]
vaesenc xmm10, xmm10, xmm15
vpxor xmm5, xmm3, xmmword [rdi + 0x10]
vaesenc xmm11, xmm11, xmm15
vpxor xmm6, xmm3, xmmword [rdi + 0x20]
vaesenc xmm12, xmm12, xmm15
vpxor xmm8, xmm3, xmmword [rdi + 0x30]
vaesenc xmm13, xmm13, xmm15
vpxor xmm2, xmm3, xmmword [rdi + 0x40]
vaesenc xmm14, xmm14, xmm15
vpxor xmm3, xmm3, xmmword [rdi + 0x50]
lea rdi, [rdi + 0x60]
vaesenclast xmm9, xmm9, xmm4
vaesenclast xmm10, xmm10, xmm5
vaesenclast xmm11, xmm11, xmm6
vaesenclast xmm12, xmm12, xmm8
vaesenclast xmm13, xmm13, xmm2
vaesenclast xmm14, xmm14, xmm3
vmovups xmmword [rsi], xmm9
vmovups xmmword [rsi + 0x10], xmm10
vmovups xmmword [rsi + 0x20], xmm11
vmovups xmmword [rsi + 0x30], xmm12
vmovups xmmword [rsi + 0x40], xmm13
vmovups xmmword [rsi + 0x50], xmm14
lea rsi, [rsi + 0x60]
repz ret
vpshufb xmm6, xmm1, xmm0
vmovdqu xmm5, xmmword [r11 + 0x30]
vpaddd xmm10, xmm6, xmmword [r11 + 0x40]
vpaddd xmm11, xmm6, xmm5
vpaddd xmm12, xmm10, xmm5
vpshufb xmm10, xmm10, xmm0
vpaddd xmm13, xmm11, xmm5
vpshufb xmm11, xmm11, xmm0
vpxor xmm10, xmm10, xmm4
vpaddd xmm14, xmm12, xmm5
vpshufb xmm12, xmm12, xmm0
vpxor xmm11, xmm11, xmm4
vpaddd xmm1, xmm13, xmm5
vpshufb xmm13, xmm13, xmm0
vpxor xmm12, xmm12, xmm4
vpshufb xmm14, xmm14, xmm0
vpxor xmm13, xmm13, xmm4
vpshufb xmm1, xmm1, xmm0
vpxor xmm14, xmm14, xmm4
jmp 0x1400c2820
Function at 0x1400c7140
Capabilities:
Encode data using xor

Disassembly:
xor r10, r10
xor r11, r11
xor r12, r12
cmp r8, 0xd
jne 0x1400c71ef
mov r10, qword [rcx]
mov r11, qword [rcx + 5]
shr r11, 0x18
mov r12d, 1
mov rax, qword [rbp + 0xa0]
mov r15, rax
mul r10
mov r13, rax
mov r14, rdx
mov rax, qword [rbp + 0xa0]
mul r11
imul r15, r12
add r14, rax
adc r15, rdx
mov rax, qword [rbp + 0xa8]
mov r9, rax
mul r10
add r14, rax
adc rdx, 0
mov r10, rdx
mov rax, qword [rbp + 0xa8]
mul r11
add r15, rax
adc rdx, 0
imul r9, r12
add r15, r10
adc r9, rdx
mov r10, r13
mov r11, r14
mov r12, r15
and r12, 3
mov r13, r15
and r13, 0xfffffffffffffffc
mov r14, r9
shrd r15, r9, 2
shr r9, 2
add r15, r13
adc r9, r14
add r10, r15
adc r11, r9
adc r12, 0
repz ret
cmp r8, 0x10
jb 0x1400c729a
add r10, qword [rcx]
adc r11, qword [rcx + 8]
adc r12, 1
mov rax, qword [rbp + 0xa0]
mov r15, rax
mul r10
mov r13, rax
mov r14, rdx
mov rax, qword [rbp + 0xa0]
mul r11
imul r15, r12
add r14, rax
adc r15, rdx
mov rax, qword [rbp + 0xa8]
mov r9, rax
mul r10
add r14, rax
adc rdx, 0
mov r10, rdx
mov rax, qword [rbp + 0xa8]
mul r11
add r15, rax
adc rdx, 0
imul r9, r12
add r15, r10
adc r9, rdx
mov r10, r13
mov r11, r14
mov r12, r15
and r12, 3
mov r13, r15
and r13, 0xfffffffffffffffc
mov r14, r9
shrd r15, r9, 2
shr r9, 2
add r15, r13
adc r9, r14
add r10, r15
adc r11, r9
adc r12, 0
lea rcx, [rcx + 0x10]
sub r8, 0x10
jmp 0x1400c71ef
cmp r8, 0
je 0x1400c7360
xor r13, r13
xor r14, r14
xor r15, r15
add rcx, r8
shld r14, r13, 8
shl r13, 8
movzx r15, byte [rcx - 1]
xor r13, r15
dec rcx
dec r8
jne 0x1400c72b0
add r10, r13
adc r11, r14
adc r12, 1
mov rax, qword [rbp + 0xa0]
mov r15, rax
mul r10
mov r13, rax
mov r14, rdx
mov rax, qword [rbp + 0xa0]
mul r11
imul r15, r12
add r14, rax
adc r15, rdx
mov rax, qword [rbp + 0xa8]
mov r9, rax
mul r10
add r14, rax
adc rdx, 0
mov r10, rdx
mov rax, qword [rbp + 0xa8]
mul r11
add r15, rax
adc rdx, 0
imul r9, r12
add r15, r10
adc r9, rdx
mov r10, r13
mov r11, r14
mov r12, r15
and r12, 3
mov r13, r15
and r13, 0xfffffffffffffffc
mov r14, r9
shrd r15, r9, 2
shr r9, 2
add r15, r13
adc r9, r14
add r10, r15
adc r11, r9
adc r12, 0
repz ret