joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a150
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x14030ef00]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov edi, ecx
xor r9d, r9d
mov ecx, 0xe00
xor r8d, r8d
xor edx, edx
call fcn.14009fdfc
xor edx, edx
lea rcx, str.Shcore.dll
mov r8d, 0x800
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [rbx + 0x78], rax
test rax, rax
je 0x14000a1cf
lea rdx, str.SetProcessDpiAwareness
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x80], rax
test rax, rax
jne 0x14000a1cf
mov rcx, qword [rbx + 0x78]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
and qword [rbx + 0x78], 0
mov ecx, 0x18
mov dword [rbx + 0xb9c], 4
call fcn.1400a0744
mov rcx, rax
mov qword [rbx], rax
call fcn.1400aac94
or edi, 0x118
mov qword [rbx + 0x30], rax
xor edx, edx
mov dword [rbx + 0x298], edi
mov r8d, 0x800
lea rcx, str.Ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rdi, rax
test rax, rax
je 0x14000a239
lea rdx, str.GetHostNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14000a26e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [rbx + 0x29c]
mov edx, 0xff
call qword [sym.imp.WS2_32.dll_gethostname]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
movzx ecx, byte [rsp + 0x41]
mov edx, ecx
sub edx, 0x80
je 0x14000a2bf
cmp edx, 0x7f
jne 0x14000a2c4
xor ecx, ecx
jmp 0x14000a2c4
mov edx, 0x104
lea rcx, [rsp + 0x50]
call rax
test eax, eax
jne 0x14000a2b4
and qword [rsp + 0x38], 0
lea rax, [rbx + 0x29c]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x50]
mov dword [rsp + 0x28], 0xff
or r9d, 0xffffffff
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14000a24b
mov ecx, 3
mov dword [rbx + 0xbac], ecx
mov edx, reloc.WS2_32.dll_recv
mov rax, qword [rbx]
test rax, rax
lea rcx, [rax + 0x9c8]
mov rax, rbx
cmove rcx, rdx
mov qword [rcx], rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1401dbdb0
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
Function at 0x140010eb8
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov r14, r9
cmp qword [0x1403181f8], rbx
mov edi, edx
mov rsi, rcx
je 0x140010f77
cmp edx, 2
jl 0x140010f27
movzx ecx, word [rcx]
call qword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 0xa
jne 0x140010f27
mov qword [rsp + 0x28], rbx
lea r8, [0x14000fa84]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140010f27
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1403181f8]
mov r8d, edi
mov rdx, rsi
call fcn.1400aca58
mov rax, qword [0x140317f68]
test rax, rax
je 0x140010f49
mov rbx, qword [rax + 8]
movzx ecx, word [rsi]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
lea r9, str.KVM__Master_:_Write_Input__Type___u_
mov edx, 0x100
mov dword [rsp + 0x20], eax
mov r8d, 4
mov rcx, rbx
call fcn.1400acf60
mov eax, edi
jmp 0x140010f9c
mov ebp, ebx
jmp 0x140010f8a
add ebp, eax
mov edx, edi
sub edx, ebp
movsxd rcx, ebp
add rcx, rsi
mov r9, r14
lea r8, [0x140001c30]
call fcn.1400102b0
test eax, eax
jne 0x140010f7b
mov eax, ebp
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140011254
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.1401dc320
sub rsp, rax
mov rax, qword [0x14030ef00]
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 [0x1403174d0]
mov edx, 0x200
and dword [rsp + 0x40], ebx
xor edi, edi
lea r8d, [rbx + 2]
call fcn.1400acf60
cmp dword [0x14030fbf4], ebx
jne 0x14001136c
mov rcx, qword [0x14030fc00]
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 [0x14030fbf4]
test eax, eax
je 0x140011338
test ecx, ecx
je 0x140011338
test edx, edx
jne 0x140011338
lea esi, [rcx + rdi]
jmp 0x140011301
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.1400102b0
test eax, eax
jne 0x1400112ff
xor edi, edi
cmp ebx, esi
cmovne edi, esi
cmp ebx, esi
cmovne eax, ebx
cmp dword [0x14030fbf4], 0
mov ebx, eax
je 0x1400112b8
jmp 0x14001136c
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 [0x1403174d0]
mov r8d, 2
mov dword [rsp + 0x20], eax
call fcn.1400acf60
mov dword [0x14030fbf4], 1
mov rcx, qword [0x1403174d0]
lea r9, str.KVM__SLAVE_:__mainloopinput__Exiting...
mov edx, 0x200
mov r8d, 2
call fcn.1400acf60
mov rcx, qword [0x1403174d0]
call fcn.1400acae8
and qword [0x1403174d0], 0
xor eax, eax
mov rcx, qword [rsp + 0x7580]
xor rcx, rsp
call fcn.1401dbdb0
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 0x140012164
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x140317f68]
xor ebx, ebx
cmp qword [0x1403181f8], rbx
mov dword [0x14030fbf4], 1
je 0x1400121da
test rax, rax
je 0x140012195
mov rcx, qword [rax + 8]
jmp 0x140012198
mov rcx, rbx
lea r9, str.KVM.c_kvm_cleanup:_Attempting_to_kill_child_process
mov edx, 0x200
mov r8d, 2
call fcn.1400acf60
mov rdi, qword [0x1403181f8]
mov rcx, rdi
call fcn.14009fd50
test eax, eax
je 0x1400121d1
mov rcx, qword [rdi + 0x50]
mov edx, 0x42b
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov qword [0x1403181f8], rbx
jmp 0x1400121fd
test rax, rax
je 0x1400121e3
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.1400acf60
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140012380
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 [0x140317530]
mov esi, edx
mov r11d, dword [0x140317518]
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 0x1400123c9
sub r8d, edx
add r8d, r11d
sub r8d, esi
sub r8d, dword [0x1403174f4]
test edi, edi
je 0x1400123e1
mov eax, r11d
sub eax, edi
add eax, r10d
jmp 0x1400123e4
mov eax, r10d
sub eax, esi
cmp r8d, eax
jge 0x14001244f
mov eax, dword [0x1403174e4]
cdq
idiv r11d
test edx, edx
je 0x140012406
mov eax, r11d
sub eax, edx
add eax, dword [0x1403174e4]
jmp 0x14001240c
mov eax, dword [0x1403174e4]
imul eax, r8d
add eax, r15d
imul eax, dword [0x140317540]
movsxd rdx, eax
mov eax, r11d
imul eax, dword [0x140317540]
add rdx, r14
movsxd rcx, eax
sar rcx, 2
lea rax, [rdx + rcx*4]
jmp 0x140012445
imul r9d, r9d, 0x1000193
xor r9d, dword [rdx]
add rdx, 4
cmp rdx, rax
jb 0x140012437
inc r8d
jmp 0x1400123d3
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 0x140013ab4
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 [0x14030ef00]
xor rax, rsp
mov qword [rbp - 8], rax
xor esi, esi
mov r14d, edx
mov ebx, ecx
test ecx, ecx
je 0x140013bcc
cmp ecx, 6
jne 0x140013b09
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 0x140013bce
cmp ebx, 7
jne 0x140013b13
lea ecx, [rbx - 6]
jmp 0x140013af9
cmp ebx, 8
jne 0x140013b23
or ecx, 0xffffffff
call qword [sym.imp.USER32.dll_MessageBeep]
jmp 0x140013aff
cmp ebx, 9
jne 0x140013b59
mov qword [rsp + 0x28], rsi
lea r8, [0x14000fa84]
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 0x140013aff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140013aff
cmp ebx, 5
jg 0x140013bcc
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 0x140013bcc
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 0x140013bef
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.1401dbdb0
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 0x140013c3e
sub ebx, 1
je 0x140013c26
sub ebx, 1
je 0x140013c1c
sub ebx, 1
je 0x140013c15
cmp ebx, 1
jne 0x140013c80
xor ecx, ecx
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_SetSystemPowerState]
jmp 0x140013c57
mov ecx, 1
jmp 0x140013c0a
mov dword [rsp + 0x20], 1
jmp 0x140013c2a
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 0x140013c57
mov edx, 0x80000000
test r14d, r14d
je 0x140013c4f
mov ecx, 4
jmp 0x140013c51
xor ecx, ecx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x140013c80
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 0x140013bce
Function at 0x140013c94
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 0x140013cfe
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], cx
jne 0x140013cc4
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 0x14005d0fc
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 [0x14030ef00]
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 0x14005d30d
cmp byte [rsp + 0x50], 0
je 0x14005d30d
mov rcx, rbx
call fcn.140020544
lea rax, [rsp + 0x50]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14005d168
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14001ffb8
mov r14d, 0xfffffffe
lea r8, str.name
mov edx, r14d
mov rcx, rbx
call fcn.14001d5f8
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 0x14005d24c
mov rcx, qword [rsp + 0x38]
xorps xmm1, xmm1
test rcx, rcx
js 0x14005d1da
cvtsi2sd xmm1, rcx
jmp 0x14005d1ef
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
mov rcx, rbx
call fcn.14001fed8
lea r8, str.size
mov edx, r14d
mov rcx, rbx
call fcn.14001d5f8
mov rcx, qword [rsp + 0x40]
xorps xmm1, xmm1
test rcx, rcx
js 0x14005d21d
cvtsi2sd xmm1, rcx
jmp 0x14005d232
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
mov rcx, rbx
call fcn.14001fed8
lea r8, str.free
mov edx, r14d
mov rcx, rbx
call fcn.14001d5f8
sub edi, 2
je 0x14005d2ad
sub edi, 1
je 0x14005d29e
mov rcx, rbx
sub edi, 1
je 0x14005d28f
sub edi, 1
je 0x14005d280
mov r8d, 7
cmp edi, 1
je 0x14005d277
lea rdx, str.UNKNOWN
jmp 0x14005d2bd
lea rdx, str.RAMDISK
jmp 0x14005d2bd
lea rdx, str.CDROM
mov r8d, 5
jmp 0x14005d2bd
lea rdx, str.REMOTE
mov r8d, 6
jmp 0x14005d2bd
lea rdx, str.FIXED
mov r8d, 5
jmp 0x14005d2ba
lea rdx, str.REMOVABLE
mov r8d, 9
mov rcx, rbx
call fcn.14001ffb8
lea r8, [0x140271ec8]
mov edx, r14d
mov rcx, rbx
call fcn.14001d5f8
mov r9d, 0x18075380
mov dword [rsp + 0x20], 6
xor r8d, r8d
lea rdx, [0x14005d0cc]
mov rcx, rbx
call fcn.1400207c8
lea r8, str.toString
mov edx, r14d
mov rcx, rbx
call fcn.14001d5f8
mov eax, 1
jmp 0x14005d30f
xor eax, eax
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.1401dbdb0
mov rbx, qword [rsp + 0x490]
add rsp, 0x460
pop r14
pop rdi
pop rbp
ret
Function at 0x14008e668
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.14001cb60
lea r8, [rsp + 0x70]
mov edx, ebx
mov rcx, r15
mov rbp, rax
call fcn.14001e834
mov rcx, r15
call fcn.140020324
lea r8, [0x1402dff90]
mov edx, ebx
mov rcx, r15
call fcn.140068d3c
mov rcx, r15
mov rdi, rax
call fcn.140020ee4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ebx, ebx
test rdi, rdi
je 0x14008e770
mov rsi, qword [rsp + 0x70]
lea ecx, [rsi + 1]
movsxd rcx, ecx
add rcx, 8
call fcn.14009fdfc
mov r14, rax
mov qword [rax], rdi
lea rcx, [rax + 8]
test rsi, rsi
je 0x14008e71f
test rcx, rcx
je 0x14008e70f
mov r8, rsi
test rbp, rbp
je 0x14008e708
mov rdx, rbp
call fcn.140210d80
jmp 0x14008e71f
xor edx, edx
call fcn.140211420
call fcn.1401ebba4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401eac1c
mov byte [r14 + rsi + 8], bl
mov rcx, qword [rdi]
call fcn.14009fd50
test eax, eax
je 0x14008e747
mov rcx, qword [rdi]
cmp qword [rcx - 0x10], rbx
jbe 0x14008e744
mov rbx, qword [rcx - 0x18]
add rbx, 0x18
add rbx, rcx
mov rbx, qword [rbx]
mov r8, qword [rdi]
lea r9, [0x1400946e8]
mov rdx, qword [rbx]
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], 1
call fcn.140068a14
jmp 0x14008e7f2
mov rdi, qword [rsp + 0x70]
lea r14d, [rdi + 4]
movsxd rcx, r14d
call fcn.14009fdfc
mov rsi, rax
mov dword [rax], r14d
lea rcx, [rax + 4]
test rdi, rdi
je 0x14008e7be
test rcx, rcx
je 0x14008e7ae
mov r8, rdi
test rbp, rbp
je 0x14008e7a7
mov rdx, rbp
call fcn.140210d80
jmp 0x14008e7be
xor edx, edx
call fcn.140211420
call fcn.1401ebba4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401eac1c
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.140020ee4
mov rcx, rsi
call fcn.1401ebcd0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14009b700
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.140211420
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 0x14009b79e
cmp word [rsi], 0x17
mov eax, 0x1c
lea r8d, [rax - 0xc]
cmove r8d, eax
test rbx, rbx
jne 0x14009b793
call fcn.1401ebba4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401eac1c
jmp 0x14009b79e
mov rdx, rsi
mov rcx, rbx
call fcn.140210d80
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.14009b32c

Function at 0x14009b7cc
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 0x14009b87c
mov edx, 0xfe
mov rcx, r8
call fcn.1401ecbac
lea rcx, [rdi + 0xe8]
test rax, rax
je 0x14009b87c
test rcx, rcx
jne 0x14009b84d
call fcn.1401ebba4
mov dword [rax], reloc.WS2_32.dll_shutdown
jmp 0x14009b877
mov r8d, 0xff
cmp rax, r8
ja 0x14009b865
mov r8, rax
mov rdx, rbp
call fcn.140210d80
jmp 0x14009b87c
xor edx, edx
call fcn.140211420
call fcn.1401ebba4
mov dword [rax], 0x22
call fcn.1401eac1c
test rbx, rbx
je 0x14009b8b4
cmp word [rbx], 0x17
mov eax, 0x1c
lea r8d, [rax - 0xc]
cmove r8d, eax
test rsi, rsi
jne 0x14009b8a9
call fcn.1401ebba4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401eac1c
jmp 0x14009b8b4
mov rdx, rbx
mov rcx, rsi
call fcn.140210d80
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.14009b32c
Function at 0x14009b8e4
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 0x14009b909
pause
xor eax, eax
lock cmpxchg dword [rcx + 0x288], r14d
je 0x14009b907
mov rax, qword [rcx + 0x2d0]
cmp qword [rax], 0
jbe 0x14009ba71
cmp qword [rcx + 0x280], 0
jne 0x14009ba71
cmp dword [rcx + 0x258], 0
jne 0x14009b96a
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x38]
call fcn.14009fdfc
xor edi, edi
mov dword [rax + 0x2c], 3
mov qword [rbx + 0x280], rax
mov qword [rbx + 0x278], rax
jmp 0x14009ba71
mov rcx, qword [rcx + 0x2c0]
mov edx, reloc.WS2_32.dll_ntohs
call fcn.1400e4d80
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 0x14009ba71
mov rcx, qword [rbx + 0x2d0]
mov eax, dword [rcx]
cmp esi, eax
jge 0x14009ba57
xor r9d, r9d
sub eax, esi
movsxd rdx, eax
xor r8d, r8d
lea ecx, [r9 + 0x38]
call fcn.14009fdfc
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 0x14009ba30
test r9, r9
je 0x14009ba20
mov rcx, r9
test rdx, rdx
je 0x14009ba1b
call fcn.140210d80
jmp 0x14009ba30
call fcn.140211420
call fcn.1401ebba4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401eac1c
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.1400e4db0
jmp 0x14009ba71
jne 0x14009ba71
mov rcx, qword [rbx + 0x2c0]
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
call fcn.1400e4db0
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 0x14009d210
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 0x14009d258
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.1400acf60
mov rcx, qword [rbx + 0x268]
lea rax, [0x14032d520]
cmp rcx, rax
je 0x14009d2a9
movsxd rdx, dword [rbx + 0x274]
call fcn.1401f2724
test rax, rax
je 0x14009d2d9
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_anfdhDownloads_bvavMeshAgent_mastermicrostackILibAsyncSocket.c
mov r8d, ebx
mov dword [rsp + 0x20], eax
mov r9d, 0xfe
xor ecx, ecx
call fcn.1400aa2f8
mov r8d, ebx
lea rdx, str.C:Users_anfdhDownloads_bvavMeshAgent_mastermicrostackILibAsyncSocket.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.14000105c
mov ecx, 0xfe
call fcn.1401e2ef8
int3

Function at 0x14009d3bc
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 0x14009d42a
cmp word [rbx], 0x17
lea edi, [rsi - 0xc]
mov r8d, edi
cmove r8d, esi
test rax, rax
je 0x14009d40f
mov rcx, rax
test rbx, rbx
je 0x14009d40a
mov rdx, rbx
call fcn.140210d80
jmp 0x14009d41f
call fcn.140211420
call fcn.1401ebba4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401eac1c
cmp word [rbx], 0x17
cmove edi, esi
mov eax, edi
jmp 0x14009d440
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 0x14009d450
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub rsp, 0x58
mov rax, qword [0x14030ef00]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx eax, word [rcx + 0x94]
mov dword [rsp + 0x20], 0x1c
cmp ax, 0x17
jne 0x14009d487
movzx ecx, word [rcx + 0x96]
call qword [sym.imp.WS2_32.dll_ntohs]
jmp 0x14009d4ba
cmp ax, 2
je 0x14009d478
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 0x14009d4b0
movzx ecx, word [rsp + 0x2a]
jmp 0x14009d47f
cmp word [rsp + 0x28], 2
je 0x14009d4a9
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401dbdb0
add rsp, 0x58
ret