joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800509f0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x180050a30
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1800bc6f0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x180050a6e
cmp rsi, r14
jb 0x180050a66
cmp rsi, r15
jae 0x180050a66
cmp qword [rsi + 8], 0
jne 0x180050c37
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180050a51
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180050b02
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180050af9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180050af9
cmp dword [rsp + 0x70], 0x10000
je 0x180050b7b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x180050af9
sub rbx, rbp
cmp rbx, r14
jae 0x180050ac0
test rsi, rsi
jne 0x180050be0
cmp rdi, r15
ja 0x180050c1f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x180050c1f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180050c1f
cmp dword [rsp + 0x70], 0x10000
je 0x180050bb1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180050b32
jmp 0x180050c1f
test rbx, rbx
je 0x180050af9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180050be0
cmp rbx, r14
jae 0x180050aa0
jmp 0x180050b02
test rdi, rdi
je 0x180050c1f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180050be0
cmp rdi, r15
jbe 0x180050b10
jmp 0x180050c1f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180050bf0
mov rax, qword [0x1800bc6f0]
mov qword [rsi], rax
mov qword [0x1800bc6f0], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x1800514a0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov r8d, dword [0x1800bc6ec]
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x1800514e7
mov rax, qword [0x1800bc6e0]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x1800514f4
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x1800514d0
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp ebx, 0xffffffff
je 0x1800514e7
test esi, esi
mov qword [rsp + 0x48], rdi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180051820
mov edi, eax
test eax, eax
jne 0x1800515df
mov r9d, dword [0x1800bc6ec]
cmp ebx, r9d
jae 0x18005156c
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x1800bc6e0]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, esi
je 0x180051565
mov edx, esi
mov ecx, ebx
call fcn.180051710
mov edi, eax
test eax, eax
jne 0x18005156c
mov r9d, dword [0x1800bc6ec]
inc ebx
cmp ebx, r9d
jb 0x180051530
cmp qword [rsp + 0x20], 0
je 0x1800515dd
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800515c9
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800515ba
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180051590
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800bb998]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x180051710
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1800bc6e0]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180051774
mov eax, 0xa
jmp 0x180051807
test esi, esi
je 0x180051796
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800517b9
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800517b9
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800517b2
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800517b9
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180051820
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1800bb700]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r15d, r15d
mov r14d, edx
mov qword [rcx], r15
mov rbx, rcx
mov qword [rcx + 8], r15
xor edx, edx
mov ecx, 4
mov ebp, r8d
mov edi, r15d
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1800519ca
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x180051965
mov edi, 1
cmp dword [rsp + 0x20], 0x10
jb 0x180051920
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180051920
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180051920
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1800518e2
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x1800bb998]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180051948
jmp 0x180051913
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180051913
add eax, eax
mov r8, rdx
mov r9d, eax
xor edx, edx
mov dword [rbx + 8], eax
mov rcx, qword [0x1800bb998]
shl r9, 2
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180051948
mov qword [rbx], rax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rsi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180051890
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x180051965
mov r8, qword [rbx]
mov edi, r15d
test r8, r8
je 0x180051965
mov rcx, qword [0x1800bb998]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1800519ca
cmp qword [rbx], r15
je 0x1800519c5
mov edi, r15d
cmp dword [rbx + 0xc], r15d
jbe 0x1800519c5
mov r8, qword [rbx]
xor edx, edx
mov eax, edi
mov ecx, 0x5a
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800519be
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.180051fb0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x180051980
mov eax, r15d
jmp 0x1800519cf
mov eax, 9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180076460
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180052160
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x1800521d1
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x1800521ba
mov qword [rsp + 0x38], rsi
mov r8, qword [rdi]
xor edx, edx
mov ecx, 0x5a
mov r8d, dword [r8 + rbx*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800521ae
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x180052180
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x1800bb998]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180059ad0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
mov ecx, 0xe
call fcn.180059b50
lea rcx, str.Starting_main_loop.._n
call fcn.180076240
cmp byte [0x1800bba69], 0
je 0x180059b49
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x180059b11
mov ecx, 0x24
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x180059b1f
cmp byte [0x1800bba6a], 0
sete byte [0x1800bba6a]
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x180059b35
mov byte [0x1800bba69], 0
mov ecx, 0x14
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x1800bba69], 0
jne 0x180059af3
call fcn.180055a60
int3

Function at 0x180059f70
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x18005a01a
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [0x1800bb348], 0
je 0x180059fa3
lea rcx, str.d3d12.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180059ff4
cmp dword [0x1800bb344], 0
je 0x180059fbe
lea rcx, str.d3d11.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180059ff4
cmp dword [0x1800bb340], 0
je 0x180059fd9
lea rcx, str.d3d10.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180059ff4
cmp dword [0x1800bb33c], 0
je 0x18005a01a
lea rcx, str.d3d9.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x18005a01a
xor eax, eax
mov qword [0x1800bba78], rbx
mov qword [rsp + 0x28], rax
lea r8, [0x180054d50]
xor r9d, r9d
mov dword [rsp + 0x20], eax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x1800775a0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1800775da
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800775df
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180077628
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800af0f0]
cmp byte [rcx + rax], 0
je 0x180077628
dec r8
sub rdx, 1
jne 0x18007760e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400010f0
Capabilities:
Enumerate system firmware tables

Disassembly:
push rdi
sub rsp, 0x60
xor r8d, r8d
xor edx, edx
mov ecx, 0x41435049
call qword [sym.imp.KERNEL32.dll_EnumSystemFirmwareTables]
mov dword [rsp + 0x24], eax
mov qword [rsp + 0x30], 0
cmp dword [rsp + 0x24], 0
jne 0x140001121
xor al, al
jmp 0x1400012b3
mov eax, dword [rsp + 0x24]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140001141
xor al, al
jmp 0x1400012b3
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x30]
mov ecx, 0x41435049
call qword [sym.imp.KERNEL32.dll_EnumSystemFirmwareTables]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x140001168
xor al, al
jmp 0x1400012b3
mov byte [rsp + 0x20], 0
mov dword [rsp + 0x2c], 0
mov qword [rsp + 0x38], 0
jmp 0x14000118d
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
xor edx, edx
mov eax, dword [rsp + 0x24]
mov ecx, 4
div ecx
mov eax, eax
cmp qword [rsp + 0x38], rax
jae 0x14000128e
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov al, byte [rax]
mov byte [rsp + 0x28], al
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 6
rep stosb byte [rdi], al
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 7
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x48]
mov r8d, 4
mov rdx, rax
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x48]
add rax, 0xa
mov r8d, 6
mov rdx, rax
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 4
lea rdx, str.WAET
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000123c
xor al, al
jmp 0x1400012b3
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140001265
mov r8d, 4
lea rdx, str.HPET
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140001265
mov byte [rsp + 0x20], 1
mov rax, qword [rsp + 0x48]
mov ecx, 0xffffffff
mov rax, qword [rax + 0x10]
and rax, rcx
test rax, rax
jne 0x14000127f
xor al, al
jmp 0x1400012b3
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
jmp 0x140001180
cmp dword [rsp + 0x2c], 8
jge 0x140001299
xor al, al
jmp 0x1400012b3
movzx eax, byte [rsp + 0x20]
cmp qword [rsp + 0x30], 0
je 0x1400012b1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov al, 1
add rsp, 0x60
pop rdi
ret
Function at 0x14001fa40
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov edx, 0x29
mov dword [rsp + 0x48], 0
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14001fae6
mov qword [rsp + 0x30], rdi
call fcn.14000fcc0
mov rdi, rax
test rax, rax
je 0x14001fae1
mov qword [rsp + 0x40], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 2
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x28], 0x87
lea rdx, str.Assertion_failed:__s___i____s:_d__n
mov rcx, rax
mov r9d, ebx
lea rax, str.C:UsersAdmin_vcpkg_buildtreeszeromq_src_v4.3.5_37c87b6b8c.clean_srcip.cpp
mov r8, rdi
mov qword [rsp + 0x20], rax
call fcn.14000f4d0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, rdi
call fcn.1400102a0
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
ret

Function at 0x14001faf0
Capabilities:
Resolve dns

Disassembly:
push rbx
sub rsp, 0x4e0
mov rax, qword [0x1400711c0]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov rbx, rdx
lea r8, [rsp + 0x40]
mov edx, 1
call fcn.1400284c0
test eax, eax
jne 0x14001fbbf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x276d
je 0x14001fb46
add eax, 0xffffd8e2
cmp eax, 0x18
ja 0x14001fbbb
mov ecx, 0x1400001
bt ecx, eax
jae 0x14001fbbb
mov qword [rsp + 0x500], rdi
call fcn.14000fcc0
mov rdi, rax
test rax, rax
je 0x14001fbb3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 2
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x28], 0x9a
lea rdx, str.Assertion_failed:__s___i____s:_d__n
mov rcx, rax
mov r9d, ebx
lea rax, str.C:UsersAdmin_vcpkg_buildtreeszeromq_src_v4.3.5_37c87b6b8c.clean_srcip.cpp
mov r8, rdi
mov qword [rsp + 0x20], rax
call fcn.14000f4d0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, rdi
call fcn.1400102a0
mov rdi, qword [rsp + 0x500]
xor eax, eax
jmp 0x14001fc1f
xor ecx, ecx
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], ecx
lea r8, [rsp + 0xc0]
mov qword [rsp + 0x20], rcx
mov r9d, 0x401
lea rcx, [rsp + 0x40]
mov edx, eax
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x14001fbbb
lea rax, [rsp + 0xc0]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14001fc00
lea rdx, [rsp + 0xc0]
mov rcx, rbx
call fcn.140014420
movzx eax, word [rsp + 0x40]
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.140053e80
add rsp, 0x4e0
pop rbx
ret
Function at 0x14001fc40
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1400711c0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14001fcbd
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea r9, str.C:UsersAdmin_vcpkg_buildtreeszeromq_src_v4.3.5_37c87b6b8c.clean_srcip.cpp
mov dword [rsp + 0x20], 0x124
mov rcx, rax
lea r8, str.rc__0
lea rdx, str.Assertion_failed:__s___s:_d__n
call fcn.14000f4d0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
lea rcx, str.rc__0
call fcn.1400102a0
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x14001fcce
shr ax, 8
cmp al, 2
je 0x14001fd1e
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea r9, str.C:UsersAdmin_vcpkg_buildtreeszeromq_src_v4.3.5_37c87b6b8c.clean_srcip.cpp
mov dword [rsp + 0x20], 0x126
mov rcx, rax
lea r8, str.LOBYTE__wsa_data.wVersion___2__HIBYTE__wsa_data.wVersion___2
lea rdx, str.Assertion_failed:__s___s:_d__n
call fcn.14000f4d0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
lea rcx, str.LOBYTE__wsa_data.wVersion___2__HIBYTE__wsa_data.wVersion___2
call fcn.1400102a0
mov al, 1
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140053e80
add rsp, 0x1e8
ret
Function at 0x140020ab0
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x38
xor edx, edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x48]
lea r8d, [rdx + 3]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x140020b4f
mov qword [rsp + 0x30], rdi
call fcn.14000fcc0
mov rdi, rax
test rax, rax
je 0x140020b4a
mov qword [rsp + 0x40], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 2
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x28], 0xbc
lea rdx, str.Assertion_failed:__s___i____s:_d__n
mov rcx, rax
mov r9d, ebx
lea rax, str.C:UsersAdmin_vcpkg_buildtreeszeromq_src_v4.3.5_37c87b6b8c.clean_srcip.cpp
mov r8, rdi
mov qword [rsp + 0x20], rax
call fcn.14000f4d0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, rdi
call fcn.1400102a0
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
ret

Function at 0x140020c10
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov edx, 6
mov dword [rsp + 0x48], 1
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
mov rsi, rcx
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x140020cbb
mov qword [rsp + 0x50], rdi
call fcn.14000fcc0
mov rdi, rax
test rax, rax
je 0x140020cb6
mov qword [rsp + 0x40], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 2
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x28], 0x142
lea rdx, str.Assertion_failed:__s___i____s:_d__n
mov rcx, rax
mov r9d, ebx
lea rax, str.C:UsersAdmin_vcpkg_buildtreeszeromq_src_v4.3.5_37c87b6b8c.clean_srcip.cpp
mov r8, rdi
mov qword [rsp + 0x20], rax
call fcn.14000f4d0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, rdi
call fcn.1400102a0
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov rcx, rsi
call fcn.14003bb50
add rsp, 0x30
pop rsi
ret

Function at 0x140020cd0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
lea r8, [rsp + 0x48]
mov dword [rsp + 0x48], 1
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x140020d6a
mov qword [rsp + 0x30], rdi
call fcn.14000fcc0
mov rdi, rax
test rax, rax
je 0x140020d65
mov qword [rsp + 0x40], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 2
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x28], WSAGetLastError
lea rdx, str.Assertion_failed:__s___i____s:_d__n
mov rcx, rax
mov r9d, ebx
lea rax, str.C:UsersAdmin_vcpkg_buildtreeszeromq_src_v4.3.5_37c87b6b8c.clean_srcip.cpp
mov r8, rdi
mov qword [rsp + 0x20], rax
call fcn.14000f4d0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, rdi
call fcn.1400102a0
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
ret
Function at 0x140022dd0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x1400711c0]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov qword [rcx], rdx
mov rbx, rcx
mov qword [rcx + 8], r8
test r9, r9
je 0x140022e0d
add rcx, 0x10
mov r8d, reloc.WS2_32.dll_ntohs
mov rdx, r9
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
lea rax, [rbx + 0x30]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x140022fe0]
mov edx, 0x400000
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx + 0x28], rax
test rax, rax
jne 0x140022e99
mov edx, pe_nt_image_headers64
lea rcx, [rsp + 0x30]
call fcn.14000fc10
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea r9, str.C:UsersAdmin_vcpkg_buildtreeszeromq_src_v4.3.5_37c87b6b8c.clean_src_thread.cpp
mov dword [rsp + 0x20], 0x39
mov rcx, rax
lea r8, [rsp + 0x30]
lea rdx, str.Assertion_failed:__s___s:_d__n
call fcn.14000f4d0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
lea rcx, [rsp + 0x30]
call fcn.1400102a0
mov byte [rbx + 0x20], 1
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140053e80
add rsp, 0x140
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
mov rax, r8
mov dword [rsp + 0x38], 0x80
test edx, edx
lea r8, [rsp + 0x38]
mov rdx, rax
jne 0x1400284f3
call qword [sym.imp.WS2_32.dll_getsockname]
mov ecx, eax
xor edx, edx
mov eax, dword [rsp + 0x38]
test ecx, ecx
cmovne eax, edx
add rsp, 0x28
ret
call qword [sym.imp.WS2_32.dll_getpeername]
mov ecx, eax
xor edx, edx
mov eax, dword [rsp + 0x38]
test ecx, ecx
cmovne eax, edx
add rsp, 0x28
ret