joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14011a5d0
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
push rbx
sub rsp, 0x30
mov rbx, rdx
mov dword [rax - 0x18], 4
mov rcx, rbx
lea r9, [rax + 0x18]
mov edx, 0xffff
mov r8d, 8
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14011a60f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x14011a63c
cmp dword [rsp + 0x50], 0
je 0x14011a63a
mov edx, 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x58]
mov rcx, rbx
lea r8d, [rdx - 3]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14011a607
xor eax, eax
add rsp, 0x30
pop rbx
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0x50
lea rbx, [rdx + 0x80]
mov rsi, rdx
xor edx, edx
lea r14, [rbx + 0x40]
mov rdi, rcx
mov rcx, r14
lea r8d, [rdx + 0x20]
call fcn.140145ba0
bts dword [rsi + 0x58], 0x12
lea rax, [0x140463a90]
and dword [rsp + 0x40], 0
xor edx, edx
mov rcx, r14
mov qword [rsp + 0x48], rax
lea r8d, [rdx + 0x20]
call fcn.140145ba0
test dword [rsi + 0x58], 0x80000
je 0x14011abe5
mov rax, qword [rbx + 0x70]
or rax, 1
mov qword [rbx + 0x58], rax
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x78]
mov rcx, qword [rsi + 0x110]
lea r9, [rsp + 0x80]
and dword [rsp + 0x78], 0
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], r14
mov r8d, 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov ecx, dword [rsi + 0x58]
inc dword [rsi + 0x78]
bts ecx, 0x10
mov dword [rsi + 0x58], ecx
test eax, eax
jne 0x14011ac68
bt ecx, 0x11
jae 0x14011ac9c
mov eax, dword [rsp + 0x80]
mov qword [rbx + 0x48], rax
and qword [rbx + 0x68], 0
mov rax, qword [rdi + 0x48]
test rax, rax
je 0x14011acee
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rdi + 0x48]
mov qword [rax + 0x68], rbx
jmp 0x14011acf2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14011ac9c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jg 0x14011ac87
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x14011ac95
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [r14], rax
jmp 0x14011ac41
test dword [rsi + 0x58], 0x80000
je 0x14011acf6
lea rcx, [rbx + 0x78]
cmp qword [rcx], 0xffffffffffffffff
jne 0x14011acf6
mov rdx, qword [rbx + 0x70]
lea r8, [0x140110950]
mov dword [rsp + 0x28], 4
mov r9, rbx
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x14011acf6
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14011ace6
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14011ac95
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14011ac8d
mov qword [rbx + 0x68], rbx
mov qword [rdi + 0x48], rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x14011adc0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
cmp qword [rdx + 0x110], 0xffffffffffffffff
mov r14d, 1
mov dword [rsp + 0x68], r14d
mov ebp, r9d
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
je 0x14011adfd
mov eax, 0xfffff00e
jmp 0x14011af05
lea r8, [rsp + 0x68]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x14011ae20
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x14011af05
xor r8d, r8d
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x14011ae3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14011af05
mov rdx, qword [rsi + 0x38]
xor r9d, r9d
mov r8, rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov edx, 0x80000
test rax, rax
jne 0x14011ae67
cmp dword [rsp + 0x80], eax
je 0x14011ae33
or dword [rbx + 0x58], edx
mov ecx, dword [0x140467874]
cmp ebp, 0x17
mov eax, dword [rbx + 0x58]
cmove ecx, dword [0x140467870]
test edx, eax
jne 0x14011ae99
test ecx, ecx
jne 0x14011ae99
mov dl, 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
test eax, eax
je 0x14011ae33
bts dword [rbx + 0x58], 0x11
mov eax, dword [rbx + 0x58]
bt eax, 0x18
jae 0x14011aed1
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], r14d
mov r8d, r14d
mov dword [rsp + 0x20], 4
mov edx, 6
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14011aed1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x14011af05
test dword [rbx + 0x58], 0x2000000
je 0x14011aef2
mov r9d, 0x3c
mov r8d, r14d
mov rdx, rdi
mov rcx, rbx
call fcn.14011a5d0
test eax, eax
jne 0x14011af05
mov qword [rbx + 0x110], rdi
cmp ebp, 0x17
jne 0x14011af03
bts dword [rbx + 0x58], 0x16
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14011af20
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
cmp qword [rcx + 0x110], 0xffffffffffffffff
mov esi, r9d
mov r15d, r8d
mov rdi, rdx
mov rbx, rcx
jne 0x14011afb5
test sil, 1
je 0x14011af64
cmp word [rdx], 0x17
je 0x14011af64
mov eax, 0x57
jmp 0x14011b019
movzx ecx, word [rdx]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14011af88
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x14011b019
movzx r9d, word [rdi]
mov r8, rbp
mov rcx, qword [rbx + 8]
mov rdx, rbx
and dword [rsp + 0x20], 0
call fcn.14011adc0
mov r14d, eax
test eax, eax
je 0x14011afb5
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, r14d
jmp 0x14011b019
cmp word [rdi], 0x17
jne 0x14011afe5
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x50]
mov edx, 0x29
mov dword [rsp + 0x20], 4
and esi, 1
mov dword [rsp + 0x50], esi
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x110]
mov r8d, r15d
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x14011b012
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x2740
cmp eax, ecx
jne 0x14011b019
mov dword [rbx + 0x118], ecx
bts dword [rbx + 0x58], 0xd
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14011b9d4
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov edi, edx
mov rcx, qword [rcx + 0x110]
cmp rcx, 0xffffffffffffffff
je 0x14011ba27
mov dword [rax + 8], edx
lea r9, [rax + 8]
mov edx, 6
mov dword [rax - 0x18], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14011ba27
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x14011ba27
mov ecx, eax
call fcn.14011bfd0
jmp 0x14011ba3e
mov ecx, dword [rbx + 0x58]
mov eax, ecx
btr eax, 0x18
bts ecx, 0x18
test edi, edi
cmove ecx, eax
xor eax, eax
mov dword [rbx + 0x58], ecx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14011d7f0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x28
test rdx, rdx
je 0x14011d809
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x14011d809
mov eax, 0xfffff01a
jmp 0x14011d80b
xor eax, eax
add rsp, 0x28
ret
Function at 0x14011e130
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x1401d4770]
xor rax, rsp
mov qword [rsp + 0x460], rax
lea r8, [0x140467860]
xor edx, edx
lea rcx, str.0.0.0.0
call fcn.14010ca10
xor edi, edi
test eax, eax
jne 0x14011e2bc
lea r8, [0x140467840]
xor edx, edx
lea rcx, [0x14018b090]
call fcn.14010ca80
test eax, eax
jne 0x14011e2bc
lea ecx, [rdi + 0x43]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 1
je 0x14011e29b
mov ecx, 0x202
lea rdx, [rsp + 0x2c0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14011e2c2
xor r8d, r8d
mov dword [0x140467874], 1
lea edx, [rdi + 1]
lea ecx, [rdi + 2]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14011e229
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14011e220
mov eax, dword [0x140467874]
test dword [rsp + 0x40], 0x20000
cmovne eax, edi
mov dword [0x140467874], eax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor r8d, r8d
mov dword [0x140467870], 1
lea edx, [r8 + 1]
lea ecx, [rdx + 0x16]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14011e29b
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14011e292
mov eax, dword [0x140467870]
test dword [rsp + 0x40], 0x20000
cmovne eax, edi
mov dword [0x140467870], eax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140140c60
mov rbx, qword [rsp + 0x480]
add rsp, 0x470
pop rdi
ret
call fcn.14014aee0
int3
lea rdx, str.WSAStartup
mov ecx, eax
call fcn.14011bf20
int3

Function at 0x140124eb0
Capabilities:
Convert ip address from string

Disassembly:
and qword [r9], 0
cmp qword [rsp + 0x28], 0
jge 0x140124ec2
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.140124b90
Function at 0x140125310
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r15
sub rsp, 0x40
mov rax, qword [0x1401d4770]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov esi, ecx
mov rdi, rdx
mov rcx, rdx
call fcn.140155580
xor edx, edx
lea rcx, [rsp + 0x28]
mov rbx, rax
lea r8d, [rdx + 0x10]
call fcn.140145ba0
mov r15d, 2
movzx ecx, si
mov word [rsp + 0x28], r15w
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x20]
mov ecx, r15d
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 0x14012540d
lea r8d, [r15 + 2]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x2c]
call fcn.140145200
lea rcx, [rbx + 0x41]
lea edx, [r15 - 1]
call qword [fcn.140151510]
mov rbx, rax
test rax, rax
je 0x14012540d
and dword [rax], 0
lea rcx, [rax + 0x30]
lea r8d, [r15 + 0xe]
mov qword [rax + 0x20], rcx
lea rdx, [rsp + 0x28]
mov dword [rax + 4], r15d
mov dword [rax + 8], 1
mov dword [rax + 0xc], 6
mov dword [rax + reloc.WS2_32.dll_recv], 0x10
call fcn.140145200
mov rcx, qword [rbx + 0x20]
mov rdx, rdi
add rcx, 0x10
mov qword [rbx + 0x18], rcx
call fcn.140158f10
mov rdx, rdi
mov ecx, esi
call fcn.140125430
test rax, rax
jne 0x140125407
mov rax, rbx
jmp 0x14012540f
mov qword [rax + 0x28], rbx
jmp 0x14012540f
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140140c60
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop rdi
pop rsi
ret

Function at 0x140125430
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1401d4770]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov esi, ecx
mov rdi, rdx
mov rcx, rdx
call fcn.140155580
mov edx, 1
lea rcx, [rax + 0x4d]
call qword [fcn.140151510]
mov rbx, rax
test rax, rax
je 0x140125512
mov r14d, reloc.WS2_32.dll_socket
movzx ecx, si
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, [0x14018b3bc]
mov ecx, r14d
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jl 0x140125512
lea r8d, [r14 - 7]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.140145200
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 fcn.140145200
mov rcx, qword [rbx + 0x20]
mov rdx, rdi
add rcx, 0x1c
mov qword [rbx + 0x18], rcx
call fcn.140158f10
mov rax, rbx
jmp 0x140125514
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140140c60
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
Function at 0x140132170
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
cmp byte [rcx + 0x9f0], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x140132231
cmp qword [rcx + 0x260], 0
je 0x1401321e6
call fcn.14011e620
mov dl, 1
mov rcx, rdi
mov bl, al
call fcn.14011e900
mov rcx, qword [rdi + 0x1d8]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x260]
mov dl, bl
mov rcx, rdi
call fcn.14011e900
jmp 0x140132231
mov ecx, esi
test edx, edx
je 0x1401321f6
sub ecx, 1
je 0x1401321f6
cmp ecx, 1
jne 0x140132231
mov r9, qword [rdi + 0x1d0]
lea rax, [0x14018c3f8]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.140150630
mov r9, qword [rdi + 0x1d0]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call fcn.140150630
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1401350e0
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, [0x14018c5a0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x140135216
lea rdx, [0x14018c5b0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14018c5c0]
mov rcx, rbp
mov rsi, rax
call fcn.140158fd0
test rax, rax
je 0x140135156
mov rcx, rbp
test rsi, rsi
je 0x14013514e
mov r8d, 8
jmp 0x140135179
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x14013517d
test rsi, rsi
je 0x140135185
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140135185
mov r8d, 0x800
mov rcx, rbp
xor edx, edx
call rsi
mov rbx, rax
jmp 0x140135213
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r14d, eax
test eax, eax
je 0x140135213
mov rcx, rbp
call fcn.140155580
lea ecx, [r14 + 1]
add rcx, rax
call qword [fcn.1401515b0]
mov rdi, rax
test rax, rax
je 0x14013520a
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14013520a
mov rcx, rdi
call fcn.140155580
lea rdx, [0x14018c5d8]
lea rcx, [rdi + rax]
call fcn.140158f10
mov rcx, rdi
call fcn.140155580
mov rdx, rbp
lea rcx, [rdi + rax]
call fcn.140158f10
mov rcx, rdi
test rsi, rsi
je 0x140135201
xor edx, edx
lea r8d, [rdx + 8]
call rsi
jmp 0x140135207
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rcx, rdi
call qword [fcn.1401509a0]
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 0x140135280
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1401d4770]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x1401352d5
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1401352bc
mov eax, 2
jmp 0x140135345
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x1401352cd
shr ax, 8
cmp al, 2
je 0x1401352d5
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1401352b2
lea rcx, str.iphlpapi.dll
call fcn.1401350e0
mov qword [0x140463b90], rax
test rax, rax
je 0x140135312
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140463b88]
test rax, rax
cmovne rcx, rax
mov qword [0x140463b88], rcx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.14013ee20
test al, al
lea rcx, [0x1404678f0]
setne byte [0x1404678e8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140140c60
add rsp, 0x1e8
ret
Function at 0x140135a40
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 0x140135bb3
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x140135ba0
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140135a9d
call fcn.140155580
lea r14, [rax + 1]
jmp 0x140135aa0
xor r14d, r14d
cmp dword [rbx + 4], 2
jne 0x140135aae
mov r15d, reloc.WS2_32.dll_recv
jmp 0x140135abe
cmp dword [rbx + 4], 0x17
jne 0x140135b56
mov r15d, 0x1c
cmp qword [rbx + 0x20], 0
je 0x140135b56
cmp qword [rbx + 0x10], 0
jbe 0x140135b56
cmp qword [rbx + 0x10], r15
jb 0x140135b56
lea rcx, [r14 + 0x30]
add rcx, r15
call qword [fcn.1401515b0]
mov rsi, rax
test rax, rax
je 0x140135b64
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 fcn.140145200
test r14, r14
je 0x140135b43
mov rcx, qword [rsi + 0x20]
mov r8, r14
add rcx, r15
mov qword [rsi + 0x18], rcx
mov rdx, qword [rbx + 0x18]
call fcn.140145200
test rdi, rdi
cmove rdi, rsi
test r13, r13
je 0x140135b53
mov qword [r13 + 0x28], rsi
mov r13, rsi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
je 0x140135b69
jmp 0x140135a89
mov ebp, 8
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140135b79
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x140135b9b
test rdi, rdi
je 0x140135b97
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [fcn.1401509a0]
mov rdi, rbx
test rbx, rbx
jne 0x140135b82
xor edi, edi
jmp 0x140135bad
test rdi, rdi
jne 0x140135bad
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 0x1401361e0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov r8, rdx
xor edx, edx
mov rdi, rcx
call fcn.140145ba0
mov r9d, 2
mov r8d, ebx
mov rdx, rdi
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
mov rbx, qword [rsp + 0x30]
neg eax
sbb eax, eax
and eax, 2
add rsp, 0x20
pop rdi
ret
Function at 0x1401378f0
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1401d4770]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, r8
mov rbx, rdx
mov r13, rcx
cmp r8, 4
jb 0x140137a64
inc rbx
lea rdx, str.0123456789abcdefABCDEF:.
mov rcx, rbx
sub rsi, 2
call fcn.140159600
mov rbp, rax
cmp rsi, rax
je 0x1401379f4
cmp byte [rbx + rax], 0x25
mov rsi, rax
jne 0x140137a64
lea r15, [rbx + rax]
xor r14d, r14d
lea rdx, [0x14018c98c]
lea rcx, [r15 + 1]
lea rdi, [r15 + 1]
lea r8d, [r14 + 2]
call fcn.14014ae60
test eax, eax
jne 0x140137983
lea rcx, [r15 + 3]
mov al, byte [rcx]
test al, al
je 0x140137983
cmp al, 0x5d
cmovne rdi, rcx
mov al, byte [rdi]
test al, al
je 0x140137a64
xor ecx, ecx
cmp al, 0x5d
je 0x1401379ac
cmp rcx, 0xf
jge 0x1401379ac
inc rdi
mov byte [rsp + rcx + 0x20], al
inc r14d
inc rcx
mov al, byte [rdi]
test al, al
jne 0x14013798f
test r14d, r14d
je 0x140137a64
cmp byte [rdi], 0x5d
jne 0x140137a64
movsxd rax, r14d
cmp rax, 0x10
jae 0x140137a85
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], 0
call qword [fcn.140151530]
mov qword [r13 + 0x28], rax
test rax, rax
jne 0x1401379eb
mov eax, 7
jmp 0x140137a69
mov byte [rbx + rbp], 0x5d
mov byte [r15 + 1], 0
mov ebp, reloc.WS2_32.dll_socket
lea rdi, [rsi + rbx]
mov ecx, ebp
mov byte [rdi], 0
lea r8, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x140137a64
lea r9d, [rbp + 0x17]
mov ecx, ebp
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
call sub.WS2_32.dll_inet_ntop
test rax, rax
je 0x140137a5d
lea rcx, [rsp + 0x30]
call fcn.140155580
cmp rax, rsi
jae 0x140137a5d
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140158f10
lea rcx, [rsp + 0x30]
call fcn.140155580
lea rdi, [rax + rbx]
mov byte [rdi + 1], 0
mov byte [rdi], 0x5d
xor eax, eax
jmp 0x140137a69
mov eax, reloc.WS2_32.dll_shutdown
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140140c60
add rsp, 0x70
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140141070
int3

Function at 0x14013ab20
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 0x14013ab72
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 0x14013abac
cmp edi, esi
je 0x14013abac
cmp edi, 0x8000
ja 0x14013abac
cmp edi, esi
jb 0x14013ab8e
mov rcx, rbx
mov rdx, rdi
call qword [fcn.140151520]
mov rbx, rax
test rax, rax
jne 0x14013ab45
mov rcx, rbp
call qword [fcn.1401509a0]
xor ebx, ebx
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rcx, rbx
jmp 0x14013ab86
Function at 0x14013b230
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1401d4770]
xor rax, rsp
mov qword [rsp + 0x40], rax
test r8d, r8d
mov rsi, rdx
mov rdx, rcx
mov edi, 0x80
cmovne edi, r8d
mov ecx, reloc.WS2_32.dll_socket
mov ebx, edi
lea r8, [rsp + 0x30]
shr ebx, 3
and edi, 7
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x14013b2da
lea r8, [rsp + 0x20]
mov rdx, rsi
lea ecx, [rax + 0x16]
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x14013b2da
cmp ebx, 0x10
ja 0x14013b2da
jne 0x14013b297
test edi, edi
jne 0x14013b2da
test ebx, ebx
je 0x14013b2b1
mov r8d, ebx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140145aa0
test eax, eax
jne 0x14013b2da
test edi, edi
je 0x14013b2d6
movzx ecx, byte [rsp + rbx + 0x30]
mov edx, 0xff
movzx r8d, byte [rsp + rbx + 0x20]
xor r8d, ecx
mov ecx, 8
sub ecx, edi
shl edx, cl
test edx, r8d
je 0x14013b2da
mov al, 1
jmp 0x14013b2dc
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140140c60
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x14013be60
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x48], 0
mov rbx, rcx
mov eax, dword [0x140463ba0]
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x14013bebc
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.14013ee20
test al, al
je 0x14013beb1
mov dword [0x140463ba0], 2
jmp 0x14013bf13
mov eax, 1
mov dword [0x140463ba0], eax
cmp eax, 2
je 0x14013bf13
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 0x14013bef2
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x14013bf13
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