joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140074530
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, r8
mov rdi, rdx
xor r13d, r13d
mov qword [rax - 0x48], r13
mov dword [rax + 0x20], r13d
mov rcx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x140074568
mov rcx, qword [r8]
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, eax
test eax, eax
je 0x1400745c5
mov ecx, ebp
call fcn.140134664
mov rbx, rax
mov rcx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x14007458c
mov rcx, qword [rsi]
mov r9, rbx
mov r8d, ebp
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoA
mov rcx, rbx
test eax, eax
je 0x1400745c0
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x30]
lea rdx, reloc.SHELL32.dll_PathGetShortPath
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x1400745dc
mov rcx, rbx
call fcn.14013466c
mov qword [rdi], r13
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], r13b
jmp 0x140074693
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + 8]
mov ebp, eax
shr ebp, 0x10
movzx r15d, ax
mov eax, dword [rcx + 0xc]
mov r14d, eax
shr r14d, 0x10
movzx r12d, ax
mov rcx, rbx
call fcn.14013466c
call fcn.14000bfcc
mov rcx, rax
test rax, rax
je 0x1400746b6
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r14d
mov r9d, r15d
mov r8d, ebp
lea rdx, [0x14026cb00]
lea rcx, [rsp + 0x38]
call fcn.140008c60
mov qword [rdi], r13
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov rbx, qword [rsp + 0x38]
mov rbp, 0xffffffffffffffff
mov r8, rbp
inc r8
cmp byte [rbx + r8], 0
jne 0x140074665
mov rdx, rbx
mov rcx, rdi
call fcn.1400157e0
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], ebp
sub ebp, 1
jg 0x140074693
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, rsi
call fcn.14000d278
mov rax, rdi
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.14000c3ac
int3
Function at 0x140074ef0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1a0
xorps xmm0, xmm0
lea rcx, [rsp + 0x40]
xor eax, eax
movups xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x80], ax
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call fcn.14002dd80
call fcn.1400c0c30
lea rdx, str.https:__43d1905f01264dc5b0b45491445ad960_o4505046342893568.ingest.sentry.io_4505046415048704
mov rcx, rax
mov rbx, rax
call fcn.1400c0fc0
lea r8, [0x1404163c0]
lea rdx, str.product2247_service__s
lea rcx, [rsp + 0x20]
call fcn.140063f20
lea rdx, [rsp + 0x90]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x140074f93
lea rdx, str..sentry
lea rcx, [rsp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rdx, [rsp + 0x90]
mov rcx, rbx
call fcn.1400c0ec0
cmp qword [rsp + 0x38], 0x10
lea rdx, [rsp + 0x20]
mov rcx, rbx
cmovae rdx, qword [rsp + 0x20]
call fcn.1400c11b0
mov rcx, rbx
call fcn.1400c2330
mov edi, eax
call fcn.1400bfb90
lea rcx, [rsp + 0x40]
mov rbx, rax
call fcn.1400bff20
mov r8, rax
lea rdx, [0x140416600]
mov rcx, rbx
call fcn.1400c0380
lea rcx, [0x140416608]
call fcn.1400bff20
mov r8, rax
lea rdx, str.ip_address
mov rcx, rbx
call fcn.1400c0380
mov rcx, rbx
call fcn.1400c2b60
mov rdx, qword [rsp + 0x38]
test edi, edi
sete bl
cmp rdx, 0x10
jb 0x14007503e
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140075039
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140075052
call fcn.140133e68
movzx eax, bl
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x1a0
pop rdi
ret
call fcn.1401462a8
int3
Function at 0x140075e90
Capabilities:
Query service configuration

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x20
mov rdi, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdx, qword [rdi]
mov rbp, rax
test rax, rax
je 0x140075eda
mov r8d, reloc.WS2_32.dll_setsockopt
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r14, rax
test rax, rax
jne 0x140075f01
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rdi]
sub rdx, 0x18
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140075ef6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor al, al
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
mov qword [rsp + 0x40], rbx
mov edx, 0x1000
mov ecx, 0x40
mov qword [rsp + 0x50], rsi
xor bl, bl
mov dword [rsp + 0x48], 0
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140075f60
lea r9, [rsp + 0x48]
mov r8d, 0x1000
mov rdx, rax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x140075f57
cmp dword [rsi + 4], 2
mov eax, 1
movzx ebx, bl
cmove ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rdi]
mov eax, 0xffffffff
sub rdx, 0x18
lock xadd dword [rdx + 0x10], eax
mov rsi, qword [rsp + 0x50]
sub eax, 1
jg 0x140075f97
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
movzx eax, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140075fb0
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rdi, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdx, qword [rdi]
mov rsi, rax
test rax, rax
je 0x140076000
mov r8d, 2
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
jne 0x140076031
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rdi]
sub rdx, 0x18
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14007601c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor al, al
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
xor eax, eax
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x50], rax
mov edx, 0xffffffff
mov qword [rsp + 0x48], rax
mov r9d, edx
mov qword [rsp + 0x40], rax
mov rcx, rbp
mov qword [rsp + 0x38], rax
lea r8d, [rax + 2]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rdi]
cmp ebx, 1
mov eax, 0xffffffff
sete bl
sub rdx, 0x18
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400760aa
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov rbp, qword [rsp + 0x78]
movzx eax, bl
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x1400765f0
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x50], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
mov edx, reloc.WLDAP32.dll_Ordinal_32
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140076681
lea r8, [rsp + 0x58]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140076676
mov rax, qword [rsp + 0x58]
lea r8, [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
mov r9d, reloc.WS2_32.dll_recv
mov qword [rsp + 0x28], 0
xor edx, edx
mov qword [rsp + 0x34], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x48
ret
Function at 0x140077db0
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140077eb1
mov ecx, dword [0x14070a508]
mov qword [rsp + 0x70], rsi
xor esi, esi
test ecx, ecx
jne 0x140077dfd
call fcn.14002e1d0
test al, al
mov ecx, esi
setne cl
inc ecx
mov dword [0x14070a508], ecx
cmp ecx, 1
lea rcx, [rsp + 0x40]
setne sil
lea edx, [rsi + 0x14b]
call fcn.1400177a0
cmp qword [rsp + 0x58], 8
lea rdx, [rsp + 0x40]
mov r8d, VarUI2FromI4
mov rcx, rdi
cmovae rdx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x140077e65
lea r8, [rsp + 0x20]
mov edx, 0x82
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov ecx, 1
movzx ebx, bl
test eax, eax
cmovne ebx, ecx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140077eb1
mov rcx, qword [rsp + 0x40]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140077eac
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140077ebf
call fcn.140133e68
movzx eax, bl
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
call fcn.1401462a8
int3
Function at 0x140078b20
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x100
cmp byte [rcx + 0x12], 0
jne 0x140078c58
xorps xmm1, xmm1
mov byte [rcx + 0x12], 1
movups xmmword [rsp + 0x70], xmm1
xor eax, eax
xor ebx, ebx
movups xmmword [rsp + 0x80], xmm1
mov qword [r11 - 0x38], rax
mov edx, VarDecFromUI1
movups xmmword [r11 - 0x68], xmm1
lea rcx, [r11 - 0x28]
mov qword [rsp + 0x60], rax
movups xmmword [r11 - 0x58], xmm1
movups xmmword [r11 - 0x78], xmm1
movups xmmword [r11 - 0x48], xmm1
mov dword [rsp + 0x70], WSAGetLastError
xorps xmm0, xmm0
mov dword [r11 - 0x5c], 1
mov word [r11 - 0x58], bx
movups xmmword [rsp + 0x50], xmm0
call fcn.1400177a0
cmp qword [rax + 0x18], 8
jb 0x140078b9f
mov rax, qword [rax]
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rcx
xor r8d, r8d
lea rcx, [rsp + 0x70]
mov rdx, rax
mov qword [rsp + 0x40], rcx
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rdx, qword [rsp + 0xf8]
test eax, eax
sete bl
cmp rdx, 8
jb 0x140078c23
mov rcx, qword [rsp + 0xe0]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140078c1e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140078c63
call fcn.140133e68
test bl, bl
jne 0x140078c58
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x100
pop rbx
ret
xor al, al
add rsp, 0x100
pop rbx
ret
call fcn.1401462a8
int3

Function at 0x140079f00
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1406fe698]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140079f61
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x140079f5b
shr ax, 8
cmp al, 2
jne 0x140079f5b
call fcn.140082b30
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140134a90
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140134a90
add rsp, 0x1d8
ret
Function at 0x14008b2c0
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]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x14008b2fb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14008b400
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
movsxd rax, edx
mov rdi, r9
mov rsi, r8
mov r14, rcx
mov rbx, qword [rcx + rax*8 + 0x238]
call fcn.14008b860
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
movsxd rdi, eax
mov dword [rsi], 0
cmp rdi, 0xffffffffffffffff
jne 0x14008b498
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x14008b46d
mov dword [rsi], 0x51
xor eax, eax
jmp 0x14008b49b
mov edx, ebx
mov rcx, r14
call fcn.14009cca0
mov rcx, qword [r14]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.14008afd0
mov rcx, qword [r14]
mov dword [rcx + 0x4c7c], ebx
mov dword [rsi], gethostname
mov rax, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
movsxd rcx, edx
mov rax, qword [rsi + 0x3e8]
lea rbx, [rcx + 0x14]
mov rbp, qword [rsi + rcx*8 + 0x238]
shl rbx, 5
add rbx, rsi
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x14008b93c
lea rax, [0x14008b340]
cmp qword [rsi + rcx*8 + 0x260], rax
jne 0x14008b93c
cmp qword [rbx], 0
je 0x14008b8c6
test rdi, rdi
je 0x14008b93c
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rbp
call fcn.14008a960
cmp eax, 0xffffffff
je 0x14008b93c
test al, 1
je 0x14008b93c
cmp qword [rbx], 0
jne 0x14008b91b
mov rax, qword [rsi]
mov ecx, dword [rax + 0x6f0]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [fcn.14017026c]
mov rdi, qword [rbx + 8]
xor ecx, ecx
mov qword [rbx], rax
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rcx
test rax, rax
jne 0x14008b91b
mov qword [rbx + 8], rcx
jmp 0x14008b93c
mov rdx, qword [rbx]
xor r9d, r9d
add rdx, qword [rbx + 0x10]
mov r8d, edi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x14008b93c
add qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14008b960
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x2b8]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x14008b9a3
mov rax, qword [rcx + 0x208]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
ja 0x14008b9e6
mov r9, qword [rbx + 0x200]
movsxd rcx, edx
lea rdx, [0x1404180e0]
lea rcx, [rcx + rcx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call fcn.1401771f4
mov r9, qword [rbx + 0x200]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call fcn.1401771f4
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x2c0], 0
je 0x14008bb0d
call fcn.1400836e0
test eax, eax
jne 0x14008bb38
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x238]
cmp rcx, 0xffffffffffffffff
je 0x14008bb06
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x14008bb38
add rsp, 0x28
ret
mov al, 1
add rsp, 0x28
ret

Function at 0x14008c450
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx]
lea r9, [rsp + 0x40]
mov rax, rdx
mov dword [rsp + 0x40], 1
mov edx, 6
mov dword [rsp + 0x20], 4
mov rdi, rcx
mov rcx, rax
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14008c4bb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
call fcn.14009cca0
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
call fcn.14008b0d0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.14008b0d0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14008c5f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x140
mov rax, qword [0x1406fe698]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xbc], 2
mov rbx, rdx
mov rbp, qword [rcx]
mov rsi, rcx
je 0x14008c7d9
cmp byte [rcx + 0x3a2], 0
mov qword [rsp + 0x170], rdi
jne 0x14008c7c9
cmp byte [rcx + 0x3be], 0
jne 0x14008c7c9
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0xb0]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x14008c693
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rsi
mov ebx, eax
call fcn.14009cca0
mov r9, rax
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rbp
call fcn.14008afd0
jmp 0x14008c7d1
xor edx, edx
mov dword [rsp + 0x20], 0x80
mov r8d, 0x80
lea rcx, [rsp + 0x30]
call fcn.140137f50
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14008c6f0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rsi
mov ebx, eax
call fcn.14009cca0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rbp
call fcn.14008afd0
jmp 0x14008c7d1
lea rbx, [rsi + 0x186]
mov rdx, rbx
lea r8, [rsi + 0x1b4]
lea rcx, [rsp + 0xb0]
call fcn.14008cd20
test al, al
jne 0x14008c746
call fcn.140146434
mov rbx, rax
call fcn.140146434
mov edx, dword [rbx]
mov rcx, rsi
mov rdi, rax
call fcn.14009cca0
mov r8d, dword [rdi]
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rbp
call fcn.14008afd0
jmp 0x14008c7d1
movups xmm0, xmmword [rbx]
mov eax, dword [rbx + 0x28]
lea r8, [rsi + 0x1e8]
movups xmm1, xmmword [rbx + 0x10]
lea rdx, [rsi + reloc.OLEAUT32.dll_VarUI8FromDec]
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.14008cd20
test al, al
jne 0x14008c7c9
call fcn.140146434
mov rbx, rax
call fcn.140146434
mov edx, dword [rbx]
mov rcx, rsi
mov rdi, rax
call fcn.14009cca0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rbp
call fcn.14008afd0
jmp 0x14008c7d1
mov rcx, rsi
call fcn.14008c1c0
mov rdi, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140134a90
add rsp, 0x140
pop rsi
pop rbp
pop rbx
ret
Function at 0x14008d080
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1406fe698]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov dword [rsp + 0x20], 4
mov eax, esi
lea r9, [rsp + 0x50]
cmp byte [rcx + 0x994], al
mov rdi, rdx
mov rbx, rcx
mov edx, 0xffff
setne al
lea r8d, [rsi + 8]
mov rcx, rdi
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14008d0ef
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov rcx, rbx
call fcn.14008b0d0
jmp 0x14008d17e
mov ecx, dword [rbx + 0x998]
mov dword [rsp + 0x58], 1
call fcn.14008d3b0
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0x99c]
call fcn.14008d3b0
imul ecx, eax, 0x3e8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov qword [rsp + 0x30], rax
mov edx, 0x98000004
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x14008d17e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, edi
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov r9d, eax
mov rcx, rbx
call fcn.14008b0d0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140134a90
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14008d340
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
mov rbx, rdx
mov rcx, r8
call fcn.14008d490
mov r8d, eax
mov rdx, rbx
mov ecx, edi
call fcn.14018f0f0
mov rbx, qword [rsp + 0x30]
cdqe
add rsp, 0x20
pop rdi
ret
Function at 0x14009c010
Capabilities:
Resolve dns

Disassembly:
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
mov esi, r13d
lea r9, [rsp + 0x68]
mov r15d, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x14009c1ae
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x14009c193
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x14009c06d
lea ebp, [rax + 0xe]
jmp 0x14009c079
cmp eax, 0x17
jne 0x14009c121
lea ebp, [rax + 5]
cmp qword [rdi + 0x20], r13
je 0x14009c121
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x14009c121
cmp rax, rbp
jb 0x14009c121
mov ecx, Ordinal_50
call qword [fcn.14017026c]
mov rbx, rax
test rax, rax
je 0x14009c15c
mov eax, dword [rdi]
mov rcx, rbp
mov dword [rbx], eax
mov eax, dword [rdi + 4]
mov dword [rbx + 4], eax
mov eax, dword [rdi + 8]
mov dword [rbx + 8], eax
mov eax, dword [rdi + 0xc]
mov dword [rbx + 0xc], eax
mov dword [rbx + 0x10], ebp
mov qword [rbx + 0x20], r13
mov qword [rbx + 0x18], r13
mov qword [rbx + 0x28], r13
call qword [fcn.14017026c]
mov qword [rbx + 0x20], rax
test rax, rax
je 0x14009c14b
mov rdx, qword [rdi + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.1401378a0
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14009c10e
call qword [case.0x1400813f6.0]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x14009c130
test rsi, rsi
cmove rsi, rbx
test r15, r15
je 0x14009c11e
mov qword [r15 + 0x28], rbx
mov r15, rbx
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x14009c060
jmp 0x14009c162
mov rcx, qword [rbx + 0x20]
mov r14d, 8
call qword [fcn.140170264]
mov rcx, rbx
call qword [fcn.140170264]
jmp 0x14009c162
mov rcx, rbx
mov r14d, 8
call qword [fcn.140170264]
jmp 0x14009c162
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test rcx, rcx
je 0x14009c17c
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x14009c18e
mov rcx, rsi
call fcn.14009bfc0
mov rsi, r13
jmp 0x14009c1a2
test rsi, rsi
jne 0x14009c1a2
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r14d
mov qword [r12], rsi
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret