joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140040400
Capabilities:
Copy file

Disassembly:
push rdi
sub rsp, 0x240
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x260], rbx
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rdx
mov rbx, rcx
cmp qword [rdx + 0x18], 8
jb 0x14004043c
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x140040446
mov rcx, qword [rcx]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1400405e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.14002d610
mov rdi, rax
mov rdx, rbx
lea rcx, [rsp + 0x88]
call fcn.14002d610
mov rbx, rax
movdqa xmm0, xmmword [0x14019d8d0]
movdqa xmmword [rsp + 0x1b0], xmm0
movdqa xmm1, xmmword [0x14019d670]
movdqa xmmword [rsp + 0x1c0], xmm1
movdqa xmm0, xmmword [0x14019d8a0]
movdqa xmmword [rsp + 0x1d0], xmm0
movdqa xmm1, xmmword [0x14019d040]
movdqa xmmword [rsp + 0x1e0], xmm1
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x1f0], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x200], xmm1
movdqa xmmword [rsp + 0x210], xmm0
movdqa xmmword [rsp + 0x220], xmm1
mov r9b, 0x89
lea r8, [0x140171d58]
mov edx, 0x3e
lea rcx, [rsp + 0x1b0]
call fcn.1400164b0
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.140019c00
nop
mov rdx, rbx
mov rcx, rax
call fcn.14001baf0
mov rdx, rdi
mov rcx, rax
call fcn.14001baf0
mov rbx, rax
cmp byte [rax + 0x44], 0
je 0x140040546
mov rcx, rax
call fcn.14001c7c0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140030d20
inc dword [rbx + 0x3c]
mov edx, dword [rbx + 0x3c]
cmp qword [rbx + 0x30], 0
je 0x140040597
mov r9d, dword [rbx + 0x40]
cmp edx, r9d
jge 0x140040597
mov r10, qword [rbx + 0x18]
nop dword [rax]
movsxd rcx, edx
mov rax, rcx
shr rax, 5
lea r8, [r10 + rax*4]
and ecx, 0x1f
mov eax, 1
shl eax, cl
test dword [r8], eax
je 0x140040597
inc edx
mov dword [rbx + 0x3c], edx
cmp edx, r9d
jl 0x140040570
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.140019dc0
nop
cmp qword [rax + 0x18], 0x10
jb 0x1400405af
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.1400eefd4
nop
lea rax, vtable.message_exception.0
mov qword [rsp + 0x30], rax
lea rdx, [0x1401fdcb0]
lea rcx, [rsp + 0x30]
call fcn.1400ef340
nop
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400efba0
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret

Function at 0x140040b90
Capabilities:
Delete file

Disassembly:
cmp qword [rcx + 0x18], 8
jb 0x140040b9a
mov rcx, qword [rcx]
jmp qword [sym.imp.KERNEL32.dll_DeleteFileW]

Function at 0x140040bb0
Capabilities:
Move file

Disassembly:
cmp qword [rcx + 0x18], 8
jb 0x140040bba
mov rcx, qword [rcx]
xor edx, edx
lea r8d, [rdx + 4]
jmp qword [sym.imp.KERNEL32.dll_MoveFileExW]

Function at 0x140040bd0
Capabilities:
Create directory

Disassembly:
cmp qword [rcx + 0x18], 8
jb 0x140040bda
mov rcx, qword [rcx]
xor edx, edx
jmp qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
Function at 0x140041880
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rbp + 0x20], rax
xor eax, eax
lea r8, [0x140171e40]
lea rcx, [rsp + 0x20]
lea edx, [rax + 0x10]
mov r9d, 0x785e
mov dword [rsp + 0x20], 0x78307817
mov dword [rsp + 0x24], 0x782a782d
mov dword [rsp + 0x28], 0x7832783f
mov dword [rsp + 0x2c], 0x78127832
mov dword [rsp + 0x30], 0x783d7831
mov dword [rsp + 0x34], 0x782a783f
mov dword [rsp + 0x38], 0x78317837
mov qword [rsp + 0x3c], 0x785e7830
mov qword [rsp + 0x44], rax
mov qword [rsp + 0x4c], rax
mov qword [rsp + 0x54], rax
mov qword [rsp + 0x5c], rax
mov qword [rsp + 0x64], rax
mov qword [rsp + 0x6c], rax
mov qword [rsp + 0x74], rax
mov qword [rsp + 0x7c], rax
mov qword [rbp - 0x7c], rax
mov qword [rbp - 0x74], rax
mov qword [rbp - 0x6c], rax
mov qword [rbp - 0x64], rax
mov qword [rbp - 0x5c], rax
mov qword [rbp - 0x54], rax
mov qword [rbp - 0x4c], rax
mov qword [rbp - 0x44], rax
mov qword [rbp - 0x3c], rax
mov qword [rbp - 0x34], rax
mov qword [rbp - 0x2c], rax
mov qword [rbp - 0x24], rax
mov qword [rbp - 0x1c], rax
mov qword [rbp - 0x14], rax
mov qword [rbp - 0xc], rax
mov qword [rbp - 4], rax
mov qword [rbp + 4], rax
mov qword [rbp + 0xc], rax
mov qword [rbp + 0x14], rax
mov dword [rbp + 0x1c], eax
call fcn.140016520
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1400efba0
add rsp, 0x130
pop rbp
ret
Function at 0x140043160
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov esi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400431a3
xor eax, eax
jmp 0x1400433a6
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400431dd
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400431dd
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
mov eax, esi
jmp 0x1400433a6
cmp qword [rbx + 0x90], 0
jne 0x1400431ef
or eax, 0xffffffff
jmp 0x1400433a6
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x80]
cmp qword [r8], rax
jne 0x140043219
mov rdx, qword [rbx + 0x70]
mov rcx, qword [rbx + 0x68]
mov qword [r8], rcx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp qword [rbx + 0x78], 0
jne 0x14004323d
movsx ecx, sil
mov rdx, qword [rbx + 0x90]
call fcn.1400ee4d8
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, esi
jmp 0x1400433a4
mov byte [rbp - 1], sil
xor r15d, r15d
mov qword [rbp + 0x17], r15
mov qword [rbp + 0x1f], r15
mov qword [rbp + 0x1f], select
mov qword [rbp + 0x17], r15
mov byte [rbp + 7], r15b
xor r8d, r8d
lea edx, [r15 + 8]
lea rcx, [rbp + 7]
call fcn.140029810
nop
mov r10, qword [rbp + 7]
mov r9, qword [rbp + 0x1f]
nop word [rax + rax]
lea rdx, [rbp + 7]
cmp r9, 0x10
cmovae rdx, r10
lea r8, [rbp + 7]
cmovae r8, r10
mov rcx, qword [rbx + 0x78]
mov r10, qword [rcx]
add rdx, qword [rbp + 0x17]
lea rax, [rbp - 9]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r8
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
lea r9, [rbp]
lea r8, [rbp - 1]
lea rdx, [rbx + 0x84]
call qword [r10 + 0x38]
test eax, eax
js 0x140043381
cmp eax, 1
jg 0x140043362
lea rax, [rbp + 7]
mov r10, qword [rbp + 7]
mov r9, qword [rbp + 0x1f]
cmp r9, 0x10
cmovae rax, r10
mov rdi, qword [rbp - 9]
sub rdi, rax
je 0x140043329
lea rcx, [rbp + 7]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rbx + 0x90]
mov r8, rdi
mov edx, 1
call fcn.1400ee8d8
cmp rdi, rax
jne 0x140043381
mov r9, qword [rbp + 0x1f]
mov r10, qword [rbp + 7]
mov byte [rbx + 0x81], 1
lea rax, [rbp - 1]
cmp qword [rbp - 0x11], rax
jne 0x14004335e
test rdi, rdi
jne 0x140043280
cmp qword [rbp + 0x17], 0x20
jae 0x140043381
xor r8d, r8d
lea edx, [rdi + 8]
lea rcx, [rbp + 7]
call fcn.14001a600
jmp 0x14004326d
mov ebx, esi
jmp 0x140043384
cmp eax, 3
jne 0x140043381
movsx ecx, byte [rbp - 1]
mov rdx, qword [rbx + 0x90]
call fcn.1400ee4d8
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, esi
jmp 0x140043384
or ebx, 0xffffffff
cmp qword [rbp + 0x1f], 0x10
jb 0x140043394
mov rcx, qword [rbp + 7]
call fcn.1400ed78c
mov qword [rbp + 0x1f], select
mov qword [rbp + 0x17], r15
mov byte [rbp + 7], 0
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400efba0
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140044210
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x78], 0
je 0x140044387
cmp byte [rcx + 0x81], 0
je 0x140044387
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x14004426c
xor al, al
jmp 0x140044389
xor r14d, r14d
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x18], select
mov qword [rbp - 0x20], r14
mov byte [rbp - 0x30], r14b
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp - 0x30]
call fcn.140029810
nop
mov r10, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
lea rdx, [rbp - 0x30]
cmp r9, 0x10
cmovae rdx, r10
lea r8, [rbp - 0x30]
cmovae r8, r10
mov rcx, qword [rdi + 0x78]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x84]
call qword [r10 + 0x40]
test eax, eax
je 0x1400442e0
dec eax
jne 0x140044357
jmp 0x1400442e7
mov byte [rdi + 0x81], 0
lea rax, [rbp - 0x30]
mov r10, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, r10
mov rbx, qword [rbp - 0x38]
sub rbx, rax
je 0x140044331
lea rcx, [rbp - 0x30]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x90]
mov r8, rbx
mov edx, 1
call fcn.1400ee8d8
cmp rbx, rax
jne 0x14004435c
mov r9, qword [rbp - 0x18]
mov r10, qword [rbp - 0x30]
cmp byte [rdi + 0x81], 0
je 0x140044360
test rbx, rbx
jne 0x1400442a0
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.14001a600
jmp 0x140044298
sub eax, 2
je 0x140044360
xor bl, bl
jmp 0x140044362
mov bl, 1
cmp qword [rbp - 0x18], 0x10
jb 0x140044372
mov rcx, qword [rbp - 0x30]
call fcn.1400ed78c
mov qword [rbp - 0x18], select
mov qword [rbp - 0x20], r14
mov byte [rbp - 0x30], 0
movzx eax, bl
jmp 0x140044389
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400efba0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x14004e580
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp eax, 0xffffffff
jne 0x14004e5d2
xor eax, eax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x20], eax
call fcn.140146e40
test ebx, ebx
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
jne 0x14004e5e7
mov eax, edi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400efba0
add rsp, 0x40
pop rdi
ret
lea rdx, [0x140195c30]
lea rcx, [rsp + 0x20]
call fcn.14004e390
int3
Function at 0x14004e8d0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 0x10]
xor r8d, r8d
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
lea rdx, [rsp + 0x20]
lea ecx, [r8 + 2]
or r9d, 0xffffffff
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x14017088c], eax
test eax, eax
je 0x14004e947
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400efba0
add rsp, 0x40
pop rbx
ret
mov rdx, qword [rbx + 8]
lea rcx, [fcn.140019fc0]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400efba0
add rsp, 0x40
pop rbx
ret
Function at 0x14004e980
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov rsi, rdx
mov rbp, rcx
lea edx, [r9 + 1]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
mov qword [rsi + 8], rax
test rax, rax
jne 0x14004e9f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
lea edx, [rdi + 1]
mov rcx, rsi
mov ebx, eax
call qword [r8]
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rax
call fcn.140146e40
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x14004eb04
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x10], rax
mov qword [rsi + 0x10], rax
cmp qword [rbp + 0x10], 0
jne 0x14004ea4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rax
call fcn.140146e40
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x14004eb16
xor ecx, ecx
lea rax, [rsp + 0x40]
lea r8, [0x14004eb40]
mov qword [rsp + 0x28], rax
mov r9, rsi
xor edx, edx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x40], ecx
call fcn.1400f28a8
mov qword [rbp + 8], rax
test rax, rax
jne 0x14004eacd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
test rdi, rdi
je 0x14004eaa0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14004eaaf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rax
call fcn.140146e40
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x14004eb28
test rdi, rdi
je 0x14004eae7
or edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400efba0
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.thread.entry_event
lea rcx, [rsp + 0x30]
call fcn.14004e390
int3
lea rdx, str.thread.exit_event
lea rcx, [rsp + 0x30]
call fcn.14004e390
int3
lea rdx, str.thread
lea rcx, [rsp + 0x30]
call fcn.14004e390
int3
Function at 0x14004f000
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x14004f05c
call fcn.14004f140
mov dword [rsp + 0x20], ebx
call fcn.140146e40
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
xor eax, eax
jmp 0x14004f0f1
mov qword [rsp + 0x38], rbx
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov ecx, dword [0x140172018]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x40]
mov ecx, dword [0x140172018]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r8, rsi
mov rcx, rdi
call fcn.14004f2d0
test rax, rax
je 0x14004f0cd
cmp rbx, 0xffffffffffffffff
je 0x14004f0bd
inc rbx
mov r8, rsi
mov rcx, rdi
call fcn.14004f2d0
test rax, rax
jne 0x14004f0b4
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x140172018]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14004f0ee
call fcn.1400ed78c
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400efba0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14004f760
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r15d, r15d
mov rdi, r9
mov rbp, rdx
mov r14, rcx
mov esi, r15d
cmp rcx, 0xffffffffffffffff
je 0x14004f89d
test r8b, r8b
je 0x14004f7ef
test byte [rdx], 8
je 0x14004f7ef
mov dword [rsp + 0x40], r15d
call fcn.140146e40
or byte [rbp], 8
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov r8d, 0x80
mov rcx, r14
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call fcn.140146e40
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x14004f7ef
call fcn.140146e40
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
call fcn.140146e40
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test esi, esi
je 0x14004f89d
call fcn.140146e40
cmp qword [rdi + 8], rax
jne 0x14004f838
cmp dword [rdi], 0x2733
je 0x14004f84b
call fcn.140146e40
cmp qword [rdi + 8], rax
jne 0x14004f899
cmp dword [rdi], 0x4d5
jne 0x14004f899
lea r8, [rsp + 0x40]
mov edx, 0x8004667e
mov rcx, r14
mov dword [rsp + 0x40], r15d
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [rbp], 0xfc
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
call fcn.140146e40
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test esi, esi
jne 0x14004f8b4
mov dword [rsp + 0x30], r15d
call fcn.140146e40
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov eax, esi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400efba0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004f8e0
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 rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x14004f924
mov dword [rsp + 0x20], 0x2719
call fcn.140146e40
mov qword [rsp + 0x28], rax
or eax, ebx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
jmp 0x14004f978
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r8d, esi
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
mov esi, eax
call fcn.140146e40
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], eax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
test esi, esi
jne 0x14004f976
mov dword [rsp + 0x20], esi
call fcn.140146e40
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14004fad0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, qword [rsp + 0xb0]
mov rbx, rcx
xor ecx, ecx
mov rsi, r8
mov rdi, rdx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor ebp, ebp
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x30], rbp
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x54], ebp
call qword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call fcn.140146e40
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r14], xmm0
mov ecx, dword [r14]
cmp ecx, 0x40
jne 0x14004fb69
mov dword [rsp + 0x40], 0x2746
jmp 0x14004fb79
cmp ecx, 0x4d2
jne 0x14004fb8c
mov dword [rsp + 0x40], 0x274d
call fcn.140146e40
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r14], xmm0
test edi, edi
je 0x14004fb95
or eax, 0xffffffff
jmp 0x14004fbb0
mov dword [rsp + 0x40], ebp
call fcn.140146e40
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x50]
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r14], xmm0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400efba0
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14004fd00
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, qword [rsp + 0xb0]
mov rbx, rcx
xor ecx, ecx
mov rsi, r8
mov rdi, rdx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor ebp, ebp
lea r9, [rsp + 0x50]
mov r8d, esi
mov qword [rsp + 0x30], rbp
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x50], ebp
call qword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call fcn.140146e40
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r14], xmm0
mov ecx, dword [r14]
cmp ecx, 0x40
jne 0x14004fd8f
mov dword [rsp + 0x40], 0x2746
jmp 0x14004fd9f
cmp ecx, 0x4d2
jne 0x14004fdb2
mov dword [rsp + 0x40], 0x274d
call fcn.140146e40
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r14], xmm0
test edi, edi
je 0x14004fdbb
or eax, 0xffffffff
jmp 0x14004fdd6
mov dword [rsp + 0x40], ebp
call fcn.140146e40
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x50]
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r14], xmm0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400efba0
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14004ff00
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov esi, ecx
xor ecx, ecx
mov rbp, r9
mov edi, r8d
mov ebx, edx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r9d, r9d
mov r8d, edi
mov edx, ebx
mov ecx, esi
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
call fcn.140146e40
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp], xmm0
cmp rdi, 0xffffffffffffffff
jne 0x14004ff78
or rax, rdi
jmp 0x14004ffc0
cmp esi, 0x17
jne 0x14004ffa2
lea r9, [rsp + 0x40]
lea edx, [rsi + 0x12]
lea r8d, [rsi + 4]
mov rcx, rdi
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x30], 0
call fcn.140146e40
mov qword [rsp + 0x38], rax
mov rax, rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp], xmm0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400efba0
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret