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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
mov eax, 0x7590
call fcn.1401d9db0
sub rsp, rax
mov rax, qword [0x140301ed0]
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 r15d, r15d
mov rcx, qword [0x14030a2f0]
mov edx, 0x200
mov edi, r15d
mov dword [rsp + 0x40], r15d
mov ebx, r15d
lea r8d, [r15 + 2]
call fcn.1400aba58
jmp 0x1400101b5
mov rcx, qword [0x140302a70]
lea rdx, [rsp + 0x50]
mov r8d, 0x7530
movsxd rax, ebx
sub r8d, ebx
mov qword [rsp + 0x20], r15
add rdx, rax
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x40]
mov edx, dword [0x140302a64]
test eax, eax
je 0x1400101c0
test ecx, ecx
je 0x1400101c0
test edx, edx
jne 0x1400101c0
add ebx, ecx
mov esi, ebx
jmp 0x140010187
add edi, eax
mov edx, ebx
movsxd rax, edi
lea rcx, [rsp + 0x50]
sub edx, edi
add rcx, rax
mov r9, r14
mov r8, rbp
call fcn.14000f418
test eax, eax
jne 0x140010185
cmp edi, ebx
mov eax, r15d
cmove ebx, r15d
cmp edi, esi
cmovne eax, edi
mov edi, eax
cmp dword [0x140302a64], r15d
je 0x14001013e
jmp 0x1400101f4
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 [0x14030a2f0]
mov r8d, 2
mov dword [rsp + 0x20], eax
call fcn.1400aba58
mov dword [0x140302a64], 1
mov rcx, qword [0x14030a2f0]
lea r9, str.KVM__SLAVE_:__mainloopinput__Exiting...
mov edx, 0x200
mov r8d, 2
call fcn.1400aba58
mov rcx, qword [0x14030a2f0]
call fcn.1400ab5d4
xor eax, eax
mov qword [0x14030a2f0], r15
mov rcx, qword [rsp + 0x7580]
xor rcx, rsp
call fcn.1401d9840
lea r11, [rsp + 0x7590]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x14001102c
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, r9
mov r8, rcx
test rdx, rdx
je 0x140011087
cmp dword [0x14030a2fc], 1
jne 0x140011056
cmp dword [0x140302a64], 0
jne 0x140011056
xor eax, eax
jmp 0x14001110e
mov eax, dword [rsp + 0x60]
lea r9, [0x140001b1c]
and dword [0x14030a2f8], 0
mov dword [0x140302a68], eax
mov dword [reloc.WS2_32.dll_accept], 5
mov qword [rsp + 0x60], rdi
add rsp, 0x30
pop rdi
jmp fcn.140010dd4
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x14]
call fcn.14009f674
cmp dword [0x14030a2fc], 1
lea rcx, [0x140001b1c]
mov dword [0x14030a328], 1
mov qword [rax], rcx
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
jne 0x1400110d5
cmp dword [0x140302a64], 0
jne 0x1400110d5
mov rcx, rax
call fcn.1401e2228
jmp 0x14001104f
and qword [rsp + 0x28], 0
lea r8, [fcn.140010b08]
and dword [rsp + 0x20], 0
mov r9, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14030a338], rax
test rax, rax
je 0x140011109
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x140011114
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x14030adc8]
xor ebx, ebx
cmp qword [0x14030b068], rbx
mov dword [0x140302a64], 1
je 0x14001118a
test rax, rax
je 0x140011145
mov rcx, qword [rax + 8]
jmp 0x140011148
mov rcx, rbx
lea r9, str.KVM.c_kvm_cleanup:_Attempting_to_kill_child_process
mov edx, 0x200
mov r8d, 2
call fcn.1400aba58
mov rdi, qword [0x14030b068]
mov rcx, rdi
call fcn.14009f5c0
test eax, eax
je 0x140011181
mov rcx, qword [rdi + 0x50]
mov edx, 0x42b
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov qword [0x14030b068], rbx
jmp 0x1400111ad
test rax, rax
je 0x140011193
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.1400aba58
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140011358
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r15
mov r10d, dword [0x14030a34c]
mov ebp, edx
mov r11d, dword [0x14030a334]
mov eax, r10d
cdq
xor r13d, r13d
idiv r11d
mov r15, r8
mov r12d, ecx
mov r9d, r13d
mov ebx, edx
test edx, edx
je 0x1400113a3
mov r8d, r11d
sub r8d, edx
add r8d, r10d
jmp 0x1400113a6
mov r8d, r10d
sub r8d, ebp
sub r8d, dword [0x14030a310]
test ebx, ebx
je 0x1400113be
mov eax, r11d
sub eax, ebx
add eax, r10d
jmp 0x1400113c1
mov eax, r10d
sub eax, ebp
cmp r8d, eax
jge 0x14001144f
mov eax, dword [0x14030a300]
cdq
idiv r11d
test edx, edx
je 0x1400113e7
mov eax, r11d
sub eax, edx
add eax, dword [0x14030a300]
jmp 0x1400113ed
mov eax, dword [0x14030a300]
imul eax, r8d
mov rdi, r13
add eax, r12d
imul eax, dword [0x14030a35c]
movsxd rdx, eax
mov eax, dword [0x14030a35c]
add rdx, r15
imul eax, r11d
movsxd rcx, eax
sar rcx, 2
lea rax, [rdx + rcx*4]
lea rcx, [rcx*4 + 3]
shr rcx, 2
cmp rdx, rax
cmova rcx, r13
test rcx, rcx
je 0x140011447
imul r9d, r9d, 0x1000193
inc rdi
xor r9d, dword [rdx]
lea rdx, [rdx + 4]
cmp rdi, rcx
jb 0x140011431
inc r8d
jmp 0x1400113b0
mov rbx, qword [rsp + 0x18]
mov eax, r9d
mov rbp, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
pop r15
pop r13
ret
Function at 0x140012ad8
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 [0x140301ed0]
xor rax, rsp
mov qword [rbp - 8], rax
xor esi, esi
mov r14d, edx
mov ebx, ecx
test ecx, ecx
jne 0x140012b0f
xor eax, eax
jmp 0x140012c99
cmp ebx, 6
jne 0x140012b30
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 0x140012c99
cmp ebx, 7
jne 0x140012b3a
lea ecx, [rbx - 6]
jmp 0x140012b20
cmp ebx, 8
jne 0x140012b4a
or ecx, 0xffffffff
call qword [sym.imp.USER32.dll_MessageBeep]
jmp 0x140012b26
cmp ebx, 9
jne 0x140012b80
mov qword [rsp + 0x28], rsi
lea r8, [0x14000ebb8]
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 0x140012b26
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140012b26
cmp ebx, 5
jg 0x140012b08
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 0x140012b08
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 0x140012bfc
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140012b08
sub ebx, 1
je 0x140012c4b
sub ebx, 1
je 0x140012c33
sub ebx, 1
je 0x140012c29
sub ebx, 1
je 0x140012c22
cmp ebx, 1
jne 0x140012c8d
xor ecx, ecx
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_SetSystemPowerState]
jmp 0x140012c64
mov ecx, 1
jmp 0x140012c17
mov dword [rsp + 0x20], 1
jmp 0x140012c37
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 0x140012c64
mov edx, 0x80000000
test r14d, r14d
je 0x140012c5c
mov ecx, 4
jmp 0x140012c5e
xor ecx, ecx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x140012c8d
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
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401d9840
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x140012cbc
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 0x140012d26
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], cx
jne 0x140012cec
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 0x14005e8c4
Capabilities:
Get disk information
Get disk size

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x140301ed0]
xor rax, rsp
mov qword [rsp + 0x450], 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 0x14005ea77
cmp byte [rsp + 0x50], 0
je 0x14005ea77
mov rcx, rbx
call fcn.14001f458
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14001ef78
mov esi, 0xfffffffe
lea r8, str.name
mov edx, esi
mov rcx, rbx
call fcn.14001c50c
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 0x14005e9d6
mov rcx, qword [rsp + 0x38]
xorps xmm1, xmm1
cvtsi2sd xmm1, rcx
test rcx, rcx
jns 0x14005e98a
addsd xmm1, qword [0x1402e0d20]
mov rcx, rbx
call fcn.14001eda8
lea r8, str.size
mov edx, esi
mov rcx, rbx
call fcn.14001c50c
mov rax, qword [rsp + 0x40]
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
test rax, rax
jns 0x14005e9bd
addsd xmm1, qword [0x1402e0d20]
mov rcx, rbx
call fcn.14001eda8
lea r8, str.free
mov edx, esi
mov rcx, rbx
call fcn.14001c50c
sub edi, 2
je 0x14005ea1f
sub edi, 1
je 0x14005ea16
sub edi, 1
je 0x14005ea0d
sub edi, 1
je 0x14005ea04
mov rcx, rbx
cmp edi, 1
je 0x14005e9fb
lea rdx, str.UNKNOWN
jmp 0x14005ea29
lea rdx, str.RAMDISK
jmp 0x14005ea29
lea rdx, str.CDROM
jmp 0x14005ea26
lea rdx, str.REMOTE
jmp 0x14005ea26
lea rdx, str.FIXED
jmp 0x14005ea26
lea rdx, str.REMOVABLE
mov rcx, rbx
call fcn.14001ef78
lea r8, [0x140266308]
mov edx, esi
mov rcx, rbx
call fcn.14001c50c
mov r9d, 0x18075380
mov dword [rsp + 0x20], 6
xor r8d, r8d
lea rdx, [0x14005e894]
mov rcx, rbx
call fcn.14001f710
lea r8, str.toString
mov edx, esi
mov rcx, rbx
call fcn.14001c50c
mov eax, 1
jmp 0x14005ea79
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1401d9840
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14008e70c
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.14001bab8
lea r8, [rsp + 0x70]
mov edx, ebx
mov rcx, rbp
mov r15, rax
call fcn.14001d730
mov rcx, rbp
call fcn.14001f228
lea r8, [0x1402d3b90]
mov edx, ebx
mov rcx, rbp
call fcn.14006a2fc
mov rcx, rbp
mov rdi, rax
call fcn.14001fe2c
mov rbx, qword [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor r14d, r14d
test rdi, rdi
je 0x14008e7e6
lea ecx, [rbx + 1]
movsxd rcx, ecx
add rcx, 8
call fcn.14009f674
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.14009f5c0
test eax, eax
je 0x14008e7c0
mov rcx, qword [rdi]
cmp qword [rcx - 0x10], r14
jbe 0x14008e7bd
lea r14, [rcx + 0x18]
add r14, qword [rcx - 0x18]
mov r14, qword [r14]
mov r8, qword [rdi]
lea r9, [0x140094404]
mov rdx, qword [r14]
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 1
call fcn.140069fbc
jmp 0x14008e83c
lea esi, [rbx + 4]
movsxd rcx, esi
call fcn.14009f674
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.14001fe2c
mov rcx, rdi
call fcn.1401e2228
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14009b188
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 rdi, [rcx + 0xcc]
mov qword [rdi], rax
mov rsi, r9
mov qword [rdi + 8], rax
mov rbp, r8
mov qword [rdi + 0x10], rax
mov rbx, rcx
mov dword [rdi + 0x18], eax
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 0x14009b1e3
xor eax, eax
jmp 0x14009b1f0
mov edx, 0xfe
mov rcx, rbp
call fcn.1401e2fdc
lea rcx, [rbx + 0xe8]
mov r9, rax
mov r8, rbp
mov edx, 0xff
call section..text
test rsi, rsi
je 0x14009b228
cmp word [rsi], 0x17
mov edx, 0x1c
mov r8, rsi
mov rcx, rdi
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.14009adcc

Function at 0x14009b258
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 0x14009b27d
pause
xor eax, eax
lock cmpxchg dword [rcx + 0x288], r14d
je 0x14009b27b
mov rax, qword [rcx + 0x2d0]
cmp qword [rax], 0
jbe 0x14009b3c2
cmp qword [rcx + 0x280], 0
jne 0x14009b3c2
cmp dword [rcx + 0x258], 0
jne 0x14009b2de
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x38]
call fcn.14009f674
xor ebx, ebx
mov dword [rax + 0x2c], 3
mov qword [rdi + 0x280], rax
mov qword [rdi + 0x278], rax
jmp 0x14009b3c2
mov rcx, qword [rcx + 0x2c0]
mov edx, reloc.WS2_32.dll_ntohs
call fcn.1400e2720
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 0x14009b3c2
mov rcx, qword [rdi + 0x2d0]
mov eax, dword [rcx]
cmp esi, eax
jge 0x14009b3a8
xor r9d, r9d
sub eax, esi
movsxd rdx, eax
xor r8d, r8d
lea ecx, [r9 + 0x38]
call fcn.14009f674
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.1400e2750
jmp 0x14009b3c2
jne 0x14009b3c2
mov rcx, qword [rdi + 0x2c0]
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
call fcn.1400e2750
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 0x14009cacc
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 0x14009cb14
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.1400aba58
mov rcx, qword [rbx + 0x268]
lea rax, [0x1403203a0]
cmp rcx, rax
je 0x14009cb65
movsxd rdx, dword [rbx + 0x274]
call fcn.1401e8a5c
test rax, rax
je 0x14009cb95
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...microstackILibAsyncSocket.c
mov r8d, ebx
mov dword [rsp + 0x20], eax
mov r9d, 0xfe
xor ecx, ecx
call fcn.1400a8e8c
mov r8d, ebx
lea rdx, str...microstackILibAsyncSocket.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.1400010e4
mov ecx, 0xfe
call fcn.1401dbf38
int3

Function at 0x14009cc38
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 0x14009cc85
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 0x14009cc98
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 0x14009cca8
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140301ed0]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx eax, word [rcx + 0x94]
mov dword [rsp + 0x20], 0x1c
cmp ax, 0x17
jne 0x14009ccdf
movzx ecx, word [rcx + 0x96]
call qword [sym.imp.WS2_32.dll_ntohs]
jmp 0x14009cd12
cmp ax, 2
je 0x14009ccd0
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 0x14009cd08
movzx ecx, word [rsp + 0x2a]
jmp 0x14009ccd7
cmp word [rsp + 0x28], 2
je 0x14009cd01
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401d9840
add rsp, 0x58
ret
Function at 0x14009cf04
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.14009f674
mov r8, qword [rsp + 0xb0]
mov edx, 2
mov rcx, qword [rsp + 0xb8]
mov rbx, 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 rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14009cf92
mov rcx, rbx
call fcn.1401e2228
xor eax, eax
jmp 0x14009d0bb
cmp ebp, 1
jne 0x14009cfc1
lea r9, [rsp + 0xa8]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
lea r8d, [rbp + 3]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x14009d0cf
cmp word [rsi], 0x17
jne 0x14009cff1
mov edx, 0x29
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xa0]
mov rcx, rdi
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x14009d0fc
cmp word [rsi], 0x17
mov eax, 0x1c
mov rdx, rsi
mov rcx, rdi
lea r8d, [rax - 0xc]
cmove r8d, eax
call qword [sym.imp.WS2_32.dll_bind]
mov rcx, rdi
test eax, eax
je 0x14009d020
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14009cf83
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
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, [0x14001a328]
mov word [rbx + 0x18], ax
lea r8, [0x14009ce30]
lea rax, [0x14009cee8]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov edx, r14d
mov rcx, r15
mov qword [rsp + 0x20], rbp
call fcn.14009a384
mov rsi, rax
test rax, rax
jne 0x14009d0a7
mov rcx, rdi
jmp 0x14009d015
mov r9, rbx
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
call fcn.14009cacc
mov rax, rsi
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...microstackILibAsyncUDPSocket.c
mov r9d, eax
mov r8d, 0x7f
xor ecx, ecx
call fcn.1400a8e8c
mov ecx, 0xfd
call fcn.1401dbf38
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
and dword [rsp + 0x20], 0
lea rdx, str...microstackILibAsyncUDPSocket.c
mov r9d, eax
mov r8d, 0x83
xor ecx, ecx
call fcn.1400a8e8c
mov ecx, 0xfd
call fcn.1401dbf38
int3

Function at 0x14009d12c
Capabilities:
Set socket configuration

Disassembly:
test rcx, rcx
je 0x14009d185
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x68]
mov rdi, r8
lea r8, [rdx + 4]
mov edx, 4
mov r9d, edx
lea rcx, [rsp + 0x40]
call fcn.14009cdb0
mov eax, dword [rdi + 4]
lea r9, [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x44], eax
mov rcx, rbx
mov dword [rsp + 0x20], 8
lea r8d, [rdx + 0xc]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret