joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013330
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x14007c010]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rsi, r8
mov r14, rdx
mov rbx, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0xb0], r8
xor r15d, r15d
mov dword [rsp + 0x20], r15d
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx + 0x10], r15
mov qword [rdx + 0x18], r15
xor r8d, r8d
lea rdx, [0x140064b1d]
mov rcx, r14
call fcn.14000ed90
mov dword [rsp + 0x20], 1
lea rdx, [rbx + 0x28]
cmp qword [rdx + 0x18], 0x10
jb 0x1400133a9
mov rdx, qword [rdx]
lea r8, [0x140066038]
lea rcx, [rsp + 0xa8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x140013462
xor edx, edx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rbx, eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov ecx, ebx
add ecx, 1
mov rdi, 0xffffffffffffffff
cmovb rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
mov r9, qword [rsp + 0xa8]
lea r8d, [rdi + 2]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov byte [rbx + rbp], 0
inc rdi
cmp byte [rdi + rbp], 0
jne 0x140013442
mov r8, rdi
mov rdx, rbp
mov rcx, r14
call fcn.14001d060
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rax, [rsp + 0x28]
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov r8d, 6
lea rdx, str.filexp
lea rcx, [rsp + 0x28]
call fcn.14000ed90
nop
lea rax, [rsp + 0x68]
mov qword [rsp + 0x58], rax
mov rdx, r14
lea rcx, [rsp + 0x68]
call fcn.140019340
mov rbx, rax
mov rdx, rsi
lea rcx, [rsp + 0x88]
call fcn.140019340
nop
lea r8, [rsp + 0x28]
mov rdx, rbx
mov rcx, rax
call fcn.140014670
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x140013508
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140013503
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140013541
mov rcx, r8
call fcn.14005ca90
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], 0
mov rax, r14
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14005ca70
mov rbx, qword [rsp + 0x108]
add rsp, 0xc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140018700
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x14007c010]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movzx ebx, dl
mov rdi, rcx
mov eax, 1
lock xadd dword [0x140080d38], eax
inc eax
cmp eax, 1
jne 0x14001874d
lea ecx, [rax + 1]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x140080d3c], eax
test bl, bl
je 0x14001875f
xor ebx, ebx
lock xadd dword [0x140080d3c], ebx
test ebx, ebx
jne 0x140018783
mov rax, rdi
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14005ca70
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
mov rax, qword gs:[0x58]
mov edx, 4
mov dword [rsp + 0x24], 0
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140080d58], eax
jle 0x1400187d4
lea rcx, [0x140080d58]
call fcn.14005cb04
cmp dword [0x140080d58], 0xffffffff
jne 0x1400187d4
lea rcx, [0x140063b00]
call fcn.14005d15c
lea rcx, [0x140080d58]
call fcn.14005ca98
lea rax, [0x14007c058]
mov dword [rsp + 0x20], ebx
lea rdx, str.winsock
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
call fcn.140009790
int3
Function at 0x140042360
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x18
mov rax, qword [0x14007c010]
xor rax, rsp
mov qword [rsp + 8], rax
cmp qword [r8 + 0x18], 0x10
mov r10, r8
mov dword [rsp], r9d
jb 0x140042384
mov r10, qword [r8]
cmp qword [rdx + 0x18], 0x10
mov rax, qword [rdx + 0x10]
jb 0x140042397
add rax, qword [rdx]
mov rdx, qword [rdx]
jmp 0x14004239a
add rax, rdx
xor r8d, r8d
cmp rdx, rax
je 0x1400423ca
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 0x1400423b0
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.14005ca70
add rsp, 0x18
ret

Function at 0x1400423e0
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 0x140042450
mov rax, qword [rcx + 0x80]
xor ecx, ecx
mov rdx, qword [rax + 0x10]
mov dword [rsp + 0x20], edx
test r8, r8
je 0x14004243e
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 0x140042420
mov rax, qword [rbp + 0x80]
mov rcx, rdi
and ecx, 3
je 0x14004244c
shl cl, 3
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.1400191d0
mov r10, qword [rbp + 0x80]
mov rax, qword [r10]
cmp dword [rax + 0x70], 1
jne 0x14004250a
cmp qword [rbx + 0x18], 0x10
jb 0x140042497
mov rdx, qword [rbx]
mov rbx, rdx
add rdx, qword [r14]
jmp 0x14004249d
mov rdx, qword [r14]
add rdx, rbx
lea rax, [r15 + rbx]
cmp rax, rdx
je 0x14004250a
lea rbx, [0x140068de0]
nop dword [rax]
cmp dword [r10 + 0x18], 0
movzx r8d, byte [rax]
mov r9d, r8d
movzx r11d, byte [r8 + rbx]
je 0x1400424d3
mov ecx, dword [r10 + 0x1c]
and r9d, 0x3f
shl ecx, 6
or r9d, ecx
jmp 0x1400424e2
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 0x140042520
inc rax
cmp rax, rdx
jne 0x1400424b0
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], select
call fcn.140010050
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 0x1400448f0
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.140046020
xorps xmm0, xmm0
movdqa xmmword [rsp + 0xa0], xmm0
mov rax, qword [rsi + 0x78]
test rax, rax
je 0x140044941
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 0x140044991
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 [0x1400812d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400449e2
nop dword [rax]
cmp qword [rax], rbx
je 0x140044ad9
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400449d0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x40]
mov ecx, 0xe0
call fcn.140009a10
mov rbx, rax
mov qword [rax + 0x20], r14
lea rax, [0x140056230]
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.1400564d0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov r8, rbx
lea rdx, [rsi + 8]
mov rcx, rdi
call fcn.14000e3e0
nop
mov edi, 0xffffffff
mov rbx, qword [rsp + 0xd0]
test rbx, rbx
je 0x140044a83
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140044a83
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140044a83
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0xa8]
test rbx, rbx
je 0x140044ab7
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140044ab7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140044ab7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lea rcx, [rsp + 0x48]
call fcn.14001d280
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 0x1400449e2
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140059600
nop
jmp 0x140044a48
Function at 0x140046df0
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 0x140046e47
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.140028380
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140046e8a
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 [0x1400812d8]
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.140009a10
mov rbx, rax
mov qword [rax + 0x20], r14
lea rax, [0x140055450]
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.140028380
mov rcx, qword [rbp + 0x10]
lock inc dword [rcx + 0x30]
mov rdx, rbx
call fcn.14000ac90
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
lea rcx, [rsp + 0x28]
call fcn.1400553e0
nop
mov rcx, qword [rsp + 0xd8]
test rcx, rcx
je 0x140046f3d
mov rax, qword [rcx]
lea rdx, [rsp + 0xa0]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov dword [rsi], r14d
lea rax, [0x14007c068]
mov qword [rsi + 8], rax
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140046f65
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 0x14004e4b0
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 0x14004e6b7
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 0x14004e53e
test rdx, rdx
je 0x14004e53e
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 0x14004e527
lea rcx, [r9 + rdx]
mov rdx, rbp
jmp 0x14004e535
sub rdx, r8
inc qword [rdi + 0x38]
add rax, 0x10
mov rcx, rbp
mov qword [rdi + 0x40], rcx
cmp rax, r11
jne 0x14004e4f7
mov ecx, dword [rsi]
test ecx, ecx
jne 0x14004e54f
test rbx, rbx
jne 0x14004e54f
lea rbx, [rdi + 0x30]
jmp 0x14004e56e
lea rbx, [rdi + 0x30]
mov rax, qword [rdi + 0x28]
cmp qword [rbx], rax
jae 0x14004e56e
mov r8d, 0x10000
test ecx, ecx
cmovne r8, rbp
je 0x14004e6c3
mov rbx, qword [rbx]
lea rdx, [rdi + 0x60]
lea rcx, [rsp + 0x50]
call fcn.14004e380
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 [0x1400812d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14004e5c2
nop dword [rax + rax]
cmp qword [rax], rbx
je 0x14004e69a
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14004e5b0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x50]
mov ecx, 0xb8
call fcn.140009a10
mov rbx, rax
mov qword [rax + 0x20], rbp
lea rax, [0x140057aa0]
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 rcx, qword [rsp + 0x50]
mov qword [rbx + 0x38], rcx
movzx eax, byte [rsp + 0x58]
mov byte [rbx + 0x40], al
lea rcx, [rbx + 0x48]
lea rdx, [rsp + 0x60]
call fcn.140028380
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.14000e3e0
nop
lea rcx, [rsp + 0x58]
call fcn.14001d280
jmp 0x14004e6fc
cmp qword [rax + 8], 0
je 0x14004e5c2
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.14005a0b0
nop
jmp 0x14004e68e
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.14004ee00
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.1400566f0
mov rbx, qword [rsp + 0x220]
add rsp, 0x1f0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400519c0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x180
mov rdi, rdx
mov rbx, rcx
add rdx, 0x10
lea rcx, [rsp + 0x40]
call fcn.140054d90
mov rdx, rbx
lea rcx, [rsp + 0xb8]
call fcn.1400555b0
nop
mov rbp, qword [rdi]
lea rsi, [rdi + 8]
mov rbx, qword [rsi]
mov ecx, dword [0x1400812d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140051a27
cmp qword [rax], rbx
je 0x140051b0e
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140051a15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0xc8]
mov ecx, 0x168
call fcn.140009a10
mov rdi, rax
xor r14d, r14d
mov qword [rax + 0x20], r14
lea rax, [0x1400592b0]
mov qword [rdi + 0x28], rax
mov qword [rdi], r14
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
mov dword [rdi + 0x30], r14d
lea rdx, [rsp + 0x40]
lea rcx, [rdi + 0x38]
call fcn.140028400
lea rcx, [rdi + 0xb0]
lea rdx, [rsp + 0xb8]
call fcn.1400555b0
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
call fcn.14000e3e0
nop
lea rcx, [rsp + 0xb8]
call fcn.140047d50
mov rbx, qword [rsp + 0xa8]
test rbx, rbx
je 0x140051aec
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140051aec
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140051aec
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lea rcx, [rsp + 0x48]
call fcn.14001d280
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
cmp qword [rax + 8], 0
je 0x140051a27
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.14005a4c0
nop
jmp 0x140051aa6
Function at 0x1400540d0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x150
mov rbx, rdx
mov rsi, rcx
mov rax, qword [rdx + 0x10]
mov qword [rsp + 0x40], rax
add rdx, 0x18
lea rcx, [rsp + 0x48]
call fcn.140046020
xorps xmm0, xmm0
movdqa xmmword [rsp + 0xa0], xmm0
mov rax, qword [rbx + 0x78]
test rax, rax
je 0x140054115
lock inc dword [rax + 8]
mov rax, qword [rbx + 0x70]
mov qword [rsp + 0xa0], rax
mov rax, qword [rbx + 0x78]
mov qword [rsp + 0xa8], rax
movups xmm0, xmmword [rsi]
movaps xmmword [rsp + 0xb0], xmm0
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0xc0], rax
lea rdx, [rsi + 0x18]
lea rcx, [rsp + 0xc8]
call fcn.140028300
movups xmm0, xmmword [rsi + 0x80]
movaps xmmword [rsp + 0x130], xmm0
mov rsi, qword [rbx]
lea rdi, [rbx + 8]
mov rbx, qword [rdi]
mov ecx, dword [0x1400812d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140054192
nop
cmp qword [rax], rbx
je 0x140054262
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140054180
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0xc0]
mov ecx, 0x140
call fcn.140009a10
mov rbx, rax
xor ebp, ebp
mov qword [rax + 0x20], rbp
lea rax, [0x140059420]
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 rcx, qword [rsp + 0x40]
mov qword [rbx + 0x38], rcx
lea rcx, [rbx + 0x40]
lea rdx, [rsp + 0x48]
call fcn.140028300
movaps xmm0, xmmword [rsp + 0xb0]
movups xmmword [rbx + 0xa8], xmm0
mov rax, qword [rsp + 0xc0]
mov qword [rbx + 0xb8], rax
lea rcx, [rbx + 0xc0]
lea rdx, [rsp + 0xc8]
call fcn.140028300
movaps xmm0, xmmword [rsp + 0x130]
movups xmmword [rbx + 0x128], xmm0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.14000e3e0
nop
lea rcx, [rsp + 0x40]
call fcn.140054650
mov rbx, qword [rsp + 0x180]
add rsp, 0x150
pop rdi
pop rsi
pop rbp
ret
cmp qword [rax + 8], 0
je 0x140054192
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.14005a490
nop
jmp 0x140054245
Function at 0x140054770
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0xe0
mov r14, rdx
mov rbx, rcx
xor edi, edi
mov dword [rcx + 0x28], r9d
mov ecx, dword [rdx]
cmp r9d, 1
je 0x1400548d7
mov rsi, qword [rbx + 0x20]
add rsi, r8
mov qword [rbx + 0x20], rsi
test ecx, ecx
jne 0x1400547b1
test r8, r8
je 0x1400547c4
cmp rsi, qword [rbx + 0x18]
jae 0x1400547c4
test ecx, ecx
jne 0x1400547c4
cmp rsi, qword [rbx]
jb 0x1400548e4
mov rax, qword [rbx + 0x40]
mov qword [rsp + 0x50], rax
lea rdx, [rbx + 0x48]
lea rcx, [rsp + 0x58]
call fcn.1400460b0
movups xmm0, xmmword [r14]
movups xmmword [rsp + 0xb8], xmm0
mov qword [rsp + 0xc8], rsi
mov rbp, qword [rbx + 0x30]
lea r14, [rbx + 0x38]
mov rbx, qword [r14]
mov ecx, dword [0x1400812d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14005481e
nop dword [rax + rax]
cmp qword [rax], rbx
je 0x14005483f
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140054810
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov rsi, qword [rsp + 0x50]
cmp byte [rsi + 0x400], 0
jne 0x140054858
mov byte [rsi + 0x400], 1
jmp 0x140054865
cmp qword [rax + 8], 0
je 0x14005481e
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.14005ab90
nop
jmp 0x1400548cb
mov ecx, 0xc0
call fcn.14005ce18
mov rsi, rax
mov qword [rsi + 0x20], rdi
lea rax, [0x1400599a0]
mov qword [rsi + 0x28], rax
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], rdi
mov dword [rsi + 0x30], edi
lea rdx, [rsp + 0x50]
lea rcx, [rsi + 0x38]
call fcn.140047100
movups xmm0, xmmword [rsp + 0xb8]
movups xmmword [rsi + 0xa0], xmm0
mov rax, qword [rsp + 0xc8]
mov qword [rsi + 0xb0], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov r8, rsi
mov rdx, r14
mov rcx, rbp
call fcn.14000e3e0
nop
lea rcx, [rsp + 0x60]
call fcn.14001d280
jmp 0x14005493a
test ecx, ecx
jne 0x1400548e9
mov rax, qword [rbx]
cmp qword [rbx + 0x20], rax
jae 0x1400548e9
mov edi, 0x10000
mov rcx, qword [rbx + 0x20]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
cmovae rcx, rdx
sub rdx, rcx
add rcx, qword [rbx + 0x10]
mov qword [rsp + 0x38], rcx
cmp rdx, rdi
cmovae rdx, rdi
mov qword [rsp + 0x40], rdx
mov rax, qword [rbx + 8]
lea r8, [rax + 0x68]
lea rdx, [rax + 8]
mov rcx, qword [rax]
add rcx, 0x28
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rsp + 0x38]
call fcn.140057f70
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140054960
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 0x140054b0e
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 0x1400549ee
test rdx, rdx
je 0x1400549ee
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 0x1400549d7
lea rcx, [r9 + rdx]
mov rdx, rbp
jmp 0x1400549e5
sub rdx, r8
inc qword [rdi + 0x38]
add rax, 0x10
mov rcx, rbp
mov qword [rdi + 0x40], rcx
cmp rax, r11
jne 0x1400549a7
mov ecx, dword [rsi]
test ecx, ecx
jne 0x1400549ff
test rbx, rbx
jne 0x1400549ff
lea rbx, [rdi + 0x30]
jmp 0x140054a1e
lea rbx, [rdi + 0x30]
mov rax, qword [rdi + 0x28]
cmp qword [rbx], rax
jae 0x140054a1e
mov r8d, 0x10000
test ecx, ecx
cmovne r8, rbp
je 0x140054b1a
mov rbx, qword [rbx]
mov rax, qword [rdi + 0x60]
mov qword [rsp + 0x50], rax
lea rdx, [rdi + 0x68]
lea rcx, [rsp + 0x58]
call fcn.1400460b0
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0xb8], xmm0
mov qword [rsp + 0xc8], rbx
mov rsi, qword [rdi + 0x50]
mov rbx, qword [rdi + 0x58]
mov ecx, dword [0x1400812d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140054a72
cmp qword [rax], rbx
je 0x140054a93
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140054a64
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov rbx, qword [rsp + 0x50]
cmp byte [rbx + 0x400], 0
jne 0x140054aac
mov byte [rbx + 0x400], 1
jmp 0x140054ab9
cmp qword [rax + 8], 0
je 0x140054a72
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.14005ab90
nop
jmp 0x140054b02
mov ecx, 0xc0
call fcn.14005ce18
mov rbx, rax
mov qword [rbx + 0x20], rbp
lea rax, [0x140059af0]
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
lea rcx, [rbx + 0x38]
lea rdx, [rsp + 0x50]
call fcn.140059c70
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
mov r8, rbx
lea rdx, [rdi + 0x58]
mov rcx, rsi
call fcn.14000e3e0
nop
lea rcx, [rsp + 0x60]
call fcn.14001d280
jmp 0x140054b53
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.14004ee00
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.140058160
mov rbx, qword [rsp + 0x220]
add rsp, 0x1f0
pop rdi
pop rsi
pop rbp
ret