joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005a6c0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rax, qword [0x1400a0280]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rbx, qword [rsp + 0x180]
mov rdi, r8
movsxd r8, edx
mov rsi, r9
mov rdx, qword [rcx + 0x18]
mov rbp, rcx
mov r14, qword [rdx + r8*8 + 0x1e8]
call fcn.14005ab5c
test eax, eax
je 0x14005a715
mov dword [rbx], 0x1b
or rax, 0xffffffffffffffff
jmp 0x14005a77f
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
and dword [rbx], 0
movsxd rsi, eax
cmp rsi, 0xffffffffffffffff
jne 0x14005a77c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x14005a74c
xor esi, esi
mov dword [rbx], 0x51
jmp 0x14005a77c
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.14006302c
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.14005a394
mov dword [rbp + 0xdcc], edi
mov dword [rbx], 0x37
mov rax, rsi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.14007ae40
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

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, 0x20
mov rbx, rdx
mov r14, rcx
movsxd rdx, r8d
mov rdi, rdx
shl rdi, 5
mov rax, qword [rbx + 0x410]
mov rbp, qword [rbx + rdx*8 + 0x1e8]
mov rsi, qword [rdi + rbx + 0x238]
sub rsi, qword [rdi + rbx + 0x240]
test byte [rax + 0x84], 3
je 0x14005ac78
lea rax, [0x14005a5e8]
cmp qword [rbx + rdx*8 + 0x210], rax
jne 0x14005ac78
cmp qword [rdi + rbx + 0x230], 0
je 0x14005abda
test rsi, rsi
je 0x14005ac78
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rbp
call fcn.14006d274
cmp eax, 0xffffffff
je 0x14005ac78
test al, 1
je 0x14005ac78
mov rcx, qword [rdi + rbx + 0x230]
test rcx, rcx
jne 0x14005ac4f
mov eax, dword [r14 + 0x724]
add eax, eax
movsxd rcx, eax
mov qword [rdi + rbx + 0x238], rcx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rdi + rbx + 0x230], rax
mov rcx, rax
test rax, rax
jne 0x14005ac35
lea eax, [rcx + 0x1b]
jmp 0x14005ac7a
and qword [rdi + rbx + 0x240], 0
and qword [rdi + rbx + 0x248], 0
mov rsi, qword [rdi + rbx + 0x238]
mov rdx, qword [rdi + rbx + 0x240]
xor r9d, r9d
add rdx, rcx
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x14005ac78
add qword [rdi + rbx + 0x240], rcx
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14005afe4
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x1c8
mov rax, qword [0x1400a0280]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rdi, r8
mov rbx, rdx
mov r8d, 0x80
mov rsi, rcx
xor edx, edx
mov dword [rsp + 0x20], r8d
lea rcx, [rsp + 0x30]
mov rbp, r9
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14005b065
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.14006302c
mov r8d, ebx
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x14005b0ad
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rbp
mov r8, rdi
call fcn.14005ac98
test al, al
jne 0x14005b0b8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.14006302c
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.14005a394
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14007ae40
add rsp, 0x1c8
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14005b7d8
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x48], 0
mov rbx, rcx
mov eax, dword [0x1400a4700]
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x14005b82d
xor edx, edx
lea ecx, [rax + 6]
lea r9d, [rax + 3]
lea r8d, [rax + 2]
call fcn.140072c50
test al, al
je 0x14005b822
mov dword [0x1400a4700], 2
jmp 0x14005b884
mov eax, 1
mov dword [0x1400a4700], eax
cmp eax, 2
je 0x14005b884
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14005b863
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x14005b884
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x14005c500
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400a0280]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor eax, eax
mov dword [rsp + 0x20], 4
cmp byte [rcx + 0xb1f], al
lea r9, [rsp + 0x50]
mov rdi, rdx
mov rbx, rcx
setne al
mov edx, 0xffff
mov r8d, 8
mov dword [rsp + 0x50], eax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14005c56a
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d
mov rcx, rbx
call fcn.14005a460
jmp 0x14005c5fd
mov ecx, dword [rbx + 0xa84]
mov dword [rsp + 0x58], 1
call fcn.140053dcc
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0xa88]
call fcn.140053dcc
and qword [rsp + 0x40], 0
lea r8, [rsp + 0x58]
and qword [rsp + 0x38], 0
mov r9d, ntohs
imul ecx, eax, 0x3e8
mov edx, 0x98000004
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x14005c5fd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, edi
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
mov r9d, eax
mov rcx, rbx
call fcn.14005a460
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14007ae40
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret

Function at 0x14005c618
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1400a0280]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov r8d, 1
mov dword [rsp + 0x20], 4
mov rax, rdx
mov dword [rsp + 0x30], r8d
mov rbx, rcx
lea r9, [rsp + 0x30]
mov rcx, rax
lea edx, [r8 + 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14005c68c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.14006302c
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, rbx
call fcn.14005a460
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14007ae40
add rsp, 0x150
pop rbx
ret
Function at 0x14005ca28
Capabilities:
Get common file path

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, 0x20
mov rbp, rcx
xor ebx, ebx
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x14005cb5f
lea rdx, str.LoadLibraryExA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140087308]
mov rcx, rbp
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbspbrk]
test rax, rax
je 0x14005ca9f
mov rcx, rbp
test rsi, rsi
je 0x14005ca97
mov r8d, 8
jmp 0x14005cac2
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x14005cac6
test rsi, rsi
je 0x14005cace
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005cace
mov r8d, 0x800
mov rcx, rbp
xor edx, edx
call rsi
mov rbx, rax
jmp 0x14005cb5c
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r14d, eax
test eax, eax
je 0x14005cb5c
mov rcx, rbp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea ecx, [r14 + 1]
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14005cb53
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14005cb53
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rdx, [0x140087320]
lea rcx, [rdi + rax]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rdx, rbp
lea rcx, [rdi + rax]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov rcx, rdi
test rsi, rsi
je 0x14005cb4a
xor edx, edx
lea r8d, [rdx + 8]
call rsi
jmp 0x14005cb50
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rcx, rdi
call qword [0x1400a0210]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14005cb7c
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1400a0280]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
test cl, 2
je 0x14005cbd1
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14005cbb8
mov eax, 2
jmp 0x14005cc38
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x14005cbc9
shr ax, 8
cmp al, 2
je 0x14005cbd1
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x14005cbae
call fcn.14007380c
test eax, eax
jne 0x14005cc38
lea rcx, str.iphlpapi.dll
call fcn.14005ca28
mov qword [0x1400a4710], rax
test rax, rax
je 0x14005cc0e
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005cc0e
mov qword [0x1400a4708], rax
xor edx, edx
lea r9d, [rdx + 3]
lea r8d, [rdx + 2]
lea ecx, [rdx + 6]
call fcn.140072c50
test al, al
lea rcx, [0x1400a4d48]
setne byte [0x1400a4d44]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14007ae40
add rsp, 0x1d8
ret
Function at 0x14005f980
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 0x10], 0
mov rdi, r8
and qword [rbp - 0x18], 0
mov rbx, r9
and dword [rbp + 0x38], 0
mov rsi, rdx
mov r14, rcx
mov dword [rbp - 0x20], 4
mov rcx, rdi
mov dword [rbp - 0x1c], ebx
mov r8, r9
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov r9d, dword [rbp + 0x40]
lea rcx, [rbp - 0x10]
xor r8d, r8d
mov dword [rsp + 0x20], 0xf0000040
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14005fa83
mov edx, dword [rbp + 0x48]
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14005fa63
mov rcx, qword [rbp - 0x18]
xor r9d, r9d
mov r8d, esi
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14005fa63
mov rcx, qword [rbp - 0x18]
lea r9, [rbp - 0x20]
and dword [rsp + 0x20], 0
lea r8, [rbp + 0x38]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14005fa63
mov eax, dword [rbp + 0x38]
cmp rbx, rax
jb 0x14005fa63
and dword [rsp + 0x20], 0
lea r9, [rbp - 0x1c]
mov rcx, qword [rbp - 0x18]
mov r8, rdi
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14005fa72
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14005fa83
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret

Function at 0x1400617cc
Capabilities:
Query environment variable

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, 0x20
xor ebp, ebp
mov r14, rcx
xor ecx, ecx
lea edi, [rbp + 1]
jmp 0x14006181e
mov r8d, edi
mov rdx, rbx
mov rcx, r14
mov rbp, rbx
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test eax, eax
je 0x14006185a
cmp edi, esi
je 0x14006185a
cmp edi, 0x8000
ja 0x14006185a
cmp edi, esi
jb 0x140061855
mov rcx, rbx
mov rdx, rdi
call qword [0x1400a0218]
mov rbx, rax
test rax, rax
jne 0x1400617f1
mov rcx, rbp
call qword [0x1400a0210]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rbx
jmp 0x14006183a
mov rcx, rbx
jmp 0x140061832
jmp 0x1400617cc
Function at 0x140061860
Capabilities:
Query environment variable

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, 0x20
xor ebp, ebp
mov r14, rcx
xor ecx, ecx
lea edi, [rbp + 1]
jmp 0x14006181e
mov r8d, edi
mov rdx, rbx
mov rcx, r14
mov rbp, rbx
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test eax, eax
je 0x14006185a
cmp edi, esi
je 0x14006185a
cmp edi, 0x8000
ja 0x14006185a
cmp edi, esi
jb 0x140061855
mov rcx, rbx
mov rdx, rdi
call qword [0x1400a0218]
mov rbx, rax
test rax, rax
jne 0x1400617f1
mov rcx, rbp
call qword [0x1400a0210]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rbx
jmp 0x14006183a
mov rcx, rbx
jmp 0x140061832
jmp 0x1400617cc
Function at 0x1400646cc
Capabilities:
Convert ip address from string

Disassembly:
and qword [r9], 0
cmp qword [rsp + 0x28], 0
jge 0x1400646de
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.1400643f0

Function at 0x140064acc
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x40
mov rax, qword [0x1400a0280]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov edi, ecx
lea rcx, str.localhost
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov edx, 1
lea rcx, [rax + 0x41]
call qword [case.0x14007525c.1]
mov rbx, rax
test rax, rax
je 0x140064bc0
xor edx, edx
lea rcx, [rsp + 0x28]
lea r8d, [rdx + 0x10]
call sub.VCRUNTIME140.dll_memset
mov ebp, 2
movzx ecx, di
mov word [rsp + 0x28], bp
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x20]
mov ecx, ebp
lea rdx, str.127.0.0.1
mov word [rsp + 0x2a], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jl 0x140064bc0
lea r8d, [rbp + 2]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x2c]
call sub.VCRUNTIME140.dll_memcpy
and dword [rbx], 0
lea rcx, [rbx + 0x30]
lea r8d, [rbp + 0xe]
mov qword [rbx + 0x20], rcx
lea rdx, [rsp + 0x28]
mov dword [rbx + 4], ebp
mov dword [rbx + 8], 1
mov dword [rbx + 0xc], 6
mov dword [rbx + reloc.WS2_32.dll_recv], 0x10
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x20]
lea rdx, str.localhost
add rcx, 0x10
mov qword [rbx + 0x18], rcx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov ecx, edi
call fcn.140064be0
mov qword [rbx + 0x28], rax
mov rax, rbx
jmp 0x140064bc2
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14007ae40
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140064be0
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400a0280]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov edi, ecx
lea rcx, str.localhost
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov edx, 1
lea rcx, [rax + 0x4d]
call qword [case.0x14007525c.1]
mov rbx, rax
test rax, rax
je 0x140064cca
mov r14d, reloc.WS2_32.dll_socket
movzx ecx, di
mov word [rsp + 0x20], r14w
call qword [sym.imp.WS2_32.dll_htons]
and dword [rsp + 0x24], 0
lea r8, [rsp + 0x40]
and dword [rsp + 0x38], 0
lea rdx, [0x14008a550]
mov ecx, r14d
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jl 0x140064cca
lea r8d, [r14 - 7]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll_memcpy
and dword [rbx], 0
lea r8d, [r14 + 5]
and qword [rbx + 0x28], 0
lea rcx, [rbx + 0x30]
lea rdx, [rsp + 0x20]
mov dword [rbx + 0x10], r8d
mov qword [rbx + 0x20], rcx
mov dword [rbx + 4], r14d
mov dword [rbx + 8], 1
mov dword [rbx + 0xc], 6
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x20]
lea rdx, str.localhost
add rcx, 0x1c
mov qword [rbx + 0x18], rcx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov rax, rbx
jmp 0x140064ccc
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14007ae40
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret
Function at 0x140065614
Capabilities:
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rax - 0x18], xmm6
lea rcx, [rax - 0x38]
mov rdi, rdx
call fcn.14006bf8c
mov rcx, rbx
movups xmm6, xmmword [rax]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rbx, rax
mov rdx, rax
mov edi, 1
jmp 0x140065697
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.14006bf8c
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x30], xmm0
call fcn.14006c004
cmp rax, 0x3e8
ja 0x1400656da
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, rbx
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x14006565c
test rsi, rsi
je 0x1400656b5
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x1400656c3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x1400656e8
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x1400656f6
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, edi
jmp 0x1400656c5
Function at 0x14006b240
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1400a0280]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r13, rcx
mov rbx, rdx
mov rcx, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
cmp byte [rbx], 0x5b
mov rdi, rax
jne 0x14006b3b9
cmp rax, 4
jb 0x14006b3ce
inc rbx
sub rdi, 2
cmp byte [rbx + rdi], 0x5d
jne 0x14006b3ce
lea rdx, str.0123456789abcdefABCDEF:.
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strspn]
mov rbp, rax
cmp rdi, rax
je 0x14006b368
cmp byte [rbx + rax], 0x25
mov rdi, rax
jne 0x14006b3ce
lea r15, [rbx + rax]
xor r14d, r14d
lea rdx, [0x14008bb7c]
lea rcx, [r15 + 1]
lea rsi, [r15 + 1]
lea r8d, [r14 + 2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x14006b2f7
lea rcx, [r15 + 3]
mov al, byte [rcx]
test al, al
je 0x14006b2f7
cmp al, 0x5d
cmovne rsi, rcx
mov al, byte [rsi]
test al, al
je 0x14006b3ce
xor ecx, ecx
cmp al, 0x5d
je 0x14006b320
cmp rcx, 0xf
jge 0x14006b320
inc rsi
mov byte [rsp + rcx + 0x20], al
inc r14d
inc rcx
mov al, byte [rsi]
test al, al
jne 0x14006b303
test r14d, r14d
je 0x14006b3ce
cmp byte [rsi], 0x5d
jne 0x14006b3ce
movsxd rax, r14d
cmp rax, 0x10
jae 0x14006b3d5
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], 0
call qword [case.0x14007525c.0]
mov qword [r13 + 0x28], rax
test rax, rax
jne 0x14006b35f
mov eax, 7
jmp 0x14006b393
mov byte [rbx + rbp], 0x5d
mov byte [r15 + 1], 0
lea r8, [rsp + 0x30]
mov byte [rbx + rdi], 0
mov rdx, rbx
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x14006b3ce
mov byte [rbx + rdi], 0x5d
mov al, byte [rbx]
neg al
sbb eax, eax
not eax
and eax, 0xe
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14007ae40
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
lea rdx, [0x140080eac]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
cmp rdi, rax
je 0x14006b388
mov eax, 3
jmp 0x14006b393
call fcn.14007b3f8
int3
Function at 0x14006c228
Capabilities:
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, r9
xor edi, edi
and qword [r9], rdi
xor r13d, r13d
lea r9, [rax + 0x20]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebp, eax
test eax, eax
jne 0x14006c38a
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x14006c377
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14006c285
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea r14, [rax + 1]
jmp 0x14006c288
xor r14d, r14d
cmp dword [rbx + 4], 2
jne 0x14006c296
mov r15d, reloc.WS2_32.dll_recv
jmp 0x14006c2a6
cmp dword [rbx + 4], 0x17
jne 0x14006c33e
mov r15d, 0x1c
cmp qword [rbx + 0x20], 0
je 0x14006c33e
cmp qword [rbx + 0x10], 0
jbe 0x14006c33e
cmp qword [rbx + 0x10], r15
jb 0x14006c33e
lea rcx, [r14 + 0x30]
add rcx, r15
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14006c34d
mov ecx, dword [rbx]
mov r8, r15
mov dword [rax], ecx
mov ecx, dword [rbx + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rbx + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rbx + 0xc]
and qword [rax + 0x18], 0
and qword [rax + 0x28], 0
mov dword [rax + 0xc], ecx
lea rcx, [rax + 0x30]
mov qword [rax + 0x20], rcx
mov dword [rax + 0x10], r15d
mov rdx, qword [rbx + 0x20]
call sub.VCRUNTIME140.dll_memcpy
test r14, r14
je 0x14006c32b
mov rcx, qword [rsi + 0x20]
mov r8, r14
add rcx, r15
mov qword [rsi + 0x18], rcx
mov rdx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
test rdi, rdi
cmove rdi, rsi
test r13, r13
je 0x14006c33b
mov qword [r13 + 0x28], rsi
mov r13, rsi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14006c271
jmp 0x14006c352
mov ebp, 8
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14006c362
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x14006c372
mov rcx, rdi
call fcn.14006c204
xor edi, edi
jmp 0x14006c384
test rdi, rdi
jne 0x14006c384
mov ebp, 0x2af9
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov qword [r12], rdi
mov eax, ebp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14006d41c
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov r11, qword [rsp + 0x60]
mov r10, rdx
mov rdi, rcx
test rdx, rdx
je 0x14006d43b
cmp dword [rdx], 0
jne 0x14006d459
test r8, r8
je 0x14006d446
cmp dword [r8], 0
jne 0x14006d459
test r9, r9
je 0x14006d4f4
cmp dword [r9], 0
je 0x14006d4f4
lea rbx, [rsp + 0x48]
test r11, r11
jns 0x14006d467
xor ebx, ebx
jmp 0x14006d4b7
jle 0x14006d4ad
mov rcx, r11
movabs rax, 0x624dd2f1a9fbe77
mul r11
sub rcx, rdx
shr rcx, 1
add rcx, rdx
mov edx, 0x7fffffff
shr rcx, 9
imul rax, rcx, 0x3e8
sub r11, rax
imul rax, r11, 0x3e8
cmp rcx, rdx
mov dword [rsp + 0x4c], eax
cmovg rcx, rdx
mov dword [rsp + 0x48], ecx
jmp 0x14006d4b7
and dword [rsp + 0x48], 0
and dword [rsp + 0x4c], 0
test r9, r9
je 0x14006d4c2
cmp dword [r9], 0
jne 0x14006d4c5
xor r9d, r9d
test r8, r8
je 0x14006d4d0
cmp dword [r8], 0
jne 0x14006d4d3
xor r8d, r8d
test r10, r10
je 0x14006d4de
cmp dword [r10], 0
jne 0x14006d4e1
xor r10d, r10d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rbx
mov rdx, r10
call qword [sym.imp.WS2_32.dll_select]
jmp 0x14006d4fc
mov rcx, r11
call fcn.14006d3dc
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400703e0
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
and qword [r11 - 0x18], 0
lea rax, [r11 + 0x18]
and qword [r11 - 0x20], 0
xor r9d, r9d
mov qword [r11 - 0x28], rax
xor r8d, r8d
lea rax, [r11 + 0x10]
mov dword [rsp + 0x28], 4
mov edx, 0x4004747b
mov qword [r11 - 0x38], rax
mov rbx, rcx
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x140070443
lea r9, [rsp + 0x68]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x50
pop rbx
ret