joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180008c80
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
mov rdi, r9
mov r14, rdx
mov rsi, rcx
cmp rcx, 0xffffffffffffffff
je 0x180008e36
mov qword [rsp + 0x68], rbx
test r8b, r8b
je 0x180008cff
movzx eax, byte [rdx]
test al, 8
je 0x180008cff
lea rcx, [0x1800a0df8]
mov dword [rsp + 0x60], r15d
or al, 8
mov qword [rsp + 0x38], rcx
mov byte [rdx], al
lea r9, [rsp + 0x60]
mov edx, 0xffff
mov dword [rsp + 0x30], r15d
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 + 0x30]
setne dl
call fcn.180008bf0
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
mov rcx, rdi
mov ebx, eax
setne dl
call fcn.180008bf0
test ebx, ebx
je 0x180008e32
mov edx, dword [0x1800a2a00]
mov rcx, qword gs:[0x58]
mov qword [rsp + 0x70], rbp
mov eax, 4
mov rbp, qword [rcx + rdx*8]
mov edx, dword [0x1800a40a0]
add rbp, rax
cmp edx, dword [rbp]
jle 0x180008d7f
lea rcx, [0x1800a40a0]
call fcn.180050638
mov edx, dword [0x1800a40a0]
cmp edx, 0xffffffff
jne 0x180008d7f
lea rcx, [0x18007f660]
call fcn.180050b14
lea rcx, [0x1800a40a0]
call fcn.1800505cc
mov edx, dword [0x1800a40a0]
mov rcx, qword [rdi + 8]
mov rax, qword [0x1800a0e10]
cmp qword [rcx + 8], rax
jne 0x180008d98
cmp dword [rdi], 0x2733
je 0x180008de3
cmp edx, dword [rbp]
jle 0x180008dca
lea rcx, [0x1800a40a0]
call fcn.180050638
cmp dword [0x1800a40a0], 0xffffffff
jne 0x180008dca
lea rcx, [0x18007f660]
call fcn.180050b14
lea rcx, [0x1800a40a0]
call fcn.1800505cc
mov rcx, qword [rdi + 8]
mov rax, qword [0x1800a0e10]
cmp qword [rcx + 8], rax
jne 0x180008e17
cmp dword [rdi], 0x4d5
jne 0x180008e17
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], 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.180008bf0
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
mov eax, ebx
jmp 0x180008e1e
mov rsi, qword [rsp + 0x78]
mov eax, r15d
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1800093c0
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x68
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x78]
xor eax, eax
mov byte [rsp + 0x70], 0
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x40], 1
lea r8d, [rax + 1]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
mov ecx, dword [0x1800a2a00]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1800a40a0], ecx
jle 0x180009457
lea rcx, [0x1800a40a0]
call fcn.180050638
cmp dword [0x1800a40a0], 0xffffffff
jne 0x180009457
lea rcx, [0x18007f660]
call fcn.180050b14
lea rcx, [0x1800a40a0]
call fcn.1800505cc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x180009476
mov edx, 0x2746
lea rcx, [rsp + 0x50]
call fcn.18000f540
add rsp, 0x68
ret
cmp eax, 0x4d2
jne 0x18000948c
mov edx, 0x274d
lea rcx, [rsp + 0x50]
call fcn.18000f540
add rsp, 0x68
ret
Function at 0x18000a760
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r15d, r9d
mov rbx, r8
mov rdi, rdx
mov r13, rcx
cmp qword [r8], 0xffffffffffffffff
je 0x18000a7ae
mov edx, 1
mov rbx, qword [rsp + 0xa0]
mov rcx, rbx
call fcn.18000f5d0
movups xmm0, xmmword [rbx]
movups xmmword [rdi], xmm0
jmp 0x18000a95f
mov dword [rsp + 0x28], 1
xor r12d, r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
mov r8d, dword [rsp + 0x98]
mov ebp, dword [rsp + 0x90]
mov edx, ebp
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
sete dl
mov r14, qword [rsp + 0xa0]
mov rcx, r14
call fcn.180008bf0
cmp rsi, 0xffffffffffffffff
je 0x18000a82b
cmp r15d, 0x17
jne 0x18000a82b
mov dword [rsp + 0x80], r12d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x80]
lea edx, [r15 + 0x12]
lea r8d, [r15 + 4]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
nop
cmp rsi, 0xffffffffffffffff
jne 0x18000a83a
movups xmm0, xmmword [r14]
jmp 0x18000a95c
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, [0x1800a0df8]
test rax, rax
jne 0x18000a8c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov edx, dword [0x1800a2a00]
mov rcx, qword gs:[0x58]
mov eax, 4
mov rcx, qword [rcx + rdx*8]
mov edx, dword [rax + rcx]
cmp dword [0x1800a40a0], edx
jle 0x18000a8b6
lea rcx, [0x1800a40a0]
call fcn.180050638
cmp dword [0x1800a40a0], 0xffffffff
jne 0x18000a8b6
lea rcx, [0x18007f660]
call fcn.180050b14
lea rcx, [0x1800a40a0]
call fcn.1800505cc
mov dword [rsp + 0x30], r15d
lea rax, [0x1800a0e08]
mov qword [rsp + 0x38], rax
jmp 0x18000a8d3
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x38], r13
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [r14], xmm0
cmp dword [r14], 0
je 0x18000a911
movups xmmword [rdi], xmm0
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x38], r13
mov byte [rsp + 0x80], 0
lea r9, [rsp + 0x30]
mov r8b, 1
lea rdx, [rsp + 0x80]
mov rcx, rsi
call fcn.180008c80
jmp 0x18000a95f
mov qword [rsp + 0x30], 0xffffffffffffffff
mov qword [rbx], rsi
sub ebp, 1
je 0x18000a933
cmp ebp, 1
je 0x18000a92d
mov byte [rbx + 8], 0
jmp 0x18000a937
mov byte [rbx + 8], 0x20
jmp 0x18000a937
mov byte [rbx + 8], select
lea rcx, [rbx + 0x10]
movzx r8d, byte [rsp + 0x80]
call fcn.18000f660
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x38], r13
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [r14], xmm0
movups xmmword [rdi], xmm0
mov rax, rdi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18000a990
Capabilities:
Send data
Send data on socket

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [rcx + 8]
mov r10, r9
mov r11, r8
mov rdi, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x78], 0
je 0x18000a9ca
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rcx + 8]
xor r8d, r8d
add rsp, 0x40
pop rdi
jmp fcn.180008330
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x18000a9f2
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rdi + 8]
mov r8d, 0x2719
add rsp, 0x40
pop rdi
jmp fcn.180008330
xor eax, eax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x78]
mov dword [rsp + 0x78], eax
mov r8d, r10d
mov eax, dword [rsp + 0x70]
mov rdx, r11
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x80]
mov qword [rsp + 0x28], rsi
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 0x18000aa71
cmp eax, 0x3e5
je 0x18000aa71
mov r9d, dword [rsp + 0x78]
mov r8d, eax
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.180008330
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.180008290
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [rcx + 8]
mov r10, r9
mov r11, r8
mov rbx, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x78], 0
je 0x18000aaca
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rcx + 8]
xor r8d, r8d
add rsp, 0x40
pop rbx
jmp fcn.180008330
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x18000aaf2
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rbx + 8]
mov r8d, 0x2719
add rsp, 0x40
pop rbx
jmp fcn.180008330
mov eax, dword [rsp + 0x70]
lea r9, [rsp + 0x78]
xor edx, edx
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x30], rdx
lea rax, [rsp + 0x50]
mov dword [rsp + 0x78], edx
mov r8d, r10d
mov qword [rsp + 0x58], rsi
mov rdx, r11
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x80]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x18000ab4b
mov eax, 0x2746
jmp 0x18000ab58
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
mov rsi, qword [rsp + 0x58]
je 0x18000ab87
cmp eax, 0x3e5
je 0x18000ab87
mov r9d, dword [rsp + 0x78]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.180008330
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.180008290
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
Function at 0x180014a90
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rsi, rcx
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x180014ae2
lea rcx, [0x180014ff0]
mov qword [rbp - 0x49], rcx
mov qword [rbp - 0x41], rdx
movaps xmm0, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x49], xmm0
lea rdx, [rbp - 0x49]
mov rcx, rsi
call rax
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r14, qword [rcx + 0x10]
mov rax, qword [rdx]
mov qword [rbp - 0x39], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x31], xmm0
mov rax, qword [rdx + 0x10]
test rax, rax
je 0x180014b02
lock inc dword [rax + 8]
mov rax, qword [rdx + 8]
mov qword [rbp - 0x31], rax
mov rax, qword [rdx + 0x10]
mov qword [rbp - 0x29], rax
mov rax, qword [rdx + 0x18]
mov qword [rbp - 0x21], rax
mov rax, qword [rdx + 0x20]
mov qword [rbp - 0x19], rax
mov eax, dword [rdx + 0x28]
mov dword [rbp - 0x11], eax
movups xmm0, xmmword [rdx + 0x30]
movups xmmword [rbp - 9], xmm0
mov rax, qword [rdx + 0x40]
mov qword [rbp + 7], rax
movups xmm0, xmmword [rdx + 0x48]
movups xmmword [rbp + 0xf], xmm0
lea rax, [rbp - 0x39]
mov qword [rbp + 0x7f], rax
lea rax, [rbp + 0x67]
mov qword [rbp + 0x1f], rax
mov ecx, dword [0x1800a4940]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
test rax, rax
je 0x180014b8a
mov rax, qword [rax + 8]
test rax, rax
je 0x180014b8a
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x180014b8a
mov qword [rax + 0x10], rbx
movzx eax, byte [rcx]
cmp al, 0x1a
jb 0x180014b85
mov byte [rcx + 0x68], al
jmp 0x180014b9b
call fcn.180050b68
mov ecx, 0x69
call fcn.1800506b0
mov rcx, rax
mov byte [rax + 0x68], 0x1a
mov qword [rbp + 0x2f], rbx
mov rax, qword [rbp - 0x39]
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rbx
mov qword [rcx + 0x18], rbx
mov rax, qword [rbp - 0x29]
test rax, rax
je 0x180014bbc
lock inc dword [rax + 8]
mov rax, qword [rbp - 0x31]
mov qword [rcx + 0x10], rax
mov rax, qword [rbp - 0x29]
mov qword [rcx + 0x18], rax
mov rax, qword [rbp - 0x21]
mov qword [rcx + 0x20], rax
mov rax, qword [rbp - 0x19]
mov qword [rcx + 0x28], rax
mov eax, dword [rbp - 0x11]
mov dword [rcx + 0x30], eax
movups xmm0, xmmword [rbp - 9]
movups xmmword [rcx + 0x38], xmm0
mov rax, qword [rbp + 7]
mov qword [rcx + 0x48], rax
movups xmm0, xmmword [rbp + 0xf]
movups xmmword [rcx + 0x50], xmm0
lea rax, [0x180015040]
mov qword [rcx], rax
mov qword [rbp + 0x77], rcx
mov qword [rbp + 0x27], rbx
lea rcx, [rbp + 0x1f]
call fcn.180014f30
nop
mov rbx, qword [rbp - 0x29]
test rbx, rbx
je 0x180014c4c
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x180014c4c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x180014c4c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rdx, [rbp + 0x77]
mov rcx, rsi
call r14
nop
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x180014c68
mov rax, qword [rcx]
xor edx, edx
call rax
nop
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180014f30
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 0x10]
mov rdi, rcx
test rbx, rbx
je 0x180014f8d
mov rbx, qword [rbx + 0x18]
test rbx, rbx
je 0x180014f85
mov qword [rsp + 0x30], rsi
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x180014f80
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x180014f80
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rsi, qword [rsp + 0x30]
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180014fe4
mov ecx, dword [0x1800a4940]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180014fd4
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x180014fd4
cmp qword [rcx + 0x10], 0
jne 0x180014fd4
movzx eax, byte [rbx + 0x68]
mov byte [rbx], al
mov qword [rcx + 0x10], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call fcn.180050b68
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180015140
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1800a0040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x20], r8
mov ecx, dword [0x1800a4940]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor esi, esi
test rax, rax
je 0x1800151a1
mov rax, qword [rax + 8]
test rax, rax
je 0x1800151a1
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x1800151a1
mov qword [rax + 0x10], rsi
movzx eax, byte [rcx]
cmp al, 0x1c
jb 0x18001519c
mov byte [rcx + 0x70], al
jmp 0x1800151b2
call fcn.180050b68
mov ecx, WSAStartup
call fcn.1800506b0
mov rcx, rax
mov byte [rax + 0x70], 0x1c
mov qword [rsp + 0x30], rsi
mov rax, qword [rbx]
mov qword [rcx + 8], rax
mov rax, qword [rbx + 8]
mov qword [rcx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
mov qword [rcx + 0x28], rsi
mov qword [rcx + 0x30], rsi
movups xmm0, xmmword [rbx + 0x10]
movups xmmword [rcx + 0x18], xmm0
movups xmm1, xmmword [rbx + 0x20]
movups xmmword [rcx + 0x28], xmm1
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x28], setsockopt
mov byte [rbx + 0x10], sil
mov eax, dword [rbx + 0x30]
mov dword [rcx + 0x38], eax
mov rax, qword [rbx + 0x38]
mov qword [rcx + 0x40], rax
mov rax, qword [rbx + 0x40]
mov qword [rcx + 0x48], rax
movups xmm0, xmmword [rbx + 0x48]
movups xmmword [rcx + 0x50], xmm0
mov rax, qword [rbx + 0x58]
mov qword [rcx + 0x60], rax
lea rax, [0x180015c60]
mov qword [rcx], rax
mov qword [rdi], rcx
mov qword [rsp + 0x28], rsi
lea rcx, [rsp + 0x20]
call fcn.1800152b0
nop
mov rdx, qword [rbx + 0x28]
cmp rdx, 0xf
jbe 0x18001526f
inc rdx
mov rcx, qword [rbx + 0x10]
cmp rdx, 0x1000
jb 0x18001526a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180015297
mov rcx, r8
call fcn.180050b2c
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x28], setsockopt
mov byte [rbx + 0x10], 0
mov rax, rdi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180050570
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
call fcn.18005c4f8
int3

Function at 0x1800152b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 0x10]
mov rdi, rcx
test rbx, rbx
je 0x18001531d
mov rdx, qword [rbx + 0x30]
cmp rdx, 0xf
jbe 0x180015301
mov rcx, qword [rbx + 0x18]
inc rdx
cmp rdx, 0x1000
jb 0x1800152fc
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001537f
mov rcx, r8
call fcn.180050b2c
mov qword [rbx + 0x28], 0
mov qword [rbx + 0x30], setsockopt
mov byte [rbx + 0x18], 0
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180015374
mov ecx, dword [0x1800a4940]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180015364
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x180015364
cmp qword [rcx + 0x10], 0
jne 0x180015364
movzx eax, byte [rbx + 0x70]
mov byte [rbx], al
mov qword [rcx + 0x10], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call fcn.180050b68
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.18005c4f8
int3
Function at 0x180015770
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x20], r8
mov ecx, dword [0x1800a4940]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor esi, esi
test rax, rax
je 0x1800157d1
mov rax, qword [rax + 8]
test rax, rax
je 0x1800157d1
mov r8, qword [rax + 0x10]
test r8, r8
je 0x1800157d1
mov qword [rax + 0x10], rsi
movzx eax, byte [r8]
cmp al, 0x24
jb 0x1800157c9
mov byte [r8 + 0x90], al
jmp 0x1800157e5
mov rcx, r8
call fcn.180050b68
mov ecx, 0x91
call fcn.1800506b0
mov r8, rax
mov byte [rax + 0x90], 0x24
mov qword [rsp + 0x30], rsi
mov rax, qword [rbx]
mov qword [r8 + 8], rax
mov rdx, qword [rbx + 0x18]
mov qword [rbx + 0x18], rsi
mov rcx, qword [rbx + 0x10]
mov qword [rbx + 0x10], rsi
mov rax, qword [rbx + 8]
mov qword [rbx + 8], rsi
mov qword [r8 + 0x10], rax
mov qword [r8 + 0x18], rcx
mov qword [r8 + 0x20], rdx
mov rax, qword [rbx + 0x20]
mov qword [r8 + 0x28], rax
mov rax, qword [rbx + 0x28]
mov qword [r8 + 0x30], rax
mov rax, qword [rbx + 0x30]
mov qword [r8 + 0x38], rax
mov rax, qword [rbx + 0x38]
mov qword [r8 + 0x40], rax
mov eax, dword [rbx + 0x40]
mov dword [r8 + 0x48], eax
movups xmm0, xmmword [rbx + 0x48]
movups xmmword [r8 + 0x50], xmm0
movups xmm0, xmmword [rbx + 0x58]
movups xmmword [r8 + 0x60], xmm0
movups xmm0, xmmword [rbx + 0x68]
movups xmmword [r8 + 0x70], xmm0
mov rax, qword [rbx + 0x78]
mov qword [r8 + 0x80], rax
lea rax, [0x180015da0]
mov qword [r8], rax
mov qword [rdi], r8
mov qword [rsp + 0x28], rsi
lea rcx, [rsp + 0x20]
call fcn.180015b90
nop
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1800158c5
mov rdx, qword [rbx + 0x18]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
cmp rdx, 0x1000
jb 0x1800158b4
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800158d8
mov rcx, r8
call fcn.180050b2c
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.18005c4f8
int3
Function at 0x1800158e0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [rdx + 0x10]
mov qword [rbp - 0x11], rax
mov rax, qword [rcx]
mov qword [rbp - 9], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 1], xmm0
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x180015920
lock inc dword [rax + 8]
mov rax, qword [rcx + 8]
mov qword [rbp - 1], rax
mov rax, qword [rcx + 0x10]
mov qword [rbp + 7], rax
mov rax, qword [rcx + 0x18]
mov qword [rbp + 0xf], rax
mov rax, qword [rcx + 0x20]
mov qword [rbp + 0x17], rax
mov eax, dword [rcx + 0x28]
mov dword [rbp + 0x1f], eax
movups xmm0, xmmword [rcx + 0x30]
movups xmmword [rbp + 0x27], xmm0
mov rax, qword [rcx + 0x40]
mov qword [rbp + 0x37], rax
movups xmm0, xmmword [rcx + 0x48]
movups xmmword [rbp + 0x3f], xmm0
mov rsi, qword [rdx]
lea rdi, [rdx + 8]
mov rbx, qword [rdi]
mov ecx, dword [0x1800a4950]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180015992
nop dword [rax]
cmp qword [rax], rbx
je 0x180015aa7
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x180015980
lea rax, [rbp - 0x11]
mov qword [rbp - 0x29], rax
lea rdx, [rbp + 0x37]
mov ecx, 0xa0
call fcn.1800072d0
mov r8, rax
xor edx, edx
mov qword [rax + 0x20], rdx
lea rax, [0x180015f80]
mov qword [r8 + 0x28], rax
mov qword [r8], rdx
mov qword [r8 + 8], rdx
mov qword [r8 + 0x10], rdx
mov qword [r8 + 0x18], rdx
mov dword [r8 + 0x30], edx
mov rcx, qword [rbp - 0x11]
mov qword [r8 + 0x38], rcx
mov rax, qword [rbp - 9]
mov qword [r8 + 0x40], rax
mov qword [r8 + 0x48], rdx
mov qword [r8 + 0x50], rdx
mov rax, qword [rbp + 7]
test rax, rax
je 0x1800159f4
lock inc dword [rax + 8]
mov rax, qword [rbp - 1]
mov qword [r8 + 0x48], rax
mov rax, qword [rbp + 7]
mov qword [r8 + 0x50], rax
mov rax, qword [rbp + 0xf]
mov qword [r8 + 0x58], rax
mov rax, qword [rbp + 0x17]
mov qword [r8 + 0x60], rax
mov eax, dword [rbp + 0x1f]
mov dword [r8 + 0x68], eax
movups xmm0, xmmword [rbp + 0x27]
movups xmmword [r8 + 0x70], xmm0
mov rax, qword [rbp + 0x37]
mov qword [r8 + 0x80], rax
movups xmm0, xmmword [rbp + 0x3f]
movups xmmword [r8 + 0x88], xmm0
mov qword [rbp - 0x19], rdx
mov qword [rbp - 0x21], rdx
mov rdx, rdi
mov rcx, rsi
call fcn.18000b150
nop
lea rcx, [rbp - 0x29]
call fcn.180015ef0
nop
mov rbx, qword [rbp + 7]
test rbx, rbx
je 0x180015a8e
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x180015a8e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x180015a8e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
cmp qword [rax + 8], 0
je 0x180015992
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x11]
call fcn.1800163e0
nop
jmp 0x180015a59
Function at 0x180015b90
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 0x10]
xor esi, esi
mov rdi, rcx
test rbx, rbx
je 0x180015bf7
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x180015bf3
mov rdx, qword [rbx + 0x20]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
cmp rdx, 0x1000
jb 0x180015be2
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180015c4b
mov rcx, r8
call fcn.180050b2c
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x20], rsi
mov qword [rdi + 0x10], rsi
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180015c3b
mov ecx, dword [0x1800a4940]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180015c2f
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x180015c2f
cmp qword [rcx + 0x10], rsi
jne 0x180015c2f
movzx eax, byte [rbx + 0x90]
mov byte [rbx], al
mov qword [rcx + 0x10], rbx
jmp 0x180015c37
mov rcx, rbx
call fcn.180050b68
mov qword [rdi + 8], rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call fcn.18005c4f8
int3

Function at 0x1800163b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
add rcx, 0x10
xor r9d, r9d
mov r8, qword [rcx + 0x78]
lea rdx, [rcx + 0x68]
add rsp, 0x28
jmp fcn.180012c50

Function at 0x18001eb50
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x230
mov rax, qword [0x1800a0040]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rsi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x200
call fcn.18007a010
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rdi, qword [rbx + 0x140]
test rdi, rdi
je 0x18001ebb8
cmp rsi, rdi
je 0x18001ebb8
xor al, al
jmp 0x18001ec42
lea rdx, str.setup_graphics_window:
lea rcx, [0x1800a2b90]
call fcn.18000f6f0
mov rdx, rsi
mov rcx, rax
call fcn.180020340
mov rcx, rax
call fcn.18000fa00
call fcn.1800206c0
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.180020ac0
mov rcx, rax
call fcn.180020dd0
cmp rdi, rsi
jne 0x18001ec0b
cmp qword [rbx + 0x170], 0
je 0x18001ec0b
mov al, 1
jmp 0x18001ec42
test rdi, rdi
je 0x18001ec37
mov r8, qword [rbx + 0x170]
test r8, r8
je 0x18001ec2e
mov rcx, qword [rbx + 0x140]
mov edx, 0xfffffffc
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
xor eax, eax
xchg qword [rbx + 0x140], rax
mov rdx, rsi
mov rcx, rbx
call fcn.18001f9c0
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.180050570
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret