joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fcd10
Capabilities:
Get hostname

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x2a0
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rsi, qword [rsp + 0x2f8]
mov rbp, r9
mov rbx, r8
mov r14, rdx
mov rdi, rcx
test rdx, rdx
je 0x1400fce82
test rcx, rcx
je 0x1400fce82
test rbx, rbx
je 0x1400fce82
xor edx, edx
mov qword [rsp + 0x298], r15
mov r8d, 0x104
mov dword [rsp + 0x50], 0x103
lea rcx, [rsp + 0x60]
call fcn.140141ad0
xor edx, edx
lea rcx, [rsp + 0x170]
mov r8d, 0x104
call fcn.140141ad0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
xor r15d, r15d
cmp byte [rsp + 0x60], 0x5c
jne 0x1400fcdd6
mov eax, r15d
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rsp + rax + 0x60]
mov byte [rsp + rax + 0x170], cl
lea rax, [rax + 1]
test cl, cl
jne 0x1400fcdc0
jmp 0x1400fcdef
lea r8, [rsp + 0x60]
lea rdx, [0x140222970]
lea rcx, [rsp + 0x170]
call fcn.1400a61e0
lea rdx, [rsp + 0x170]
mov rcx, rdi
call fcn.140158904
test eax, eax
mov qword [rsi], r15
mov r8, rsi
mov rdx, r14
cmove rdi, r15
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
test eax, eax
jne 0x1400fce78
mov rcx, qword [rsi]
xor r8d, r8d
mov rdx, rbx
cmp dword [rsp + 0x2f0], r15d
je 0x1400fce67
lea rax, [rsp + 0x54]
mov dword [rsp + 0x54], r15d
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov r15, qword [rsp + 0x298]
jmp 0x1400fce87
mov r9d, 0xf003f
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov r15, qword [rsp + 0x298]
jmp 0x1400fce87
mov eax, gethostbyname
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140113910
add rsp, 0x2a0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400fceb0
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x240
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rdi, r8
mov dword [rsp + 0x20], gethostbyname
test rdx, rdx
je 0x1400fcf33
test rcx, rcx
je 0x1400fcf33
test r8, r8
je 0x1400fcf33
mov byte [rsp + 0x30], 0
mov qword [rax + 0x10], 0
lea r8, [rax + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
mov ebx, eax
mov dword [rsp + 0x20], eax
test eax, eax
jne 0x1400fcf29
mov rdx, rdi
mov rcx, qword [rsp + 0x258]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebx, eax
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x258]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x1400fcf2f
mov eax, ebx
jmp 0x1400fcf38
mov eax, gethostbyname
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
Function at 0x1400fcf50
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x40
mov rdi, r9
test rdx, rdx
je 0x1400fd000
test rcx, rcx
je 0x1400fd000
test r8, r8
je 0x1400fd000
test r9, r9
je 0x1400fd000
xor r9d, r9d
mov qword [r11 + 8], rbx
lea rax, [r11 - 0x18]
mov qword [r11 - 0x18], r9
mov qword [r11 - 0x20], rax
mov dword [r11 - 0x28], r9d
mov qword [r11 + 0x10], r9
lea r9, [r11 + 0x10]
call fcn.1400fcd10
mov ebx, eax
test eax, eax
jne 0x1400fcfe3
mov rax, qword [rsp + 0x80]
xor r8d, r8d
mov r9, qword [rsp + 0x70]
mov rdx, rdi
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400fcff3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov eax, gethostbyname
add rsp, 0x40
pop rdi
ret

Function at 0x1400fd010
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x40
mov rdi, r9
test rdx, rdx
je 0x1400fd0bf
test rcx, rcx
je 0x1400fd0bf
test r8, r8
je 0x1400fd0bf
xor eax, eax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x20], eax
call fcn.1400fcd10
mov ebx, eax
test eax, eax
jne 0x1400fd0a2
mov eax, dword [rsp + 0x78]
xor r8d, r8d
mov r9d, dword [rsp + 0x80]
mov rdx, rdi
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400fd0b2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov eax, gethostbyname
add rsp, 0x40
pop rdi
ret
Function at 0x1400fd0d0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Get common file path
Set current directory
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x4a0
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x490], rax
lea r9, [rsp + 0x270]
mov rbx, r8
sub r9, rdx
mov rdi, rdx
mov ebp, ecx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx]
mov byte [r9 + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400fd110
lea rcx, [rsp + 0x270]
call fcn.1400f7c20
lea rcx, [rsp + 0x270]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400fd140
xor edx, edx
nop dword [rax]
movzx eax, byte [rbx + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400fd150
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400fd243
lea rbx, [rsp + 0x160]
sub rbx, rdi
nop word [rax + rax]
mov rcx, rdi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rbx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400fd1a0
lea rcx, [rsp + 0x160]
call fcn.1400f7c20
lea rax, [rsp + 0x160]
dec rax
cmp byte [rax + 1], 0
lea rax, [rax + 1]
jne 0x1400fd1c6
lea r8, [rsp + 0x4c]
xor edx, edx
nop word [rax + rax]
movzx ecx, byte [r8 + rdx]
mov byte [rax + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x1400fd1e0
mov edx, 0x80
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, pe_nt_image_headers64
call fcn.140141ad0
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x1400fd190
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
test ebp, ebp
je 0x1400fd298
lea rdx, [rsp + 0x380]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, 0x104
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea rcx, [rsp + 0x380]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, ebx
jmp 0x1400fd29a
xor eax, eax
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.140113910
mov rbx, qword [rsp + 0x4c0]
add rsp, 0x4a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400fd2c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rsi, rcx
mov rbx, rdx
lea rcx, [rsp + 0x28]
xor edi, edi
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x1400fd3fb
lea r8, [rsp + 0x20]
mov rcx, rsi
lea edx, [rdi + 2]
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x1400fd37c
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
js 0x1400fd36b
lea rcx, [rsp + 0x30]
call fcn.1400f7c20
lea rcx, [rsp + 0x30]
dec rcx
nop dword [rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x1400fd340
xor edx, edx
nop dword [rax]
movzx eax, byte [rbx + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400fd350
lea rcx, [rsp + 0x30]
call fcn.1400fd430
mov edi, eax
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
mov r8, qword [rcx]
call qword [r8 + 0x28]
lea r8, [rsp + 0x20]
mov edx, reloc.WS2_32.dll_socket
mov rcx, rsi
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x1400fd3fb
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
js 0x1400fd3eb
lea rcx, [rsp + 0x30]
call fcn.1400f7c20
lea rcx, [rsp + 0x30]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400fd3c0
xor edx, edx
nop dword [rax]
movzx eax, byte [rbx + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400fd3d0
lea rcx, [rsp + 0x30]
call fcn.1400fd430
mov edi, eax
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov eax, edi
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140113910
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400fd430
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x390
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov rdi, rcx
mov esi, 1
test rcx, rcx
je 0x1400fd616
cmp byte [rcx], 0
je 0x1400fd616
call fcn.1400faf30
test eax, eax
jne 0x1400fd479
mov eax, esi
jmp 0x1400fd618
lea rdx, [rsp + 0x270]
mov qword [rsp + 0x3b0], rbp
sub rdx, rdi
mov rcx, rdi
nop
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400fd490
lea rcx, [rsp + 0x270]
call fcn.1400f7c20
lea rcx, [rsp + 0x270]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400fd4b6
mov eax, dword [0x1402895a0]
lea rdx, [rsp + 0x20]
mov dword [rcx], eax
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400fd601
mov qword [rsp + 0x3a8], rbx
lea rbx, [rsp + 0x160]
sub rbx, rdi
nop dword [rax + rax]
mov rax, rdi
movzx ecx, byte [rax]
mov byte [rbx + rax], cl
inc rax
test cl, cl
jne 0x1400fd503
lea rcx, [rsp + 0x160]
call fcn.1400f7c20
lea rcx, [rsp + 0x160]
dec rcx
inc rcx
cmp byte [rcx], 0
jne 0x1400fd528
lea r8, [rsp + 0x4c]
xor edx, edx
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400fd540
test byte [rsp + 0x20], 0x10
je 0x1400fd59d
movzx ecx, byte [rsp + 0x4c]
cmp cl, byte [0x140285d2c]
movzx eax, byte [rsp + 0x4d]
jne 0x1400fd571
cmp al, byte [0x140285d2d]
je 0x1400fd5c0
cmp cl, byte [0x1402895a4]
jne 0x1400fd58e
cmp al, byte [0x1402895a5]
jne 0x1400fd58e
movzx eax, byte [rsp + 0x4e]
cmp al, byte [0x1402895a6]
je 0x1400fd5c0
lea rcx, [rsp + 0x160]
call fcn.1400fd430
jmp 0x1400fd5be
mov edx, 0x80
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, pe_nt_image_headers64
call fcn.140141ad0
test esi, esi
je 0x1400fd5e6
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x1400fd5e8
xor eax, eax
test eax, eax
jne 0x1400fd500
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x3a8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov rbp, qword [rsp + 0x3b0]
mov eax, esi
jmp 0x1400fd618
xor eax, eax
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.140113910
mov rsi, qword [rsp + 0x3b8]
add rsp, 0x390
pop rdi
ret
Function at 0x1400fd6d0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rcx
cmp dword [0x1403128c4], 0
jne 0x1400fd901
cmp dword [0x1403128c0], 0
jne 0x1400fd901
mov byte [rbp - 0x69], 0x30
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x61], xmm0
xor esi, esi
mov qword [rbp - 0x51], rsi
lea r8, [rbp - 0x69]
mov edx, 0x104
lea rcx, [rbp - 0x61]
call fcn.1400fdaf0
nop
mov edx, 0x104
mov rbx, qword [rbp - 0x61]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov qword [rbp - 0x29], rsi
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x21], reloc.WSOCK32.dll_ntohs
mov qword [rbp - 0x29], rsi
mov byte [rbp - 0x39], sil
cmp byte [rbx], sil
jne 0x1400fd777
mov r8d, esi
jmp 0x1400fd78a
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x1400fd780
mov rdx, rbx
lea rcx, [rbp - 0x39]
call fcn.140009d60
nop
mov r8d, reloc.WSOCK32.dll_ioctlsocket
lea rdx, str.wsock32.dll
lea rcx, [rbp - 0x39]
call fcn.140015630
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 0x27]
call fcn.1400221f0
nop
lea rdx, [rbp + 0x27]
lea rcx, [rbp + 7]
call fcn.140030f50
nop
lea rcx, [rbp + 0x27]
call fcn.1400091f0
lea r9, [0x1403128c8]
lea r8, [0x1403128d0]
lea rdx, [0x1403128c0]
lea rcx, [rbp + 7]
call fcn.1400312d0
mov rdx, rdi
lea rcx, [rbp - 0x19]
call fcn.140030f50
nop
lea r9, [0x1403128c8]
lea r8, [0x1403128d0]
lea rdx, [0x1403128c8]
lea rcx, [rbp - 0x19]
call fcn.1400311a0
nop
lea rax, [rbp - 0x19]
mov qword [rbp - 0x49], rax
lea rcx, [rbp - 0x19]
call fcn.1400091f0
nop
lea rax, [rbp + 7]
mov qword [rbp - 0x49], rax
lea rcx, [rbp + 7]
call fcn.1400091f0
nop
mov rax, qword [rbp - 0x21]
cmp rax, 0x10
jb 0x1400fd896
inc rax
mov rcx, qword [rbp - 0x39]
cmp rax, 0x1000
jb 0x1400fd891
test cl, 0x1f
je 0x1400fd864
call fcn.14014b4d8
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400fd873
call fcn.14014b4d8
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400fd882
call fcn.14014b4d8
int3
cmp rcx, 0x27
jbe 0x1400fd88e
call fcn.14014b4d8
int3
mov rcx, rax
call fcn.1400dbae0
mov qword [rbp - 0x21], reloc.WSOCK32.dll_ntohs
mov qword [rbp - 0x29], rsi
mov byte [rbp - 0x39], 0
mov rax, qword [rbp - 0x51]
sub rax, rbx
cmp rax, 0x1000
jb 0x1400fd8ed
test bl, 0x1f
je 0x1400fd8c0
call fcn.14014b4d8
int3
mov rax, qword [rbx - 8]
cmp rax, rbx
jb 0x1400fd8cf
call fcn.14014b4d8
int3
sub rbx, rax
cmp rbx, 8
jae 0x1400fd8de
call fcn.14014b4d8
int3
cmp rbx, 0x27
jbe 0x1400fd8ea
call fcn.14014b4d8
int3
mov rbx, rax
mov rcx, rbx
call fcn.1400dbae0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x61], xmm0
mov qword [rbp - 0x51], rsi
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140113910
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400fe050
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx]
mov r9d, 0x270
mov rbx, rcx
cmp eax, r9d
jne 0x1400fe0ab
lea r8, [rcx + 8]
nop word [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x1400fe070
jmp 0x1400fe0b7
cmp eax, 0x4e0
jb 0x1400fe0b7
call fcn.1400fe3e0
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 0x20
pop rbx
ret

Function at 0x1400fe3e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r10, rcx
lea r9, [rcx + 0x9c4]
mov r11d, 0xe3
mov edx, dword [r9]
xor edx, dword [r9 + 4]
lea r9, [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x630]
xor ecx, edx
mov dword [r9 - 0x9c4], ecx
sub r11, 1
jne 0x1400fe3f0
lea r9, [r10 + 0xd50]
mov r11d, 0x18c
nop word [rax + rax]
mov edx, dword [r9]
xor edx, dword [r9 + 4]
lea r9, [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 - 0xd50]
xor ecx, edx
mov dword [r9 - 0x9c4], ecx
sub r11, 1
jne 0x1400fe440
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov dword [r10], r11d
ret
Function at 0x1400ff040
Capabilities:
Access firewall policy via inetfwpolicy2
Access firewall settings via inetfwmgr

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x1400ff081
cmp eax, 0x80010106
je 0x1400ff08f
jmp 0x1400ff0dd
cmp eax, 0x80010106
je 0x1400ff08f
mov dword [rbx + 0xc], 1
lea rax, [rbx + 0x18]
mov qword [rsp + 0x20], rax
lea r9, [0x1402237a0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140223790]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rsp + 0x30], eax
lea rax, [rbx + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [0x1402237c0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1402237b0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rsp + 0x30], eax
test eax, eax
js 0x1400ff14b
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400ff14b
mov dword [rbx + 0x10], 1
mov rax, qword [rcx]
lea rdx, [rbx + 0x20]
call qword [rax + gethostname]
mov dword [rsp + 0x30], eax
test eax, eax
js 0x1400ff14b
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400ff14b
mov rax, qword [rcx]
lea r8, [rbx + 0x28]
xor edx, edx
call qword [rax + 0x40]
mov dword [rsp + 0x30], eax
test eax, eax
js 0x1400ff14b
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x1400ff13a
mov rax, qword [rcx]
lea rdx, [rbx + 0x58]
call qword [rax + 0x90]
mov dword [rsp + 0x30], eax
test eax, eax
js 0x1400ff14b
cmp qword [rbx + 0x28], rsi
je 0x1400ff14b
mov dword [rbx + 8], 1
cmp dword [rbx + 8], esi
jne 0x1400ff1aa
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400ff15f
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbx + 0x20], rsi
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400ff172
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbx + 0x18], rsi
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x1400ff185
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbx + 0x50], rsi
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1400ff198
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbx + 0x58], rsi
cmp dword [rbx + 0xc], esi
je 0x1400ff1a7
call qword [sym.imp.ole32.dll_CoUninitialize]
mov dword [rbx + 0xc], esi
mov eax, dword [rbx + 8]
jmp 0x1400ff1b7
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140100290
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x50
mov qword [rax - 0x10], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rdi, rdx
mov rsi, rcx
mov dword [rax - 0x28], 5
mov qword [rax - 0x20], 0
lea r8, [rax - 0x20]
call fcn.1400ffff0
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x140100396
mov rdx, rdi
mov rcx, rsi
call fcn.1401003c0
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x140100386
mov rdx, rdi
mov rcx, rsi
call fcn.1401000e0
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x140100371
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xc0000000
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x140100371
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x80]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, qword [rsp + 0x38]
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call fcn.1401001d0
jmp 0x14010038b
mov r14, qword [rsp + 0x38]
xor edx, edx
mov rcx, r14
call fcn.1401139ac
nop
mov eax, ebx
jmp 0x14010039e
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x1401006b0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov rdi, rcx
xor esi, esi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x140100704
xor al, al
jmp 0x1401008df
mov qword [rbp - 0x28], rsi
lea rcx, [rbp - 0x28]
call fcn.140100ce0
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
lea r9, [0x140226148]
mov r14d, 1
mov r8d, r14d
xor edx, edx
lea rcx, [0x140226138]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1401008d1
cmp qword [rbp - 0x28], 0
je 0x1401008d1
mov qword [rbp - 0x30], rsi
mov rbx, qword [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140100d30
mov rax, qword [rbx]
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ROOTCIMV2TerminalServices
mov rcx, rbx
call qword [rax + 0x18]
test eax, eax
js 0x1401008c4
cmp qword [rbp - 0x30], 0
je 0x1401008c4
mov qword [rbp + 0x48], rsi
mov rbx, qword [rbp - 0x30]
lea rcx, [rbp + 0x48]
call fcn.140100c40
mov rax, qword [rbx]
lea rcx, [rbp + 0x48]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rsi
lea r9d, [r14 + 0x1f]
lea r8, str.SELECT_LicensingType__TerminalServerMode_FROM_Win32_TerminalServiceSetting
lea rdx, [0x140223de8]
mov rcx, rbx
call qword [rax + 0xa0]
test eax, eax
js 0x1401008b7
cmp qword [rbp + 0x48], 0
je 0x1401008b7
mov qword [rbp + 0x40], rsi
mov dword [rbp + 0x38], esi
mov rbx, qword [rbp + 0x48]
lea rcx, [rbp + 0x40]
call fcn.140100c90
mov rax, qword [rbx]
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x40]
mov r8d, r14d
or edx, 0xffffffff
mov rcx, rbx
call qword [rax + 0x20]
test eax, eax
js 0x1401008aa
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x1401008aa
mov rax, qword [rcx]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x18]
xor r8d, r8d
lea rdx, str.LicensingType
call qword [rax + 0x20]
test eax, eax
js 0x1401008aa
xor bl, bl
movzx ecx, word [rbp - 0x10]
lea eax, [rcx - 2]
mov edx, 0xfffd
test dx, ax
jne 0x140100876
test rdi, rdi
je 0x140100872
movzx eax, cx
mov dword [rdi], eax
mov bl, 1
jmp 0x1401008ac
mov rcx, qword [rbp + 0x40]
mov rax, qword [rcx]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x18]
xor r8d, r8d
lea rdx, str.TerminalServerMode
call qword [rax + 0x20]
test eax, eax
js 0x1401008aa
movzx ebx, bl
cmp word [rbp - 0x10], 1
cmove ebx, r14d
jmp 0x1401008ac
xor bl, bl
lea rcx, [rbp + 0x40]
call fcn.140100c90
jmp 0x1401008b9
xor bl, bl
lea rcx, [rbp + 0x48]
call fcn.140100c40
jmp 0x1401008c6
xor bl, bl
lea rcx, [rbp - 0x30]
call fcn.140100d30
jmp 0x1401008d3
xor bl, bl
lea rcx, [rbp - 0x28]
call fcn.140100ce0
movzx eax, bl
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret