joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180027a50
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 0x180027a74
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 0x180027b02
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 0x180027ad0
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x180027ad0
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.1800b9c90
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x180027aed
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180027af5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x180027a91
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x180027be0
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x180027b19
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180027b1b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180027b4d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.1800b9c90
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 0x180027bdd
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180027b88
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 0x180027bbe
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.18009f150
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x180027bdd
cmp rsi, rax
ja 0x180027b91
test rsi, rsi
je 0x180027bdd
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.18009f150
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 0x180030e70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x180030ea4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x180030e90
ret
Function at 0x180040b20
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 0x180040be5
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x180040be5
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 0x180040bfe
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 0x180040bd5
cmp byte [rcx], 0x5c
jne 0x180040bce
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x180040bce
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x180040bbc
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x180040bcb
test r8b, 0x10
jne 0x180040bce
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x180040bce
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.1800391c0
test edi, edi
jne 0x180040b40
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.1800391b0
int3
Function at 0x18004b760
Capabilities:
Terminate process

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x18021b280]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x20]
mov r15, rcx
xor r14b, r14b
call fcn.18004b8f0
mov rcx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
cmp rcx, rbp
je 0x18004b85f
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 0x18004b7bd
mov rax, qword [rbx]
cmp qword [r15 + 0xb8], 7
lea r8, [r15 + 0xa0]
mov rdx, qword [r15 + 0xb0]
jbe 0x18004b7dc
mov r8, qword [r15 + 0xa0]
cmp rdx, qword [rbx + 0x10]
jne 0x18004b835
test rdx, rdx
je 0x18004b804
sub r8, rax
nop word [rax + rax]
movzx ecx, word [r8 + rax]
cmp cx, word [rax]
jne 0x18004b835
add rax, 2
sub rdx, 1
jne 0x18004b7f0
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 0x18004b835
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 0x18004b7b0
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 0x18004b8c5
mov rdx, rbp
call fcn.18004bd70
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 0x18004b8bd
mov r8, qword [r8 - 8]
add rdx, 0x27
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004b8ea
mov rcx, r8
call fcn.18008ab40
test r14b, r14b
je 0x18004b8d3
xor eax, eax
xchg byte [r15 + 0x119], al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18008ab20
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
call fcn.180099e04
int3
Function at 0x18004b8f0
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 [0x18021b280]
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 0x18004bac1
xor edx, edx
mov r8d, 0x234
lea rcx, [rbp - 0x7c]
call fcn.1800ba330
mov dword [rbp - 0x80], 0x238
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x18004bab7
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 0x18004b9b0
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 0x18004ba14
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 0x18004ba26
lea r8, [rsp + 0x28]
mov rcx, rbx
call fcn.18004c070
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x18004ba64
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004ba5e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004baec
call fcn.18008ab40
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x18004baa2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004ba9d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004baf2
call fcn.18008ab40
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x18004b992
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, rbx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.18008ab20
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.180099e04
nop
call fcn.180099e04
int3
Function at 0x18004c910
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x18021b280]
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.1800ba330
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 0x18004c983
lea rdx, [0x1801fee98]
call fcn.180008f40
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18008ab20
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x18004c9b0
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 [0x18021b280]
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 0x18004cb81
xor edx, edx
mov r8d, 0x234
lea rcx, [rbp - 0x7c]
call fcn.1800ba330
mov dword [rbp - 0x80], 0x238
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x18004cb77
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 0x18004ca70
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 0x18004cad4
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 0x18004cae6
lea r8, [rsp + 0x28]
mov rcx, rbx
call fcn.18004c070
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x18004cb24
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004cb1e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004cbac
call fcn.18008ab40
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x18004cb62
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004cb5d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004cbb2
call fcn.18008ab40
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x18004ca52
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, rbx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.18008ab20
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.180099e04
nop
call fcn.180099e04
int3
Function at 0x18004ccc0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x18021b280]
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 0x18004cd1d
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18008ab20
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.18008ab20
add rsp, 0x58
ret
Function at 0x18004cf20
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 [0x18021b280]
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 0x18004cf81
mov qword [rdi], r14
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], r14
jmp 0x18004d142
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 0x18004d0ca
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 0x18004cff2
cmp rcx, rdx
je 0x18004cfe0
mov word [rcx], ax
mov rcx, qword [rsp + 0x38]
add rcx, 2
mov qword [rsp + 0x38], rcx
jmp 0x18004d0b2
mov rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.18004e160
jmp 0x18004d0ad
mov r8, rcx
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.18004e000
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 0x18004d054
mov rax, qword [rsp + 0x50]
cmp rax, qword [rsp + 0x58]
je 0x18004d042
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.1800064f0
add qword [rsp + 0x50], 0x20
jmp 0x18004d054
lea r8, [rsp + 0x60]
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.18004e300
mov rcx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x30]
cmp r8, rcx
je 0x18004d06b
mov rcx, r8
mov qword [rsp + 0x38], rcx
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x18004d0b2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004d0a8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004d16c
call fcn.18008ab40
mov rcx, qword [rsp + 0x38]
inc bx
movzx eax, bx
mov rdx, qword [rsp + 0x40]
cmp eax, esi
jb 0x18004cfb1
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 0x18004d138
sub rdx, r8
sar rdx, 1
add rdx, rdx
mov rax, r8
cmp rdx, 0x1000
jb 0x18004d122
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004d172
mov rcx, r8
call fcn.18008ab40
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
lea rcx, [rsp + 0x48]
call fcn.18004bc00
mov rax, rdi
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.18008ab20
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.180099e04
nop
call fcn.180099e04
int3
Function at 0x18004de30
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x78
mov rax, qword [0x18021b280]
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 0x18004ded4
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 0x18004dee8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18008ab20
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 0x18004dece
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18008ab20
add rsp, 0x78
ret

Function at 0x18004df40
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x18021b280]
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 0x18004df9d
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18008ab20
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.18008ab20
add rsp, 0x58
ret
Function at 0x1800547f0
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 0x180054806
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180054833
test al, 4
jne 0x180054833
cmp qword [rbx + 0x18], 7
jbe 0x18005481f
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 0x1800652b0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0x230
mov rax, qword [0x18021b280]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rsi, rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x60], r8
xor ebx, ebx
mov edi, ebx
mov dword [rsp + 0x24], ebx
mov word [rsp + 0x20], bx
nop dword [rax]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0xd8], xmm0
movups xmmword [rsp + 0xe8], xmm0
mov qword [rsp + 0xf8], rax
lea r14, [0x18021c190]
cmp qword [reloc.LIBPQ.dll_Ordinal_15], 0xf
cmova r14, qword [0x18021c190]
movdqu xmmword [rsp + 0xc8], xmm0
mov qword [rsp + 0xd8], rbx
mov qword [rsp + 0xe0], rbx
mov ecx, Ordinal_26
call fcn.18008ab48
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0xf0], rbx
mov ecx, reloc.LIBPQ.dll_Ordinal_72
call fcn.18008ab48
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsp + 0xe8], rax
mov dword [rsp + 0xf8], ebx
mov edx, dword [0x180221514]
mov rax, qword gs:[0x58]
mov ecx, Ordinal_20
mov rax, qword [rax + rdx*8]
mov ecx, dword [rcx + rax]
cmp dword [0x180222d2c], ecx
jle 0x1800653df
lea rcx, [0x180222d2c]
call fcn.18008b0bc
cmp dword [0x180222d2c], 0xffffffff
jne 0x1800653df
call fcn.180006170
mov dword [0x180222d28], eax
lea rcx, [0x180222d2c]
call fcn.18008b050
mov rdx, r14
lea rcx, [rsp + 0xc8]
call fcn.18006b790
nop
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x100]
call fcn.180015170
nop
lea rcx, [rsp + 0xc8]
call fcn.18006ad00
lea rdx, [rsp + 0x100]
mov rcx, rsi
call fcn.180016300
or edi, 1
mov dword [rsp + 0x24], edi
lea rcx, [rsp + 0x100]
call fcn.180016050
nop
lea rcx, [rsp + 0xc8]
call fcn.18005ac80
mov rax, rsi
jmp 0x18006544f
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.18008ab20
mov rbx, qword [rsp + 0x250]
add rsp, 0x230
pop r14
pop rdi
pop rsi
ret
Function at 0x180082850
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r9, r9
je 0x1800829e6
cmp r9, 4
jb 0x18008288a
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 0x180082871
xor r11d, r11d
test r9, r9
je 0x1800829e6
cmp r9, 8
jb 0x1800829bd
lea r10, [rcx - 1]
lea rax, [r8 - 1]
add r10, r9
add rax, r9
cmp rcx, rax
ja 0x1800828bc
cmp r10, r8
jae 0x1800829bd
lea rax, [rdx - 1]
add rax, r9
cmp rcx, rax
ja 0x1800828d1
cmp r10, rdx
jae 0x1800829bd
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x180082977
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 0x180082910
mov rsi, qword [rsp + 0x18]
cmp r10, 8
jb 0x1800829af
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 0x180082990
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x1800829e6
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 0x1800829d0
add rsp, 8
ret