joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002d850
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0x50
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rsi, rdx
mov qword [rax - 0x28], 0
mov dword [rax - 0x30], 0x80
mov dword [rax - 0x38], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14002d949
call fcn.14002cde0
test al, al
jne 0x14002d926
mov ecx, dword [0x1401d5d60]
test ecx, ecx
je 0x14002d926
nop dword [rax]
mov eax, ecx
and eax, 0x80000001
jge 0x14002d8d0
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x14002d8e5
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov dword [0x1401d5d60], eax
jmp 0x14002d8f2
lea ecx, [rcx*2 + 1]
mov dword [0x1401d5d60], ecx
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
mov edx, ecx
sub edx, eax
je 0x14002d914
sub edx, 2
je 0x14002d917
dec edx
je 0x14002d919
jmp 0x14002d922
add ecx, 2
inc ecx
add ecx, 2
mov dword [0x1401d5d60], ecx
test ecx, ecx
jne 0x14002d8c0
mov rdx, qword [rsi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14002d942
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x14002d9e2
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x60], 0
mov rax, qword [rsi]
mov ebx, dword [rax - 0x10]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
or eax, ecx
jge 0x14002d981
xor edx, edx
mov rcx, rsi
call fcn.140002560
lea r8d, [rbx + rbx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov rdx, qword [rsi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
sete bl
mov rdx, qword [rsi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14002d9df
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, bl
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x14002da00
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov edx, 0x80000000
xor r8d, r8d
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14002daaa
mov ecx, dword [0x1401d5d60]
lea edx, [rcx + 1]
mov eax, edx
imul eax, ecx
and eax, 0x8000000f
jge 0x14002da5c
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 5
jne 0x14002da9d
test ecx, ecx
je 0x14002da93
dec ecx
je 0x14002da7c
mov dword [0x1401d5d60], edx
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov dword [0x1401d5d60], 0
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov dword [0x1401d5d60], 2
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov eax, eax
mov qword [rdi], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [0x1401d5d60]
mov eax, 0x88888889
lea ecx, [r8 + 1]
imul ecx, r8d
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xf
sub ecx, edx
cmp ecx, 4
jne 0x14002db37
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 4
imul edx, edx, 0x64
sub r8d, edx
add r8d, 0x63
movsxd rcx, r8d
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400d2e28
mov rcx, rax
call fcn.1400d3f08
mov eax, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14002e0f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rcx, qword [rcx]
xor r9d, r9d
mov rsi, rdx
mov qword [rsp + 0x30], 0
lea r8d, [r9 + 2]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
xor dil, dil
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov eax, dword [0x1401d5d60]
mov ecx, eax
imul ecx, eax
imul ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
sub ecx, eax
cmp ecx, 4
jne 0x14002e180
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0xcccccccd
mul ecx
shr edx, 6
lea eax, [rdx + rdx*4]
shl eax, 4
sub ecx, eax
inc ecx
mov dword [0x1401d5d60], ecx
cmp rbx, 0xffffffffffffffff
je 0x14002e241
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rdx, qword [rsi]
mov dword [rsp + 0x50], 0
mov r8d, dword [rdx - 0x10]
lea r9, [rsp + 0x50]
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002e238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [0x1401d5d60]
lea eax, [rcx + 1]
imul eax, ecx
and eax, 0x8000000f
jge 0x14002e1f1
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 0xf
jne 0x14002e235
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 4
imul edx, edx, 0x64
sub ecx, edx
add ecx, 0x7b
movsxd rcx, ecx
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400d2e28
mov rcx, rax
call fcn.1400d3f08
mov dil, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
movzx eax, dil
add rsp, 0x40
pop rdi
ret
Function at 0x14004ad90
Capabilities:
Check os version

Disassembly:
sub rsp, 0x38
mov r8d, dword [0x1401d5d60]
mov eax, 0x66666667
lea ecx, [r8 + 1]
imul ecx, r8d
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub ecx, eax
cmp ecx, 0x13
jne 0x14004ae22
movsd xmm3, qword [0x140162fc8]
movsd xmm5, qword [0x140162ff0]
movd xmm4, r8d
xorps xmm2, xmm2
movaps xmmword [rsp + 0x20], xmm6
movsd xmm6, qword [0x140162fc0]
cvtdq2pd xmm4, xmm4
nop word [rax + rax]
addsd xmm2, xmm3
movaps xmm0, xmm2
mulsd xmm0, xmm2
comisd xmm0, xmm4
jbe 0x14004ae09
subsd xmm2, xmm3
divsd xmm3, xmm5
movaps xmm1, xmm2
movaps xmm0, xmm4
mulsd xmm1, xmm2
subsd xmm0, xmm1
comisd xmm0, xmm6
ja 0x14004adf0
movaps xmm6, xmmword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
setb al
add rsp, 0x38
ret
Function at 0x14004d8c0
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x160
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x1401cde90]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov rsi, rcx
xor ebp, ebp
mov qword [rsp + 0x50], rbp
mov dword [rsp + 0x58], ebp
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rbp
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0x100
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14004d959
mov dword [rsp + 0x58], ebp
mov rbx, qword [rsp + 0x68]
mov qword [rsp + 0x50], rbx
jmp 0x14004d986
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebp
mov r8, qword [rbx]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.14001c1c0
mov rbx, qword [rsp + 0x50]
test eax, eax
je 0x14004d986
xor dil, dil
jmp 0x14004da4c
mov rcx, qword [r14]
mov eax, ebp
test rcx, rcx
setne al
test eax, eax
jne 0x14004d99a
lea edi, [rax + 0xd]
jmp 0x14004d9d2
or rax, 0xffffffffffffffff
nop
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x14004d9a0
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test rbx, rbx
je 0x14004d9e8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rbp
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], ebp
mov r8d, dword [0x1401d5d60]
lea ecx, [r8 + 1]
imul ecx, r8d
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
cmp ecx, 0x11
jne 0x14004da46
mov ecx, ebp
lea rdx, [rsp + 0x80]
mov eax, dword [rdx]
imul eax, eax, 0xe3
add r8d, eax
inc ecx
lea rdx, [rdx + 4]
movsxd rax, ecx
cmp rax, 0xc8
jb 0x14004da23
mov dword [0x1401d5d60], r8d
test edi, edi
sete dil
test rbx, rbx
je 0x14004da5f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], rbp
movzx eax, dil
mov dword [rsp + 0x58], ebp
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400d37e0
add rsp, 0x160
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14004da90
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x768
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x1401cde90]
xor rax, rsp
mov qword [rsp + 0x750], rax
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov rsi, rcx
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x60], r15d
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0x100
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14004db31
mov dword [rsp + 0x60], r15d
mov rbp, qword [rsp + 0x70]
mov qword [rsp + 0x58], rbp
jmp 0x14004dbbd
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r15d
mov r8, qword [rbx]
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.14001c1c0
test eax, eax
je 0x14004dbb8
mov r8d, dword [0x1401d5d60]
lea r9d, [r8 + 1]
lea ecx, [r8 + 2]
imul ecx, r9d
imul ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
add eax, eax
sub ecx, eax
cmp ecx, 1
jne 0x14004dbac
test r8d, r8d
je 0x14004dba2
dec r8d
je 0x14004db99
mov dword [0x1401d5d60], r9d
jmp 0x14004dbac
mov dword [0x1401d5d60], r15d
jmp 0x14004dbac
mov dword [0x1401d5d60], 2
xor bl, bl
mov rbp, qword [rsp + 0x58]
jmp 0x14004dcb7
mov rbp, qword [rsp + 0x58]
mov eax, dword [r14]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r14d, eax
mov ecx, dword [0x1401d5d60]
lea r9d, [rcx + 2]
lea edx, [rcx + 1]
imul r9d, edx
imul r9d, ecx
mov eax, 0x66666667
imul r9d
sar edx, 2
mov r8d, edx
shr r8d, 0x1f
add edx, r8d
lea eax, [rdx + rdx*4]
add eax, eax
sub r9d, eax
cmp r9d, 1
jne 0x14004dc96
mov edi, r15d
lea rsi, [rsp + 0x80]
mov r9d, r15d
nop word [rax + rax]
lea ebx, [r9 + 1]
lea r8d, [rdi + 1]
mov eax, ecx
cdq
idiv r8d
mov r8d, edx
mov eax, ecx
sub eax, edi
imul r8d, eax
mov eax, ecx
cdq
idiv ebx
add r8d, eax
sub r8d, r9d
mov edx, r8d
lea rcx, [0x14015c6dc]
call fcn.1400d40f4
mov r9d, ebx
add rsi, 4
cmp ebx, 0x1d
jge 0x14004dc87
mov ecx, dword [0x1401d5d60]
jmp 0x14004dc40
inc edi
cmp edi, 0xf
jge 0x14004dc96
mov ecx, dword [0x1401d5d60]
jmp 0x14004dc31
test rbp, rbp
je 0x14004dcac
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, r15
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x60], r15d
test r14d, r14d
sete bl
test rbp, rbp
je 0x14004dcca
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], r15
movzx eax, bl
mov dword [rsp + 0x60], r15d
mov rcx, qword [rsp + 0x750]
xor rcx, rsp
call fcn.1400d37e0
add rsp, 0x768
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14004dd00
Capabilities:
Get disk size
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov qword [r11 - 0x50], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov rdi, r9
mov rsi, r8
mov r15, rdx
mov r14, rcx
xor r12d, r12d
mov ebx, r12d
mov qword [r11 - 0x48], rbx
mov dword [r11 - 0x40], r12d
mov qword [r11 - 0x38], r12
mov eax, dword [0x1401d5d60]
lea r10d, [rax + 1]
imul r10d, eax
mov eax, 0x92492493
imul r10d
add edx, r10d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 7
sub r10d, edx
cmp r10d, 1
jne 0x14004dd80
mov qword [r11 - 0x68], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov qword [rsp + 0xa0], r12
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004def6
mov dword [rsp + 0x48], r12d
mov rbx, qword [rsp + 0xa0]
mov qword [rsp + 0x40], rbx
mov rax, qword [r14]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, 0x800
or eax, ecx
jge 0x14004dde8
mov edx, 0x800
mov rcx, r14
call fcn.140002560
mov rsi, qword [r14]
cmp dword [rsi - 0xc], 0x800
jge 0x14004ddff
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rsi - 0x10], 0x800
mov rax, qword [r14]
mov word [rax + 0x1000], r12w
mov dword [rsp + 0xa0], 0x1000
mov ebp, r12d
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [r15]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14004de90
mov eax, dword [rsp + 0x30]
dec eax
cmp eax, 1
jbe 0x14004de5d
mov edi, 0xd
jmp 0x14004de90
mov ecx, dword [rsp + 0xa0]
test rsi, rsi
je 0x14004de89
test ecx, ecx
je 0x14004de85
test cl, 1
jne 0x14004de7e
mov eax, ecx
shr rax, 1
cmp word [rsi + rax*2 - 2], bp
je 0x14004de89
mov edi, 0xd
jmp 0x14004de90
mov word [rsi], r12w
mov ebp, ecx
shr ebp, 1
mov edi, r12d
lea eax, [rbp - 1]
cmp eax, 0xffffffff
jne 0x14004deae
mov rcx, qword [r14]
test rcx, rcx
jne 0x14004dea5
mov eax, r12d
jmp 0x14004deb2
movsxd rdx, dword [rcx - 0xc]
call fcn.1400d4464
test eax, eax
js 0x14004deeb
mov rcx, qword [r14]
cmp eax, dword [rcx - 0xc]
jg 0x14004deeb
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [r14]
mov word [rax + rcx*2], r12w
test rbx, rbx
je 0x14004dede
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r12
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], r12d
test edi, edi
sete dil
jmp 0x14004def9
mov ecx, 0x80070057
call fcn.140001920
int3
xor dil, dil
test rbx, rbx
je 0x14004df0c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x48], r12d
movzx eax, dil
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14004df30
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov r10, r9
mov rax, r8
mov rsi, rdx
mov rdi, rcx
xor ebp, ebp
mov ebx, ebp
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], ebp
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004e08d
mov dword [rsp + 0x48], ebp
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14004dfda
mov edi, ebp
mov eax, 0xd
cmp dword [rsp + 0x30], 4
cmovne edi, eax
call fcn.14004ab70
test al, al
jne 0x14004e02c
mov r8d, dword [0x1401d5d60]
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul edx, edx, 0x64
sub r8d, edx
add r8d, 0x63
movsxd rcx, r8d
mov eax, 4
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400d2e28
mov rcx, rax
call fcn.1400d3f08
test rbx, rbx
je 0x14004e042
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rbp
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], ebp
mov eax, dword [0x1401d5d60]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 0x80000007
jge 0x14004e061
dec ecx
or ecx, 0xfffffff8
inc ecx
cmp ecx, 7
jne 0x14004e085
mov ecx, 1
mov eax, ecx
mov r8d, 0xf8
lea edx, [rax + rcx]
lea ecx, [rax]
mov eax, edx
dec r8d
jns 0x14004e073
mov dword [0x1401d5d60], edx
test edi, edi
sete dil
jmp 0x14004e0cc
mov eax, dword [0x1401d5d60]
lea ecx, [rax + 1]
imul ecx, eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x16
sub ecx, edx
cmp ecx, 3
jne 0x14004e0c9
mov edx, 0xf5
lea r8d, [rdx + 1]
lea rcx, [0x14015c71c]
call fcn.1400d40f4
xor dil, dil
test rbx, rbx
je 0x14004e0df
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
movzx eax, dil
mov dword [rsp + 0x48], ebp
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140053ec0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbp
mov rbx, rcx
mov dword [rsp + 0x30], 0
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov edi, eax
movzx r14d, al
mov r8d, dword [0x1401d5d60]
lea edx, [r8 + 1]
imul edx, r8d
and edx, 0x8000000f
jge 0x140053f17
dec edx
or edx, 0xfffffff0
inc edx
cmp edx, 1
jne 0x140053f43
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0xcccccccd
mul r8d
shr edx, 6
lea ecx, [rdx + rdx*4]
shl ecx, 4
sub r8d, ecx
inc r8d
mov dword [0x1401d5d60], r8d
movzx eax, di
shr ax, 8
movzx ebp, al
cmp edi, 0x80000000
jae 0x140053f5a
mov esi, edi
shr esi, 0x10
cmp r14d, 6
jb 0x140053fba
cmp ebp, 2
jb 0x140053fba
lea ecx, [r8 + 1]
imul ecx, r8d
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 2
sub ecx, eax
cmp ecx, 0xb
jne 0x140053fa3
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetMailslotInfo]
mov rcx, rbx
call fcn.140054360
nop
mov edi, 1
mov dword [rsp + 0x30], edi
jmp 0x14005405d
lea rcx, str.__r_
mov rax, qword [str.__r_]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov r10d, dword [0x1401d5d60]
mov ecx, r10d
imul ecx, r10d
imul ecx, r10d
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xd
sub ecx, edx
mov edi, 1
cmp ecx, 9
jne 0x140054014
test r10d, r10d
cmove r10d, edi
mov dword [0x1401d5d60], r10d
mov dword [rsp + 0x20], esi
mov r9d, ebp
mov r8d, r14d
lea rdx, str._d._d___d_
lea rcx, [rsp + 0x68]
call fcn.140012260
mov rsi, qword [rsp + 0x68]
lea rcx, [rsi - 0x18]
call fcn.1400025c0
add rax, 0x18
mov qword [rbx], rax
mov dword [rsp + 0x30], edi
lock add dword [rsi - 8], 0xffffffff
jg 0x14005405d
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
lea rdx, [rsi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rbx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140055b70
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1401cde90]
xor rax, rsp
mov qword [rbp - 0x10], rax
call fcn.140055580
test al, al
jne 0x140055b9c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1401d5d60], eax
cmp byte [0x1401d7a18], 0
lea rax, [0x1401d1458]
jne 0x140055c2f
mov dword [rbp - 0x40], 0x40003
mov dword [rbp - 0x3c], 0xd0007
mov dword [rbp - 0x38], 0xf000a
mov dword [rbp - 0x34], 0x1e003e
mov dword [rbp - 0x30], 0x2a001b
mov dword [rbp - 0x2c], 0x17000a
mov dword [rbp - 0x28], 0x14000a
mov dword [rbp - 0x24], 0x2001f
mov dword [rbp - 0x20], 0x1e0034
mov dword [rbp - 0x1c], 0x1d000c
mov dword [rbp - 0x18], 0x90016
mov dword [rbp - 0x14], 5
xor ecx, ecx
lea r8, [0x1401d0d90]
nop dword [rax]
movzx edx, byte [rcx + r8]
inc rcx
xor dx, word [rbp + rcx*2 - 0x42]
mov word [rax + rcx*2 - 2], dx
cmp rcx, 0x17
jl 0x140055c10
mov byte [0x1401d7a18], 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400d37e0
add rsp, 0x60
pop rbp
ret

Function at 0x140055c50
Capabilities:
Encode data using xor

Disassembly:
mov r8d, dword [0x1401d5d60]
mov eax, 0x2aaaaaab
mov ecx, r8d
imul ecx, r8d
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
cmp ecx, 0x11
jne 0x140055d1c
xor edx, edx
mov ecx, edx
mov eax, edx
inc edx
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, r8d
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, r8d
xor eax, ecx
mov ecx, eax
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, r8d
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, r8d
xor eax, ecx
mov ecx, eax
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, r8d
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, r8d
xor eax, ecx
mov ecx, eax
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, r8d
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, r8d
xor eax, ecx
add r8d, eax
cmp edx, 0x100
jl 0x140055c82
mov dword [0x1401d5d60], r8d
cmp byte [0x1401d7a21], 0
jne 0x140055d8b
movzx eax, byte [0x1401d0d90]
mov byte [0x1401d7a21], 1
xor al, 0x43
movzx eax, al
mov word [0x1401d1360], ax
movzx eax, byte [0x1401d0d91]
xor al, 0x15
movzx eax, al
mov word [0x1401d1362], ax
movzx eax, byte [0x1401d0d92]
xor al, 0x1e
movzx eax, al
mov word [0x1401d1364], ax
movzx eax, byte [0x1401d0d93]
xor al, 0x50
movzx eax, al
mov word [0x1401d1366], ax
movzx eax, byte [0x1401d0d94]
xor al, 0x52
movzx eax, al
mov word [0x1401d1368], ax
lea rax, [0x1401d1360]
ret
Function at 0x140055da0
Capabilities:
Encode data using xor

Disassembly:
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1401cde90]
xor rax, rsp
mov qword [rbp + 8], rax
mov r8d, dword [0x1401d5d60]
lea eax, [r8 + 1]
lea ecx, [r8 + 2]
imul ecx, eax
mov eax, 0x92492493
imul ecx, r8d
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 7
sub ecx, edx
cmp ecx, 2
jne 0x140055dfe
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetFileType]
mov r8d, dword [0x1401d5d60]
cmp byte [0x1401d7a02], 0
je 0x140055e13
lea rax, [0x1401d18f0]
jmp 0x140055ef7
mov ecx, r8d
mov eax, 0x92492493
imul ecx, r8d
imul ecx, r8d
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 7
sub ecx, edx
cmp ecx, 3
jne 0x140055e46
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
xor ecx, ecx
mov dword [rbp - 0x30], 0x13000b
mov dword [rbp - 0x2c], 0x3e001e
mov dword [rbp - 0x28], 0x5001a
mov dword [rbp - 0x24], 0x120004
mov dword [rbp - 0x20], 0x100004
mov word [rbp + 4], cx
mov dword [rbp - 0x1c], 0x11000a
mov dword [rbp - 0x18], 0x11000a
mov dword [rbp - 0x14], 0x150034
mov dword [rbp - 0x10], 0x4000e
mov dword [rbp - 0xc], 0x7000a
mov dword [rbp - 8], 0x390017
mov dword [rbp - 4], 0x9001a
mov dword [rbp], 0x40006
lea rax, [0x1401d18f0]
lea r9, [0x1401d0d91]
nop word [rax + rax]
movzx edx, byte [rcx + r9 - 1]
movzx r8d, word [rbp + rcx*2 - 0x2e]
add rcx, 2
xor dx, word [rbp + rcx*2 - 0x34]
mov word [rax + rcx*2 - 4], dx
movzx edx, byte [rcx + r9 - 2]
xor r8w, dx
mov word [rax + rcx*2 - 2], r8w
cmp rcx, 0x1a
jl 0x140055ec0
mov byte [0x1401d7a02], 1
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.1400d37e0
add rsp, 0x110
pop rbp
ret