joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002d3e0
Capabilities:
Link function at runtime on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1800a0040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbp, r8
mov rdi, rdx
mov qword [rsp + 0x28], rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x18002d410
mov rdx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov ecx, 0x40
call fcn.1800506b0
mov rsi, rax
mov qword [rsp + 0x20], rax
mov qword [rax], 0
lea rcx, [rax + 8]
mov rdx, rdi
call fcn.180006410
mov qword [rsi + 0x28], rbx
mov qword [rsi + 0x30], rbp
mov byte [rsi + 0x38], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x18002d480
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x18002d47b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18002d4b0
mov rcx, r8
call fcn.180050b2c
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], setsockopt
mov byte [rdi], 0
mov rax, rsi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180050570
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
call fcn.18005c4f8
int3

Function at 0x18002d770
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x60
xor eax, eax
lea rbx, [rcx + 0x28]
test rcx, rcx
mov ecx, dword [0x1800a4940]
cmove rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18002d8a2
cmp qword [rax], rbx
je 0x18002d7ac
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x18002d798
add rsp, 0x60
pop rbx
ret
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x18002d8a2
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x18002d866
cmp ecx, 1
jne 0x18002d8a2
xorps xmm0, xmm0
mov dword [rbx + 0x18], 2
lea rdx, [rbx + 0x20]
lea rcx, [rsp + 0x30]
movdqu xmmword [rsp + 0x30], xmm0
call fcn.1800523dc
lea rax, str.unknown
xorps xmm0, xmm0
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x30]
lea rax, [0x18008fe58]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x40], rax
movdqu xmmword [rsp + 0x50], xmm0
call fcn.1800523dc
lea rcx, [rsp + 0x30]
call fcn.1800524bc
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
call fcn.180052430
lea r8, [0x18009e628]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.180052404
lea rcx, [rsp + 0x50]
call fcn.1800524bc
lea rax, method.std::logic_error.virtual_0
mov qword [rsp + 0x40], rax
jmp 0x18002d88a
xorps xmm0, xmm0
mov dword [rbx + 0x18], 1
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
call fcn.180052430
lea rcx, [rsp + 0x20]
call fcn.18005243c
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x20]
call fcn.1800523d4
lea rcx, [rsp + 0x20]
call fcn.1800524bc
add rsp, 0x60
pop rbx
ret
Function at 0x18002e3d0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x1800a0040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor ebp, ebp
lea rdx, [0x1800a49a8]
lea rcx, [rsp + 0x40]
call fcn.180006250
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.18002e1c0
nop
lea r8, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova r8, qword [rsp + 0x60]
xor edx, edx
lea ecx, [rbp + 4]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rsi, rax
test rax, rax
jne 0x18002e4d9
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
xor r8d, r8d
lea rdx, [0x18008ef88]
mov rcx, rbx
call fcn.1800066c0
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x18002e4ad
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002e4a8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002e59b
call fcn.180050b2c
mov rax, rbx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.180050570
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x90], xmm1
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x18002e512
mov rdx, rdi
lea rcx, [rsp + 0x80]
call fcn.1800066c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x90]
movups xmmword [rbx + 0x10], xmm1
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x18002e4ad
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002e4a8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18002e4a8
call fcn.18005c4f8
int3
Function at 0x1800307b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 8], rcx
push r14
sub rsp, 0x50
mov rdi, rdx
mov r14, rcx
xor ebx, ebx
test byte [rcx + 0xc], 1
jne 0x18003080e
mov rax, qword [rcx]
mov r8, qword [rax + 0x10]
lea rsi, [r8 + 0x28]
test r8, r8
cmove rsi, rbx
mov ecx, dword [0x1800a4940]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18003080e
nop dword [rax + rax]
cmp qword [rax], rsi
je 0x18003085b
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x180030800
lea rax, [r14 + 8]
mov qword [rsp + 0x30], rax
mov ecx, dword [0x1800a4940]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1800308e1
mov rax, qword [rax + 8]
test rax, rax
je 0x1800308e1
mov rdx, qword [rax]
test rdx, rdx
je 0x1800308e1
mov qword [rax], rbx
movzx eax, byte [rdx]
cmp al, 0x14
jb 0x1800308d9
mov byte [rdx + 0x50], al
jmp 0x1800308f2
cmp qword [rax + 8], rbx
je 0x18003080e
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
mov rax, qword [rdi + 8]
mov qword [rsp + 0x28], rax
mov qword [rdi], rbx
mov qword [rdi + 8], rbx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.180031130
nop
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x1800308bf
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1800308bf
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1800308bf
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x180030955
mov rcx, rdx
call fcn.180050b68
mov ecx, 0x51
call fcn.1800506b0
mov rdx, rax
mov byte [rax + 0x50], setsockopt
mov qword [rdx + 0x20], rbx
lea rax, [0x180031030]
mov qword [rdx + 0x28], rax
mov qword [rdx], rbx
mov qword [rdx + 8], rbx
mov qword [rdx + 0x10], 0
mov qword [rdx + 0x18], rbx
mov dword [rdx + 0x30], ebx
mov qword [rdx + 0x38], rbx
mov qword [rdx + 0x40], rbx
mov rax, qword [rdi]
mov qword [rdx + 0x38], rax
mov rax, qword [rdi + 8]
mov qword [rdx + 0x40], rax
mov qword [rdi], rbx
mov qword [rdi + 8], rbx
mov rcx, qword [r14]
mov rcx, qword [rcx + 0x10]
call fcn.180007970
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x30]
call fcn.180030c60
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x180030c60
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 0x180030cbd
mov rbx, qword [rbx + 0x40]
test rbx, rbx
je 0x180030cb5
mov qword [rsp + 0x30], rsi
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x180030cb0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x180030cb0
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 0x180030d12
mov ecx, dword [0x1800a4940]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180030d02
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x180030d02
cmp qword [rcx], 0
jne 0x180030d02
movzx eax, byte [rbx + 0x50]
mov byte [rbx], al
mov qword [rcx], 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 0x1800313f0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x18003141f
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x180031417
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180031474
mov ecx, dword [0x1800a4940]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180031464
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x180031464
cmp qword [rcx], 0
jne 0x180031464
movzx eax, byte [rbx + 0x48]
mov byte [rbx], al
mov qword [rcx], 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
Function at 0x180033f60
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x1800a0040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r14d, r8d
mov rbp, rdx
mov rbx, rcx
mov qword [rsp + 0x58], rcx
mov rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.180006250
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.180033d50
lea r8, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova r8, qword [rsp + 0x60]
xor edx, edx
lea ecx, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rdi, rax
xor r15d, r15d
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 6]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
test rax, rax
jne 0x180034098
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x18003403e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180034039
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800341a0
call fcn.180050b2c
movdqa xmm0, xmmword [0x180090ab0]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r15w
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x180034091
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18003408c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800341a6
mov rcx, r8
call fcn.180050b2c
xor al, al
jmp 0x180034169
imul ecx, r14d, 0x32
add rcx, rsi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
mov word [rcx + 0x30], ax
movzx r8d, word [rbp + 0x10]
add r8, 0x14
mov rdx, rbp
call fcn.18007a3d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x180034118
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180034113
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800341a0
call fcn.180050b2c
movdqa xmm0, xmmword [0x180090ab0]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r15w
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x180034167
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x180034162
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800341a6
mov rcx, r8
call fcn.180050b2c
mov al, 1
mov word [rbx], r15w
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r15
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180050570
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.18005c4f8
nop
call fcn.18005c4f8
int3
Function at 0x1800341b0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0xb0
mov rax, qword [0x1800a0040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x60], rdx
xor r14d, r14d
lea rcx, [rsp + 0x40]
call fcn.180006250
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.180033b40
nop
lea r8, [rsp + 0x68]
cmp qword [rsp + 0x80], 7
cmova r8, qword [rsp + 0x68]
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rbp, rax
test rax, rax
jne 0x180034321
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
xor r8d, r8d
lea rdx, [0x18008ef88]
mov rcx, rdi
call fcn.1800066c0
nop
mov rdx, qword [rsp + 0x80]
cmp rdx, 7
jbe 0x180034293
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003428e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800343f3
call fcn.180050b2c
movdqa xmm0, xmmword [0x180090ab0]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r14w
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x1800342e6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1800342e1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800343ed
mov rcx, r8
call fcn.180050b2c
mov rax, rdi
mov word [rbx], r14w
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.180050570
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x88], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x98], xmm1
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x180034360
mov rdx, rsi
lea rcx, [rsp + 0x88]
call fcn.1800066c0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [rsp + 0x88]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0x98]
movups xmmword [rdi + 0x10], xmm1
mov rdx, qword [rsp + 0x80]
cmp rdx, 7
jbe 0x180034293
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003428e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800343f3
jmp 0x18003428e
call fcn.18005c4f8
nop
call fcn.18005c4f8
int3
Function at 0x180034400
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0xb0
mov rax, qword [0x1800a0040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x60], rdx
xor r14d, r14d
lea rcx, [rsp + 0x40]
call fcn.180006250
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.18002e1c0
nop
lea r8, [rsp + 0x68]
cmp qword [rsp + 0x80], 7
cmova r8, qword [rsp + 0x68]
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rbp, rax
test rax, rax
jne 0x180034571
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
xor r8d, r8d
lea rdx, [0x18008ef88]
mov rcx, rdi
call fcn.1800066c0
nop
mov rdx, qword [rsp + 0x80]
cmp rdx, 7
jbe 0x1800344e3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800344de
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180034643
call fcn.180050b2c
movdqa xmm0, xmmword [0x180090ab0]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r14w
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x180034536
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x180034531
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18003463d
mov rcx, r8
call fcn.180050b2c
mov rax, rdi
mov word [rbx], r14w
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.180050570
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x88], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x98], xmm1
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1800345b0
mov rdx, rsi
lea rcx, [rsp + 0x88]
call fcn.1800066c0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [rsp + 0x88]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0x98]
movups xmmword [rdi + 0x10], xmm1
mov rdx, qword [rsp + 0x80]
cmp rdx, 7
jbe 0x1800344e3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800344de
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180034643
jmp 0x1800344de
call fcn.18005c4f8
nop
call fcn.18005c4f8
int3
Function at 0x18003abb0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x1800a0040]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 9], xmm0
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x18003abef
lock inc dword [rax + 8]
mov rax, qword [rcx + 0x10]
mov qword [rbp - 9], rax
mov rax, qword [rcx + 0x18]
mov qword [rbp - 1], rax
movzx eax, byte [rcx + 0x20]
mov byte [rbp + 7], al
movups xmm0, xmmword [rdx]
movups xmmword [rbp + 0xf], xmm0
movups xmm1, xmmword [r8]
movups xmmword [rbp + 0x1f], xmm1
movsd xmm0, qword [r8 + 0x10]
movsd qword [rbp + 0x2f], xmm0
mov eax, dword [r8 + 0x18]
mov dword [rbp + 0x37], eax
mov rsi, qword [rcx]
lea rdi, [rcx + 8]
mov rbx, qword [rdi]
mov ecx, dword [0x1800a4950]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18003ac54
cmp qword [rax], rbx
je 0x18003ad55
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x18003ac42
lea rax, [rbp - 9]
mov qword [rbp - 0x29], rax
lea rdx, [rbp - 9]
mov ecx, 0x88
call fcn.1800072d0
mov r8, rax
xor ecx, ecx
mov qword [rax + 0x20], rcx
lea rax, [0x18003c530]
mov qword [r8 + 0x28], rax
mov qword [r8], rcx
mov qword [r8 + 8], rcx
mov qword [r8 + 0x10], rcx
mov qword [r8 + 0x18], rcx
mov dword [r8 + 0x30], ecx
mov qword [r8 + 0x38], rcx
mov qword [r8 + 0x40], rcx
mov rax, qword [rbp - 9]
mov qword [r8 + 0x38], rax
mov rax, qword [rbp - 1]
mov qword [r8 + 0x40], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 9], xmm0
movzx eax, byte [rbp + 7]
mov byte [r8 + 0x48], al
movups xmm0, xmmword [rbp + 0xf]
movups xmmword [r8 + 0x50], xmm0
movups xmm0, xmmword [rbp + 0x1f]
movups xmmword [r8 + 0x60], xmm0
movsd xmm1, qword [rbp + 0x2f]
movsd qword [r8 + 0x70], xmm1
mov eax, dword [rbp + 0x37]
mov dword [r8 + 0x78], eax
mov qword [rbp - 0x19], rcx
mov qword [rbp - 0x21], rcx
mov rdx, rdi
mov rcx, rsi
call fcn.18000b150
nop
lea rcx, [rbp - 0x29]
call fcn.18003c4a0
nop
mov rbx, qword [rbp - 1]
test rbx, rbx
je 0x18003ad30
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18003ad30
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x18003ad30
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.180050570
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
cmp qword [rax + 8], 0
je 0x18003ac54
lea rdx, [rbp - 9]
lea rcx, [rbp - 9]
call fcn.18003cf20
nop
jmp 0x18003acfb
Function at 0x18003ad80
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x18003ada5
lock inc dword [rax + 8]
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x38], rax
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rdx]
movups xmmword [rsp + 0x48], xmm0
mov rax, qword [r8]
mov qword [rsp + 0x58], rax
mov rsi, qword [rcx]
lea rdi, [rcx + 8]
mov rbx, qword [rdi]
mov ecx, dword [0x1800a4950]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18003adf4
cmp qword [rax], rbx
je 0x18003aed3
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x18003ade2
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x38]
mov ecx, 0x68
call fcn.1800072d0
mov r8, rax
xor ecx, ecx
mov qword [rax + 0x20], rcx
lea rax, [0x18003c320]
mov qword [r8 + 0x28], rax
mov qword [r8], rcx
mov qword [r8 + 8], rcx
mov qword [r8 + 0x10], rcx
mov qword [r8 + 0x18], rcx
mov dword [r8 + 0x30], ecx
mov qword [r8 + 0x38], rcx
mov qword [r8 + 0x40], rcx
mov rax, qword [rsp + 0x38]
mov qword [r8 + 0x38], rax
mov rax, qword [rsp + 0x40]
mov qword [r8 + 0x40], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [r8 + 0x48], xmm0
mov rax, qword [rsp + 0x58]
mov qword [r8 + 0x58], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov rdx, rdi
mov rcx, rsi
call fcn.18000b150
nop
lea rcx, [rsp + 0x20]
call fcn.18003c290
nop
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x18003aec1
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18003aec1
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x18003aec1
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
cmp qword [rax + 8], 0
je 0x18003adf4
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.18003cf40
nop
jmp 0x18003ae8b