joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d8b4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rdi, qword [0x1402ec518]
xorps xmm0, xmm0
xor eax, eax
mov edx, 0x7f00
xor ecx, ecx
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm0
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000d32c
mov edx, 0x7f8a
mov dword [0x140311e3c], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000d32c
mov edx, 0x7f03
mov dword [0x140311e24], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000d32c
mov edx, 0x7f89
mov dword [0x140311e2c], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000d32c
mov edx, 0x7f8b
mov dword [0x140311eb0], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000d32c
mov edx, 0x7f01
mov dword [0x140311e18], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000d32c
mov edx, 0x7f88
mov dword [0x140311e30], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000d32c
mov edx, 0x7f86
mov dword [0x140311e38], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000d32c
mov edx, 0x7f83
mov dword [0x140311e40], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000d32c
mov edx, 0x7f85
mov dword [0x140311e28], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000d32c
mov edx, 0x7f82
mov dword [0x140311e20], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000d32c
mov edx, 0x7f84
mov dword [0x140311eb4], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000d32c
mov edx, 0x7f04
mov dword [0x140311e1c], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000d32c
mov edx, 0x7f02
mov dword [0x140311e34], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, rax
call fcn.14000d32c
lea rcx, [rsp + 0x30]
mov dword [0x140311e44], eax
mov dword [rsp + 0x30], 0x18
call qword [sym.imp.USER32.dll_GetCursorInfo]
mov rcx, qword [rsp + 0x38]
call fcn.14000d32c
mov ecx, eax
call fcn.14000d264
mov ecx, 0x1d
mov dword [reloc.WS2_32.dll_connect], eax
call fcn.1401d7f54
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
lea edx, [r9 + 5]
call fcn.140098bdc
mov ecx, 0x58
mov rbx, rax
call qword [sym.imp.WS2_32.dll_htons]
mov ecx, 5
mov word [rbx], ax
call qword [sym.imp.WS2_32.dll_htons]
mov dl, byte [reloc.WS2_32.dll_connect]
xor r8d, r8d
mov byte [rbx + 4], dl
mov rcx, rdi
mov rdx, rbx
mov word [rbx + 2], ax
call fcn.1400a008c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edx, edx
mov ecx, 0x1fffff
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenThread]
and qword [rsp + 0x28], 0
lea r8, [0x14000d780]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
mov qword [0x1402ec4e8], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x60]
mov qword [0x1402ec508], rax
add rsp, 0x50
pop rdi
ret
Function at 0x14000ef84
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [0x1402eca00], 0
mov rbp, r9
mov ebx, edx
mov rdi, rcx
je 0x14000f001
cmp edx, 2
jl 0x14000efeb
movzx ecx, word [rcx]
call qword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 0xa
jne 0x14000efeb
and qword [rsp + 0x28], 0
lea r8, [0x14000db74]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14000efeb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1402eca00]
mov r8d, ebx
mov rdx, rdi
call fcn.1400a37d0
mov eax, ebx
jmp 0x14000f026
xor esi, esi
jmp 0x14000f014
add esi, eax
mov edx, ebx
sub edx, esi
movsxd rcx, esi
add rcx, rdi
mov r9, rbp
lea r8, [0x140001c60]
call fcn.14000e3a0
test eax, eax
jne 0x14000f005
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 0x14000f2bc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x7580
call fcn.1401c9cb0
sub rsp, rax
mov rax, qword [0x1402e8ed8]
xor rax, rsp
mov qword [rsp + 0x7570], rax
mov rbp, qword [rcx]
xor ebx, ebx
and dword [rsp + 0x30], ebx
xor edi, edi
cmp dword [0x1402e9b84], ebx
mov r14, qword [rcx + 8]
jne 0x14000f38d
mov rcx, qword [0x1402e9b90]
lea rdx, [rsp + 0x40]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, 0x7530
movsxd rax, edi
sub r8d, edi
add rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000f383
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14000f383
cmp dword [0x1402e9b84], 0
jne 0x14000f383
lea esi, [rax + rdi]
jmp 0x14000f34c
add ebx, eax
mov edx, esi
movsxd rax, ebx
lea rcx, [rsp + 0x40]
sub edx, ebx
add rcx, rax
mov r9, r14
mov r8, rbp
call fcn.14000e3a0
test eax, eax
jne 0x14000f34a
xor edi, edi
cmp ebx, esi
cmovne edi, esi
cmp ebx, esi
cmovne eax, ebx
cmp dword [0x1402e9b84], 0
mov ebx, eax
je 0x14000f304
jmp 0x14000f38d
mov dword [0x1402e9b84], 1
xor eax, eax
mov rcx, qword [rsp + 0x7570]
xor rcx, rsp
call fcn.1401c9740
lea r11, [rsp + 0x7580]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14000ff20
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, r9
mov r8, rcx
test rdx, rdx
je 0x14000ff7b
cmp dword [0x1402ec534], 1
jne 0x14000ff4a
cmp dword [0x1402e9b84], 0
jne 0x14000ff4a
xor eax, eax
jmp 0x14000fffd
mov eax, dword [rsp + 0x60]
lea r9, [0x140001c60]
and dword [0x1402ec530], 0
mov dword [0x1402e9b88], eax
mov dword [reloc.WS2_32.dll_accept], 5
mov qword [rsp + 0x60], rdi
add rsp, 0x30
pop rdi
jmp fcn.14000fd44
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x14]
call fcn.140098eb8
cmp dword [0x1402ec534], 1
lea rcx, [0x140001c60]
mov dword [0x1402ec564], 1
mov qword [rax], rcx
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
jne 0x14000ffc9
cmp dword [0x1402e9b84], 0
jne 0x14000ffc9
mov rcx, rax
call fcn.1401d6b80
jmp 0x14000ff43
and qword [rsp + 0x28], 0
lea r8, [fcn.14000fb4c]
and dword [rsp + 0x20], 0
mov r9, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov qword [0x1402ec578], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x30
pop rdi
ret

Function at 0x140010004
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x1402eca00]
mov dword [0x1402e9b84], 1
test rbx, rbx
je 0x140010043
mov rcx, rbx
call fcn.140098e0c
test eax, eax
je 0x14001003b
mov rcx, qword [rbx + 0x50]
mov edx, 0x42b
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
and qword [0x1402eca00], 0
add rsp, 0x20
pop rbx
ret

Function at 0x1400101c4
Capabilities:
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], r15
mov r10d, dword [0x1402ec588]
mov esi, edx
mov r11d, dword [0x1402ec570]
mov eax, r10d
cdq
xor r9d, r9d
idiv r11d
mov eax, r10d
mov r14, r8
mov edi, edx
mov r15d, ecx
cdq
mov r8d, r10d
idiv r11d
test edx, edx
je 0x14001020d
sub r8d, edx
add r8d, r11d
sub r8d, esi
sub r8d, dword [0x1402ec54c]
test edi, edi
je 0x140010225
mov eax, r11d
sub eax, edi
add eax, r10d
jmp 0x140010228
mov eax, r10d
sub eax, esi
cmp r8d, eax
jge 0x140010293
mov eax, dword [0x1402ec538]
cdq
idiv r11d
test edx, edx
je 0x14001024a
mov eax, r11d
sub eax, edx
add eax, dword [0x1402ec538]
jmp 0x140010250
mov eax, dword [0x1402ec538]
imul eax, r8d
add eax, r15d
imul eax, dword [0x1402ec598]
movsxd rdx, eax
mov eax, r11d
imul eax, dword [0x1402ec598]
add rdx, r14
movsxd rcx, eax
sar rcx, 2
lea rax, [rdx + rcx*4]
jmp 0x140010289
imul r9d, r9d, 0x1000193
xor r9d, dword [rdx]
add rdx, 4
cmp rdx, rax
jb 0x14001027b
inc r8d
jmp 0x140010217
mov rsi, qword [rsp + 8]
mov eax, r9d
mov rdi, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov r15, qword [rsp + 0x20]
ret
Function at 0x1400118dc
Capabilities:
Create thread
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1402e8ed8]
xor rax, rsp
mov qword [rbp - 8], rax
xor esi, esi
mov r14d, edx
mov ebx, ecx
test ecx, ecx
je 0x1400119f4
cmp ecx, 6
jne 0x140011931
lea ecx, [rbx - 4]
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
lea ecx, [rbx - 2]
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
mov eax, 1
jmp 0x1400119f6
cmp ebx, 7
jne 0x14001193b
lea ecx, [rbx - 6]
jmp 0x140011921
cmp ebx, 8
jne 0x14001194b
or ecx, 0xffffffff
call qword [sym.imp.USER32.dll_MessageBeep]
jmp 0x140011927
cmp ebx, 9
jne 0x140011981
mov qword [rsp + 0x28], rsi
lea r8, [0x14000db74]
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp - 0x20], rax
test rax, rax
je 0x140011927
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140011927
cmp ebx, 5
jg 0x1400119f4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x20]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400119f4
lea r8, [rbp - 0x14]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rbp - 0x20]
lea r8, [rbp - 0x18]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rbp - 0x18], 1
mov dword [rbp - 0xc], 2
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140011a17
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401c9740
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
sub ebx, 1
je 0x140011a66
sub ebx, 1
je 0x140011a4e
sub ebx, 1
je 0x140011a44
sub ebx, 1
je 0x140011a3d
cmp ebx, 1
jne 0x140011aa8
xor ecx, ecx
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_SetSystemPowerState]
jmp 0x140011a7f
mov ecx, 1
jmp 0x140011a32
mov dword [rsp + 0x20], 1
jmp 0x140011a52
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
lea r9d, [rdx + 1]
lea r8d, [rdx + 0x1e]
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
jmp 0x140011a7f
mov edx, 0x80000000
test r14d, r14d
je 0x140011a77
mov ecx, 4
jmp 0x140011a79
xor ecx, ecx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x140011aa8
mov rcx, qword [rbp - 0x20]
lea r8, [rbp - 0x18]
mov qword [rsp + 0x28], rsi
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rsi
mov dword [rbp - 0xc], esi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, 1
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x1400119f6
Function at 0x140011abc
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov rbx, rdx
lea r8, [rsp + 0x40]
lea rdx, str.SoftwareOpen_SourceMeshAgent2
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
xor ecx, ecx
test eax, eax
jne 0x140011b26
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], cx
jne 0x140011aec
mov rcx, qword [rsp + 0x40]
lea rdx, str.KeyStore
add eax, eax
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x30
pop rbx
ret
Function at 0x14005cc54
Capabilities:
Get disk information
Get disk size

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rax, qword [0x1402e8ed8]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov rax, rdx
lea r9, [rsp + 0x30]
mov rdi, rcx
lea rdx, [rsp + 0x50]
mov rcx, rax
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameA]
test eax, eax
je 0x14005ce5c
cmp byte [rsp + 0x50], 0
je 0x14005ce5c
mov rcx, rdi
call fcn.14001e1b0
lea rax, [rsp + 0x50]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14005ccc0
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14001dc20
mov r14d, 0xfffffffe
lea r8, str.name
mov edx, r14d
mov rcx, rdi
call fcn.14001b2f8
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea r9, [rsp + 0x40]
mov ebx, eax
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x14005cda4
mov rcx, qword [rsp + 0x38]
xorps xmm1, xmm1
test rcx, rcx
js 0x14005cd32
cvtsi2sd xmm1, rcx
jmp 0x14005cd47
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
mov rcx, rdi
call fcn.14001db40
lea r8, str.size
mov edx, r14d
mov rcx, rdi
call fcn.14001b2f8
mov rcx, qword [rsp + 0x40]
xorps xmm1, xmm1
test rcx, rcx
js 0x14005cd75
cvtsi2sd xmm1, rcx
jmp 0x14005cd8a
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
mov rcx, rdi
call fcn.14001db40
lea r8, str.free
mov edx, r14d
mov rcx, rdi
call fcn.14001b2f8
sub ebx, 2
je 0x14005cdfc
sub ebx, 1
je 0x14005cded
sub ebx, 1
je 0x14005cdde
sub ebx, 1
je 0x14005cdd5
mov r8d, 7
cmp ebx, 1
je 0x14005cdcc
lea rdx, str.UNKNOWN
jmp 0x14005ce09
lea rdx, str.RAMDISK
jmp 0x14005ce09
lea rdx, str.CDROM
jmp 0x14005cdf4
lea rdx, str.REMOTE
mov r8d, 6
jmp 0x14005ce09
lea rdx, str.FIXED
mov r8d, 5
jmp 0x14005ce09
lea rdx, str.REMOVABLE
mov r8d, 9
mov rcx, rdi
call fcn.14001dc20
lea r8, [0x14025b930]
mov edx, r14d
mov rcx, rdi
call fcn.14001b2f8
mov r9d, 0x18075380
mov dword [rsp + 0x20], 6
xor r8d, r8d
lea rdx, [0x14005cc24]
mov rcx, rdi
call fcn.14001e434
lea r8, str.toString
mov edx, r14d
mov rcx, rdi
call fcn.14001b2f8
mov eax, 1
jmp 0x14005ce5e
xor eax, eax
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.1401c9740
mov rbx, qword [rsp + 0x490]
add rsp, 0x460
pop r14
pop rdi
pop rbp
ret
Function at 0x140088838
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
or ebx, 0xffffffff
mov rbp, rcx
mov edx, ebx
call fcn.14001a8bc
lea r8, [rsp + 0x70]
mov edx, ebx
mov rcx, rbp
mov r15, rax
call fcn.14001c4c4
mov rcx, rbp
call fcn.14001df90
lea r8, [0x1402c0030]
mov edx, ebx
mov rcx, rbp
call fcn.140066048
mov rcx, rbp
mov rdi, rax
call fcn.14001eb50
mov rbx, qword [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor r14d, r14d
test rdi, rdi
je 0x14008890f
lea ecx, [rbx + 1]
movsxd rcx, ecx
add rcx, 8
call fcn.140098eb8
mov r9, rbx
mov r8, r15
mov rdx, rbx
mov rsi, rax
lea rcx, [rax + 8]
mov qword [rax], rdi
call section..text
mov byte [rsi + rbx + 8], r14b
mov rcx, qword [rdi]
call fcn.140098e0c
mov r8, qword [rdi]
test eax, eax
je 0x1400888ec
cmp qword [r8 - 0x10], r14
jbe 0x1400888e9
lea r14, [r8 + 0x18]
add r14, qword [r8 - 0x18]
mov r14, qword [r14]
mov rdx, qword [r14]
lea r9, [0x14008de08]
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 1
call fcn.140065d24
jmp 0x140088965
lea esi, [rbx + 4]
movsxd rcx, esi
call fcn.140098eb8
mov r9, rbx
mov r8, r15
mov rdx, rbx
mov rdi, rax
lea rcx, [rax + 4]
mov dword [rax], esi
call section..text
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], r14
mov rcx, rax
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbp
call fcn.14001eb50
mov rcx, rdi
call fcn.1401d6b80
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140094c28
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor eax, eax
lea rbp, [rcx + 0xcc]
xorps xmm0, xmm0
mov rdi, r9
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], rax
mov rsi, r8
mov dword [rbp + 0x18], eax
mov rbx, rcx
and dword [rcx + 0x1e8], eax
mov rax, qword [rsp + 0x60]
mov qword [rcx + 0x1f0], rax
mov rax, qword [rsp + 0x68]
mov qword [rcx + 0x1f8], rax
test r8, r8
jne 0x140094c83
xor eax, eax
jmp 0x140094c90
mov edx, 0xfe
mov rcx, rsi
call fcn.1401d7904
lea rcx, [rbx + 0xe8]
mov r9, rax
mov r8, rsi
mov edx, 0xff
call section..text
test rdi, rdi
je 0x140094cc8
cmp word [rdi], 0x17
mov edx, 0x1c
mov r8, rdi
mov rcx, rbp
lea r9d, [rdx - 0xc]
cmove r9d, edx
call section..text
mov rax, qword [rsp + 0x78]
xor r8d, r8d
mov r9, qword [rsp + 0x70]
mov rcx, rbx
mov qword [rsp + 0x60], rax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.14009486c

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov ebx, 0xfffffffc
mov rdi, rcx
lea r14d, [rbx + 5]
jmp 0x140094d1d
pause
xor eax, eax
lock cmpxchg dword [rcx + 0x288], r14d
je 0x140094d1b
mov rax, qword [rcx + 0x2d0]
cmp qword [rax], 0
jbe 0x140094e62
cmp qword [rcx + 0x280], 0
jne 0x140094e62
cmp dword [rcx + 0x258], 0
jne 0x140094d7e
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x38]
call fcn.140098eb8
xor ebx, ebx
mov dword [rax + 0x2c], 3
mov qword [rdi + 0x280], rax
mov qword [rdi + 0x278], rax
jmp 0x140094e62
mov rcx, qword [rcx + 0x2c0]
mov edx, reloc.WS2_32.dll_ntohs
call fcn.1400d3090
mov rdx, qword [rdi + 0x2d0]
xor r9d, r9d
mov rcx, qword [rdi + 0x68]
mov r8d, dword [rdx]
mov rdx, qword [rdx + 8]
call qword [sym.imp.WS2_32.dll_send]
movsxd rsi, eax
test eax, eax
jle 0x140094e62
mov rcx, qword [rdi + 0x2d0]
mov eax, dword [rcx]
cmp esi, eax
jge 0x140094e48
xor r9d, r9d
sub eax, esi
movsxd rdx, eax
xor r8d, r8d
lea ecx, [r9 + 0x38]
call fcn.140098eb8
mov rcx, rax
mov rbx, rax
neg rcx
sbb rcx, rcx
lea rdx, [rax + 0x40]
and rcx, rdx
mov qword [rax], rcx
mov rdx, qword [rdi + 0x2d0]
mov r8d, dword [rdx]
sub r8d, esi
mov dword [rax + 0x2c], 3
mov dword [rax + 8], r8d
mov rax, qword [rdi + 0x2d0]
movsxd rdx, r8d
mov r8, rsi
mov r9, rdx
add r8, qword [rax + 8]
call section..text
mov rcx, qword [rdi + 0x2c0]
xor r9d, r9d
mov qword [rdi + 0x280], rbx
xor r8d, r8d
mov qword [rdi + 0x278], rbx
mov edx, r14d
xor ebx, ebx
call fcn.1400d30c0
jmp 0x140094e62
jne 0x140094e62
mov rcx, qword [rdi + 0x2c0]
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
call fcn.1400d30c0
mov ebx, r14d
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov dword [rdi + 0x288], 0
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140096428
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
and dword [rcx + 0x70], 0
mov rax, rdx
and dword [rcx + 0x74], 0
mov rbx, rcx
and dword [rcx + 0x254], 0
and dword [rcx + 0x2a4], 0
mov qword [rcx + 0x68], rdx
lea rdx, [0x140301ca0]
mov qword [rcx + 0x220], r8
mov qword [rcx + 0x240], r9
mov dword [rcx + 0x258], 1
mov rcx, qword [rcx + 0x268]
cmp rcx, rdx
je 0x1400964a1
movsxd rdx, dword [rbx + 0x274]
call fcn.1401dd350
test rax, rax
je 0x1400964d0
mov qword [rbx + 0x268], rax
mov eax, dword [rbx + 0x274]
mov dword [rbx + 0x270], eax
mov rax, qword [rbx + 0x68]
and dword [rbx + 0x25c], 0
lea r8, [rsp + 0x40]
and dword [rbx + 0x260], 0
mov edx, 0x8004667e
mov rcx, rax
mov dword [rsp + 0x40], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x946
lea rdx, str.C:UsersDELLDesktopProjektySUPMANMeshAgentmicrostackILibAsyncSocket.c
mov r8d, ebx
mov dword [rsp + 0x20], eax
mov r9d, 0xfe
xor ecx, ecx
call fcn.1400a1918
mov r8d, ebx
lea rdx, str.C:UsersDELLDesktopProjektySUPMANMeshAgentmicrostackILibAsyncSocket.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001128
mov ecx, 0xfe
call fcn.1401d00dc
int3

Function at 0x140096574
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea rdi, [rcx + 0x94]
mov esi, 0x1c
cmp word [rdi], 0
mov rax, rdx
mov dword [rsp + 0x30], esi
je 0x1400965c1
cmp word [rdi], 0x17
lea ebx, [rsi - 0xc]
mov edx, ebx
mov r8, rdi
cmove edx, esi
mov rcx, rax
mov r9d, edx
call section..text
cmp word [rdi], 0x17
cmove ebx, esi
mov eax, ebx
jmp 0x1400965d4
mov rcx, qword [rcx + 0x68]
lea r8, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
mov eax, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400965e4
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1402e8ed8]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx eax, word [rcx + 0x94]
mov dword [rsp + 0x20], 0x1c
cmp ax, 0x17
jne 0x14009661b
movzx ecx, word [rcx + 0x96]
call qword [sym.imp.WS2_32.dll_ntohs]
jmp 0x14009664e
cmp ax, 2
je 0x14009660c
mov rcx, qword [rcx + 0x68]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp word [rsp + 0x28], 0x17
jne 0x140096644
movzx ecx, word [rsp + 0x2a]
jmp 0x140096613
cmp word [rsp + 0x28], 2
je 0x14009663d
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401c9740
add rsp, 0x58
ret
Function at 0x140096738
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
and dword [rax + 0x18], 0
mov r14d, edx
and dword [rax - 0x38], 0
xor edx, edx
and dword [rax - 0x34], 0
mov ebp, r9d
mov rsi, r8
mov dword [rax + 0x20], r9d
mov r15, rcx
xor r9d, r9d
lea ecx, [rdx + 0x30]
xor r8d, r8d
call fcn.140098eb8
mov r8, qword [rsp + 0xb0]
mov edx, 2
mov rcx, qword [rsp + 0xb8]
mov rdi, rax
mov qword [rax + 0x28], rcx
mov rcx, qword [rsp + 0xc0]
mov qword [rax + 0x20], r8
lea r8d, [rdx + 0xf]
mov qword [rax], rcx
movzx ecx, word [rsi]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400968e0
cmp ebp, 1
jne 0x1400967ea
lea r9, [rsp + 0xa8]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
lea r8d, [rbp + 3]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1400968fe
cmp word [rsi], 0x17
jne 0x14009681a
mov edx, 0x29
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xa0]
mov rcx, rbx
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x14009692b
cmp word [rsi], 0x17
mov eax, 0x1c
mov rdx, rsi
mov rcx, rbx
lea r8d, [rax - 0xc]
cmove r8d, eax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x1400968d7
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x54]
mov qword [rsp + 0x30], rax
mov r9d, 4
and dword [rsp + 0x28], 0
mov edx, 0x9800000c
and qword [rsp + 0x20], 0
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_WSAIoctl]
movzx ecx, word [rsi + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
and dword [rsp + 0x30], 0
lea rbp, [0x1400190ec]
mov word [rdi + 0x18], ax
lea r8, [0x140096660]
lea rax, [0x14009671c]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov edx, r14d
mov rcx, r15
mov qword [rsp + 0x20], rbp
call fcn.140093e1c
mov rsi, rax
test rax, rax
je 0x1400968d7
mov r9, rdi
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call fcn.140096428
mov rax, rsi
jmp 0x1400968ea
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rdi
call fcn.1401d6b80
xor eax, eax
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
and dword [rsp + 0x20], 0
lea rdx, str.C:UsersDELLDesktopProjektySUPMANMeshAgentmicrostackILibAsyncUDPSocket.c
mov r9d, eax
mov r8d, 0x7f
xor ecx, ecx
call fcn.1400a1918
mov ecx, 0xfd
call fcn.1401d00dc
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
and dword [rsp + 0x20], 0
lea rdx, str.C:UsersDELLDesktopProjektySUPMANMeshAgentmicrostackILibAsyncUDPSocket.c
mov r9d, eax
mov r8d, 0x83
xor ecx, ecx
call fcn.1400a1918
mov ecx, 0xfd
call fcn.1401d00dc
int3