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

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rax - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rdi, rdx
mov qword [rax - 0x18], rdx
mov qword [rax - 0x38], 0
mov dword [rax - 0x40], 0x80
mov dword [rax - 0x48], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14002efc4
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, eax
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14002efbd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x14002f05d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x40], 0
mov rax, qword [rdi]
mov ebx, dword [rax - 0x10]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
or eax, ecx
jge 0x14002effc
xor edx, edx
mov rcx, rdi
call fcn.140002860
lea r8d, [rbx + rbx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rdx, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
sete bl
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14002f05a
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, bl
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14002f070
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor eax, eax
mov rdi, rdx
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14002f0b7
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 r8d, dword [0x1401ddd80]
mov eax, eax
mov ecx, r8d
mov qword [rdi], rax
mov eax, 0x66666667
mov edi, 1
imul ecx, r8d
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, 3
jne 0x14002f105
test r8d, r8d
cmove r8d, edi
mov dword [0x1401ddd80], r8d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x40
pop rdi
ret
Function at 0x14002f850
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
cmp rax, 0xffffffffffffffff
je 0x14002f932
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
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 0x14002f929
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [0x1401ddd80]
mov dil, 1
lea eax, [rcx + 1]
lea r8d, [rcx + 2]
imul r8d, eax
mov eax, 0x2e8ba2e9
imul r8d, ecx
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x16
sub r8d, edx
cmp r8d, 9
jne 0x14002f929
dec dword [0x1401deb4c]
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 0x1400313e0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov r9d, dword [0x1401ddd80]
lea r10d, [r9 + 2]
lea eax, [r9 + 1]
imul r10d, eax
imul r10d, r9d
mov eax, 0x66666667
imul r10d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub r10d, eax
cmp r10d, 9
jne 0x1400314b5
test r9d, r9d
je 0x1400314b5
mov eax, r9d
and eax, 0x80000001
jge 0x140031454
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x14003146b
mov eax, r9d
cdq
sub eax, edx
sar eax, 1
mov r9d, eax
mov dword [0x1401ddd80], eax
jmp 0x14003147a
lea r9d, [r9*2 + 1]
mov dword [0x1401ddd80], r9d
mov eax, 0x55555556
imul r9d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
mov ecx, r9d
sub ecx, eax
je 0x14003149e
sub ecx, 2
je 0x1400314a2
dec ecx
je 0x1400314a5
jmp 0x1400314b0
add r9d, 2
inc r9d
add r9d, 2
mov dword [0x1401ddd80], r9d
test r9d, r9d
jne 0x140031443
mov rcx, rbx
call fcn.14002b340
mov rcx, qword [rbx]
cmp dword [rcx - 0x10], 0
jl 0x1400314ea
lea rdx, str.https:__
call fcn.1400d805c
test rax, rax
je 0x1400314ea
sub rax, qword [rbx]
sar rax, 1
test eax, eax
jne 0x1400314ea
mov byte [rsi], 1
mov dword [rdi], 0x1bb
mov rdx, qword [rbx]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140031501
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14004d860
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov r8d, dword [0x1401ddd80]
mov eax, 0x30c30c31
xor esi, esi
mov ecx, r8d
imul ecx, r8d
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub ecx, edx
cmp ecx, 3
jne 0x14004d8c8
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov r8d, dword [0x1401ddd80]
lea eax, [r8 + 1]
lea ecx, [r8 + 2]
imul ecx, eax
mov eax, 0x92492493
imul ecx, r8d
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xe
sub ecx, edx
cmp ecx, 0xb
jne 0x14004d916
mov ecx, 4
call fcn.1400d7a58
mov rbx, rax
call fcn.1400d7b94
mov rcx, rbx
mov dword [rbx], eax
mov dword [0x1401ddd80], eax
call fcn.1400d7280
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov r8d, dword [0x1401ddd80]
mov ebx, eax
lea ecx, [r8 + 1]
mov eax, 0xb21642c9
imul ecx, r8d
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x17
sub ecx, edx
cmp ecx, 0xe
jne 0x14004d9b3
mov eax, 0x92492493
mov ecx, esi
imul r8d
add edx, r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r8d
imul edx, edx, 0x1c
sub eax, edx
cmp eax, 0x62
je 0x14004d9aa
nop
mov eax, r8d
inc ecx
or eax, 0xffffff62
add r8d, eax
mov eax, r8d
imul eax, r8d
cmp ecx, eax
jg 0x14004d9aa
mov eax, 0x92492493
imul r8d
add edx, r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r8d
imul edx, edx, 0x1c
sub eax, edx
cmp eax, 0x62
jne 0x14004d970
mov r8d, ecx
mov dword [0x1401ddd80], ecx
mov eax, r8d
movzx edi, bl
imul eax, r8d
imul eax, r8d
and eax, 0x8000000f
jge 0x14004d9cf
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 0xa
jne 0x14004d9ee
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp edi, 6
ja 0x14004da12
jne 0x14004d9fe
shr bx, 8
cmp bl, 1
ja 0x14004da12
movzx eax, sil
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov al, 1
add rsp, 0x40
pop rdi
ret
Function at 0x1400506e0
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov qword [rsp + 0x78], 0xfffffffffffffffe
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 r9d, dword [0x1401ddd80]
mov r8d, r9d
imul r8d, r9d
mov eax, 0x2e8ba2e9
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x16
sub r8d, edx
cmp r8d, 8
jne 0x140050765
mov ecx, 1
cmp r9d, ecx
jle 0x14005075f
nop dword [rax]
mov eax, r9d
cdq
idiv ecx
inc ecx
add ecx, edx
cmp ecx, r9d
jl 0x140050750
mov dword [0x1401ddd80], ecx
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 0x1400507b9
mov dword [rsp + 0x58], ebp
mov rbx, qword [rsp + 0x68]
mov qword [rsp + 0x50], rbx
jmp 0x1400507e6
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebp
mov r8, qword [rbx]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.14001d170
mov rbx, qword [rsp + 0x50]
test eax, eax
je 0x1400507e6
xor dil, dil
jmp 0x14005087c
mov rcx, qword [r14]
mov eax, ebp
test rcx, rcx
setne al
test eax, eax
jne 0x1400507fa
lea edi, [rax + 0xd]
jmp 0x140050832
or rax, 0xffffffffffffffff
nop
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140050800
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 0x140050848
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rbp
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], ebp
mov ecx, dword [0x1401ddd80]
imul ecx, ecx
mov eax, 0x78787879
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x11
sub ecx, edx
cmp ecx, 6
jne 0x140050876
inc dword [0x1401df028]
test edi, edi
sete dil
test rbx, rbx
je 0x14005088f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], rbp
movzx eax, dil
mov dword [rsp + 0x58], ebp
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400508b0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x80
mov qword [r11 - 0x40], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov rbx, r9
mov rdi, r8
mov rsi, rdx
mov r14, rcx
xor ebp, ebp
mov qword [r11 - 0x38], rbp
mov dword [rsp + 0x68], ebp
mov qword [r11 - 0x28], rbp
mov qword [r11 - 0x48], rbp
lea rax, [r11 + 0x18]
mov qword [r11 - 0x58], rax
lea rax, [r11 - 0x48]
mov qword [r11 - 0x60], rax
mov qword [r11 - 0x68], rbp
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0x100
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140050939
mov dword [rsp + 0x68], ebp
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x60], rbx
jmp 0x1400509c4
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebp
mov r8, qword [rdi]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14001d170
test eax, eax
je 0x1400509bf
mov r8d, dword [0x1401ddd80]
lea r9d, [r8 + 1]
lea ecx, [r8 + 2]
imul ecx, r9d
imul ecx, r8d
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x17
sub ecx, edx
cmp ecx, 8
jne 0x1400509b2
test r8d, r8d
je 0x1400509a8
dec r8d
je 0x1400509a0
mov dword [0x1401ddd80], r9d
jmp 0x1400509b2
mov dword [0x1401ddd80], ebp
jmp 0x1400509b2
mov dword [0x1401ddd80], 2
xor dil, dil
mov rbx, qword [rsp + 0x60]
jmp 0x140050a4f
mov rbx, qword [rsp + 0x60]
mov eax, dword [rsi]
mov dword [rsp + 0xb0], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov r9d, dword [0x1401ddd80]
mov r8d, r9d
imul r8d, r9d
mov eax, 0x2e8ba2e9
imul r8d
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul edx, edx, 0x16
sub r8d, edx
cmp r8d, 6
jne 0x140050a2f
inc r9d
mov dword [0x1401ddd80], r9d
test rbx, rbx
je 0x140050a45
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rbp
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], ebp
test edi, edi
sete dil
test rbx, rbx
je 0x140050a62
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], rbp
movzx eax, dil
mov dword [rsp + 0x68], ebp
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140050e60
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov qword [r11 - 0x30], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
mov r10, r9
mov rax, r8
mov rdi, rdx
mov rsi, rcx
xor ebp, ebp
mov ebx, ebp
mov qword [r11 - 0x28], rbx
mov dword [rsp + 0x48], ebp
mov qword [r11 - 0x18], rbp
mov qword [r11 + 0x18], rbp
lea rcx, [r11 + 0x18]
mov qword [r11 - 0x48], 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 0x140050f69
mov dword [rsp + 0x48], ebp
mov rbx, qword [rsp + 0x80]
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x80], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140050f18
mov edi, ebp
mov eax, 0xd
cmp dword [rsp + 0x30], 4
cmovne edi, eax
test rbx, rbx
je 0x140050f2e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rbp
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], ebp
mov ecx, dword [0x1401ddd80]
imul ecx, ecx
mov eax, 0x30c30c31
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub ecx, edx
cmp ecx, 2
jne 0x140050f61
call fcn.1400d7b94
mov dword [0x1401ddd80], eax
test edi, edi
sete dil
jmp 0x140050f6c
xor dil, dil
test rbx, rbx
je 0x140050f7f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
movzx eax, dil
mov dword [rsp + 0x48], ebp
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
Function at 0x1400519e0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rbx
push rdi
push r14
sub rsp, 0x1a0
mov rax, qword [0x1401d5e90]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov dword [rsp + 0x30], edx
mov edx, dword [0x1401ddd80]
mov qword [r11 - 0x20], rbp
lea eax, [rdx + 1]
mov rbp, r9
lea r9d, [rdx + 2]
xor edi, edi
mov qword [r11 - 0x28], rsi
mov r14, rcx
imul r9d, eax
imul r9d, edx
mov eax, 0x30c30c31
mov rsi, r8
imul r9d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub r9d, edx
cmp r9d, 0xb
jne 0x140051b67
mov ebx, edi
call fcn.1400d7b94
inc rbx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [rsp + rbx*8 + 0x38], xmm0
cmp rbx, 0x28
jb 0x140051a50
mov r10d, 0x27
mov r9, rdi
lea r11d, [r10 + 1]
nop dword [rax]
mov edx, 0x27
cmp r9, rdx
jge 0x140051b58
cmp r10, 4
jl 0x140051b2d
mov r8d, 0x23
lea rcx, [rsp + 0x168]
sub r8, r9
shr r8, 2
inc r8
lea rax, [r8*4]
sub rdx, rax
nop dword [rax + rax]
movsd xmm0, qword [rcx + 0x10]
movsd xmm1, qword [rcx + 8]
comisd xmm0, xmm1
jbe 0x140051ada
movsd qword [rcx + 0x10], xmm1
movsd qword [rcx + 8], xmm0
movsd xmm0, qword [rcx + 8]
movsd xmm1, qword [rcx]
comisd xmm0, xmm1
jbe 0x140051af2
movsd qword [rcx + 8], xmm1
movsd qword [rcx], xmm0
movsd xmm0, qword [rcx]
movsd xmm1, qword [rcx - 8]
comisd xmm0, xmm1
jbe 0x140051b0a
movsd qword [rcx], xmm1
movsd qword [rcx - 8], xmm0
movsd xmm0, qword [rcx - 8]
movsd xmm1, qword [rcx - 0x10]
comisd xmm0, xmm1
jbe 0x140051b24
movsd qword [rcx - 8], xmm1
movsd qword [rcx - 0x10], xmm0
sub rcx, 0x20
dec r8
jne 0x140051ac0
cmp rdx, r9
jle 0x140051b58
movsd xmm0, qword [rsp + rdx*8 + 0x40]
movsd xmm1, qword [rsp + rdx*8 + 0x38]
comisd xmm0, xmm1
jbe 0x140051b50
movsd qword [rsp + rdx*8 + 0x40], xmm1
movsd qword [rsp + rdx*8 + 0x38], xmm0
dec rdx
cmp rdx, r9
jg 0x140051b32
inc r9
dec r10
dec r11
jne 0x140051a80
mov rdx, qword [rsi]
lea rax, [rsp + 0x38]
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rsi, qword [rsp + 0x190]
mov rbp, qword [rsp + 0x198]
test eax, eax
je 0x140051b9e
xor al, al
jmp 0x140051bd9
mov rdx, qword [r14]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete al
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1400d72a0
add rsp, 0x1a0
pop r14
pop rdi
pop rbx
ret
Function at 0x1400570d0
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 rdi, rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov r8d, dword [0x1401ddd80]
mov r9d, r8d
imul r9d, r8d
imul r9d, r8d
mov eax, 0x6bca1af3
imul r9d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub r9d, edx
cmp r9d, 0x10
jne 0x1400571a2
test r8d, r8d
je 0x1400571a2
nop
mov eax, r8d
and eax, 0x80000001
jge 0x140057141
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x140057158
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
mov dword [0x1401ddd80], eax
jmp 0x140057167
lea r8d, [r8*2 + 1]
mov dword [0x1401ddd80], r8d
mov eax, 0x55555556
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
mov ecx, r8d
sub ecx, eax
je 0x14005718b
sub ecx, 2
je 0x14005718f
dec ecx
je 0x140057192
jmp 0x14005719d
add r8d, 2
inc r8d
add r8d, 2
mov dword [0x1401ddd80], r8d
test r8d, r8d
jne 0x140057130
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov ebx, eax
movzx r14d, al
call fcn.140052530
test al, al
jne 0x1400571cb
mov ecx, 4
call fcn.1400d7a58
mov edx, dword [0x1401ddd80]
mov dword [rax], edx
jmp 0x1400571d1
mov edx, dword [0x1401ddd80]
movzx eax, bx
shr ax, 8
movzx esi, al
cmp ebx, 0x80000000
jae 0x1400571e8
mov ebp, ebx
shr ebp, 0x10
cmp r14d, 6
jb 0x140057253
cmp esi, 2
jb 0x140057253
lea ecx, [rdx + 2]
lea eax, [rdx + 1]
imul ecx, eax
imul ecx, edx
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 0x140057240
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov ecx, dword [0x1401ddd80]
mov edx, 7
test rax, rax
cmove ecx, edx
mov dword [0x1401ddd80], ecx
mov rcx, rdi
call fcn.140057650
nop
mov dword [rsp + 0x30], 1
jmp 0x1400572ba
lea rcx, [0x1401d59a8]
mov rax, qword [0x1401d59a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x20], ebp
mov r9d, esi
mov r8d, r14d
lea rdx, str._d._d___d_
lea rcx, [rsp + 0x68]
call fcn.140012d30
mov rbx, qword [rsp + 0x68]
lea rcx, [rbx - 0x18]
call fcn.1400028c0
add rax, 0x18
mov qword [rdi], rax
mov dword [rsp + 0x30], 1
lock add dword [rbx - 8], 0xffffffff
jg 0x1400572ba
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x1400589c0
Capabilities:
Get disk size

Disassembly:
sub rsp, 0x38
mov r8d, dword [0x1401ddd80]
mov eax, 0x38e38e39
lea r9d, [r8 + 1]
mov ecx, r9d
imul ecx, r8d
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub ecx, eax
cmp ecx, 0xf
jne 0x140058a3d
lea ecx, [r8 + 2]
mov eax, 0x66666667
imul ecx, r9d
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, 1
jne 0x140058a36
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
xor al, al
add rsp, 0x38
ret
mov al, 1
add rsp, 0x38
ret

Function at 0x140058e00
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1401d5e90]
xor rax, rsp
mov qword [rbp - 0x10], rax
cmp byte [0x1401dfd3e], 0
je 0x140058e39
lea rax, [0x1401d9828]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400d72a0
add rsp, 0x60
pop rbp
ret
mov edx, dword [0x1401ddd80]
mov qword [rsp + 0x70], rbx
lea ecx, [rdx + 2]
lea eax, [rdx + 1]
imul ecx, eax
imul ecx, edx
and ecx, 0x80000007
jge 0x140058e5f
dec ecx
or ecx, 0xfffffff8
inc ecx
mov r10d, 1
cmp ecx, 7
jne 0x140058e76
test edx, edx
cmove edx, r10d
mov dword [0x1401ddd80], edx
mov ecx, edx
mov eax, 0x38e38e39
xor ebx, ebx
mov dword [rbp - 0x40], 0x15000e
mov dword [rbp - 0x3c], 0x9000b
mov dword [rbp - 0x38], 0x8000e
imul ecx, edx
imul ecx, edx
imul ecx
sar edx, 2
mov dword [rbp - 0x34], 0x1e003e
mov dword [rbp - 0x30], 0x36001a
mov eax, edx
mov dword [rbp - 0x2c], 0x17000d
mov dword [rbp - 0x28], 0xd000e
shr eax, 0x1f
mov dword [rbp - 0x24], 0x20015
mov dword [rbp - 0x20], 0x16002f
add edx, eax
mov dword [rbp - 0x1c], 0x1d0001
mov dword [rbp - 0x18], 0xc0010
lea eax, [rdx + rdx*8]
mov dword [rbp - 0x14], 3
add eax, eax
sub ecx, eax
cmp ecx, 3
jne 0x140058f01
lea ecx, [rbx + 4]
call fcn.1400d7a58
mov ecx, dword [0x1401ddd80]
mov dword [rax], ecx
lea rax, [0x1401d9828]
lea rdx, [0x1401d8d90]
nop
movzx ecx, byte [rbx + rdx]
inc rbx
xor cx, word [rbp + rbx*2 - 0x42]
mov word [rax + rbx*2 - 2], cx
cmp rbx, 0x17
jl 0x140058f10
mov byte [0x1401dfd3e], 1
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400d72a0
add rsp, 0x60
pop rbp
ret
Function at 0x140059010
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1401d5e90]
xor rax, rsp
mov qword [rbp - 0x18], rax
mov r9d, dword [0x1401ddd80]
mov eax, 0x6bca1af3
mov ebx, 4
lea ecx, [r9 + 1]
imul ecx, r9d
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub ecx, edx
cmp ecx, 0x11
jne 0x1400590a3
mov eax, 0x51eb851f
imul r9d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ebx
imul edx, edx, 0x64
sub r9d, edx
add r9d, 0x2f4
movsxd rcx, r9d
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400d68e8
mov rcx, rax
call fcn.1400d834c
mov r9d, dword [0x1401ddd80]
cmp byte [0x1401dfd19], 0
je 0x1400590b8
lea rax, [0x1401d9628]
jmp 0x1400591e8
lea eax, [r9 + 1]
lea ecx, [r9 + 2]
xor r8d, r8d
mov dword [rbp - 0x50], 0x20006
mov dword [rbp - 0x4c], 0x3a0012
mov dword [rbp - 0x48], 0x2001e
imul ecx, eax
imul ecx, r9d
mov eax, 0x66666667
mov dword [rbp - 0x44], 0x120004
mov dword [rbp - 0x40], 0xc0005
mov dword [rbp - 0x3c], 0x11000d
mov dword [rbp - 0x38], 0x8000e
mov dword [rbp - 0x34], 0x15003e
imul ecx
sar edx, 2
mov dword [rbp - 0x30], 0xc0015
mov dword [rbp - 0x2c], 0x70007
mov eax, edx
mov dword [rbp - 0x28], 0x3c0011
mov dword [rbp - 0x24], 0x6001c
shr eax, 0x1f
mov dword [rbp - 0x20], 0x5001e
mov word [rbp - 0x1c], r8w
add edx, eax
lea eax, [rdx + rdx*4]
add eax, eax
sub ecx, eax
cmp ecx, 3
jne 0x1400591a2
movsd xmm3, qword [0x14016a2b8]
movsd xmm5, qword [0x14016a2e0]
movd xmm4, r9d
xorps xmm2, xmm2
movaps xmmword [rsp + 0x60], xmm6
movsd xmm6, qword [0x14016a2b0]
cvtdq2pd xmm4, xmm4
addsd xmm2, xmm3
movaps xmm0, xmm2
mulsd xmm0, xmm2
comisd xmm0, xmm4
jbe 0x140059189
subsd xmm2, xmm3
divsd xmm3, xmm5
movaps xmm1, xmm2
movaps xmm0, xmm4
mulsd xmm1, xmm2
subsd xmm0, xmm1
comisd xmm0, xmm6
ja 0x140059170
movaps xmm6, xmmword [rsp + 0x60]
lea rax, [0x1401d9628]
lea r9, [0x1401d8d91]
movzx ecx, byte [r8 + r9 - 1]
movzx edx, word [rbp + r8*2 - 0x4e]
add r8, 2
xor cx, word [rbp + r8*2 - 0x54]
mov word [rax + r8*2 - 4], cx
movzx ecx, byte [r8 + r9 - 2]
xor dx, cx
mov word [rax + r8*2 - 2], dx
cmp r8, 0x1a
jl 0x1400591b0
mov byte [0x1401dfd19], 1
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.1400d72a0
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rbp
ret