joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14028e6b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push r14
push r15
sub rsp, 0x30
mov rax, qword [rcx]
xor r15d, r15d
mov rbx, rcx
mov qword [rdx], r15
mov rsi, rdx
mov qword [rdx + 8], r15
mov r14, r9
mov rbp, r8
mov rcx, qword [rax]
mov edx, r15d
mov r10d, r15d
test rcx, rcx
je 0x14028e709
mov rax, qword [rcx]
lea rdx, [rsp + 0x20]
call qword [rax + reloc.WS2_32.dll_htonl]
mov r10, qword [rax]
mov rdx, qword [rax + 8]
mov rax, qword [rbx]
mov qword [rsi], r10
mov qword [rsi + 8], rdx
mov qword [rax], r15
cmp rbp, rdx
ja 0x14028e71f
xor edx, edx
mov rax, r10
div r14
test rdx, rdx
je 0x14028e855
mov ebx, 6
test r10, r10
je 0x14028e77d
mov ecx, dword [0x145f0aebc]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x14028e740
mov rdx, qword [rax + 8]
jmp 0x14028e743
mov rdx, r15
mov r9, qword [rsi + 8]
mov r8, qword [rsi]
cmp r9, 0x3fc
ja 0x14028e775
test rdx, rdx
je 0x14028e775
mov ecx, ebx
mov rax, rbx
nop dword [rax]
cmp qword [rdx + rax*8], r15
je 0x14028e7f6
inc ecx
inc rax
cmp rax, 8
jl 0x14028e760
mov rcx, r8
call fcn.1403bbc60
mov ecx, dword [0x145f0aebc]
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
lea rdi, [rbp + 3]
shr rdi, 2
test rax, rax
je 0x14028e827
mov r10, qword [rax + 8]
test r10, r10
je 0x14028e827
mov ecx, ebx
lea r9, [r10 + 0x30]
mov r8, qword [r9]
test r8, r8
je 0x14028e7d0
movzx eax, byte [r8]
cmp rax, rdi
jb 0x14028e7d0
xor edx, edx
mov rax, r8
div r14
test rdx, rdx
je 0x14028e80a
inc ecx
add r9, 8
cmp ecx, 8
jl 0x14028e7b2
mov rax, rbx
nop
mov rcx, qword [r10 + rax*8]
test rcx, rcx
jne 0x14028e81b
inc ebx
inc rax
cmp rax, 8
jl 0x14028e7e0
jmp 0x14028e827
movzx eax, byte [r8 + r9]
mov byte [r8], al
movsxd rax, ecx
mov qword [rdx + rax*8], r8
jmp 0x14028e77d
movsxd rax, ecx
mov qword [r10 + rax*8], r15
movzx eax, byte [r8]
mov byte [r8 + rbp], al
jmp 0x14028e849
movsxd rax, ebx
mov qword [r10 + rax*8], r15
call fcn.1403bbc60
lea rcx, [rdi*4 + 1]
call fcn.140567158
cmp rdi, 0xff
movzx ecx, dil
mov r8, rax
cmova ecx, r15d
mov byte [rax + rbp], cl
mov rdi, qword [rsp + 0x50]
mov qword [rsi], r8
mov qword [rsi + 8], rbp
mov rbx, qword [rsp + 0x58]
mov rax, rsi
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rsi
ret
Function at 0x140296040
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x14029608b
lea rcx, [rbx + 0x98]
cmp qword [rcx + 0x20], 0
je 0x14029606e
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
lea rcx, [rbx + 0x38]
cmp qword [rcx + 0x20], 0
je 0x140296083
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1402960d7
mov ecx, dword [0x145f0aebc]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x1402960c7
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1402960c7
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x1402960e2
inc ecx
inc rax
cmp rax, 6
jl 0x1402960b5
mov rcx, rbx
call fcn.1403bbc60
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x108]
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 0x140296110
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x140296175
cmp byte [rbx + 0x90], 0
je 0x14029614e
lea rcx, [rbx + 0x98]
cmp qword [rcx + 0x20], 0
je 0x140296147
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
mov byte [rbx + 0x90], 0
cmp byte [rbx + 0x20], 0
je 0x14029616d
lea rcx, [rbx + 0x28]
cmp qword [rcx + 0x20], 0
je 0x140296169
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
mov byte [rbx + 0x20], 0
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1402961c2
mov ecx, dword [0x145f0aebc]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x1402961b2
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1402961b2
mov ecx, 4
mov eax, ecx
nop
cmp qword [rdx + rax*8], 0
je 0x1402961cd
inc ecx
inc rax
cmp rax, 6
jl 0x1402961a0
mov rcx, rbx
call fcn.1403bbc60
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x110]
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 0x1402961f0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140296223
add rcx, 0x30
cmp qword [rcx + 0x20], 0
je 0x14029621b
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
mov qword [rbx + 0x10], 0
mov rdi, qword [rbx + 8]
test rdi, rdi
je 0x140296272
mov ecx, dword [0x145f0aebc]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x140296262
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140296262
mov ecx, 4
mov eax, ecx
nop dword [rax]
cmp qword [rdx + rax*8], 0
je 0x14029627d
inc ecx
inc rax
cmp rax, 6
jl 0x140296250
mov rcx, rdi
call fcn.1403bbc60
mov qword [rbx + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rdi + 0x80]
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

Function at 0x1402962a0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x1402962dd
cmp byte [rbx + 0x18], 0
je 0x1402962d5
lea rcx, [rbx + 0x20]
cmp qword [rcx + 0x20], 0
je 0x1402962d1
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
mov byte [rbx + 0x18], 0
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140296329
mov ecx, dword [0x145f0aebc]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x140296319
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140296319
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x140296334
inc ecx
inc rax
cmp rax, 6
jl 0x140296307
mov rcx, rbx
call fcn.1403bbc60
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x90]
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 0x1402964a0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x1402964eb
lea rcx, [rbx + 0x98]
cmp qword [rcx + 0x20], 0
je 0x1402964ce
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
lea rcx, [rbx + 0x38]
cmp qword [rcx + 0x20], 0
je 0x1402964e3
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140296537
mov ecx, dword [0x145f0aebc]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x140296527
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140296527
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x140296542
inc ecx
inc rax
cmp rax, 6
jl 0x140296515
mov rcx, rbx
call fcn.1403bbc60
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x110]
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 0x140296570
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x1402965d3
lea rcx, [rbx + 0x100]
cmp qword [rcx + 0x20], 0
je 0x14029659e
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
lea rcx, [rbx + 0x98]
cmp qword [rcx + 0x20], 0
je 0x1402965b6
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
lea rcx, [rbx + 0x38]
cmp qword [rcx + 0x20], 0
je 0x1402965cb
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140296622
mov ecx, dword [0x145f0aebc]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x140296612
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140296612
mov ecx, 4
mov eax, ecx
nop dword [rax]
cmp qword [rdx + rax*8], 0
je 0x14029662d
inc ecx
inc rax
cmp rax, 6
jl 0x140296600
mov rcx, rbx
call fcn.1403bbc60
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x140]
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 0x140296650
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 0x140296677
add rcx, 8
call fcn.14025cdd0
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1402966c3
mov ecx, dword [0x145f0aebc]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x1402966b3
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1402966b3
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x1402966ce
inc ecx
inc rax
cmp rax, 6
jl 0x1402966a1
mov rcx, rbx
call fcn.1403bbc60
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x148]
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 0x140296700
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x140296748
lea rcx, [rbx + 0x78]
cmp qword [rcx + 0x20], 0
je 0x14029672b
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
lea rcx, [rbx + 0x30]
cmp qword [rcx + 0x20], 0
je 0x140296740
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140296794
mov ecx, dword [0x145f0aebc]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x140296784
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140296784
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x14029679f
inc ecx
inc rax
cmp rax, 6
jl 0x140296772
mov rcx, rbx
call fcn.1403bbc60
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0xb8]
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 0x1402967d0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x140296825
lea rcx, [rbx + 0x88]
cmp qword [rcx + 0x20], 0
je 0x1402967fe
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
cmp byte [rbx + 0x18], 0
je 0x14029681d
lea rcx, [rbx + 0x20]
cmp qword [rcx + 0x20], 0
je 0x140296819
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
call rdx
nop
mov byte [rbx + 0x18], 0
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140296872
mov ecx, dword [0x145f0aebc]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x140296862
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140296862
mov ecx, 4
mov eax, ecx
nop
cmp qword [rdx + rax*8], 0
je 0x14029687d
inc ecx
inc rax
cmp rax, 6
jl 0x140296850
mov rcx, rbx
call fcn.1403bbc60
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0xc8]
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 0x1402981c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xd0
mov rsi, rdx
mov rbx, rcx
xor edi, edi
mov eax, edi
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x14029820d
call fcn.1402a20e0
xorps xmm0, xmm0
mov qword [rsp + 0xc0], rdi
movups xmmword [rsi], xmm0
movsd xmm0, qword [rsp + 0xc0]
movsd qword [rsi + 0x10], xmm0
xor eax, eax
jmp 0x14029830c
mov dword [rsp + 0x90], edi
lea rcx, [rsp + 0x98]
call fcn.14056aa5c
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
lea rax, [rbx + 0x28]
test rbx, rbx
cmove rax, rdi
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov ecx, dword [0x145f0aebc]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x20]
mov ecx, dword [0x145f0aebc]
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
nop
mov r9, rsi
lea r8, [rsp + 0x40]
mov edx, 0xffffffff
mov rcx, rbx
call fcn.140279be0
test rax, rax
je 0x1402982c9
nop word [rax + rax]
lea rax, [rdi + 1]
cmp rdi, 0xffffffffffffffff
cmove rax, rdi
mov rdi, rax
mov r9, rsi
lea r8, [rsp + 0x40]
mov edx, 0xffffffff
mov rcx, rbx
call fcn.140279be0
test rax, rax
jne 0x1402982a0
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x145f0aebc]
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
nop
lea rbx, [rsp + 0x40]
mov esi, 0xa
mov rcx, qword [rbx]
test rcx, rcx
je 0x1402982f2
call fcn.1403bbc60
add rbx, 8
sub rsi, 1
jne 0x1402982e5
lea rcx, [rsp + 0x98]
call fcn.14056aae8
mov rax, rdi
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140298330
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
xor ebp, ebp
mov qword [rax - 0x48], rbp
mov qword [rax - 0x50], rbp
mov dword [rax - 0x58], r9d
lea r9, [rax + 0x20]
mov dword [rax + 0x20], ebp
call qword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdx, qword [0x140a28de8]
lea rsi, [0x140a28de0]
movabs r14, 0x4d54ee85da812030
mov dword [rsp + 0x44], ebp
add rdx, r14
mov ebx, eax
cmp rdx, 1
jbe 0x1402983a2
mov rcx, qword [0x140a28de0]
mov edx, eax
mov r8, qword [rcx + 0x30]
mov rcx, rsi
call r8
jmp 0x1402983a7
test ebx, ebx
setne al
mov dword [rsp + 0x40], ebx
movabs r10, 0x4800144005b3
mov rbx, qword [rsp + 0xa0]
movzx eax, al
add rax, 2
mov qword [rsp + 0x48], rsi
movups xmm0, xmmword [rsp + 0x40]
mov qword [rsp + 0x50], rax
movsd xmm1, qword [rsp + 0x50]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
mov r9, qword [rbx + 0x10]
cmp r9, 1
je 0x1402983f2
mov eax, dword [rbx]
mov r8d, eax
jmp 0x140298422
mov rcx, qword [rbx + 8]
mov rax, r10
mov r8d, dword [rbx]
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul eax, ecx, 0x3e8
add eax, r8d
cmp eax, 0x40
jne 0x140298463
mov rcx, qword [0x140a28de8]
add rcx, r14
mov dword [rsp + 0x44], ebp
cmp rcx, 1
jbe 0x140298457
mov rax, qword [0x140a28de0]
mov edx, 0x2746
mov rcx, rsi
call qword [rax + Ordinal_50]
mov dword [rsp + 0x40], 0x2746
jmp 0x1402984d1
mov al, 1
mov dword [rsp + 0x40], 0x2746
jmp 0x1402984d1
cmp r9, 1
jne 0x140298496
mov rcx, qword [rbx + 8]
mov rax, r10
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul eax, ecx, 0x3e8
add r8d, eax
cmp r8d, 0x4d2
jne 0x1402984f5
mov rcx, qword [0x140a28de8]
add rcx, r14
mov dword [rsp + 0x44], ebp
cmp rcx, 1
jbe 0x1402984c7
mov rax, qword [0x140a28de0]
mov edx, 0x274d
mov rcx, rsi
call qword [rax + Ordinal_50]
jmp 0x1402984c9
mov al, 1
mov dword [rsp + 0x40], 0x274d
movzx eax, al
mov qword [rsp + 0x48], rsi
add rax, 2
movups xmm0, xmmword [rsp + 0x40]
mov qword [rsp + 0x50], rax
movsd xmm1, qword [rsp + 0x50]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
test edi, edi
je 0x140298500
mov eax, 0xffffffff
jmp 0x14029851d
mov eax, dword [rsp + 0x98]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rsp + 0x50], rbp
movsd xmm0, qword [rsp + 0x50]
movsd qword [rbx + 0x10], xmm0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14029dde0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, r9
mov dword [rsp + 0x28], 1
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov esi, ecx
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
mov rcx, rbx
mov rdi, rax
sete dl
call fcn.14027fa70
cmp rdi, 0xffffffffffffffff
jne 0x14029de38
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp esi, 0x17
jne 0x14029de62
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 0
lea edx, [rsi + 0x12]
mov dword [rsp + 0x20], 4
lea r8d, [rsi + 4]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14029de80
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [rcx + 8]
mov rsi, r9
mov r14, rdx
mov rdi, rcx
lock inc dword [rax + 0x30]
cmp qword [rdx], 0xffffffffffffffff
jne 0x14029dec2
mov rdx, qword [rsp + 0xd8]
xor r9d, r9d
mov rcx, qword [rcx + 8]
mov r8d, 0x2719
add rsp, 0x70
pop r14
pop rdi
pop rsi
jmp fcn.140285a10
test r8b, r8b
je 0x14029dee7
mov rdx, qword [rsp + 0xd8]
xor r9d, r9d
mov rcx, qword [rcx + 8]
lea r8d, [r9 + 1]
add rsp, 0x70
pop r14
pop rdi
pop rsi
jmp fcn.140285a10
mov r8d, dword [rsp + 0xc0]
xorps xmm0, xmm0
mov edx, dword [rsp + 0xb8]
xor r9d, r9d
mov ecx, dword [rsp + 0xb0]
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], r15
xor r15d, r15d
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x20], r15d
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
lea rcx, [rsp + 0x40]
mov rbx, rax
sete dl
call fcn.14027fa70
cmp rbx, 0xffffffffffffffff
je 0x14029df81
cmp dword [rsp + 0xb0], 0x17
jne 0x14029df81
mov edx, reloc.WLDAP32.dll_Ordinal_41
mov dword [rsp + 0x98], r15d
lea r9, [rsp + 0x98]
mov dword [rsp + 0x20], 4
mov rcx, rbx
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsi]
cmp rcx, 0xffffffffffffffff
je 0x14029dfb4
xorps xmm0, xmm0
mov qword [rsp + 0x68], r15
lea r9, [rsp + 0x58]
mov byte [rsp + 0x90], r15b
mov r8b, 1
lea rdx, [rsp + 0x90]
movups xmmword [rsp + 0x58], xmm0
call fcn.140272920
xor r9d, r9d
mov qword [rsi], rbx
cmp rbx, 0xffffffffffffffff
jne 0x14029dfd8
mov rdx, qword [rsp + 0xd8]
lea r8, [rsp + 0x40]
mov rcx, qword [rdi + 8]
call fcn.140285910
jmp 0x14029e04f
mov rsi, qword [rsp + 0xd8]
lea rax, [rsp + 0x90]
mov r8, qword [rsp + 0xc8]
mov rdx, rbx
mov rcx, qword [r14]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x90], r15d
call sub.MSWSOCK.dll_AcceptEx
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x14029e043
cmp eax, 0x3e5
je 0x14029e043
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call fcn.140285a10
jmp 0x14029e04f
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.140285b60
mov rbx, qword [rsp + 0xa0]
mov r15, qword [rsp + 0xa8]
add rsp, 0x70
pop r14
pop rdi
pop rsi
ret
Function at 0x14029e250
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [rcx + 8]
mov r10, r9
mov r11, r8
mov rbx, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x78], 0
je 0x14029e28a
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rcx + 8]
xor r8d, r8d
add rsp, 0x40
pop rbx
jmp fcn.140285a10
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x14029e2b2
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rbx + 8]
mov r8d, 0x2719
add rsp, 0x40
pop rbx
jmp fcn.140285a10
mov eax, dword [rsp + 0x70]
lea r9, [rsp + 0x78]
xor edx, edx
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x30], rdx
lea rax, [rsp + 0x50]
mov dword [rsp + 0x78], edx
mov r8d, r10d
mov qword [rsp + 0x58], rsi
mov rdx, r11
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x80]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x14029e30b
mov eax, 0x2746
jmp 0x14029e318
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
mov rsi, qword [rsp + 0x58]
je 0x14029e347
cmp eax, 0x3e5
je 0x14029e347
mov r9d, dword [rsp + 0x78]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.140285a10
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.140285b60
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret

Function at 0x14029e360
Capabilities:
Send data
Send data on socket

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [rcx + 8]
mov r10, r9
mov r11, r8
mov rdi, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x78], 0
je 0x14029e39a
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rcx + 8]
xor r8d, r8d
add rsp, 0x40
pop rdi
jmp fcn.140285a10
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x14029e3c2
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rdi + 8]
mov r8d, 0x2719
add rsp, 0x40
pop rdi
jmp fcn.140285a10
xor eax, eax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x78]
mov dword [rsp + 0x78], eax
mov r8d, r10d
mov eax, dword [rsp + 0x70]
mov rdx, r11
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x80]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
mov rbx, qword [rsp + 0x50]
je 0x14029e441
cmp eax, 0x3e5
je 0x14029e441
mov r9d, dword [rsp + 0x78]
mov r8d, eax
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.140285a10
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.140285b60
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1402cdd20
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rcx + 0x1384], 0xffffffff
lea r9, [rcx + 8]
mov dword [rcx + 4], edx
mov r8d, 1
nop word [rax + rax]
mov eax, edx
lea r9, [r9 + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, r8d
inc r8
mov dword [r9 - 4], edx
cmp r8, 0x270
jb 0x1402cdd40
mov dword [rcx], 0x270
mov rax, rcx
ret