joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140055b90
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
xor edi, edi
lea rbp, [0x1403044e8]
mov rbx, rcx
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x28], rbp
lea rsi, [rdi - 1]
cmp byte [rcx + 0x28], dil
je 0x140055cd6
cmp byte [rcx + 0x29], dil
jne 0x140055cd6
mov rax, qword [rcx + 0x18]
mov ecx, dword [rax]
nop
cmp ecx, 0x103
jne 0x140055cd6
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140055d40
test al, al
je 0x140055cd6
mov rax, qword [rbx]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140055cca
cmp byte [rbx + 0x29], dil
jne 0x140055cd2
mov rax, qword [rbx + 0x18]
mov ecx, dword [rax]
nop
cmp ecx, 0x103
jne 0x140055cd2
mov rcx, qword [rbx]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x140055c58
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rbp
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x20], xmm0
mov eax, dword [rsp + 0x20]
jmp 0x140055c5e
mov eax, edi
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x60]
cmp ecx, 0x103
jne 0x140055c6e
mov cl, 1
jmp 0x140055c72
mov edi, ecx
xor cl, cl
test eax, eax
jne 0x140055c96
test cl, cl
jne 0x140055c9e
cmp byte [rbx + 0x29], cl
jne 0x140055cd2
mov rax, qword [rbx + 0x18]
mov ecx, dword [rax]
nop
cmp ecx, 0x103
jne 0x140055cd2
mov rax, qword [rbx + 0x18]
xchg dword [rax], edi
jmp 0x140055cd2
test cl, cl
je 0x140055cce
test eax, eax
jne 0x140055cd6
mov rcx, qword [rbx]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x140055d2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rbp
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm0
mov eax, dword [rsp + 0x20]
test eax, eax
jne 0x140055cd6
mov byte [rbx + 0x29], 1
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je case.default.0x140055d27
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne case.default.0x140055d27
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], esi
cmp esi, 1
jne case.default.0x140055d27
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 8]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rsi
jmp 0x140055cd2
jb 0x14052441e
xor al, 0x38
invalid
xor al, 0x20
or dword [0x17886a840], esp
invalid
jb 0x140524484
xor al, 0x38
invalid
xor dh, byte [0x165ce74bc]
jo 0x1405244bd
cmp byte [rcx], bh
xor byte [rax + riz], ch
and eax, 0x37333172
invalid
outsb dx, byte [rsi]
invalid
Function at 0x140058740
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x710]
sub rsp, 0x810
mov rax, qword [0x140304470]
xor rax, rsp
mov qword [rbp + 0x700], rax
mov rdi, rcx
lea rcx, [rbp + 0x308]
call fcn.140058950
mov rbx, rax
mov qword [rsp + 0x20], rax
mov rdx, rax
lea rcx, [rbp + 0x1c8]
call fcn.140058950
lea rax, [rbp + 0x1c8]
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0x1c8]
lea rcx, [rbp + 0x88]
call fcn.140058950
lea rax, [rbp + 0x88]
mov qword [rsp + 0x30], rax
mov qword [rbp + 0x5b0], rdi
lea rdx, [rbp + 0x88]
lea rcx, [rbp + 0x5b8]
call fcn.140058950
nop
lea rcx, [rbp + 0x198]
call fcn.140034440
lea rcx, [rbp + 0xb8]
call fcn.140034440
nop
lea rcx, [rbp + 0x2d8]
call fcn.140034440
lea rcx, [rbp + 0x1f8]
call fcn.140034440
nop
lea rax, [0x140058b80]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 0x5b0]
mov qword [rsp + 0x40], rax
lea rdx, [rbp + 0x5b8]
lea rcx, [rsp + 0x48]
call fcn.140058950
nop
lea rcx, [rbp + 0x6c8]
call fcn.140034440
lea rcx, [rbp + 0x5e8]
call fcn.140034440
nop
lea rcx, [rbx + 0x110]
call fcn.140034440
lea rcx, [rbx + 0x30]
call fcn.140034440
movups xmm0, xmmword [rdi + 0x318]
movaps xmmword [rbp + 0x450], xmm0
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x460]
call fcn.14005aa40
lea rcx, [rbp + 0x58]
call fcn.140034440
lea rcx, [rsp + 0x78]
call fcn.140034440
nop
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rdx, [rbp + 0x460]
mov ecx, 0x198
call fcn.1400227f0
mov r9, rax
xor ecx, ecx
mov qword [rax + 0x20], rcx
lea rax, [0x14005b750]
mov qword [r9 + 0x28], rax
mov qword [r9], rcx
mov qword [r9 + 8], rcx
mov qword [r9 + 0x10], rcx
mov qword [r9 + 0x18], rcx
mov dword [r9 + 0x30], ecx
movaps xmm0, xmmword [rbp + 0x450]
movups xmmword [r9 + 0x38], xmm0
lea rcx, [r9 + 0x48]
lea rdx, [rbp + 0x460]
call fcn.14005aa40
mov rcx, qword [0x140311f88]
lock inc dword [rcx + 0x30]
mov rdx, r9
call fcn.1400235c0
nop
lea rcx, [rbp + 0x580]
call fcn.140034440
lea rcx, [rbp + 0x4a0]
call fcn.140034440
mov rcx, qword [rbp + 0x700]
xor rcx, rsp
call fcn.140219010
lea r11, [rsp + 0x810]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14005b470
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xa0
mov rbp, rdx
mov r14, rcx
mov rax, qword [rcx + 0xd8]
mov r8, qword [rax]
cmp dword [rcx + 0x80], 0
jne 0x14005b645
cmp byte [r8 + 0x40], 0
je 0x14005b4c2
cmp qword [r8 + 0x30], 0
jne 0x14005b4c2
cmp qword [r8 + 0x18], 0x10
jb 0x14005b4e7
mov r8, qword [r8]
jmp 0x14005b4e7
mov rax, r8
cmp qword [r8 + 0x18], 0x10
jb 0x14005b4cf
mov rax, qword [r8]
mov qword [rcx + 0xc8], rax
lea rax, [r8 + 0x20]
mov r8, rax
cmp qword [rax + 0x18], 0x10
jb 0x14005b4e7
mov r8, qword [rax]
mov qword [rcx + 0xc0], r8
mov rax, qword [rcx + 0x78]
mov r10, qword [rcx + 0xb8]
mov r11, qword [rcx + 0xd0]
mov ebx, dword [rcx]
mov edi, dword [rcx + 0xb0]
lea rsi, [rcx + 0xe0]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x30], r11
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edi
mov r9, qword [rcx + 0xa8]
mov r8, qword [rcx + 0xa0]
mov rdx, qword [rcx + 0xc0]
mov rcx, qword [rcx + 0xc8]
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov r15d, eax
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x70], xmm0
movsd xmm0, qword [rsi + 0x10]
movsd qword [rsp + 0xc0], xmm0
movsd qword [rsp + 0x80], xmm0
mov rbx, qword [r14 + 0x98]
test rbx, rbx
je 0x14005b5a7
lock inc dword [rbx + 8]
mov rbx, qword [r14 + 0x98]
movsd xmm0, qword [rsp + 0x80]
movsd qword [rsp + 0xc0], xmm0
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rsp + 0x50], xmm0
mov rdi, qword [r14 + 0x90]
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x90], rbx
mov word [rsp + 0x98], 1
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15d, r15d
je 0x14005b66d
mov dword [r14 + 0x80], 0
lea rax, [0x1403044e8]
mov qword [r14 + 0x88], rax
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbp], xmm0
movsd xmm0, qword [rsp + 0xc0]
movsd qword [rbp + 0x10], xmm0
mov qword [rbp + 0x18], rdi
mov qword [rbp + 0x20], rbx
mov word [rbp + 0x28], 1
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14005b64d
mov rcx, rbp
call fcn.140055b10
mov rax, rbp
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
lea rcx, [rsp + 0x60]
call fcn.140055050
mov rdx, rax
call fcn.14005b6d0
int3
Function at 0x14005ca40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov rax, qword [0x140304470]
xor rax, rsp
mov qword [rbp + 0x228], rax
mov rdi, rdx
mov rbx, rcx
mov rax, qword [rdx + 0x10]
mov qword [rsp + 0x70], rax
mov rax, qword [rdx + 0x18]
mov qword [rsp + 0x78], rax
add rdx, 0x20
lea rcx, [rbp - 0x80]
call fcn.140058950
movups xmm0, xmmword [rbx]
movaps xmmword [rbp + 0xc0], xmm0
lea rdx, [rbx + 0x10]
lea rcx, [rbp + 0xd0]
call fcn.14005aa40
nop
mov rsi, qword [rdi]
mov rbx, qword [rdi + 8]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14005cad8
cmp qword [rax], rbx
je 0x14005cc2f
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14005cac6
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x70]
mov ecx, 0x2e8
call fcn.1400227f0
mov rbx, rax
xor r14d, r14d
mov qword [rax + 0x20], r14
lea rax, [fcn.14005d6c0]
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 + 0x70]
call fcn.14005aa40
movaps xmm2, xmmword [rbp + 0xc0]
movups xmmword [rcx + 0x150], xmm2
add rcx, 0x160
lea rdx, [rbp + 0xd0]
call fcn.14005aa40
mov r8, rbx
lea rdx, [rdi + 8]
mov rcx, rsi
call fcn.140025350
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
test al, al
je 0x14005cbdb
mov rax, qword [rdi + 8]
mov qword [rsp + 0x20], rax
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsi + 0x28]
mov qword [rsp + 0x38], rcx
mov rax, qword [rdi + 8]
mov qword [rsp + 0x40], rax
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, rbx
call fcn.14005d6c0
nop
lea rcx, [rsp + 0x38]
call fcn.140025130
nop
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rcx, [rbp + 0x1f0]
call fcn.140034440
lea rcx, [rbp + 0x110]
call fcn.140034440
lea rcx, [rbp + 0x90]
call fcn.140034440
lea rcx, [rbp - 0x50]
call fcn.140034440
mov rcx, qword [rbp + 0x228]
xor rcx, rsp
call fcn.140219010
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
cmp qword [rax + 8], 0
je 0x14005cad8
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.14005da10
nop
nop
jmp 0x14005cbdb
Function at 0x14005d400
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rdi, r8
mov rsi, rdx
mov r14, rcx
mov rbx, qword [rdx]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14005d452
nop dword [rax]
cmp qword [rax], rbx
je 0x14005d5aa
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14005d440
mov qword [rbp + 0x27], rdi
mov rdx, rdi
mov ecx, 0x68
call fcn.1400227f0
mov rbx, rax
xor r15d, r15d
mov qword [rax + 0x20], r15
lea rax, [0x14005d610]
mov qword [rbx + 0x28], rax
mov qword [rbx], r15
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
mov dword [rbx + 0x30], r15d
movups xmm0, xmmword [rdi]
movups xmmword [rbx + 0x38], xmm0
movups xmm0, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x48], xmm0
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rbx + 0x58], xmm0
mov r8, rbx
mov rdx, rsi
mov rcx, r14
call fcn.140025350
mov qword [rbp + 0x37], r15
mov qword [rbp + 0x2f], r15
test al, al
je 0x14005d58d
mov rax, qword [rsi]
mov qword [rbp - 0x49], rax
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 0x39], rax
lea rax, [rbp - 0x49]
mov qword [rbp - 0x41], rax
lea rdx, [rbp - 0x49]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rdi, qword [r14 + 0x28]
mov qword [rbp - 0x19], rdi
mov rax, qword [rsi]
mov qword [rbp - 0x11], rax
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x21], rbx
movups xmm0, xmmword [rbx + 0x38]
movups xmmword [rbp - 9], xmm0
movups xmm0, xmmword [rbx + 0x48]
movups xmmword [rbp + 7], xmm0
movups xmm1, xmmword [rbx + 0x58]
movups xmmword [rbp + 0x17], xmm1
lea rax, [rbp - 9]
mov qword [rbp - 0x31], rax
test rbx, rbx
je 0x14005d547
mov qword [rbp - 0x21], r15
lea r8, [rbp - 9]
lea edx, [r15 + 0x68]
mov rcx, rbx
call fcn.140022880
mov ebx, r15d
mov qword [rbp - 0x29], rbx
test rdi, rdi
je 0x14005d55b
lea rdx, [rbp - 9]
lea rcx, [rbp - 9]
call fcn.14005db80
nop
nop
test rbx, rbx
je 0x14005d572
lea r8, [rbp - 9]
mov edx, 0x68
mov rcx, rbx
call fcn.140022880
nop
lea rcx, [rbp - 0x19]
call fcn.140025130
nop
mov rdx, qword [rbp - 0x39]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
cmp qword [rax + 8], 0
je 0x14005d452
nop
mov rdx, rdi
mov rcx, rdi
call fcn.14005db80
nop
nop
jmp 0x14005d58d
Function at 0x14005da10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
lea rbx, [rcx + 0x160]
mov rbp, qword [rcx + 0x150]
lea rsi, [rcx + 0x158]
mov rdi, qword [rsi]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14005da67
cmp qword [rax], rdi
je 0x14005db4b
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14005da55
mov qword [rsp + 0x58], rbx
mov rdx, rbx
mov ecx, 0x188
call fcn.1400227f0
mov rdi, rax
xor r14d, r14d
mov qword [rax + 0x20], r14
lea rax, [fcn.14005de40]
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 rcx, [rdi + 0x38]
mov rdx, rbx
call fcn.14005aa40
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
call fcn.140025350
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], r14
test al, al
je 0x14005db3d
mov rax, qword [rsi]
mov qword [rsp + 0x40], rax
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rbp + 0x28]
mov qword [rsp + 0x20], rcx
mov rax, qword [rsi]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea r8, [rsp + 0x30]
mov rdx, rdi
call fcn.14005de40
nop
lea rcx, [rsp + 0x20]
call fcn.140025130
nop
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp qword [rax + 8], 0
je 0x14005da67
nop
mov rdx, rbx
mov rcx, rbx
call fcn.140054110
nop
nop
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14005db80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
add rsp, 0x28
jmp 0x14005dba0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x90
lea rbx, [rcx + 0x20]
mov rbp, qword [rcx + 0x10]
lea rsi, [rcx + 0x18]
mov rdi, qword [rsi]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14005dbf2
nop dword [rax]
cmp qword [rax], rdi
je 0x14005dd1b
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14005dbe0
mov qword [rsp + 0x58], rbx
mov rdx, rbx
mov ecx, 0x48
call fcn.1400227f0
mov rdi, rax
xor r14d, r14d
mov qword [rax + 0x20], r14
lea rax, [0x14005dd80]
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
movups xmm0, xmmword [rbx]
movups xmmword [rdi + 0x38], xmm0
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
call fcn.140025350
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], r14
test al, al
je 0x14005dcfd
mov rax, qword [rsi]
mov qword [rsp + 0x40], rax
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rbx, qword [rbp + 0x28]
mov qword [rsp + 0x30], rbx
mov rax, qword [rsi]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rdi + 0x38]
movups xmmword [rsp + 0x20], xmm0
lea rax, [rsp + 0x20]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x80], r14
lea r8, [rsp + 0x20]
lea edx, [r14 + 0x48]
mov rcx, rdi
call fcn.140022880
mov qword [rsp + 0x78], r14
test rbx, rbx
je 0x14005dce0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.14005e000
nop
nop
lea rcx, [rsp + 0x30]
call fcn.140025130
nop
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
cmp qword [rax + 8], 0
je 0x14005dbf2
nop
mov rdx, rbx
mov rcx, rbx
call fcn.14005e000
nop
nop
jmp 0x14005dcfd
Function at 0x14005dba0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
add rsp, 0x28
jmp 0x14005dba0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x90
lea rbx, [rcx + 0x20]
mov rbp, qword [rcx + 0x10]
lea rsi, [rcx + 0x18]
mov rdi, qword [rsi]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14005dbf2
nop dword [rax]
cmp qword [rax], rdi
je 0x14005dd1b
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14005dbe0
mov qword [rsp + 0x58], rbx
mov rdx, rbx
mov ecx, 0x48
call fcn.1400227f0
mov rdi, rax
xor r14d, r14d
mov qword [rax + 0x20], r14
lea rax, [0x14005dd80]
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
movups xmm0, xmmword [rbx]
movups xmmword [rdi + 0x38], xmm0
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
call fcn.140025350
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], r14
test al, al
je 0x14005dcfd
mov rax, qword [rsi]
mov qword [rsp + 0x40], rax
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rbx, qword [rbp + 0x28]
mov qword [rsp + 0x30], rbx
mov rax, qword [rsi]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rdi + 0x38]
movups xmmword [rsp + 0x20], xmm0
lea rax, [rsp + 0x20]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x80], r14
lea r8, [rsp + 0x20]
lea edx, [r14 + 0x48]
mov rcx, rdi
call fcn.140022880
mov qword [rsp + 0x78], r14
test rbx, rbx
je 0x14005dce0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.14005e000
nop
nop
lea rcx, [rsp + 0x30]
call fcn.140025130
nop
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
cmp qword [rax + 8], 0
je 0x14005dbf2
nop
mov rdx, rbx
mov rcx, rbx
call fcn.14005e000
nop
nop
jmp 0x14005dcfd
Function at 0x140069800
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, r9
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
jne 0x14006984c
lea rax, [0x1402b2d00]
mov dword [rsp + 0x20], 0x2719
mov qword [rsp + 0x28], rax
mov eax, ecx
mov byte [rsp + 0x24], 1
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [r9], xmm0
jmp 0x1400698a6
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
mov edi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x20], eax
lea rax, [0x1402b2d00]
setne byte [rsp + 0x24]
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbx], xmm0
test edi, edi
jne 0x1400698a4
mov dword [rsp + 0x20], edi
mov byte [rsp + 0x24], dil
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbx], xmm0
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400698c0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rdi, rdx
lea rsi, [0x1402b2d00]
mov edx, dword [rdx]
mov rbx, rcx
sub edx, 0x79
je 0x140069918
sub edx, 0x450
je 0x14006990f
sub edx, 6
je 0x140069906
cmp edx, 1
jne 0x14006992e
mov dword [rbp - 0x10], 0x2751
jmp 0x14006991f
mov dword [rbp - 0x10], 0x2743
jmp 0x14006991f
mov dword [rbp - 0x10], 0x274d
jmp 0x14006991f
mov dword [rbp - 0x10], 0x274c
mov byte [rbp - 0xc], 1
mov qword [rbp - 8], rsi
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rdi], xmm0
cmp dword [rdi], 0
jne 0x14006999e
cmp rbx, 0xffffffffffffffff
jne 0x140069946
mov dword [rbp - 0x10], 0x2719
mov byte [rbp - 0xc], 1
jmp 0x140069993
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov edx, 0xffff
mov r8d, 0x7010
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rbp - 0x10], eax
mov qword [rbp - 8], rsi
setne byte [rbp - 0xc]
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rdi], xmm0
test ebx, ebx
jne 0x14006999e
mov dword [rbp - 0x10], ebx
mov byte [rbp - 0xc], bl
mov qword [rbp - 8], rsi
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rdi], xmm0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbp
ret
Function at 0x140069a80
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rsi, rcx
mov rbx, r8
xor ecx, ecx
mov rdi, rdx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor ebp, ebp
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x88]
mov qword [rsp + 0x28], rbp
mov r8d, ebx
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov dword [rsp + 0x88], ebp
mov dword [rsp + 0x80], ebp
call qword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdx, qword [rsp + 0x90]
test eax, eax
mov dword [rsp + 0x40], eax
lea rax, [0x1402b2d00]
setne byte [rsp + 0x44]
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
mov ecx, dword [rdx]
cmp ecx, 0x40
jne 0x140069b20
mov dword [rsp + 0x40], 0x2746
jmp 0x140069b30
cmp ecx, 0x4d2
jne 0x140069b44
mov dword [rsp + 0x40], 0x274d
mov byte [rsp + 0x44], 1
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
jmp 0x140069b54
cmp ecx, 0x2738
je 0x140069b6a
cmp ecx, 0xea
je 0x140069b6a
test ebx, ebx
je 0x140069b6a
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x40], ebp
mov byte [rsp + 0x44], bpl
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret