joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47eea0
Capabilities:
Get file attributes

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov byte [rbp + 0x2f], dl
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x48], 0
nop
mov rcx, qword [rbp + 0x20]
call fcn.00412090
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov dword [rbp + 0x28], eax
mov eax, dword [rbp + 0x28]
test eax, 0x400
je 0x47ef53
movzx rax, byte [rbp + 0x2f]
test al, al
je 0x47ef53
or eax, 0xffffffff
mov dword [rbp + 0x28], eax
mov rcx, qword [rbp + 0x20]
lea rdx, [rbp + 0x48]
call fcn.0047c2f0
test al, al
je 0x47ef53
mov rcx, qword [rbp + 0x48]
call fcn.0047f9a0
test al, al
je 0x47ef3f
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x20]
call fcn.0047f610
lea rcx, [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
call fcn.0048b770
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x48]
call fcn.004124f0
mov rcx, qword [rbp + 0x48]
call fcn.00412090
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov dword [rbp + 0x28], eax
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.00410440
lea rcx, [rbp + 0x48]
call fcn.00410360
mov eax, dword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret

Function at 0x47efd0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push rbp
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x30], rcx
mov dword [rbp + 0x2c], edx
mov byte [rbp + 0x3f], r8b
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x50], 0
nop
xor rax, rax
mov dword [rbp + 0x28], eax
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x30]
call fcn.00410a30
movzx rax, byte [rbp + 0x3f]
test al, al
je 0x47f08f
mov rcx, qword [rbp + 0x30]
call fcn.00412090
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
test eax, 0x400
je 0x47f08f
mov rcx, qword [rbp + 0x30]
lea rdx, [rbp + 0x50]
call fcn.0047c2f0
test al, al
je 0x47f08f
mov rcx, qword [rbp + 0x50]
call fcn.0047f9a0
test al, al
je 0x47f082
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0x30]
call fcn.0047f610
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x40]
call fcn.0048b770
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x48]
mov r8, qword [rbp + 0x50]
call fcn.004124f0
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x50]
call fcn.00410a30
mov rcx, qword [rbp + 0x58]
call fcn.00412090
mov rcx, rax
mov edx, dword [rbp + 0x2c]
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x47f0af
call sub.kernel32.dll_GetLastError
mov dword [rbp + 0x28], eax
nop
lea rcx, [rbp + 0x40]
mov edx, 4
call fcn.00410440
mov eax, dword [rbp + 0x28]
lea rsp, [rbp + 0x60]
pop rbp
ret
Function at 0x47f100
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rbx
sub rsp, 0x58
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x48], 0
nop
xor rax, rax
mov byte [rbp + 0x2f], al
mov rcx, qword [rbp + 0x20]
call fcn.00412090
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47f1b6
mov eax, ebx
test eax, 0x400
je 0x47f1aa
mov rcx, qword [rbp + 0x20]
lea rdx, [rbp + 0x48]
call fcn.0047c2f0
test al, al
je 0x47f1aa
mov rcx, qword [rbp + 0x48]
call fcn.0047f9a0
test al, al
je 0x47f197
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x20]
call fcn.0047f610
lea rcx, [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
call fcn.0048b770
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x48]
call fcn.004124f0
mov rcx, qword [rbp + 0x48]
call fcn.00412090
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
test ebx, 1
setne al
mov byte [rbp + 0x2f], al
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.00410440
lea rcx, [rbp + 0x48]
call fcn.00410360
movzx rax, byte [rbp + 0x2f]
lea rsp, [rbp + 0x58]
pop rbx
pop rbp
ret

Function at 0x47f390
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, rbx
call fcn.00412090
mov rcx, rax
call sub.kernel32.dll_DeleteFileW
test eax, eax
setne sil
test sil, sil
jne 0x47f402
call sub.kernel32.dll_GetLastError
mov edi, eax
mov rcx, rbx
call fcn.00412090
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x47f3fb
mov ecx, eax
test ecx, 0x400
je 0x47f3fb
test eax, 0x10
je 0x47f3fb
mov rcx, rbx
call fcn.00412090
mov rcx, rax
call sub.kernel32.dll_RemoveDirectoryW
test eax, eax
setne sil
jmp 0x47f402
mov ecx, edi
call sub.kernel32.dll_SetLastError
mov eax, esi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x47fa50
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call fcn.00412090
mov rcx, rax
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x47fa70
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
call fcn.00412090
mov rcx, rax
xor rdx, rdx
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x488050
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov ebx, r8d
lea r8, [rbp + 0x2c]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x488077
movzx rax, word [rbp + 0x2c]
jmp 0x488079
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret
Function at 0x489340
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.004890e0
mov ebx, eax
mov rax, qword [0x00b6f9b8]
cmp byte [rax], 0
je 0x489478
mov rcx, qword [0x00b6e3f0]
call fcn.0040bc50
call fcn.00408cf0
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00489300]
mov r8d, 1
movsxd r9, esi
call fcn.00413f10
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x00489518]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x4894be
mov rcx, qword [0x00b75d68]
call fcn.00414480
mov rcx, rax
mov rax, qword [0x00b6e108]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW
xor rcx, rcx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00489300]
call fcn.004140f0
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret

Function at 0x48b130
Capabilities:
Get file version info

Disassembly:
push rbp
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x70], rcx
nop
mov dword [rbp + 0x54], 0xffffffff
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x70]
call fcn.00410a30
lea rcx, [rbp + 0x48]
call fcn.00410cc0
mov rcx, qword [rbp + 0x48]
call fcn.00412090
mov rcx, rax
lea rdx, [rbp + 0x40]
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
je 0x48b1e1
mov ecx, dword [rbp + 0x44]
call fcn.004089b0
mov qword [rbp + 0x58], rax
nop
mov rcx, qword [rbp + 0x48]
call fcn.00412090
mov rcx, rax
mov edx, dword [rbp + 0x40]
mov r8d, dword [rbp + 0x44]
mov r9, qword [rbp + 0x58]
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x48b1d7
mov rcx, qword [rbp + 0x58]
lea rdx, [0x0048b254]
lea r8, [rbp + 0x38]
lea r9, [rbp + 0x34]
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x48b1d7
mov rax, qword [rbp + 0x38]
mov eax, dword [rax + 8]
mov dword [rbp + 0x54], eax
nop
mov rcx, qword [rbp + 0x58]
call fcn.004089e0
nop
lea rcx, [rbp + 0x48]
call fcn.00410360
mov eax, dword [rbp + 0x54]
lea rsp, [rbp + 0x60]
pop rbp
ret
Function at 0x48bf10
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.00410ba0
mov r13d, eax
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.00416d20
mov esi, eax
cmp esi, 0x104
jbe 0x48bf6d
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.004089b0
mov rdi, rax
jmp 0x48bf71
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.00416d20
mov rax, rdi
mov rcx, rax
call sub.user32.dll_CharUpperW
xor rbx, rbx
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x48bfc7
add ecx, 1
mov edx, ebx
shl edx, 5
shr ebx, 0x1b
or edx, ebx
mov ebx, edx
movsxd rdx, eax
movzx edx, word [rdi + rdx*2]
xor ebx, edx
add eax, 1
cmp eax, ecx
jne 0x48bfab
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x48bfd9
mov rcx, rdi
call fcn.004089e0
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret

Function at 0x48d540
Capabilities:
Query environment variable

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x828
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov rcx, rbx
call fcn.00410360
mov rcx, rsi
call fcn.00412090
mov rcx, rax
lea rdx, [rbp + 0x20]
mov r8d, 0x400
call sub.kernel32.dll_GetEnvironmentVariableW
mov edi, eax
cmp edi, 0x400
jge 0x48d592
mov rcx, rbx
lea rdx, [rbp + 0x20]
mov r8d, edi
call fcn.00410620
jmp 0x48d5c0
mov rcx, rbx
mov edx, edi
sub edx, 1
call fcn.00412320
mov rcx, rsi
call fcn.00412090
mov rsi, rax
mov rcx, qword [rbx]
call fcn.00412090
mov rcx, rsi
mov rdx, rax
mov r8d, edi
call sub.kernel32.dll_GetEnvironmentVariableW
mov rax, rbx
lea rsp, [rbp + 0x828]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x4aa1f0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
push rbp
push rbx
sub rsp, 0x2c8
mov rbp, rsp
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x2b8], 0
nop
lea rcx, [rbp + 0x2b8]
call fcn.004a9e70
cmp qword [rbp + 0x2b8], 0
je 0x4aa427
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x4aa332
mov rcx, qword [rbp + 0x2b8]
call fcn.00412090
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4aa427
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x2b8]
lea r8, [0x004aa4cc]
call fcn.004124f0
mov rcx, qword [rbp + 0x58]
call fcn.00412090
mov rcx, rax
lea rdx, [rbp + 0x68]
call sub.kernel32.dll_FindFirstFileW
mov rbx, rax
cmp rbx, 0xffffffffffffffff
je 0x4aa319
lea rcx, [rbp + 0x48]
lea rdx, [rbp + 0x94]
mov r8d, 0x104
call fcn.00412190
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x2b8]
mov r8, qword [rbp + 0x48]
call fcn.004124f0
mov rcx, qword [rbp + 0x50]
call fcn.00412090
mov rcx, rax
call sub.kernel32.dll_DeleteFileW
mov rcx, rbx
lea rdx, [rbp + 0x68]
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4aa2c5
mov rcx, rbx
call sub.kernel32.dll_FindClose
mov rcx, qword [rbp + 0x2b8]
call fcn.00412090
mov rcx, rax
call sub.kernel32.dll_RemoveDirectoryW
jmp 0x4aa427
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0x2b8]
xor r8, r8
call fcn.004118e0
mov rcx, qword [rbp + 0x40]
call fcn.004115a0
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4aa427
lea rcx, [rbp + 0x38]
mov rdx, qword [rbp + 0x2b8]
xor r8, r8
call fcn.004118e0
lea rcx, [rbp + 0x38]
lea rdx, [0x004aa4e0]
call fcn.004110e0
mov rcx, qword [rbp + 0x38]
call fcn.004115a0
mov rcx, rax
lea rdx, [rbp + 0x68]
call sub.kernel32.dll_FindFirstFileA
mov rbx, rax
cmp rbx, 0xffffffffffffffff
je 0x4aa403
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x2b8]
xor r8, r8
call fcn.004118e0
lea rcx, [rbp + 0x28]
lea rdx, [rbp + 0x94]
mov r8d, 0x104
xor r9, r9
call fcn.00411020
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
call fcn.004110e0
mov rcx, qword [rbp + 0x30]
call fcn.004115a0
mov rcx, rax
call sub.kernel32.dll_DeleteFileA
mov rcx, rbx
lea rdx, [rbp + 0x68]
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4aa3a0
mov rcx, rbx
call sub.kernel32.dll_FindClose
lea rcx, [rbp + 0x20]
mov rdx, qword [rbp + 0x2b8]
xor r8, r8
call fcn.004118e0
mov rcx, qword [rbp + 0x20]
call fcn.004115a0
mov rcx, rax
call sub.kernel32.dll_RemoveDirectoryA
nop
lea rcx, [rbp + 0x20]
mov edx, 5
call fcn.00410470
lea rcx, [rbp + 0x48]
mov edx, 3
call fcn.00410440
lea rcx, [rbp + 0x2b8]
call fcn.00410360
lea rsp, [rbp + 0x2c8]
pop rbx
pop rbp
ret
Function at 0x4aa5c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
sub rsp, 0x88
mov rbp, rsp
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x40], rdx
mov qword [rbp + 0x48], r8
mov qword [rbp + 0x38], r9
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x68], 0
nop
mov rcx, qword [rbp + 0x30]
call fcn.00410360
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x4aa6ee
mov rcx, qword [rbp + 0x48]
call fcn.00412090
mov rcx, qword [rbp + 0x40]
mov rdx, rax
xor r8, r8
mov r9d, 0x20019
lea rax, [rbp + 0x78]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4aa804
mov dword [rbp + 0x74], 0
mov rcx, qword [rbp + 0x38]
call fcn.00412090
mov rcx, qword [rbp + 0x78]
mov rdx, rax
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
lea rax, [rbp + 0x74]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4aa6e0
cmp dword [rbp + 0x74], 0
je 0x4aa6e0
mov eax, dword [rbp + 0x74]
add eax, eax
mov dword [rbp + 0x74], eax
mov ecx, 0x40
mov edx, dword [rbp + 0x74]
call sub.kernel32.dll_LocalAlloc
mov rbx, rax
mov rcx, qword [rbp + 0x38]
call fcn.00412090
mov rcx, qword [rbp + 0x78]
mov rdx, rax
xor r8, r8
lea r9, [rbp + 0x70]
mov qword [rsp + 0x20], rbx
lea rax, [rbp + 0x74]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4aa6d8
mov rcx, qword [rbp + 0x30]
mov rdx, rbx
call fcn.00412130
mov rcx, rbx
call sub.kernel32.dll_LocalFree
mov rcx, qword [rbp + 0x78]
call sub.advapi32.dll_RegCloseKey
jmp 0x4aa804
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x48]
xor r8, r8
call fcn.004118e0
mov rcx, qword [rbp + 0x68]
call fcn.004115a0
mov rcx, qword [rbp + 0x40]
mov rdx, rax
xor r8, r8
mov r9d, 0x20019
lea rax, [rbp + 0x78]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4aa804
mov dword [rbp + 0x74], 0
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x38]
xor r8, r8
call fcn.004118e0
mov rcx, qword [rbp + 0x60]
call fcn.004115a0
mov rcx, qword [rbp + 0x78]
mov rdx, rax
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
lea rax, [rbp + 0x74]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x4aa7fb
cmp dword [rbp + 0x74], 0
je 0x4aa7fb
mov eax, dword [rbp + 0x74]
add eax, eax
mov dword [rbp + 0x74], eax
mov ecx, 0x40
mov edx, dword [rbp + 0x74]
call sub.kernel32.dll_LocalAlloc
mov rbx, rax
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x38]
xor r8, r8
call fcn.004118e0
mov rcx, qword [rbp + 0x58]
call fcn.004115a0
mov rcx, qword [rbp + 0x78]
mov rdx, rax
xor r8, r8
lea r9, [rbp + 0x70]
mov qword [rsp + 0x20], rbx
lea rax, [rbp + 0x74]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x4aa7f3
lea rcx, [rbp + 0x50]
mov rdx, rbx
xor r8, r8
call fcn.00410f70
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x50]
call fcn.004121e0
mov rcx, rbx
call sub.kernel32.dll_LocalFree
mov rcx, qword [rbp + 0x78]
call sub.advapi32.dll_RegCloseKey
nop
lea rcx, [rbp + 0x50]
mov edx, 4
call fcn.00410470
mov rax, qword [rbp + 0x30]
lea rsp, [rbp + 0x88]
pop rbx
pop rbp
ret
Function at 0x4aa860
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0xb0
mov rbp, rsp
mov qword [rbp + 0x70], rcx
mov qword [rbp + 0x78], rdx
mov qword [rbp + 0x60], r8
mov qword [rbp + 0x68], r9
mov qword [rbp + 0x80], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x98], 0
nop
xor rax, rax
mov byte [rbp + 0x5f], al
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x4aa96b
mov rcx, qword [rbp + 0x78]
call fcn.00412090
mov rcx, qword [rbp + 0x70]
mov rdx, rax
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0xf003f
mov qword [rsp + 0x30], 0
lea rax, [rbp + 0xa8]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0xa4]
mov qword [rsp + 0x40], rax
call sub.advapi32.dll_RegCreateKeyExW
test eax, eax
jne 0x4aaa5e
mov rcx, qword [rbp + 0x60]
call fcn.00412090
mov rbx, rax
mov rcx, qword [rbp + 0x68]
call fcn.00412090
mov rsi, rax
mov rcx, qword [rbp + 0x68]
call fcn.00410b80
mov rcx, qword [rbp + 0xa8]
mov rdx, rbx
xor r8, r8
mov r9d, 1
mov qword [rsp + 0x20], rsi
add eax, eax
add eax, 2
mov dword [rsp + 0x28], eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
sete al
mov byte [rbp + 0x5f], al
mov rcx, qword [rbp + 0xa8]
call sub.advapi32.dll_RegCloseKey
jmp 0x4aaa5e
lea rcx, [rbp + 0x88]
mov rdx, qword [rbp + 0x78]
xor r8, r8
call fcn.004118e0
mov rcx, qword [rbp + 0x88]
call fcn.004115a0
mov rcx, qword [rbp + 0x70]
mov rdx, rax
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0xf003f
mov qword [rsp + 0x30], 0
lea rax, [rbp + 0xa8]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0xa4]
mov qword [rsp + 0x40], rax
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x4aaa5e
lea rcx, [rbp + 0x98]
mov rdx, qword [rbp + 0x68]
xor r8, r8
call fcn.004118e0
lea rcx, [rbp + 0x80]
mov rdx, qword [rbp + 0x60]
xor r8, r8
call fcn.004118e0
mov rcx, qword [rbp + 0x80]
call fcn.004115a0
mov rbx, rax
mov rcx, qword [rbp + 0x98]
call fcn.004115a0
mov rsi, rax
mov rcx, qword [rbp + 0x98]
call fcn.00410b90
mov rcx, qword [rbp + 0xa8]
mov rdx, rbx
xor r8, r8
mov r9d, 1
mov qword [rsp + 0x20], rsi
add eax, 1
mov dword [rsp + 0x28], eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete al
mov byte [rbp + 0x5f], al
mov rcx, qword [rbp + 0xa8]
call sub.advapi32.dll_RegCloseKey
nop
lea rcx, [rbp + 0x80]
mov edx, 2
call fcn.00410470
lea rcx, [rbp + 0x98]
call fcn.004103b0
movzx rax, byte [rbp + 0x5f]
lea rsp, [rbp + 0xb0]
pop rbx
pop rsi
pop rbp
ret
Function at 0x4aaae0
Capabilities:
Delete registry value

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x38], r8
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 0
nop
xor rax, rax
mov byte [rbp + 0x37], al
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x4aab70
mov rcx, qword [rbp + 0x48]
call fcn.00412090
mov rcx, qword [rbp + 0x40]
mov rdx, rax
xor r8, r8
mov r9d, 0xf003f
lea rax, [rbp + 0x68]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4aabe2
mov rcx, qword [rbp + 0x38]
call fcn.00412090
mov rcx, qword [rbp + 0x68]
mov rdx, rax
call sub.advapi32.dll_RegDeleteValueW
test eax, eax
sete al
mov byte [rbp + 0x37], al
mov rcx, qword [rbp + 0x68]
call sub.advapi32.dll_RegCloseKey
jmp 0x4aabe2
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x48]
xor r8, r8
call fcn.004118e0
mov rcx, qword [rbp + 0x58]
call fcn.004115a0
mov rcx, qword [rbp + 0x40]
mov rdx, rax
xor r8, r8
mov r9d, 0xf003f
sar dword [rdi], 0
str word [rax - 0x73]
push 0x24448948
and al, ch
sbb byte [rsi - 9], al
invalid
test eax, eax
jne 0x4aabe2
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x38]
xor r8, r8
call fcn.004118e0
mov rcx, qword [rbp + 0x50]
call fcn.004115a0
mov rcx, qword [rbp + 0x68]
mov rdx, rax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
sete al
mov byte [rbp + 0x37], al
mov rcx, qword [rbp + 0x68]
call sub.advapi32.dll_RegCloseKey
nop
lea rcx, [rbp + 0x50]
mov edx, 2
call fcn.00410470
movzx rax, byte [rbp + 0x37]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x4ab530
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rdx
mov rbx, r8
mov qword [rbp + 0x70], rcx
mov rcx, qword [rbp + 0x70]
call fcn.0042eaa0
test rax, rax
je 0x4ab612
cmp word [rax + 0x18], 0x20b
jne 0x4ab57c
lea rax, [rax + 0x90]
mov rcx, qword [rbp + 0x70]
mov edx, dword [rax]
lea rsi, [rcx + rdx]
mov r13d, dword [rax]
add r13d, dword [rax + 4]
jmp 0x4ab594
lea rax, [rax + 0x80]
mov rcx, qword [rbp + 0x70]
mov edx, dword [rax]
lea rsi, [rcx + rdx]
mov r13d, dword [rax]
add r13d, dword [rax + 4]
test rsi, rsi
je 0x4ab612
jmp 0x4ab60b
cmp dword [rsi + 0x10], r13d
jbe 0x4ab5ab
mov rcx, rbp
call fcn.004ab2f0
jmp 0x4ab611
cmp dword [rsi + 0x10], 0
je 0x4ab607
mov rax, qword [rbp + 0x70]
mov ecx, dword [rsi + 0x10]
lea rdi, [rax + rcx]
jmp 0x4ab601
mov rax, qword [rbp + 0x28]
cmp qword [rdi], rax
jne 0x4ab5fd
mov rcx, rdi
mov edx, 8
mov r8d, 0x40
lea r9, [rbp + 0x3c]
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4ab5fd
mov qword [rdi], rbx
mov rcx, rdi
mov edx, 8
mov r8d, dword [rbp + 0x3c]
lea r9, [rbp + 0x3c]
call sub.kernel32.dll_VirtualProtect
add rdi, 8
cmp qword [rdi], 0
jne 0x4ab5be
add rsi, 0x14
cmp dword [rsi + 0xc], 0
jne 0x4ab59b
nop
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x4ae0f0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
xor rcx, rcx
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4ae112
call sub.user32.dll_EmptyClipboard
call sub.user32.dll_CloseClipboard
xor rcx, rcx
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4ae194
mov rcx, rbx
call fcn.00410b80
mov ecx, 0x2002
mov edx, eax
add edx, edx
add edx, 2
movsxd rdx, edx
call sub.kernel32.dll_GlobalAlloc
mov rsi, rax
mov rcx, rsi
call sub.kernel32.dll_GlobalLock
mov rdi, rax
test rdi, rdi
je 0x4ae18f
mov rcx, rbx
call fcn.00412090
mov r13, rax
mov rcx, rbx
call fcn.00410b80
mov rcx, r13
mov rdx, rdi
mov r8d, eax
add r8d, r8d
add r8d, 2
movsxd r8, r8d
call fcn.00408e20
mov rcx, rsi
call sub.kernel32.dll_GlobalUnlock
mov ecx, 0xd
mov rdx, rsi
call sub.user32.dll_SetClipboardData
call sub.user32.dll_CloseClipboard
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r13
ret