joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140035540
Capabilities:
Contain obfuscated stackstrings
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x2a8
mov rax, qword [0x14016c9d0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov byte [rsp + 0x60], 0x12
mov byte [rsp + 0x61], 0x34
mov byte [rsp + 0x62], 0x56
mov byte [rsp + 0x63], 0x78
mov byte [rsp + 0x64], 0x87
mov byte [rsp + 0x65], 0x65
mov byte [rsp + 0x66], 0x34
mov byte [rsp + 0x67], 0x21
mov byte [rsp + 0x68], 0x12
mov byte [rsp + 0x69], 0x34
mov byte [rsp + 0x6a], 0x56
mov byte [rsp + 0x6b], 0x79
mov byte [rsp + 0x6c], 0x97
mov byte [rsp + 0x6d], 0x65
mov byte [rsp + 0x6e], 0x34
mov byte [rsp + 0x6f], 0x21
mov dword [0x14017bf64], 1
mov r8d, 0x208
lea rdx, [rsp + 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x80000000
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x1400357a5
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov eax, eax
mov qword [rsp + 0x58], rax
mov r9d, 2
xor r8d, r8d
mov edx, 0xfffffff8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
mov r8d, 8
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x140035682
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400357a7
mov r8d, 8
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x60]
call fcn.140046980
test eax, eax
je 0x1400356a2
xor eax, eax
jmp 0x1400357a7
mov r9d, 2
xor r8d, r8d
mov edx, 0xfffffff4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
mov r8d, 4
mov rdx, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x1400356ff
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400357a7
mov r9d, 4
mov r8d, 0x1000
mov rax, qword [rsp + 0x2b0]
mov rdx, qword [rax]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x14017c190], rax
mov rax, qword [rsp + 0x2b0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
sub rax, 0xc
mov qword [rsp + 0x50], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
mov rax, qword [rsp + 0x2b0]
mov r8d, dword [rax]
mov rdx, qword [0x14017c190]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x14003579e
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400357a7
mov eax, 1
jmp 0x1400357a7
xor eax, eax
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140046670
add rsp, 0x2a8
ret
Function at 0x1400357d0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 8], rax
mov dword [rsp], 0
jmp 0x140035815
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
add rax, 0x28
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 6]
cmp dword [rsp], eax
jae 0x14003586f
mov rax, qword [rsp + 8]
mov eax, dword [rax + 8]
mov dword [rsp + 4], eax
cmp dword [rsp + 4], 0
jne 0x140035842
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x10]
mov dword [rsp + 4], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0xc]
cmp qword [rsp + 0x20], rax
jl 0x14003586d
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0xc]
add eax, dword [rsp + 4]
mov eax, eax
cmp qword [rsp + 0x20], rax
jge 0x14003586d
mov rax, qword [rsp + 8]
jmp 0x140035871
jmp 0x1400357ff
xor eax, eax
add rsp, 0x18
ret
Function at 0x1400364b0
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x518
mov rax, qword [0x14016c9d0]
xor rax, rsp
mov qword [rsp + 0x500], rax
cmp dword [rsp + 0x528], 0
je 0x1400364f1
lea rcx, [rsp + 0x100]
call fcn.1400368b0
test eax, eax
jne 0x140036621
mov r8d, 0x400
xor edx, edx
lea rcx, [rsp + 0x100]
call fcn.140046350
lea rdx, [rsp + 0x100]
mov ecx, 0x1ff
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rdx, str.YShow3D.exe
lea rcx, [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x50], 0
mov r8d, 4
lea rdx, [0x140143a40]
lea rcx, [rsp + 0x50]
call fcn.140045dd0
mov eax, dword [rsp + 0x50]
mov r9d, 4
mov r8d, 0x1000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140036583
xor eax, eax
jmp 0x1400366ed
mov eax, 1
imul rax, rax, 4
lea rcx, [0x140143a40]
add rcx, rax
mov rax, rcx
mov r9d, 0x28f7f
mov r8, rax
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.1400432c0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
lea rcx, [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
je 0x140036621
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x6c]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x520]
lea rcx, [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.140046350
mov dword [rsp + 0x90], 0x68
mov dword [rsp + 0xcc], 1
mov eax, 1
mov word [rsp + 0xd0], ax
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.140046350
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x100]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1400366d8
xor eax, eax
jmp 0x1400366ed
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.140046670
add rsp, 0x518
ret
Function at 0x140036c50
Capabilities:
Encrypt data using tea

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x24], 0x9e3779b9
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax]
mov dword [rsp + 4], eax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax]
mov dword [rsp], eax
mov dword [rsp + 8], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x18], eax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x20], eax
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x14], eax
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x1c], eax
mov dword [rsp + 0xc], 0x20
mov eax, dword [rsp + 0xc]
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0xc]
dec eax
mov dword [rsp + 0xc], eax
cmp dword [rsp + 0x10], 0
jle 0x140036d82
mov eax, dword [rsp + 8]
add eax, 0x9e3779b9
mov dword [rsp + 8], eax
mov eax, dword [rsp]
shl eax, 4
add eax, dword [rsp + 0x18]
mov ecx, dword [rsp + 8]
mov edx, dword [rsp]
add edx, ecx
mov ecx, edx
xor eax, ecx
mov ecx, dword [rsp]
shr ecx, 5
add ecx, dword [rsp + 0x20]
xor eax, ecx
mov ecx, dword [rsp + 4]
add ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shl eax, 4
add eax, dword [rsp + 0x14]
mov ecx, dword [rsp + 8]
mov edx, dword [rsp + 4]
add edx, ecx
mov ecx, edx
xor eax, ecx
mov ecx, dword [rsp + 4]
shr ecx, 5
add ecx, dword [rsp + 0x1c]
xor eax, ecx
mov ecx, dword [rsp]
add ecx, eax
mov eax, ecx
mov dword [rsp], eax
jmp 0x140036cf8
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
mov edx, dword [rsp + 4]
mov dword [rcx + rax], edx
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x48]
mov edx, dword [rsp]
mov dword [rcx + rax], edx
add rsp, 0x38
ret
Function at 0x140036dc0
Capabilities:
Decrypt data using tea

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x24], 0x9e3779b9
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax]
mov dword [rsp + 4], eax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax]
mov dword [rsp], eax
mov dword [rsp + 8], 0xc6ef3720
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x14], eax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x1c], eax
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x18], eax
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0xc], 0x20
mov eax, dword [rsp + 0xc]
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0xc]
dec eax
mov dword [rsp + 0xc], eax
cmp dword [rsp + 0x10], 0
jle 0x140036ef2
mov eax, dword [rsp + 4]
shl eax, 4
add eax, dword [rsp + 0x18]
mov ecx, dword [rsp + 8]
mov edx, dword [rsp + 4]
add edx, ecx
mov ecx, edx
xor eax, ecx
mov ecx, dword [rsp + 4]
shr ecx, 5
add ecx, dword [rsp + 0x20]
xor eax, ecx
mov ecx, dword [rsp]
sub ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
shl eax, 4
add eax, dword [rsp + 0x14]
mov ecx, dword [rsp + 8]
mov edx, dword [rsp]
add edx, ecx
mov ecx, edx
xor eax, ecx
mov ecx, dword [rsp]
shr ecx, 5
add ecx, dword [rsp + 0x1c]
xor eax, ecx
mov ecx, dword [rsp + 4]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 8]
sub eax, 0x9e3779b9
mov dword [rsp + 8], eax
jmp 0x140036e68
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
mov edx, dword [rsp + 4]
mov dword [rcx + rax], edx
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x48]
mov edx, dword [rsp]
mov dword [rcx + rax], edx
add rsp, 0x38
ret
Function at 0x140039560
Capabilities:
Decrypt data using tea

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x24], 0x9e3779b9
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax]
mov dword [rsp + 4], eax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax]
mov dword [rsp], eax
mov dword [rsp + 8], 0xc6ef3720
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x14], eax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x1c], eax
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x18], eax
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0xc], 0x20
mov eax, dword [rsp + 0xc]
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0xc]
dec eax
mov dword [rsp + 0xc], eax
cmp dword [rsp + 0x10], 0
jle 0x140039692
mov eax, dword [rsp + 4]
shl eax, 4
add eax, dword [rsp + 0x18]
mov ecx, dword [rsp + 8]
mov edx, dword [rsp + 4]
add edx, ecx
mov ecx, edx
xor eax, ecx
mov ecx, dword [rsp + 4]
shr ecx, 5
add ecx, dword [rsp + 0x20]
xor eax, ecx
mov ecx, dword [rsp]
sub ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
shl eax, 4
add eax, dword [rsp + 0x14]
mov ecx, dword [rsp + 8]
mov edx, dword [rsp]
add edx, ecx
mov ecx, edx
xor eax, ecx
mov ecx, dword [rsp]
shr ecx, 5
add ecx, dword [rsp + 0x1c]
xor eax, ecx
mov ecx, dword [rsp + 4]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 8]
sub eax, 0x9e3779b9
mov dword [rsp + 8], eax
jmp 0x140039608
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
mov edx, dword [rsp + 4]
mov dword [rcx + rax], edx
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x48]
mov edx, dword [rsp]
mov dword [rcx + rax], edx
add rsp, 0x38
ret
Function at 0x1400396d0
Capabilities:
Encrypt data using tea

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x24], 0x9e3779b9
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax]
mov dword [rsp + 4], eax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax]
mov dword [rsp], eax
mov dword [rsp + 8], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x18], eax
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x20], eax
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x14], eax
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x1c], eax
mov dword [rsp + 0xc], 0x20
mov eax, dword [rsp + 0xc]
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0xc]
dec eax
mov dword [rsp + 0xc], eax
cmp dword [rsp + 0x10], 0
jle 0x140039802
mov eax, dword [rsp + 8]
add eax, 0x9e3779b9
mov dword [rsp + 8], eax
mov eax, dword [rsp]
shl eax, 4
add eax, dword [rsp + 0x18]
mov ecx, dword [rsp + 8]
mov edx, dword [rsp]
add edx, ecx
mov ecx, edx
xor eax, ecx
mov ecx, dword [rsp]
shr ecx, 5
add ecx, dword [rsp + 0x20]
xor eax, ecx
mov ecx, dword [rsp + 4]
add ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shl eax, 4
add eax, dword [rsp + 0x14]
mov ecx, dword [rsp + 8]
mov edx, dword [rsp + 4]
add edx, ecx
mov ecx, edx
xor eax, ecx
mov ecx, dword [rsp + 4]
shr ecx, 5
add ecx, dword [rsp + 0x1c]
xor eax, ecx
mov ecx, dword [rsp]
add ecx, eax
mov eax, ecx
mov dword [rsp], eax
jmp 0x140039778
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
mov edx, dword [rsp + 4]
mov dword [rcx + rax], edx
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x48]
mov edx, dword [rsp]
mov dword [rcx + rax], edx
add rsp, 0x38
ret
Function at 0x140040be0
Capabilities:
Get disk information
Get disk size

Disassembly:
mov qword [rsp + 0x18], r8
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x480
mov rax, qword [0x14016c9d0]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov dword [rsp + 0x38], 0x400
movzx eax, byte [0x14005bb27]
mov byte [rsp + 0x60], al
lea rax, [rsp + 0x61]
mov rdi, rax
xor eax, eax
mov ecx, 9
rep stosb byte [rdi], al
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x34], 0
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x4a0]
call fcn.140046350
mov eax, dword [rsp + 0x38]
mov r8d, eax
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.140046350
lea rdx, [rsp + 0x70]
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 4
jl 0x140040e12
mov eax, dword [rsp + 0x30]
sub eax, 4
mov dword [rsp + 0x30], eax
movsxd rax, dword [rsp + 0x30]
lea rax, [rsp + rax + 0x70]
mov rdx, rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3c]
dec eax
cdqe
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xa
jae 0x140040ccc
jmp 0x140040cd1
call fcn.1400473bc
mov rax, qword [rsp + 0x50]
mov byte [rsp + rax + 0x60], 0
mov eax, 1
imul rax, rax, 0
movsx eax, byte [rsp + rax + 0x60]
cmp eax, 0x61
je 0x140040d27
mov eax, 1
imul rax, rax, 0
movsx eax, byte [rsp + rax + 0x60]
cmp eax, 0x41
je 0x140040d27
mov eax, 1
imul rax, rax, 0
movsx eax, byte [rsp + rax + 0x60]
cmp eax, 0x62
je 0x140040d27
mov eax, 1
imul rax, rax, 0
movsx eax, byte [rsp + rax + 0x60]
cmp eax, 0x42
jne 0x140040d2c
jmp 0x140040c78
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
je 0x140040d5b
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
je 0x140040d5b
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
jne 0x140040d60
jmp 0x140040c78
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [rsp + 0x48], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x5c]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x44]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [rsp + 0x40], 0x158
jne 0x140040dae
cmp dword [rsp + 0x44], 1
je 0x140040db3
jmp 0x140040c78
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x490]
call fcn.140041170
test eax, eax
jne 0x140040e0d
movsx eax, word [rsp + 0x498]
cmp eax, dword [rsp + 0x34]
jne 0x140040e03
lea rdx, [0x14005bc9c]
mov rcx, qword [rsp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
xor eax, eax
jmp 0x140040e17
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
jmp 0x140040c78
mov eax, 0xffffffa4
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140046670
add rsp, 0x480
pop rdi
ret
Function at 0x140043120
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x188
mov rax, qword [0x14016c9d0]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov dword [rsp + 0x4c], 0x104
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x44], 0
jmp 0x140043179
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x44], 0
jne 0x140043263
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x60]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14004325e
mov dword [rsp + 0x4c], 0xc8
lea rcx, [0x14005bbb0]
call fcn.140047b10
mov ecx, 1
imul rcx, rcx, 4
lea rcx, [rsp + rcx + 0x60]
mov r8, rax
mov rdx, rcx
lea rcx, str.HIDVid_3689Pid_8762
call fcn.140047ca8
test eax, eax
jne 0x14004325e
mov eax, dword [rsp + 0x1a0]
cmp dword [rsp + 0x40], eax
jne 0x140043254
lea rdx, [0x14005bbe0]
mov rcx, qword [rsp + 0x1a8]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
imul rax, rax, 4
lea rax, [rsp + rax + 0x60]
mov rdx, rax
mov rcx, qword [rsp + 0x1a8]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, 1
jmp 0x140043265
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
jmp 0x14004316f
xor eax, eax
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140046670
add rsp, 0x188
ret
Function at 0x1400489dc
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140048844
Function at 0x1400043d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r13
push r14
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140038040]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rdi, rcx
mov qword [rsp + 0x58], rcx
xor r13d, r13d
lea rax, [rbp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1c
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
xorps xmm0, xmm0
test eax, eax
jne 0x1400045d5
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
lea rax, [rbp + 0x80]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r13b
jne 0x140004456
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.1400217c0
nop
movzx eax, word [0x14002f8dc]
mov word [rsp + 0x30], ax
movzx eax, byte [str.RlrR]
mov byte [rsp + 0x30], 0x5c
xor byte [rsp + 0x31], 0x50
xor al, 0x52
mov byte [rsp + 0x32], al
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400044a0
lea rsi, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rsi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x70]
test rbx, rbx
je 0x140004548
test r14, r14
je 0x140004548
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x30]
add rdx, rbx
lea rax, [rsp + 0x30]
cmp rax, rdx
je 0x140004510
nop dword [rax]
movzx eax, byte [rcx]
mov byte [rbp + rax - 0x80], 1
inc rcx
cmp rcx, rdx
jne 0x140004500
lea rax, [r14 - 1]
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
add r8, rsi
movzx eax, byte [r8]
cmp byte [rbp + rax - 0x80], 0
jne 0x140004543
cmp r8, rsi
je 0x140004548
dec r8
movzx eax, byte [r8]
cmp byte [rbp + rax - 0x80], 0
je 0x140004530
sub r8, rsi
jmp 0x14000454f
mov r8, 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
cmp r14, r8
cmovb r8, r14
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.1400217c0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x1400045c2
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400045bd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400045bd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002af30
movups xmm1, xmmword [rsp + 0x38]
movups xmm2, xmmword [rsp + 0x48]
movups xmmword [rdi], xmm1
movups xmmword [rdi + 0x10], xmm2
jmp 0x1400045f5
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], r13
mov r8d, 0x1b
lea rdx, str.Failed_to_get_AppData_path.
mov rcx, rdi
call fcn.1400217c0
mov rax, rdi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14002af10
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rbp
ret