joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011280
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x7590
call fcn.1401da3f0
sub rsp, rax
mov rax, qword [0x14030cf00]
xor rax, rsp
mov qword [rsp + 0x7580], rax
mov rbp, qword [rcx]
lea r9, str.KVM__SLAVE_:__mainloopinput__Starting...
mov r14, qword [rcx + 8]
xor ebx, ebx
mov rcx, qword [0x1403154d0]
mov edx, 0x200
and dword [rsp + 0x40], ebx
xor edi, edi
lea r8d, [rbx + 2]
call fcn.1400acec4
cmp dword [0x14030dc04], ebx
jne 0x140011398
mov rcx, qword [0x14030dc10]
lea rdx, [rsp + 0x50]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 0x7530
movsxd rax, edi
sub r8d, edi
add rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x40]
mov edx, dword [0x14030dc04]
test eax, eax
je 0x140011364
test ecx, ecx
je 0x140011364
test edx, edx
jne 0x140011364
lea esi, [rcx + rdi]
jmp 0x14001132d
add ebx, eax
mov edx, esi
movsxd rax, ebx
lea rcx, [rsp + 0x50]
sub edx, ebx
add rcx, rax
mov r9, r14
mov r8, rbp
call fcn.1400102e0
test eax, eax
jne 0x14001132b
xor edi, edi
cmp ebx, esi
cmovne edi, esi
cmp ebx, esi
cmovne eax, ebx
cmp dword [0x14030dc04], 0
mov ebx, eax
je 0x1400112e4
jmp 0x140011398
mov dword [rsp + 0x30], edx
lea r9, str.KVM__SLAVE_:_fSuccess__d__cbBytesRead__d__g_shutdown__d
mov dword [rsp + 0x28], ecx
mov edx, 0x200
mov rcx, qword [0x1403154d0]
mov r8d, 2
mov dword [rsp + 0x20], eax
call fcn.1400acec4
mov dword [0x14030dc04], 1
mov rcx, qword [0x1403154d0]
lea r9, str.KVM__SLAVE_:__mainloopinput__Exiting...
mov edx, 0x200
mov r8d, 2
call fcn.1400acec4
mov rcx, qword [0x1403154d0]
call fcn.1400aca4c
and qword [0x1403154d0], 0
xor eax, eax
mov rcx, qword [rsp + 0x7580]
xor rcx, rsp
call fcn.1401d9e80
lea r11, [rsp + 0x7590]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140012190
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x140315f60]
xor ebx, ebx
cmp qword [0x1403161c0], rbx
mov dword [0x14030dc04], 1
je 0x140012206
test rax, rax
je 0x1400121c1
mov rcx, qword [rax + 8]
jmp 0x1400121c4
mov rcx, rbx
lea r9, str.KVM.c_kvm_cleanup:_Attempting_to_kill_child_process
mov edx, 0x200
mov r8d, 2
call fcn.1400acec4
mov rdi, qword [0x1403161c0]
mov rcx, rdi
call fcn.14009fccc
test eax, eax
je 0x1400121fd
mov rcx, qword [rdi + 0x50]
mov edx, 0x42b
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov qword [0x1403161c0], rbx
jmp 0x140012229
test rax, rax
je 0x14001220f
mov rbx, qword [rax + 8]
lea r9, str.KVM.c_kvm_cleanup:_gChildProcess__NULL
mov edx, 0x200
mov r8d, 2
mov rcx, rbx
call fcn.1400acec4
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400123ac
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 [0x140315530]
mov esi, edx
mov r11d, dword [0x140315518]
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 0x1400123f5
sub r8d, edx
add r8d, r11d
sub r8d, esi
sub r8d, dword [0x1403154f4]
test edi, edi
je 0x14001240d
mov eax, r11d
sub eax, edi
add eax, r10d
jmp 0x140012410
mov eax, r10d
sub eax, esi
cmp r8d, eax
jge 0x14001247b
mov eax, dword [0x1403154e4]
cdq
idiv r11d
test edx, edx
je 0x140012432
mov eax, r11d
sub eax, edx
add eax, dword [0x1403154e4]
jmp 0x140012438
mov eax, dword [0x1403154e4]
imul eax, r8d
add eax, r15d
imul eax, dword [0x140315540]
movsxd rdx, eax
mov eax, r11d
imul eax, dword [0x140315540]
add rdx, r14
movsxd rcx, eax
sar rcx, 2
lea rax, [rdx + rcx*4]
jmp 0x140012471
imul r9d, r9d, 0x1000193
xor r9d, dword [rdx]
add rdx, 4
cmp rdx, rax
jb 0x140012463
inc r8d
jmp 0x1400123ff
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 0x140013adc
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 [0x14030cf00]
xor rax, rsp
mov qword [rbp - 8], rax
xor esi, esi
mov r14d, edx
mov ebx, ecx
test ecx, ecx
je 0x140013bf4
cmp ecx, 6
jne 0x140013b31
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 0x140013bf6
cmp ebx, 7
jne 0x140013b3b
lea ecx, [rbx - 6]
jmp 0x140013b21
cmp ebx, 8
jne 0x140013b4b
or ecx, 0xffffffff
call qword [sym.imp.USER32.dll_MessageBeep]
jmp 0x140013b27
cmp ebx, 9
jne 0x140013b81
mov qword [rsp + 0x28], rsi
lea r8, [0x14000fab4]
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 0x140013b27
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140013b27
cmp ebx, 5
jg 0x140013bf4
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 0x140013bf4
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 0x140013c17
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.1401d9e80
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 0x140013c66
sub ebx, 1
je 0x140013c4e
sub ebx, 1
je 0x140013c44
sub ebx, 1
je 0x140013c3d
cmp ebx, 1
jne 0x140013ca8
xor ecx, ecx
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_SetSystemPowerState]
jmp 0x140013c7f
mov ecx, 1
jmp 0x140013c32
mov dword [rsp + 0x20], 1
jmp 0x140013c52
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 0x140013c7f
mov edx, 0x80000000
test r14d, r14d
je 0x140013c77
mov ecx, 4
jmp 0x140013c79
xor ecx, ecx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x140013ca8
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 0x140013bf6
Function at 0x140013cbc
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 0x140013d26
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], cx
jne 0x140013cec
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 0x14005d100
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 [0x14030cf00]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov rax, rdx
lea r9, [rsp + 0x30]
mov rbx, rcx
lea rdx, [rsp + 0x50]
mov rcx, rax
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameA]
test eax, eax
je 0x14005d311
cmp byte [rsp + 0x50], 0
je 0x14005d311
mov rcx, rbx
call fcn.140020580
lea rax, [rsp + 0x50]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14005d16c
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14001fff4
mov r14d, 0xfffffffe
lea r8, str.name
mov edx, r14d
mov rcx, rbx
call fcn.14001d620
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea r9, [rsp + 0x40]
mov edi, eax
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x14005d250
mov rcx, qword [rsp + 0x38]
xorps xmm1, xmm1
test rcx, rcx
js 0x14005d1de
cvtsi2sd xmm1, rcx
jmp 0x14005d1f3
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
mov rcx, rbx
call fcn.14001ff14
lea r8, str.size
mov edx, r14d
mov rcx, rbx
call fcn.14001d620
mov rcx, qword [rsp + 0x40]
xorps xmm1, xmm1
test rcx, rcx
js 0x14005d221
cvtsi2sd xmm1, rcx
jmp 0x14005d236
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
mov rcx, rbx
call fcn.14001ff14
lea r8, str.free
mov edx, r14d
mov rcx, rbx
call fcn.14001d620
sub edi, 2
je 0x14005d2b1
sub edi, 1
je 0x14005d2a2
mov rcx, rbx
sub edi, 1
je 0x14005d293
sub edi, 1
je 0x14005d284
mov r8d, 7
cmp edi, 1
je 0x14005d27b
lea rdx, str.UNKNOWN
jmp 0x14005d2c1
lea rdx, str.RAMDISK
jmp 0x14005d2c1
lea rdx, str.CDROM
mov r8d, 5
jmp 0x14005d2c1
lea rdx, str.REMOTE
mov r8d, 6
jmp 0x14005d2c1
lea rdx, str.FIXED
mov r8d, 5
jmp 0x14005d2be
lea rdx, str.REMOVABLE
mov r8d, 9
mov rcx, rbx
call fcn.14001fff4
lea r8, [0x14026ede8]
mov edx, r14d
mov rcx, rbx
call fcn.14001d620
mov r9d, 0x18075380
mov dword [rsp + 0x20], 6
xor r8d, r8d
lea rdx, [0x14005d0d0]
mov rcx, rbx
call fcn.1400207fc
lea r8, str.toString
mov edx, r14d
mov rcx, rbx
call fcn.14001d620
mov eax, 1
jmp 0x14005d313
xor eax, eax
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.1401d9e80
mov rbx, qword [rsp + 0x490]
add rsp, 0x460
pop r14
pop rdi
pop rbp
ret
Function at 0x14008e63c
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 r15, rcx
mov edx, ebx
call fcn.14001cb88
lea r8, [rsp + 0x70]
mov edx, ebx
mov rcx, r15
mov rbp, rax
call fcn.14001e85c
mov rcx, r15
call fcn.140020360
lea r8, [0x1402de540]
mov edx, ebx
mov rcx, r15
call fcn.140068d38
mov rcx, r15
mov rdi, rax
call fcn.140020f08
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ebx, ebx
test rdi, rdi
je 0x14008e744
mov rsi, qword [rsp + 0x70]
lea ecx, [rsi + 1]
movsxd rcx, ecx
add rcx, 8
call fcn.14009fd78
mov r14, rax
mov qword [rax], rdi
lea rcx, [rax + 8]
test rsi, rsi
je 0x14008e6f3
test rcx, rcx
je 0x14008e6e3
mov r8, rsi
test rbp, rbp
je 0x14008e6dc
mov rdx, rbp
call fcn.14020df90
jmp 0x14008e6f3
xor edx, edx
call fcn.14020e630
call fcn.1401e8db4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401e7e2c
mov byte [r14 + rsi + 8], bl
mov rcx, qword [rdi]
call fcn.14009fccc
test eax, eax
je 0x14008e71b
mov rcx, qword [rdi]
cmp qword [rcx - 0x10], rbx
jbe 0x14008e718
mov rbx, qword [rcx - 0x18]
add rbx, 0x18
add rbx, rcx
mov rbx, qword [rbx]
mov r8, qword [rdi]
lea r9, [0x140094670]
mov rdx, qword [rbx]
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], 1
call fcn.140068a10
jmp 0x14008e7c6
mov rdi, qword [rsp + 0x70]
lea r14d, [rdi + 4]
movsxd rcx, r14d
call fcn.14009fd78
mov rsi, rax
mov dword [rax], r14d
lea rcx, [rax + 4]
test rdi, rdi
je 0x14008e792
test rcx, rcx
je 0x14008e782
mov r8, rdi
test rbp, rbp
je 0x14008e77b
mov rdx, rbp
call fcn.14020df90
jmp 0x14008e792
xor edx, edx
call fcn.14020e630
call fcn.1401e8db4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401e7e2c
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov r8d, r14d
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r15
call fcn.140020f08
mov rcx, rsi
call fcn.1401e8ee0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14009b67c
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
lea rbx, [rcx + 0xcc]
xor eax, eax
xorps xmm0, xmm0
mov rbp, r8
movups xmmword [rbx], xmm0
mov rdi, rcx
mov qword [rbx + 0x10], rax
add rcx, 0xe8
mov dword [rbx + 0x18], eax
xor edx, edx
mov r8d, 0xff
mov rsi, r9
call fcn.14020e630
mov rax, qword [rsp + 0x60]
and dword [rdi + 0x1e8], 0
mov qword [rdi + 0x1f0], rax
mov rax, qword [rsp + 0x68]
mov qword [rdi + 0x1f8], rax
test rsi, rsi
je 0x14009b71a
cmp word [rsi], 0x17
mov eax, 0x1c
lea r8d, [rax - 0xc]
cmove r8d, eax
test rbx, rbx
jne 0x14009b70f
call fcn.1401e8db4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401e7e2c
jmp 0x14009b71a
mov rdx, rsi
mov rcx, rbx
call fcn.14020df90
mov rax, qword [rsp + 0x78]
xor r9d, r9d
mov r8, rbp
mov qword [rsp + 0x60], rax
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.14009b2a8

Function at 0x14009b748
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 rsi, [rcx + 0xcc]
xorps xmm0, xmm0
mov rbx, r9
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rax
mov rbp, r8
mov dword [rsi + 0x18], eax
mov rdi, 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
je 0x14009b7f8
mov edx, 0xfe
mov rcx, r8
call fcn.1401e9dbc
lea rcx, [rdi + 0xe8]
test rax, rax
je 0x14009b7f8
test rcx, rcx
jne 0x14009b7c9
call fcn.1401e8db4
mov dword [rax], reloc.WS2_32.dll_shutdown
jmp 0x14009b7f3
mov r8d, 0xff
cmp rax, r8
ja 0x14009b7e1
mov r8, rax
mov rdx, rbp
call fcn.14020df90
jmp 0x14009b7f8
xor edx, edx
call fcn.14020e630
call fcn.1401e8db4
mov dword [rax], 0x22
call fcn.1401e7e2c
test rbx, rbx
je 0x14009b830
cmp word [rbx], 0x17
mov eax, 0x1c
lea r8d, [rax - 0xc]
cmove r8d, eax
test rsi, rsi
jne 0x14009b825
call fcn.1401e8db4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401e7e2c
jmp 0x14009b830
mov rdx, rbx
mov rcx, rsi
call fcn.14020df90
mov rax, qword [rsp + 0x78]
xor r8d, r8d
mov r9, qword [rsp + 0x70]
mov rcx, rdi
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.14009b2a8
Function at 0x14009b860
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 edi, 0xfffffffc
mov rbx, rcx
lea r14d, [rdi + 5]
jmp 0x14009b885
pause
xor eax, eax
lock cmpxchg dword [rcx + 0x288], r14d
je 0x14009b883
mov rax, qword [rcx + 0x2d0]
cmp qword [rax], 0
jbe 0x14009b9ed
cmp qword [rcx + 0x280], 0
jne 0x14009b9ed
cmp dword [rcx + 0x258], 0
jne 0x14009b8e6
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x38]
call fcn.14009fd78
xor edi, edi
mov dword [rax + 0x2c], 3
mov qword [rbx + 0x280], rax
mov qword [rbx + 0x278], rax
jmp 0x14009b9ed
mov rcx, qword [rcx + 0x2c0]
mov edx, reloc.WS2_32.dll_ntohs
call fcn.1400e2e50
mov rdx, qword [rbx + 0x2d0]
xor r9d, r9d
mov rcx, qword [rbx + 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 0x14009b9ed
mov rcx, qword [rbx + 0x2d0]
mov eax, dword [rcx]
cmp esi, eax
jge 0x14009b9d3
xor r9d, r9d
sub eax, esi
movsxd rdx, eax
xor r8d, r8d
lea ecx, [r9 + 0x38]
call fcn.14009fd78
mov rcx, rax
mov rdi, rax
neg rcx
sbb r9, r9
lea rdx, [rax + 0x40]
and r9, rdx
mov qword [rax], r9
mov rcx, qword [rbx + 0x2d0]
mov edx, dword [rcx]
sub edx, esi
mov dword [rax + 0x2c], 3
mov dword [rax + 8], edx
mov rax, qword [rbx + 0x2d0]
movsxd r8, edx
mov rdx, rsi
add rdx, qword [rax + 8]
test r8, r8
je 0x14009b9ac
test r9, r9
je 0x14009b99c
mov rcx, r9
test rdx, rdx
je 0x14009b997
call fcn.14020df90
jmp 0x14009b9ac
call fcn.14020e630
call fcn.1401e8db4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401e7e2c
mov rcx, qword [rbx + 0x2c0]
xor r9d, r9d
mov qword [rbx + 0x280], rdi
xor r8d, r8d
mov qword [rbx + 0x278], rdi
mov edx, r14d
xor edi, edi
call fcn.1400e2e80
jmp 0x14009b9ed
jne 0x14009b9ed
mov rcx, qword [rbx + 0x2c0]
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
call fcn.1400e2e80
mov edi, r14d
mov rsi, qword [rsp + 0x38]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov dword [rbx + 0x288], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r14
ret
Function at 0x14009d18c
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
and dword [rcx + 0x70], 0
mov rbx, rcx
and dword [rcx + 0x74], 0
and dword [rcx + 0x254], 0
and dword [rcx + 0x2a4], 0
mov qword [rcx + 0x68], rdx
mov qword [rcx + 0x220], r8
mov qword [rcx + 0x240], r9
mov dword [rcx + 0x258], 1
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x14009d1d4
mov rcx, qword [rcx + 8]
mov edx, 0x40
mov qword [rsp + 0x20], rbx
lea r9, str.AsyncSocket__p__Initialized
lea r8d, [rdx - 0x3e]
call fcn.1400acec4
mov rcx, qword [rbx + 0x268]
lea rax, [0x14032b480]
cmp rcx, rax
je 0x14009d225
movsxd rdx, dword [rbx + 0x274]
call fcn.1401ef934
test rax, rax
je 0x14009d255
mov qword [rbx + 0x268], rax
mov eax, dword [rbx + 0x274]
mov dword [rbx + 0x270], eax
and dword [rbx + 0x25c], 0
lea r8, [rsp + 0x40]
and dword [rbx + 0x260], 0
mov edx, 0x8004667e
mov rcx, qword [rbx + 0x68]
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, 0x942
lea rdx, str.C:Users_anfdhDownloadsMeshAgent_masterMeshAgent_mastermicrostackILibAsyncSocket.c
mov r8d, ebx
mov dword [rsp + 0x20], eax
mov r9d, 0xfe
xor ecx, ecx
call fcn.1400aa25c
mov r8d, ebx
lea rdx, str.C:Users_anfdhDownloadsMeshAgent_masterMeshAgent_mastermicrostackILibAsyncSocket.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.14000105c
mov ecx, 0xfe
call fcn.1401e0110
int3

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, rdx
lea rbx, [rcx + 0x94]
xor edx, edx
mov esi, 0x1c
mov dword [rsp + 0x30], esi
cmp word [rbx], dx
je 0x14009d3a6
cmp word [rbx], 0x17
lea edi, [rsi - 0xc]
mov r8d, edi
cmove r8d, esi
test rax, rax
je 0x14009d38b
mov rcx, rax
test rbx, rbx
je 0x14009d386
mov rdx, rbx
call fcn.14020df90
jmp 0x14009d39b
call fcn.14020e630
call fcn.1401e8db4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401e7e2c
cmp word [rbx], 0x17
cmove edi, esi
mov eax, edi
jmp 0x14009d3bc
mov rcx, qword [rcx + 0x68]
lea r8, [rsp + 0x30]
mov rdx, rax
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 0x14009d3cc
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub rsp, 0x58
mov rax, qword [0x14030cf00]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx eax, word [rcx + 0x94]
mov dword [rsp + 0x20], 0x1c
cmp ax, 0x17
jne 0x14009d403
movzx ecx, word [rcx + 0x96]
call qword [sym.imp.WS2_32.dll_ntohs]
jmp 0x14009d436
cmp ax, 2
je 0x14009d3f4
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 0x14009d42c
movzx ecx, word [rsp + 0x2a]
jmp 0x14009d3fb
cmp word [rsp + 0x28], 2
je 0x14009d425
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401d9e80
add rsp, 0x58
ret
Function at 0x14009d5ac
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.14009fd78
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 0x14009d754
cmp ebp, 1
jne 0x14009d65e
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 0x14009d772
cmp word [rsi], 0x17
jne 0x14009d68e
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 0x14009d79f
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 0x14009d74b
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, [0x14001b32c]
mov word [rdi + 0x18], ax
lea r8, [0x14009d4d4]
lea rax, [0x14009d590]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov edx, r14d
mov rcx, r15
mov qword [rsp + 0x20], rbp
call fcn.14009a798
mov rsi, rax
test rax, rax
je 0x14009d74b
mov r9, rdi
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call fcn.14009d18c
mov rax, rsi
jmp 0x14009d75e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rdi
call fcn.1401e8ee0
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:Users_anfdhDownloadsMeshAgent_masterMeshAgent_mastermicrostackILibAsyncUDPSocket.c
mov r9d, eax
mov r8d, 0x7f
xor ecx, ecx
call fcn.1400aa25c
mov ecx, 0xfd
call fcn.1401e0110
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
and dword [rsp + 0x20], 0
lea rdx, str.C:Users_anfdhDownloadsMeshAgent_masterMeshAgent_mastermicrostackILibAsyncUDPSocket.c
mov r9d, eax
mov r8d, 0x83
xor ecx, ecx
call fcn.1400aa25c
mov ecx, 0xfd
call fcn.1401e0110
int3