joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000fef8
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.1401d9480
sub rsp, rax
mov rax, qword [0x1402feed0]
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 [0x1403072f0]
mov edx, 0x200
mov edi, r15d
mov dword [rsp + 0x40], r15d
mov ebx, r15d
lea r8d, [r15 + 2]
call fcn.1400ab710
jmp 0x14000ffd5
mov rcx, qword [0x1402ffa70]
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 [0x1402ffa64]
test eax, eax
je 0x14000ffe0
test ecx, ecx
je 0x14000ffe0
test edx, edx
jne 0x14000ffe0
add ebx, ecx
mov esi, ebx
jmp 0x14000ffa7
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.14000f238
test eax, eax
jne 0x14000ffa5
cmp edi, ebx
mov eax, r15d
cmove ebx, r15d
cmp edi, esi
cmovne eax, edi
mov edi, eax
cmp dword [0x1402ffa64], r15d
je 0x14000ff5e
jmp 0x140010014
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 [0x1403072f0]
mov r8d, 2
mov dword [rsp + 0x20], eax
call fcn.1400ab710
mov dword [0x1402ffa64], 1
mov rcx, qword [0x1403072f0]
lea r9, str.KVM__SLAVE_:__mainloopinput__Exiting...
mov edx, 0x200
mov r8d, 2
call fcn.1400ab710
mov rcx, qword [0x1403072f0]
call fcn.1400ab28c
xor eax, eax
mov qword [0x1403072f0], r15
mov rcx, qword [rsp + 0x7580]
xor rcx, rsp
call fcn.1401d8f10
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 0x140010e4c
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, r9
mov r8, rcx
test rdx, rdx
je 0x140010ea7
cmp dword [0x1403072fc], 1
jne 0x140010e76
cmp dword [0x1402ffa64], 0
jne 0x140010e76
xor eax, eax
jmp 0x140010f2e
mov eax, dword [rsp + 0x60]
lea r9, [0x140001a8c]
and dword [0x1403072f8], 0
mov dword [0x1402ffa68], eax
mov dword [reloc.WS2_32.dll_accept], 5
mov qword [rsp + 0x60], rdi
add rsp, 0x30
pop rdi
jmp fcn.140010bf4
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x14]
call fcn.14009f32c
cmp dword [0x1403072fc], 1
lea rcx, [0x140001a8c]
mov dword [0x140307328], 1
mov qword [rax], rcx
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
jne 0x140010ef5
cmp dword [0x1402ffa64], 0
jne 0x140010ef5
mov rcx, rax
call fcn.1401e18f8
jmp 0x140010e6f
and qword [rsp + 0x28], 0
lea r8, [fcn.140010928]
and dword [rsp + 0x20], 0
mov r9, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140307338], rax
test rax, rax
je 0x140010f29
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x140010f34
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x140307dc8]
xor ebx, ebx
cmp qword [0x140308058], rbx
mov dword [0x1402ffa64], 1
je 0x140010faa
test rax, rax
je 0x140010f65
mov rcx, qword [rax + 8]
jmp 0x140010f68
mov rcx, rbx
lea r9, str.KVM.c_kvm_cleanup:_Attempting_to_kill_child_process
mov edx, 0x200
mov r8d, 2
call fcn.1400ab710
mov rdi, qword [0x140308058]
mov rcx, rdi
call fcn.14009f278
test eax, eax
je 0x140010fa1
mov rcx, qword [rdi + 0x50]
mov edx, 0x42b
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov qword [0x140308058], rbx
jmp 0x140010fcd
test rax, rax
je 0x140010fb3
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.1400ab710
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140011178
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 [0x14030734c]
mov ebp, edx
mov r11d, dword [0x140307334]
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 0x1400111c3
mov r8d, r11d
sub r8d, edx
add r8d, r10d
jmp 0x1400111c6
mov r8d, r10d
sub r8d, ebp
sub r8d, dword [0x140307310]
test ebx, ebx
je 0x1400111de
mov eax, r11d
sub eax, ebx
add eax, r10d
jmp 0x1400111e1
mov eax, r10d
sub eax, ebp
cmp r8d, eax
jge 0x14001126f
mov eax, dword [0x140307300]
cdq
idiv r11d
test edx, edx
je 0x140011207
mov eax, r11d
sub eax, edx
add eax, dword [0x140307300]
jmp 0x14001120d
mov eax, dword [0x140307300]
imul eax, r8d
mov rdi, r13
add eax, r12d
imul eax, dword [0x14030735c]
movsxd rdx, eax
mov eax, dword [0x14030735c]
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 0x140011267
imul r9d, r9d, 0x1000193
inc rdi
xor r9d, dword [rdx]
lea rdx, [rdx + 4]
cmp rdi, rcx
jb 0x140011251
inc r8d
jmp 0x1400111d0
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 0x1400128f8
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 [0x1402feed0]
xor rax, rsp
mov qword [rbp - 8], rax
xor esi, esi
mov r14d, edx
mov ebx, ecx
test ecx, ecx
jne 0x14001292f
xor eax, eax
jmp 0x140012ab9
cmp ebx, 6
jne 0x140012950
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 0x140012ab9
cmp ebx, 7
jne 0x14001295a
lea ecx, [rbx - 6]
jmp 0x140012940
cmp ebx, 8
jne 0x14001296a
or ecx, 0xffffffff
call qword [sym.imp.USER32.dll_MessageBeep]
jmp 0x140012946
cmp ebx, 9
jne 0x1400129a0
mov qword [rsp + 0x28], rsi
lea r8, [0x14000e9d8]
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 0x140012946
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140012946
cmp ebx, 5
jg 0x140012928
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 0x140012928
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 0x140012a1c
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140012928
sub ebx, 1
je 0x140012a6b
sub ebx, 1
je 0x140012a53
sub ebx, 1
je 0x140012a49
sub ebx, 1
je 0x140012a42
cmp ebx, 1
jne 0x140012aad
xor ecx, ecx
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_SetSystemPowerState]
jmp 0x140012a84
mov ecx, 1
jmp 0x140012a37
mov dword [rsp + 0x20], 1
jmp 0x140012a57
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 0x140012a84
mov edx, 0x80000000
test r14d, r14d
je 0x140012a7c
mov ecx, 4
jmp 0x140012a7e
xor ecx, ecx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x140012aad
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.1401d8f10
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x140012adc
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 0x140012b46
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], cx
jne 0x140012b0c
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 0x14005e6d4
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 [0x1402feed0]
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 0x14005e887
cmp byte [rsp + 0x50], 0
je 0x14005e887
mov rcx, rbx
call fcn.14001f278
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14001ed98
mov esi, 0xfffffffe
lea r8, str.name
mov edx, esi
mov rcx, rbx
call fcn.14001c32c
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 0x14005e7e6
mov rcx, qword [rsp + 0x38]
xorps xmm1, xmm1
cvtsi2sd xmm1, rcx
test rcx, rcx
jns 0x14005e79a
addsd xmm1, qword [0x1402de378]
mov rcx, rbx
call fcn.14001ebc8
lea r8, str.size
mov edx, esi
mov rcx, rbx
call fcn.14001c32c
mov rax, qword [rsp + 0x40]
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
test rax, rax
jns 0x14005e7cd
addsd xmm1, qword [0x1402de378]
mov rcx, rbx
call fcn.14001ebc8
lea r8, str.free
mov edx, esi
mov rcx, rbx
call fcn.14001c32c
sub edi, 2
je 0x14005e82f
sub edi, 1
je 0x14005e826
sub edi, 1
je 0x14005e81d
sub edi, 1
je 0x14005e814
mov rcx, rbx
cmp edi, 1
je 0x14005e80b
lea rdx, str.UNKNOWN
jmp 0x14005e839
lea rdx, str.RAMDISK
jmp 0x14005e839
lea rdx, str.CDROM
jmp 0x14005e836
lea rdx, str.REMOTE
jmp 0x14005e836
lea rdx, str.FIXED
jmp 0x14005e836
lea rdx, str.REMOVABLE
mov rcx, rbx
call fcn.14001ed98
lea r8, [0x1402652c8]
mov edx, esi
mov rcx, rbx
call fcn.14001c32c
mov r9d, 0x18075380
mov dword [rsp + 0x20], 6
xor r8d, r8d
lea rdx, [0x14005e6a4]
mov rcx, rbx
call fcn.14001f530
lea r8, str.toString
mov edx, esi
mov rcx, rbx
call fcn.14001c32c
mov eax, 1
jmp 0x14005e889
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1401d8f10
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14008e3ec
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.14001b8d8
lea r8, [rsp + 0x70]
mov edx, ebx
mov rcx, rbp
mov r15, rax
call fcn.14001d550
mov rcx, rbp
call fcn.14001f048
lea r8, [0x1402d1390]
mov edx, ebx
mov rcx, rbp
call fcn.14006a144
mov rcx, rbp
mov rdi, rax
call fcn.14001fc4c
mov rbx, qword [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor r14d, r14d
test rdi, rdi
je 0x14008e4c6
lea ecx, [rbx + 1]
movsxd rcx, ecx
add rcx, 8
call fcn.14009f32c
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.14009f278
test eax, eax
je 0x14008e4a0
mov rcx, qword [rdi]
cmp qword [rcx - 0x10], r14
jbe 0x14008e49d
lea r14, [rcx + 0x18]
add r14, qword [rcx - 0x18]
mov r14, qword [r14]
mov r8, qword [rdi]
lea r9, [0x1400940bc]
mov rdx, qword [r14]
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 1
call fcn.140069e04
jmp 0x14008e51c
lea esi, [rbx + 4]
movsxd rcx, esi
call fcn.14009f32c
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.14001fc4c
mov rcx, rdi
call fcn.1401e18f8
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14009ae40
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 0x14009ae9b
xor eax, eax
jmp 0x14009aea8
mov edx, 0xfe
mov rcx, rbp
call fcn.1401e26ac
lea rcx, [rbx + 0xe8]
mov r9, rax
mov r8, rbp
mov edx, 0xff
call section..text
test rsi, rsi
je 0x14009aee0
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.14009aa84

Function at 0x14009af10
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 0x14009af35
pause
xor eax, eax
lock cmpxchg dword [rcx + 0x288], r14d
je 0x14009af33
mov rax, qword [rcx + 0x2d0]
cmp qword [rax], 0
jbe 0x14009b07a
cmp qword [rcx + 0x280], 0
jne 0x14009b07a
cmp dword [rcx + 0x258], 0
jne 0x14009af96
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x38]
call fcn.14009f32c
xor ebx, ebx
mov dword [rax + 0x2c], 3
mov qword [rdi + 0x280], rax
mov qword [rdi + 0x278], rax
jmp 0x14009b07a
mov rcx, qword [rcx + 0x2c0]
mov edx, reloc.WS2_32.dll_ntohs
call fcn.1400e1ec0
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 0x14009b07a
mov rcx, qword [rdi + 0x2d0]
mov eax, dword [rcx]
cmp esi, eax
jge 0x14009b060
xor r9d, r9d
sub eax, esi
movsxd rdx, eax
xor r8d, r8d
lea ecx, [r9 + 0x38]
call fcn.14009f32c
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.1400e1ef0
jmp 0x14009b07a
jne 0x14009b07a
mov rcx, qword [rdi + 0x2c0]
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
call fcn.1400e1ef0
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 0x14009c784
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 0x14009c7cc
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.1400ab710
mov rcx, qword [rbx + 0x268]
lea rax, [0x14031d380]
cmp rcx, rax
je 0x14009c81d
movsxd rdx, dword [rbx + 0x274]
call fcn.1401e812c
test rax, rax
je 0x14009c84d
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.1400a8b44
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.1401db608
int3

Function at 0x14009c8f0
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 0x14009c93d
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 0x14009c950
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 0x14009c960
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1402feed0]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx eax, word [rcx + 0x94]
mov dword [rsp + 0x20], 0x1c
cmp ax, 0x17
jne 0x14009c997
movzx ecx, word [rcx + 0x96]
call qword [sym.imp.WS2_32.dll_ntohs]
jmp 0x14009c9ca
cmp ax, 2
je 0x14009c988
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 0x14009c9c0
movzx ecx, word [rsp + 0x2a]
jmp 0x14009c98f
cmp word [rsp + 0x28], 2
je 0x14009c9b9
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401d8f10
add rsp, 0x58
ret
Function at 0x14009cbbc
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.14009f32c
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 0x14009cc4a
mov rcx, rbx
call fcn.1401e18f8
xor eax, eax
jmp 0x14009cd73
cmp ebp, 1
jne 0x14009cc79
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 0x14009cd87
cmp word [rsi], 0x17
jne 0x14009cca9
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 0x14009cdb4
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 0x14009ccd8
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14009cc3b
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, [0x14001a148]
mov word [rbx + 0x18], ax
lea r8, [0x14009cae8]
lea rax, [0x14009cba0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov edx, r14d
mov rcx, r15
mov qword [rsp + 0x20], rbp
call fcn.14009a03c
mov rsi, rax
test rax, rax
jne 0x14009cd5f
mov rcx, rdi
jmp 0x14009cccd
mov r9, rbx
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
call fcn.14009c784
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.1400a8b44
mov ecx, 0xfd
call fcn.1401db608
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.1400a8b44
mov ecx, 0xfd
call fcn.1401db608
int3

Function at 0x14009cde4
Capabilities:
Set socket configuration

Disassembly:
test rcx, rcx
je 0x14009ce3d
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.14009ca68
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