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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x10], edx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov esi, dword [rsp + 0x80]
mov edi, edx
mov edx, 2
mov r14, rcx
movzx ecx, word [rcx]
mov r15, r8
xor ebx, ebx
lea r8d, [rdx + 0xf]
cmp esi, 1
sete bl
mov ebp, r9d
call qword [sym.imp.WS2_32.dll_socket]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x140027a77
mov qword [rsp + 0x60], r13
movsxd r13, ebx
test esi, esi
je 0x140027a69
mov ebx, dword [rsp + 0x88]
nop word [rax + rax]
xor r9d, r9d
mov r8d, ebp
mov rdx, r15
mov rcx, r12
mov dword [rsp + 0x28], edi
dec esi
mov qword [rsp + 0x20], r14
call qword [sym.imp.WS2_32.dll_sendto]
mov edi, eax
cmp eax, ebp
je 0x140027a0d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.SendWakeupPacket_error:_sent__d_bytes:__d_n
mov r8d, edi
mov r9d, eax
xor ecx, ecx
call fcn.140025be0
test r13, r13
je 0x140027a51
mov eax, dword [rsp + 0x68]
xor r9d, r9d
mov r8d, ebp
mov dword [rsp + 0x28], eax
mov rdx, r15
mov rcx, r12
mov qword [rsp + 0x20], r14
call qword [sym.imp.WS2_32.dll_sendto]
mov edi, eax
cmp eax, ebp
je 0x140027a51
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.SendWakeupPacket_error:_sent__d_bytes:__d_n
mov r8d, edi
mov r9d, eax
xor ecx, ecx
call fcn.140025be0
test ebx, ebx
je 0x140027a5d
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [rsp + 0x68]
test esi, esi
jne 0x1400279d0
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
mov r13, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140027ae0
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14006a110]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, r8
mov rdi, rcx
mov dword [rsp + 0x24], 1
test edx, edx
jne 0x140027c83
lea ecx, [rdx + 0x38]
mov qword [rsp + 0x50], rbx
call fcn.140044568
mov rbx, rax
test rax, rax
je 0x140027c59
xor eax, eax
xor ecx, ecx
mov qword [rbx], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rax
mov qword [rsp + 0x28], rax
mov qword [rbx + 0x30], rdi
mov edi, 2
mov dword [rbx], eax
mov word [rsp + 0x28], di
mov qword [rsp + 0x30], rax
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x2c], eax
movzx eax, word [rsi]
lea edx, [rdi - 1]
xor r8d, r8d
mov ecx, edi
mov word [rsp + 0x2a], ax
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x140027ba2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x140027c38
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x140027c38
lea rdx, [rsp + 0x28]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x140027bce
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x140027c38
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x140027c38
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x140027bf9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x140027c38
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x140027c38
xor eax, eax
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, rdi
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140027c76
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x140027c38
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x140027c76
mov rcx, rdi
cmp rdi, 0xffffffffffffffff
je 0x140027c4f
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 8], 0xffffffffffffffff
mov rcx, rbx
call fcn.140044620
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400437e0
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
movzx eax, word [rsp + 0x2a]
mov word [rsi], ax
mov rax, rbx
jmp 0x140027c59
xor eax, eax
jmp 0x140027c5e
Function at 0x140027c90
Capabilities:
Connect socket

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14006a110]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp dword [rdx], 4
mov rbx, rcx
je 0x140027cd3
lea rdx, str.ERROR:_mDNSPlatformTCPConnect___attempt_to_connect_to_an_IPv6_address:_operation_not_supported
xor ecx, ecx
call fcn.140025be0
mov eax, 0xfffeffff
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400437e0
add rsp, 0x40
pop rbx
ret
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x68], rdi
mov qword [rcx + 0x18], rax
mov rax, qword [rsp + 0x80]
mov qword [rcx + 0x20], rax
mov rcx, qword [rcx + 8]
xor eax, eax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov eax, 2
mov word [rsp + 0x20], ax
mov eax, dword [rdx + 4]
mov word [rsp + 0x22], r8w
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
mov dword [rsp + 0x24], eax
call qword [sym.imp.WS2_32.dll_connect]
mov edi, eax
test eax, eax
je 0x140027d3f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140027d3f
mov eax, 0xfffeff04
jmp 0x140027d76
mov rcx, qword [rbx + 8]
xor eax, eax
test edi, edi
sete al
lea r8, [0x140025f60]
mov r9, rbx
mov edx, 0x31
mov dword [rbx + 0x10], eax
call fcn.14002b830
test eax, eax
jne 0x140027d76
cmp dword [rbx + 0x10], 0
mov eax, 0xfffeff05
mov ecx, 0xfffeff03
cmovne eax, ecx
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400437e0
add rsp, 0x40
pop rbx
ret
Function at 0x140027fe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r8, r8
je 0x140028170
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], rsi
push rbp
lea rbp, [r11 - 0x57]
sub rsp, 0xb0
mov rax, qword [0x14006a110]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor eax, eax
mov qword [r11 + 8], rdi
mov rsi, r8
mov rbx, rcx
mov byte [rbp - 0x41], 0
xor edi, edi
mov word [rbp - 0x40], ax
nop word [rax + rax]
movzx eax, word [rsi]
xor edx, edx
lea rcx, [rbp - 0x41]
lea r8d, [rdx + 0x10]
mov word [rbp - 0x41], ax
call fcn.1400440e0
inc rdi
add rsi, 3
mov byte [rbp + rdi - 0x3e], al
cmp rdi, 6
jl 0x140028030
xor edx, edx
lea rcx, [rbp - 0x31]
lea r8d, [rdx + 0x66]
call fcn.140043870
mov eax, dword [rbp - 0x3d]
or rdx, 0xffffffffffffffff
mov dword [rbp - 0x2b], eax
movzx eax, word [rbp - 0x39]
mov dword [rbp - 0x31], edx
mov word [rbp - 0x2d], dx
mov word [rbp - 0x27], ax
lea rdi, [rbp - 0x25]
lea rsi, [rbp - 0x2b]
mov ecx, 0x2d
rep movsw word [rdi], word [rsi]
mov ecx, 0x90
call fcn.140044568
mov rdi, rax
test rax, rax
je 0x140028148
mov qword [rax], rbx
xor eax, eax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov eax, 2
mov word [rdi + 8], ax
mov ecx, dword [0x140050774]
mov dword [rdi + 0xc], ecx
lea ecx, [rax + 7]
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, [0x140027a90]
mov r8, rdi
movaps xmm0, xmmword [rbp - 0x31]
movaps xmm1, xmmword [rbp - 0x21]
mov word [rdi + 0xa], ax
mov eax, dword [rbp + 0x2f]
xor edx, edx
movups xmmword [rdi + 0x1c], xmm0
movups xmmword [rdi + 0x2c], xmm1
movaps xmm0, xmmword [rbp - 0x11]
movaps xmm1, xmmword [rbp - 1]
movups xmmword [rdi + 0x3c], xmm0
movups xmmword [rdi + 0x4c], xmm1
mov dword [rdi + 0x18], reloc.WS2_32.dll_recv
mov dword [rdi + 0x84], WSAGetLastError
mov dword [rdi + 0x88], setsockopt
movaps xmm0, xmmword [rbp + 0xf]
movaps xmm1, xmmword [rbp + 0x1f]
movups xmmword [rdi + 0x5c], xmm0
movups xmmword [rdi + 0x6c], xmm1
mov dword [rdi + 0x7c], eax
movzx eax, word [rbp + 0x33]
mov dword [rdi + 0x8c], 0x64
mov word [rdi + 0x80], ax
call fcn.1400452fc
mov rdi, qword [rsp + 0xc0]
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400437e0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
repz ret
Function at 0x140027fe9
Capabilities:
Create thread
Resolve function by parsing pe exports

Disassembly:
test r8, r8
je 0x140028170
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], rsi
push rbp
lea rbp, [r11 - 0x57]
sub rsp, 0xb0
mov rax, qword [0x14006a110]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor eax, eax
mov qword [r11 + 8], rdi
mov rsi, r8
mov rbx, rcx
mov byte [rbp - 0x41], 0
xor edi, edi
mov word [rbp - 0x40], ax
nop word [rax + rax]
movzx eax, word [rsi]
xor edx, edx
lea rcx, [rbp - 0x41]
lea r8d, [rdx + 0x10]
mov word [rbp - 0x41], ax
call fcn.1400440e0
inc rdi
add rsi, 3
mov byte [rbp + rdi - 0x3e], al
cmp rdi, 6
jl 0x140028030
xor edx, edx
lea rcx, [rbp - 0x31]
lea r8d, [rdx + 0x66]
call fcn.140043870
mov eax, dword [rbp - 0x3d]
or rdx, 0xffffffffffffffff
mov dword [rbp - 0x2b], eax
movzx eax, word [rbp - 0x39]
mov dword [rbp - 0x31], edx
mov word [rbp - 0x2d], dx
mov word [rbp - 0x27], ax
lea rdi, [rbp - 0x25]
lea rsi, [rbp - 0x2b]
mov ecx, 0x2d
rep movsw word [rdi], word [rsi]
mov ecx, 0x90
call fcn.140044568
mov rdi, rax
test rax, rax
je 0x140028148
mov qword [rax], rbx
xor eax, eax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov eax, 2
mov word [rdi + 8], ax
mov ecx, dword [0x140050774]
mov dword [rdi + 0xc], ecx
lea ecx, [rax + 7]
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, [0x140027a90]
mov r8, rdi
movaps xmm0, xmmword [rbp - 0x31]
movaps xmm1, xmmword [rbp - 0x21]
mov word [rdi + 0xa], ax
mov eax, dword [rbp + 0x2f]
xor edx, edx
movups xmmword [rdi + 0x1c], xmm0
movups xmmword [rdi + 0x2c], xmm1
movaps xmm0, xmmword [rbp - 0x11]
movaps xmm1, xmmword [rbp - 1]
movups xmmword [rdi + 0x3c], xmm0
movups xmmword [rdi + 0x4c], xmm1
mov dword [rdi + 0x18], reloc.WS2_32.dll_recv
mov dword [rdi + 0x84], WSAGetLastError
mov dword [rdi + 0x88], setsockopt
movaps xmm0, xmmword [rbp + 0xf]
movaps xmm1, xmmword [rbp + 0x1f]
movups xmmword [rdi + 0x5c], xmm0
movups xmmword [rdi + 0x6c], xmm1
mov dword [rdi + 0x7c], eax
movzx eax, word [rbp + 0x33]
mov dword [rdi + 0x8c], 0x64
mov word [rdi + 0x80], ax
call fcn.1400452fc
mov rdi, qword [rsp + 0xc0]
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400437e0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
repz ret
Function at 0x140028280
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x568
mov rax, qword [0x14006a110]
xor rax, rsp
mov qword [rsp + 0x550], rax
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
xor ebp, ebp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [rsp + 0x38], rbp
mov ebx, ebp
mov esi, ebp
mov edi, ebp
nop dword [rax]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x1400282f6
mov edx, dword [rsp + 0x40]
mov rcx, rsi
call fcn.140044e50
mov rsi, rax
test rax, rax
je 0x1400284bf
inc edi
cmp edi, 0x64
jl 0x1400282c0
jmp 0x1400284a5
test eax, eax
jne 0x1400284a5
call fcn.140026c90
mov r11d, eax
mov rax, rsi
test rsi, rsi
je 0x1400284bf
lea rcx, [rax + 0x1c0]
test rcx, rcx
je 0x140028340
cmp byte [rcx], bl
je 0x140028340
lea rcx, [rax + 0x1f0]
test rcx, rcx
je 0x140028340
cmp byte [rcx], bl
je 0x140028340
test r11d, r11d
je 0x14002834d
cmp dword [rax + 0x1a0], r11d
je 0x14002834d
mov rax, qword [rax]
test rax, rax
jne 0x140028312
jmp 0x1400284a5
add rax, 0xc
lea r9, str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
lea r8, str._s_s
lea rcx, [rsp + 0x150]
mov edx, 0x400
mov qword [rsp + 0x20], rax
call fcn.1400453f4
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x150]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1400284a5
mov qword [rsp + 0x560], r12
mov r12, qword [rsp + 0x38]
mov dword [rsp + 0x30], 0x3f1
mov edi, ebp
nop
test rbx, rbx
je 0x1400283bd
mov rcx, rbx
call fcn.140044620
mov ecx, dword [rsp + 0x30]
call fcn.140044568
mov rbx, rax
test rax, rax
je 0x140028410
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x48]
lea rdx, str.Domain
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rcx, r12
mov qword [rsp + 0x20], rbx
inc edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
jne 0x140028403
cmp edi, 0x64
jl 0x1400283b0
cmp byte [rbx], bpl
jne 0x140028473
mov rcx, rbx
call fcn.140044620
mov rdi, qword [rsp + 0x38]
mov dword [rsp + 0x30], 0x3f1
mov rbx, rbp
test rbx, rbx
je 0x14002842d
mov rcx, rbx
call fcn.140044620
mov ecx, dword [rsp + 0x30]
call fcn.140044568
mov rbx, rax
test rax, rax
je 0x14002849d
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x44]
lea rdx, str.DhcpDomain
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rbx
inc ebp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
jne 0x140028473
cmp ebp, 0x64
jl 0x140028420
cmp byte [rbx], 0
je 0x14002849d
lea rcx, [rsp + 0x50]
mov rdx, rbx
call fcn.140001a10
test rax, rax
je 0x14002849d
cmp byte [rsp + 0x50], 0
je 0x14002849d
lea rcx, [rsp + 0x50]
xor edx, edx
call fcn.140034580
mov r12, qword [rsp + 0x560]
test rsi, rsi
je 0x1400284b2
mov rcx, rsi
call fcn.140044620
test rbx, rbx
je 0x1400284bf
mov rcx, rbx
call fcn.140044620
mov rcx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x588]
mov rsi, qword [rsp + 0x580]
mov rbp, qword [rsp + 0x578]
mov rbx, qword [rsp + 0x570]
test rcx, rcx
je 0x1400284ef
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x550]
xor rcx, rsp
call fcn.1400437e0
add rsp, 0x568
ret
Function at 0x140029070
Capabilities:
Get networking parameters

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x70
mov rax, qword [0x14006a110]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor r13d, r13d
mov r12, rcx
mov esi, r13d
mov edi, r13d
mov dword [rsp + 0x40], r13d
call fcn.140026c90
mov ebx, r13d
mov ebp, eax
test eax, eax
je 0x140029106
mov dword [rsp + 0x40], r13d
nop dword [rax + rax]
lea r8, [rsp + 0x40]
mov rdx, rsi
mov ecx, ebp
call sub.IPHLPAPI.DLL_GetPerAdapterInfo
cmp eax, 0x6f
jne 0x1400290f8
mov edx, dword [rsp + 0x40]
mov rcx, rsi
call fcn.140044e50
mov rsi, rax
test rax, rax
je 0x1400291d9
inc ebx
cmp ebx, 0x64
jl 0x1400290c0
jmp 0x1400291be
test eax, eax
jne 0x1400291be
lea rbx, [rsi + 0x10]
jmp 0x14002915f
mov dword [rsp + 0x40], 0x258
nop
test rdi, rdi
je 0x14002911e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [rsp + 0x40]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x1400291d9
lea rdx, [rsp + 0x40]
mov rcx, rax
call sub.IPHLPAPI.DLL_GetNetworkParams
cmp eax, 0x6f
jne 0x140029154
inc ebx
cmp ebx, 0x64
jl 0x140029110
jmp 0x1400291cb
test eax, eax
jne 0x1400291cb
lea rbx, [rdi + 0x110]
test rbx, rbx
je 0x1400291be
nop word [rax + rax]
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x48]
call fcn.140028d50
test eax, eax
jne 0x1400291b6
movzx eax, word [0x1400506b0]
mov r8, qword [0x140050680]
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], 0x1e
lea r9, [rsp + 0x48]
xor edx, edx
mov rcx, r12
mov dword [rsp + 0x28], r13d
mov word [rsp + 0x20], ax
call fcn.14002f1e0
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140029170
test rsi, rsi
je 0x1400291cb
mov rcx, rsi
call fcn.140044620
test rdi, rdi
je 0x1400291d9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400437e0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x140029200
Capabilities:
Get mac address on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r13
push r14
push r15
sub rsp, 0x20
mov eax, dword [0x140050728]
xor edi, edi
mov r13, r9
mov dword [r8], eax
mov eax, dword [0x14005072c]
mov r14, rdx
mov dword [r8 + 4], eax
mov eax, dword [0x140050730]
mov r15, rcx
mov dword [r8 + 8], eax
mov eax, dword [0x140050734]
mov dword [rsp + 0x60], edi
mov dword [r8 + 0xc], eax
mov eax, dword [0x140050738]
mov ebx, edi
mov dword [r8 + 0x10], eax
mov qword [rsp + 0x58], r12
nop dword [rax + rax]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov ebp, eax
cmp eax, 0x6f
jne 0x14002929e
mov edx, dword [rsp + 0x60]
mov rcx, rdi
call fcn.140044e50
mov rdi, rax
test rax, rax
je 0x140029294
inc ebx
cmp ebx, 0x64
jl 0x140029260
jmp 0x140029339
mov eax, 0xffffe5b8
jmp 0x140029348
test eax, eax
jne 0x140029339
call fcn.140026c90
mov rbx, rdi
mov r12d, eax
test rdi, rdi
je 0x140029346
mov qword [rsp + 0x50], rsi
nop
lea rdx, [rbx + 0x1c0]
test rdx, rdx
je 0x14002930b
cmp byte [rdx], 0
je 0x14002930b
lea rsi, [rbx + 0x1f0]
test rsi, rsi
je 0x14002930b
cmp byte [rsi], 0
je 0x14002930b
mov rcx, r14
call fcn.140028d50
test eax, eax
jne 0x14002930b
mov rdx, rsi
mov rcx, r13
call fcn.140028d50
test eax, eax
jne 0x14002930b
test r12d, r12d
je 0x140029315
cmp dword [rbx + 0x1a0], r12d
je 0x140029315
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400292c0
jmp 0x140029334
cmp dword [rbx + 0x194], 6
jne 0x140029334
mov eax, dword [rbx + 0x198]
mov dword [r15 + 0x20], eax
movzx eax, word [rbx + 0x19c]
mov word [r15 + 0x24], ax
mov rsi, qword [rsp + 0x50]
test rdi, rdi
je 0x140029346
mov rcx, rdi
call fcn.140044620
mov eax, ebp
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x14002ac60
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x168
mov rax, qword [0x14006a110]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea r8, [rsp + 0x38]
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x14002adc3
mov qword [rsp + 0x170], rbx
mov qword [rsp + 0x178], rsi
mov rsi, qword [rsp + 0x38]
xor ebx, ebx
mov qword [rsp + 0x160], rdi
mov dword [rsp + 0x30], 0x3f1
mov edi, ebx
test rbx, rbx
je 0x14002acd0
mov rcx, rbx
call fcn.140044620
mov ecx, dword [rsp + 0x30]
call fcn.140044568
mov rbx, rax
test rax, rax
je 0x14002adab
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x40]
lea rdx, str.SearchList
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
inc edi
cmp eax, 0xea
jne 0x14002ad1f
cmp edi, 0x64
jl 0x14002acc3
jmp 0x14002ada3
test eax, eax
jne 0x14002ada3
lea rdx, [0x140059a84]
mov rcx, rbx
call fcn.1400455f0
test rax, rax
je 0x14002ada3
nop dword [rax + rax]
lea rdi, [0x140050a52]
mov rsi, rax
mov ecx, 1
repe cmpsb byte [rsi], byte [rdi]
je 0x14002ad90
lea rdi, [0x140059a80]
mov rsi, rax
mov ecx, 2
repe cmpsb byte [rsi], byte [rdi]
je 0x14002ad90
test rax, rax
je 0x14002ad90
lea rcx, [rsp + 0x50]
mov rdx, rax
call fcn.140001a10
test rax, rax
je 0x14002ad90
cmp byte [rsp + 0x50], 0
je 0x14002ad90
lea rcx, [rsp + 0x50]
xor edx, edx
call fcn.140034580
lea rdx, [0x140059a84]
xor ecx, ecx
call fcn.1400455f0
test rax, rax
jne 0x14002ad40
mov rcx, rbx
call fcn.140044620
mov rsi, qword [rsp + 0x178]
mov rbx, qword [rsp + 0x170]
mov rdi, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14002add3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.140028280
call fcn.14002a5c0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400437e0
add rsp, 0x168
ret
Function at 0x14002b2e0
Capabilities:
Create thread

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov rdx, rcx
lea rcx, [0x140071d40]
call fcn.14000a5d0
inc dword [0x140071d58]
cmp dword [0x140071d84], 0x40
jae 0x14002b344
lea rcx, [0x140071d60]
lea r8, [0x140071d30]
mov qword [rsi + 0x20], rcx
mov edx, dword [0x140071d84]
mov qword [r8 + rdx*8 + 0x58], rsi
mov edx, dword [0x140071d84]
mov rcx, qword [rsi + 8]
mov qword [r8 + rdx*8 + 0x258], rcx
inc dword [0x140071d84]
xor eax, eax
add rsp, 0x30
pop rsi
ret
mov rdx, qword [0x140072198]
test rdx, rdx
je 0x14002b362
cmp dword [rdx + 0x24], 0x40
jb 0x14002b393
mov rdx, qword [rdx + 0x430]
test rdx, rdx
jne 0x14002b350
mov ecx, 0x438
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
call fcn.140044568
mov rdi, rax
test rax, rax
jne 0x14002b3b9
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov eax, 0xfffefffd
add rsp, 0x30
pop rsi
ret
mov qword [rsi + 0x20], rdx
mov eax, dword [rdx + 0x24]
mov qword [rdx + rax*8 + 0x28], rsi
mov rax, qword [rsi + 8]
mov ecx, dword [rdx + 0x24]
mov qword [rdx + rcx*8 + 0x228], rax
inc dword [rdx + 0x24]
xor eax, eax
add rsp, 0x30
pop rsi
ret
xor edx, edx
mov r8d, 0x438
mov rcx, rax
call fcn.140043870
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x14002b3ec
mov ebx, 0xfffefffd
jmp 0x14002b4c3
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x14002b40f
mov ebx, 0xfffefffd
jmp 0x14002b4c3
mov rcx, rdi
call fcn.14002aff0
mov ebx, eax
test eax, eax
jne 0x14002b4c3
lea rax, [rdi + 8]
lea r8, [0x14002b070]
mov r9, rdi
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call fcn.140044ff4
mov qword [rdi], rax
test rax, rax
jne 0x14002b45f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14002b4be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x14002b4c3
lea rcx, [0x140072198]
mov rdx, rdi
call fcn.14000a5d0
mov rax, qword [rdi + 0x18]
mov r11d, dword [0x1400723b0]
lea r8, [0x140071d30]
mov qword [r8 + r11*8 + 0x480], rax
inc dword [0x1400723b0]
mov qword [rsi + 0x20], rdi
mov eax, dword [rdi + 0x24]
mov qword [rdi + rax*8 + 0x28], rsi
mov ecx, dword [rdi + 0x24]
mov rax, qword [rsi + 8]
mov qword [rdi + rcx*8 + 0x228], rax
inc dword [rdi + 0x24]
mov rdi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rsi
ret
mov ebx, 0xffffe5d4
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14002b4da
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x10], 0
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14002b4f1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x18], 0
mov rcx, rdi
call fcn.140044620
mov rdi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rsi
ret