joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140aaeb20
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
movsxd rcx, dword [rcx + 8]
xor r9d, r9d
nop
call qword [sym.imp.WS2_32.dll_recv]
cdqe
add rsp, 0x28
ret

Function at 0x140aaeb40
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
movsxd rcx, dword [rcx + 8]
xor r9d, r9d
nop
call qword [sym.imp.WS2_32.dll_send]
cdqe
add rsp, 0x28
ret
Function at 0x140ab35b0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x3f]
sub rsp, 0xe0
mov rax, qword [0x14100f500]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rbx, r8
mov rdi, rdx
mov qword [rbp - 0x59], rdx
mov rsi, qword [rbp + 0x7f]
xor r14d, r14d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x35], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x25], xmm1
mov dword [rbp - 0x15], r14d
mov qword [rbp - 0x41], 0x408
mov dword [rbp - 0x39], 1
lea r10, [rbp + 0x2c]
test r9d, r9d
jns 0x140ab3660
neg r9d
nop dword [rax + rax]
dec r10
mov eax, 0xcccccccd
mul r9d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r9b, cl
add r9b, 0x30
mov byte [r10], r9b
mov r9d, edx
test edx, edx
jne 0x140ab3620
dec r10
mov byte [r10], 0x2d
jmp 0x140ab368a
dec r10
mov eax, 0xcccccccd
mul r9d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r9b, cl
add r9b, 0x30
mov byte [r10], r9b
mov r9d, edx
test edx, edx
jne 0x140ab3660
lea r9, [rbp - 0x61]
lea r8, [rbp + 0x2c]
mov rdx, r10
lea rcx, [rbp - 9]
call fcn.14017f974
nop
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 0xf
cmova rdx, qword [rbp - 9]
cmp qword [rbx + 0x18], 0xf
jbe 0x140ab36b7
mov rbx, qword [rbx]
lea r9, [rbp - 0x51]
lea r8, [rbp - 0x41]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140ab3720
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x400
lea rbx, [0x1410a3880]
mov qword [rsp + 0x20], rbx
mov r9d, 0x400
mov r8d, eax
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x140ab3702
mov rdx, rbx
mov rcx, rsi
call fcn.140155e54
mov rbx, r14
mov qword [rbp - 0x51], rbx
jmp 0x140ab3724
mov rbx, qword [rbp - 0x51]
mov qword [rdi], r14
mov qword [rdi + 8], r14
mov rax, qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov qword [rbp - 0x59], rax
mov qword [rbp + 0x17], rbx
lea rax, [rbp - 0x59]
mov qword [rbp + 0x1f], rax
mov byte [rbp + 0x27], 1
mov ecx, 0x20
call fcn.140cd8ad8
mov rcx, rax
mov qword [rbp - 0x11], rax
test rax, rax
je 0x140ab3788
mov rax, qword [rbp - 0x59]
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov dword [rcx + 8], 1
mov dword [rcx + 0xc], 1
lea rdx, vtable.std::_Ref_count_resource_struct_addrinfo____ptr64__void____cdecl___struct_addrinfo____ptr64__.0
mov qword [rcx], rdx
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rbx
jmp 0x140ab378b
mov rcx, r14
mov qword [rdi], rbx
mov qword [rdi + 8], rcx
mov rdx, qword [rbp + 0xf]
cmp rdx, 0xf
jbe 0x140ab37c9
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140ab37c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140ab37f0
call fcn.140cd8948
mov rax, rdi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140cd9320
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140cf5acc
int3
Function at 0x140ab8e80
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
cmp qword [rcx + 0x40], 0
mov rdi, rcx
je 0x140ab8eaf
mov al, 1
mov rdi, qword [rsp + 0x158]
add rsp, 0x130
pop rbp
ret
mov qword [rsp + 0x150], rsi
call fcn.140ab8d90
mov rsi, rax
test rax, rax
je 0x140ab9014
mov qword [rsp + 0x148], rbx
mov ebx, dword [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movups xmm0, xmmword [rdi + 0x28]
mov dword [rbp - 0x6c], eax
lea r9, [rsp + 0x40]
lea rax, [rdi + 0x5c]
mov dword [rbp - 0x68], ebx
xor ebx, ebx
mov qword [rbp - 0x60], rax
lea rax, [rdi + 0x60]
mov qword [rsp + 0x30], rbx
mov qword [rbp - 0x58], rax
lea rdx, [rbp - 0x70]
lea rax, [rdi + 0x68]
mov dword [rbp - 0x70], 1
mov qword [rbp - 0x50], rax
xorps xmm1, xmm1
lea rax, [rbp + 0x40]
mov qword [rbp - 0x38], rbx
movups xmmword [rbp - 0x48], xmm0
mov qword [rsp + 0x28], rax
mov r8d, 0x50
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x50
mov rcx, rsi
movdqa xmmword [rbp - 0x30], xmm0
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], ebx
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rbx
movups xmmword [rsp + 0x68], xmm1
mov qword [rsp + 0x78], rbx
movdqa xmmword [rbp - 0x80], xmm0
mov dword [rbp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x140ab9000
cmp dword [rsp + 0x40], 2
jne 0x140ab9000
cmp dword [rsp + 0x44], ebx
je 0x140ab9000
cmp qword [rsp + 0x78], rbx
je 0x140ab9000
cmp qword [rbp - 0x80], rbx
je 0x140ab9000
cmp qword [rbp - 0x78], rbx
je 0x140ab9000
xorps xmm0, xmm0
mov qword [rbp - 0x1c], rbx
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x10], xmm0
lea r9, [rbp + 0x40]
movdqa xmmword [rbp + 0x20], xmm0
mov r8d, 0x50
mov qword [rbp], rbx
lea rdx, [rbp - 0x20]
mov qword [rbp + 0x18], rbx
mov rcx, rsi
mov dword [rbp - 0x20], 3
movups xmmword [rbp + 8], xmm1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140ab9000
mov rax, qword [rsp + 0x78]
mov bl, 1
mov qword [rdi + 0x40], rax
mov rax, qword [rbp - 0x80]
mov qword [rdi + 0x48], rax
mov rax, qword [rbp - 0x78]
mov qword [rdi + 0x50], rax
mov eax, dword [rsp + 0x44]
mov dword [rdi + 0x58], eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rbx, qword [rsp + 0x148]
mov rsi, qword [rsp + 0x150]
mov rdi, qword [rsp + 0x158]
add rsp, 0x130
pop rbp
ret
Function at 0x140acb460
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, reloc.WS2_32.dll_WSASetLastError
call fcn.140cd95f0
sub rsp, rax
mov rax, qword [0x14100f500]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, r9
mov rbx, rcx
cmp edx, 0x1d
je 0x140acb497
mov eax, 0xfffffffe
jmp 0x140acb5b9
test rbx, rbx
je 0x140acb5b7
cmp r8d, 0x30
jne 0x140acb5b7
mov r8d, getprotobyname
mov rdx, rdi
call fcn.140acb320
test eax, eax
jle 0x140acb5b7
movdqa xmm0, xmmword [str.6666666666666666O]
lea rdx, [rsp + 0x20]
mov r8d, 0x28
movq qword [rsp + 0x40], xmm0
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
call fcn.140acb320
test eax, eax
je 0x140acb5b7
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140acb120
test eax, eax
je 0x140acb5b7
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx + 0x14], xmm0
mov r8d, getprotobyname
mov rdx, rdi
movups xmmword [rbx + 0x24], xmm0
mov rcx, rbx
movups xmmword [rbx + 0x34], xmm0
movups xmmword [rbx + 0x44], xmm0
mov qword [rbx + 0x54], rax
mov dword [rbx + 0x5c], eax
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
mov dword [rbx + 0x10], 0xc3d2e1f0
call fcn.140acb320
test eax, eax
jle 0x140acb5b7
movdqa xmm0, xmmword [0x140dcdb90]
lea rdx, [rsp + 0x20]
mov r8d, 0x28
movq qword [rsp + 0x40], xmm0
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
call fcn.140acb320
test eax, eax
je 0x140acb5b7
mov r8d, reloc.WS2_32.dll_sendto
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140acb320
test eax, eax
je 0x140acb5b7
mov edx, reloc.WS2_32.dll_sendto
lea rcx, [rsp + 0x48]
call fcn.140001240
mov eax, 1
jmp 0x140acb5b9
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140cd9320
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret

Function at 0x140acbc20
Capabilities:
Hash data using sha256

Disassembly:
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm0
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x50], xmm0
mov qword [rcx + 0x60], rax
mov dword [rcx + 0x68], eax
mov eax, 1
mov dword [rcx], 0x6a09e667
mov dword [rcx + 4], 0xbb67ae85
mov dword [rcx + 8], 0x3c6ef372
mov dword [rcx + 0xc], 0xa54ff53a
mov dword [rcx + 0x10], 0x510e527f
mov dword [rcx + 0x14], 0x9b05688c
mov dword [rcx + 0x18], 0x1f83d9ab
mov dword [rcx + 0x1c], 0x5be0cd19
mov dword [rcx + 0x6c], 0x18
ret
Function at 0x140acce30
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x28
call fcn.140cd95f0
sub rsp, rax
cmp dword [0x1410a3d80], 0
jne 0x140accfb1
mov qword [rsp + 0x30], rbx
lea rcx, [0x140dcdba0]
mov qword [rsp + 0x40], rsi
lea rbx, [0x1410a3d20]
mov qword [rsp + 0x38], rbp
mov rdx, rbx
mov qword [rsp + 0x48], rdi
mov r8d, getprotobyname
mov qword [rsp + 0x20], r14
mov dword [0x1410a3d80], 1
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x2e
ja 0x140accf73
movzx edi, word [rbx]
xor ebp, ebp
cmp di, 0x7e
mov ecx, ebp
mov r14d, 2
cmove ecx, r14d
add rcx, rbx
call fcn.140accfc0
mov rsi, rax
cmp di, 0x7e
jne 0x140acceef
lea rcx, [0x141333800]
mov rdi, rax
call fcn.140001030
not rsi
movabs rcx, 0xedfff7fdffffffff
and rax, rsi
and edi, 0x1000000
mov rsi, rax
and rsi, rcx
test rdi, rdi
cmove rsi, rax
jmp 0x140accf04
cmp word [rbx], 0x3a
jne 0x140accf04
lea rcx, [0x141333800]
call fcn.140001030
mov rsi, rax
movzx eax, word [rbx]
test ax, ax
je 0x140accf21
nop dword [rax]
cmp ax, 0x3a
je 0x140accf2a
add rbx, r14
movzx eax, word [rbx]
test ax, ax
jne 0x140accf10
mov qword [0x141333808], rbp
jmp 0x140accf82
test rbx, rbx
je 0x140accf21
add rbx, r14
movzx edi, word [rbx]
cmp di, 0x7e
cmove rbp, r14
lea rcx, [rbx + rbp]
call fcn.140accfc0
mov rcx, rax
shr rcx, 0x20
cmp di, 0x7e
jne 0x140accf65
not eax
not ecx
and dword [0x141333808], eax
and dword [0x14133380c], ecx
jmp 0x140accf82
mov dword [0x141333808], eax
mov dword [0x14133380c], ecx
jmp 0x140accf82
lea rcx, [0x141333800]
call fcn.140001030
mov rsi, rax
mov r14, qword [rsp + 0x20]
mov eax, esi
mov rdi, qword [rsp + 0x48]
bts eax, 0xa
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
shr rsi, 0x20
mov dword [0x141333804], esi
mov rsi, qword [rsp + 0x40]
mov dword [0x141333800], eax
add rsp, 0x28
ret

Function at 0x140ace1d0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.140cd95f0
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x140ace3c0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
push rdi
push r13
mov eax, gethostbyaddr
call fcn.140cd95f0
sub rsp, rax
mov eax, dword [0x1410a3d88]
mov r13d, ecx
mov ebx, 1
cmp eax, 2
je 0x140ace433
nop word [rax + rax]
xor eax, eax
lock cmpxchg dword [0x1410a3d88], ebx
je 0x140ace40d
cmp eax, ebx
je 0x140ace3f0
mov eax, dword [0x1410a3d88]
cmp eax, 2
jne 0x140ace452
jmp 0x140ace433
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
lea r8, [0x140ace2e0]
xor edx, edx
xor ecx, ecx
mov dword [0x1410a3d84], eax
call fcn.140af6da0
mov dword [0x1410a3d88], 2
mov r8d, reloc.WS2_32.dll___WSAFDIsSet
lea rdx, str.crypto_threads_win.c
mov ecx, 0x58
call fcn.140abc070
mov rdi, rax
test rax, rax
jne 0x140ace45d
xor eax, eax
add rsp, 0x30
pop r13
pop rdi
pop rbx
ret
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
call fcn.140b00460
mov qword [rdi + 0x30], rax
call fcn.140b00080
mov qword [rdi + 0x40], rax
call fcn.140b00080
mov qword [rdi + 0x50], rax
call fcn.140b00460
mov qword [rdi + 0x38], rax
call fcn.140b00460
mov qword [rdi + 0x48], rax
call fcn.140b00460
cmp r13d, ebx
mov qword [rdi + 0x30], rax
mov r8d, 0x85
lea rdx, str.crypto_threads_win.c
cmovge ebx, r13d
inc ebx
movsxd rbx, ebx
lea rcx, [rbx*8]
call fcn.140abc070
mov qword [rdi + 0x18], rbx
mov qword [rdi + 0x10], rax
test rax, rax
je 0x140ace502
cmp qword [rdi + 0x40], 0
je 0x140ace502
cmp qword [rdi + 0x50], 0
je 0x140ace502
cmp qword [rdi + 0x30], 0
je 0x140ace502
cmp qword [rdi + 0x38], 0
je 0x140ace502
cmp qword [rdi + 0x48], 0
jne 0x140ace55b
mov r8d, 0xa9
lea rdx, str.crypto_threads_win.c
mov rcx, rax
call fcn.140abbde0
lea rcx, [rdi + 0x40]
call fcn.140afffe0
lea rcx, [rdi + 0x50]
call fcn.140afffe0
lea rcx, [rdi + 0x38]
call fcn.140b003f0
lea rcx, [rdi + 0x48]
call fcn.140b003f0
lea rcx, [rdi + 0x30]
call fcn.140b003f0
mov r8d, 0xaf
lea rdx, str.crypto_threads_win.c
mov rcx, rdi
call fcn.140abbde0
xor edi, edi
mov r15, qword [rsp + 0x20]
mov rax, rdi
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop r13
pop rdi
pop rbx
ret
Function at 0x140ace580
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
mov eax, 0x20
call fcn.140cd95f0
sub rsp, rax
mov rbx, rcx
mov esi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1410a3d84]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov r14, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x140ace611
mov r8d, 0xde
lea rdx, str.crypto_threads_win.c
mov ecx, 0xf0
call fcn.140abc070
mov r14, rax
test rax, rax
jne 0x140ace602
mov r8d, 0xdf
lea rdx, str.crypto_threads_win.c
lea rcx, str.assertion_failed:_data___NULL
call fcn.140abc0b0
mov ecx, dword [0x1410a3d84]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
mov rax, r14
cmp qword [rax], 0
jne 0x140ace622
cmp esi, 0xffffffff
cmove esi, ecx
cmp qword [rax + 0x10], rbx
je 0x140ace6e3
inc ecx
add rax, 0x18
cmp ecx, 0xa
jl 0x140ace616
prefetchw byte [rbx + 0x24]
mov eax, dword [rbx + 0x24]
nop
mov ecx, eax
lock cmpxchg dword [rbx + 0x24], ecx
jne 0x140ace640
mov rcx, qword [rbx + 0x10]
mov r8d, eax
lea rdx, [r8*8]
lock inc qword [rdx + rcx]
prefetchw byte [rbx + 0x24]
mov eax, dword [rbx + 0x24]
mov ecx, eax
lock cmpxchg dword [rbx + 0x24], ecx
jne 0x140ace664
cmp r8d, eax
je 0x140ace6c2
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0x10]
lock dec qword [rdx + rax]
prefetchw byte [rbx + 0x24]
mov eax, dword [rbx + 0x24]
mov ecx, eax
lock cmpxchg dword [rbx + 0x24], ecx
jne 0x140ace690
mov r8d, eax
mov rax, qword [rbx + 0x10]
lea rdx, [r8*8]
lock inc qword [rdx + rax]
prefetchw byte [rbx + 0x24]
mov eax, dword [rbx + 0x24]
mov ecx, eax
lock cmpxchg dword [rbx + 0x24], ecx
jne 0x140ace6b4
cmp r8d, eax
jne 0x140ace680
movsxd rax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x10]
lea rdx, [r14 + rcx*8]
mov dword [rdx + 8], 1
mov qword [rdx + 0x10], rbx
lea rcx, [rax + r8*8]
mov qword [rdx], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x140ace700
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x20
call fcn.140cd95f0
sub rsp, rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1410a3d84]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r9d, r9d
lea rdx, [rsi + 0x10]
xor r8d, r8d
cmp qword [rdx], rdi
je 0x140ace769
inc r9d
inc r8
add rdx, 0x18
cmp r8, 0xa
jl 0x140ace744
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
movsxd rax, r9d
lea rcx, [rax + rax*2]
add dword [rsi + rcx*8 + 8], 0xffffffff
lea rbx, [rsi + rcx*8]
jne 0x140ace7b8
mov rax, qword [rbx]
mov rcx, 0xffffffffffffffff
lock xadd qword [rax], rcx
cmp rcx, 1
jns 0x140ace7a9
mov r8d, 0x10c
lea rdx, str.crypto_threads_win.c
lea rcx, str.assertion_failed:_ret___0
call fcn.140abc0b0
mov qword [rbx], 0
mov qword [rbx + 0x10], 0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140acfc10
Capabilities:
Encode data using add xor sub operations

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x140acfc7c
movzx ecx, byte [rcx]
test cl, cl
je 0x140acfc7c
mov r11d, 0x100
nop word [rax + rax]
movsx r9d, cl
lea r10, [r10 + 1]
or r9d, r11d
mov r8d, eax
mov edx, r9d
mov ecx, 0x20
shr edx, 2
add r11d, 0x100
xor edx, r9d
imul r9d, r9d
and edx, 0xf
sub ecx, edx
shr r8, cl
mov ecx, edx
mov edx, eax
mov eax, r8d
shl edx, cl
movzx ecx, byte [r10]
or eax, edx
xor eax, r9d
test cl, cl
jne 0x140acfc30
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret

Function at 0x140acfd40
Capabilities:
Encode data using add xor sub operations

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x140acfdb0
movzx ecx, byte [rcx]
test cl, cl
je 0x140acfdb0
mov r11d, 0x100
nop word [rax + rax]
movsx r9d, cl
lea r10, [r10 + 1]
mov r8d, eax
and r9d, 0xffffffdf
or r9d, r11d
mov ecx, 0x20
mov edx, r9d
add r11d, 0x100
shr edx, 2
xor edx, r9d
imul r9d, r9d
and edx, 0xf
sub ecx, edx
shr r8, cl
mov ecx, edx
mov edx, eax
mov eax, r8d
shl edx, cl
movzx ecx, byte [r10]
or eax, edx
xor eax, r9d
test cl, cl
jne 0x140acfd60
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret

Function at 0x140ad4330
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
lea rsi, [rcx - 1]
movsxd rdi, r9d
not rcx
shr rsi, 0x3f
shr rcx, 0x3f
mov r11, rdx
and rsi, rcx
mov r10, r8
mov ecx, dword [rdx + 8]
dec rsi
xor ecx, dword [r8 + 8]
and ecx, esi
xor dword [rdx + 8], ecx
xor dword [r8 + 8], ecx
movq xmm4, rsi
mov ecx, dword [rdx + 0x10]
xor ecx, dword [r8 + 0x10]
and ecx, esi
punpcklqdq xmm4, xmm4
xor dword [rdx + 0x10], ecx
xor dword [r8 + 0x10], ecx
mov edx, dword [rdx + 0x14]
mov ecx, edx
mov eax, dword [r8 + 0x14]
xor rcx, rax
and ecx, 4
and rcx, rsi
mov eax, ecx
xor eax, edx
mov dword [r11 + 0x14], eax
xor dword [r8 + 0x14], ecx
xor ecx, ecx
mov edx, ecx
test r9d, r9d
jle 0x140ad4449
cmp edi, 2
jb 0x140ad4449
mov r9, qword [r8]
lea rax, [rdi - 1]
mov r8, qword [r11]
lea rbx, [rdi - 1]
lea rbx, [r9 + rbx*8]
lea rax, [r8 + rax*8]
cmp r9, rax
ja 0x140ad43da
cmp rbx, r8
jae 0x140ad4449
cmp r9, r10
ja 0x140ad43e4
cmp rbx, r10
jae 0x140ad4449
cmp r9, r11
ja 0x140ad43ee
cmp rbx, r11
jae 0x140ad4449
cmp r8, r10
ja 0x140ad43f8
cmp rax, r10
jae 0x140ad4449
cmp r8, r11
ja 0x140ad4402
cmp rax, r11
jae 0x140ad4449
mov eax, edi
and eax, 0xfffffffe
nop word [rax + rax]
movdqu xmm2, xmmword [rcx + r9]
add edx, 2
movdqu xmm1, xmmword [r8 + rcx]
lea rcx, [rcx + 0x10]
movdqa xmm3, xmm2
xorps xmm3, xmm1
andps xmm3, xmm4
movdqa xmm0, xmm3
xorps xmm3, xmm2
xorps xmm0, xmm1
movdqu xmmword [r8 + rcx - 0x10], xmm0
movdqu xmmword [rcx + r9 - 0x10], xmm3
cmp edx, eax
jl 0x140ad4410
movsxd rax, edx
cmp rax, rdi
jge 0x140ad447e
mov rcx, qword [r11]
mov rdx, qword [rcx + rax*8]
lea r8, [rcx + rax*8]
mov rcx, qword [r10]
mov r9, rdx
xor r9, qword [rcx + rax*8]
and r9, rsi
xor rdx, r9
mov qword [r8], rdx
mov rcx, qword [r10]
xor qword [rcx + rax*8], r9
inc rax
cmp rax, rdi
jl 0x140ad4451
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
Function at 0x140ad5020
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x40
call fcn.140cd95f0
sub rsp, rax
xor r13d, r13d
mov r12d, r9d
mov r15d, r13d
mov edi, r13d
mov ebp, r13d
mov ebx, r8d
mov r14, rdx
mov rsi, rcx
call fcn.140ad4880
mov r8d, eax
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp dword [rsp + 0x90], r13d
jne 0x140ad509f
mov edi, dword [rsi + 0x10]
mov ecx, edi
neg ecx
lea ecx, [rax*8]
sbb r15d, r15d
movzx r15d, r15b
cmp ecx, r8d
jne 0x140ad509d
test edi, edi
sete bpl
jmp 0x140ad509f
mov ebp, edi
add eax, ebp
cmp ebx, 0xffffffff
jne 0x140ad50d3
mov ebx, eax
mov eax, dword [rsi + 0xc]
shl eax, 3
movsxd rdx, eax
test eax, eax
jne 0x140ad514e
test ebx, ebx
je 0x140ad51e5
movsxd r8, ebx
xor edx, edx
mov rcx, r14
call fcn.140da1bb0
jmp 0x140ad51e5
cmp ebx, eax
jge 0x140ad50a8
movups xmm2, xmmword [rsi]
movsxd rax, dword [rsi + 8]
movsd xmm0, qword [rsi + 0x10]
movsd qword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x20], xmm2
test eax, eax
jle 0x140ad5114
movq rcx, xmm2
lea r8, [rcx + rax*8]
nop dword [rax + rax]
cmp qword [r8 - 8], r13
lea r8, [r8 - 8]
jne 0x140ad5110
dec eax
test eax, eax
jg 0x140ad5100
mov dword [rsp + 0x28], eax
mov ecx, dword [rsp + 0x30]
test eax, eax
cmove ecx, r13d
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x20]
call fcn.140ad4880
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, ebp
cmp ebx, eax
jge 0x140ad50a8
mov rax, 0xffffffffffffffff
jmp 0x140ad51e7
cmp r12d, 1
je 0x140ad515d
lea eax, [rbx - 1]
movsxd rcx, eax
add r14, rcx
mov r11d, 1
movsxd rbp, ebx
cmp r12d, r11d
mov rax, 0xffffffffffffffff
lea r12, [rdx - 1]
cmovne r11, rax
mov eax, dword [rsi + 8]
shl eax, 3
xor r9d, r9d
xor r10d, r10d
movsxd r13, eax
test ebx, ebx
je 0x140ad51e5
nop dword [rax + rax]
mov rcx, qword [rsi]
movzx eax, r9b
and al, 7
mov rdx, r9
shl al, 3
shr rdx, 3
mov r8, qword [rcx + rdx*8]
movzx ecx, al
shr r8, cl
mov rax, r10
sub rax, r13
shr rax, 0x3f
neg al
and r8b, al
xor r8b, r15b
lea eax, [r8 + rdi]
cmp r8b, al
mov byte [r14], al
mov rax, r9
seta dil
sub rax, r12
shr rax, 0x3f
add r14, r11
add r9, rax
inc r10
cmp r10, rbp
jb 0x140ad5190
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140b044d0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.140cd95f0
sub rsp, rax
lea rcx, [0x1410a4228]
add rsp, 0x28
jmp fcn.140ace050

Function at 0x140b0c220
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x28
call fcn.140cd95f0
sub rsp, rax
cmp dword [0x1410a4380], 0
jne 0x140b0c2dd
xor edx, edx
mov dword [0x1410a4380], 1
mov r8d, 0x198
lea rcx, [0x1410a4390]
call fcn.140da1bb0
mov ecx, 0x202
lea rdx, [0x1410a4390]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140b0c2dd
call fcn.140ac6430
lea r8, str.BIO_sock_init
mov edx, 0x99
lea rcx, str.crypto_bio_bio_sock.c
call fcn.140ac6550
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_wsastartup__
mov ecx, 2
mov edx, eax
call fcn.140ac66b0
call fcn.140ac6430
lea r8, str.BIO_sock_init
mov edx, 0x9b
lea rcx, str.crypto_bio_bio_sock.c
call fcn.140ac6550
xor r8d, r8d
mov edx, 0x7a
mov ecx, 0x20
call fcn.140ac66b0
mov eax, 0xffffffff
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret

Function at 0x140b0c2f0
Capabilities:
Set socket configuration

Disassembly:
push rbx
mov eax, 0x20
call fcn.140cd95f0
sub rsp, rax
mov dword [rsp + 0x30], edx
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
movsxd rcx, ecx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
test eax, eax
jns 0x140b0c352
call fcn.140ac6430
lea r8, str.BIO_socket_ioctl
mov edx, 0xf7
lea rcx, str.crypto_bio_bio_sock.c
call fcn.140ac6550
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_ioctlsocket__
mov ecx, 2
mov edx, eax
call fcn.140ac66b0
xor eax, eax
test ebx, ebx
sete al
add rsp, 0x20
pop rbx
ret

Function at 0x140b0c360
Capabilities:
Get socket status

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x260
call fcn.140cd95f0
sub rsp, rax
mov rax, qword [0x14100f500]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov edi, ecx
mov rbx, r8
mov esi, edx
cmp ecx, 0x3f
ja 0x140b0c3f3
test rbx, rbx
jne 0x140b0c39b
mov eax, 1
jmp 0x140b0c3f8
xor ecx, ecx
call fcn.140cfbf90
mov rcx, rax
cmp rbx, rax
jge 0x140b0c3ae
xor eax, eax
jmp 0x140b0c3f8
xor eax, eax
mov qword [rsp + 0x48], rdi
sub ebx, ecx
mov dword [rsp + 0x34], eax
test esi, esi
mov dword [rsp + 0x40], 1
lea r8, [rsp + 0x40]
mov dword [rsp + 0x30], ebx
cmovne r8, rax
lea rdx, [rsp + 0x40]
cmove rdx, rax
lea ecx, [rdi + 1]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
jmp 0x140b0c3f8
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140cd9320
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret