joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001eaf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1401121f0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x14001eb4b
call fcn.14001ecc0
mov dword [rsp + 0x20], ebx
lea rax, [0x140112e30]
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
xor eax, eax
jmp 0x14001ec47
mov dword [rsp + 0x90], ebx
lea rcx, [rsp + 0x98]
call fcn.14007c5d4
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
lea rax, [rdi + 0x28]
test rdi, rdi
cmove rax, rbx
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov ecx, dword [0x140119f38]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x20]
mov ecx, dword [0x140119f38]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r9, rsi
lea r8, [rsp + 0x40]
mov rcx, rdi
call fcn.14001f0d0
test rax, rax
je 0x14001ec04
nop dword [rax]
lea rax, [rbx + 1]
cmp rbx, 0xffffffffffffffff
cmove rax, rbx
mov rbx, rax
mov r9, rsi
lea r8, [rsp + 0x40]
mov rcx, rdi
call fcn.14001f0d0
test rax, rax
jne 0x14001ebe0
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x140119f38]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rdi, [rsp + 0x40]
mov esi, 0xa
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001ec2d
call fcn.14007dc1c
add rdi, 8
sub rsi, 1
jne 0x14001ec20
lea rcx, [rsp + 0x98]
call fcn.14007c660
mov rax, rbx
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400a0cd0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14001eda0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x70
xor eax, eax
lea rbx, [rcx + 0x28]
test rcx, rcx
mov ecx, dword [0x140119f38]
cmove rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001eec4
cmp qword [rax], rbx
je 0x14001eddc
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14001edc8
add rsp, 0x70
pop rbx
ret
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x14001eec4
mov ecx, dword [rbx + 0x50]
test ecx, ecx
je 0x14001ee89
cmp ecx, 1
jne 0x14001eec4
lea rdx, [rbx + 0x58]
mov dword [rbx + 0x50], 2
lea rcx, [rsp + 0x30]
call fcn.14007c580
xorps xmm0, xmm0
lea rax, vtable.asio::multiple_exceptions.0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x58]
movups xmmword [rsp + 0x48], xmm0
call fcn.14007c580
lea rcx, [rsp + 0x30]
call fcn.14007c660
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
call fcn.14007c5d4
lea r8, [0x14010ff68]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.14007c5a8
lea rcx, [rsp + 0x58]
call fcn.14007c660
lea rax, vtable.std::exception.0
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rax
call fcn.1400a2c80
jmp 0x14001eeac
xorps xmm0, xmm0
mov dword [rbx + 0x50], 1
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
call fcn.14007c5d4
lea rcx, [rsp + 0x20]
call fcn.14007c5e0
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x58]
call fcn.14007c578
lea rcx, [rsp + 0x20]
call fcn.14007c660
add rsp, 0x70
pop rbx
ret
Function at 0x14001fb00
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x1401121f0]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r15d, r15d
mov rdi, r9
mov r14, rdx
mov rsi, rcx
cmp rcx, 0xffffffffffffffff
je 0x14001fcc1
mov qword [r11 + 0x18], rbx
test r8b, r8b
je 0x14001fb88
movzx eax, byte [rdx]
test al, 8
je 0x14001fb88
lea rcx, [0x140112e30]
mov dword [r11 - 0x48], r15d
or al, 8
mov qword [r11 - 0x38], rcx
mov byte [rdx], al
lea r9, [r11 - 0x48]
mov edx, 0xffff
mov qword [r11 - 0x40], r15
mov rcx, rsi
mov dword [rsp + 0x20], 4
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea rcx, [rsp + 0x38]
setne dl
call fcn.14001fa70
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
mov rcx, rdi
mov ebx, eax
setne dl
call fcn.14001fa70
test ebx, ebx
je 0x14001fcbd
mov rcx, qword gs:[0x58]
mov edx, dword [0x140119e8c]
mov qword [rsp + 0x50], rbp
mov ebp, 4
add rbp, qword [rcx]
cmp edx, dword [rbp]
jle 0x14001fbfe
lea rcx, [0x140119e8c]
call fcn.1400a0e50
mov edx, dword [0x140119e8c]
cmp edx, 0xffffffff
jne 0x14001fbfe
lea rcx, [0x1400db070]
call fcn.1400a12a4
lea rcx, [0x140119e8c]
call fcn.1400a0df0
mov edx, dword [0x140119e8c]
mov rcx, qword [rdi + 8]
mov rax, qword [0x140112e28]
cmp qword [rcx + 8], rax
jne 0x14001fc17
cmp dword [rdi], 0x2733
je 0x14001fc62
cmp edx, dword [rbp]
jle 0x14001fc49
lea rcx, [0x140119e8c]
call fcn.1400a0e50
cmp dword [0x140119e8c], 0xffffffff
jne 0x14001fc49
lea rcx, [0x1400db070]
call fcn.1400a12a4
lea rcx, [0x140119e8c]
call fcn.1400a0df0
mov rdx, qword [rdi + 8]
mov rax, qword [0x140112e28]
cmp qword [rdx + 8], rax
jne 0x14001fc96
cmp dword [rdi], 0x4d5
jne 0x14001fc96
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], r15d
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [r14], 0xfc
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
mov rcx, rdi
mov ebx, eax
setne dl
call fcn.14001fa70
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400a0cd0
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
ret
mov eax, ebx
jmp 0x14001fc9d
mov eax, r15d
jmp 0x14001fca5
Function at 0x140020840
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1401121f0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x44]
xor eax, eax
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x48], 1
lea r8d, [rax + 1]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140119e8c], eax
jle 0x1400208df
lea rcx, [0x140119e8c]
call fcn.1400a0e50
cmp dword [0x140119e8c], 0xffffffff
jne 0x1400208df
lea rcx, [0x1400db070]
call fcn.1400a12a4
lea rcx, [0x140119e8c]
call fcn.1400a0df0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x1400208f1
mov edx, 0x2746
jmp 0x1400208fd
cmp eax, 0x4d2
jne 0x140020907
mov edx, 0x274d
lea rcx, [rsp + 0x58]
call fcn.140032a70
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400a0cd0
add rsp, 0x78
ret
Function at 0x1400218c0
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x1401121f0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r15d, r9d
mov r14, r8
mov rdi, rdx
mov r13, rcx
mov ebp, dword [rsp + 0xd0]
mov r8d, dword [rsp + 0xd8]
mov rbx, qword [rsp + 0xe0]
cmp qword [r14], 0xffffffffffffffff
je 0x140021921
mov edx, 1
mov rcx, rbx
call fcn.140032af0
movups xmm0, xmmword [rbx]
movups xmmword [rdi], xmm0
jmp 0x140021a9e
mov dword [rsp + 0x28], 1
xor r12d, r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
mov edx, ebp
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
sete dl
mov rcx, rbx
call fcn.14001fa70
cmp rsi, 0xffffffffffffffff
je 0x140021981
cmp r15d, 0x17
jne 0x140021981
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x48]
lea edx, [r15 + 0x12]
lea r8d, [r15 + 4]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
nop
cmp rsi, 0xffffffffffffffff
jne 0x14002198f
movups xmm0, xmmword [rbx]
jmp 0x140021a9b
mov rdx, qword [r13 + 8]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdx + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
lea r13, [0x140112e30]
test rax, rax
jne 0x140021a17
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov eax, 4
mov rcx, qword gs:[0x58]
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x140119e8c], ecx
jle 0x140021a04
lea rcx, [0x140119e8c]
call fcn.1400a0e50
cmp dword [0x140119e8c], 0xffffffff
jne 0x140021a04
lea rcx, [0x1400db070]
call fcn.1400a12a4
lea rcx, [0x140119e8c]
call fcn.1400a0df0
mov dword [rsp + 0x38], r15d
lea rax, [0x140112e20]
mov qword [rsp + 0x40], rax
jmp 0x140021a21
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x40], r13
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbx], xmm0
cmp dword [rbx], 0
je 0x140021a57
movups xmmword [rdi], xmm0
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r13
mov byte [rsp + 0x30], 0
lea r9, [rsp + 0x38]
mov r8b, 1
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14001fb00
jmp 0x140021a9e
mov qword [rsp + 0x38], 0xffffffffffffffff
mov qword [r14], rsi
sub ebp, 1
je 0x140021a7b
cmp ebp, 1
je 0x140021a74
mov byte [r14 + 8], 0
jmp 0x140021a80
mov byte [r14 + 8], 0x20
jmp 0x140021a80
mov byte [r14 + 8], select
lea rcx, [r14 + 0x10]
call fcn.140032b70
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x40], r13
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbx], xmm0
movups xmmword [rdi], xmm0
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400a0cd0
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140021ac0
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x1401121f0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, qword [rsp + 0xa0]
mov r11, r9
mov rax, qword [rcx + 8]
mov r10, r8
mov rsi, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x98], 0
je 0x140021b10
mov rcx, qword [rcx + 8]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
call fcn.14001efe0
jmp 0x140021ba8
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x140021b30
mov rcx, qword [rsi + 8]
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rdi
call fcn.14001efe0
jmp 0x140021ba8
xor eax, eax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], eax
mov r8d, r11d
mov eax, dword [rsp + 0x90]
mov rdx, r10
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
mov rbx, qword [rsp + 0x50]
je 0x140021b9c
cmp eax, 0x3e5
je 0x140021b9c
mov r9d, dword [rsp + 0x40]
mov r8d, eax
mov rcx, qword [rsi + 8]
mov rdx, rdi
call fcn.14001efe0
jmp 0x140021ba8
mov rcx, qword [rsi + 8]
mov rdx, rdi
call fcn.14001ef50
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400a0cd0
add rsp, 0x58
pop rdi
pop rsi
ret

Function at 0x140021bc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
sub rsp, 0x58
mov rax, qword [0x1401121f0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, qword [rsp + 0xa0]
mov r11, r9
mov rax, qword [rcx + 8]
mov r10, r8
mov rdi, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x98], 0
je 0x140021c10
mov rcx, qword [rcx + 8]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call fcn.14001efe0
jmp 0x140021cc1
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x140021c33
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rbx
call fcn.14001efe0
jmp 0x140021cc1
mov eax, dword [rsp + 0x90]
lea r9, [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x30], rdx
lea rax, [rsp + 0x44]
mov dword [rsp + 0x40], edx
mov r8d, r11d
mov qword [rsp + 0x28], rbx
mov rdx, r10
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x50], rsi
call qword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x140021c82
mov eax, 0x2746
jmp 0x140021c8f
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
mov rsi, qword [rsp + 0x50]
je 0x140021cb5
cmp eax, 0x3e5
je 0x140021cb5
mov r9d, dword [rsp + 0x40]
mov r8d, eax
mov rcx, qword [rdi + 8]
mov rdx, rbx
call fcn.14001efe0
jmp 0x140021cc1
mov rcx, qword [rdi + 8]
mov rdx, rbx
call fcn.14001ef50
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400a0cd0
add rsp, 0x58
pop rdi
pop rbx
ret
Function at 0x14004ae40
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xe0
mov rdi, r8
mov rsi, rdx
mov qword [rsp + 0x40], r8
mov rbp, qword [rcx + 0xd0]
mov rbx, qword [rcx + 0xd8]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r14d, r14d
mov qword [rsp + 0x80], r14
mov rcx, qword [r8 + 0x38]
test rcx, rcx
je 0x14004ae97
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
call qword [rax]
mov qword [rsp + 0x80], rax
movups xmm0, xmmword [rbx]
movaps xmmword [rsp + 0x90], xmm0
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0xa0]
call fcn.140038460
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14004aeda
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rsp + 0x80], r14
mov ecx, dword [0x140119f58]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0xa0]
mov ecx, 0x90
call fcn.14001dd90
mov rbx, rax
mov qword [rax + 0x20], r14
lea rax, [0x14005a280]
mov qword [rbx + 0x28], rax
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov dword [rbx + 0x30], r14d
movaps xmm0, xmmword [rsp + 0x90]
movups xmmword [rbx + 0x38], xmm0
lea rcx, [rbx + 0x48]
lea rdx, [rsp + 0xa0]
call fcn.140038460
mov rcx, qword [rbp + 0x10]
lock inc dword [rcx + 0x30]
mov rdx, rbx
call fcn.14001eed0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
lea rcx, [rsp + 0x28]
call fcn.14005a210
nop
mov rcx, qword [rsp + 0xd8]
test rcx, rcx
je 0x14004af8d
mov rax, qword [rcx]
lea rdx, [rsp + 0xa0]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov dword [rsi], r14d
lea rax, [0x140112e30]
mov qword [rsi + 8], rax
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14004afb5
mov r8, qword [rcx]
cmp rcx, rdi
setne dl
call qword [r8 + 0x20]
mov qword [rdi + 0x38], r14
mov rax, rsi
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14004bee0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x18
mov rax, qword [0x1401121f0]
xor rax, rsp
mov qword [rsp + 8], rax
cmp qword [r8 + 0x18], 0x10
mov r10, r8
mov dword [rsp], r9d
jb 0x14004bf04
mov r10, qword [r8]
cmp qword [rdx + 0x18], 0x10
mov rax, qword [rdx + 0x10]
jb 0x14004bf17
add rax, qword [rdx]
mov rdx, qword [rdx]
jmp 0x14004bf1a
add rax, rdx
xor r8d, r8d
cmp rdx, rax
je 0x14004bf4a
sub r10, rdx
nop word [rax + rax]
movzx ecx, byte [rsp + r8]
xor cl, byte [rdx]
inc r8
mov byte [r10 + rdx], cl
and r8d, 3
inc rdx
cmp rdx, rax
jne 0x14004bf30
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.1400a0cd0
add rsp, 0x18
ret
Function at 0x14004bf60
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
cmp byte [rcx + 0x19], 0
mov r12, r9
mov rdi, r8
mov r10, rdx
mov rbp, rcx
jge 0x14004bfd4
mov rax, qword [rcx + 0x80]
xor ecx, ecx
mov rdx, qword [rax + 0x10]
mov dword [rsp + 0x20], edx
test r8, r8
je 0x14004bfbe
nop word [rax + rax]
mov rax, rcx
and eax, 3
movzx eax, byte [rsp + rax + 0x20]
xor byte [r10 + rcx], al
inc rcx
cmp rcx, rdi
jb 0x14004bfa0
mov rax, qword [rbp + 0x80]
mov rcx, rdi
and ecx, 3
je 0x14004bfd0
lea ecx, [rcx*8]
ror rdx, cl
mov qword [rax + 0x10], rdx
mov rax, qword [rbp + 0x80]
mov rdx, r10
mov rbx, qword [rax]
add rbx, 0x50
mov r15, qword [rbx + 0x10]
lea r14, [rbx + 0x10]
mov rcx, rbx
call fcn.1400085e0
mov r10, qword [rbp + 0x80]
mov rax, qword [r10]
cmp dword [rax + 0x70], 1
jne 0x14004c08b
cmp qword [rbx + 0x18], 0x10
jb 0x14004c01b
mov rdx, qword [rbx]
mov rbx, rdx
add rdx, qword [r14]
jmp 0x14004c021
mov rdx, qword [r14]
add rdx, rbx
lea rax, [r15 + rbx]
cmp rax, rdx
je 0x14004c08b
lea rbx, [0x1400f35c0]
cmp dword [r10 + 0x18], 0
movzx r8d, byte [rax]
mov r9d, r8d
movzx r11d, byte [r8 + rbx]
je 0x14004c054
mov ecx, dword [r10 + 0x1c]
and r9d, 0x3f
shl ecx, 6
or r9d, ecx
jmp 0x14004c063
mov r8d, 0xff
mov ecx, r11d
sar r8d, cl
and r9d, r8d
mov dword [r10 + 0x1c], r9d
mov ecx, dword [r10 + 0x18]
add ecx, 0x10
shl ecx, 4
add ecx, r11d
movzx r8d, byte [rcx + rbx]
mov dword [r10 + 0x18], r8d
cmp r8d, 1
je 0x14004c0a1
inc rax
cmp rax, rdx
jne 0x14004c031
sub qword [rbp + 0x30], rdi
mov rax, rdi
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov dword [rsp + 0x28], shutdown
call fcn.140023e10
mov qword [rsp + 0x30], rax
xor eax, eax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [r12], xmm0
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14004e980
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0xf0
mov rbx, r8
mov rbp, rdx
mov rsi, rcx
xor r14d, r14d
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x40], rax
lea rdx, [rcx + 0x18]
lea rcx, [rsp + 0x48]
call fcn.14004fc50
xorps xmm0, xmm0
movdqa xmmword [rsp + 0xa0], xmm0
mov rax, qword [rsi + 0x78]
test rax, rax
je 0x14004e9d1
lock inc dword [rax + 8]
mov rax, qword [rsi + 0x70]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsi + 0x78]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsi + 0x80]
mov qword [rsp + 0xb0], rax
movups xmm0, xmmword [rbp]
movups xmmword [rsp + 0xb8], xmm0
mov qword [rsp + 0xc8], r14
mov qword [rsp + 0xd0], r14
mov rax, qword [rbx + 8]
test rax, rax
je 0x14004ea21
lock inc dword [rax + 8]
mov rax, qword [rbx]
mov qword [rsp + 0xc8], rax
mov rax, qword [rbx + 8]
mov qword [rsp + 0xd0], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0xd8], rax
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov ecx, dword [0x140119f58]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14004ea72
nop dword [rax]
cmp qword [rax], rbx
je 0x14004eb69
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14004ea60
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x40]
mov ecx, 0xe0
call fcn.14001dd90
mov rbx, rax
mov qword [rax + 0x20], r14
lea rax, [0x14005d630]
mov qword [rbx + 0x28], rax
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov dword [rbx + 0x30], r14d
lea rcx, [rbx + 0x38]
lea rdx, [rsp + 0x40]
call fcn.14005d8d0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov r8, rbx
lea rdx, [rsi + 8]
mov rcx, rdi
call fcn.140022420
nop
mov edi, 0xffffffff
mov rbx, qword [rsp + 0xd0]
test rbx, rbx
je 0x14004eb13
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14004eb13
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14004eb13
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0xa8]
test rbx, rbx
je 0x14004eb47
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14004eb47
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14004eb47
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lea rcx, [rsp + 0x48]
call fcn.14002d7e0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
cmp qword [rax + 8], 0
je 0x14004ea72
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140060cb0
nop
jmp 0x14004ead8
Function at 0x140055f00
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x1f0
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
xor ebp, ebp
mov dword [rcx + 0x48], r9d
cmp r9d, 1
je 0x140056107
mov rdx, rbx
add qword [rcx + 0x30], rbx
mov r11, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x38]
shl rcx, 4
mov rax, qword [rdi + 0x10]
add rax, rcx
cmp rax, r11
je 0x140055f8e
test rdx, rdx
je 0x140055f8e
mov r9, qword [rdi + 0x40]
mov rcx, qword [rax]
mov qword [rsp + 0x38], rcx
mov r8, qword [rax + 8]
mov rcx, r8
cmp r9, r8
cmovb rcx, r9
sub r8, rcx
cmp rdx, r8
jae 0x140055f77
lea rcx, [r9 + rdx]
mov rdx, rbp
jmp 0x140055f85
sub rdx, r8
inc qword [rdi + 0x38]
add rax, 0x10
mov rcx, rbp
mov qword [rdi + 0x40], rcx
cmp rax, r11
jne 0x140055f47
mov ecx, dword [rsi]
test ecx, ecx
jne 0x140055f9f
test rbx, rbx
jne 0x140055f9f
lea rbx, [rdi + 0x30]
jmp 0x140055fbe
lea rbx, [rdi + 0x30]
mov rax, qword [rdi + 0x28]
cmp qword [rbx], rax
jae 0x140055fbe
mov r8d, 0x10000
test ecx, ecx
cmovne r8, rbp
je 0x140056113
mov rbx, qword [rbx]
lea rdx, [rdi + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140055dd0
movups xmm0, xmmword [rsi]
movaps xmmword [rsp + 0xb0], xmm0
mov qword [rsp + 0xc0], rbx
mov rsi, qword [rdi + 0x50]
mov rbx, qword [rdi + 0x58]
mov ecx, dword [0x140119f58]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140056012
nop dword [rax + rax]
cmp qword [rax], rbx
je 0x1400560ea
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140056000
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x50]
mov ecx, 0xb8
call fcn.14001dd90
mov rbx, rax
mov qword [rax + 0x20], rbp
lea rax, [0x14005f030]
mov qword [rbx + 0x28], rax
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
mov dword [rbx + 0x30], ebp
mov rax, qword [rsp + 0x50]
mov qword [rbx + 0x38], rax
movzx eax, byte [rsp + 0x58]
mov byte [rbx + 0x40], al
lea rcx, [rbx + 0x48]
lea rdx, [rsp + 0x60]
call fcn.140038460
mov qword [rbx + 0x88], rbp
mov qword [rbx + 0x90], rbp
mov rax, qword [rsp + 0xa0]
mov qword [rbx + 0x88], rax
mov rax, qword [rsp + 0xa8]
mov qword [rbx + 0x90], rax
xorps xmm0, xmm0
movdqa xmmword [rsp + 0xa0], xmm0
movaps xmm1, xmmword [rsp + 0xb0]
movups xmmword [rbx + 0x98], xmm1
mov rax, qword [rsp + 0xc0]
mov qword [rbx + 0xa8], rax
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
mov r8, rbx
lea rdx, [rdi + 0x58]
mov rcx, rsi
call fcn.140022420
nop
lea rcx, [rsp + 0x58]
call fcn.14002d7e0
jmp 0x14005614c
cmp qword [rax + 8], 0
je 0x140056012
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.1400619d0
nop
jmp 0x1400560de
mov r8d, 0x10000
cmp dword [rdx], ebp
cmovne r8, rbp
mov rbx, qword [rdi + 8]
lea rdx, [rsp + 0xd0]
lea rcx, [rdi + 0x10]
call fcn.1400569f0
lea r8, [rbx + 0x68]
lea rdx, [rbx + 8]
mov rcx, qword [rbx]
add rcx, 0x28
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, rax
call fcn.14005daf0
mov rbx, qword [rsp + 0x220]
add rsp, 0x1f0
pop rdi
pop rsi
pop rbp
ret