joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e3a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1400f24e0]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x14000e3d8
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14000e440
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x14000e450
mov esi, dword [0x1400f68b8]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x14000e4c0
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x14000e508
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x14000e3c7
mov rcx, rbx
call fcn.14000e2a0
mov qword [rsi + r12*8 + 8], rax
jmp 0x14000e3c7
call fcn.14000e2a0
mov qword [rbx + 0x10], rax
jmp 0x14000e3c7
mov r10d, dword [rsi]
test r10d, r10d
je 0x14000e56a
mov r9d, dword [0x140015450]
test r9d, r9d
je 0x14000e598
lock add dword [0x1400f68c0], 1
jne 0x14000e5cc
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x14000e577
mov eax, dword [rsi]
test eax, eax
je 0x14000e3e1
lock sub dword [0x1400f68c0], 1
js 0x14000e3e1
mov rcx, qword [0x1400f68c8]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x14000e3e1
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sub.msvcrt.dll_calloc
mov rsi, rax
test rax, rax
je 0x14000e5f3
mov qword [rax], rdi
mov ecx, dword [0x1400f68b8]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14000e41b
call r13
jmp 0x14000e41b
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sub.msvcrt.dll_realloc
mov rsi, rax
test rax, rax
je 0x14000e5f3
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sub.msvcrt.dll_memset
jmp 0x14000e4e3
call fcn.14000e340
mov dword [0x140015450], 1
mov edx, dword [rsi]
test edx, edx
jne 0x14000e46c
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x14000e3e1
mov rax, qword [0x1400f68b0]
lea r12, [rax + 1]
mov qword [0x1400f68b0], r12
mov qword [rbx + 0x10], r12
jmp 0x14000e487
lock add dword [0x140015454], 1
je 0x14000e551
mov r8d, dword [0x140015450]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x140015450]
test r8d, r8d
jne 0x14000e560
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x14000e5c0
jmp 0x14000e560
mov rcx, qword [0x1400f68c8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000e47a
lock sub dword [0x1400f68c0], 1
jmp 0x14000e47a
call sub.msvcrt.dll_abort
nop
nop dword [rax]
cmp qword [rcx], rdx
jae 0x14000e610
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x14000e61a
mov qword [rcx + 8], r8
test r9, r9
je 0x14000e624
cmp qword [rcx], rdx
je 0x14000e628
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x140002fd0
Capabilities:
Hash data using crc32b

Disassembly:
xor r9d, r9d
lea r10, [0x140070610]
nop word [rax + rax]
xor eax, eax
test r9b, 1
je 0x140002fec
bts eax, 7
mov ecx, r9d
shr ecx, 1
test cl, 1
je 0x140002ffa
bts eax, 6
shr ecx, 1
test cl, 1
je 0x140003005
bts eax, 5
shr ecx, 1
test cl, 1
je 0x140003010
bts eax, 4
shr ecx, 1
test cl, 1
je 0x14000301b
bts eax, 3
shr ecx, 1
test cl, 1
je 0x140003026
bts eax, 2
shr ecx, 1
test cl, 1
je 0x140003031
bts eax, 1
test cl, 2
je 0x14000303a
bts eax, 0
shl eax, 0x18
lea ecx, [rax + rax]
mov edx, ecx
xor edx, 0x4c11db7
test eax, eax
cmovns edx, ecx
lea eax, [rdx + rdx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [rcx + rcx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [rdx + rdx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [rcx + rcx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [rdx + rdx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [rcx + rcx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [rdx + rdx]
mov r8d, eax
xor r8d, 0x4c11db7
test edx, edx
cmovns r8d, eax
xor ecx, ecx
lea edx, [rcx + 0x1e]
test r8b, 1
je 0x1400030d1
lea eax, [rdx + 1]
bts ecx, eax
sar r8d, 1
test r8b, 1
je 0x1400030dd
bts ecx, edx
sar r8d, 1
sub edx, 2
cmp edx, 0xfffffffe
jg 0x1400030c5
mov dword [r10], ecx
inc r9d
add r10, 4
cmp r9d, 0x100
jl 0x140002fe0
mov dword [0x140070608], 1
ret
Function at 0x140004460
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x20
xor ebx, ebx
lea r14, [rcx + 0xf0]
mov rax, qword [r14]
mov rbp, rcx
lea r9d, [rbx + 1]
cmp rax, r14
je 0x1400044ac
nop dword [rax + rax]
mov rbx, rax
cmp word [rax + 0x10], dx
jne 0x14000449f
cmp byte [rax + 0x29], r8b
je 0x1400044a7
mov rax, qword [rax]
cmp rax, r14
jne 0x140004490
cmp rax, r14
jne 0x1400044f9
add rcx, 0x110
mov rax, qword [rcx]
cmp rax, rcx
je 0x1400044fe
nop dword [rax + rax]
mov rbx, rax
cmp word [rax + 0x26], r9w
jb 0x1400044fe
cmp word [rax + 0x10], dx
jne 0x1400044d6
cmp byte [rax + 0x29], r8b
je 0x1400044f1
mov rax, qword [rax]
cmp rax, rcx
jne 0x1400044c0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp rax, rcx
je 0x1400044fe
xor r9d, r9d
test rbx, rbx
jne 0x140004511
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
movzx eax, r8b
mov qword [rsp + 0x30], rsi
cmp rax, qword [rbp + 0x48]
jae 0x14000455c
lea r8, [rax + rax*4]
shr dx, 0xc
shl r8, 4
add r8, qword [rbp + 0x40]
movzx eax, dx
lea rcx, [r8 + rax*2]
movzx eax, word [r8 + rax*2 + 6]
test ax, ax
je 0x14000455c
sub ax, 1
mov word [rcx + 6], ax
jne 0x14000455c
movzx ecx, word [r8 + 4]
movzx eax, dx
btr ecx, eax
mov word [r8 + 4], cx
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
movzx esi, byte [rbx + 0x28]
and esi, 0xf
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
cmp qword [rbx + 0x58], 0
je 0x1400045e5
test r9d, r9d
je 0x14000458e
movzx eax, word [rbx + 0x24]
sub dword [rbp + 0xd8], eax
mov rax, qword [rbx + 0x58]
dec qword [rax]
mov rax, qword [rbx + 0x58]
cmp qword [rax], 0
jne 0x1400045e5
or dword [rax + 8], 0x100
mov qword [rsp + 0x38], rdi
mov rdi, qword [rbx + 0x58]
test rdi, rdi
je 0x1400045e0
mov rax, qword [rdi + 0x20]
test rax, rax
je 0x1400045c2
mov rcx, rdi
call rax
test byte [rdi + 8], 4
jne 0x1400045d7
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1400045d7
call qword [0x140067110]
mov rcx, rdi
call qword [0x140067110]
mov rdi, qword [rsp + 0x38]
mov rcx, rbx
call qword [0x140067110]
mov rcx, qword [r14]
cmp rcx, r14
je 0x1400045ff
mov eax, dword [rcx + 0x18]
add eax, dword [rcx + 0x14]
mov dword [rbp + 0x70], eax
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140007210
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140007279
movzx eax, word [rsp + 0x20]
cmp al, 1
jne 0x140007273
shr ax, 8
cmp al, 1
jne 0x140007273
mov ecx, 1
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14004bcb0
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14004bcb0
add rsp, 0x1d8
ret

Function at 0x140008cf0
Capabilities:
Hash data using fnv

Disassembly:
movsx eax, byte [rcx]
test al, al
jne 0x140008cfa
mov eax, edx
ret
xor eax, edx
imul edx, eax, 0x1000193
inc rcx
jmp fcn.140008cf0
Function at 0x14000d070
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], bpl
mov dword [rsp + 0x20], 1
mov rax, qword [rdx + 0x10]
cmp rax, 0xf
jbe 0x14000d0cc
mov rdx, rax
call fcn.14003bc70
mov qword [rbx + 0x10], rbp
mov rax, qword [rdi + 0x10]
mov r15d, 0xfffffffa
cmp qword [rdi + 0x18], 0x10
jb 0x14000d0e4
mov r14, qword [rdi]
mov rcx, r14
mov rdi, r14
jmp 0x14000d0ea
mov r14, rdi
mov rcx, rdi
lea r13, [rax + rcx]
cmp rdi, r13
je 0x14000d1e1
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop
shl ebp, 8
movzx eax, byte [r14]
add ebp, eax
add r15d, 8
js 0x14000d186
movsxd r12, ebp
movsxd rdi, r15d
lea ecx, [r15 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov esi, edx
imul eax, edx, 0xfffffffa
add r15d, eax
nop dword [rax + rax]
mov rax, r12
mov rcx, rdi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14000d16d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14000d162
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14000d17c
mov rcx, rbx
call fcn.14003bdc0
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rdi, 6
sub rsi, 1
jne 0x14000d130
inc r14
cmp r14, r13
jne 0x14000d100
cmp r15d, 0xfffffffa
jle 0x14000d1e1
lea ecx, [r15 + 8]
shl ebp, 8
movsxd rax, ebp
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14000d1d9
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14000d1ce
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14000d1e1
mov rcx, rbx
call fcn.14003bdc0
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x14000d229
nop word [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14000d215
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14000d20d
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x14000d220
mov r9b, 0x3d
mov rcx, rbx
call fcn.14003bdc0
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x14000d1f0
mov rax, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000e4a0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x14000e510
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000e4e0
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14004bcb0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x14000e540
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x14000e5af
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000e580
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14004bcb0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x14000e5e0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbp, rdx
mov rdi, rcx
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x14000e62c
imul rbx, rax, 0x64
jmp 0x14000e64d
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
mov rbx, rax
imul rax, rcx, 0x3b9aca00
add rbx, rax
xor r14d, r14d
mov qword [rsp + 0x280], rsi
movabs r15, 0x431bde82d7b634db
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x3c], 0x2710
nop dword [rax]
lea rax, [rsp + 0x38]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x14000e6b1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000e680
xor al, al
jmp 0x14000e72f
jne 0x14000e72d
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rsi, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rsi, 0x989680
jne 0x14000e6d1
imul rcx, rax, 0x64
jmp 0x14000e6f2
cqo
idiv rsi
mov r8, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rsi
mov rcx, rax
imul rax, r8, 0x3b9aca00
add rcx, rax
sub rcx, rbx
mov rax, r15
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, rbp, 0x3e8
cmp rdx, rax
jg 0x14000e6ad
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 1
call fcn.140036e10
jmp 0x14000e662
mov al, 1
mov rsi, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14004bcb0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14000ed90
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
sub rsp, 0x4f8
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rsi, r8
mov dword [rsp + 0x40], 0x80
mov rdi, rdx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x14000ee82
movzx eax, word [rsp + 0x50]
mov qword [rsp + 0x4f0], rbx
mov ebx, dword [rsp + 0x40]
cmp ax, 2
je 0x14000edf3
cmp ax, 0x17
jne 0x14000ee7a
movzx ecx, word [rsp + 0x52]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
lea rcx, [rsp + 0xd0]
mov dword [rsi], eax
mov r8d, 0x401
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0xd0]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, ebx
lea rcx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x14000ee7a
lea rax, [rsp + 0xd0]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14000ee60
lea rdx, [rsp + 0xd0]
mov rcx, rdi
call fcn.1400346f0
mov rbx, qword [rsp + 0x4f0]
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.14004bcb0
add rsp, 0x4f8
pop rdi
pop rsi
ret
mov rcx, qword [rcx + 8]
jmp 0x14000ed90
Function at 0x140017b10
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x28
mov rsi, qword [rcx + 0x50]
mov eax, 0x7fffffff
cmp r8, rax
mov rdi, r8
mov r14, rdx
mov rbx, rcx
cmova rdi, rax
mov rax, qword [rcx + 0x48]
cmp rax, rsi
jae 0x140017b81
mov rcx, qword [rcx + 0x30]
sub rsi, rax
lea rdx, [rax + rcx]
mov rcx, r14
cmp rdi, rsi
ja 0x140017b68
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rdi
mov rax, rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rsi
mov rax, rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
jne 0x140017b9c
mov rax, 0xffffffffffffffff
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
mov qword [rsp + 0x68], rbp
mov rbp, qword [rbx + 8]
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
cmp rdi, 0x1000
jae 0x140017c50
mov qword [rsp + 0x20], r15
mov r15, qword [rbx + 0x30]
nop word [rax + rax]
xor r9d, r9d
mov r8d, 0x1000
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rsi, eax
test eax, eax
jns 0x140017bf7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140017bd0
mov r15, qword [rsp + 0x20]
test rsi, rsi
jle 0x140017c15
mov rdx, qword [rbx + 0x30]
mov rcx, r14
cmp rsi, rdi
jg 0x140017c27
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rbp, qword [rsp + 0x68]
mov rax, rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rbp, qword [rsp + 0x68]
mov rax, rdi
mov qword [rbx + 0x48], rdi
mov qword [rbx + 0x50], rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor r9d, r9d
mov r8d, edi
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x140017c74
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140017c50
mov rbp, qword [rsp + 0x68]
mov rax, rbx
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x140017c90
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
jne 0x140017cc9
mov rax, 0xffffffffffffffff
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rdi, qword [rdi + 8]
mov qword [rsp + 0x38], rbx
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x140017cf6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140017cd2
mov rbp, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140017d10
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
sub rsp, 0x4f8
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rsi, r8
mov dword [rsp + 0x40], 0x80
mov rdi, rdx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x14000ee82
movzx eax, word [rsp + 0x50]
mov qword [rsp + 0x4f0], rbx
mov ebx, dword [rsp + 0x40]
cmp ax, 2
je 0x14000edf3
cmp ax, 0x17
jne 0x14000ee7a
movzx ecx, word [rsp + 0x52]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
lea rcx, [rsp + 0xd0]
mov dword [rsi], eax
mov r8d, 0x401
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0xd0]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, ebx
lea rcx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x14000ee7a
lea rax, [rsp + 0xd0]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14000ee60
lea rdx, [rsp + 0xd0]
mov rcx, rdi
call fcn.1400346f0
mov rbx, qword [rsp + 0x4f0]
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.14004bcb0
add rsp, 0x4f8
pop rdi
pop rsi
ret
mov rcx, qword [rcx + 8]
jmp 0x14000ed90
Function at 0x14001ad10
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0xa0
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, rcx
mov sil, 1
mov eax, 1
xchg byte [rcx + 0xb0], al
mov rcx, qword [rcx + 0x40]
test rcx, rcx
jne 0x14001ad58
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rsp + 0x88], rax
mov rax, qword [rdi + 0x48]
cmp rax, 0xffffffffffffffff
je 0x14001aee2
movabs rbp, 0x20c49ba5e353f7cf
lea r14, vtable.std::_Func_impl_no_alloc_class__private:_bool___cdecl_httplib::Server::listen_internal_void____ptr64::_5::_lambda_1___void___.0
nop word [rax + rax]
mov r8, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x80]
mov rcx, qword [rdi + 0x48]
call fcn.14000e4a0
test rax, rax
jne 0x14001adbf
mov rcx, qword [rsp + 0x88]
mov rax, qword [rcx]
call qword [rax + 0x18]
jmp 0x14001aebc
mov rcx, qword [rdi + 0x48]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14001adfe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0x18
jne 0x14001aecb
mov qword [rsp + 0x30], 1
lea rcx, [rsp + 0x30]
call fcn.140036e10
jmp 0x14001aebc
mov rax, rbp
imul qword [rdi + 0x68]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, dword [rdi + 0x60], 0x3e8
add edx, eax
mov dword [rsp + 0x80], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x80]
mov edx, 0xffff
mov r8d, 0x1006
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, rbp
imul qword [rdi + 0x78]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, dword [rdi + 0x70], 0x3e8
add edx, eax
mov dword [rsp + 0x84], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x84]
mov edx, 0xffff
mov r8d, 0x1005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0x88]
mov rax, qword [rcx]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x78], rdx
lea rdx, [rsp + 0x40]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rdi + 0x48]
cmp rax, 0xffffffffffffffff
je 0x14001aee2
jmp 0x14001ad90
mov rax, qword [rdi + 0x48]
cmp rax, 0xffffffffffffffff
je 0x14001aee2
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.WS2_32.dll_closesocket]
xor sil, sil
mov rbx, qword [rsp + 0x88]
mov r8, qword [rbx]
mov rcx, rbx
call qword [r8 + reloc.WS2_32.dll_recv]
nop
test rbx, rbx
je 0x14001af08
mov r8, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [r8]
xor ecx, ecx
xchg byte [rdi + 0xb0], cl
movzx eax, sil
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14004bcb0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140024060
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x58
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov qword [rsp + 0x28], rcx
cmp qword [rcx + 0x20], 0x10
lea rsi, [rcx + 8]
mov rbp, rdx
mov byte [rsp + 0x20], 0
mov edi, 2
mov r15d, ebx
mov rdx, rsi
jb 0x1400240a4
mov rdx, qword [rsi]
lea r8, [rsp + 0x38]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x1400240c0
mov r15d, reloc.WS2_32.dll_recv
jmp 0x1400240e4
cmp qword [rsi + 0x18], 0x10
jb 0x1400240ca
mov rsi, qword [rsi]
lea r8, [rsp + 0x30]
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x1400240e9
mov r15d, 4
mov edi, 7
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
lea edx, [r9 + 0x55]
call qword [sym.imp.libcrypto_3_x64.dll_X509_get_ext_d2i]
mov r12, rax
test rax, rax
je 0x1400241d5
mov qword [rsp + 0xa0], r13
mov rcx, rax
mov qword [rsp + 0x50], r14
xor r13b, r13b
xor r14b, r14b
call qword [sym.imp.libcrypto_3_x64.dll_OPENSSL_sk_num]
mov dword [rsp + 0x24], eax
test eax, eax
jle 0x1400241c8
test r14b, r14b
jne 0x1400241c3
mov edx, ebx
mov rcx, r12
call qword [sym.imp.libcrypto_3_x64.dll_OPENSSL_sk_value]
mov rsi, rax
cmp dword [rax], edi
jne 0x1400241ad
mov rcx, qword [rax + 8]
call qword [sym.imp.libcrypto_3_x64.dll_ASN1_STRING_get0_data]
mov rcx, qword [rsi + 8]
mov rbp, rax
call qword [sym.imp.libcrypto_3_x64.dll_ASN1_STRING_length]
movsxd r8, eax
cmp edi, 2
je 0x14002419c
cmp edi, 7
jne 0x1400241ad
mov r8, r15
lea rcx, [rsp + 0x38]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140024197
mov r8, r15
lea rcx, [rsp + 0x30]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400241ad
mov r13b, 1
jmp 0x1400241ad
mov rcx, qword [rsp + 0x28]
mov rdx, rbp
call fcn.140024200
movzx r14d, al
inc ebx
cmp ebx, dword [rsp + 0x24]
jl 0x140024130
test r14b, r14b
jne 0x1400241c3
test r13b, r13b
je 0x1400241c8
mov byte [rsp + 0x20], 1
mov r13, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.libcrypto_3_x64.dll_GENERAL_NAMES_free]
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004bcb0
add rsp, 0x58
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret