joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427710
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x90
mov rbp, rsp
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x28], rdx
mov byte [rbp + 0x3e], r8b
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x60], 0
nop
xor rbx, rbx
mov rcx, qword [rbp + 0x30]
call fcn.0040c300
mov rcx, rax
xor rdx, rdx
lea r8, [rbp + 0x6c]
call sub.kernel32.dll_GetFileAttributesExW
test eax, eax
setne sil
mov eax, dword [rbp + 0x6c]
test eax, 0x400
je 0x4277de
movzx rax, byte [rbp + 0x3e]
test al, al
je 0x4277de
mov rcx, qword [rbp + 0x30]
lea rdx, [rbp + 0x60]
call fcn.004257c0
test al, al
je 0x4277de
mov rcx, qword [rbp + 0x60]
call fcn.004286c0
test al, al
je 0x4277c0
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0x30]
call fcn.00428370
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x40]
call fcn.00431cb0
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x48]
mov r8, qword [rbp + 0x60]
call fcn.0040c720
mov rcx, qword [rbp + 0x60]
call fcn.0040c300
mov rcx, rax
xor rdx, rdx
lea r8, [rbp + 0x6c]
call sub.kernel32.dll_GetFileAttributesExW
test eax, eax
setne sil
test sil, sil
jne 0x42781b
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
mov eax, ebx
sub eax, 0x20
cmp eax, 2
jae 0x42781b
mov rcx, qword [rbp + 0x30]
call fcn.0040c300
mov rcx, rax
xor rdx, rdx
lea r8, [rbp + 0x6c]
call fcn.004276c0
test eax, eax
jne 0x427818
mov ebx, 0x20
jmp 0x42781b
xor rbx, rbx
test ebx, ebx
jne 0x427854
mov eax, dword [rbp + 0x6c]
test eax, 0x10
jne 0x42784e
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x58], rax
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x28]
call sub.kernel32.dll_FileTimeToLocalFileTime
test eax, eax
jne 0x427854
mov ebx, 0x20
jmp 0x427854
mov ebx, 0x20
test ebx, ebx
sete al
mov byte [rbp + 0x3f], al
nop
lea rcx, [rbp + 0x40]
mov edx, 2
call fcn.0040aae0
lea rcx, [rbp + 0x60]
call fcn.0040aa00
movzx rax, byte [rbp + 0x3f]
lea rsp, [rbp + 0x90]
pop rbx
pop rsi
pop rbp
ret

Function at 0x427980
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x40
mov rbp, rsp
mov rbx, rcx
mov esi, edx
mov rcx, rbx
call fcn.0040c300
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x427a32
mov ecx, eax
test ecx, 0x400
je 0x427a27
test sil, sil
jne 0x4279bf
mov al, 1
jmp 0x427a5c
test eax, 0x10
je 0x4279cf
xor rax, rax
jmp 0x427a5c
mov rcx, rbx
call fcn.0040c300
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x427a1a
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x427a5c
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x20
sete al
jmp 0x427a5c
test eax, 0x10
sete al
jmp 0x427a5c
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x427a55
cmp eax, 3
je 0x427a55
cmp eax, 0x7b
je 0x427a55
mov rcx, rbp
mov rdx, rbx
call fcn.00427930
test al, al
jne 0x427a5a
xor rax, rax
jmp 0x427a5c
mov al, 1
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rbp
ret
Function at 0x427a70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov esi, edx
xor rdi, rdi
mov rcx, rbx
call fcn.0040c300
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov r13d, eax
cmp r13d, 0xffffffff
je 0x427b79
mov eax, r13d
test eax, 0x400
jne 0x427aba
test r13d, 0x10
setne dil
jmp 0x427b9a
test sil, sil
je 0x427b1a
mov rcx, rbx
call fcn.0040c300
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x2000000
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x427b9a
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
test r13d, 0x10
setne dil
jmp 0x427b9a
test r13d, 0x10
je 0x427b28
mov dil, 1
jmp 0x427b9a
mov rcx, rbx
call fcn.0040c300
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x2000000
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x427b74
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
xor rdi, rdi
jmp 0x427b9a
mov dil, 1
jmp 0x427b9a
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x427b92
cmp eax, 3
je 0x427b92
cmp eax, 0x7b
je 0x427b92
cmp eax, 0x35
jne 0x427b97
xor rdi, rdi
jmp 0x427b9a
mov dil, 1
mov eax, edi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x427d10
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.0040c300
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov dword [rbp + 0x28], eax
mov eax, dword [rbp + 0x28]
test eax, 0x400
je 0x427dc3
movzx rax, byte [rbp + 0x2f]
test al, al
je 0x427dc3
or eax, 0xffffffff
mov dword [rbp + 0x28], eax
mov rcx, qword [rbp + 0x20]
lea rdx, [rbp + 0x48]
call fcn.004257c0
test al, al
je 0x427dc3
mov rcx, qword [rbp + 0x48]
call fcn.004286c0
test al, al
je 0x427daf
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x20]
call fcn.00428370
lea rcx, [rbp + 0x38]
mov rdx, qword [rbp + 0x30]
call fcn.00431cb0
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x48]
call fcn.0040c720
mov rcx, qword [rbp + 0x48]
call fcn.0040c300
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov dword [rbp + 0x28], eax
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040aae0
lea rcx, [rbp + 0x48]
call fcn.0040aa00
mov eax, dword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x427e30
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.0040b0d0
movzx rax, byte [rbp + 0x3f]
test al, al
je 0x427eef
mov rcx, qword [rbp + 0x30]
call fcn.0040c300
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
test eax, 0x400
je 0x427eef
mov rcx, qword [rbp + 0x30]
lea rdx, [rbp + 0x50]
call fcn.004257c0
test al, al
je 0x427eef
mov rcx, qword [rbp + 0x50]
call fcn.004286c0
test al, al
je 0x427ee2
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0x30]
call fcn.00428370
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x40]
call fcn.00431cb0
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x48]
mov r8, qword [rbp + 0x50]
call fcn.0040c720
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x50]
call fcn.0040b0d0
mov rcx, qword [rbp + 0x58]
call fcn.0040c300
mov rcx, rax
mov edx, dword [rbp + 0x2c]
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x427f0f
call sub.kernel32.dll_GetLastError_2
mov dword [rbp + 0x28], eax
nop
lea rcx, [rbp + 0x40]
mov edx, 4
call fcn.0040aae0
mov eax, dword [rbp + 0x28]
lea rsp, [rbp + 0x60]
pop rbp
ret

Function at 0x4280c0
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.0040c300
mov rcx, rax
call sub.kernel32.dll_DeleteFileW
test eax, eax
setne sil
test sil, sil
jne 0x428132
call sub.kernel32.dll_GetLastError_2
mov edi, eax
mov rcx, rbx
call fcn.0040c300
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42812b
mov ecx, eax
test ecx, 0x400
je 0x42812b
test eax, 0x10
je 0x42812b
mov rcx, rbx
call fcn.0040c300
mov rcx, rax
call sub.kernel32.dll_RemoveDirectoryW
test eax, eax
setne sil
jmp 0x428132
mov ecx, edi
call sub.kernel32.dll_SetLastError
mov eax, esi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x428880
Capabilities:
Create directory

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

Function at 0x4288a0
Capabilities:
Delete directory

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

Function at 0x42ed80
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_1
test eax, eax
jle 0x42eda7
movzx rax, word [rbp + 0x2c]
jmp 0x42eda9
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret
Function at 0x430040
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.0042fdf0
mov ebx, eax
mov rax, qword [0x005400c0]
cmp byte [rax], 0
je 0x430178
mov rcx, qword [0x0053fc00]
call fcn.00406d50
call fcn.00405cc0
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_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x0042fff8]
mov r8d, 1
movsxd r9, esi
call fcn.0040df20
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_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
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_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x00430214]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x4301be
mov rcx, qword [0x00545d68]
call fcn.0040e080
mov rcx, rax
mov rax, qword [0x0053fb60]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
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 [0x0042fff8]
call fcn.0040df60
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret

Function at 0x432750
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.0040b240
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.00410800
mov esi, eax
cmp esi, 0x104
jbe 0x4327ad
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00405990
mov rdi, rax
jmp 0x4327b1
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.00410800
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 0x432807
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 0x4327eb
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x432819
mov rcx, rdi
call fcn.004059c0
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x460170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov qword [rbp + 0x60], r8
mov rcx, rsi
mov rdx, qword [rbp + 0x60]
mov r8, r9
call sub.kernel32.dll_FindResourceW
mov qword [rbx + 0x20], rax
cmp qword [rbx + 0x20], 0
jne 0x4601a7
mov rcx, rbp
call fcn.00460060
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.kernel32.dll_LoadResource
mov qword [rbx + 0x28], rax
cmp qword [rbx + 0x28], 0
jne 0x4601c6
mov rcx, rbp
call fcn.00460060
mov rcx, qword [rbx + 0x28]
call sub.kernel32.dll_LockResource
mov rdi, rax
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.kernel32.dll_SizeofResource
mov rcx, rbx
mov rdx, rdi
mov r8d, eax
call fcn.0045fbe0
lea rsp, [rbp + 0x28]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x46a0b0
Capabilities:
Resume thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov byte [rbp + 0x2f], dl
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
nop
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x14], 0
jne 0x46a0e3
movzx rax, byte [rbp + 0x2f]
test al, al
je 0x46a141
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x18], 0
jne 0x46a141
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x60], 0
jne 0x46a141
mov rax, qword [rbp + 0x20]
mov byte [rax + 0x16], 0
mov byte [rax + 0x14], 0
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 8]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x46a16b
lea rcx, [rbp + 0x38]
mov rdx, qword [0x0053fff8]
call fcn.00410730
mov rcx, qword [0x00454478]
mov dl, 1
mov r8, qword [rbp + 0x38]
call fcn.00430240
mov rcx, rax
call fcn.00409ad0
jmp 0x46a16b
lea rcx, [rbp + 0x30]
mov rdx, qword [0x0053fff8]
call fcn.00410730
mov rcx, qword [0x00454478]
mov dl, 1
mov r8, qword [rbp + 0x30]
call fcn.00430240
mov rcx, rax
call fcn.00409ad0
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040aae0
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x46a630
Capabilities:
Suspend thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov rax, qword [rbp + 0x50]
movzx rax, byte [rax + 0x16]
mov byte [rbp + 0x3f], al
nop
mov rax, qword [rbp + 0x50]
mov byte [rax + 0x16], 1
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 8]
call sub.kernel32.dll_SuspendThread
mov rcx, qword [rbp + 0x50]
test eax, eax
setge dl
call fcn.00469f80
jmp 0x46a68b
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x46a6b0
Capabilities:
Resume thread

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rbx + 8]
call sub.kernel32.dll_ResumeThread
mov esi, eax
mov rcx, rbx
test esi, esi
setge dl
call fcn.00469f80
cmp esi, 1
jne 0x46a6da
mov byte [rbx + 0x16], 0
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x4732e0
Capabilities:
Set registry value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rbp, rsp
mov rbx, rdx
mov rsi, r8
mov rdi, r9
call fcn.0040c300
mov rcx, rdi
mov rdx, rax
xor r8, r8
lea r9, [0x004733b8]
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0x2001f
mov qword [rsp + 0x30], 0
lea rax, [rbp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x54]
mov qword [rsp + 0x40], rax
call sub.advapi32.dll_RegCreateKeyExW
mov edi, eax
test edi, edi
jne 0x47338c
xor rdi, rdi
test rsi, rsi
je 0x47334a
mov edi, dword [rsi - 4]
mov rcx, rbx
call fcn.0040c300
mov rbx, rax
mov rcx, rsi
call fcn.0040c300
mov rcx, qword [rbp + 0x58]
mov rdx, rbx
xor r8, r8
mov r9d, 1
mov qword [rsp + 0x20], rax
add edi, 1
add edi, edi
mov dword [rsp + 0x28], edi
call sub.advapi32.dll_RegSetValueExW
mov edi, eax
mov rcx, qword [rbp + 0x58]
call sub.advapi32.dll_RegCloseKey_1
test edi, edi
je 0x4733ad
mov rcx, qword [0x004702e8]
mov dl, 1
mov r8, qword [0x0053fc38]
call fcn.004303d0
mov rcx, rax
call fcn.00409ad0
lea rsp, [rbp + 0x68]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x4733c0
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
call fcn.0040c300
mov rcx, rbx
mov rdx, rax
call sub.advapi32.dll_RegDeleteKeyW
add rsp, 0x20
pop rbx
ret

Function at 0x4733e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
sub rsp, 0x58
mov rbp, rsp
mov qword [rbp + 0x38], rbp
mov qword [rbp + 0x70], rcx
mov qword [rbp + 0x78], rdx
mov qword [rbp + 0x80], r8
mov qword [rbp + 0x88], r9
mov rcx, qword [rbp + 0x70]
call fcn.0040aa00
mov rcx, qword [rbp + 0x78]
call fcn.0040c300
mov rcx, qword [rbp + 0x88]
mov rdx, rax
xor r8, r8
mov r9d, 0x20019
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4734cd
nop
mov dword [rbp + 0x44], pe_nt_image_headers64
mov rcx, qword [rbp + 0x70]
mov edx, dword [rbp + 0x44]
call fcn.0040c570
mov eax, dword [rbp + 0x44]
add eax, eax
mov dword [rbp + 0x44], eax
mov rcx, qword [rbp + 0x80]
call fcn.0040c300
mov rbx, rax
mov rax, qword [rbp + 0x70]
mov rcx, qword [rax]
call fcn.0040c300
mov rcx, qword [rbp + 0x48]
mov rdx, rbx
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x44]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4734ba
mov rcx, qword [rbp + 0x70]
mov r8d, 2
mov eax, dword [rbp + 0x44]
xor edx, edx
div r8d
mov rdx, rax
sub edx, 1
call fcn.0040c570
jmp 0x4734c3
mov rcx, qword [rbp + 0x70]
call fcn.0040aa00
nop
mov rcx, qword [rbp + 0x48]
call sub.advapi32.dll_RegCloseKey_1
mov rax, qword [rbp + 0x70]
lea rsp, [rbp + 0x58]
pop rbx
pop rbp
ret
Function at 0x483c30
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
sub rsp, 0x78
mov rbp, rsp
mov qword [rbp + 0x58], rcx
mov dword [rbp + 0x50], r9d
mov qword [rbp + 0x98], rdx
mov qword [rbp + 0xa0], r8
mov rcx, qword [rbp + 0x98]
call fcn.0040ab90
mov rcx, qword [rbp + 0xa0]
call fcn.0040ab90
nop
xor rax, rax
mov byte [rbp + 0x57], al
xor rbx, rbx
mov rax, qword [0x0053fa28]
cmp byte [rax], 0
je 0x483ca7
call fcn.00410c40
cmp byte [rax + 0x1b1], 0
je 0x483c93
mov ebx, pe_nt_image_headers64
jmp 0x483ca7
call fcn.00410c40
cmp byte [rax + 0x1b0], 0
je 0x483ca7
mov ebx, 0x200
nop
mov rcx, qword [rbp + 0x98]
call fcn.0040c300
mov rcx, qword [rbp + 0x58]
mov rdx, rax
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
or ebx, 0x20006
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x30], 0
lea rax, [rbp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x6c]
mov qword [rsp + 0x40], rax
call sub.advapi32.dll_RegCreateKeyExW
mov ebx, eax
mov ecx, ebx
call sub.kernel32.dll_SetLastError
test ebx, ebx
jne 0x483d92
cmp qword [rbp + 0xa0], 0
jne 0x483d43
mov rcx, qword [rbp + 0x60]
xor rdx, rdx
xor r8, r8
mov r9d, dword [rbp + 0x50]
mov rax, qword [rbp + 0xb0]
mov qword [rsp + 0x20], rax
mov eax, dword [rbp + 0xb8]
mov dword [rsp + 0x28], eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
sete al
mov byte [rbp + 0x57], al
jmp 0x483d82
mov rcx, qword [rbp + 0xa0]
call fcn.0040c300
mov rcx, qword [rbp + 0x60]
mov rdx, rax
xor r8, r8
mov r9d, dword [rbp + 0x50]
mov rax, qword [rbp + 0xb0]
mov qword [rsp + 0x20], rax
mov eax, dword [rbp + 0xb8]
mov dword [rsp + 0x28], eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
sete al
mov byte [rbp + 0x57], al
mov ecx, ebx
call sub.kernel32.dll_SetLastError
mov rcx, qword [rbp + 0x60]
call sub.advapi32.dll_RegCloseKey_1
nop
lea rcx, [rbp + 0x98]
mov edx, 2
call fcn.0040aae0
movzx rax, byte [rbp + 0x57]
lea rsp, [rbp + 0x78]
pop rbx
pop rbp
ret
Function at 0x483df0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x38], rcx
mov dword [rbp + 0x34], r9d
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov rcx, qword [rbp + 0x88]
call fcn.0040ab90
mov rcx, qword [rbp + 0x90]
call fcn.0040ab90
nop
xor rax, rax
mov byte [rbp + 0x33], al
mov rax, qword [rbp + 0xa0]
mov qword [rax], 0
mov rax, qword [rbp + 0xa8]
mov dword [rax], 0
xor rbx, rbx
mov rax, qword [0x0053fa28]
cmp byte [rax], 0
je 0x483e83
call fcn.00410c40
cmp byte [rax + 0x1b1], 0
je 0x483e6f
mov ebx, pe_nt_image_headers64
jmp 0x483e83
call fcn.00410c40
cmp byte [rax + 0x1b0], 0
je 0x483e83
mov ebx, 0x200
nop
mov rcx, qword [rbp + 0x88]
call fcn.0040c300
mov rcx, qword [rbp + 0x38]
mov rdx, rax
xor r8, r8
mov r9d, ebx
or r9d, 0x20019
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x483f71
cmp qword [rbp + 0x90], 0
jne 0x483ec9
xor rsi, rsi
jmp 0x483ed8
mov rcx, qword [rbp + 0x90]
call fcn.0040c300
mov rsi, rax
mov rcx, qword [rbp + 0x50]
mov rdx, rsi
xor r8, r8
lea r9, [rbp + 0x5c]
mov qword [rsp + 0x20], 0
lea rax, [rbp + 0x4c]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x483f68
mov ecx, dword [rbp + 0x4c]
call fcn.00405990
mov rbx, rax
mov rcx, qword [rbp + 0x50]
mov rdx, rsi
xor r8, r8
lea r9, [rbp + 0x5c]
mov qword [rsp + 0x20], rbx
lea rax, [rbp + 0x4c]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x483f60
mov eax, dword [rbp + 0x34]
cmp eax, dword [rbp + 0x5c]
jne 0x483f56
mov rax, qword [rbp + 0xa0]
mov qword [rax], rbx
mov rax, qword [rbp + 0xa8]
mov ecx, dword [rbp + 0x4c]
mov dword [rax], ecx
mov al, 1
mov byte [rbp + 0x33], al
jmp 0x483f68
mov rcx, rbx
call fcn.004059c0
jmp 0x483f68
mov rcx, rbx
call fcn.004059c0
mov rcx, qword [rbp + 0x50]
call sub.advapi32.dll_RegCloseKey_1
nop
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040aae0
movzx rax, byte [rbp + 0x33]
lea rsp, [rbp + 0x60]
pop rbx
pop rsi
pop rbp
ret

Function at 0x484450
Capabilities:
Delete registry value

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
xor rax, rax
mov byte [rbp + 0x3f], al
xor r13, r13
mov rax, qword [0x0053fa28]
cmp byte [rax], 0
je 0x4844a7
call fcn.00410c40
cmp byte [rax + 0x1b1], 0
je 0x484492
mov r13d, pe_nt_image_headers64
jmp 0x4844a7
call fcn.00410c40
cmp byte [rax + 0x1b0], 0
je 0x4844a7
mov r13d, 0x200
nop
mov rcx, rsi
call fcn.0040c300
mov rcx, rbx
mov rdx, rax
xor r8, r8
mov r9d, r13d
or r9d, 0x20006
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
mov ebx, eax
mov ecx, ebx
call sub.kernel32.dll_SetLastError
test ebx, ebx
jne 0x484503
mov rcx, rdi
call fcn.0040c300
mov rcx, qword [rbp + 0x48]
mov rdx, rax
call sub.advapi32.dll_RegDeleteValueW
test eax, eax
sete al
mov byte [rbp + 0x3f], al
mov rcx, qword [rbp + 0x48]
call sub.advapi32.dll_RegCloseKey_1
movzx rax, byte [rbp + 0x3f]
lea rsp, [rbp + 0x50]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x484520
Capabilities:
Delete registry key

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x58], rdx
mov rax, qword [0x0053fa28]
cmp byte [rax], 0
jne 0x48455d
mov rcx, qword [rbp + 0x58]
call fcn.0040c300
mov rcx, qword [rbp + 0x50]
mov rdx, rax
call sub.advapi32.dll_RegDeleteKeyW
mov dword [rbp + 0x3c], eax
jmp 0x4845df
nop
mov dword [rbp + 0x38], 0
mov rax, qword [0x0053fa28]
cmp byte [rax], 0
je 0x48459d
call fcn.00410c40
cmp byte [rax + 0x1b1], 0
je 0x484588
mov dword [rbp + 0x38], pe_nt_image_headers64
jmp 0x48459d
call fcn.00410c40
cmp byte [rax + 0x1b0], 0
je 0x48459d
mov dword [rbp + 0x38], 0x200
nop
mov rcx, qword [rbp + 0x58]
call fcn.0040c300
mov rcx, qword [rbp + 0x50]
mov rdx, rax
mov r8d, dword [rbp + 0x38]
xor r9, r9
call sub.advapi32.dll_RegDeleteKeyExW
mov dword [rbp + 0x3c], eax
jmp 0x4845df
mov eax, dword [rbp + 0x3c]
lea rsp, [rbp + 0x40]
pop rbp
ret