joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003d60
Capabilities:
Hash data using crc32b

Disassembly:
xor r9d, r9d
lea r10, [0x140101030]
nop word [rax + rax]
xor eax, eax
test r9b, 1
je 0x140003d7c
bts eax, 7
mov ecx, r9d
shr ecx, 1
test cl, 1
je 0x140003d8a
bts eax, 6
shr ecx, 1
test cl, 1
je 0x140003d95
bts eax, 5
shr ecx, 1
test cl, 1
je 0x140003da0
bts eax, 4
shr ecx, 1
test cl, 1
je 0x140003dab
bts eax, 3
shr ecx, 1
test cl, 1
je 0x140003db6
bts eax, 2
shr ecx, 1
test cl, 1
je 0x140003dc1
bts eax, 1
test cl, 2
je 0x140003dca
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 0x140003e61
lea eax, [rdx + 1]
bts ecx, eax
sar r8d, 1
test r8b, 1
je 0x140003e6d
bts ecx, edx
sar r8d, 1
sub edx, 2
cmp edx, 0xfffffffe
jg 0x140003e55
mov dword [r10], ecx
inc r9d
add r10, 4
cmp r9d, 0x100
jl 0x140003d70
mov dword [0x140100d58], 1
ret
Function at 0x1400051e0
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 0x14000522c
nop dword [rax + rax]
mov rbx, rax
cmp word [rax + 0x10], dx
jne 0x14000521f
cmp byte [rax + 0x29], r8b
je 0x140005227
mov rax, qword [rax]
cmp rax, r14
jne 0x140005210
cmp rax, r14
jne 0x140005279
add rcx, 0x110
mov rax, qword [rcx]
cmp rax, rcx
je 0x14000527e
nop dword [rax + rax]
mov rbx, rax
cmp word [rax + 0x26], r9w
jb 0x14000527e
cmp word [rax + 0x10], dx
jne 0x140005256
cmp byte [rax + 0x29], r8b
je 0x140005271
mov rax, qword [rax]
cmp rax, rcx
jne 0x140005240
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp rax, rcx
je 0x14000527e
xor r9d, r9d
test rbx, rbx
jne 0x140005291
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 0x1400052dc
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 0x1400052dc
sub ax, 1
mov word [rcx + 6], ax
jne 0x1400052dc
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 0x140005365
test r9d, r9d
je 0x14000530e
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 0x140005365
or dword [rax + 8], 0x100
mov qword [rsp + 0x38], rdi
mov rdi, qword [rbx + 0x58]
test rdi, rdi
je 0x140005360
mov rax, qword [rdi + 0x20]
test rax, rax
je 0x140005342
mov rcx, rdi
call rax
test byte [rdi + 8], 4
jne 0x140005357
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140005357
call qword [fcn.1400c30ce]
mov rcx, rdi
call qword [fcn.1400c30ce]
mov rdi, qword [rsp + 0x38]
mov rcx, rbx
call qword [fcn.1400c30ce]
mov rcx, qword [r14]
cmp rcx, r14
je 0x14000537f
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 0x140006000
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp dword [r8 + 0x38], 1
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov rbp, rcx
je 0x14000602f
xor eax, eax
jmp 0x14000621a
mov ecx, dword [r9 + 0x10]
mov qword [rsp + 0x30], rsi
call qword [sym.imp.WS2_32.dll_ntohl]
mov esi, eax
lea rax, [rsi - 1]
cmp rax, 0xfe
ja 0x1400061af
mov ecx, dword [rdi + 0x1c]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0xa4]
jne 0x1400061af
mov ecx, dword [rdi + 0x20]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0x9c]
jne 0x1400061af
mov ecx, dword [rdi + 0x24]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0xa0]
jne 0x1400061af
mov eax, dword [rbx + 0x1c]
cmp dword [rdi + 0x28], eax
jne 0x1400061af
mov edx, 1
mov r8b, 0xff
mov rcx, rbx
call fcn.1400051e0
cmp rsi, qword [rbx + 0x48]
jae 0x1400060b5
mov qword [rbx + 0x48], rsi
movzx ecx, word [rdi + 4]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx + 0x18], ax
movzx eax, byte [rdi + 6]
mov byte [rbx + 0x21], al
movzx eax, byte [rdi + 7]
mov byte [rbx + 0x20], al
mov ecx, dword [rdi + 8]
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, 0x240
mov esi, 0x1000
cmp eax, ecx
jb 0x1400060ef
cmp eax, esi
mov ecx, eax
cmova ecx, esi
cmp ecx, dword [rbx + 0xd0]
jae 0x1400060fd
mov dword [rbx + 0xd0], ecx
mov ecx, dword [rdi + 0xc]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, esi
jb 0x140006116
mov ecx, 0x10000
mov esi, eax
cmp eax, ecx
cmova esi, ecx
cmp esi, dword [rbx + 0xd4]
jae 0x140006124
mov dword [rbx + 0xd4], esi
mov ecx, dword [rdi + 0x14]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbx + 0x50], eax
mov ecx, dword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbx + 0x54], eax
mov dword [rbp + 0x24], 1
mov eax, dword [rbx + 0x38]
test r14, r14
je 0x140006192
add eax, 0xfffffffb
cmp eax, 1
jbe 0x14000616f
cmp dword [rbx + 0x50], 0
je 0x140006164
mov rax, qword [rbx + 0x10]
inc qword [rax + 0x2af0]
mov rax, qword [rbx + 0x10]
inc qword [rax + 0x2ae8]
mov dword [rbx + 0x38], 5
mov dword [r14], 1
mov qword [r14 + 8], rbx
mov eax, dword [rbx + 0x1c8]
mov dword [r14 + 0x14], eax
xor eax, eax
jmp 0x140006215
xor r8d, r8d
mov rdx, rbx
cmp eax, 1
mov rcx, rbp
sete r8b
add r8d, 3
call fcn.140004fa0
xor eax, eax
jmp 0x140006215
mov eax, dword [rbx + 0x38]
xor r8d, r8d
sub eax, 5
mov dword [rbx + 0x1c8], r8d
cmp eax, 1
ja 0x1400061e0
cmp dword [rbx + 0x50], r8d
je 0x1400061d5
mov rax, qword [rbx + 0x10]
dec qword [rax + 0x2af0]
mov rax, qword [rbx + 0x10]
dec qword [rax + 0x2ae8]
mov dword [rbx + 0x38], 9
cmp dword [rbx + 0x140], r8d
jne 0x140006210
mov rax, qword [rbp + 0x50]
lea rcx, [rbp + 0x48]
mov qword [rbx + 8], rax
mov qword [rbx], rcx
mov qword [rax], rbx
mov qword [rcx + 8], rbx
mov dword [rbx + 0x140], 1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140007c00
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [0x140100c60]
xor r8d, r8d
xor edx, edx
mov dword [rbx + 0x40], eax
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400075a0
Function at 0x140007fd0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1400f7080]
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 0x140008039
movzx eax, word [rsp + 0x20]
cmp al, 1
jne 0x140008033
shr ax, 8
cmp al, 1
jne 0x140008033
mov ecx, 1
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400c16a0
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.1400c16a0
add rsp, 0x1d8
ret

Function at 0x140008060
Capabilities:
Resolve dns

Disassembly:
push rbx
push r14
sub rsp, 0x58
mov rax, qword [0x1400f7080]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov r14, rcx
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x1400080a5
cmp word [rax + 0x10], 2
jne 0x1400080a5
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [r14], eax
xor eax, eax
jmp 0x140008159
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x50], rsi
xor esi, esi
mov qword [rsp + 0x48], rdi
mov ebp, esi
mov qword [rsp + 0x40], r15
mov edi, esi
mov dword [rsp + 0x28], 0
lea r15d, [rsi + 0x2e]
nop
lea rdx, [rbx + 1]
mov qword [rsp + 0x20], rdx
cmp byte [rbx], 0x30
je 0x140008113
mov r8d, 0xa
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
cmp eax, 0xff
ja 0x14000813b
mov rdx, qword [rsp + 0x20]
cmp rdx, rbx
je 0x14000813b
mov rcx, rdx
sub rcx, rbx
cmp rcx, 3
jg 0x14000813b
mov byte [rsp + rdi + 0x28], al
movsx eax, byte [rdx]
cmp ebp, 3
mov ecx, esi
cmovl ecx, r15d
cmp eax, ecx
jne 0x14000813b
inc ebp
lea rbx, [rdx + 1]
inc rdi
cmp rdi, 4
jl 0x1400080d0
mov eax, dword [rsp + 0x28]
mov dword [r14], eax
jmp 0x140008140
mov esi, 0xffffffff
mov r15, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400c16a0
add rsp, 0x58
pop r14
pop rbx
ret

Function at 0x140008620
Capabilities:
Hash data using fnv

Disassembly:
movsx eax, byte [rcx]
test al, al
jne 0x14000862a
mov eax, edx
ret
xor eax, edx
imul edx, eax, 0x1000193
inc rcx
jmp fcn.140008620
Function at 0x14000bba0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1400f7080]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rax, qword [rcx]
lea rdi, [rsp + 0x58]
mov qword [rsp + 0x68], rax
lea rsi, [rsp + 0x60]
mov r9d, edx
mov dword [rsp + 0x60], 1
mov ecx, r8d
lea rbp, [rsp + 0x60]
movabs rax, 0x20c49ba5e353f7cf
imul r8
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, edx, 0x3e8
mov dword [rsp + 0x58], edx
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x5c], eax
xor eax, eax
test r8, r8
cmovs rdi, rax
cmp r9d, 1
mov qword [rsp + 0x20], rdi
cmovne rsi, rax
test r9d, r9d
mov r8, rsi
cmovne rbp, rax
xor r9d, r9d
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14000bc7a
nop dword [rax]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x14000bc80
xor r9d, r9d
mov qword [rsp + 0x20], rdi
mov r8, rsi
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
cmp eax, 0xffffffff
je 0x14000bc50
test ebx, ebx
je 0x14000bcaa
jmp 0x14000bc87
cmp ebx, 0xffffffff
je 0x14000bccd
jmp 0x14000bc7a
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400c16a0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.Request_timed_out
lea rcx, [rsp + 0x30]
call fcn.14000ba30
lea rdx, [0x1400f2178]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
call fcn.140008d80
mov r8, rax
lea r9, str.Failed_to_select_socket
lea rcx, [rsp + 0x30]
call fcn.140008a40
lea rdx, [0x1400f1f58]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14000ecf0
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
lea rsi, [rdx + 0x10]
mov rdx, qword [rsi]
call fcn.1400254c0
lea r15d, [rbp - 6]
cmp qword [rdi + 0x18], 0x10
jb 0x14000ed54
mov r14, qword [rdi]
mov rcx, r14
mov rdi, r14
jmp 0x14000ed5a
mov r14, rdi
mov rcx, rdi
mov r13, qword [rsi]
add r13, rcx
cmp rdi, r13
je 0x14000ee5f
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
shl ebp, 8
movzx eax, byte [r14]
add ebp, eax
add r15d, 8
js 0x14000edfd
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
mov rax, r12
mov rcx, rdi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rax, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rax, rdx
jae 0x14000eddd
lea rcx, [rax + 1]
mov qword [rbx + 0x10], rcx
mov rcx, rbx
cmp rdx, 0x10
jb 0x14000edd2
mov rcx, qword [rbx]
mov byte [rcx + rax], r9b
mov byte [rcx + rax + 1], 0
jmp 0x14000edf3
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.14002a3f0
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rdi, 6
sub rsi, 1
jne 0x14000eda0
inc r14
cmp r14, r13
jne 0x14000ed70
cmp r15d, 0xfffffffa
jle 0x14000ee5f
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 0x14000ee50
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14000ee45
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14000ee5f
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.14002a3f0
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x14000eeb0
nop dword [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14000ee95
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14000ee8d
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x14000eea7
mov r9b, 0x3d
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.14002a3f0
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x14000ee70
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 0x14000f950
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400f7080]
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 0x14000f9c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000f990
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400c16a0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x14000f9f0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400f7080]
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 0x14000fa5f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000fa30
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400c16a0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x1400100c0
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
sub rsp, 0x4f8
mov rax, qword [0x1400f7080]
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 0x1400101b2
add byte [rax], al
mov rcx, qword [rcx + 8]
jmp 0x1400100c0

Function at 0x140014d80
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 0x140014df1
mov rcx, qword [rcx + 0x30]
sub rsi, rax
lea rdx, [rax + rcx]
mov rcx, r14
cmp rdi, rsi
ja 0x140014dd8
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 0x140014e0c
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 0x140014ec0
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 0x140014e67
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140014e40
mov r15, qword [rsp + 0x20]
test rsi, rsi
jle 0x140014e85
mov rdx, qword [rbx + 0x30]
mov rcx, r14
cmp rsi, rdi
jg 0x140014e97
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 0x140014ee4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140014ec0
mov rbp, qword [rsp + 0x68]
mov rax, rbx
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140014f00
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 0x140014f39
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 0x140014f66
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140014f42
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 0x140014f80
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
sub rsp, 0x4f8
mov rax, qword [0x1400f7080]
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 0x1400101b2
add byte [rax], al
mov rcx, qword [rcx + 8]
jmp 0x1400100c0
Function at 0x14001c180
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 [0x1400f7080]
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 0x14001c1c4
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 0x14001c1e0
mov r15d, reloc.WS2_32.dll_recv
jmp 0x14001c204
cmp qword [rsi + 0x18], 0x10
jb 0x14001c1ea
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 0x14001c209
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 0x14001c2f5
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 0x14001c2e8
test r14b, r14b
jne 0x14001c2e3
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 0x14001c2cd
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 0x14001c2bc
cmp edi, 7
jne 0x14001c2cd
mov r8, r15
lea rcx, [rsp + 0x38]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14001c2b7
mov r8, r15
lea rcx, [rsp + 0x30]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14001c2cd
mov r13b, 1
jmp 0x14001c2cd
mov rcx, qword [rsp + 0x28]
mov rdx, rbp
call fcn.14001c320
movzx r14d, al
inc ebx
cmp ebx, dword [rsp + 0x24]
jl 0x14001c250
test r14b, r14b
jne 0x14001c2e3
test r13b, r13b
je 0x14001c2e8
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.1400c16a0
add rsp, 0x58
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140024890
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400248c4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400248b0
ret
Function at 0x1400293c0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x1400f7080]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbp, rcx
mov r15, r9
mov rcx, r8
mov rsi, r8
mov rdi, rdx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x140029559
mov eax, dword [rsi + 0x4c]
cmp eax, 0x7fffffff
je 0x140029517
mov rcx, rdi
call qword [sym.imp.libssl_3_x64.dll_SSL_new]
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test rdi, rdi
je 0x1400294d6
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 1
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor edx, edx
mov ecx, ebp
call qword [sym.imp.libcrypto_3_x64.dll_BIO_new_socket]
xor r9d, r9d
mov rcx, rax
mov r14, rax
lea edx, [r9 + 0x66]
lea r8d, [r9 + 1]
call qword [sym.imp.libcrypto_3_x64.dll_BIO_ctrl]
mov r8, r14
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.libssl_3_x64.dll_SSL_set_bio]
mov r9, qword [rsp + 0x80]
add r9, 8
cmp qword [r9 + 0x18], 0x10
jb 0x140029489
mov r9, qword [r9]
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 0x37]
call qword [sym.imp.libssl_3_x64.dll_SSL_ctrl]
mov rdx, rdi
mov rcx, r15
call fcn.14001bdd0
cmp al, 1
jne 0x1400294f7
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
lea edx, [r9 + 0x66]
call qword [sym.imp.libcrypto_3_x64.dll_BIO_ctrl]
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, rdi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400c16a0
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rcx, rdi
call qword [sym.imp.libssl_3_x64.dll_SSL_shutdown]
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x140029559
mov eax, dword [rsi + 0x4c]
cmp eax, 0x7fffffff
jne 0x140029528
dec eax
mov ecx, 6
mov dword [rsi + 0x4c], eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov rcx, rdi
call qword [sym.imp.libssl_3_x64.dll_SSL_free]
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor eax, eax
jmp 0x1400294d9
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3