joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180004100
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x270
mov rax, qword [0x1800393f8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov ebp, r8d
xor r8d, r8d
mov rdi, rdx
movzx esi, cx
mov r12d, 2
lea edx, [r8 + 1]
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
xor eax, eax
mov dword [rsp + 0x250], eax
mov dword [rsp + 0x254], eax
mov dword [rsp + 0x258], eax
mov dword [rsp + 0x25c], eax
test rdi, rdi
je 0x180004174
cmp byte [rdi], al
je 0x180004174
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_inet_addr]
jmp 0x18000417c
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
movzx ecx, si
mov dword [rsp + 0x254], eax
mov word [rsp + 0x250], r12w
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov rcx, rbx
mov dword [rsp + 0x30], 1
mov word [rsp + 0x252], ax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea rdx, [rsp + 0x250]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
mov eax, 0x10624dd3
lea ecx, [rbx + 1]
imul ebp
sar edx, 6
lea r8, [rsp + 0x40]
mov eax, edx
xor edi, edi
xor r9d, r9d
shr eax, 0x1f
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], 1
add edx, eax
lea rax, [rsp + 0x38]
mov dword [rsp + 0x3c], edi
mov dword [rsp + 0x38], edx
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov rcx, rbx
test eax, eax
jg 0x180004233
mov edx, r12d
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
or rax, 0xffffffffffffffff
jmp 0x18000424a
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov dword [rsp + 0x30], edi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180017810
add rsp, 0x270
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180004270
Capabilities:
Get socket status

Disassembly:
push rbx
sub rsp, 0x240
mov r8d, edx
mov rbx, rcx
test edx, edx
jg 0x18000428e
mov al, 1
add rsp, 0x240
pop rbx
ret
mov eax, 0x10624dd3
mov qword [rsp + 0x38], rcx
xor r9d, r9d
inc ecx
mov dword [rsp + 0x30], 1
imul r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
lea rax, [rsp + 0x260]
mov dword [rsp + 0x260], edx
mov qword [rsp + 0x20], rax
imul edx, edx, 0x3e8
sub r8d, edx
lea rdx, [rsp + 0x30]
imul r8d, r8d, 0x3e8
mov dword [rsp + 0x264], r8d
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x1800042fc
xor al, al
add rsp, 0x240
pop rbx
ret
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
setne al
add rsp, 0x240
pop rbx
ret
Function at 0x180004320
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x240
xor r13d, r13d
mov edi, r8d
mov r12, rdx
mov rsi, rcx
mov ebx, r13d
test r8d, r8d
jle 0x1800043c8
nop
lea rax, [rsp + 0x268]
lea r8, [rsp + 0x30]
lea ecx, [rsi + 1]
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x268], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x26c], r13d
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], 1
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x1800043e7
lea rdx, [rsp + 0x30]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1800043e7
mov r8d, edi
movsxd rdx, ebx
xor r9d, r9d
sub r8d, ebx
add rdx, r12
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x1800043ca
add ebx, eax
cmp ebx, edi
jl 0x180004350
mov eax, edi
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
mov eax, 0xfffffc88
jmp 0x1800043ca

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
xor ebx, ebx
mov ebp, r9d
mov edi, r8d
mov r12, rdx
mov rsi, rcx
test r8d, r8d
jle 0x180004450
nop dword [rax]
mov edx, ebp
mov rcx, rsi
call fcn.180004270
test al, al
je 0x18000446d
mov r8d, edi
movsxd rdx, ebx
xor r9d, r9d
sub r8d, ebx
add rdx, r12
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x180004452
add ebx, eax
cmp ebx, edi
jl 0x180004420
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov eax, 0xfffffc88
jmp 0x180004452
Function at 0x180004720
Capabilities:
Encode data using base64

Disassembly:
push rdi
mov r10, r8
mov edi, edx
mov r11, rcx
test rcx, rcx
je 0x180004865
test edx, edx
js 0x180004865
test r8, r8
je 0x18000484f
mov qword [rsp + 0x10], rbx
mov ebx, edx
test edx, edx
jle 0x180004846
mov qword [rsp + 0x18], rsi
lea rsi, [0x18002e700]
nop
cmp ebx, 3
jl 0x1800047cf
movzx ecx, byte [r11 + 1]
movzx edx, byte [r11]
movzx r9d, byte [r11 + 2]
mov r8d, ecx
shr ecx, 4
mov rax, rdx
shr rax, 2
add r11, 3
movzx eax, byte [rax + rsi]
mov byte [r10], al
mov eax, edx
shl eax, 4
or rcx, rax
and ecx, 0x3f
movzx eax, byte [rcx + rsi]
mov rcx, r9
mov byte [r10 + 1], al
lea eax, [r8*4]
shr rcx, 6
or rcx, rax
and ecx, 0x3f
movzx eax, byte [rcx + rsi]
mov byte [r10 + 2], al
mov rax, r9
and eax, 0x3f
add r10, 4
movzx eax, byte [rax + rsi]
mov byte [r10 - 1], al
jmp 0x180004836
movzx r8d, byte [r11]
inc r11
cmp ebx, 2
jne 0x1800047e4
movzx ecx, byte [r11]
inc r11
jmp 0x1800047e6
xor cl, cl
movzx edx, cl
movzx eax, r8b
shr rax, 2
mov ecx, edx
movzx eax, byte [rax + rsi]
shr ecx, 4
mov byte [r10], al
movzx eax, r8b
shl eax, 4
or rcx, rax
and ecx, 0x3f
movzx eax, byte [rcx + rsi]
mov byte [r10 + 1], al
cmp ebx, 1
jne 0x18000481c
lea eax, [rbx + 0x3c]
jmp 0x180004829
and edx, 0xf
shl edx, 2
movsxd rax, edx
movsx eax, byte [rax + rsi]
mov byte [r10 + 2], al
mov byte [r10 + 3], 0x3d
add r10, 4
sub ebx, 3
test ebx, ebx
jg 0x180004760
mov rsi, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x10]
mov byte [r10], 0
lea ecx, [rdi + 2]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
shl eax, 2
pop rdi
ret
or eax, 0xffffffff
pop rdi
ret
Function at 0x1800054a0
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x1800393f8]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor eax, eax
mov qword [rsp + 0x90], r8
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0xa0]
mov dword [rsp + 0xa0], 0x67452301
mov dword [rsp + 0xb4], eax
mov dword [rsp + 0xb0], eax
mov dword [rsp + 0xa4], 0xefcdab89
mov dword [rsp + 0xa8], 0x98badcfe
mov dword [rsp + 0xac], 0x10325476
call fcn.1800052c0
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x100]
call fcn.180005390
movzx eax, byte [rsp + 0x10e]
movzx r11d, byte [rsp + 0x10f]
movzx edx, byte [rsp + 0x10d]
movzx r10d, byte [rsp + 0x10c]
movzx ecx, byte [rsp + 0x10b]
movzx ebx, byte [rsp + 0x10a]
movzx edi, byte [rsp + 0x109]
movzx esi, byte [rsp + 0x108]
movzx ebp, byte [rsp + 0x107]
movzx r12d, byte [rsp + 0x106]
movzx r13d, byte [rsp + 0x105]
movzx r14d, byte [rsp + 0x104]
movzx r15d, byte [rsp + 0x103]
movzx r9d, byte [rsp + 0x101]
movzx r8d, byte [rsp + 0x100]
mov dword [rsp + 0x88], r11d
mov dword [rsp + 0x80], eax
movzx eax, byte [rsp + 0x102]
mov dword [rsp + 0x78], edx
mov dword [rsp + 0x70], r10d
mov dword [rsp + 0x68], ecx
mov rcx, qword [rsp + 0x90]
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r14d
lea rdx, str._02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], eax
call fcn.180017830
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.180017810
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180005640
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1800056c4
lea r8, [rsp + 0x58]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x1800056be
mov rax, qword [rsp + 0x58]
lea r8, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x34], rax
xor eax, eax
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
lea r9d, [rax + 0x10]
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1800056cb
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x48
ret
mov eax, 1
add rsp, 0x48
ret
Function at 0x1800056e0
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x18003df80]
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
test rax, rax
jne 0x180005720
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [0x18003df80], rax
xor ebx, ebx
mov r9d, 0xf01ff
mov r8, rbp
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], ebx
mov rdx, rsi
mov rcx, rax
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rdi, rax
test rax, rax
jne 0x1800057d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x180005798
cmp eax, 0x431
je 0x180005798
lea rcx, str.InstallDriver_CrateService___Faild__d____n
mov edx, eax
call fcn.180003df0
jmp 0x18000583d
lea rcx, str.InstallDriver_CrateService___Faild_Service_is_ERROR_IO_PENDING_or_ERROR_SERVICE_EXISTS___n
call fcn.180003df0
mov rcx, qword [0x18003df80]
mov r8d, 0xf01ff
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
jne 0x1800057d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.InstallDriver_OpenService___Faild__d____n
mov edx, eax
call fcn.180003df0
jmp 0x18000583d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x18000582a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x18000581c
cmp eax, 0x420
je 0x18000580e
lea rcx, str.InstallDriver_StartService___Faild__d____n
mov edx, eax
call fcn.180003df0
jmp 0x18000582f
lea rcx, str.InstallDriver_StartService___ERROR_SERVICE_ALREADY_RUNNING____n
call fcn.180003df0
jmp 0x18000582f
lea rcx, str.InstallDriver_StartService___Faild_ERROR_IO_PENDING____n
call fcn.180003df0
jmp 0x18000582f
mov ebx, 1
test rdi, rdi
je 0x18000583d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180005860
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x1800393f8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rax, qword [str.SYSTEMCurrentControlSet_services_]
mov rbx, rdx
mov rdx, rcx
lea rcx, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov qword [rcx], rax
mov rax, qword [0x1800328b0]
mov qword [rcx + 8], rax
mov rax, qword [0x1800328b8]
mov qword [rcx + 0x10], rax
mov rax, qword [0x1800328c0]
mov qword [rcx + 0x18], rax
movzx eax, word [0x1800328c8]
mov word [rcx + 0x20], ax
movzx eax, byte [0x1800328ca]
mov byte [rcx + 0x22], al
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rdx + rcx]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x1800058e0
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x18000592e
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000002
call fcn.180006380
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180017810
mov rbx, qword [rsp + 0x170]
add rsp, 0x150
pop rdi
ret

Function at 0x180005b80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbp, rcx
mov rdx, r8
mov rcx, rdi
mov rbx, r8
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbx
mov rcx, rdi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r8d, esi
mov rcx, rbp
mov rdx, rax
mov dword [rbp + 4], 0
call fcn.180001a10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x180005c00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea r8, [0x180032a18]
lea rdx, [0x180032a14]
mov rbp, rcx
call fcn.180001c50
movsxd r8, dword [rbp + 4]
mov rax, qword [rbp + 8]
cmp byte [r8 + rax - 1], 0x2f
je 0x180005c50
lea rdx, [0x180032a18]
mov r8d, 1
mov rcx, rbp
call fcn.180001440
nop
mov ecx, 9
call fcn.18001790c
mov edx, 8
mov rcx, rax
mov rbx, rax
call fcn.1800045f0
mov rdx, qword [rbp + 8]
lea rcx, [0x180032a1c]
mov r8, rbx
call fcn.180001930
mov rcx, rbx
mov rdi, rax
call fcn.1800178cc
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x180005cd6
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x180005ca7
mov edx, dword [rdi]
call fcn.180001240
mov rsi, qword [0x18003be50]
lea rbx, [rdi - 8]
lea rcx, [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsi + 8]
lea rcx, [rsi + 0x20]
mov qword [rbx], rax
mov qword [rsi + 8], rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x180005c50
mov rdx, qword [rdi + 8]
mov rcx, rbp
call fcn.180001ab0
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x180005cf2
mov edx, dword [rdi]
call fcn.180001240
mov rsi, qword [0x18003be50]
lea rbx, [rdi - 8]
lea rcx, [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsi + 8]
lea rcx, [rsi + 0x20]
mov qword [rbx], rax
mov qword [rsi + 8], rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rax, rbp
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180005fd0
Capabilities:
Create process on windows

Disassembly:
push rdi
sub rsp, 0xe0
xor edx, edx
mov rdi, rcx
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 0x60]
mov dword [rsp + 0x70], WSAGetLastError
call fcn.18001f340
xor r11d, r11d
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], r11
mov dword [rsp + 0x28], r11d
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
mov qword [rsp + 0x50], r11
mov dword [rsp + 0x20], r11d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x180006068
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 eax, dword [rsp + 0x60]
add rsp, 0xe0
pop rdi
ret
mov qword [rsp + 0xf0], rbx
lea rbx, [0x18002e4fb]
test rdi, rdi
cmovne rbx, rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x180032a38]
mov edx, eax
mov r8, rbx
call fcn.180003e90
mov rbx, qword [rsp + 0xf0]
xor eax, eax
add rsp, 0xe0
pop rdi
ret
Function at 0x180006380
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x1800393f8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, qword [r8]
mov rsi, rdx
mov rdi, rcx
lea r8, [rsp + 0x40]
mov r9d, 0x100
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x180006411
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1800063f7
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.180006380
lea r8, [rsp + 0x40]
mov r9d, 0x100
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x1800063c0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180017810
add rsp, 0x150
pop rdi
pop rsi
pop rbx
ret

Function at 0x180006890
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub rsp, 0x28
cmp qword [0x18003df90], 0
je 0x1800068a8
mov eax, 1
add rsp, 0x28
ret
mov rcx, qword [0x18003dfa0]
mov qword [rsp + 0x20], rbx
test rcx, rcx
jne 0x1800068f4
mov rcx, qword [0x18003be50]
call fcn.1800010a0
mov rbx, rax
test rax, rax
jne 0x1800068d1
xor ecx, ecx
jmp 0x1800068ed
xor ecx, ecx
mov rdx, rax
mov dword [rax + 4], ecx
mov ecx, 0x100
call fcn.180001120
mov rcx, rbx
mov qword [rbx + 8], rax
mov byte [rax], 0
mov qword [0x18003dfa0], rcx
mov edx, dword [rcx]
mov rcx, qword [rcx + 8]
dec edx
call qword [sym.imp.WS2_32.dll_gethostname]
mov rdx, qword [0x18003dfa0]
lea rcx, str.hostname_:_s
mov rdx, qword [rdx + 8]
call fcn.180003e90
mov rcx, qword [0x18003dfa0]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x180006986
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov ebx, dword [rcx]
test bl, bl
je 0x1800069a6
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rcx, rax
call fcn.1800018c0
mov rdx, qword [0x18003dfa0]
lea rcx, str._s__s__08X
mov rdx, qword [rdx + 8]
mov r8, qword [rax + 8]
mov r9d, ebx
mov qword [0x18003df90], rax
mov dword [0x18003dfa8], ebx
call fcn.180003e90
mov rbx, qword [rsp + 0x20]
mov eax, 1
add rsp, 0x28
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdx, qword [0x18003dfa0]
lea rcx, str.gethostbyname_errors__s__d
mov rdx, qword [rdx + 8]
mov r8d, eax
call fcn.180003e90
xor eax, eax
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x1800069c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x1800393f8]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor ebx, ebx
lea rax, [rsp + 0x40]
mov rdi, rcx
lea rdx, str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
mov esi, 1
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180006ad4
lea rdx, str._sConnection
lea rcx, [rsp + 0x50]
mov r8, rdi
call fcn.180017830
mov rcx, qword [rsp + 0x40]
lea r11, [rsp + 0x38]
lea rdx, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180006ac9
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, str.PnpInstanceID
xor r8d, r8d
mov dword [rsp + 0x30], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180006abe
lea r8d, [rbx + 3]
lea rdx, [0x180032ce0]
lea rcx, [rsp + 0x50]
call fcn.180018eb0
test eax, eax
cmove ebx, esi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180017810
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180006b00
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x2c0
mov rax, qword [0x1800393f8]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
xor ebx, ebx
lea rax, [rsp + 0x68]
mov rsi, rcx
lea rdx, str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
mov ebp, 1
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x64], ebx
mov dword [rsp + 0x7c], ebp
mov dword [rsp + 0x78], 4
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180006d40
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x2d8], rdi
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [rsp + 0x60], ebx
mov edi, ebx
jle 0x180006d2d
nop
lea rcx, [rsp + 0x91]
xor edx, edx
mov r8d, 0x103
mov dword [rsp + 0x88], 0x104
mov byte [rsp + 0x90], bl
call fcn.18001f340
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x90]
mov edx, edi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov rcx, qword [rsp + 0x68]
lea r11, [rsp + 0x70]
lea rdx, [rsp + 0x90]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180006ccb
lea rcx, [rsp + 0x1a1]
xor edx, edx
mov r8d, 0x104
mov byte [rsp + 0x1a0], bl
call fcn.18001f340
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x64]
lea r9, [rsp + 0x7c]
lea rdx, str.NetCfgInstanceId
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1a0]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x64], 0x104
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180006cc0
lea rcx, [rsp + 0x1a0]
mov rdx, rsi
call fcn.1800179c4
test rax, rax
jne 0x180006cd9
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
cmp edi, dword [rsp + 0x60]
jl 0x180006bd0
jmp 0x180006d2d
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x84]
lea rdx, str.Characteristics
xor r8d, r8d
mov dword [rsp + 0x80], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180006d2d
movzx ecx, byte [rsp + 0x84]
and cl, 4
cmp cl, 4
cmove ebx, ebp
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x2d8]
mov eax, ebx
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.180017810
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret