joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013108
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov esi, edx
mov rbx, rcx
cmp qword [rcx + 0x18], 7
jbe 0x140013132
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ebp, ebp
test eax, eax
setne dil
test eax, eax
jne 0x1400131d1
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movdqa xmm1, xmmword [0x1400489f0]
movdqu xmmword [rsp + 0x30], xmm1
mov word [rsp + 0x20], bp
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140015d18
test al, al
je 0x140013193
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rcx, qword [rsp + 0x20]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x1400131d1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400131cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400131f1
call fcn.140031c2c
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140031d40
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
call fcn.140036804
int3
Function at 0x14001341c
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
cmp rcx, 0xffffffffffffffff
jne 0x140013535
mov rcx, rdx
cmp qword [rdx + 0x18], 7
jbe 0x140013466
mov rcx, qword [rdx]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140013556
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movdqa xmm1, xmmword [0x1400489f0]
movdqu xmmword [rsp + 0x30], xmm1
mov word [rsp + 0x20], r14w
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140015d18
test al, al
je 0x1400134ca
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x14001350c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013507
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013668
call fcn.140031c2c
cmp rdi, 0xffffffffffffffff
jne 0x140013556
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
test ecx, 0xffffffee
jne 0x14001352b
cmp eax, 0x13
mov al, r14b
jne 0x14001352d
mov al, 1
mov byte [rbx + 0x64], al
jmp 0x14001363e
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140013556
or rdi, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x14001352d
mov rdx, rsi
mov rcx, rbx
call fcn.140003cac
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea rcx, [rsp + 0x6c]
call fcn.14003687c
mov r8, rax
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.1400012c0
nop
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140017334
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x1400135df
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400135da
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013662
call fcn.140031c2c
mov ecx, dword [rsp + 0x5c]
shl rcx, 0x20
mov eax, dword [rsp + 0x60]
add rcx, rax
mov qword [rbx + 0x20], rcx
mov eax, dword [rsp + 0x40]
mov dword [rbx + 0x28], eax
mov rax, qword [rsp + 0x44]
mov qword [rbx + 0x48], rax
mov rax, qword [rsp + 0x4c]
mov qword [rbx + 0x50], rax
mov rax, qword [rsp + 0x54]
mov qword [rbx + 0x58], rax
lea rcx, [rbx + 0x30]
lea rdx, [rsp + 0x54]
call fcn.14001e754
lea rcx, [rbx + 0x38]
lea rdx, [rsp + 0x44]
call fcn.14001e754
lea rcx, [rbx + 0x40]
lea rdx, [rsp + 0x4c]
call fcn.14001e754
mov dword [rbx + 0x60], r14d
mov rax, rdi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140031d40
add rsp, 0x2a0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140036804
int3
call fcn.140036804
int3
Function at 0x140013e5c
Capabilities:
Hash data using crc32b

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, 2
mov ebx, edx
mov rsi, rcx
lea ebp, [rdi - 1]
cmp edx, ebp
jbe 0x140013eab
test bl, 1
je 0x140013e95
mov r8d, edi
mov edx, ebp
mov rcx, rsi
call fcn.140013ecc
mov ebp, eax
mov r8d, edi
mov edx, edi
mov rcx, rsi
call fcn.140013ecc
shr ebx, 1
mov edi, eax
cmp ebx, 1
ja 0x140013e81
mov r8d, edi
mov edx, ebp
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.140013ecc

Function at 0x140014224
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor bl, bl
cmp byte [0x140060a98], bl
jne 0x140014289
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 0xa
ja 0x140014278
jne 0x14001427a
cmp dword [rsp + 0x2c], 0x55f0
jb 0x14001427a
call fcn.1400142ac
test al, al
jne 0x14001427a
mov bl, 1
mov byte [0x140060a99], bl
mov byte [0x140060a98], 1
jmp 0x14001428f
mov bl, byte [0x140060a99]
mov al, bl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140031d40
add rsp, 0x150
pop rbx
ret
Function at 0x1400155f8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14001569d
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
and qword [rsp + 0x30], 0
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.1400013c4
nop
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
sub rcx, rdx
sar rcx, 1
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call fcn.1400020c0
test ebx, ebx
setne bl
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14001569b
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015696
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400156a8
call fcn.140031c2c
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
call fcn.140036804
int3

Function at 0x140017268
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 7
jbe 0x140017276
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14001a538
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
lea rbp, str.cw
mov ecx, edi
lea rsi, [0x140000000]
mov rdx, rbp
movzx eax, byte [rdx]
inc rdx
mov byte [rax + rsi + 0x64ae0], cl
inc ecx
cmp ecx, 0x100
jl 0x14001a561
mov r9b, byte [rdi + rbp]
mov dl, 2
mov cl, r9b
mov byte [rsi + rdi*4 + 0x657e1], r9b
mov byte [rsi + rdi*4 + 0x657e0], r9b
mov byte [rsi + rdi*4 + 0x653e3], r9b
mov byte [rsi + rdi*4 + 0x653e0], r9b
mov byte [rsi + rdi*4 + 0x64fe3], r9b
mov byte [rsi + rdi*4 + 0x64fe2], r9b
mov byte [rsi + rdi*4 + 0x64be2], r9b
mov byte [rsi + rdi*4 + 0x64be1], r9b
call fcn.14001ad1c
mov dl, 3
mov byte [rsi + rdi*4 + 0x657e3], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x653e2], al
mov byte [rsi + rdi*4 + 0x64fe1], al
mov byte [rsi + rdi*4 + 0x64be0], al
call fcn.14001ad1c
movzx r9d, byte [rdi + rsi + 0x64ae0]
mov dl, 0xb
mov cl, r9b
mov byte [rsi + rdi*4 + 0x657e2], al
mov byte [rsi + rdi*4 + 0x653e1], al
mov byte [rsi + rdi*4 + 0x64fe0], al
mov byte [rsi + rdi*4 + 0x64be3], al
call fcn.14001ad1c
mov dl, 9
mov byte [rsi + rdi*4 + 0x667e2], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x663e1], al
mov byte [rsi + rdi*4 + 0x65fe0], al
mov byte [rsi + rdi*4 + 0x65be3], al
mov byte [rsi + r9*4 + 0x677e2], al
mov byte [rsi + r9*4 + 0x673e1], al
mov byte [rsi + r9*4 + 0x66fe0], al
mov byte [rsi + r9*4 + 0x66be3], al
call fcn.14001ad1c
mov dl, 0xd
mov byte [rsi + rdi*4 + 0x667e0], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x663e3], al
mov byte [rsi + rdi*4 + 0x65fe2], al
mov byte [rsi + rdi*4 + 0x65be1], al
mov byte [rsi + r9*4 + 0x677e0], al
mov byte [rsi + r9*4 + 0x673e3], al
mov byte [rsi + r9*4 + 0x66fe2], al
mov byte [rsi + r9*4 + 0x66be1], al
call fcn.14001ad1c
mov dl, 0xe
mov byte [rsi + rdi*4 + 0x667e1], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x663e0], al
mov byte [rsi + rdi*4 + 0x65fe3], al
mov byte [rsi + rdi*4 + 0x65be2], al
mov byte [rsi + r9*4 + 0x677e1], al
mov byte [rsi + r9*4 + 0x673e0], al
mov byte [rsi + r9*4 + 0x66fe3], al
mov byte [rsi + r9*4 + 0x66be2], al
call fcn.14001ad1c
mov byte [rsi + rdi*4 + 0x667e3], al
mov byte [rsi + rdi*4 + 0x663e2], al
mov byte [rsi + rdi*4 + 0x65fe1], al
mov byte [rsi + rdi*4 + 0x65be0], al
inc rdi
mov byte [rsi + r9*4 + 0x677e3], al
mov byte [rsi + r9*4 + 0x673e2], al
mov byte [rsi + r9*4 + 0x66fe1], al
mov byte [rsi + r9*4 + 0x66be0], al
cmp rdi, 0x100
jl 0x14001a578
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001ac94
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
lea r11, [rcx + 0x18]
mov r10, rcx
movdqu xmm2, xmmword [rcx + 8]
test r8, r8
je 0x14001ad15
movsxd rcx, dword [r10 + 4]
mov rax, rdx
add rdx, 0x10
movdqu xmm3, xmmword [rax]
mov rax, rcx
add rax, rax
movdqu xmm1, xmmword [r11 + rax*8]
lea eax, [rcx - 1]
movsxd rcx, eax
xorps xmm1, xmm3
test eax, eax
jle 0x14001acec
mov rax, rcx
shl rax, 4
add rax, r11
movdqu xmm0, xmmword [rax]
dec rcx
lea rax, [rax - 0x10]
aesdec xmm1, xmm0
test rcx, rcx
jg 0x14001acd7
cmp byte [r10 + 1], 0
movdqu xmm0, xmmword [r11]
aesdeclast xmm1, xmm0
je 0x14001ad00
xorps xmm1, xmm2
mov rax, r9
movdqa xmm2, xmm3
add r9, 0x10
movdqu xmmword [rax], xmm1
sub r8, 1
jne 0x14001aca5
movdqu xmmword [r10 + 8], xmm2
ret

Function at 0x14001ad1c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r10b, r10b
mov r11b, dl
mov bl, cl
test dl, dl
je 0x14001ad64
mov al, r10b
xor al, bl
movzx r8d, al
test r11b, 1
movzx eax, r10b
cmove r8d, eax
mov al, bl
add al, al
mov r10b, r8b
mov r8b, bl
movzx edx, al
mov cl, dl
mov ebx, edx
xor cl, 0x1b
test r8b, r8b
movzx ecx, cl
cmovs ebx, ecx
shr r11b, 1
jne 0x14001ad2d
mov rbx, qword [rsp + 8]
mov al, r10b
ret

Function at 0x14001ad70
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov esi, 1
mov rdi, rcx
cmp dword [rcx + 4], esi
jle 0x14001ae57
lea rbx, [r11 - 0x38]
sub rbx, rcx
lea rbp, [rcx + 0x2a]
sub rbx, 0x2a
lea r15, [0x140000000]
xor r9d, r9d
mov r10, rbp
lea r14, [rbx + r9]
mov r11d, 4
movzx eax, byte [r10 + 1]
lea rdx, [r9 + rax*4]
movzx eax, byte [r10 - 1]
mov r8b, byte [rdx + r15 + 0x677e0]
lea rcx, [r9 + rax*4]
movzx eax, byte [r10 - 2]
xor r8b, byte [rcx + r15 + 0x66fe0]
lea rcx, [r9 + rax*4]
movzx eax, byte [r10]
xor r8b, byte [rcx + r15 + 0x66be0]
lea rcx, [r9 + rax*4]
xor r8b, byte [rcx + r15 + 0x673e0]
mov byte [r10 + r14], r8b
lea r10, [r10 + 4]
sub r11, 1
jne 0x14001adce
inc r9
cmp r9, 4
jl 0x14001adc1
movsxd rcx, esi
lea r8d, [r11 + 0x10]
shl rcx, 4
lea rdx, [rsp + 0x20]
add rcx, 0x18
add rcx, rdi
call fcn.140045080
inc esi
add rbp, 0x10
sub rbx, 0x10
cmp esi, dword [rdi + 4]
jl 0x14001adbe
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140031d40
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14001b2fc
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov r10, qword [0x140067bf0]
xor ebx, ebx
movzx ebp, r9b
mov r14b, r8b
mov rsi, rdx
mov rdi, rcx
test r10, r10
jne 0x14001b39b
cmp byte [0x140067be8], bl
jne 0x14001b39b
lea rcx, str.Crypt32.dll
call fcn.14001d5a4
mov qword [0x140067be0], rax
test rax, rax
je 0x14001b384
lea rdx, str.CryptProtectMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140067be0]
lea rdx, str.CryptUnprotectMemory
mov qword [0x140067bf0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140067bf8], rax
jmp 0x14001b38b
mov rax, qword [0x140067bf8]
mov r10, qword [0x140067bf0]
mov byte [0x140067be8], 1
jmp 0x14001b3a2
mov rax, qword [0x140067bf8]
mov rdx, rsi
mov r8d, ebp
and rdx, 0xfffffffffffffff0
test r14b, r14b
je 0x14001b3f3
test r10, r10
je 0x14001b40e
mov rcx, rdi
mov rax, r10
call qword [0x140048528]
test eax, eax
jne 0x14001b429
lea rdx, str.CryptProtectMemory_failed
lea rbx, [0x140060a80]
mov rcx, rbx
call fcn.14000adc0
mov rcx, rbx
call fcn.14000b194
mov edx, 2
mov rcx, rbx
call fcn.14000adb8
jmp 0x14001b429
test rax, rax
je 0x14001b40e
mov rcx, rdi
call qword [0x140048528]
test eax, eax
jne 0x14001b429
lea rdx, str.CryptUnprotectMemory_failed
jmp 0x14001b3cd
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test rsi, rsi
je 0x14001b429
lea ecx, [rax + 0x4b]
add cl, bl
xor byte [rdi + rbx], cl
inc rbx
cmp rbx, rsi
jb 0x14001b419
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14001bf5c
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edi, dword [rcx + 0x18]
mov ebp, 0x38
mov r14, qword [rcx + 0x18]
and edi, 0x3f
shl r14, 3
mov rsi, rdx
mov rbx, rcx
mov byte [rdi + rcx + 0x20], 0x80
inc edi
cmp edi, ebp
je 0x14001bfea
jbe 0x14001bfd5
lea edx, [rbp + 8]
cmp edi, edx
jae 0x14001bfbf
sub edx, edi
mov ecx, edi
add rcx, 0x20
mov r8d, edx
add rcx, rbx
xor edx, edx
call fcn.140045720
xor edi, edi
lea r8, [rbx + 0x20]
mov r9b, 1
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14001b4d4
sub ebp, edi
mov ecx, edi
add rcx, 0x20
mov r8d, ebp
add rcx, rbx
xor edx, edx
call fcn.140045720
mov rcx, r14
shr rcx, 0x20
call fcn.140036a44
mov ecx, r14d
mov dword [rbx + 0x58], eax
call fcn.140036a44
lea r8, [rbx + 0x20]
mov dword [rbx + 0x5c], eax
mov r9b, 1
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14001b4d4
mov rdx, rbx
mov ecx, 5
sub rdx, rsi
mov eax, dword [rsi + rdx]
mov dword [rsi], eax
lea rsi, [rsi + 4]
sub rcx, 1
jne 0x14001c023
and qword [rbx + 0x18], rcx
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
mov dword [rbx + 0x10], 0xc3d2e1f0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140031d40
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14001c07c
Capabilities:
Hash data using sha1

Disassembly:
and qword [rcx + 0x18], 0
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
mov dword [rcx + 0x10], 0xc3d2e1f0
ret
Function at 0x14001c280
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r8d, dword [rcx + 0x20]
mov edi, 0x38
mov rsi, qword [rcx + 0x20]
and r8d, 0x3f
shl rsi, 3
mov r14, rdx
mov rbx, rcx
mov byte [r8 + rcx + 0x28], 0x80
inc r8d
cmp r8d, edi
je 0x14001c301
jbe 0x14001c2ea
lea edx, [rdi + 8]
cmp r8d, edx
jae 0x14001c2df
mov ecx, r8d
sub edx, r8d
add rcx, 0x28
mov r8d, edx
add rcx, rbx
xor edx, edx
call fcn.140045720
mov rcx, rbx
call fcn.14001c540
xor r8d, r8d
mov ecx, r8d
sub edi, r8d
add rcx, 0x28
mov r8d, edi
add rcx, rbx
xor edx, edx
call fcn.140045720
mov rcx, rsi
shr rcx, 0x20
call fcn.140036a44
mov ecx, esi
mov dword [rbx + 0x60], eax
call fcn.140036a44
mov rcx, rbx
mov dword [rbx + 0x64], eax
call fcn.14001c540
mov ecx, dword [rbx]
call fcn.140036a44
mov dword [r14], eax
mov ecx, dword [rbx + 4]
call fcn.140036a44
mov dword [r14 + 4], eax
mov ecx, dword [rbx + 8]
call fcn.140036a44
mov dword [r14 + 8], eax
mov ecx, dword [rbx + 0xc]
call fcn.140036a44
mov dword [r14 + 0xc], eax
mov ecx, dword [rbx + 0x10]
call fcn.140036a44
mov dword [r14 + 0x10], eax
mov ecx, dword [rbx + 0x14]
call fcn.140036a44
mov dword [r14 + 0x14], eax
mov ecx, dword [rbx + 0x18]
call fcn.140036a44
mov dword [r14 + 0x18], eax
mov ecx, dword [rbx + 0x1c]
call fcn.140036a44
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov dword [r14 + 0x1c], eax
and qword [rbx + 0x20], 0
mov dword [rbx], 0x6a09e667
mov dword [rbx + 4], 0xbb67ae85
mov dword [rbx + 8], 0x3c6ef372
mov dword [rbx + 0xc], 0xa54ff53a
mov dword [rbx + 0x10], 0x510e527f
mov dword [rbx + 0x14], 0x9b05688c
mov dword [rbx + 0x18], 0x1f83d9ab
mov dword [rbx + 0x1c], 0x5be0cd19
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r14
ret

Function at 0x14001c3d4
Capabilities:
Hash data using sha256

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x90], rax
and qword [rsp + 0x40], 0
mov rbx, r8
mov r8, rdx
mov dword [rsp + 0x20], 0x6a09e667
mov rdx, rcx
mov dword [rsp + 0x24], 0xbb67ae85
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], 0x3c6ef372
mov dword [rsp + 0x2c], 0xa54ff53a
mov dword [rsp + 0x30], 0x510e527f
mov dword [rsp + 0x34], 0x9b05688c
mov dword [rsp + 0x38], 0x1f83d9ab
mov dword [rsp + 0x3c], 0x5be0cd19
call fcn.14001c4b0
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14001c280
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140031d40
add rsp, 0xa0
pop rbx
ret

Function at 0x14001c470
Capabilities:
Hash data using sha256

Disassembly:
and qword [rcx + 0x20], 0
mov dword [rcx], 0x6a09e667
mov dword [rcx + 4], 0xbb67ae85
mov dword [rcx + 8], 0x3c6ef372
mov dword [rcx + 0xc], 0xa54ff53a
mov dword [rcx + 0x10], 0x510e527f
mov dword [rcx + 0x14], 0x9b05688c
mov dword [rcx + 0x18], 0x1f83d9ab
mov dword [rcx + 0x1c], 0x5be0cd19
ret
Function at 0x14001c888
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
cmp qword [rcx + 0x18], 7
jbe 0x14001c89b
mov rcx, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14001c95c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
and qword [rsp + 0x30], 0
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.1400013c4
nop
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
sub r8, rdx
sar r8, 1
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14001c8e7
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r8, qword [rsp + 0x20]
test eax, eax
je 0x14001c91c
mov rcx, qword [rsp + 0x28]
sub rcx, r8
sar rcx, 1
mov eax, eax
cmp rax, rcx
ja 0x14001c91c
mov rdx, r8
mov rcx, rbx
call fcn.1400020c0
mov bl, 1
mov r8, qword [rsp + 0x20]
jmp 0x14001c91e
xor bl, bl
test r8, r8
je 0x14001c95a
mov rdx, qword [rsp + 0x30]
sub rdx, r8
sar rdx, 1
add rdx, rdx
mov rax, r8
cmp rdx, 0x1000
jb 0x14001c952
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c962
mov rcx, r8
call fcn.140031c2c
mov al, bl
add rsp, 0x40
pop rbx
ret
call fcn.140036804
int3

Function at 0x14001d4f4
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
mov word [rbp - 0xc], 0x500
lea rax, [rbp - 0x18]
mov dword [rbp - 0x10], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp - 0x20], eax
test eax, eax
je 0x14001d581
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x14001d572
mov dword [rbp - 0x20], ebx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp - 0x20]
test eax, eax
setne al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140031d40
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret
Function at 0x14001d5a4
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rbx, rcx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
xor edi, edi
mov qword [rbp - 0x29], rdi
mov edx, 0x104
lea rcx, [rbp - 0x39]
call fcn.1400013c4
nop
mov rdx, qword [rbp - 0x31]
mov rcx, qword [rbp - 0x39]
sub rdx, rcx
sar rdx, 1
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, 0x1000
test eax, eax
jne 0x14001d615
mov ebx, edi
jmp 0x14001d77b
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
movdqa xmm6, xmmword [0x1400489f0]
movdqu xmmword [rbp - 0x11], xmm6
mov word [rbp - 0x21], di
movups xmmword [rbp + 0x1f], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x2f], xmm1
mov rcx, rbx
call fcn.14003687c
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x1f]
call fcn.1400012c0
nop
mov rbx, qword [rbp - 0x39]
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xf], xmm1
mov rcx, rbx
call fcn.14003687c
mov r8, rax
mov rdx, rbx
lea rcx, [rbp - 1]
call fcn.1400012c0
nop
lea r8, [rbp - 0x21]
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 1]
call fcn.14001666c
nop
mov rdx, qword [rbp + 0x17]
cmp rdx, 7
jbe 0x14001d6d2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, rsi
jb 0x14001d6c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001d7e6
call fcn.140031c2c
movdqa xmm6, xmmword [0x1400489f0]
movdqu xmmword [rbp + 0xf], xmm6
mov word [rbp - 1], di
mov rdx, qword [rbp + 0x37]
cmp rdx, 7
jbe 0x14001d717
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, rsi
jb 0x14001d712
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001d7ec
call fcn.140031c2c
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 7
cmova rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
mov rdx, qword [rbp - 9]
cmp rdx, 7
jbe 0x14001d76a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, rsi
jb 0x14001d765
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001d7f2
call fcn.140031c2c
movdqa xmm0, xmmword [0x1400489f0]
movdqu xmmword [rbp - 0x11], xmm0
mov word [rbp - 0x21], di
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x14001d7b3
mov rdx, qword [rbp - 0x29]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, rsi
jb 0x14001d7ae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001d7e0
call fcn.140031c2c
mov rax, rbx
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140031d40
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret
call fcn.140036804
nop
call fcn.140036804
nop
call fcn.140036804
nop
call fcn.140036804
int3