joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180c24058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.180c241df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180c24089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180c2406f
add dl, dl
jne 0x180c24096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180c240f6
xor eax, eax
add dl, dl
jne 0x180c240a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180c241ad
add dl, dl
jne 0x180c240b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180c240c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180c240d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180c240dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x180c240ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x180c2407e
mov eax, 1
add dl, dl
jne 0x180c24106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180c24113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180c240fb
sub eax, ebx
mov ebx, 1
jne 0x180c2414c
mov ecx, 1
add dl, dl
jne 0x180c2412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180c2413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180c24123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180c2407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180c24168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180c24175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180c2415d
cmp eax, 0x7d00
jae 0x180c2419b
cmp eax, 0x500
jb 0x180c24196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180c2407e
cmp eax, 0x7f
ja 0x180c2419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180c2407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x180c241d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x180c2407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180005670
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
mov eax, 0x1400
call fcn.18008b360
sub rsp, rax
mov rax, qword [0x18021a280]
xor rax, rsp
mov qword [rsp + 0x13f0], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
call fcn.180088178
mov edx, eax
mov dword [rsp + 0x13e4], 0xffffffff
mov dword [rsp + 0x64], eax
mov eax, 1
nop dword [rax]
nop dword [rax + rax]
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [rsp + rax*4 + 0x64], edx
inc rax
cmp rax, 0x270
jb 0x1800056c0
mov dword [rsp + 0x60], 0x270
lea rcx, [rsp + 0x60]
call fcn.18000b4f0
mov ecx, eax
imul rax, rcx, 0xdbba0
cmp eax, 0x28d7f
ja 0x18000571a
lea rcx, [rsp + 0x60]
call fcn.18000b4f0
mov ecx, eax
imul rax, rcx, 0xdbba0
cmp eax, 0x28d80
jb 0x180005700
shr rax, 0x20
add eax, 0x800186a0
btc eax, 0x1f
lea rcx, [0x1800f3760]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 3
mov dword [rsp + 0x50], eax
movabs rax, 0x1000000000000000
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], 1
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm1
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.18000a600
mov rax, rbx
mov rcx, qword [rsp + 0x13f0]
xor rcx, rsp
call fcn.18008a510
add rsp, 0x1400
pop rbx
ret
Function at 0x180027a30
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x180027a54
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x180027ae2
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x180027ab0
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x180027ab0
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.1800b9680
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x180027acd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180027ad5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x180027a71
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x180027bc0
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x180027af9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180027afb
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180027b2d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.1800b9680
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x180027bbd
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180027b68
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x180027b9e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.18009eb40
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x180027bbd
cmp rsi, rax
ja 0x180027b71
test rsi, rsi
je 0x180027bbd
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.18009eb40
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x1800309e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x180030a14
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x180030a00
ret
Function at 0x180040690
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x180040755
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x180040755
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x18004076e
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x180040745
cmp byte [rcx], 0x5c
jne 0x18004073e
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x18004073e
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x18004072c
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x18004073b
test r8b, 0x10
jne 0x18004073e
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x18004073e
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.180038d30
test edi, edi
jne 0x1800406b0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.180038d20
int3
Function at 0x18004b320
Capabilities:
Terminate process

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x18021a280]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x20]
mov r15, rcx
xor r14b, r14b
call fcn.18004b4b0
mov rcx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
cmp rcx, rbp
je 0x18004b41f
mov qword [rsp + 0x68], rbx
lea rbx, [rcx + 8]
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
nop
cmp qword [rbx + 0x18], 7
mov rax, rbx
jbe 0x18004b37d
mov rax, qword [rbx]
cmp qword [r15 + 0xb8], 7
lea r8, [r15 + 0xa0]
mov rdx, qword [r15 + 0xb0]
jbe 0x18004b39c
mov r8, qword [r15 + 0xa0]
cmp rdx, qword [rbx + 0x10]
jne 0x18004b3f5
test rdx, rdx
je 0x18004b3c4
sub r8, rax
nop word [rax + rax]
movzx ecx, word [r8 + rax]
cmp cx, word [rax]
jne 0x18004b3f5
add rax, 2
sub rdx, 1
jne 0x18004b3b0
mov r8d, dword [rbx - 8]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18004b3f5
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14b, 1
add rbx, 0x28
lea rax, [rbx - 8]
cmp rax, rbp
jne 0x18004b370
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x18004b485
mov rdx, rbp
call fcn.18004b940
mov r8, qword [rsp + 0x20]
movabs rax, 0x6666666666666667
mov rcx, qword [rsp + 0x30]
sub rcx, r8
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, r8
lea rdx, [rdx + rdx*4]
shl rdx, 3
cmp rdx, 0x1000
jb 0x18004b47d
mov r8, qword [r8 - 8]
add rdx, 0x27
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004b4aa
mov rcx, r8
call fcn.18008a530
test r14b, r14b
je 0x18004b493
xor eax, eax
xchg byte [r15 + 0x119], al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18008a510
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
call fcn.1800997f4
int3
Function at 0x18004b4b0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x18021a280]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rbx, rdx
mov qword [rsp + 0x70], rdx
mov dword [rsp + 0x20], 1
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
xor esi, esi
mov qword [rdx], rsi
mov qword [rdx + 8], rsi
mov qword [rdx + 0x10], rsi
mov dword [rsp + 0x20], 1
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18004b681
xor edx, edx
mov r8d, 0x234
lea rcx, [rbp - 0x7c]
call fcn.1800b9d20
mov dword [rbp - 0x80], 0x238
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x18004b677
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rsi
lea rax, [rbp - 0x54]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x18004b570
lea rdx, [rbp - 0x54]
lea rcx, [rsp + 0x50]
call fcn.180008f40
nop
mov eax, dword [rbp - 0x78]
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.1800064f0
nop
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x18004b5d4
mov eax, dword [rsp + 0x28]
mov dword [rdx], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdx + 8], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rdx + 0x18], xmm1
mov edx, 7
mov word [rsp + 0x30], si
add qword [rbx + 8], 0x28
jmp 0x18004b5e6
lea r8, [rsp + 0x28]
mov rcx, rbx
call fcn.18004bbe0
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x18004b624
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004b61e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004b6ac
call fcn.18008a530
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x18004b662
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004b65d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004b6b2
call fcn.18008a530
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x18004b552
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, rbx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.18008a510
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1800997f4
nop
call fcn.1800997f4
int3
Function at 0x18004c480
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x18021a280]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x208
xor edi, edi
call fcn.1800b9d20
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xorps xmm0, xmm0
lea rdx, [rsp + 0x30]
movups xmmword [rbx], xmm0
mov r8d, 3
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov rcx, rbx
cmp eax, r8d
jae 0x18004c4f3
lea rdx, [0x1801fdc38]
call fcn.180008f40
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18008a510
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x18004c520
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x18021a280]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rbx, rcx
mov qword [rsp + 0x70], rcx
mov dword [rsp + 0x20], 1
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor esi, esi
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov dword [rsp + 0x20], 1
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18004c6f1
xor edx, edx
mov r8d, 0x234
lea rcx, [rbp - 0x7c]
call fcn.1800b9d20
mov dword [rbp - 0x80], 0x238
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x18004c6e7
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rsi
lea rax, [rbp - 0x54]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x18004c5e0
lea rdx, [rbp - 0x54]
lea rcx, [rsp + 0x50]
call fcn.180008f40
nop
mov eax, dword [rbp - 0x78]
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.1800064f0
nop
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x18004c644
mov eax, dword [rsp + 0x28]
mov dword [rdx], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdx + 8], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rdx + 0x18], xmm1
mov edx, 7
mov word [rsp + 0x30], si
add qword [rbx + 8], 0x28
jmp 0x18004c656
lea r8, [rsp + 0x28]
mov rcx, rbx
call fcn.18004bbe0
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x18004c694
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004c68e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004c71c
call fcn.18008a530
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x18004c6d2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004c6cd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004c722
call fcn.18008a530
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x18004c5c2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, rbx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.18008a510
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1800997f4
nop
call fcn.1800997f4
int3
Function at 0x18004c830
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x18021a280]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
lea rdx, str.SYSTEMCurrentControlSetControlSession_ManagerPower
mov dword [rsp + 0x38], eax
mov r9d, 0x20006
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x18004c88d
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18008a510
add rsp, 0x58
ret
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, str.HiberbootEnabled
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x50], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x50]
sete al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18008a510
add rsp, 0x58
ret
Function at 0x18004ca90
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x18021a280]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rdi, rdx
mov qword [rsp + 0x28], rdx
xor r14d, r14d
lea rdx, [rbp - 0x80]
mov ecx, 0x200
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, eax
cmp eax, 0x200
jbe 0x18004caf1
mov qword [rdi], r14
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], r14
jmp 0x18004ccb2
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov r8, r14
mov qword [rsp + 0x58], r14
movdqu xmmword [rsp + 0x30], xmm1
mov rdx, r14
mov qword [rsp + 0x40], rdx
movzx ebx, r14w
test esi, esi
je 0x18004cc3a
mov rcx, qword [rsp + 0x38]
movzx eax, bx
lea r8, [rbp - 0x80]
lea r8, [r8 + rax*2]
movzx eax, word [r8]
test ax, ax
je 0x18004cb62
cmp rcx, rdx
je 0x18004cb50
mov word [rcx], ax
mov rcx, qword [rsp + 0x38]
add rcx, 2
mov qword [rsp + 0x38], rcx
jmp 0x18004cc22
mov rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.18004dcd0
jmp 0x18004cc1d
mov r8, rcx
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.18004db70
nop
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x18004cbc4
mov rax, qword [rsp + 0x50]
cmp rax, qword [rsp + 0x58]
je 0x18004cbb2
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.1800064f0
add qword [rsp + 0x50], 0x20
jmp 0x18004cbc4
lea r8, [rsp + 0x60]
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.18004de70
mov rcx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x30]
cmp r8, rcx
je 0x18004cbdb
mov rcx, r8
mov qword [rsp + 0x38], rcx
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x18004cc22
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004cc18
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004ccdc
call fcn.18008a530
mov rcx, qword [rsp + 0x38]
inc bx
movzx eax, bx
mov rdx, qword [rsp + 0x40]
cmp eax, esi
jb 0x18004cb21
mov r8, qword [rsp + 0x58]
mov qword [rsp + 0x58], r14
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x50], r14
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x48], r14
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r8
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x18004cca8
sub rdx, r8
sar rdx, 1
add rdx, rdx
mov rax, r8
cmp rdx, 0x1000
jb 0x18004cc92
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004cce2
mov rcx, r8
call fcn.18008a530
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
lea rcx, [rsp + 0x48]
call fcn.18004b7f0
mov rax, rdi
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.18008a510
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1800997f4
nop
call fcn.1800997f4
int3
Function at 0x18004d9a0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x78
mov rax, qword [0x18021a280]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ecx, ecx
mov dword [rsp + 0x58], reloc.LIBPQ.dll_Ordinal_20
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, str.SYSTEMCurrentControlSetControlGraphicsDrivers
mov qword [rsp + 0x30], rcx
xor r9d, r9d
mov qword [rsp + 0x50], rcx
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ecx
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x5c], 0xa
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x18004da44
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
lea rdx, str.TdrDelay
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x18004da58
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18008a510
add rsp, 0x78
ret
lea rax, [rsp + 0x5c]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.TdrDdiDelay
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
test eax, eax
jne 0x18004da3e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18008a510
add rsp, 0x78
ret

Function at 0x18004dab0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x18021a280]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
lea rdx, str.SYSTEMCurrentControlSetControlDeviceGuardScenariosHypervisorEnforcedCodeIntegrity
mov qword [rsp + 0x30], rax
mov r9d, 0x20006
mov dword [rsp + 0x38], eax
xor r8d, r8d
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x18004db0d
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18008a510
add rsp, 0x58
ret
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, str.Enabled
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x50], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x50]
sete al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18008a510
add rsp, 0x58
ret
Function at 0x180054360
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rdx + 0x18], 7
mov rbx, rdx
mov rcx, rdx
jbe 0x180054376
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800543a3
test al, 4
jne 0x1800543a3
cmp qword [rbx + 0x18], 7
jbe 0x18005438f
mov rbx, qword [rbx]
mov edx, 6
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
add rsp, 0x20
pop rbx
ret
Function at 0x180082240
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r9, r9
je 0x1800823d6
cmp r9, 4
jb 0x18008227a
mov r10, r9
shr r10, 2
imul rax, r10, 0xfffffffffffffffc
add r9, rax
mov eax, dword [rdx]
add rdx, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub r10, 1
jne 0x180082261
xor r11d, r11d
test r9, r9
je 0x1800823d6
cmp r9, 8
jb 0x1800823ad
lea r10, [rcx - 1]
lea rax, [r8 - 1]
add r10, r9
add rax, r9
cmp rcx, rax
ja 0x1800822ac
cmp r10, r8
jae 0x1800823ad
lea rax, [rdx - 1]
add rax, r9
cmp rcx, rax
ja 0x1800822c1
cmp r10, rdx
jae 0x1800823ad
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x180082367
mov r10, r9
mov qword [rsp + 0x18], rsi
and r10d, 0x3f
mov rbx, r9
sub rbx, r10
mov rdi, rdx
lea rax, [r8 + 0x10]
sub rdi, r8
mov rsi, rcx
sub rsi, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rdi + rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rax - 0x10]
movdqu xmm2, xmmword [rdi + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rsi + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x30]
movdqu xmm1, xmmword [rax - 0x30]
movdqu xmmword [rsi + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x20]
movdqu xmm2, xmmword [rax - 0x20]
movdqu xmmword [rsi + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rsi + rax - 0x20], xmm2
cmp r11, rbx
jb 0x180082300
mov rsi, qword [rsp + 0x18]
cmp r10, 8
jb 0x18008239f
mov r10, r9
and r10, 0xfffffffffffffff8
mov rbx, rdx
lea rax, [r11 + r8]
sub rbx, r8
mov rdi, rcx
sub rdi, r8
nop
movq xmm1, qword [rax + rbx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rdi + rax - 8], xmm1
cmp r11, r10
jb 0x180082380
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x1800823d6
sub rdx, r8
lea r10, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [r10 + rdx]
xor al, byte [r10]
mov byte [rcx + r10], al
lea r10, [r10 + 1]
sub r9, 1
jne 0x1800823c0
add rsp, 8
ret