joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ca74
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14017a140]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rbx, rcx
mov qword [rbp - 0x31], rcx
xor esi, esi
mov qword [rbp + 0xf], rsi
mov qword [rbp + 0x17], rsi
lea r14d, [rsi + 7]
mov qword [rbp + 0x17], r14
mov qword [rbp + 0xf], rsi
mov word [rbp - 1], si
cmp qword [rcx + 0x10], rsi
jne 0x14000cb66
mov qword [rbp - 0x11], rsi
mov qword [rbp - 9], rsi
mov qword [rbp - 9], r14
mov qword [rbp - 0x11], rsi
mov word [rbp - 0x21], si
lea rdx, [rbp - 1]
lea rcx, str.ExtMonitor
call fcn.14000eb48
lea r8, str.Lock
lea rdx, [rbp - 1]
lea rcx, [rbp + 0x1f]
call fcn.14000db1c
mov rdi, rax
lea rax, [rbp - 0x21]
cmp rax, rdi
je 0x14000cb2e
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x21]
call fcn.140003bb4
mov rdx, rdi
lea rcx, [rbp - 0x21]
call fcn.14000c4dc
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x1f]
call fcn.140003bb4
lea r8, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae r8, qword [rbp - 0x21]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 0x10], rax
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x21]
call fcn.140003bb4
mov edx, gethostbyname
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000cc6d
lea r8, str.MappedFile
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x21]
call fcn.14000db1c
nop
lea rax, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rax, qword [rbp - 0x21]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], reloc.WS2_32.dll_WSASetLastError
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 8], rax
test rax, rax
je 0x14000cc54
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, esi
cmp eax, 0xb7
setne dil
mov qword [rsp + 0x20], reloc.WS2_32.dll_WSASetLastError
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x14000cc54
test edi, edi
je 0x14000cc41
mov qword [rbp - 0x29], rax
mov dword [rax + 8], esi
lea rcx, vtable.NGLogging::CExtMonitorSettings.0
mov qword [rax], rcx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rsi
mov byte [rax + 0x20], sil
mov qword [rax + 0x40], r14
mov qword [rax + 0x38], rsi
mov word [rax + 0x28], si
mov qword [rax + 0x60], r14
mov qword [rax + 0x58], rsi
mov word [rax + 0x48], si
mov dword [rax + 0x68], esi
mov rax, qword [rbx + 0x18]
lea rcx, [rax + 8]
neg rax
sbb rdx, rdx
and rdx, rcx
inc dword [rdx]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x21]
call fcn.140003bb4
mov rbx, qword [rbx + 0x18]
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 1]
call fcn.140003bb4
mov rax, rbx
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400b9f80
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000e938
Capabilities:
Query or enumerate registry value

Disassembly:
test rcx, rcx
je 0x14000e988
mov r11, rsp
push rbx
sub rsp, 0x40
mov rbx, r8
test rbx, rbx
je 0x14000e983
lea rax, [r11 + 8]
mov dword [rsp + 0x50], 4
mov qword [r11 - 0x20], rax
lea r9, [r11 + 0x20]
lea rax, [r11 - 0x18]
xor r8d, r8d
mov qword [r11 - 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000e983
cmp dword [rsp + 0x68], 4
jne 0x14000e983
mov eax, dword [rsp + 0x30]
mov dword [rbx], eax
add rsp, 0x40
pop rbx
ret

Function at 0x14000e98c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
lea rax, [r11 + 0x20]
mov r14, r8
xor ebx, ebx
mov qword [r11 - 0x30], rax
lea r9, [r11 - 0x28]
mov qword [r11 - 0x38], rbx
xor r8d, r8d
mov dword [rsp + 0x78], ebx
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000ea45
cmp dword [rsp + 0x30], 1
jne 0x14000ea45
mov ecx, dword [rsp + 0x78]
lea eax, [rbx + 2]
shr ecx, 1
inc ecx
mul rcx
lea rcx, [rbx - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.1400b9fe0
mov rdi, rax
test rax, rax
je 0x14000ea45
lea rax, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov rdx, rsi
mov qword [rsp + 0x20], rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000ea3d
cmp word [rdi], bx
je 0x14000ea2f
mov rcx, rdi
call fcn.1400c2d80
mov rbx, rax
mov r8, rbx
mov rdx, rdi
mov rcx, r14
call fcn.140003a2c
mov rcx, rdi
call fcn.1400b9b24
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140012d10
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r15, r9
mov esi, ebx
mov edi, ebx
mov r12, r8
mov r13, rdx
mov r14, rcx
add esi, 0x200
test rdi, rdi
je 0x140012d51
mov rcx, rdi
call fcn.1400b9b24
mov ecx, esi
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400b9fe0
mov rdi, rax
test rax, rax
je 0x140012ddc
mov word [rax], bx
lea rax, [r14 + 8]
cmp qword [rax + 0x18], 8
jb 0x140012d87
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
lea r8, [0x140114e10]
mov r9, rdi
mov dword [rsp + 0x20], esi
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebp, eax
lea eax, [rsi - 1]
cmp ebp, eax
jae 0x140012d3e
cmp word [rdi], bx
jne 0x140012db9
mov rax, rbx
jmp 0x140012dc1
mov rcx, rdi
call fcn.1400c2d80
mov r8, rax
mov rdx, rdi
mov rcx, r15
call fcn.140003a2c
mov rcx, rdi
call fcn.1400b9b24
test ebp, ebp
setne al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140012dfc
Capabilities:
Read .ini file

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x14017a140]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r12, r9
mov r14, r8
mov qword [rbp - 0x40], r8
mov r13, rdx
mov r15, rcx
xor ebx, ebx
mov esi, ebx
mov edi, ebx
jmp 0x140012e47
mov r14, qword [rbp - 0x40]
add esi, 0x200
test rdi, rdi
je 0x140012e5a
mov rcx, rdi
call fcn.1400b9b24
mov ecx, esi
call fcn.1400b9fe0
mov rdi, rax
test rax, rax
je 0x140012f48
mov byte [rax], bl
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp - 0x20], rbx
mov byte [rbp - 0x30], bl
lea rdx, [r15 + 8]
cmp qword [rdx + 0x18], 8
jb 0x140012e96
mov rcx, qword [rdx]
jmp 0x140012e99
mov rcx, rdx
mov rax, qword [rdx + 0x10]
lea r8, [rcx + rax*2]
cmp qword [rdx + 0x18], 8
jb 0x140012eab
mov rdx, qword [rdx]
lea rcx, [rbp - 0x30]
call fcn.140013594
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rax, qword [rbp - 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, rdi
lea r8, [0x140115d75]
mov rdx, r14
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov r14d, eax
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x140012f00
inc rdx
mov r8d, 1
mov rcx, qword [rbp - 0x30]
call fcn.140002e78
mov qword [rbp - 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp - 0x20], rbx
mov byte [rbp - 0x30], bl
lea eax, [rsi - 1]
cmp r14d, eax
jae 0x140012e43
cmp byte [rdi], bl
jne 0x140012f24
mov rax, rbx
jmp 0x140012f2c
mov rcx, rdi
call fcn.1400c2f80
mov r8, rax
mov rdx, rdi
mov rcx, r12
call fcn.14000acb4
mov rcx, rdi
call fcn.1400b9b24
test r14d, r14d
setne al
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400b9f80
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001434c
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x120
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14017a140]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rdi, rdx
mov rbx, rcx
mov byte [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x17e
lea r9, str.NGUtils::CPathUtils::CreatePathHierarchy
lea r8, [0x140182218]
mov rdx, qword [0x140182210]
lea rcx, [rsp + 0x70]
call fcn.140003374
nop
cmp qword [rbx + 0x10], 0
jbe 0x14001446e
mov rcx, rbx
call fcn.1400144a8
test al, al
jne 0x140014476
cmp qword [rbx + 0x18], 8
jb 0x1400143d5
mov rax, qword [rbx]
jmp 0x1400143d8
mov rax, rbx
mov qword [rsp + 0x20], rax
lea r9, str.wstrPathToCreate__s
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x184
lea rcx, [rsp + 0x70]
call fcn.1400037a4
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140013e08
nop
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.14001434c
mov dword [rsp + 0x78], eax
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x14001442b
cmp eax, 0x8004ffff
jne 0x14001445d
cmp qword [rbx + 0x18], 8
jb 0x140014435
mov rbx, qword [rbx]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14001445d
call qword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
and eax, 0x80004005
mov dword [rsp + 0x78], eax
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x48]
call fcn.140003bb4
jmp 0x140014476
mov dword [rsp + 0x78], 0x8004ffff
mov ebx, dword [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.1400034bc
mov eax, ebx
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1400b9f80
mov rbx, qword [rsp + 0x140]
add rsp, 0x120
pop rdi
ret
Function at 0x14001af54
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x100
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x14017a140]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rbx, rdx
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_getservbyport
call fcn.1400b9fa4
mov rdi, rax
mov qword [rsp + 0x40], rax
lea rax, vtable.NGDeviceManager::IDeviceDiscoveryCallback.0
mov qword [rdi], rax
lea rax, vtable.NGDeviceManager::CSearchDevice.0
mov qword [rdi], rax
mov qword [rdi + 8], rbx
or qword [rdi + 0x10], 0xffffffffffffffff
lea rax, vtable.NGDeviceManager::CSearchDeviceByMAC.0
mov qword [rdi], rax
lea rbx, [rdi + 0x18]
mov rcx, rbx
call fcn.140003ba4
mov qword [rbx + 0x18], 7
xor ebp, ebp
mov qword [rbx + 0x10], rbp
cmp qword [rbx + 0x18], 8
jb 0x14001afeb
mov rax, qword [rbx]
jmp 0x14001afee
mov rax, rbx
mov word [rax], bp
cmp word [rsi], bp
jne 0x14001affb
mov rax, rbp
jmp 0x14001b003
mov rcx, rsi
call fcn.1400c2d80
mov r8, rax
mov rdx, rsi
mov rcx, rbx
call fcn.140003a2c
nop
mov byte [rsp + 0x30], bpl
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 0x286
lea r9, str.NGDeviceManager::CSearchDevice::FindDevice
lea r8, [0x140182618]
mov rdx, qword [0x140182278]
lea rcx, [rsp + 0x50]
call fcn.140003374
nop
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x14001b073
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.CreateEvent_failed__err_d
mov r8d, 0x28b
jmp 0x14001b0ac
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
mov r9, rdi
lea r8, [0x14001ac30]
xor edx, edx
xor ecx, ecx
call fcn.1400c5d28
test rax, rax
jne 0x14001b0c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str._beginthreadex_Failed__err_d
mov r8d, 0x292
mov edx, 0x80
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x50]
call fcn.1400037a4
jmp 0x14001b0f1
or ebx, 0xffffffff
mov edx, ebx
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
jne 0x14001b0f1
lea r9, str.WaitForSingleObject_failed_
mov edx, 0x80
mov r8d, 0x299
lea rcx, [rsp + 0x50]
call fcn.1400037a4
nop
lea rcx, [rsp + 0x50]
call fcn.1400034bc
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1400b9f80
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140037fa8
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x870
mov rax, qword [0x14017a140]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov rbp, qword [rsp + 0x8c8]
mov rsi, rcx
mov dword [rsp + 0x24], r8d
mov edi, 0x401
mov dword [rsp + 0x28], edx
xor ebx, ebx
mov qword [rsp + 0x38], rcx
mov r8d, edi
xor edx, edx
mov word [rsp + 0x20], r9w
lea rcx, [rsp + 0x40]
mov r13d, ebx
call fcn.1400bbca0
mov r8d, edi
lea rcx, [rsp + 0x450]
xor edx, edx
call fcn.1400bbca0
lea r15, [rsp + 0x40]
mov r8, rsi
lea r9d, [rdi - 1]
mov qword [rsp + 0x30], r15
mov edx, edi
lea rcx, [rsp + 0x40]
lea r14, [rsp + 0x450]
call fcn.1400c5e08
or rdi, 0xffffffffffffffff
mov rcx, rsi
mov qword [rbp], rbx
mov r12, rbp
mov byte [r14], bl
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rsi, rax
test rax, rax
je 0x140038184
cmp word [rax + 0x10], 2
jne 0x1400380b3
cmp word [rax + 0x12], 4
jne 0x1400380b3
mov r15, qword [rax + 0x18]
mov rax, qword [r15]
test rax, rax
je 0x1400380ae
mov r9d, dword [rax]
movzx r8d, word [rsp + 0x20]
mov edx, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x28]
call fcn.140037f08
mov qword [r12], rax
test rax, rax
je 0x140038120
lea r12, [rax + 0x28]
add r15, 8
jmp 0x14003807d
mov r15, qword [rsp + 0x30]
mov r8, qword [rsi]
mov r9d, 0x400
mov rcx, r14
lea edx, [r9 + 1]
call fcn.1400c5e08
cmp qword [rbp], rbx
jne 0x14003812e
mov rax, rdi
inc rax
cmp byte [r14 + rax], bl
jne 0x1400380d1
test rax, rax
je 0x140038127
mov r8, r14
mov rax, r15
sub r8, r15
movzx ecx, byte [rax]
movzx edx, byte [rax + r8]
sub ecx, edx
jne 0x1400380fb
inc rax
test edx, edx
jne 0x1400380e8
test ecx, ecx
je 0x140038127
inc r13d
cmp r13d, 0x10
je 0x140038127
mov rsi, qword [rsp + 0x38]
mov rax, r15
mov r15, r14
mov qword [rsp + 0x30], r14
mov r14, rax
jmp 0x14003804c
mov ebx, 8
jmp 0x1400381a1
mov ebx, 0x2afb
jmp 0x1400381a1
cmp dword [rsp + 0x8c0], ebx
je 0x1400381a1
inc rdi
cmp byte [r14 + rdi], bl
jne 0x140038137
lea rdx, [rdi + 1]
mov ecx, 1
call fcn.1400bef44
mov rsi, rax
test rax, rax
jne 0x14003815b
mov rsi, rbx
jmp 0x14003816a
mov r8, r14
lea rdx, [rdi + 1]
mov rcx, rax
call fcn.1400d295c
mov rax, qword [rbp]
mov qword [rax + 0x18], rsi
mov rax, qword [rbp]
cmp qword [rax + 0x18], rbx
mov eax, 8
cmove ebx, eax
jmp 0x1400381a1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x14003819f
sub ecx, 1
je 0x1400381d4
sub ecx, 1
je 0x140038127
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.1400b9f80
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ebx, 0x2afa
jmp 0x1400381a1
Function at 0x14003885c
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x280
mov rax, qword [0x14017a140]
xor rax, rsp
mov qword [rbp + 0x170], rax
lea rax, [0x14003822c]
xor ebx, ebx
cmp dword [0x140184808], ebx
lea rsi, [0x140123f70]
mov qword [rsp + 0x28], rax
movzx r12d, cx
lea rax, str.getnameinfo
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x30], rax
lea rax, [0x140038620]
mov qword [rsp + 0x38], rax
lea rax, [0x140123f90]
mov qword [rsp + 0x40], rax
lea rax, [0x1400381dc]
mov qword [rsp + 0x48], rax
je 0x1400388f5
lea r14, [0x14017b7a0]
jmp 0x140038a28
mov edx, 0x104
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r14, [0x14017b7a0]
test eax, eax
je 0x140038a1e
mov r15d, 0x10c
lea r8, [rbp + 0x60]
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.1400d295c
lea r8, str.ws2_32
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.1400d2aac
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x140038973
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14003896e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, rbx
test rdi, rdi
jne 0x1400389cd
lea r8, [rbp + 0x60]
mov rdx, r15
lea rcx, [rsp + 0x50]
call fcn.1400d295c
lea r8, str.wship6
mov rdx, r15
lea rcx, [rsp + 0x50]
call fcn.1400d2aac
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x140038a1e
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400389c8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, rbx
test rdi, rdi
je 0x140038a1e
mov r15d, ebx
lea rsi, [rsp + 0x28]
mov rdx, qword [rsi - 8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi], rax
test rax, rax
je 0x1400389f9
inc r15d
add rsi, 0x10
cmp r15d, 3
jl 0x1400389d5
jmp 0x140038a05
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, rbx
test rdi, rdi
je 0x140038a1e
mov rax, qword [rsp + rbx + 0x28]
mov qword [rbx + r14 + 8], rax
add rbx, 0x10
cmp rbx, 0x30
jl 0x140038a0a
mov dword [0x140184808], 1
movzx eax, r12w
add rax, rax
mov rax, qword [r14 + rax*8 + 8]
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400b9f80
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140038a64
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x290
mov rax, qword [0x14017a140]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rdx, qword [0x1401828c8]
lea r9, str.NGDiscovery::InitDiscoveryLib
xor ebx, ebx
lea r8, [0x140182890]
mov byte [rsp + 0x30], bl
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x20
call fcn.140003374
mov eax, dword [0x140181e08]
test eax, eax
jne 0x140038b11
xor edx, edx
lea rcx, [rsp + 0xe0]
mov r8d, 0x198
call fcn.1400bbca0
mov ecx, 0x202
lea rdx, [rsp + 0xe0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140038b0b
lea r9, str.WSAStartup_failed__err_d
mov dword [rsp + 0x20], eax
mov edx, 0x80
lea r8d, [rbx + 0x2a]
lea rcx, [rsp + 0x40]
call fcn.1400037a4
mov ebx, 2
jmp 0x140038b19
mov eax, dword [0x140181e08]
inc eax
mov dword [0x140181e08], eax
lea rcx, [rsp + 0x40]
call fcn.1400034bc
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400b9f80
add rsp, 0x290
pop rbx
ret
Function at 0x14003e138
Capabilities:
Get local ipv4 addresses

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x110
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x14017a140]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor ebx, ebx
mov byte [rsp + 0x30], bl
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], SafeArrayAllocDescriptorEx
lea r9, str.NGDiscovery::CAdapterAddresses::Enum
lea r8, [0x140182c90]
mov rdx, qword [0x1401828c8]
lea rcx, [rsp + 0x60]
call fcn.140003374
nop
mov rcx, rdi
call fcn.14003e294
mov dword [rsp + 0x40], ebx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 6]
xor ecx, ecx
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
cmp eax, 0x6f
je 0x14003e1ec
test eax, eax
je 0x14003e1ec
mov dword [rsp + 0x20], eax
lea r9, str.GetAdaptersAddresses_failed___ld_._n
mov edx, 0x80
lea r8d, [rbx + 0x2e]
lea rcx, [rsp + 0x60]
call fcn.1400037a4
jmp 0x14003e24a
cmp dword [rsp + 0x40], ebx
jne 0x14003e1f6
mov bl, 1
jmp 0x14003e24a
mov ecx, dword [rsp + 0x40]
call fcn.1400b9fe0
mov qword [rdi + 8], rax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9, rax
xor r8d, r8d
lea edx, [r8 + 6]
xor ecx, ecx
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
test eax, eax
je 0x14003e258
mov dword [rsp + 0x20], eax
lea r9, str.GetAdaptersAddresses_failed___ld_._n
mov edx, 0x80
lea r8d, [rdx - 0x38]
lea rcx, [rsp + 0x60]
call fcn.1400037a4
mov rcx, rdi
call fcn.14003e294
nop
lea rcx, [rsp + 0x60]
call fcn.1400034bc
mov al, bl
jmp 0x14003e272
lea rcx, [rsp + 0x60]
call fcn.1400034bc
mov al, 1
jmp 0x14003e272
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1400b9f80
mov rbx, qword [rsp + 0x128]
add rsp, 0x110
pop rdi
ret
Function at 0x14003e6cc
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x48]
sub rsp, 0x120
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x14017a140]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rsi, r8
mov r14, rdx
mov r15, rcx
xor ebx, ebx
mov byte [rsp + 0x30], bl
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0xb0
lea r9, str.NGDiscovery::CWSDSession::AddMembership
lea r8, [0x140182cb8]
mov rdx, qword [0x1401828c8]
lea rcx, [rsp + 0x70]
call fcn.140003374
nop
lea edx, [rbx + 0x3a]
mov rcx, r14
call fcn.1400bdbe0
test rax, rax
je 0x14003e80e
mov qword [rsp + 0x40], rbx
mov rax, qword [0x140184818]
test rax, rax
jne 0x14003e76a
xor ecx, ecx
call fcn.14003885c
mov qword [0x140184818], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call rax
mov ecx, eax
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x14003e7c2
cmp qword [rdi + 0x10], 0x1c
jne 0x14003e7a2
mov rax, qword [rdi + 0x20]
movups xmm0, xmmword [rax + 8]
movdqu xmmword [rsp + 0x50], xmm0
jmp 0x14003e7c2
mov rax, qword [0x140184810]
test rax, rax
jne 0x14003e7bd
lea ecx, [rax + 2]
call fcn.14003885c
mov qword [0x140184810], rax
mov rcx, rdi
call rax
mov rdx, r14
call fcn.14003fc54
mov dword [rsp + 0x60], eax
movsxd rcx, dword [r15 + 0x60a4]
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayLock
lea r9, [rsp + 0x50]
mov edx, 0x29
lea r8d, [rdx - 0x1d]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14003e879
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, str.setsockopt_IPV6_ADD_MEMBERSHIP___s__failed__err_d
mov r8d, reloc.OLEAUT32.dll_VarDecFix
jmp 0x14003e85f
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x40], eax
mov rcx, r14
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x44], eax
movsxd rcx, dword [r15 + 0x60a4]
mov dword [rsp + 0x20], 8
lea r9, [rsp + 0x40]
xor edx, edx
lea r8d, [rdx + 0xc]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14003e879
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, str.setsockopt_IP_ADD_MEMBERSHIP___s__failed__err_d
mov r8d, 0xc5
mov dword [rsp + 0x28], eax
mov edx, 0x80
mov qword [rsp + 0x20], rsi
lea rcx, [rsp + 0x70]
call fcn.1400037a4
jmp 0x14003e87b
mov bl, 1
lea rcx, [rsp + 0x70]
call fcn.1400034bc
mov al, bl
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1400b9f80
mov rbx, qword [rsp + 0x168]
add rsp, 0x120
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret