joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180024a20
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x18018a280]
xor rax, rsp
mov qword [rbp + 0x40], rax
xor ebx, ebx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], rax
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x30], Ordinal_106
mov dword [rbp + 0xc], 1
mov word [rbp + 0x10], bx
lea rax, str.cmd.exe__c_
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], Ordinal_21
mov rdx, rcx
cmp qword [rcx + 0x18], 7
jbe 0x180024a9f
mov rdx, qword [rcx]
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbp - 0x80], xmm0
movabs rax, 0xc000000000000000
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x50], 1
lea rax, [rsp + 0x78]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm1
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x58]
call fcn.18000d1f0
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 7
cmova rdx, qword [rbp - 0x58]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x180024b49
xor bl, bl
jmp 0x180024b6e
mov edx, 0x2710
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov rdx, qword [rbp - 0x40]
cmp rdx, 7
jbe 0x180024baa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180024ba5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180024bca
call fcn.18008ed30
movzx eax, bl
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.18008ed10
mov rbx, qword [rsp + 0x160]
add rsp, 0x150
pop rbp
ret
call fcn.1800a4178
int3
Function at 0x1800252e0
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 0x180025304
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 0x180025392
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 0x180025360
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x180025360
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.1800c48b0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18002537d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180025385
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x180025321
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x180025470
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x1800253a9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800253ab
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800253dd
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.1800c48b0
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 0x18002546d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180025418
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 0x18002544e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.1800a6818
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x18002546d
cmp rsi, rax
ja 0x180025421
test rsi, rsi
je 0x18002546d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1800a6818
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 0x180045ca0
Capabilities:
Terminate process

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x18018a280]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x20]
mov r15, rcx
xor r14b, r14b
call fcn.180045e30
mov rcx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
cmp rcx, rbp
je 0x180045d9f
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 0x180045cfd
mov rax, qword [rbx]
cmp qword [r15 + 0xb8], 7
lea r8, [r15 + 0xa0]
mov rdx, qword [r15 + 0xb0]
jbe 0x180045d1c
mov r8, qword [r15 + 0xa0]
cmp rdx, qword [rbx + 0x10]
jne 0x180045d75
test rdx, rdx
je 0x180045d44
sub r8, rax
nop word [rax + rax]
movzx ecx, word [r8 + rax]
cmp cx, word [rax]
jne 0x180045d75
add rax, 2
sub rdx, 1
jne 0x180045d30
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 0x180045d75
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 0x180045cf0
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 0x180045e05
mov rdx, rbp
call fcn.1800463a0
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 0x180045dfd
mov r8, qword [r8 - 8]
add rdx, 0x27
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180045e2a
mov rcx, r8
call fcn.18008ed30
test r14b, r14b
je 0x180045e13
xor eax, eax
xchg byte [r15 + 0x119], al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18008ed10
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
call fcn.1800a4178
int3
Function at 0x180045e30
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 [0x18018a280]
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 0x180046001
xor edx, edx
mov r8d, 0x234
lea rcx, [rbp - 0x7c]
call fcn.1800c4f50
mov dword [rbp - 0x80], 0x238
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180045ff7
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 0x180045ef0
lea rdx, [rbp - 0x54]
lea rcx, [rsp + 0x50]
call fcn.18000acd0
nop
mov eax, dword [rbp - 0x78]
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.180006650
nop
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x180045f54
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 0x180045f66
lea r8, [rsp + 0x28]
mov rcx, rbx
call fcn.180046620
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x180045fa4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180045f9e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004602c
call fcn.18008ed30
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x180045fe2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180045fdd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180046032
call fcn.18008ed30
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180045ed2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, rbx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.18008ed10
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.1800a4178
nop
call fcn.1800a4178
int3
Function at 0x180046cb0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x18018a280]
xor rax, rsp
mov qword [rbp + 0x30], rax
xor edi, edi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], rax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x40], Ordinal_106
mov ebx, 1
mov dword [rbp - 4], ebx
mov word [rbp], di
lea rax, str.cmd.exe__c_
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], Ordinal_21
mov rdx, rcx
cmp qword [rcx + 0x18], 7
jbe 0x180046d35
mov rdx, qword [rcx]
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsp + 0x78], xmm0
movabs rax, 0xc000000000000000
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm1
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x60]
call fcn.18000d1f0
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova rdx, qword [rbp - 0x60]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], Ordinal_21
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x180046e04
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dil, 1
lea rcx, [rsp + 0x50]
call fcn.180044ad0
mov rax, qword [rsp + 0x50]
jmp 0x180046e1b
lea rcx, [rsp + 0x50]
call fcn.180044ad0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x50], rax
xor dil, dil
movabs rdx, 0x7fffffffc46535ff
cmp rax, rdx
je 0x180046e3e
mov ecx, 0xff
cmovl ebx, ecx
test bl, bl
jns 0x180046e3e
add rax, 0x3b9aca00
jmp 0x180046e48
movabs rax, 0x7fffffffffffffff
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
call fcn.180046570
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x180046e93
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180046e8e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180046eb8
call fcn.18008ed30
movzx eax, dil
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.18008ed10
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call fcn.1800a4178
int3
Function at 0x180046ec0
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 [0x18018a280]
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 0x180047091
xor edx, edx
mov r8d, 0x234
lea rcx, [rbp - 0x7c]
call fcn.1800c4f50
mov dword [rbp - 0x80], 0x238
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180047087
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 0x180046f80
lea rdx, [rbp - 0x54]
lea rcx, [rsp + 0x50]
call fcn.18000acd0
nop
mov eax, dword [rbp - 0x78]
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.180006650
nop
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x180046fe4
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 0x180046ff6
lea r8, [rsp + 0x28]
mov rcx, rbx
call fcn.180046620
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x180047034
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004702e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800470bc
call fcn.18008ed30
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x180047072
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004706d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800470c2
call fcn.18008ed30
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180046f62
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, rbx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.18008ed10
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.1800a4178
nop
call fcn.1800a4178
int3
Function at 0x1800471a0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x18018a280]
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
jne 0x180047221
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
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18008ed10
add rsp, 0x58
ret
Function at 0x1800476a0
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 [0x18018a280]
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 0x180047701
mov qword [rdi], r14
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], r14
jmp 0x1800478c2
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 0x18004784a
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 0x180047772
cmp rcx, rdx
je 0x180047760
mov word [rcx], ax
mov rcx, qword [rsp + 0x38]
add rcx, 2
mov qword [rsp + 0x38], rcx
jmp 0x180047832
mov rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.1800488a0
jmp 0x18004782d
mov r8, rcx
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.180048740
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 0x1800477d4
mov rax, qword [rsp + 0x50]
cmp rax, qword [rsp + 0x58]
je 0x1800477c2
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.180006650
add qword [rsp + 0x50], 0x20
jmp 0x1800477d4
lea r8, [rsp + 0x60]
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.180048a40
mov rcx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x30]
cmp r8, rcx
je 0x1800477eb
mov rcx, r8
mov qword [rsp + 0x38], rcx
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x180047832
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180047828
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800478ec
call fcn.18008ed30
mov rcx, qword [rsp + 0x38]
inc bx
movzx eax, bx
mov rdx, qword [rsp + 0x40]
cmp eax, esi
jb 0x180047731
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 0x1800478b8
sub rdx, r8
sar rdx, 1
add rdx, rdx
mov rax, r8
cmp rdx, 0x1000
jb 0x1800478a2
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800478f2
mov rcx, r8
call fcn.18008ed30
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
lea rcx, [rsp + 0x48]
call fcn.180046230
mov rax, rdi
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.18008ed10
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.1800a4178
nop
call fcn.1800a4178
int3
Function at 0x1800485b0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x78
mov rax, qword [0x18018a280]
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 0x180048681
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
jne 0x18004867b
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]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18008ed10
add rsp, 0x78
ret

Function at 0x1800486a0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x18018a280]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
lea rdx, str.SYSTEMCurrentControlSetControlDeviceGuardScenariosHypervisorEnforcedCodeIntegrity
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
jne 0x180048721
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
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18008ed10
add rsp, 0x58
ret

Function at 0x18004b0c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x18004b0f4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x18004b0e0
ret
Function at 0x1800501d0
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 0x180050295
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x180050295
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 0x1800502ae
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 0x180050285
cmp byte [rcx], 0x5c
jne 0x18005027e
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x18005027e
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x18005026c
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x18005027b
test r8b, 0x10
jne 0x18005027e
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x18005027e
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.18004d0e0
test edi, edi
jne 0x1800501f0
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.18004d0d0
int3
Function at 0x180059650
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 0x180059666
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180059693
test al, 4
jne 0x180059693
cmp qword [rbx + 0x18], 7
jbe 0x18005967f
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