joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800aa960
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x38
mov rsi, qword [rcx + 0x98]
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
mov r12, qword [rcx]
test rsi, rsi
je 0x1800aab5b
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], r13
xor r13d, r13d
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x30], r15
nop dword [rax + rax]
movsxd rbp, dword [rsi + 0x10]
movzx eax, byte [rbx + 0x1f]
mov r14d, dword [rsi + 0x14]
shl rbp, 5
add rbp, qword [r12 + 0x20]
test al, al
jne 0x1800aa9c2
inc dword [rbx + 0x38]
mov r15d, dword [rbx + 0x38]
jmp 0x1800aa9d2
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r15d, dword [rbx + rax*4 + 0xcc]
movsxd rcx, dword [rdi + 0x90]
lea r8d, [r14 + 2]
lea edx, [rcx + 7]
cmp dword [rdi + 0x94], ecx
jg 0x1800aa9ff
mov r9d, edx
mov dword [rsp + 0x20], r14d
mov edx, 0x37
mov rcx, rdi
call fcn.180071c70
jmp 0x1800aaa2d
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x37
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r13
mov r9, qword [rbp + 0x18]
xor edx, edx
mov r8d, dword [rsi + 0x10]
mov rcx, rbx
mov dword [rsp + 0x20], 0x6d
mov r9, qword [r9 + 0x68]
call fcn.1800aa110
mov eax, dword [rdi + 0x90]
add eax, 5
cmp eax, dword [rdi + 0x94]
jle 0x1800aaa6c
mov rcx, rdi
call fcn.180071b20
test eax, eax
jne 0x1800aab47
movsxd rax, dword [rdi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8 + 8], 2
mov byte [rax + rcx*8], 0x33
mov dword [rax + rcx*8 + 4], r13d
lea rdx, [rax + rcx*8]
mov eax, dword [rdi + 0x90]
mov dword [rdx + 0xc], r13d
lea ecx, [r14 + 1]
mov byte [rdx + 1], r13b
add eax, 2
mov dword [rdx + 8], eax
lea eax, [r14 - 1]
mov qword [rdx + 0x10], r13
mov word [rdx + 2], r13w
mov qword [rdx + 0x18], 0x79
mov qword [rdx + 0x20], r13
mov qword [rdx + 0x28], r13
mov qword [rdx + 0x30], 0x5c
mov qword [rdx + 0x38], 2
mov qword [rdx + 0x40], r13
mov qword [rdx + 0x48], 0x7a
mov qword [rdx + 0x50], r13
mov qword [rdx + 0x58], r13
mov qword [rdx + 0x60], 0x75
mov qword [rdx + 0x68], r13
mov qword [rdx + 0x70], r13
add dword [rdi + 0x90], 5
mov dword [rdx + 0x34], eax
mov eax, 8
mov word [rdx + 0x4a], ax
mov dword [rdx + 4], ecx
mov dword [rdx + 0x20], ecx
mov dword [rdx + 0x3c], r15d
mov dword [rdx + 0x50], r15d
mov dword [rdx + 0x54], ecx
test r15d, r15d
je 0x1800aab3b
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x1800aab3b
movzx eax, al
mov dword [rbx + rax*4 + 0xcc], r15d
inc byte [rbx + 0x1f]
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800aa9a0
mov r15, qword [rsp + 0x30]
mov r13, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r14, qword [rsp + 0x70]
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800e8580
Capabilities:
Get storage device properties

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x2998
call fcn.180110950
sub rsp, rax
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x2980], rax
mov r15, r9
mov r14, r8
mov rsi, rdx
mov ebx, ecx
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x70]
call fcn.180113150
mov ecx, ebx
call sym.SafeBase64.dll_OpenDiskDriver
mov rdi, rax
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x1800e85fe
xor eax, eax
mov rcx, qword [rsp + 0x2980]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x2998
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
xor r12d, r12d
mov dword [rsp + 0x50], r12d
xor edx, edx
mov r8d, 0x2710
lea rcx, [rsp + 0x270]
call fcn.180113150
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x5c], rax
mov dword [rsp + 0x58], r12d
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x2710
lea rax, [rsp + 0x270]
mov qword [rsp + 0x20], rax
lea r9d, [r12 + 0xc]
lea r8, [rsp + 0x58]
mov edx, 0x2d1400
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, eax
mov dword [rsp + 0x40], eax
test eax, eax
je 0x1800e87ab
mov ebx, r12d
mov dword [rsp + 0x40], ebx
mov rax, qword [rsp + 0x288]
cmp eax, 0x2710
jae 0x1800e87ab
mov eax, eax
lea r8, [rsp + 0x270]
add r8, rax
mov edx, 0x1ff
lea rcx, [rsp + 0x70]
call fcn.18011ab74
lea rcx, [rsp + 0x70]
call fcn.1800e8360
mov edx, 0x200
lea rcx, [rsp + 0x70]
call sym.SafeBase64.dll_TrimString
movaps xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsi], xmm0
mov eax, dword [rsp + 0x80]
mov dword [rsi + 0x10], eax
mov rsi, qword [rsp + 0x280]
cmp esi, 0x2710
jae 0x1800e87ab
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x70]
call fcn.180113150
mov eax, esi
lea r8, [rsp + 0x270]
add r8, rax
mov edx, 0x1ff
lea rcx, [rsp + 0x70]
call fcn.18011ab74
mov edx, 0x200
lea rcx, [rsp + 0x70]
call sym.SafeBase64.dll_TrimString
movaps xmm0, xmmword [rsp + 0x70]
movaps xmmword [r14], xmm0
movaps xmm1, xmmword [rsp + 0x80]
movaps xmmword [r14 + 0x10], xmm1
movsd xmm0, qword [rsp + 0x90]
movsd qword [r14 + 0x20], xmm0
mov rsi, qword [rsp + 0x284]
cmp esi, 0x2710
jae 0x1800e87ab
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x70]
call fcn.180113150
mov eax, esi
lea r8, [rsp + 0x270]
add r8, rax
mov edx, 0x1ff
lea rcx, [rsp + 0x70]
call fcn.18011ab74
mov edx, 0x200
lea rcx, [rsp + 0x70]
call sym.SafeBase64.dll_TrimString
mov rax, qword [rsp + 0x70]
mov qword [r15], rax
mov ebx, 1
mov dword [rsp + 0x40], ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x1800e85dd
Function at 0x1800e87c0
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x90
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rsi, rdx
call sym.SafeBase64.dll_OpenDiskDriver
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1800e87f7
xor eax, eax
jmp 0x1800e8888
xor eax, eax
mov qword [rsp + 0xb0], rdi
xor ecx, ecx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x38], rcx
lea r8, [rsp + 0x48]
mov qword [rsp + 0x60], rax
mov edx, 0x2d1400
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea r9d, [rcx + 0xc]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov dword [rsp + 0x40], ecx
mov qword [rsp + 0x4c], rcx
mov dword [rsp + 0x48], ecx
mov rcx, rbx
mov dword [rsp + 0x28], 0x28
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x5c], 0x28
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1800e887e
mov ecx, dword [rsp + 0x74]
mov dword [rsi], ecx
mov eax, edi
mov rdi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18010faf0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rsi
ret

Function at 0x1800e88b0
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x90
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rsi, rdx
call sym.SafeBase64.dll_OpenVolumeDriver
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1800e88e7
xor eax, eax
jmp 0x1800e8978
xor eax, eax
mov qword [rsp + 0xb0], rdi
xor ecx, ecx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x38], rcx
lea r8, [rsp + 0x48]
mov qword [rsp + 0x60], rax
mov edx, 0x2d1400
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea r9d, [rcx + 0xc]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov dword [rsp + 0x40], ecx
mov qword [rsp + 0x4c], rcx
mov dword [rsp + 0x48], ecx
mov rcx, rbx
mov dword [rsp + 0x28], 0x28
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x5c], 0x28
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1800e896e
mov ecx, dword [rsp + 0x74]
mov dword [rsi], ecx
mov eax, edi
mov rdi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18010faf0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rsi
ret
Function at 0x1800e93c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, r8
mov r14, rdx
mov esi, ecx
xor ebx, ebx
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x50]
call fcn.180113150
mov dword [rsp + 0x40], 0x104
mov r15d, 1
mov dword [rsp + 0x44], r15d
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
cmp esi, 6
je 0x1800e9434
cmp esi, 0x47
je 0x1800e9434
cmp esi, 0x17
jne 0x1800e9523
lea rdx, str.Loopback
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x1800e9523
lea rdx, str.Npcap
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x1800e9523
lea rdx, str.VMware
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x1800e9523
lea rdx, str.Virtual
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x1800e9523
lea rdx, [0x1801636e0]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x1800e9523
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1800e9523
mov r9, r14
lea r8, str._sConnection
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.18000f870
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1800e954e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.18010faf0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.PnpInstanceID
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800e959b
lea r8d, [rax + 3]
lea rdx, [0x180154f38]
lea rcx, [rsp + 0x50]
call fcn.180125da0
test eax, eax
cmove ebx, r15d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1800e9525
Function at 0x1800e95c0
Capabilities:
Get mac address on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x960
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x950], rax
mov r13d, r8d
mov rbx, rdx
mov qword [rsp + 0x58], rdx
mov r15d, ecx
xor r12d, r12d
mov dword [rsp + 0x470], r12d
mov r14d, r12d
mov qword [rsp + 0x60], r12
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x740]
call fcn.180113150
mov esi, r12d
lea rdx, [rsp + 0x470]
lea rcx, [rsp + 0x480]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x1800e9682
mov ebx, dword [rsp + 0x470]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1800e97ec
lea rdx, [rsp + 0x470]
mov rcx, rax
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov rbx, qword [rsp + 0x58]
test eax, eax
jne 0x1800e97d0
lea rdi, [rsp + 0x480]
test r14, r14
cmovne rdi, r14
mov rax, rdi
nop dword [rax]
test rax, rax
je 0x1800e96b0
inc esi
mov dword [rsp + 0x68], esi
mov rax, qword [rax]
jmp 0x1800e96a0
mov eax, r12d
mov dword [rsp + 0x50], eax
cmp eax, r15d
jae 0x1800e96cc
mov rdi, qword [rdi]
test rdi, rdi
je 0x1800e97d0
inc eax
jmp 0x1800e96b3
test rdi, rdi
je 0x1800e97d0
cmp dword [rdi + 0x194], 0x400
ja 0x1800e97d0
lea r8, [rdi + 0xc]
mov rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp byte [r8 + rax], 0
jne 0x1800e96f0
lea r9d, [rax + 1]
mov dword [rsp + 0x28], 0x104
lea rcx, [rsp + 0x740]
mov qword [rsp + 0x20], rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test r13d, r13d
je 0x1800e974a
cmp esi, 1
jbe 0x1800e974a
lea r8, [rdi + 0x110]
lea rdx, [rsp + 0x740]
mov ecx, dword [rdi + 0x1a4]
call fcn.1800e93c0
test eax, eax
je 0x1800e97d0
mov rdi, qword [rdi + 0x198]
mov qword [rsp + 0x70], rdi
xor edx, edx
lea r8d, [rdx + 0x50]
mov rcx, rbx
call fcn.180113150
mov rax, rdi
shr rax, 0x28
movzx ebx, al
mov rax, rdi
shr rax, 0x20
movzx r11d, al
mov rax, rdi
shr rax, 0x18
movzx r10d, al
mov rax, rdi
shr rax, 0x10
movzx r8d, al
mov rax, rdi
shr rax, 8
movzx edx, al
movzx r9d, dil
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], edx
lea r8, str._02X__02X__02X__02X__02X__02X
mov edx, 0x4f
mov rcx, qword [rsp + 0x58]
call fcn.180010810
mov r12d, 1
test r14, r14
je 0x1800e97e9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, r12d
mov rcx, qword [rsp + 0x950]
xor rcx, rsp
call fcn.18010faf0
lea r11, [rsp + 0x960]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800e9820
Capabilities:
Get mac address on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x540
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x530], rax
mov qword [rsp + 0x48], r9
mov r13, r8
mov r12, rdx
mov r14d, ecx
xor r15d, r15d
mov dword [rsp + 0x50], r15d
mov esi, r15d
mov qword [rsp + 0x38], r15
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x320]
call fcn.180113150
mov edi, r15d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x1800e98c8
mov ebx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1800e99d5
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
nop
test eax, eax
jne 0x1800e99b9
lea rbx, [rsp + 0x60]
test rsi, rsi
cmovne rbx, rsi
mov rax, rbx
nop
test rax, rax
je 0x1800e98f0
inc edi
mov dword [rsp + 0x40], edi
mov rax, qword [rax]
jmp 0x1800e98e0
mov eax, r15d
mov dword [rsp + 0x30], eax
cmp eax, r14d
jae 0x1800e990c
mov rbx, qword [rbx]
test rbx, rbx
je 0x1800e99b9
inc eax
jmp 0x1800e98f3
test rbx, rbx
je 0x1800e99b9
cmp dword [rbx + 0x194], 0x400
ja 0x1800e99b9
lea r8, [rbx + 0xc]
mov rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp byte [r8 + rax], 0
jne 0x1800e9930
lea r9d, [rax + 1]
mov dword [rsp + 0x28], 0x104
lea rcx, [rsp + 0x320]
mov qword [rsp + 0x20], rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [rsp + 0x5a0], 0
je 0x1800e998b
cmp edi, 1
jbe 0x1800e998b
lea r8, [rbx + 0x110]
lea rdx, [rsp + 0x320]
mov ecx, dword [rbx + 0x1a4]
call fcn.1800e93c0
test eax, eax
je 0x1800e99b9
mov rax, qword [rbx + 0x198]
mov qword [r12], rax
lea rcx, [rbx + 0x1c0]
call sym.SafeBase64.dll_Str2IPAddr
mov dword [r13], eax
mov eax, dword [rbx + 0x1a4]
mov rcx, qword [rsp + 0x48]
mov dword [rcx], eax
mov r15d, 1
test rsi, rsi
je 0x1800e99d2
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, r15d
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x540
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800e9ba0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x358
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov qword [rsp + 0x60], rdx
mov rbp, rcx
xor edx, edx
lea rcx, [rsp + 0xa0]
mov r8d, 0x198
xor esi, esi
call fcn.180113150
mov ecx, 0x202
lea rdx, [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor edx, edx
lea rcx, [rsp + 0x240]
mov r8d, 0x100
call fcn.180113150
mov edx, 0x100
lea rcx, [rsp + 0x240]
call qword [sym.imp.WS2_32.dll_gethostname]
lea rcx, [rsp + 0x240]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rbx, rax
mov edi, esi
test rax, rax
je 0x1800e9e06
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
test rcx, rcx
je 0x1800e9c7b
mov ecx, dword [rcx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r8, rax
mov rax, rbp
sub r8, rbp
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1800e9c64
inc rax
test ecx, ecx
jne 0x1800e9c51
test edx, edx
je 0x1800e9c7b
add qword [rbx + 0x18], 8
inc edi
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1800e9c40
xorps xmm0, xmm0
mov qword [rsp + 0x68], rsi
lea r9, [rsp + 0x68]
mov dword [rsp + 0x74], 0x17
lea r8, [rsp + 0x70]
mov qword [rsp + 0x78], 1
lea rdx, str.3294
mov dword [rsp + 0x70], 1
lea rcx, [rsp + 0x240]
mov qword [rsp + 0x80], rsi
movdqu xmmword [rsp + 0x88], xmm0
mov qword [rsp + 0x98], rsi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x1800e9e06
mov qword [rsp + 0x390], r13
mov r13, qword [rsp + 0x68]
test r13, r13
je 0x1800e9dfe
mov eax, esi
test edi, edi
jle 0x1800e9d13
nop dword [rax + rax]
test r13, r13
je 0x1800e9dfe
mov r13, qword [r13 + 0x28]
inc eax
cmp eax, edi
jl 0x1800e9d00
test r13, r13
je 0x1800e9dfe
mov r13, qword [r13 + 0x20]
mov qword [rsp + 0x380], r12
mov qword [rsp + 0x398], r14
mov qword [rsp + 0x350], r15
movzx ecx, word [r13 + 0x16]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, word [r13 + 0x14]
movzx r12d, ax
call qword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, word [r13 + 0x12]
movzx r15d, ax
call qword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, word [r13 + 0x10]
movzx r14d, ax
call qword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, word [r13 + 0xe]
movzx ebp, ax
call qword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, word [r13 + 0xc]
movzx esi, ax
call qword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, word [r13 + 0xa]
movzx edi, ax
call qword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, word [r13 + 8]
movzx ebx, ax
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [rsp + 0x60]
lea r8, str._x__x__x__x__x__x__x__x
mov dword [rsp + 0x50], r12d
mov edx, 0x3f
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], edi
movzx r9d, ax
mov dword [rsp + 0x20], ebx
call fcn.180010810
mov r15, qword [rsp + 0x350]
mov esi, 1
mov r14, qword [rsp + 0x398]
mov r12, qword [rsp + 0x380]
mov r13, qword [rsp + 0x390]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, esi
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x358
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800ebe30
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [0x180159808]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800ebe7e
lea rcx, [rsp + 0x20]
call rax
test eax, eax
je 0x1800ebea5
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1800ebea5
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x158
ret
cmp dword [rsp + 0x30], 2
movzx eax, word [rsp + 0x134]
mov edx, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x28]
mov r8d, dword [rsp + 0x2c]
mov dword [0x180196888], eax
mov dword [0x180196890], edx
mov dword [0x180196894], ecx
mov dword [0x18019688c], r8d
jne 0x1800ebfd9
cmp edx, 5
jne 0x1800ebf2c
test ecx, ecx
jne 0x1800ebef6
mov dword [0x180196898], 1
jmp 0x1800ebfe1
cmp ecx, 1
jne 0x1800ebf0a
mov dword [0x180196898], 2
jmp 0x1800ebfe1
cmp ecx, 2
jne 0x1800ebfd9
movzx eax, byte [rsp + 0x13a]
sub al, cl
xor ecx, ecx
cmp al, 1
setbe cl
add ecx, 3
jmp 0x1800ebfdb
cmp edx, 6
jne 0x1800ebf8d
test ecx, ecx
jne 0x1800ebf48
cmp byte [rsp + 0x13a], 1
setne cl
add ecx, 5
jmp 0x1800ebfdb
cmp ecx, 1
jne 0x1800ebf5f
xor ecx, ecx
cmp byte [rsp + 0x13a], 1
setne cl
add ecx, 7
jmp 0x1800ebfdb
cmp ecx, 2
jne 0x1800ebf76
xor ecx, ecx
cmp byte [rsp + 0x13a], 1
setne cl
add ecx, 9
jmp 0x1800ebfdb
cmp ecx, 3
jne 0x1800ebfd9
xor ecx, ecx
cmp byte [rsp + 0x13a], 1
setne cl
add ecx, 0xb
jmp 0x1800ebfdb
cmp edx, 0xa
jne 0x1800ebfc0
test ecx, ecx
jne 0x1800ebfd9
cmp byte [rsp + 0x13a], 1
mov eax, ecx
setne al
add eax, 0xd
mov dword [0x180196898], eax
cmp r8d, 0x55f0
jl 0x1800ebfe1
cmp eax, 0xe
sete cl
add ecx, 0xf
jmp 0x1800ebfdb
cmp edx, 0xb
jne 0x1800ebfd9
test ecx, ecx
jne 0x1800ebfd9
cmp byte [rsp + 0x13a], 1
setne cl
add ecx, 0xf
jmp 0x1800ebfdb
xor ecx, ecx
mov dword [0x180196898], ecx
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x158
ret

Function at 0x1800ec1f0
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
lea rcx, [r11 - 0x48]
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov rax, qword [rsp + 0x20]
cmp ax, 9
je 0x1800ec24f
cmp ax, 6
je 0x1800ec24f
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x68
ret
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x68
ret
Function at 0x1800ecf20
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov ebp, edx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.180113150
mov ebx, 0x104
lea rcx, [rsp + 0x30]
xor edi, edi
mov edx, ebx
mov word [rsi], di
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
lea rax, [rsp + 0x30]
je 0x1800ecff1
mov ecx, ebx
nop word [rax + rax]
cmp word [rax], di
je 0x1800ecf8f
add rax, 2
sub rcx, 1
jne 0x1800ecf80
test rcx, rcx
je 0x1800ecf9c
mov rax, rbx
sub rax, rcx
jmp 0x1800ecf9f
mov rax, rdi
test rcx, rcx
je 0x1800ed030
lea rcx, [rsp + 0x30]
lea rcx, [rcx + rax*2]
sub rbx, rax
je 0x1800ed022
add rax, 0x7ffffefb
lea r8, [0x180163aa0]
add rax, rbx
sub r8, rcx
nop dword [rax]
test rax, rax
je 0x1800ed022
movzx edx, word [r8 + rcx]
test dx, dx
je 0x1800ed022
mov word [rcx], dx
dec rax
add rcx, 2
sub rbx, 1
jne 0x1800ecfd0
jmp 0x1800ed022
lea rdx, str.C:WindowsSystem32Shell32.dll
sub rdx, rax
lea rcx, [rsp + 0x30]
lea rax, [rbx + 0x7ffffefa]
test rax, rax
je 0x1800ed022
movzx eax, word [rdx + rcx]
test ax, ax
je 0x1800ed022
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x1800ed000
test rbx, rbx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], di
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1800ed0ac
lea rdx, str.SHGetKnownFolderPath
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800ed09b
lea r9, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea rcx, [0x180142610]
xor edx, edx
call rax
test eax, eax
jne 0x1800ed09b
mov r9, qword [rsp + 0x20]
lea r8, str._sDefaultAppDataLocalMicrosoftWindowsWSUS_
mov rdx, rbp
mov rcx, rsi
call fcn.1800e7db0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov edi, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x1800ed0ac
mov eax, edi
jmp 0x1800ed0c9
movzx r9d, word [rsp + 0x30]
lea r8, str._c:UsersDefaultAppDataLocalMicrosoftWindowsWSUS_
mov rdx, rbp
mov rcx, rsi
call fcn.1800e7db0
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18010faf0
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret