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

Disassembly:
sub cl, byte [rdi]
test byte [rsi + rcx*2 + 0x75], dh
jmp 0x169985c
test byte [rsi + 0xf000002], dh
test dword [rax + 2], esi
add byte [rax], al
add byte [rax - 0x3f7bc3fc], cl
mov rax, qword [rcx + 0x10]
mov edx, dword [rcx + 0x3c]
jmp 0x89020a
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 8], 0x5b41
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 0xa], 0x5a41
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 0xc], 0x5941
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 0xe], 0x5841
je 0x8902b4
jne 0x8902b4
jmp 0x1f7eb52
ret
mov qword [rcx + 0x10], rdx
jmp 0x890385
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 6], 0x5c41
jmp 0x89014e
cmp edx, 0x8664
je 0x8902d1
cmp edx, 0x14c
jne 0x89018b
je 0x89026b
jne 0x89026b
jmp 0x898bbe
jne 0x8902c6
add byte [rax], al
add byte [rax], al
jmp 0x890193
jne 0x890342
je 0x10d28d3d
mov r9, qword [rcx + 0x10]
lea rdx, [r9 + 1]
mov qword [rcx + 0x10], rdx
je 0x890303
jne 0x890303
jmp 0x8902f4
je 0x890285
jne 0x890285
add byte [rax], al
add byte [rax], al
mov rdx, qword [rcx + 8]
mov byte [rdx + r8], 0x58
mov qword [rcx + 0x10], r9
jmp 0x89018b
mov rdx, qword [rcx + 8]
mov byte [r9 + rdx + 0x11], 0x5e
mov rdx, qword [rcx + 8]
je 0x89028c
jne 0x89028c
je 0x2994706
mov byte [rax + rdx + 2], 0x5d
pop rbp
je 0x890342
jmp 0x8901e5
mov byte [rax + rdx + 4], 0x5a
mov rdx, qword [rcx + 8]
lea r8, [rax + 6]
je 0x8902c6
jmp 0x8901d7
mov byte [rax + rdx + 3], 0x5b
mov rdx, qword [rcx + 8]
jmp 0x89024b
mov rdx, qword [rcx + 8]
mov byte [rdx + rax], 0x5f
mov rdx, qword [rcx + 8]
mov byte [rax + rdx + 1], 0x5e
mov rdx, qword [rcx + 8]
je 0x89023c
jne 0x89023c
jmp 0x882972
jmp 0x8901b0
jne 0x8902f4
mov byte [r9 + rdx + 0x12], 0x5d
mov rdx, qword [rcx + 8]
mov byte [r9 + rdx + 0x13], 0x5b
mov rdx, qword [rcx + 8]
mov byte [r9 + rdx + 0x14], 0x5a
mov rdx, qword [rcx + 8]
mov byte [r9 + rdx + 0x15], 0x59
jmp 0x8902dd
je 0x8da8e00
mov rdx, qword [rcx + 8]
mov byte [r9 + rdx + 0x10], 0x5f
jmp 0x890228
jne 0x890317
jmp 0x5994790
mov byte [rax + rdx + 5], 0x59
lea r9, [rax + 7]
jmp 0x8902e5
mov r8, qword [rcx + 8]
lea rdx, [rax + 1]
jmp 0x890339
lea r8, [r9 + 0x16]
add r9, 0x17
je 0x890212
jne 0x890212
jmp 0x8902b2
jmp 0x8901a0
je 0x890317
jmp 0x8902c3
mov byte [r8 + r9], 0x8b
mov r8, qword [rcx + 8]
mov r9, qword [rcx + 0x10]
je 0x890383
jne 0x890383
jmp 0x890317
mov qword [rcx + 0x10], rdx
mov byte [r8 + r9], 0xe5
mov r8, qword [rcx + 8]
mov r9, qword [rcx + 0x10]
lea rdx, [r9 + 1]
jmp 0x89035d
lea rdx, [r9 + 1]
jmp 0x8902f9
mov qword [rcx + 0x10], rdx
je 0x89036d
jne 0x89036d
jmp 0x8da8e8e
mov rdx, qword [rcx + 8]
je 0x89025f
jne 0x89025f
je 0x881641
inc dword [rax]
add byte [rax], al
add byte [rdi], cl
test byte [rsi - 2], bh
invalid
je 0x8901e1
jne 0x8901e1
add byte [rax], al
add byte [rax], al
mov byte [r8 + rax], 0x48
mov r8, qword [rcx + 8]
je 0x8901ed
jne 0x8901ed
jmp 0xffffffffc6ccae72
jmp 0x89032f
mov byte [r8 + r9], 0x5d
mov r8, qword [rcx + 8]
mov r9, qword [rcx + 0x10]
mov word [r8 + r9], 0x5f41
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 2], 0x5e41
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 4], 0x5d41
je 0x8902f4
jmp 0x89028a
invalid
Function at 0x89a860
Capabilities:
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
jmp 0x89aab8
mov edi, edx
jmp 0x89ab91
je 0x89aabe
jne 0x89aabe
je 0x53df0218
push rsi
push rdi
push rbp
push rbx
jmp 0x89abba
sub rsp, 0xa8
jmp 0x89a9b8

Function at 0x8a8c50
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, dword [rdx]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x18], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x1c], eax
lea rax, [rdx + 0x10]
cmp r8d, 0x100
cmovne rax, rdx
lea r8, str.expand_32_byte_kexpand_16_byte_k
lea r9, [0x008bfbe0]
cmove r9, r8
mov edx, dword [rax]
mov dword [rcx + 0x20], edx
mov edx, dword [rax + 4]
mov dword [rcx + 0x24], edx
mov edx, dword [rax + 8]
mov dword [rcx + 0x28], edx
mov eax, dword [rax + 0xc]
mov dword [rcx + 0x2c], eax
mov dword [rcx], 0x61707865
mov rax, qword [r9 + 4]
mov qword [rcx + 4], rax
mov eax, dword [r9 + 0xc]
mov dword [rcx + 0xc], eax
ret

Function at 0x8a8d90
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov qword [rsp + 0x50], rcx
mov eax, dword [rdx]
mov dword [rsp + 0xc], eax
mov eax, dword [rdx + 4]
mov dword [rsp + 0x10], eax
mov eax, dword [rdx + 8]
mov dword [rsp + 0x14], eax
mov r12d, dword [rdx + 0xc]
mov r13d, dword [rdx + 0x10]
mov r14d, dword [rdx + 0x14]
mov r15d, dword [rdx + 0x18]
mov r10d, dword [rdx + 0x1c]
mov edi, dword [rdx + 0x20]
mov r11d, dword [rdx + 0x24]
mov ebx, dword [rdx + 0x28]
mov ebp, dword [rdx + 0x2c]
mov ecx, dword [rdx + 0x30]
mov eax, dword [rdx + 0x34]
mov r9d, dword [rdx + 0x38]
mov r8d, dword [rdx + 0x3c]
mov dword [rsp + 0x4c], 0xfffffff8
mov dword [rsp + 0x48], r8d
mov dword [rsp + 0x44], r9d
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x3c], ecx
mov edx, ecx
mov dword [rsp + 0x38], ebp
mov dword [rsp + 8], ebp
mov dword [rsp + 0x34], ebx
mov dword [rsp], ebx
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x2c], edi
mov ebp, edi
mov dword [rsp + 0x28], r10d
mov edi, r10d
mov dword [rsp + 0x24], r15d
mov dword [rsp + 0x20], r14d
mov ebx, r14d
mov dword [rsp + 0x1c], r13d
mov dword [rsp + 0x18], r12d
mov r14d, r12d
mov r12d, dword [rsp + 0x14]
mov r10d, dword [rsp + 0x10]
mov ecx, dword [rsp + 0xc]
nop

Function at 0x8aed00
Capabilities:
Hash data using sha512

Disassembly:
test rcx, rcx
je 0x8aed8b
mov qword [rcx + 0x48], 0
mov qword [rcx], 0
movabs rax, 0x6a09e667f3bcc908
mov qword [rcx + 8], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 0x10], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x18], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x20], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x28], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x30], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x38], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rcx + 0x40], rax
xor eax, eax
ret
mov eax, 1
ret
Function at 0x8af7b0
Capabilities:
Encrypt data using curve25519

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rsi, rdx
mov rdi, rcx
mov edx, 0x20
mov rcx, r8
mov r8, rsi
call fcn.008af520
and byte [rsi], 0xf8
mov al, byte [rsi + 0x1f]
and al, 0x3f
or al, 0x40
mov byte [rsi + 0x1f], al
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov rdx, rsi
call fcn.008ac170
mov rcx, rdi
mov rdx, rbx
call fcn.008ac0f0
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
ret
Function at 0x8af810
Capabilities:
Encrypt data using curve25519

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x198
mov qword [rsp + 0x28], rcx
xor eax, eax
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
mov byte [rsp + rax + 0x30], cl
add rax, 1
cmp rax, 0x20
jne 0x8af830
and byte [rsp + 0x30], 0xf8
mov al, byte [rsp + 0x4f]
and al, 0x3f
or al, 0x40
mov byte [rsp + 0x4f], al
lea rbp, [rsp + 0x140]
mov rcx, rbp
call fcn.008a9570
lea rbx, [rsp + 0x170]
mov rcx, rbx
call fcn.008a9200
lea rsi, [rsp + 0xb0]
mov rcx, rsi
mov rdx, rbp
mov r8, rbx
call fcn.008a9220
mov rcx, rbx
mov rdx, rbx
mov r8, rbp
call fcn.008ab4a0
mov rcx, rbx
mov rdx, rbx
call fcn.008a9800
mov rcx, rbp
mov rdx, rsi
mov r8, rbx
call fcn.008a9fa0
lea rcx, [rsp + 0x80]
call fcn.008a9200
lea rdi, [rsp + 0x110]
mov rcx, rdi
call fcn.008a91e0
lea rcx, [rsp + 0x50]
mov rdx, rbp
call fcn.008a9550
lea r14, [rsp + 0xe0]
mov rcx, r14
call fcn.008a9200
mov r13d, 0xfe
xor r15d, r15d
nop word cs:[rax + rax]
nop
mov ebp, r15d
mov eax, r13d
shr rax, 3
movzx r15d, byte [rsp + rax + 0x30]
mov ecx, r13d
and cl, 7
shr r15d, cl
and r15d, 1
xor ebp, r15d
lea rsi, [rsp + 0x80]
mov rcx, rsi
lea r12, [rsp + 0x50]
mov rdx, r12
mov r8d, ebp
call fcn.008a93b0
mov rcx, rdi
mov rdx, r14
mov r8d, ebp
call fcn.008a93b0
lea rbp, [rsp + 0xb0]
mov rcx, rbp
mov rdx, r12
mov r8, r14
call fcn.008ab4a0
mov rcx, rbx
mov rdx, rsi
mov r8, rdi
call fcn.008ab4a0
mov rcx, rsi
mov rdx, rsi
mov r8, rdi
call fcn.008a9220
mov rcx, rdi
mov rdx, r12
mov r8, r14
call fcn.008a9220
mov rcx, r14
mov rdx, rbp
mov r8, rsi
call fcn.008a9fa0
mov rcx, rdi
mov rdx, rdi
mov r8, rbx
call fcn.008a9fa0
mov rcx, rbp
mov rdx, rbx
call fcn.008a9a90
mov rcx, rbx
mov rdx, rsi
call fcn.008a9a90
mov rcx, r12
mov rdx, r14
mov r8, rdi
call fcn.008a9220
mov rcx, rdi
mov rdx, r14
mov r8, rdi
call fcn.008ab4a0
mov rcx, rsi
mov rdx, rbx
mov r8, rbp
call fcn.008a9fa0
mov rcx, rbx
mov rdx, rbx
mov r8, rbp
call fcn.008ab4a0
mov rcx, rdi
mov rdx, rdi
call fcn.008a9a90
mov rcx, r14
mov rdx, rbx
call fcn.008aaae0
mov rcx, r12
mov rdx, r12
call fcn.008a9a90
mov rcx, rbp
mov rdx, rbp
mov r8, r14
call fcn.008a9220
mov rcx, r14
lea rdx, [rsp + 0x140]
mov r8, rdi
call fcn.008a9fa0
mov rcx, rdi
mov rdx, rbx
mov r8, rbp
call fcn.008a9fa0
add r13d, 0xffffffff
cmp r13d, 0xffffffff
jne 0x8af900
lea rsi, [rsp + 0x80]
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov r8d, r15d
call fcn.008a93b0
lea rdi, [rsp + 0x110]
lea rdx, [rsp + 0xe0]
mov rcx, rdi
mov r8d, r15d
call fcn.008a93b0
mov rcx, rdi
mov rdx, rdi
call fcn.008a9800
mov rcx, rsi
mov rdx, rsi
mov r8, rdi
call fcn.008a9fa0
mov rcx, qword [rsp + 0x28]
mov rdx, rsi
call fcn.008aa810
add rsp, 0x198
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140013210
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x14008f010]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
lea rcx, [0x14009a7b9]
call fcn.140069c34
xor eax, eax
mov dword [rsp + 0x20], 0x114
xor edx, edx
mov qword [rbx + 8], rax
mov r8d, pe_nt_image_headers64
mov qword [rbx + 0x10], rax
lea rcx, [rsp + 0x24]
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], rax
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
mov byte [rbx], al
call fcn.140024ac0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x14001329c
cmp dword [rsp + 0x24], 6
jb 0x14001329c
mov byte [rbx], 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140020d90
add rsp, 0x150
pop rbx
ret

Function at 0x1400132e0
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rsi, rcx
lea rcx, [0x14009a7b9]
call fcn.140069c34
lea rdx, str.wintrust.dll
lea rcx, [rsp + 0x28]
call fcn.140003220
nop
call fcn.140016130
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.140016210
mov rbx, rax
lea rcx, [rsp + 0x28]
call fcn.1400031f0
lea rdx, str.crypt32.dll
lea rcx, [rsp + 0x48]
call fcn.140003220
nop
call fcn.140016130
mov rcx, rax
lea rdx, [rsp + 0x48]
call fcn.140016210
mov rdi, rax
lea rcx, [rsp + 0x48]
call fcn.1400031f0
test rbx, rbx
je 0x140013443
test rdi, rdi
je 0x140013443
lea rdx, str.CryptCATAdminCalcHashFromFileHandle
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 8], rax
lea rdx, str.CryptCATAdminAcquireContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x10], rax
lea rdx, str.CryptCATAdminEnumCatalogFromHash
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x18], rax
lea rdx, str.CryptCATCatalogInfoFromContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x20], rax
lea rdx, str.CryptCATAdminReleaseCatalogContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x28], rax
lea rdx, str.CryptCATAdminReleaseContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x30], rax
lea rdx, str.WTHelperProvDataFromStateData
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x38], rax
lea rdx, str.WTHelperGetProvSignerFromChain
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x40], rax
lea rdx, str.WinVerifyTrust
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x48], rax
lea rdx, str.CertNameToStrW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x50], rax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140011249
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x140011900
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x148]
lea rcx, [0x1400240a0]
call fcn.140011415
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp + 8], rax
movzx eax, word [rbp + 0x120]
mov word [rbp + 0x24], ax
movzx eax, word [rbp + 0x128]
mov word [rbp + 0x26], ax
mov edx, dword [rbp + 0x24]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ac00]
call fcn.1400113a2
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x14001125d
Capabilities:
Terminate process

Disassembly:
jmp 0x140013b20
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011302
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014e70
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014e90
xor al, al
jmp 0x140014f11
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014ea3
xor al, al
jmp 0x140014f11
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014ecd
xor al, al
jmp 0x140014f11
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014ee1
xor al, al
jmp 0x140014f11
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014ef3
xor al, al
jmp 0x140014f11
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014f0f
xor al, al
jmp 0x140014f11
mov al, 1
add rsp, 0x38
ret
Function at 0x140f796c4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f796ce
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f796f7
pop rbp
sub rbp, 0x33
sub rbp, 0xf796c4
sub rsp, 0x20
jmp 0x140f79716
mov rax, 0xf796c4
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffff8faa2f9e
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f79735
jmp 0x140f7974c
invalid
Function at 0x1800015c0
Capabilities:
Get session user name
List groups for user account

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x250
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.180024ab0
lea rdx, [rsp + 0x278]
mov dword [rsp + 0x278], 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor edi, edi
lea rax, [rsp + 0x280]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x40]
lea rax, [rsp + 0x270]
mov qword [rsp + 0x288], rdi
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rsp + 0x288]
mov dword [rsp + 0x28], 0xffffffff
lea r9d, [rdi + 1]
mov qword [rsp + 0x20], rax
xor ecx, ecx
mov dword [rsp + 0x270], edi
xor sil, sil
mov dword [rsp + 0x280], edi
call qword [sym.imp.NETAPI32.dll_NetUserGetLocalGroups]
test eax, eax
jne 0x1800016b8
mov rbx, qword [rsp + 0x288]
test rbx, rbx
je 0x1800016cb
cmp dword [rsp + 0x270], edi
jbe 0x1800016b8
test rbx, rbx
je 0x1800016b8
mov rcx, qword [rbx]
lea rdx, str.Administrators
call fcn.180023c60
test rax, rax
jne 0x1800016b5
mov rcx, qword [rbx]
lea rdx, str.Domain_Admins
call fcn.180023c60
test rax, rax
jne 0x1800016b5
add rbx, 8
inc edi
cmp edi, dword [rsp + 0x270]
jb 0x180001677
jmp 0x1800016b8
mov sil, 1
mov rcx, qword [rsp + 0x288]
test rcx, rcx
je 0x1800016cb
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
movzx eax, sil
add rsp, 0x250
pop rdi
pop rsi
pop rbx
ret
Function at 0x180001760
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x668
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.180024ab0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8d, 0x104
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rcx, rax
lea rdx, [0x18003e210]
call fcn.1800273c0
test eax, eax
je 0x180001975
mov qword [rsp + 0x680], rbx
mov ecx, 0x410
mov qword [rsp + 0x688], rsi
xor ebx, ebx
mov qword [rsp + 0x670], rbx
mov edx, 0x104
mov rax, qword gs:[0x30]
mov qword [rsp + 0x660], rdi
lea rdi, [rsp + 0x250]
mov rsi, qword [rax + 0x60]
xor eax, eax
rep stosb byte [rdi], al
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
jbe 0x180001831
lea r8, str.c:windows_
mov edx, 0x208
lea rcx, [rsp + 0x250]
call fcn.1800272c8
lea r8, [0x18003e2d0]
mov edx, 0x208
lea rcx, [rsp + 0x250]
call fcn.1800277e4
lea r8, [0x180048a48]
mov edx, 0x208
lea rcx, [rsp + 0x250]
call fcn.1800277e4
mov rdi, 0xffffffffffffffff
mov dword [rsp + 0x28], 4
mov rcx, rdi
mov qword [rsp + 0x678], 0x1000
lea r9, [rsp + 0x678]
mov dword [rsp + 0x20], 0x3000
xor r8d, r8d
lea rdx, [rsp + 0x670]
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
mov rcx, qword [rsp + 0x670]
test rcx, rcx
je 0x18000195d
lea r8, [rsp + 0x250]
mov edx, 0x208
call fcn.1800272c8
mov rcx, qword [rsi + 0x38]
call qword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov rcx, qword [rsp + 0x670]
mov rdx, qword [rsi + 0x20]
test rcx, rcx
je 0x1800018f4
mov rax, rdi
inc rax
cmp word [rcx + rax*2], bx
jne 0x1800018e3
add ax, ax
lea ebx, [rax + 2]
jmp 0x1800018f7
movzx eax, bx
mov word [rdx + 0x60], ax
mov word [rdx + 0x62], bx
mov qword [rdx + 0x68], rcx
lea rcx, str.77777777
mov rax, qword [rsi + 0x20]
nop
inc rdi
cmp word [rcx + rdi*2], 0
jne 0x180001910
add di, di
mov word [rax + 0x70], di
add di, 2
mov word [rax + 0x72], di
mov qword [rax + 0x78], rcx
mov rcx, qword [rsi + 0x38]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov rax, qword [rsp + 0x670]
lea r8, [rsp + 0x30]
lea rdx, [0x1800016e0]
mov qword [rsp + 0x38], rax
xor ecx, ecx
mov qword [rsp + 0x30], rsi
call qword [sym.imp.ntdll.dll_LdrEnumerateLoadedModules]
mov rsi, qword [rsp + 0x688]
mov rbx, qword [rsp + 0x680]
mov rdi, qword [rsp + 0x660]
add rsp, 0x668
ret
Function at 0x180002700
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x240
mov r14, rdx
xor esi, esi
mov ebx, 0x5000
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
mov qword [rsp + 0x288], rax
test rax, rax
jne 0x180002750
add rsp, 0x240
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
lea ecx, [r9 + 0x39]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x18000277f
cmp eax, 0xc0000004
jne 0x1800027fc
add ebx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18000271d
mov rbx, rdi
mov r15d, 0x1fe
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x30]
call fcn.180024ab0
nop
mov dword [rsp + 0x270], r15d
movzx eax, word [rbx + 0x3a]
mov dword [rsp + 0x280], eax
cmp eax, r15d
cmova eax, r15d
mov r8d, eax
mov rdx, qword [rbx + 0x40]
lea rcx, [rsp + 0x30]
call fcn.180024060
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rcx, rax
mov rdx, r14
call fcn.1800273c0
test eax, eax
jne 0x1800027f1
mov esi, dword [rbx + 0x50]
mov dword [rsp + 0x20], esi
jmp 0x1800027fc
mov eax, dword [rbx]
test eax, eax
je 0x1800027fc
add rbx, rax
jmp 0x180002790
test rdi, rdi
je 0x18000280a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
setne al
add rsp, 0x240
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x180002850
Capabilities:
Get hostname
Get session user name
List groups for user account
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push r14
lea rbp, [rsp - 0x378]
sub rsp, 0x478
call fcn.1800030e0
call fcn.180001310
test al, al
jne 0x180002ae4
call fcn.1800030e0
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.180024ab0
lea r8, [rbp + 0x3a0]
mov dword [rbp + 0x3a0], 0x104
lea rdx, [rsp + 0x50]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
xor r14d, r14d
test eax, eax
je 0x1800029fd
cmp dword [rbp + 0x3a0], r14d
je 0x1800029fd
call fcn.1800030e0
xor edx, edx
lea rcx, [rbp + 0x160]
mov r8d, 0x208
call fcn.180024ab0
lea rdx, [rbp + 0x3a8]
mov dword [rbp + 0x3a8], 0x104
lea rcx, [rbp + 0x160]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor edx, edx
mov qword [rsp + 0x40], r14
mov r8d, 0x208
mov dword [rbp + 0x3a0], r14d
lea rcx, [rsp + 0x50]
mov dword [rbp + 0x3b8], r14d
xor sil, sil
call fcn.180024ab0
lea r8, [rbp + 0x3b0]
mov dword [rbp + 0x3b0], 0x104
lea rdx, [rsp + 0x50]
lea ecx, [r14 + 2]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea rax, [rbp + 0x3b8]
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x40]
lea rax, [rbp + 0x3a0]
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0x160]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.NETAPI32.dll_NetUserGetGroups]
test eax, eax
jne 0x1800029e4
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x180002ae4
mov qword [rsp + 0x470], rdi
mov edi, r14d
cmp dword [rbp + 0x3a0], r14d
jbe 0x1800029dc
nop word [rax + rax]
test rbx, rbx
je 0x1800029dc
mov rcx, qword [rbx]
lea rdx, str.Domain_Admins
call fcn.180023c60
test rax, rax
jne 0x1800029d9
add rbx, 8
inc edi
cmp edi, dword [rbp + 0x3a0]
jb 0x1800029b0
jmp 0x1800029dc
mov sil, 1
mov rdi, qword [rsp + 0x470]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1800029f4
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
test sil, sil
je 0x180002ae4
call fcn.1800030e0
call fcn.180001070
test al, al
jne 0x180002a1d
call fcn.1800030e0
call fcn.1800015c0
test al, al
je 0x180002ae4
call fcn.1800030e0
lea rax, [rbp + 0x3b8]
mov qword [rbp + 0x3b8], r14
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180002ae4
mov rbx, qword [rbp + 0x3b8]
test rbx, rbx
je 0x180002ae4
lea rax, [rbp + 0x3a8]
mov dword [rbp + 0x3a0], r14d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x3b0]
lea rax, [rbp + 0x3a0]
mov dword [rbp + 0x3b0], r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ConsentPromptBehaviorAdmin
mov dword [rbp + 0x3a8], 4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180002adb
mov eax, dword [rbp + 0x3a0]
cmp eax, 5
je 0x180002ac3
test eax, eax
jne 0x180002adb
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add rsp, 0x478
pop r14
pop rsi
pop rbx
pop rbp
ret
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add rsp, 0x478
pop r14
pop rsi
pop rbx
pop rbp
ret