joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b17d0
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, rsp
sub rsp, 0x88
movdqa xmm3, xmmword [0x1400e6f40]
movdqa xmm4, xmmword [0x1400e6f50]
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
movdqu xmm8, xmmword [rdx]
movaps xmmword [rax - 0x48], xmm9
movdqu xmm9, xmmword [rdx + 0x10]
movaps xmmword [rax - 0x58], xmm10
movdqu xmm10, xmmword [rcx]
movaps xmmword [rax - 0x68], xmm11
movdqu xmm11, xmmword [rcx + 0x10]
movaps xmmword [rax - 0x78], xmm12
xorps xmm8, xmm10
xorps xmm9, xmm11
movaps xmmword [rsp], xmm13
movdqa xmm7, xmm11
movdqa xmm2, xmm10
xorps xmm7, xmm4
movdqa xmm12, xmm9
xorps xmm2, xmm3
movdqa xmm13, xmm8
mov eax, 4
nop dword [rax]
movdqa xmm0, xmm3
movdqa xmm5, xmm2
movdqa xmm1, xmm4
aesenc xmm0, xmm2
movdqa xmm6, xmm0
movdqa xmm2, xmm12
aesenc xmm1, xmm3
movdqa xmm3, xmm13
aesenc xmm2, xmm4
movdqa xmm4, xmm1
aesenc xmm4, xmm0
movdqa xmm0, xmm2
aesenc xmm3, xmm12
aesenc xmm0, xmm1
movdqa xmm1, xmm3
aesenc xmm1, xmm2
aesenc xmm5, xmm7
aesenc xmm7, xmm13
movdqa xmm13, xmm4
xorps xmm7, xmm10
movdqa xmm2, xmm7
aesenc xmm2, xmm3
movdqa xmm3, xmm0
aesenc xmm3, xmm4
movdqa xmm4, xmm1
aesenc xmm4, xmm0
movdqa xmm0, xmm2
aesenc xmm6, xmm5
aesenc xmm13, xmm6
aesenc xmm0, xmm1
aesenc xmm5, xmm7
movdqa xmm7, xmm3
xorps xmm5, xmm11
movdqa xmm1, xmm5
aesenc xmm1, xmm2
movdqa xmm2, xmm4
aesenc xmm2, xmm3
movdqa xmm3, xmm0
aesenc xmm7, xmm13
aesenc xmm3, xmm4
movdqa xmm4, xmm1
aesenc xmm6, xmm5
xorps xmm6, xmm8
movdqa xmm12, xmm6
aesenc xmm13, xmm6
xorps xmm13, xmm9
movdqu xmmword [r8], xmm13
aesenc xmm4, xmm0
aesenc xmm12, xmm1
sub rax, 1
jne 0x1400b1850
movaps xmm6, xmmword [rsp + 0x70]
movaps xmm8, xmmword [rsp + 0x50]
movaps xmm9, xmmword [rsp + 0x40]
movaps xmm10, xmmword [rsp + 0x30]
movaps xmm11, xmmword [rsp + 0x20]
movaps xmm13, xmmword [rsp]
movdqu xmmword [r8 + 0x10], xmm12
movaps xmm12, xmmword [rsp + 0x10]
movdqu xmmword [r8 + 0x50], xmm7
movaps xmm7, xmmword [rsp + 0x60]
movdqu xmmword [r8 + 0x20], xmm4
movdqu xmmword [r8 + 0x30], xmm3
movdqu xmmword [r8 + 0x40], xmm2
add rsp, 0x88
ret
Function at 0x1400b19a0
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x58
mov rax, qword [rsp + 0x80]
lea r8, [r8*8]
movaps xmmword [rsp + 0x40], xmm6
lea r9, [r9*8]
movaps xmmword [rsp + 0x30], xmm7
movq xmm0, r9
movaps xmmword [rsp + 0x20], xmm8
movq xmm8, r8
movdqu xmm6, xmmword [rax + 0x30]
mov r8d, 7
movdqu xmm7, xmmword [rax + 0x50]
movdqu xmm4, xmmword [rax + 0x40]
movdqu xmm2, xmmword [rax + 0x20]
movdqu xmm5, xmmword [rax + 0x10]
punpcklqdq xmm8, xmm0
xorps xmm8, xmm6
nop
movdqa xmm0, xmm4
movdqa xmm3, xmm7
aesenc xmm3, xmmword [rax]
xorps xmm3, xmm8
aesenc xmm0, xmm7
movdqa xmm7, xmm0
movdqa xmm0, xmm6
aesenc xmm0, xmm4
movdqa xmm4, xmm0
movdqa xmm0, xmm2
aesenc xmm0, xmm6
movdqa xmm6, xmm0
movdqa xmm0, xmm5
aesenc xmm0, xmm2
movdqa xmm2, xmm0
movdqu xmm0, xmmword [rax]
movdqu xmmword [rax], xmm3
aesenc xmm0, xmm5
movdqa xmm5, xmm0
sub r8, 1
jne 0x1400b1a00
movdqu xmmword [rax + 0x30], xmm6
movdqu xmmword [rax + 0x50], xmm7
movdqu xmmword [rax + 0x40], xmm4
movdqu xmmword [rax + 0x20], xmm2
movdqu xmmword [rax + 0x10], xmm0
cmp rdx, 0x10
jne 0x1400b1a8c
xorps xmm2, xmm6
xorps xmm4, xmm7
xorps xmm2, xmm4
xorps xmm3, xmm0
xorps xmm2, xmm3
movdqu xmmword [rcx], xmm2
jmp 0x1400b1aba
cmp rdx, 0x20
jne 0x1400b1ab0
xorps xmm2, xmm0
xorps xmm2, xmm3
movdqu xmmword [rcx], xmm2
movdqu xmm0, xmmword [rax + 0x40]
xorps xmm0, xmmword [rax + 0x50]
xorps xmm0, xmmword [rax + 0x30]
movdqu xmmword [rcx + 0x10], xmm0
jmp 0x1400b1aba
mov r8, rdx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x30]
movaps xmm8, xmmword [rsp + 0x20]
add rsp, 0x58
ret
Function at 0x1400c53f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov r14, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x1400c5435
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x50], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x1400c5480
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x1400c54e2
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x1400c54a0
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x1400c5523
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1400ebac0]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400ebac1]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400c54f0
mov rdi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
Function at 0x1400c5540
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x20
mov rbp, rcx
mov r12, r9
mov rcx, r8
mov r14, rdx
call fcn.140044d10
mov r8d, dword [rbp + 0x18]
mov ecx, dword [rbp + 0x20]
add rcx, 0x18
mov r15d, eax
lea r9d, [r8 + r8]
add rcx, r9
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1400c56e6
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x58], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x60], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x1400c55d0
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x1400c5632
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x50], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x50], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x1400c55f0
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x1400c5673
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1400ebac0]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400ebac1]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400c5640
mov rcx, qword [rsp + 0x70]
call fcn.140044d10
mov r9, qword [rbx]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, r12
call qword [r9 + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rbx]
test rdi, rdi
jne 0x1400c56a2
mov edi, dword [rsi + 0x18]
add rdi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov r8d, dword [rsi + 0x20]
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call qword [rsi + reloc.WS2_32.dll_htonl]
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov rcx, rbx
call qword [fcn.1400c87c0]
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
mov eax, 0x1b
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
Function at 0x1400c5810
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140105ec0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r8
mov dword [rsp + 0x20], 0xf0000040
mov rsi, rdx
mov rdi, rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1400c585c
mov eax, 0x1b
jmp 0x1400c592e
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1400c58a0
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov qword [rsp + 0x38], 0
jmp 0x1400c592e
mov rcx, rbp
call fcn.140044d10
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
lea edx, [r8 + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x20
jne 0x1400c590a
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rdi
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400c591a
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400c592c
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400c73f0
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400c66e0
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x1400c6745
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
test r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x1400c66f0
ret

Function at 0x1400c6888
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400c68c2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400c68c7
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400c6910
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400c6910
dec r8
sub rdx, 1
jne 0x1400c68f6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400c83f8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c8442
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c8442
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c8442
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c8442
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c8442
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400c8444
xor al, al
add rsp, 0x28
ret

Function at 0x18058567e
Capabilities:
Encode data using xor

Disassembly:
test rax, rax
push 0xffffffff9a913d86
lea rsp, [rsp + 0x28]
je 0x180571073
push r9
lea rdx, [0x180571ce8]
mov r9d, 0xf1275f04
shr r9, 0xa1
xor r9b, byte [r10 + r9]
xor r9d, edi
push 0x69246399
and r9d, 0xff
mov r9d, dword [rdx + r9*4]
shr edi, 8
xor edi, r9d
ror word [rsp + 2], 0xa9
inc r10
xor edi, 0x69b514ad
dec rax
lea rsp, [rsp + 8]
jne 0x18055c800
call fcn.180582dcc
call fcn.18058127e
push 0xffffffffe51d2e34
xor edi, edi
jmp 0x18055c7e4
Function at 0x14000122c
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov eax, dword [0x14000c14c]
xor r14d, r14d
mov dword [rbp + 0x3f], r14d
mov word [rbp + 0x43], 0x500
mov dword [rbp + 0x27], r14d
lea ebx, [r14 + 2]
cmp eax, ebx
jne 0x1400013cc
lea rcx, [rbp + 0x27]
call fcn.140001134
test eax, eax
jne 0x1400013b3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x2f]
lea edx, [rbx + 6]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400013cc
mov rcx, qword [rbp + 0x2f]
lea rax, [rbp + 0x2b]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1400013a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400013a4
mov edx, dword [rbp + 0x2b]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400013a4
mov r9d, dword [rbp + 0x2b]
lea rax, [rbp + 0x2b]
mov rcx, qword [rbp + 0x2f]
mov r8, rdi
mov edx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14000139b
lea rax, [rbp + 0x37]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x3f]
mov dword [rsp + 0x48], r14d
mov r8d, 0x20
mov dword [rsp + 0x40], r14d
mov dl, bl
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14000139b
mov esi, r14d
cmp dword [rdi], r14d
jbe 0x140001391
mov ebx, 1
mov rdx, qword [rbp + 0x37]
mov ecx, esi
add rcx, rcx
mov rcx, qword [rdi + rcx*8 + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x140001388
add esi, ebx
cmp esi, dword [rdi]
jb 0x140001368
jmp 0x140001391
mov dword [0x14000c14c], ebx
mov dword [rbp + 0x27], ebx
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x27]
jmp 0x1400013cc
mov ecx, dword [0x14000c14c]
mov ebx, 1
mov eax, dword [rbp + 0x27]
test eax, eax
cmovne ecx, ebx
mov dword [0x14000c14c], ecx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140007c60
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140001aec
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor ecx, ecx
test eax, eax
jne 0x140001b43
and dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4f5
mov dword [rsp + 0x20], FDIDestroy
call fcn.140004a30
xor eax, eax
jmp 0x140001bc6
lea r8, [rsp + 0x3c]
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
and qword [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
xor edx, edx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x140001bab
mov edx, 0x4f6
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
jmp 0x140001b2f
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x140001bc1
mov edx, 0x4f7
jmp 0x140001b9c
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007c60
add rsp, 0x50
pop rbx
ret
Function at 0x140002064
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edi, 0x104
lea rcx, [rsp + 0x20]
mov edx, edi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1400020ed
lea r8, str.wininit.ini
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.140007448
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea edx, [rbx + 0x40]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp eax, 0xffffffff
je 0x1400020ed
xor edx, edx
lea r8d, [rbx + 2]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll__llseek]
mov ecx, edi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll__lclose]
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140007c60
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret

Function at 0x140002110
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
xor ebx, ebx
movzx eax, cx
test eax, eax
je 0x140002217
cmp eax, 1
je 0x1400021a7
add eax, 0xfffffffe
cmp eax, 1
ja 0x14000221e
lea rax, [rbp + 0x18]
mov dword [rbp + 0x10], ebx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlSession_Manager
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400021a2
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, str.PendingFileRenameOperations
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rbp + 0x10]
test eax, eax
cmovne ecx, ebx
mov dword [rbp + 0x10], ecx
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [rbp + 0x10]
jmp 0x14000221e
lea rax, [rbp + 0x18]
mov dword [rbp + 0x10], ebx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlSession_ManagerFileRenameOperations
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400021a2
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x58], rbx
xor r9d, r9d
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov qword [rsp + 0x48], rbx
xor edx, edx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
jmp 0x14000218d
call fcn.140002064
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rbp
ret
Function at 0x140002230
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, rcx
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor ebx, ebx
test eax, eax
jne 0x140002286
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4f0
xor ecx, ecx
call fcn.140004a30
mov cl, byte [rsp + 0x30]
cmp byte [rdi], cl
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140007c60
mov rbx, qword [rsp + 0x160]
add rsp, 0x150
pop rdi
ret
Function at 0x1400023d0
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp + 0x50], rax
xor edi, edi
mov rsi, r8
mov byte [rcx], dil
mov rbx, rcx
cmp byte [r8], 0x23
lea r12d, [rdi + 1]
jne 0x14000258e
add rsi, r12
movsx rcx, byte [rsi]
call qword [sym.imp.USER32.dll_CharUpperA]
mov rcx, rsi
mov r14, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov rsi, rax
cmp r14b, 0x53
je 0x14000258b
cmp r14b, 0x57
je 0x14000257b
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
mov dword [rsp + 0x34], 0x104
lea rax, [rsp + 0x40]
mov edx, 0x104
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140002487
mov al, byte [r8 + rcx]
test al, al
je 0x140002487
mov byte [rcx], al
add rcx, r12
sub rdx, r12
jne 0x140002469
test rdx, rdx
lea rax, [rcx - 1]
mov r8, rsi
mov edx, 0x104
cmovne rax, rcx
lea rcx, [rsp + 0x40]
mov byte [rax], dil
call fcn.140007448
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000259d
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, [0x1400096f0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000256e
mov eax, dword [rsp + 0x30]
cmp eax, 2
jne 0x140002567
mov r8d, 0x104
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x140002563
lea r8, [rsp + 0x40]
mov edx, 0x104
sub r8, rbx
mov rcx, rbx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140002550
mov al, byte [r8 + rcx]
test al, al
je 0x140002550
mov byte [rcx], al
add rcx, r12
sub rdx, r12
jne 0x140002532
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], dil
mov edi, r12d
jmp 0x14000256e
mov eax, dword [rsp + 0x30]
cmp eax, r12d
cmove edi, r12d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140002599
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x14000259d
mov rcx, rbx
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test edi, edi
jne 0x1400025ad
mov r8, rsi
mov edx, 0x104
mov rcx, rbx
call fcn.140007448
mov eax, r12d
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140007c60
mov rbx, qword [rsp + 0x198]
add rsp, 0x160
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret