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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x14032aa00]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rsi, rdx
mov rdi, rcx
mov rax, qword [rcx + 0x10]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14002abb6
mov rbx, qword [rcx + 0x18]
mov qword [rsp + 0x30], rbx
mov rcx, rbx
call fcn.1401abddc
test eax, eax
jne 0x14002abe3
mov eax, dword [rbx + 0x4c]
cmp eax, 0x7fffffff
je 0x14002abee
xor r14d, r14d
mov qword [rsi + 0x28], r14
mov qword [rsi + 0x30], r14
mov qword [rsp + 0x60], r14
lea r15, vtable.fmt::v9::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov qword [rsp + 0x50], r15
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], 0xfa
mov rcx, qword [rdi + 0x28]
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
mov rdx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
cmp byte [rdi + 0x20], r14b
je 0x14002ab4a
mov r8, qword [rsi + 0x28]
cmp qword [rsi + 0x30], r8
jbe 0x14002ab4a
test r8, r8
je 0x14002aaa8
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
movsxd rax, dword [rsi + 0x10]
movzx ebp, word [rdi + rax*2 + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14002aacb
mov ebp, 7
jmp 0x14002aae6
mov edx, dword [rsp + 0x40]
and edx, 0xfff0
or edx, ebp
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
movzx ebp, word [rsp + 0x40]
mov r8, qword [rsi + 0x30]
mov rcx, qword [rsi + 0x28]
cmp r8, rcx
jbe 0x14002ab10
sub r8d, ecx
mov rdx, qword [rsp + 0x58]
add rdx, rcx
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
movzx edx, bp
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rcx, qword [rsi + 0x30]
mov r8, qword [rsp + 0x60]
cmp r8, rcx
jbe 0x14002ab6e
sub r8d, ecx
mov rdx, qword [rsp + 0x58]
add rdx, rcx
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
jmp 0x14002ab6e
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov qword [rsp + 0x50], r15
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
cmp rcx, rax
je 0x14002abae
mov rdx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002aba8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002abdd
call fcn.1401ae118
nop
mov rcx, rbx
call fcn.1401abde4
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1401ae6a0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1401bc384
nop
mov ecx, 5
call fcn.1401ac1a8
int3
dec eax
mov dword [rbx + 0x4c], eax
mov ecx, 6
call fcn.1401ac1a8
int3
Function at 0x14002c160
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x14032aa00]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov r12, rdx
mov r13, rcx
mov qword [rsp + 0x20], rdx
mov rdx, qword [rdx]
add rdx, 8
lea rcx, [rsp + 0x48]
call fcn.140018550
nop
lea r8, [rsp + 0x48]
mov r14, qword [rsp + 0x48]
mov r15, qword [rsp + 0x60]
cmp r15, 0xf
cmova r8, r14
movabs rdx, 0xcbf29ce484222325
xor ecx, ecx
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x14002c1f4
movabs r9, 0x100000001b3
movzx eax, byte [r8 + rcx]
xor rdx, rax
imul rdx, r9
inc rcx
cmp rcx, rdi
jb 0x14002c1e0
mov rcx, qword [r13 + 0x120]
and rcx, rdx
add rcx, rcx
mov rax, qword [r13 + 0x108]
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, qword [r13 + 0xf8]
je 0x14002c25b
mov rsi, qword [rax + rcx*8]
nop word [rax + rax]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x14002c232
mov rdx, qword [rdx]
lea rcx, [rsp + 0x48]
cmp r15, 0xf
cmova rcx, r14
cmp rdi, rax
jne 0x14002c250
mov r8, rdi
call fcn.1401e4800
test eax, eax
je 0x14002c25d
cmp rbx, rsi
je 0x14002c25b
mov rbx, qword [rbx + 8]
jmp 0x14002c220
xor ebx, ebx
test rbx, rbx
cmove rbx, qword [r13 + 0xf8]
lea r8, [rsp + 0x48]
cmp rbx, qword [r13 + 0xf8]
jne 0x14002c354
lea rcx, [r13 + 0xf0]
lea rdx, [rsp + 0x28]
call fcn.140006840
mov rcx, qword [rax]
add rcx, 0x30
mov rdx, r12
call fcn.14001c1b0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x14002c2d4
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002c2cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002c34e
call fcn.1401ae118
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], 0
mov rbx, qword [r12 + 8]
test rbx, rbx
je 0x14002c321
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14002c321
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14002c321
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1401ae6a0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.1401bc384
nop
lea rdx, str.logger_with_name_
lea rcx, [rsp + 0x68]
call fcn.1400052a0
nop
lea r8, str._already_exists
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140005100
mov rcx, rax
call fcn.14002e1f0
int3
Function at 0x140044970
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x14032aa00]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movzx edi, dl
mov rbx, rcx
mov eax, 1
lock xadd dword [0x1403509e8], eax
inc eax
cmp eax, 1
jne 0x1400449bf
mov ecx, 2
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x1403509ec], eax
test dil, dil
je 0x1400449d2
xor eax, eax
lock xadd dword [0x1403509ec], eax
test eax, eax
jne 0x1400449f6
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1401ae6a0
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
mov dword [rsp + 0x20], eax
call fcn.14004cfa0
lea rdx, str.winsock
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
call fcn.14004b0d0
int3
Function at 0x14004d110
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rbx, rcx
mov rax, qword [rcx + 8]
mov r9d, 0xffffffff
mov ecx, 2
mov qword [rsp + 0x28], rax
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x1403509dc], eax
test eax, eax
mov rax, qword [rbx + 8]
je 0x14004d171
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add rsp, 0x30
pop rbx
ret
xor r8d, r8d
lea rcx, [fcn.140020980]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x30
pop rbx
ret

Function at 0x140054a30
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x20
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140054a54
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
je 0x140054ae2
mov rdi, r15
mov qword [rsp + 0x40], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140054ab0
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x140054ab0
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.1401e4900
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140054acd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140054ad5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140054a71
mov rbp, qword [rsp + 0x40]
sub r15, rdi
jmp 0x140054bc0
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140054af9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140054afb
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140054b2d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.1401e4900
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140054bbd
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140054b68
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x140054b9e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.1401c2c9c
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x140054bbd
cmp rsi, rax
ja 0x140054b71
test rsi, rsi
je 0x140054bbd
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1401c2c9c
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x48]
mov rax, r15
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
Function at 0x1400572b0
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
mov edx, dword [rdx + 0x48]
mov r8b, 1
jmp 0x140051ea0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.Qt6Widgets.dll_protected_virtual:_void___cdecl_QWidget::keyPressEvent_class_QKeyEvent____ptr64____ptr64]
lea rcx, [rbx + 0x98]
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140051b00

Function at 0x1400572e0
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
mov edx, dword [rdx + 0x48]
xor r8d, r8d
jmp 0x140051ea0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.Qt6Widgets.dll_protected_virtual:_void___cdecl_QWidget::keyReleaseEvent_class_QKeyEvent____ptr64____ptr64]
lea rcx, [rbx + 0x98]
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140051b10
Function at 0x1400755a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub rsp, 0x38
cmp qword [rdx + 0x18], 0xf
mov r10, rdx
mov r11, qword [rdx + 0x10]
jbe 0x1400755b5
mov r10, qword [rdx]
xor r8d, r8d
movabs r9, 0xcbf29ce484222325
test r11, r11
je 0x1400755f9
mov qword [rsp + 0x30], rbx
movabs rbx, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [r10 + r8]
inc r8
xor r9, rax
imul r9, rbx
cmp r8, r11
jb 0x1400755e0
mov rbx, qword [rsp + 0x30]
mov r8, rdx
lea rdx, [rsp + 0x20]
call fcn.140005c30
cmp qword [rax + 8], 0
setne al
add rsp, 0x38
ret
Function at 0x140087060
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x40
mov rbx, rdx
mov r14, rcx
mov ecx, dword [0x1403509d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edi, edi
test rax, rax
je 0x140087096
mov rdx, qword [rax + 8]
jmp 0x140087099
mov rdx, rdi
mov r9d, 8
mov r8d, reloc.WS2_32.dll_WSASetLastError
movzx ecx, byte [rsp + 0x70]
call fcn.1400aa770
mov rdx, rax
mov rcx, qword [rbx]
mov qword [rax + 8], rcx
mov rcx, qword [rbx + 8]
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], rdi
mov rax, qword [rbx + 0x10]
mov qword [rdx + 0x18], rax
mov rax, qword [rbx + 0x18]
mov qword [rdx + 0x20], rax
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov qword [rdx + 0x28], rdi
mov qword [rdx + 0x30], rdi
mov rax, qword [rbx + 0x20]
mov qword [rdx + 0x28], rax
mov rax, qword [rbx + 0x28]
mov qword [rdx + 0x30], rax
mov qword [rbx + 0x20], rdi
mov qword [rbx + 0x28], rdi
mov rax, qword [rbx + 0x30]
mov qword [rdx + 0x38], rax
mov qword [rdx + 0x40], rdi
mov qword [rdx + 0x48], rdi
mov rax, qword [rbx + 0x38]
mov qword [rdx + 0x40], rax
mov rax, qword [rbx + 0x40]
mov qword [rdx + 0x48], rax
mov qword [rbx + 0x38], rdi
mov qword [rbx + 0x40], rdi
movzx eax, byte [rbx + 0x48]
mov byte [rdx + 0x50], al
mov byte [rbx + 0x48], dil
movups xmm0, xmmword [rbx + 0x50]
movups xmmword [rdx + 0x58], xmm0
lea rax, [0x1400b3ff0]
mov qword [rdx], rax
mov qword [r14], rdx
movzx edx, byte [rbx + 0x48]
test dl, dl
je 0x14008718a
mov rax, qword [rbx + 0x30]
lea rcx, [rax + 0x58]
mov qword [rsp + 0x20], rax
mov rax, qword [rbx + 0x38]
mov qword [rsp + 0x28], rax
mov rax, qword [rbx + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rbx + 0x38], rdi
mov qword [rbx + 0x40], rdi
mov byte [rsp + 0x38], dl
mov byte [rbx + 0x48], 0
lea rdx, [rsp + 0x20]
call fcn.1400c9ba0
mov rdi, qword [rbx + 0x40]
mov esi, 0xffffffff
test rdi, rdi
je 0x1400871c2
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400871c2
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, esi
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x1400871c2
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdi, qword [rbx + 0x28]
test rdi, rdi
je 0x1400871f4
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400871f4
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, esi
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x1400871f4
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rbx + 0x18]
test rbx, rbx
je 0x140087224
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140087224
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x140087224
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, r14
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140087240
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x20
mov r14, rdx
mov rsi, rcx
mov ecx, dword [0x1403509d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
test rax, rax
je 0x14008727b
mov rdx, qword [rax + 8]
jmp 0x14008727e
mov rdx, rbx
mov r9d, 8
mov r8d, 0x80
movzx ecx, byte [rsp + 0x50]
call fcn.1400aa770
mov rdx, rax
mov rcx, qword [r14]
mov qword [rax + 8], rcx
movups xmm0, xmmword [r14 + 8]
movups xmmword [rax + 0x10], xmm0
mov qword [rax + 0x20], rbx
mov qword [rax + 0x28], rbx
mov rcx, qword [r14 + 0x18]
mov qword [rax + 0x20], rcx
mov rax, qword [r14 + 0x20]
mov qword [rdx + 0x28], rax
mov qword [r14 + 0x18], rbx
mov qword [r14 + 0x20], rbx
movzx eax, byte [r14 + 0x29]
mov byte [rdx + 0x31], al
mov rax, qword [r14 + 0x30]
mov qword [rdx + 0x38], rax
mov qword [rdx + 0x40], rbx
mov qword [rdx + 0x48], rbx
mov rax, qword [r14 + 0x38]
mov qword [rdx + 0x40], rax
mov rax, qword [r14 + 0x40]
mov qword [rdx + 0x48], rax
mov qword [r14 + 0x38], rbx
mov qword [r14 + 0x40], rbx
movzx eax, byte [r14 + 0x48]
mov byte [rdx + 0x50], al
mov byte [r14 + 0x48], bl
mov byte [r14 + 0x29], bl
mov qword [rdx + 0x58], rbx
mov qword [rdx + 0x60], rbx
mov rax, qword [r14 + 0x50]
mov qword [rdx + 0x58], rax
mov rax, qword [r14 + 0x58]
mov qword [rdx + 0x60], rax
mov qword [r14 + 0x50], rbx
mov qword [r14 + 0x58], rbx
movups xmm0, xmmword [r14 + 0x60]
movups xmmword [rdx + 0x68], xmm0
lea rax, [0x1400b6200]
mov qword [rdx], rax
mov qword [rsi], rdx
mov rbx, qword [r14 + 0x58]
mov edi, 0xffffffff
test rbx, rbx
je 0x140087374
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140087374
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140087374
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lea rcx, [r14 + 0x28]
call fcn.1400df560
mov rbx, qword [r14 + 0x20]
test rbx, rbx
je 0x1400873ad
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400873ad
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400873ad
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1400873d0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x20
mov rsi, rdx
mov r14, rcx
mov ecx, dword [0x1403509d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
test rax, rax
je 0x140087406
mov rdx, qword [rax + 8]
jmp 0x140087409
mov rdx, rbx
mov r9d, 8
mov r8d, 0x58
movzx ecx, byte [rsp + 0x50]
call fcn.1400aa770
mov rdx, rax
mov rcx, qword [rsi]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbx
mov rcx, qword [rsi + 8]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsi + 0x10]
mov qword [rax + 0x18], rcx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rbx
mov qword [rax + 0x20], rbx
mov qword [rax + 0x28], rbx
mov rax, qword [rsi + 0x18]
mov qword [rdx + 0x20], rax
mov rax, qword [rsi + 0x20]
mov qword [rdx + 0x28], rax
mov qword [rsi + 0x18], rbx
mov qword [rsi + 0x20], rbx
mov qword [rdx + 0x30], rbx
mov qword [rdx + 0x38], rbx
mov rax, qword [rsi + 0x28]
mov qword [rdx + 0x30], rax
mov rax, qword [rsi + 0x30]
mov qword [rdx + 0x38], rax
mov qword [rsi + 0x28], rbx
mov qword [rsi + 0x30], rbx
movups xmm0, xmmword [rsi + 0x38]
movups xmmword [rdx + 0x40], xmm0
lea rax, [0x1400b6550]
mov qword [rdx], rax
mov qword [r14], rdx
mov rbx, qword [rsi + 0x30]
mov edi, 0xffffffff
test rbx, rbx
je 0x1400874d5
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400874d5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400874d5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsi + 0x20]
test rbx, rbx
je 0x140087507
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140087507
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140087507
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsi + 0x10]
test rbx, rbx
je 0x140087537
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140087537
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140087537
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, r14
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140087550
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x20
mov r14, rdx
mov rsi, rcx
mov ecx, dword [0x1403509d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
test rax, rax
je 0x14008758b
mov rdx, qword [rax + 8]
jmp 0x14008758e
mov rdx, rbx
mov r9d, 8
mov r8d, 0x80
movzx ecx, byte [rsp + 0x50]
call fcn.1400aa770
mov rdx, rax
mov rcx, qword [r14]
mov qword [rax + 8], rcx
movups xmm0, xmmword [r14 + 8]
movups xmmword [rax + 0x10], xmm0
mov qword [rax + 0x20], rbx
mov qword [rax + 0x28], rbx
mov rcx, qword [r14 + 0x18]
mov qword [rax + 0x20], rcx
mov rax, qword [r14 + 0x20]
mov qword [rdx + 0x28], rax
mov qword [r14 + 0x18], rbx
mov qword [r14 + 0x20], rbx
movzx eax, byte [r14 + 0x29]
mov byte [rdx + 0x31], al
mov rax, qword [r14 + 0x30]
mov qword [rdx + 0x38], rax
mov qword [rdx + 0x40], rbx
mov qword [rdx + 0x48], rbx
mov rax, qword [r14 + 0x38]
mov qword [rdx + 0x40], rax
mov rax, qword [r14 + 0x40]
mov qword [rdx + 0x48], rax
mov qword [r14 + 0x38], rbx
mov qword [r14 + 0x40], rbx
movzx eax, byte [r14 + 0x48]
mov byte [rdx + 0x50], al
mov byte [r14 + 0x48], bl
mov byte [r14 + 0x29], bl
mov qword [rdx + 0x58], rbx
mov qword [rdx + 0x60], rbx
mov rax, qword [r14 + 0x50]
mov qword [rdx + 0x58], rax
mov rax, qword [r14 + 0x58]
mov qword [rdx + 0x60], rax
mov qword [r14 + 0x50], rbx
mov qword [r14 + 0x58], rbx
movups xmm0, xmmword [r14 + 0x60]
movups xmmword [rdx + 0x68], xmm0
lea rax, [0x1400b6860]
mov qword [rdx], rax
mov qword [rsi], rdx
mov rbx, qword [r14 + 0x58]
mov edi, 0xffffffff
test rbx, rbx
je 0x140087684
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140087684
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140087684
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lea rcx, [r14 + 0x28]
call fcn.1400df560
mov rbx, qword [r14 + 0x20]
test rbx, rbx
je 0x1400876bd
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400876bd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400876bd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140088ac0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rdi, rdx
mov rax, qword [rcx]
mov rbp, qword [rax]
lea r14, [rax + 0x40]
lea rsi, [rax + 8]
mov qword [rsp + 0x30], rdx
mov ecx, dword [0x1403509d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor r15d, r15d
test rax, rax
je 0x140088b08
mov rdx, qword [rax + 8]
jmp 0x140088b0b
mov rdx, r15
mov r9d, 8
mov r8d, 0xe8
movzx ecx, byte [rsp + 0x70]
call fcn.1400aa650
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rax + 0x20], r15
lea rax, [0x140114cf0]
mov qword [rbx + 0x28], rax
mov qword [rbx], r15
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
mov dword [rbx + 0x30], r15d
mov dword [rbx + 0x38], r15d
lea rax, [0x1403275b8]
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x48], r15
mov rax, qword [rdi]
mov qword [rbx + 0x50], rax
movups xmm0, xmmword [rdi + 8]
movups xmmword [rbx + 0x58], xmm0
mov qword [rbx + 0x68], r15
mov qword [rbx + 0x70], r15
mov rax, qword [rdi + 0x18]
mov qword [rbx + 0x68], rax
mov rax, qword [rdi + 0x20]
mov qword [rbx + 0x70], rax
mov qword [rdi + 0x18], r15
mov qword [rdi + 0x20], r15
movzx eax, byte [rdi + 0x29]
mov byte [rbx + 0x79], al
mov rax, qword [rdi + 0x30]
mov qword [rbx + 0x80], rax
mov qword [rbx + 0x88], r15
mov qword [rbx + 0x90], r15
mov rax, qword [rdi + 0x38]
mov qword [rbx + 0x88], rax
mov rax, qword [rdi + 0x40]
mov qword [rbx + 0x90], rax
mov qword [rdi + 0x38], r15
mov qword [rdi + 0x40], r15
movzx eax, byte [rdi + 0x48]
mov byte [rbx + 0x98], al
mov byte [rdi + 0x48], 0
mov byte [rdi + 0x29], 0
mov qword [rbx + 0xa0], r15
mov qword [rbx + 0xa8], r15
mov rax, qword [rdi + 0x50]
mov qword [rbx + 0xa0], rax
mov rax, qword [rdi + 0x58]
mov qword [rbx + 0xa8], rax
mov qword [rdi + 0x50], r15
mov qword [rdi + 0x58], r15
lea rcx, [rbx + 0xb0]
mov r9, r14
xor r8d, r8d
xor edx, edx
call fcn.1400d4c90
mov qword [rsp + 0x40], rbx
mov byte [rsi + 8], 1
lea r9, [rsi + 0x10]
lea rdx, [rbp + 0x28]
mov qword [rsp + 0x20], rbx
mov r8, rsi
mov rcx, qword [rbp + 0x58]
call fcn.1400cfd10
nop
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret