joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002440
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000248a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000248a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000248a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000248a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000248a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000248c
xor al, al
add rsp, 0x28
ret

Function at 0x140005b80
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400059eb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400059eb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400059eb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400059eb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400059eb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400059eb
cmp dword [rcx + 0xf8], 0
je 0x1400059eb
mov ecx, ebx
call fcn.140005a9c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140005878
nop
cmp dword [rbp + 0x20], 0
je 0x140005a39
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140005a44
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000597c
Function at 0x140009470
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400094f7
mov rsi, rbx
cmp word [rax], bp
je 0x1400094b6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400094a0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14000949c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140007f98
mov rdi, rax
test rax, rax
je 0x1400094e4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140005200
mov rbp, rdi
xor ecx, ecx
call fcn.1400081d4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000e650
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000e678
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000e678
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001320
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140003638], rbx
je 0x14000136c
cmp rax, rbx
jne 0x14000135f
mov ebx, 1
mov esi, ebx
jmp 0x140001371
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140001344
mov ebx, 1
mov eax, dword [0x140003640]
cmp eax, ebx
jne 0x140001387
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400013ec
mov eax, dword [0x140003640]
test eax, eax
jne 0x1400013e6
mov dword [0x140003640], ebx
lea r15, [0x1400022c8]
lea rdi, [0x1400022b0]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x1400013d8
test eax, eax
jne 0x1400013dc
cmp qword [rdi], 0
je 0x1400013cd
mov rax, qword [rdi]
mov rcx, qword [0x140002290]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x1400013ae
test eax, eax
je 0x1400013ec
mov eax, 0xff
jmp 0x1400014c8
mov dword [0x140003044], ebx
mov eax, dword [0x140003640]
cmp eax, ebx
jne 0x140001413
lea rdx, [0x1400022a8]
lea rcx, [0x140002298]
call sub.msvcrt.dll__initterm
mov dword [0x140003640], 2
test esi, esi
jne 0x140001420
xor eax, eax
xchg qword [0x140003638], rax
cmp qword [0x140003648], 0
je 0x140001454
lea rcx, [0x140003648]
call fcn.1400016d0
test eax, eax
je 0x140001454
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140003648]
mov r9, qword [0x140002290]
call r9
mov r8, qword [0x140003058]
mov rdx, qword [0x140003050]
mov ecx, dword [0x140003048]
call fcn.1400011c4
mov dword [0x140003040], eax
cmp dword [0x140003060], 0
jne 0x140001484
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140003044], 0
jne 0x140001499
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140003040]
jmp 0x1400014c8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140093000
add rsp, 0x28
jmp 0x140001320

Function at 0x1400015bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001608
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001600
cmp dword [rcx + 0x3c], edx
jl 0x140001600
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140001600
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140001608
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14005b130
Capabilities:
Hash data using crc32b

Disassembly:
xor r9d, r9d
lea r10, [0x140297800]
nop word [rax + rax]
xor eax, eax
test r9b, 1
je 0x14005b14c
bts eax, 7
mov ecx, r9d
shr ecx, 1
test cl, 1
je 0x14005b15a
bts eax, 6
shr ecx, 1
test cl, 1
je 0x14005b165
bts eax, 5
shr ecx, 1
test cl, 1
je 0x14005b170
bts eax, 4
shr ecx, 1
test cl, 1
je 0x14005b17b
bts eax, 3
shr ecx, 1
test cl, 1
je 0x14005b186
bts eax, 2
shr ecx, 1
test cl, 1
je 0x14005b191
bts eax, 1
test cl, 2
je 0x14005b19a
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 0x14005b231
lea eax, [rdx + 1]
bts ecx, eax
sar r8d, 1
test r8b, 1
je 0x14005b23d
bts ecx, edx
sar r8d, 1
sub edx, 2
cmp edx, 0xfffffffe
jg 0x14005b225
mov dword [r10], ecx
inc r9d
add r10, 4
cmp r9d, 0x100
jl 0x14005b140
mov dword [0x140297724], 1
ret
Function at 0x14005c370
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 + 0x40], 1
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov rbp, rcx
je 0x14005c39f
xor eax, eax
jmp 0x14005c5a6
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 0x14005c53a
mov ecx, dword [rdi + 0x1c]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0xd0]
jne 0x14005c53a
mov ecx, dword [rdi + 0x20]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0xc8]
jne 0x14005c53a
mov ecx, dword [rdi + 0x24]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0xcc]
jne 0x14005c53a
mov eax, dword [rbx + 0x1c]
cmp dword [rdi + 0x28], eax
jne 0x14005c53a
mov edx, 1
mov r8b, 0xff
mov rcx, rbx
call fcn.14005b530
cmp rsi, qword [rbx + 0x50]
jae 0x14005c425
mov qword [rbx + 0x50], 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 0x14005c45f
cmp eax, esi
mov ecx, eax
cmova ecx, esi
cmp ecx, dword [rbx + 0xfc]
jae 0x14005c46d
mov dword [rbx + 0xfc], ecx
mov ecx, dword [rdi + 0xc]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, esi
jb 0x14005c486
mov ecx, 0x10000
mov esi, eax
cmp eax, ecx
cmova esi, ecx
cmp esi, dword [rbx + 0x100]
jae 0x14005c494
mov dword [rbx + 0x100], esi
mov ecx, dword [rdi + 0x14]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbx + 0x58], eax
mov ecx, dword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbx + 0x5c], eax
mov dword [rbp + 0x80], 1
mov ecx, dword [rbx + 0x40]
test r14, r14
je 0x14005c51f
lea eax, [rcx - 5]
cmp eax, 1
jbe 0x14005c4e2
cmp dword [rbx + 0x58], 0
je 0x14005c4d7
mov rax, qword [rbx + 0x10]
inc qword [rax + 0x2b60]
mov rax, qword [rbx + 0x10]
inc qword [rax + 0x2b58]
xor eax, eax
mov dword [rbx + 0x40], 5
mov qword [rbx + 0x80], rax
mov qword [rbx + 0x70], rax
mov qword [rbx + 0xa0], rax
mov dword [rbx + 0xac], eax
mov dword [r14], 1
mov qword [r14 + 8], rbx
mov eax, dword [rbx + 0x1f8]
mov dword [r14 + 0x14], eax
xor eax, eax
jmp 0x14005c5a1
xor eax, eax
mov rdx, rbx
cmp ecx, 1
mov rcx, rbp
sete al
lea r8d, [rax + 3]
call fcn.14005b2f0
xor eax, eax
jmp 0x14005c5a1
xor eax, eax
mov dword [rbx + 0x1f8], eax
mov eax, dword [rbx + 0x40]
sub eax, 5
cmp eax, 1
ja 0x14005c569
cmp dword [rbx + 0x58], 0
je 0x14005c55e
mov rax, qword [rbx + 0x10]
dec qword [rax + 0x2b60]
mov rax, qword [rbx + 0x10]
dec qword [rax + 0x2b58]
cmp dword [rbx + 0x170], 0
mov dword [rbx + 0x40], 9
jne 0x14005c59c
lea rcx, [rbp + 0xa8]
mov rax, qword [rcx + 8]
mov qword [rbx + 8], rax
mov qword [rbx], rcx
mov qword [rax], rbx
mov qword [rcx + 8], rbx
mov dword [rbx + 0x170], 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 0x14005ce80
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov r11, rsp
push rbx
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0xa8
mov rax, qword [0x140293420]
xor rax, rsp
mov qword [rsp + 0x98], rax
lea r15, [rcx + 0x2b18]
mov qword [r11 + 0x18], rsi
mov rbx, rcx
mov qword [r11 - 0x38], rdi
lea r12, [rcx + 0xb18]
mov rbp, rdx
xor edx, edx
lea rcx, [r11 - 0x60]
test r15, r15
lea r13, [r11 - 0x6c]
mov r14d, edx
cmove rcx, rdx
cmove r13, rdx
mov qword [rsp + 0x50], rcx
nop
mov eax, dword [rbx + 0x78]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x40], rdx
mov r8d, 1
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbx]
mov dword [rsp + 0x68], edx
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x60], r12
mov dword [rsp + 0x6c], Ordinal_32
call qword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
je 0x14005d03a
test dword [rsp + 0x68], 0x8000
jne 0x14005d04c
test r15, r15
je 0x14005cf75
movups xmm0, xmmword [rsp + 0x80]
movzx ecx, word [rsp + 0x7a]
movups xmmword [r15], xmm0
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [r15 + 0x10], ax
movzx eax, word [rsp + 0x90]
mov word [r15 + 0x12], ax
movsxd rdi, dword [rsp + 0x70]
cmp edi, 0xfffffffe
je 0x14005d022
test edi, edi
js 0x14005d04c
je 0x14005d053
cmp dword [rbx + 0x2b84], 0
mov rsi, rdi
je 0x14005cfaf
mov rcx, qword [rsp + 0x60]
lea r8, [rdi - 0xa]
lea rdx, [rcx + 0xa]
call sub.VCRUNTIME140.dll_memmove
cmp dword [rbx + 0x2b84], 0
mov qword [rbx + 0x2b30], r12
mov qword [rbx + 0x2b38], rsi
je 0x14005cfd1
lea rax, [rsi - 0xa]
mov qword [rbx + 0x2b38], rax
add dword [rbx + 0x2b48], edi
inc dword [rbx + 0x2b4c]
mov rax, qword [rbx + 0x2b50]
test rax, rax
je 0x14005d00d
mov rdx, rbp
mov rcx, rbx
call rax
cmp eax, 0xffffffff
je 0x14005d04c
cmp eax, 1
jne 0x14005d00d
test rbp, rbp
je 0x14005d022
cmp dword [rbp], 0
je 0x14005d022
mov eax, 1
jmp 0x14005d055
mov rdx, rbp
mov rcx, rbx
call fcn.14005c5c0
cmp eax, 0xffffffff
je 0x14005d04c
cmp eax, 1
je 0x14005d006
inc r14d
cmp r14d, 0x100
jge 0x14005d04c
mov rcx, qword [rsp + 0x50]
xor edx, edx
jmp 0x14005cee0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
je 0x14005d053
cmp eax, 0x13
je 0x14005d053
mov eax, 0xffffffff
jmp 0x14005d055
xor eax, eax
mov rdi, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1401e4560
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rbp
pop rbx
ret
Function at 0x140060530
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140293420]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor ebx, ebx
cmp dword [0x140297718], ebx
jne 0x1400605e6
mov qword [rsp + 0x70], rdi
lea rcx, [rsp + 0x48]
mov edi, 1
mov dword [0x140297718], edi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [0x14029771c], eax
test eax, eax
je 0x140060599
lea rcx, [0x140297c08]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x48]
divsd xmm0, qword [0x140275540]
jmp 0x1400605d9
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x20], 0x107b2
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x26], rdi
mov word [rsp + 0x2e], bx
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [rsp + 0x34]
mov eax, dword [rsp + 0x30]
movsd xmm0, qword [0x140275538]
shl rcx, 0x20
or rcx, rax
mov qword [0x140297c08], rcx
mov rdi, qword [rsp + 0x70]
movsd qword [0x140297c10], xmm0
cmp dword [0x14029771c], ebx
je 0x140060600
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x40]
jmp 0x14006061f
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
shl rax, 0x20
or rax, rcx
mov qword [rsp + 0x40], rax
sub rax, qword [0x140297c08]
xorps xmm0, xmm0
movabs r9, 0x431bde82d7b634db
cvtsi2sd xmm0, rax
mov rax, r9
divsd xmm0, qword [0x140297c10]
cvttsd2si rcx, xmm0
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, edx, 0xf4240
sub ecx, eax
imul eax, ecx, 0x3e8
movsxd r8, eax
movsxd rax, edx
imul rcx, rax, 0x3b9aca00
add r8, rcx
lock xadd qword [0x140297c00], rbx
test rbx, rbx
jne 0x14006069e
lea rcx, [r8 - 0xf4240]
xor eax, eax
lock cmpxchg qword [0x140297c00], rcx
mov rbx, rax
cmove rbx, rcx
sub r8, rbx
mov rax, r9
mul r8
shr rdx, 0x12
mov eax, edx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401e4560
add rsp, 0x60
pop rbx
ret
Function at 0x1400606c0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140293420]
xor rax, rsp
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
lea r9, [rsp + 0x20]
mov rax, rdx
lea r8, [rsp + 0x28]
mov rbx, rcx
xor edi, edi
mov rcx, rax
mov qword [rsp + 0x20], rdi
xor edx, edx
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14006071d
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140060793
jmp 0x14006078d
mov r9, qword [rsp + 0x20]
mov rdx, r9
test r9, r9
je 0x140060793
nop word [rax + rax]
mov r8, qword [rdx + 0x20]
test r8, r8
je 0x140060781
mov ecx, dword [rdx + 4]
cmp ecx, 2
je 0x14006074f
lea rax, [rdx + 0x10]
test ecx, ecx
jne 0x140060772
cmp qword [rax], 0x10
jne 0x14006077b
mov eax, dword [r8 + 4]
test eax, eax
jne 0x1400607d6
movups xmm0, xmmword [0x140275350]
mov rcx, r9
movups xmmword [rbx], xmm0
mov word [rbx + 0x12], di
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, edi
jmp 0x140060798
cmp ecx, 0x17
je 0x1400607b3
test ecx, ecx
jne 0x140060781
cmp qword [rax], 0x1c
je 0x1400607b3
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x140060730
mov rcx, r9
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401e4560
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
movups xmm0, xmmword [r8 + 8]
mov rcx, r9
movups xmmword [rbx], xmm0
mov rdx, qword [rdx + 0x20]
movzx r8d, word [rdx + 0x18]
mov word [rbx + 0x12], r8w
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, edi
jmp 0x140060798
cmp eax, 0xffffffff
jne 0x1400607f6
movups xmm0, xmmword [0x140275370]
mov rcx, r9
movups xmmword [rbx], xmm0
mov word [rbx + 0x12], di
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, edi
jmp 0x140060798
movups xmm0, xmmword [0x140275360]
mov ecx, eax
shr ecx, 8
movups xmmword [rbx], xmm0
mov byte [rbx + 0xd], cl
mov ecx, eax
shr ecx, 0x10
mov byte [rbx + 0xc], al
mov byte [rbx + 0xe], cl
mov rcx, r9
shr eax, 0x18
mov word [rbx + 0xa], 0xffff
mov byte [rbx + 0xf], al
mov word [rbx + 0x12], di
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, edi
jmp 0x140060798
Function at 0x140060840
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x140293420]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor r14d, r14d
mov rbp, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x1400608a8
movzx ecx, word [rdx + 0x10]
xorps xmm0, xmm0
mov eax, reloc.WS2_32.dll_socket
mov dword [rsp + 0x6c], r14d
movdqu xmmword [rsp + 0x5c], xmm0
mov word [rsp + 0x58], ax
call qword [sym.imp.WS2_32.dll_htons]
movups xmm0, xmmword [rbx]
mov word [rsp + 0x5a], ax
movzx eax, word [rbx + 0x12]
movups xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x70], eax
mov qword [rsp + 0x40], r14
mov rax, rbx
neg rax
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x58]
mov r8d, ebp
sbb r9d, r9d
mov rdx, rsi
and r9d, 0x1c
mov rcx, rdi
mov dword [rsp + 0x30], r9d
test rbx, rbx
lea r9, [rsp + 0x50]
cmove rax, r14
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
call qword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x140060904
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
jmp 0x140060908
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401e4560
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400631a0
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x1f0
mov rax, qword [0x140293420]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov esi, edx
mov rbx, rcx
mov qword [rsp + 0x20], rcx
mov ecx, 0x202
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140063234
lea rdx, str.WSAStartup_failed._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140067540
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14006322d
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140063228
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140063343
mov rcx, r8
call fcn.1401e4580
xor al, al
jmp 0x14006330d
mov edx, 1
mov ebp, 2
lea r8d, [rdx + 5]
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14006326e
lea rdx, str.Error_creating_TCP_socket._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140067540
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1400631f3
mov word [rsp + 0x28], bp
movzx ecx, si
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x2a], ax
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14006328e
mov rdx, qword [rbx]
lea r8, [rsp + 0x2c]
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
mov rcx, rdi
cmp eax, 0xffffffff
jne 0x1400632c8
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1400631f3
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14006330b
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140063306
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140063343
mov rcx, r8
call fcn.1401e4580
mov al, 1
mov byte [rbx], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x10], 0
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.1401e4560
mov rbx, qword [rsp + 0x220]
add rsp, 0x1f0
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140063350
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x1f0
mov rax, qword [0x140293420]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov esi, edx
mov rbx, rcx
mov qword [rsp + 0x20], rcx
mov ecx, 0x202
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400633e4
lea rdx, str.WSAStartup_failed._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140067540
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400633dd
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400633d8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400634fc
mov rcx, r8
call fcn.1401e4580
xor al, al
jmp 0x1400634c6
mov ebp, 2
lea r8d, [rbp + 0xf]
mov edx, ebp
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140063427
lea rdx, str.Error_creating_UDP_socket._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140067540
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1400633a3
mov word [rsp + 0x28], bp
movzx ecx, si
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x2a], ax
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140063447
mov rdx, qword [rbx]
lea r8, [rsp + 0x2c]
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
mov rcx, rdi
cmp eax, 0xffffffff
jne 0x140063481
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1400633a3
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400634c4
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400634bf
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400634fc
mov rcx, r8
call fcn.1401e4580
mov al, 1
mov byte [rbx], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x10], 0
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.1401e4560
mov rbx, qword [rsp + 0x220]
add rsp, 0x1f0
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3