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

Disassembly:
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x180
mov rax, qword [0x140094840]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor ebp, ebp
xor ebx, ebx
call fcn.14003d240
mov r13, rax
test rax, rax
jne 0x140067020
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14003dda0
mov r9, rax
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.140025580
xor ecx, ecx
mov ebx, 0x4d
call qword [str.__a_]
jmp 0x1400671d8
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov r8d, 1
mov dword [rsp + 0x20], 3
mov rcx, r13
mov qword [rsp + 0x170], r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140067096
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14003dda0
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.140025580
xor ecx, ecx
mov ebx, 0x4d
jmp 0x1400671c2
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400670df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14003dda0
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.140025580
mov ebx, 0x4d
jmp 0x1400671b6
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x140067114
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.140025580
mov ebx, 0x4d
jmp 0x1400671ae
lea rcx, [rdi + 1]
call qword [str.0__a_]
mov rbp, rax
test rax, rax
jne 0x140067130
mov ebx, 0x1b
jmp 0x1400671ae
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x140067188
nop dword [rax]
mov r8d, edi
mov dword [rsp + 0x40], 0
sub r8d, ebx
mov esi, ebx
lea rdx, [rbx + rbp]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400671fa
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x14006717f
mov edi, esi
jmp 0x140067181
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x140067140
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rdi
mov byte [rdi + rbp], 0
mov rdx, rbp
mov qword [rsp + 0x20], r15
call fcn.140066d10
mov ebx, eax
mov rsi, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x178]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [str.__a_]
mov rcx, r13
call fcn.140072f2a
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140071e50
add rsp, 0x180
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14003dda0
mov r9, rax
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.140025580
mov ebx, 0x4d
jmp 0x1400671a6
Function at 0x14006c5d0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rdi, rcx
mov edx, ebx
mov byte [rcx], 0
call qword [sym.imp.WS2_32.dll_gethostname]
mov byte [rbx + rdi - 1], 0
test eax, eax
jne 0x14006c60b
mov edx, 0x2e
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x14006c609
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14006dab0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov rsi, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [str.0__a_]
mov rbx, rax
test rax, rax
jne 0x14006daf3
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rdi
mov qword [rbx + 0x10], rax
lea rdi, [rbp + 8]
mov qword [rsp + 0x50], r14
cmp r15d, dword [rbp + 0x1c]
jbe 0x14006db40
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, rsi
call qword [rdi]
mov esi, dword [rbp + 0x18]
add rsi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rsi
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor r14d, r14d
test r15, r15
je 0x14006dba2
mov r14, r15
nop dword [rax]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rdi]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea rsi, [rsi + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rdi]
sub r15, 1
jne 0x14006db60
lea rdi, [rbp + 8]
mov eax, dword [rbp + 0x1c]
cmp r14, rax
jae 0x14006dbe1
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x140085591]
mov r8d, 1
call qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x140085592]
mov r8d, 1
call qword [rdi]
mov eax, dword [rbp + 0x1c]
inc r14
cmp r14, rax
jb 0x14006dbb0
mov r14, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
Function at 0x14006ddd0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140094840]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r8
mov dword [rsp + 0x20], 0xf0000040
mov rsi, rdx
mov rdi, rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14006de1c
mov eax, 0x1b
jmp 0x14006deef
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14006de60
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov qword [rsp + 0x38], 0
jmp 0x14006deef
mov rcx, rbp
call fcn.140029870
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov edx, 2
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x20
jne 0x14006decb
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rdi
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14006dedb
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14006deed
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140071e50
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x14006ecb0
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x14006ed15
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
test r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x14006ecc0
ret
Function at 0x14006ed20
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140094840]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, r8
mov dword [rsp + 0x20], 0xf0000040
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
lea rcx, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x38], rbp
xor edx, edx
mov qword [rsp + 0x40], rbp
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14006eda3
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14006edc5
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140071e50
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
call fcn.140029870
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], ebp
mov edx, 2
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x10
jne 0x14006ee24
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rbx
mov dword [rsp + 0x20], ebp
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14006ee34
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14006ee46
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x14006eda8
Function at 0x140072c68
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140072cb2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140072cb2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140072cb2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140072cb2
cmp dword [rcx + 0x84], 0xe
jbe 0x140072cb2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140072cb4
xor al, al
add rsp, 0x28
ret
Function at 0x140128ab0
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 0x140128ae1
xor al, al
jmp 0x140128c72
mov eax, dword [rsp + 0x24]
mov ecx, eax
call fcn.14032dbdc
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140128b00
xor al, al
jmp 0x140128c72
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 0x140128b27
xor al, al
jmp 0x140128c72
mov byte [rsp + 0x20], 0
mov dword [rsp + 0x2c], 0
mov qword [rsp + 0x38], 0
jmp 0x140128b4c
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 0x140128c4e
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]
movzx eax, 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 fcn.1403284a0
mov rax, qword [rsp + 0x48]
add rax, 0xa
mov r8d, 6
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1403284a0
mov r8d, 4
lea rdx, str.WAET
lea rcx, [rsp + 0x40]
call fcn.1403283a0
test eax, eax
jne 0x140128bfc
xor al, al
jmp 0x140128c72
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140128c25
mov r8d, 4
lea rdx, str.HPET
lea rcx, [rsp + 0x40]
call fcn.1403283a0
test eax, eax
jne 0x140128c25
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 0x140128c3f
xor al, al
jmp 0x140128c72
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
jmp 0x140128b3f
cmp dword [rsp + 0x2c], 8
jge 0x140128c59
xor al, al
jmp 0x140128c72
movzx eax, byte [rsp + 0x20]
cmp qword [rsp + 0x30], 0
je 0x140128c70
mov rcx, qword [rsp + 0x30]
call fcn.14032dbc8
mov al, 1
add rsp, 0x60
pop rdi
ret
Function at 0x14012cef0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x108
lea rdx, str.Thread6:__
lea rcx, [0x14046cb30]
call fcn.140134d70
mov qword [rsp + 0x58], rax
xor edx, edx
mov rcx, qword [rsp + 0x118]
call fcn.140143e00
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x38]
call fcn.14014fc50
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.140134d20
lea rdx, [0x140366ac4]
mov rcx, rax
call fcn.140134d70
mov qword [rsp + 0x80], rax
mov edx, 1
mov rcx, qword [rsp + 0x118]
call fcn.140143e00
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x60]
call fcn.14014fc50
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call fcn.140134d20
mov qword [rsp + 0x88], rax
lea rdx, [0x14013c200]
mov rcx, qword [rsp + 0x88]
call fcn.1401439f0
nop
lea rcx, [rsp + 0xc0]
call fcn.140142460
nop
lea rcx, [rsp + 0xe0]
call fcn.140142460
lea rcx, [0x14046c440]
call fcn.14012aa50
mov qword [rsp + 0x90], rax
lea rcx, [0x14046c440]
call fcn.14012a930
mov qword [rsp + 0x98], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea rcx, [0x14046c440]
call fcn.14012a930
call rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
lea rcx, [0x14046c440]
call fcn.14012aa50
mov qword [rsp + 0xa8], rax
lea rcx, [0x14046c440]
call fcn.14012a930
mov qword [rsp + 0xb0], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x34]
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea rcx, [0x14046c440]
call fcn.14014c610
mov edx, 1
lea rcx, [0x14046c440]
call fcn.14012aa20
add rsp, 0x108
ret
Function at 0x140163bd0
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 0x140163c73
mov qword [rsp + 0x30], rdi
call fcn.140150b40
mov rdi, rax
test rax, rax
je 0x140163c6e
mov qword [rsp + 0x40], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 2
mov ebx, eax
call fcn.140337dc0
mov rcx, rax
mov dword [rsp + 0x28], 0x87
lea rax, str.C:UsersAdmin_vcpkg_buildtreeszeromq_src_v4.3.5_37c87b6b8c.clean_srcip.cpp
mov r9d, ebx
mov r8, rdi
mov qword [rsp + 0x20], rax
lea rdx, str.Assertion_failed:__s___i____s:_d__n
call fcn.140150370
mov ecx, 2
call fcn.140337dc0
mov rcx, rax
call fcn.140338218
mov rcx, rdi
call fcn.140151120
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
ret

Function at 0x140163c80
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x4e0
mov rax, qword [0x140464178]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov rbx, rdx
lea r8, [rsp + 0x40]
mov edx, 1
call fcn.14016d7b0
test eax, eax
jne 0x140163d4c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x276d
je 0x140163ce2
add eax, 0xffffd8e2
cmp eax, 0x18
ja 0x140163d7e
mov ecx, 0x1400001
bt ecx, eax
jae 0x140163d7e
call fcn.140150b40
mov rdi, rax
test rax, rax
je 0x140163d7e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 2
mov ebx, eax
call fcn.140337dc0
mov rcx, rax
mov dword [rsp + 0x28], 0x9a
lea rax, str.C:UsersAdmin_vcpkg_buildtreeszeromq_src_v4.3.5_37c87b6b8c.clean_srcip.cpp
mov r9d, ebx
mov r8, rdi
mov qword [rsp + 0x20], rax
lea rdx, str.Assertion_failed:__s___i____s:_d__n
call fcn.140150370
mov ecx, 2
call fcn.140337dc0
mov rcx, rax
call fcn.140338218
mov rcx, rdi
call fcn.140151120
xor eax, eax
jmp 0x140163db0
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
je 0x140163d82
xor eax, eax
jmp 0x140163db0
lea rax, [rsp + 0xc0]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140163d91
lea rdx, [rsp + 0xc0]
mov rcx, rbx
call fcn.14014c190
movzx eax, word [rsp + 0x40]
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.140327a40
mov rbx, qword [rsp + 0x500]
add rsp, 0x4e0
pop rdi
ret
Function at 0x140163de0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x140464178]
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 0x140163e5a
mov ecx, 2
call fcn.140337dc0
mov rcx, rax
mov dword [rsp + 0x20], 0x124
lea r9, str.C:UsersAdmin_vcpkg_buildtreeszeromq_src_v4.3.5_37c87b6b8c.clean_srcip.cpp
lea r8, str.rc__0
lea rdx, str.Assertion_failed:__s___s:_d__n
call fcn.140150370
mov ecx, 2
call fcn.140337dc0
mov rcx, rax
call fcn.140338218
lea rcx, str.rc__0
call fcn.140151120
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x140163e6b
shr ax, 8
cmp al, 2
je 0x140163eb8
mov ecx, 2
call fcn.140337dc0
mov rcx, rax
mov dword [rsp + 0x20], 0x126
lea r9, str.C:UsersAdmin_vcpkg_buildtreeszeromq_src_v4.3.5_37c87b6b8c.clean_srcip.cpp
lea r8, str.LOBYTE__wsa_data.wVersion___2__HIBYTE__wsa_data.wVersion___2
lea rdx, str.Assertion_failed:__s___s:_d__n
call fcn.140150370
mov ecx, 2
call fcn.140337dc0
mov rcx, rax
call fcn.140338218
lea rcx, str.LOBYTE__wsa_data.wVersion___2__HIBYTE__wsa_data.wVersion___2
call fcn.140151120
mov al, 1
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140327a40
add rsp, 0x1e8
ret
Function at 0x140164c20
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 0x140164cbc
mov qword [rsp + 0x30], rdi
call fcn.140150b40
mov rdi, rax
test rax, rax
je 0x140164cb7
mov qword [rsp + 0x40], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 2
mov ebx, eax
call fcn.140337dc0
mov rcx, rax
mov dword [rsp + 0x28], 0xbc
lea rax, str.C:UsersAdmin_vcpkg_buildtreeszeromq_src_v4.3.5_37c87b6b8c.clean_srcip.cpp
mov r9d, ebx
mov r8, rdi
mov qword [rsp + 0x20], rax
lea rdx, str.Assertion_failed:__s___i____s:_d__n
call fcn.140150370
mov ecx, 2
call fcn.140337dc0
mov rcx, rax
call fcn.140338218
mov rcx, rdi
call fcn.140151120
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
ret

Function at 0x140164d80
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 0x140164e28
mov qword [rsp + 0x50], rdi
call fcn.140150b40
mov rdi, rax
test rax, rax
je 0x140164e23
mov qword [rsp + 0x40], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 2
mov ebx, eax
call fcn.140337dc0
mov rcx, rax
mov dword [rsp + 0x28], 0x142
lea rax, str.C:UsersAdmin_vcpkg_buildtreeszeromq_src_v4.3.5_37c87b6b8c.clean_srcip.cpp
mov r9d, ebx
mov r8, rdi
mov qword [rsp + 0x20], rax
lea rdx, str.Assertion_failed:__s___i____s:_d__n
call fcn.140150370
mov ecx, 2
call fcn.140337dc0
mov rcx, rax
call fcn.140338218
mov rcx, rdi
call fcn.140151120
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov rcx, rsi
call fcn.140183570
add rsp, 0x30
pop rsi
ret

Function at 0x140164e40
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 0x140164ed7
mov qword [rsp + 0x30], rdi
call fcn.140150b40
mov rdi, rax
test rax, rax
je 0x140164ed2
mov qword [rsp + 0x40], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 2
mov ebx, eax
call fcn.140337dc0
mov rcx, rax
mov dword [rsp + 0x28], WSASetLastError
lea rax, str.C:UsersAdmin_vcpkg_buildtreeszeromq_src_v4.3.5_37c87b6b8c.clean_srcip.cpp
mov r9d, ebx
mov r8, rdi
mov qword [rsp + 0x20], rax
lea rdx, str.Assertion_failed:__s___i____s:_d__n
call fcn.140150370
mov ecx, 2
call fcn.140337dc0
mov rcx, rax
call fcn.140338218
mov rcx, rdi
call fcn.140151120
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
ret
Function at 0x14016d7b0
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 0x14016d7e3
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
Function at 0x14016e920
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x14016eac2
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
lea rbp, str.C:UsersAdmin_vcpkg_buildtreeszeromq_src_v4.3.5_37c87b6b8c.clean_src_signaler.cpp
test eax, eax
je 0x14016e9e8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x276d
je 0x14016eac2
cmp ebx, 0xffffffff
jne 0x14016e9e8
call fcn.140150b40
mov rsi, rax
test rax, rax
je 0x14016e9e8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov ecx, 2
call fcn.140337dc0
mov rcx, rax
mov dword [rsp + 0x28], 0x78
mov qword [rsp + 0x20], rbp
mov r9d, ebx
mov r8, rsi
lea rdx, str.Assertion_failed:__s___i____s:_d__n
call fcn.140150370
mov ecx, 2
call fcn.140337dc0
mov rcx, rax
call fcn.140338218
mov rcx, rsi
call fcn.140151120
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x14016ea51
call fcn.140150b40
mov rsi, rax
test rax, rax
je 0x14016ea51
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov ecx, 2
call fcn.140337dc0
mov rcx, rax
mov dword [rsp + 0x28], 0x7a
mov qword [rsp + 0x20], rbp
mov r9d, ebx
mov r8, rsi
lea rdx, str.Assertion_failed:__s___i____s:_d__n
call fcn.140150370
mov ecx, 2
call fcn.140337dc0
mov rcx, rax
call fcn.140338218
mov rcx, rsi
call fcn.140151120
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x14016eac2
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x14016eac2
call fcn.140150b40
mov rdi, rax
test rax, rax
je 0x14016eac2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov ecx, 2
call fcn.140337dc0
mov rcx, rax
mov dword [rsp + 0x28], 0x7e
mov qword [rsp + 0x20], rbp
mov r9d, ebx
mov r8, rdi
lea rdx, str.Assertion_failed:__s___i____s:_d__n
call fcn.140150370
mov ecx, 2
call fcn.140337dc0
mov rcx, rax
call fcn.140338218
mov rcx, rdi
call fcn.140151120
nop
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret