joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008d10
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x60
mov rax, qword [0x140091240]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
mov rcx, qword [0x140091e18]
lea rax, [0x140091e18]
cmp rcx, rax
je 0x140008d5f
test byte [rcx + 0x1c], 0x10
je 0x140008d5f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140082210]
mov edx, 0x1c
call fcn.140001790
xor ebp, ebp
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionThemesPersonalize
mov r9d, 0x20019
mov qword [rsp + 0x48], rbp
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x50], rbp
xor dil, dil
call fcn.140007010
test eax, eax
jne 0x140008ddb
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], ebp
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SystemUsesLightTheme
mov dword [rsp + 0x34], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140008ddb
cmp dword [rsp + 0x38], 4
jne 0x140008ddb
cmp dword [rsp + 0x30], ebp
sete dil
mov rcx, qword [rbx + 0x518]
test rcx, rcx
je 0x140008e14
mov ecx, dword [rcx + 0x268]
test ecx, ecx
je 0x140008e14
sub ecx, 1
je 0x140008e14
sub ecx, 1
je 0x140008e0a
cmp ecx, 1
jne 0x140008e14
movzx edx, dil
add rdx, 0x68
jmp 0x140008e1c
movzx edx, dil
add rdx, 0x66
jmp 0x140008e1c
movzx edx, dil
add rdx, 0x64
lea rcx, [rbx + 0x60]
call fcn.140007a20
cmp qword [rsp + 0x40], rbp
je 0x140008e37
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140036b80
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x14001daf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140091240]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xor ebp, ebp
mov qword [r11 - 0x30], rbp
mov dword [rsp + 0x50], ebp
mov qword [r11 - 0x20], rbp
mov qword [r11 - 0x40], rbp
lea rcx, [r11 - 0x40]
call fcn.140009a10
nop
mov r9d, 0x20019
mov rbx, qword [rsp + 0x38]
mov r8, rbx
lea rcx, [rsp + 0x48]
call fcn.140007010
test eax, eax
je 0x14001db92
mov ecx, eax
call fcn.14001e3f0
mov edi, eax
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001db7b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
test edi, edi
jns 0x14001dbae
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001dc1c
jmp 0x14001dc16
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001dbae
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x40], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rsi
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001dc0e
cmp dword [rsp + 0x38], 4
jne 0x14001dc0e
cmp dword [rsp + 0x30], eax
setne dil
test rbx, rbx
je 0x14001dc08
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, dil
jmp 0x14001dc1e
test rbx, rbx
je 0x14001dc1c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140036b80
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14001dc50
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x60
mov rax, qword [0x140091240]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx esi, dl
mov rbp, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rax
mov r8b, 1
lea rcx, [rsp + 0x38]
call fcn.14001e230
mov ebx, eax
test eax, eax
js 0x14001dcdd
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14001dcdb
mov ecx, eax
call fcn.14001e3f0
mov ebx, eax
jmp 0x14001dcdd
xor ebx, ebx
cmp qword [rsp + 0x38], 0
je 0x14001dcf0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140036b80
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x14001dd20
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x140091240]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edi, edx
mov rbp, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xor r14d, r14d
mov qword [r11 - 0x40], r14
mov dword [r11 - 0x38], r14d
mov qword [r11 - 0x30], r14
mov qword [r11 - 0x50], r14
lea rcx, [r11 - 0x50]
call fcn.140009a10
nop
mov r9d, 0x20019
mov rbx, qword [rsp + 0x38]
mov r8, rbx
lea rcx, [rsp + 0x48]
call fcn.140007010
test eax, eax
je 0x14001ddbd
mov ecx, eax
call fcn.14001e3f0
mov esi, eax
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001ddad
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
test esi, esi
jns 0x14001ddd9
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001de30
jmp 0x14001de2a
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001ddd9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x40], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rbp
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001de22
cmp dword [rsp + 0x38], 4
jne 0x14001de22
mov edi, dword [rsp + 0x30]
test rbx, rbx
je 0x14001de30
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140036b80
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14001de60
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x60
mov rax, qword [0x140091240]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ebp, edx
mov rsi, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rax
mov r8b, 1
lea rcx, [rsp + 0x38]
call fcn.14001e230
mov ebx, eax
test eax, eax
js 0x14001deec
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14001deea
mov ecx, eax
call fcn.14001e3f0
mov ebx, eax
jmp 0x14001deec
xor ebx, ebx
cmp qword [rsp + 0x38], 0
je 0x14001deff
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140036b80
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x14001df20
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140091240]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, rdx
mov rbp, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xor r15d, r15d
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x38], r15
lea rcx, [rsp + 0x38]
call fcn.140009a10
nop
mov r9d, 0x20019
mov rbx, qword [rsp + 0x38]
mov r8, rbx
lea rcx, [rsp + 0x40]
call fcn.140007010
test eax, eax
je 0x14001dfbe
mov ecx, eax
call fcn.14001e3f0
mov edi, eax
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001dfb0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
test edi, edi
jns 0x14001dfda
mov rsi, qword [rsp + 0x40]
jmp 0x14001e0ff
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001dfda
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov dword [rsp + 0x30], r15d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rbp
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x14001e01d
mov eax, dword [rsp + 0x38]
dec eax
cmp eax, 1
jbe 0x14001e02b
mov ebx, reloc.WS2_32.dll_listen
mov ecx, ebx
call fcn.14001e3f0
mov edi, eax
jmp 0x14001e0ff
mov ebx, dword [rsp + 0x30]
shr ebx, 1
mov rax, qword [r14]
mov edx, 1
sub edx, dword [rax - 8]
mov ecx, dword [rax - 0xc]
sub ecx, ebx
or ecx, edx
jge 0x14001e04f
mov edx, ebx
mov rcx, r14
call fcn.1400040b0
mov rdi, qword [r14]
lea eax, [rbx + rbx]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x14001e0be
mov eax, dword [rsp + 0x38]
dec eax
cmp eax, 1
jbe 0x14001e094
mov ebx, reloc.WS2_32.dll_listen
jmp 0x14001e0be
test rdi, rdi
je 0x14001e0bb
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14001e0b7
test al, 1
jne 0x14001e0b0
shr rax, 1
cmp word [rdi + rax*2 - 2], 0
je 0x14001e0bb
mov ebx, reloc.WS2_32.dll_listen
jmp 0x14001e0be
mov word [rdi], r15w
mov ebx, r15d
mov rcx, qword [r14]
test rcx, rcx
jne 0x14001e0cb
mov eax, r15d
jmp 0x14001e0d8
movsxd rdx, dword [rcx - 0xc]
call fcn.14003ccd0
test eax, eax
js 0x14001e130
mov rcx, qword [r14]
cmp eax, dword [rcx - 0xc]
jg 0x14001e130
mov dword [rcx - 0x10], eax
mov edx, eax
mov rax, qword [r14]
mov word [rax + rdx*2], r15w
test ebx, ebx
je 0x14001e0fc
mov ecx, ebx
call fcn.14001e3f0
mov edi, eax
jmp 0x14001e0ff
mov edi, r15d
test rsi, rsi
je 0x14001e10d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140036b80
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80070057
call fcn.1400022e0
int3
Function at 0x14001e140
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x50
mov rax, qword [0x140091240]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rdx
mov rbp, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x40], rax
mov r8b, 1
lea rcx, [rsp + 0x30]
call fcn.14001e230
mov ebx, eax
test eax, eax
js 0x14001e1f3
test rdi, rdi
jne 0x14001e1a4
mov eax, reloc.WS2_32.dll_listen
mov ecx, eax
call fcn.14001e3f0
mov ebx, eax
jmp 0x14001e1f3
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rdi + rax*2], 0
jne 0x14001e1b0
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14001e1f1
mov ecx, eax
call fcn.14001e3f0
mov ebx, eax
jmp 0x14001e1f3
xor ebx, ebx
cmp qword [rsp + 0x30], 0
je 0x14001e206
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140036b80
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x1400227a0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
movaps xmmword [rsp + 0xb0], xmm6
mov rax, qword [0x140091240]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov rsi, rdx
mov rdi, rcx
lea r13, [0x140091e18]
mov rcx, qword [0x140091e18]
cmp rcx, r13
je 0x14002280b
test byte [rcx + 0x1c], 1
je 0x14002280b
movzx r9d, word [rdx + 0x22]
mov rax, qword [rdx + 0xb8]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.140022150
mov rcx, qword [rdi]
movzx eax, word [rsi + 0x22]
mov word [rcx + 0xe0], ax
movzx r14d, word [rsi + 0x22]
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov ebx, eax
xor r12d, r12d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x59], xmm0
mov dword [rbp - 0x49], r12d
mov eax, 2
mov r15d, 0x17
mov word [rbp - 0x61], ax
movzx ecx, r14w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x5f], ax
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x5d], eax
mov eax, r15d
cmp word [rbp - 0x61], 2
mov r14d, 2
cmove eax, r14d
mov dword [rbp - 0x69], eax
lea rdx, [rbp - 0x69]
lea rcx, [rdi + 0x38]
call fcn.140023430
lea rdx, [rbp - 0x61]
lea rcx, [rdi + 0x38]
call fcn.140023330
lea rcx, [rdi + 0x38]
call fcn.140023240
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
mov byte [rbp - 0x12], 1
mov word [rbp - 0x41], r15w
movzx ecx, word [rsi + 0x22]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x3f], ax
mov dword [rbp - 0x3d], r12d
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rbp - 0x39], xmm0
mov dword [rbp - 0x29], r12d
cmp word [rbp - 0x41], r14w
cmove r15d, r14d
mov dword [rbp - 0x69], r15d
lea rdx, [rbp - 0x69]
lea rcx, [rdi + 0xd8]
call fcn.140023430
lea rdx, [rbp - 0x41]
lea rcx, [rdi + 0xd8]
call fcn.140023330
lea rcx, [rdi + 0xd8]
call fcn.140023240
mov rcx, rdi
call fcn.1400229f0
mov rbx, qword [rsi + 0xb8]
test rbx, rbx
jne 0x140022950
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
movups xmmword [rbp - 0x11], xmm0
movups xmmword [rbp - 1], xmm0
lea rcx, [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp - 1]
mov ecx, 4
cmp eax, ecx
cmovl eax, ecx
mov ecx, 0x40
cmp eax, ecx
cmovg eax, ecx
movsxd rbx, eax
mov rcx, qword [0x140091e18]
cmp rcx, r13
je 0x14002297a
test byte [rcx + 0x1c], 1
je 0x14002297a
mov edx, setsockopt
mov r9, rbx
lea r8, [0x140082e48]
mov rcx, qword [rcx + 0x10]
call fcn.1400046d0
test rbx, rbx
je 0x1400229b9
mov qword [rbp - 0x69], rdi
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rdi + 0x10]
lea r8, [rbp - 0x69]
cmp rdx, qword [rdi + 0x18]
je 0x1400229aa
call fcn.140024050
add qword [rdi + 0x10], 0x10
jmp 0x1400229b3
lea rcx, [rdi + 8]
call fcn.140023d90
sub rbx, 1
jne 0x140022990
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140036b80
mov rbx, qword [rsp + 0x110]
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140025ec0
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 0x140025ee7
add rcx, 0x20
call fcn.1400250a0
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140025f33
mov ecx, dword [0x140095af8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140025f23
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140025f23
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x140025f3e
inc ecx
inc rax
cmp rax, 6
jl 0x140025f11
mov rcx, rbx
call fcn.140036b60
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0xb0]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret

Function at 0x140025f70
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 0x140025f9f
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x140025f97
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140025fe8
mov ecx, dword [0x140095af8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140025fd8
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140025fd8
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x140025ff3
inc ecx
inc rax
cmp rax, 2
jl 0x140025fc6
mov rcx, rbx
call fcn.140036b60
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x48]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140027350
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x140091240]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, r9
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
test byte [rdx + 8], 1
jne 0x14002739e
mov rbx, qword [rcx]
mov ecx, dword [0x140095b00]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002739e
cmp qword [rax], rbx
je 0x1400273bc
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140027390
mov qword [rsp + 0x20], r14
mov ecx, dword [0x140095af8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
test rax, rax
je 0x1400273f7
mov rdx, qword [rax + 8]
jmp 0x1400273fa
cmp qword [rax + 8], 0
je 0x14002739e
mov rax, qword [rsi]
mov qword [rsp + 0x58], rax
xor ebx, ebx
mov qword [rsi], rbx
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.140029000
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400273f2
mov rax, qword [rcx]
xor edx, edx
call rax
nop
jmp 0x1400274f6
mov rdx, rbx
mov r8d, 0x28
call fcn.140029460
mov rdx, rax
mov qword [rsp + 0x28], rax
mov qword [rax], rbx
lea rax, [0x140028a00]
mov qword [rdx + 8], rax
mov dword [rdx + 0x10], ebx
mov rax, qword [rsi]
mov qword [rdx + 0x18], rax
mov qword [rsi], rbx
mov qword [rsp + 0x30], rdx
mov rcx, rdi
call fcn.140028910
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
test al, al
je 0x1400274ec
mov rax, qword [rdi + 8]
test rax, rax
je 0x140027454
lock inc dword [rax + 8]
mov rax, qword [rdi]
mov qword [rsp + 0x38], rax
mov rax, qword [rdi + 8]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 8]
mov rdx, rax
and rdx, 0xfffffffffffffffc
mov qword [rsp + 0x50], rax
je 0x14002747f
mov rax, qword [rdx + 0x10]
lock inc dword [rax + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, rbp
call fcn.140027a40
nop
mov rcx, qword [rsp + 0x50]
mov edi, 0xffffffff
and rcx, 0xfffffffffffffffc
je 0x1400274b3
mov rcx, qword [rcx + 0x10]
mov eax, edi
lock xadd dword [rcx + 0x30], eax
cmp eax, 1
jne 0x1400274b3
call fcn.14002c360
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400274ec
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400274ec
mov rbx, qword [rsp + 0x40]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400274ec
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rsp + 0x20]
call fcn.140028ae0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140036b80
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140027510
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x140091240]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14, r9
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
test byte [rdx + 8], 1
jne 0x14002755e
mov rbx, qword [rcx]
mov ecx, dword [0x140095b00]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002755e
cmp qword [rax], rbx
je 0x14002757c
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140027550
mov qword [rsp + 0x40], r14
mov ecx, dword [0x140095af8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
test rax, rax
je 0x1400275a9
mov rdx, qword [rax + 8]
jmp 0x1400275ac
cmp qword [rax + 8], 0
je 0x14002755e
lea rcx, [0x140026360]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rbp
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140026370
nop
jmp 0x1400276ad
mov rdx, rbx
mov r8d, 0x30
call fcn.140029460
mov qword [rsp + 0x48], rax
mov qword [rax], rbx
lea rcx, [0x140027980]
mov qword [rax + 8], rcx
mov dword [rax + 0x10], ebx
lea rcx, [0x140026360]
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rbp
mov qword [rsp + 0x50], rax
mov rdx, rax
mov rcx, rdi
call fcn.140028910
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
test al, al
je 0x1400276a3
mov rax, qword [rdi + 8]
test rax, rax
je 0x14002760b
lock inc dword [rax + 8]
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
mov rax, qword [rdi + 8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsi + 8]
mov rdx, rax
and rdx, 0xfffffffffffffffc
mov qword [rsp + 0x38], rax
je 0x140027636
mov rax, qword [rdx + 0x10]
lock inc dword [rax + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140027a40
nop
mov rcx, qword [rsp + 0x38]
mov edi, 0xffffffff
and rcx, 0xfffffffffffffffc
je 0x14002766a
mov rcx, qword [rcx + 0x10]
mov eax, edi
lock xadd dword [rcx + 0x30], eax
cmp eax, 1
jne 0x14002766a
call fcn.14002c360
nop
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1400276a3
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400276a3
mov rbx, qword [rsp + 0x28]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400276a3
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rsp + 0x40]
call fcn.1400278f0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140036b80
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400278f0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
mov rbx, rcx
je 0x14002790c
mov qword [rcx + 0x10], 0
mov rdi, qword [rcx + 8]
test rdi, rdi
je 0x140027955
mov ecx, dword [0x140095af8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140027945
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140027945
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x140027960
inc ecx
inc rax
cmp rax, 2
jl 0x140027933
mov rcx, rdi
call fcn.140036b60
mov qword [rbx + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rdi + 0x30]
mov byte [rdi], al
movsxd rax, ecx
mov qword [rdx + rax*8], rdi
mov qword [rbx + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret