joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002000
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000204a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000204a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000204a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000204a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000204a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000204c
xor al, al
add rsp, 0x28
ret
Function at 0x140004650
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
call fcn.140026230
mov r9d, dword [rbx + 0x38]
mov eax, dword [rbx + 0x3c]
cmp r9d, eax
je 0x140004686
lea rdx, str._s:_mDNS_Lock:_Locking_failure__mDNS_busy___ld____mDNS_reentrancy___ld_
mov r8, rdi
xor ecx, ecx
mov dword [rsp + 0x20], eax
call fcn.140025be0
mov r9d, dword [rbx + 0x38]
test r9d, r9d
jne 0x1400046c1
cmp dword [rbx + 0xe8], r9d
je 0x1400046db
call sub.KERNEL32.dll_GetTickCount
mov r9d, dword [rbx + 0xe8]
lea rdx, str._s:_mDNS_Lock:_m__timenow_already_set___ld__ld_
add eax, dword [rbx + 0xe4]
mov r8, rdi
xor ecx, ecx
mov dword [rsp + 0x20], eax
call fcn.140025be0
jmp 0x1400046db
cmp dword [rbx + 0xe8], 0
jne 0x1400046fd
lea rdx, str._s:_mDNS_Lock:_m__mDNS_busy_is__ld_but_m__timenow_not_set
mov r8, rdi
xor ecx, ecx
call fcn.140025be0
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [rbx + 0xe4]
lea edx, [rax + rcx]
mov dword [rbx + 0xe8], edx
test edx, edx
jne 0x1400046fd
mov dword [rbx + 0xe8], 1
mov r9d, dword [rbx + 0xec]
mov eax, r9d
sub eax, dword [rbx + 0xe8]
test eax, eax
jle 0x140004747
add dword [rbx + 0xe4], eax
mov eax, dword [rbx + 0xe4]
sub r9d, dword [rbx + 0xe8]
lea rdx, str._s:_mDNSPlatformRawTime_went_backwards_by__ld_ticks__setting_correction_factor_to__ld
mov r8, rdi
xor ecx, ecx
mov dword [rsp + 0x20], eax
call fcn.140025be0
mov r11d, dword [rbx + 0xec]
mov dword [rbx + 0xe8], r11d
mov eax, dword [rbx + 0xe8]
inc dword [rbx + 0x38]
mov dword [rbx + 0xec], eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140009800
Capabilities:
Authenticate hmac
Encode data using xor
Hash data with md5

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x14006a110]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
cmp r8d, 0x40
jbe 0x140009884
xor eax, eax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x67452301
mov dword [rsp + 0x24], 0xefcdab89
mov dword [rsp + 0x28], 0x98badcfe
mov qword [rsp + 0x2c], 0x10325476
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x78], eax
call fcn.140009360
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x80]
call fcn.140009670
lea rbp, [rsp + 0x80]
mov esi, reloc.WS2_32.dll_recv
lea rbx, [rdi + 0x19fa]
mov edx, 0x40
mov rcx, rbx
call fcn.140025ce0
add rdi, 0x1a3a
mov edx, 0x40
mov rcx, rdi
call fcn.140025ce0
mov r8d, esi
mov rdx, rbp
mov rcx, rbx
call fcn.140025ca0
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call fcn.140025ca0
mov eax, 0x20
nop dword [rax]
xor byte [rdi - 0x40], 0x36
xor byte [rdi], 0x5c
xor byte [rdi - 0x3f], 0x36
xor byte [rdi + 1], 0x5c
add rdi, 2
dec rax
jne 0x1400098d0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400437e0
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000a0a0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov rsi, rcx
lea rax, [rsp + 0x50]
mov qword [rcx], rbp
lea r9, [0x140051d48]
lea r8d, [rbp + 1]
lea rcx, [0x140051d38]
xor edx, edx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rbp
mov edi, ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
js 0x14000a141
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000a146
mov rax, qword [rcx]
lea rdx, [rsp + 0x58]
call qword [rax + 0x38]
mov ebx, eax
test eax, eax
js 0x14000a141
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000a159
nop
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x38]
mov ebx, eax
test eax, eax
je 0x14000a13c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r11d, edi
inc edi
cmp r11d, 0x1e
jge 0x14000a13c
mov rcx, qword [rsp + 0x58]
jmp 0x14000a110
test ebx, ebx
cmovns ebx, ebp
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x14000a15e
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000a169
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000e750
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov r10, qword [rcx + 0x30b0]
lea r11, [rcx + 0x70d4]
mov rbx, r8
movzx r8d, dl
mov rdx, r11
test r10, r10
je 0x14000e788
mov rax, qword [rbx + 0x20]
cmp qword [r10 + 0x19d8], rax
je 0x14000e7b7
mov r10, qword [r10]
test r10, r10
jne 0x14000e777
mov rdx, qword [rbx + 0x30]
lea r8, [rcx + 0x43]
lea rcx, [rbx + 8]
add rdx, 4
call fcn.140005780
mov r8, qword [rbx + 0x20]
lea rdx, str.SendARP:_No_interface_with_InterfaceID__p_found__s
mov r9, rax
xor ecx, ecx
add rsp, 0x20
pop rbx
jmp fcn.140025be0
test r10, r10
je 0x14000e788
mov rcx, qword [rsp + 0x60]
add rdx, 0x2a
movzx eax, byte [rcx]
mov byte [r11], al
movzx eax, byte [rcx + 1]
mov byte [r11 + 1], al
movzx eax, byte [rcx + 2]
mov byte [r11 + 2], al
movzx eax, byte [rcx + 3]
mov byte [r11 + 3], al
movzx eax, byte [rcx + 4]
mov byte [r11 + 4], al
movzx eax, byte [rcx + 5]
mov rcx, qword [rsp + 0x50]
mov byte [r11 + 5], al
movzx eax, byte [r10 + 0x1a08]
mov byte [r11 + 6], al
movzx eax, byte [r10 + 0x1a08]
mov byte [r11 + 7], al
movzx eax, byte [r10 + 0x1a08]
mov byte [r11 + 8], al
movzx eax, byte [r10 + 0x1a08]
mov byte [r11 + 9], al
movzx eax, byte [r10 + 0x1a08]
mov byte [r11 + 0xa], al
movzx eax, byte [r10 + 0x1a08]
mov byte [r11 + 0xb], al
mov word [r11 + 0xc], 0x608
mov word [r11 + 0xe], 0x100
mov word [r11 + 0x10], 8
mov word [r11 + 0x12], 0x406
mov byte [r11 + 0x14], 0
mov byte [r11 + 0x15], r8b
movzx eax, byte [r10 + 0x1a08]
mov r8, qword [rsp + 0x58]
mov byte [r11 + 0x16], al
movzx eax, byte [r10 + 0x1a09]
mov byte [r11 + 0x17], al
movzx eax, byte [r10 + 0x1a0a]
mov byte [r11 + 0x18], al
movzx eax, byte [r10 + 0x1a0b]
mov byte [r11 + 0x19], al
movzx eax, byte [r10 + 0x1a0c]
mov byte [r11 + 0x1a], al
movzx eax, byte [r10 + 0x1a0d]
mov byte [r11 + 0x1b], al
movzx eax, byte [r9]
mov byte [r11 + 0x1c], al
movzx eax, byte [r9 + 1]
mov byte [r11 + 0x1d], al
movzx eax, byte [r9 + 2]
mov byte [r11 + 0x1e], al
movzx eax, byte [r9 + 3]
mov byte [r11 + 0x1f], al
movzx eax, byte [rcx]
mov byte [r11 + 0x20], al
movzx eax, byte [rcx + 1]
mov byte [r11 + 0x21], al
movzx eax, byte [rcx + 2]
mov byte [r11 + 0x22], al
movzx eax, byte [rcx + 3]
mov byte [r11 + 0x23], al
movzx eax, byte [rcx + 4]
mov byte [r11 + 0x24], al
movzx eax, byte [rcx + 5]
mov rcx, r11
mov byte [r11 + 0x25], al
movzx eax, byte [r8]
mov byte [r11 + 0x26], al
movzx eax, byte [r8 + 1]
mov byte [r11 + 0x27], al
movzx eax, byte [r8 + 2]
mov byte [r11 + 0x28], al
movzx eax, byte [r8 + 3]
mov byte [r11 + 0x29], al
mov r8, qword [rbx + 0x20]
add rsp, 0x20
pop rbx
jmp fcn.140026230
Function at 0x1400110c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov r10, qword [rcx + 0x30b0]
lea rsi, [rcx + 0x70d4]
mov rdi, rdx
mov rbx, rsi
test r10, r10
je 0x140011101
nop dword [rax + rax]
cmp qword [r10 + 0x19d8], rdx
je 0x140011121
mov r10, qword [r10]
test r10, r10
jne 0x1400110f0
mov r8, rdx
lea rdx, str.SendARP:_No_interface_with_InterfaceID__p_found
xor ecx, ecx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.140025be0
test r10, r10
je 0x140011101
movzx eax, byte [r8]
mov qword [rsp + 0x30], rbp
or rbp, 0xffffffffffffffff
mov byte [rsi], al
movzx eax, byte [r8 + 1]
add rbx, 0x14
mov byte [rsi + 1], al
movzx eax, byte [r8 + 2]
lea ecx, [rbp + 0x11]
mov byte [rsi + 2], al
movzx eax, byte [r8 + 3]
mov byte [rsi + 3], al
movzx eax, byte [r8 + 4]
mov byte [rsi + 4], al
movzx eax, byte [r8 + 5]
mov byte [rsi + 5], al
movzx eax, byte [r10 + 0x1a08]
mov byte [rsi + 6], al
movzx eax, byte [r10 + 0x1a08]
mov byte [rsi + 7], al
movzx eax, byte [r10 + 0x1a08]
mov byte [rsi + 8], al
movzx eax, byte [r10 + 0x1a08]
mov byte [rsi + 9], al
movzx eax, byte [r10 + 0x1a08]
mov byte [rsi + 0xa], al
movzx eax, byte [r10 + 0x1a08]
mov byte [rsi + 0xb], al
mov word [rsi + 0xc], 0x4208
mov dword [rsi + 0xe], ebp
mov word [rsi + 0x12], bp
nop word [rax + rax]
movzx eax, byte [r8]
add rbx, 6
dec rcx
mov byte [rbx - 6], al
movzx eax, byte [r8 + 1]
mov byte [rbx - 5], al
movzx eax, byte [r8 + 2]
mov byte [rbx - 4], al
movzx eax, byte [r8 + 3]
mov byte [rbx - 3], al
movzx eax, byte [r8 + 4]
mov byte [rbx - 2], al
movzx eax, byte [r8 + 5]
mov byte [rbx - 1], al
jne 0x1400111c0
movzx eax, byte [r9]
mov r8, rdx
lea rdx, [rbx + 6]
mov byte [rbx], al
movzx eax, byte [r9 + 1]
mov rcx, rsi
mov byte [rbx + 1], al
movzx eax, byte [r9 + 2]
mov byte [rbx + 2], al
movzx eax, byte [r9 + 3]
mov byte [rbx + 3], al
movzx eax, byte [r9 + 4]
mov byte [rbx + 4], al
movzx eax, byte [r9 + 5]
mov byte [rbx + 5], al
call fcn.140026230
mov dword [rsi], ebp
lea rdx, [rbx + 6]
mov r8, rdi
mov rcx, rsi
mov word [rsi + 4], bp
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.140026230
Function at 0x1400195e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x50]
mov rdi, rcx
xor ecx, ecx
mov qword [rdx + 0x1b0], rax
mov eax, dword [0x140050728]
mov rbx, rdx
mov dword [rdx + 0x1b8], eax
mov eax, dword [0x14005072c]
mov dword [rdx + 0x1bc], eax
mov eax, dword [0x140050730]
mov dword [rdx + 0x1c0], eax
mov eax, dword [0x140050734]
mov dword [rdx + 0x1c4], eax
mov eax, dword [0x140050738]
mov qword [rdx + 0x2e0], rcx
mov dword [rdx + 0x1c8], eax
mov eax, listen
mov qword [rdx + 0x2e8], rcx
mov word [rdx + 0x2d0], ax
mov eax, 1
mov qword [rdx + 0x2f8], rcx
mov word [rdx + 0x2d2], ax
mov qword [rdx + 0x2d4], rax
mov eax, dword [rsp + 0x58]
mov dword [rdx + 0x2dc], eax
mov rax, qword [rsp + 0x60]
lea rcx, [rdx + 0x1d0]
mov qword [rdx + 0x300], rax
mov rax, qword [rsp + 0x68]
mov qword [rdx + 0x308], rax
xor edx, edx
call fcn.140001d30
test rax, rax
jne 0x1400196b3
mov eax, 0xfffefffc
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140018e40

Function at 0x14001b570
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x14006badc], 0
mov rbx, rdx
mov rdi, rcx
je 0x14001b5b2
mov rdx, qword [rdx + 0x30]
lea r8, [rcx + 0x43]
lea rcx, [rbx + 8]
add rdx, 4
call fcn.140005780
lea rdx, str.CompleteDeregistration:_called_for_Resource_record__s
mov ecx, 3
mov r8, rax
call fcn.140025be0
cmp byte [rbx + 0xac], 0
mov byte [rbx + 8], 8
mov byte [rbx + 0xab], 0
mov eax, dword [0x140050708]
mov dword [rbx + 0x76], eax
movzx eax, word [0x14005070c]
mov word [rbx + 0x7a], ax
je 0x14001b5ef
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call fcn.14001b450
mov byte [rbx + 0xac], 0
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140015ec0

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov dword [r9], 0
mov rcx, qword [rcx + 8]
mov rdi, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
js 0x140025e8b
xor eax, eax
jmp 0x140025ea2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x140025e9d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x140025ea2
mov eax, 0xfffeffff
test ebx, ebx
jg 0x140025eae
jne 0x140025ebb
mov dword [rdi], 1
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp eax, 0x2746
jne 0x140025ed5
mov dword [rdi], 1
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp eax, 0x2733
je 0x140025ec8
lea rdx, str.ERROR:_mDNSPlatformReadTCP___recv:__d_n
mov r8d, eax
xor ecx, ecx
call fcn.140025be0
mov rbx, qword [rsp + 0x30]
or eax, 0xffffffff
add rsp, 0x20
pop rdi
ret
Function at 0x140025f00
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
test eax, eax
jns 0x140025f44
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140025f42
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x140025f3a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x140025f42
mov eax, ebx
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
push rdi
sub rsp, 0xc8
mov rax, qword [0x14006a110]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, qword [rsp + 0x108]
movzx eax, word [rsp + 0x110]
mov r10, r8
mov r8d, dword [rdi]
mov r11, rdx
mov rdx, qword [rsp + 0x100]
xor ebx, ebx
sub r10d, r11d
cmp r8d, 4
jne 0x140026043
mov word [rsp + 0x32], ax
mov eax, dword [rdi + 4]
mov r8d, 2
mov word [rsp + 0x30], r8w
mov dword [rsp + 0x34], eax
test r9, r9
je 0x14002602e
mov rcx, qword [r9 + 0xa0]
jmp 0x140026038
mov rax, qword [rcx]
mov rcx, qword [rax + 0x1b40]
test rdx, rdx
je 0x14002608e
mov rcx, qword [rdx + 0x18]
jmp 0x14002608e
cmp r8d, 6
jne 0x140026162
mov word [rsp + 0x32], ax
mov rax, qword [rdi + 4]
mov edx, reloc.WS2_32.dll_socket
mov qword [rsp + 0x38], rax
mov rax, qword [rdi + 0xc]
mov word [rsp + 0x30], dx
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x40], rax
test r9, r9
je 0x140026084
mov rcx, qword [r9 + 0xa0]
jmp 0x14002608e
mov rax, qword [rcx]
mov rcx, qword [rax + 0x3e78]
cmp rcx, 0xffffffffffffffff
je 0x1400260b9
lea rax, [rsp + 0x30]
xor r9d, r9d
mov r8d, r10d
mov rdx, r11
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jle 0x1400260c0
mov eax, ebx
jmp 0x140026167
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400260db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x1400260e0
jmp 0x140026167
mov ebx, 0xffffe5a5
mov ecx, dword [rdi]
cmp ecx, 4
jne 0x1400260f2
mov eax, dword [0x140050774]
cmp dword [rdi + 4], eax
je 0x1400260b9
cmp ecx, 6
jne 0x140026123
mov eax, dword [0x14005078c]
cmp dword [rdi + 4], eax
jne 0x140026123
mov eax, dword [0x140050790]
cmp dword [rdi + 8], eax
jne 0x140026123
mov eax, dword [0x140050794]
cmp dword [rdi + 0xc], eax
jne 0x140026123
mov eax, dword [0x140050798]
cmp dword [rdi + 0x10], eax
je 0x1400260b9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2750
je 0x14002615b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2742
je 0x14002615b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2751
je 0x14002615b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2743
jne 0x1400260b9
mov eax, 0xfffeffe6
jmp 0x140026167
mov eax, 0xfffefffc
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400437e0
add rsp, 0xc8
pop rdi
pop rbx
ret
Function at 0x140026240
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x14006a110]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov edi, edx
lea rdx, [rsp + 0x40]
xor esi, esi
mov r8b, 0x5c
mov qword [rsp + 0x38], rsi
call fcn.140001b00
lea rbx, [rsp + 0x40]
cmp byte [rsp + 0x40], sil
je 0x1400262ab
movsx ecx, byte [rbx]
call fcn.140044e30
lea rdx, [rbx + 1]
mov byte [rbx], al
cmp byte [rdx], sil
jne 0x1400262a3
movzx ecx, al
cmp al, 0x2e
cmove ecx, esi
mov byte [rbx], cl
mov rbx, rdx
cmp byte [rdx], sil
jne 0x140026286
lea r8, [rsp + 0x38]
lea rdx, str.SOFTWAREApple_Inc.BonjourDynDNSStateHostNames
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1400262fc
mov rcx, qword [rsp + 0x38]
test edi, edi
lea rax, [rsp + 0x30]
sete byte [rsp + 0x30]
lea rdx, str.Status
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14002630c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400437e0
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140026340
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x180
mov rax, qword [0x14006a110]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rsi, rcx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x70]
mov ecx, 5
mov byte [rsp + 0x70], 0
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.KERNEL32.dll_GetComputerNameExA]
test eax, eax
je 0x140026391
xor ebx, ebx
jmp 0x1400263a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400263b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x1400263b5
cmp byte [rsp + 0x70], 0
jne 0x1400263cb
jmp 0x1400263b5
mov ebx, 0xffffe5a8
mov rax, qword [str.My_Computer]
mov qword [rsp + 0x70], rax
mov eax, dword [0x1400595b0]
mov dword [rsp + 0x78], eax
or rcx, 0xffffffffffffffff
xor eax, eax
mov edx, 0x3f
mov byte [rsp + 0x16f], 0
lea rdi, [rsp + 0x70]
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, rdx
movzx eax, cl
lea rcx, [rsp + 0x31]
cmovb edx, eax
mov byte [rsp + 0x30], dl
movzx r8d, dl
lea rdx, [rsp + 0x70]
call fcn.140043b10
lea rdx, [rsi + 0x28e0]
lea rcx, [rsp + 0x30]
call fcn.140001c50
cmp byte [rsi + 0x28e0], 0
jne 0x140026438
lea rdx, str.My_Computer
lea rcx, [rsi + 0x28e0]
call fcn.1400019d0
mov rcx, rsi
call fcn.140019a30
mov eax, ebx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400437e0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140026c90
Capabilities:
Get routing table

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
lea rdx, [rsp + 0x30]
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x30], ebx
mov edi, ebx
call sub.IPHLPAPI.DLL_GetIpForwardTable
cmp eax, 0x7a
jne 0x140026d26
mov ecx, dword [rsp + 0x30]
mov qword [rsp + 0x38], rsi
call fcn.140044568
mov rsi, rax
test rax, rax
je 0x140026d14
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov rcx, rax
call sub.IPHLPAPI.DLL_GetIpForwardTable
test eax, eax
jne 0x140026d0c
mov edx, dword [rsi]
test edx, edx
je 0x140026d0c
lea rcx, [rsi + 0x28]
mov eax, edx
nop dword [rax]
cmp dword [rcx - 0x24], 0
jne 0x140026d03
test ebx, ebx
je 0x140026cfe
cmp dword [rcx], edi
jae 0x140026d03
mov ebx, dword [rcx - 0x14]
mov edi, dword [rcx]
add rcx, 0x38
dec rax
jne 0x140026cf0
mov rcx, rsi
call fcn.140044620
mov eax, ebx
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140026df0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x60
xor ebx, ebx
mov qword [rsp + 0x58], rbp
mov rbp, rcx
mov byte [rcx], bl
lea r8, [rsp + 0x30]
lea rdx, str.SOFTWAREApple_Inc.BonjourDynDNSSetupHostNames
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x140026efa
mov qword [rsp + 0x50], rsi
mov rsi, qword [rsp + 0x30]
mov qword [rsp + 0x48], rdi
xor edi, edi
mov dword [rsp + 0x70], 0x3f1
test rbx, rbx
je 0x140026e4e
mov rcx, rbx
call fcn.140044620
mov ecx, dword [rsp + 0x70]
call fcn.140044568
mov rbx, rax
test rax, rax
je 0x140026ef0
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x88]
lea rdx, [0x140050a52]
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 0x140026e9d
cmp edi, 0x64
jl 0x140026e41
jmp 0x140026ef0
test eax, eax
jne 0x140026ef0
lea rax, [rsp + 0x78]
lea rdx, [0x1400595f0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x78], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp byte [rbx], 0
je 0x140026ef0
cmp dword [rsp + 0x80], 0
je 0x140026ef0
mov rdx, rbx
mov rcx, rbp
call fcn.140001a10
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x140026f18
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x30], 0
test rbx, rbx
je 0x140026f25
mov rcx, rbx
call fcn.140044620
add rsp, 0x60
pop rbx
ret
Function at 0x140026f30
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x1c8]
sub rsp, 0x2c0
mov rax, qword [0x14006a110]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov qword [r11 - 0x10], rsi
mov qword [r11 - 0x20], r12
xor r12d, r12d
mov rsi, rcx
mov qword [rcx], r12
lea r8, [rsp + 0x68]
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x60], r12d
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x140027159
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
lea rax, [rbp - 0x80]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x7c]
xor edx, edx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140027159
mov qword [rsp + 0x2b0], rdi
mov edi, r12d
cmp dword [rsp + 0x60], r12d
jbe 0x140027151
mov qword [rsp + 0x2a0], r13
mov r13d, 0x100
mov qword [rsp + 0x2e0], rbx
nop word [rax + rax]
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9, [rsp + 0x64]
lea r8, [rbp + 0x90]
mov edx, edi
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x64], 0xff
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x140027135
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
lea rdx, [rbp + 0x90]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140027141
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x64]
lea rdx, str.Enabled
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x64], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140027125
cmp byte [rbp + 0x90], r12b
je 0x140027125
cmp dword [rsp + 0x78], r12d
je 0x140027125
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x70]
call fcn.140001a10
test rax, rax
je 0x140027125
cmp byte [rbp - 0x70], r12b
je 0x140027125
mov ecx, 0x110
call fcn.140044568
mov rbx, rax
test rax, rax
je 0x140027141
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x70]
call fcn.140001420
cmp ax, r13w
ja 0x140027118
lea rcx, [rbx + 0xc]
lea rdx, [rbp - 0x70]
movzx r8d, ax
call fcn.140043b10
jmp 0x14002711c
mov byte [rbx + 0xc], r12b
mov rax, qword [rsi]
mov qword [rbx], rax
mov qword [rsi], rbx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r12
inc edi
cmp edi, dword [rsp + 0x60]
jb 0x140027010
mov rbx, qword [rsp + 0x2e0]
mov r13, qword [rsp + 0x2a0]
mov rdi, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x70]
mov r12, qword [rsp + 0x2a8]
mov rsi, qword [rsp + 0x2b8]
test rcx, rcx
je 0x140027179
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140027189
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400437e0
add rsp, 0x2c0
pop rbp
ret