joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427610
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 0x4276de
movzx rax, byte [rbp + 0x3e]
test al, al
je 0x4276de
mov rcx, qword [rbp + 0x30]
lea rdx, [rbp + 0x60]
call fcn.004256c0
test al, al
je 0x4276de
mov rcx, qword [rbp + 0x60]
call fcn.00428300
test al, al
je 0x4276c0
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0x30]
call fcn.00428020
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x40]
call fcn.004317f0
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x48]
mov r8, qword [rbp + 0x60]
call fcn.0040c6f0
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 0x42771b
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
mov eax, ebx
sub eax, 0x20
cmp eax, 2
jae 0x42771b
mov rcx, qword [rbp + 0x30]
call fcn.0040c300
mov rcx, rax
xor rdx, rdx
lea r8, [rbp + 0x6c]
call fcn.004275c0
test eax, eax
jne 0x427718
mov ebx, 0x20
jmp 0x42771b
xor rbx, rbx
test ebx, ebx
jne 0x427754
mov eax, dword [rbp + 0x6c]
test eax, 0x10
jne 0x42774e
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 0x427754
mov ebx, 0x20
jmp 0x427754
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 0x427880
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 0x427932
mov ecx, eax
test ecx, 0x400
je 0x427927
test sil, sil
jne 0x4278bf
mov al, 1
jmp 0x42795c
test eax, 0x10
je 0x4278cf
xor rax, rax
jmp 0x42795c
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 0x42791a
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x42795c
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x20
sete al
jmp 0x42795c
test eax, 0x10
sete al
jmp 0x42795c
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x427955
cmp eax, 3
je 0x427955
cmp eax, 0x7b
je 0x427955
mov rcx, rbp
mov rdx, rbx
call fcn.00427830
test al, al
jne 0x42795a
xor rax, rax
jmp 0x42795c
mov al, 1
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rbp
ret
Function at 0x427970
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 0x427a79
mov eax, r13d
test eax, 0x400
jne 0x4279ba
test r13d, 0x10
setne dil
jmp 0x427a9a
test sil, sil
je 0x427a1a
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 0x427a9a
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
test r13d, 0x10
setne dil
jmp 0x427a9a
test r13d, 0x10
je 0x427a28
mov dil, 1
jmp 0x427a9a
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 0x427a74
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
xor rdi, rdi
jmp 0x427a9a
mov dil, 1
jmp 0x427a9a
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x427a92
cmp eax, 3
je 0x427a92
cmp eax, 0x7b
je 0x427a92
cmp eax, 0x35
jne 0x427a97
xor rdi, rdi
jmp 0x427a9a
mov dil, 1
mov eax, edi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x427d70
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 0x427de2
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 0x427ddb
mov ecx, eax
test ecx, 0x400
je 0x427ddb
test eax, 0x10
je 0x427ddb
mov rcx, rbx
call fcn.0040c300
mov rcx, rax
call sub.kernel32.dll_RemoveDirectoryW
test eax, eax
setne sil
jmp 0x427de2
mov ecx, edi
call sub.kernel32.dll_SetLastError
mov eax, esi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x4284c0
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 0x42e8c0
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 0x42e8e7
movzx rax, word [rbp + 0x2c]
jmp 0x42e8e9
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret
Function at 0x42fb80
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.0042f930
mov ebx, eax
mov rax, qword [0x0052e000]
cmp byte [rax], 0
je 0x42fcb8
mov rcx, qword [0x0052dbc8]
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 [0x0042fb38]
mov r8d, 1
movsxd r9, esi
call fcn.0040ded0
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, [0x0042fd54]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x42fcfe
mov rcx, qword [0x00533d68]
call fcn.0040e030
mov rcx, rax
mov rax, qword [0x0052db30]
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 [0x0042fb38]
call fcn.0040df10
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret

Function at 0x432290
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.004107b0
mov esi, eax
cmp esi, 0x104
jbe 0x4322ed
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00405990
mov rdi, rax
jmp 0x4322f1
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.004107b0
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 0x432347
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 0x43232b
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x432359
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 0x45fcb0
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 0x45fce7
mov rcx, rbp
call fcn.0045fba0
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.kernel32.dll_LoadResource
mov qword [rbx + 0x28], rax
cmp qword [rbx + 0x28], 0
jne 0x45fd06
mov rcx, rbp
call fcn.0045fba0
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.0045f720
lea rsp, [rbp + 0x28]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x469bf0
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 0x469c23
movzx rax, byte [rbp + 0x2f]
test al, al
je 0x469c81
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x18], 0
jne 0x469c81
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x60], 0
jne 0x469c81
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 0x469cab
lea rcx, [rbp + 0x38]
mov rdx, qword [0x0052df48]
call fcn.004106e0
mov rcx, qword [0x00453fb8]
mov dl, 1
mov r8, qword [rbp + 0x38]
call fcn.0042fd80
mov rcx, rax
call fcn.00409ad0
jmp 0x469cab
lea rcx, [rbp + 0x30]
mov rdx, qword [0x0052df48]
call fcn.004106e0
mov rcx, qword [0x00453fb8]
mov dl, 1
mov r8, qword [rbp + 0x30]
call fcn.0042fd80
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 0x46a170
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.00469ac0
jmp 0x46a1cb
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x46a1f0
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.00469ac0
cmp esi, 1
jne 0x46a21a
mov byte [rbx + 0x16], 0
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x472e20
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, [0x00472ef8]
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 0x472ecc
xor rdi, rdi
test rsi, rsi
je 0x472e8a
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 0x472eed
mov rcx, qword [0x0046fe28]
mov dl, 1
mov r8, qword [0x0052dbf8]
call fcn.0042ff10
mov rcx, rax
call fcn.00409ad0
lea rsp, [rbp + 0x68]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x472f00
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 0x472f20
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 0x47300d
nop
mov dword [rbp + 0x44], pe_nt_image_headers64
mov rcx, qword [rbp + 0x70]
mov edx, dword [rbp + 0x44]
call fcn.0040c540
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 0x472ffa
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.0040c540
jmp 0x473003
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 0x481ff0
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 [0x0052da28]
cmp byte [rax], 0
je 0x482067
call fcn.00410bf0
cmp byte [rax + 0x1b1], 0
je 0x482053
mov ebx, pe_nt_image_headers64
jmp 0x482067
call fcn.00410bf0
cmp byte [rax + 0x1b0], 0
je 0x482067
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 0x482152
cmp qword [rbp + 0xa0], 0
jne 0x482103
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 0x482142
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 0x4821b0
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 [0x0052da28]
cmp byte [rax], 0
je 0x482243
call fcn.00410bf0
cmp byte [rax + 0x1b1], 0
je 0x48222f
mov ebx, pe_nt_image_headers64
jmp 0x482243
call fcn.00410bf0
cmp byte [rax + 0x1b0], 0
je 0x482243
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 0x482331
cmp qword [rbp + 0x90], 0
jne 0x482289
xor rsi, rsi
jmp 0x482298
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 0x482328
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 0x482320
mov eax, dword [rbp + 0x34]
cmp eax, dword [rbp + 0x5c]
jne 0x482316
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 0x482328
mov rcx, rbx
call fcn.004059c0
jmp 0x482328
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 0x482810
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 [0x0052da28]
cmp byte [rax], 0
je 0x482867
call fcn.00410bf0
cmp byte [rax + 0x1b1], 0
je 0x482852
mov r13d, pe_nt_image_headers64
jmp 0x482867
call fcn.00410bf0
cmp byte [rax + 0x1b0], 0
je 0x482867
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 0x4828c3
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 0x4828e0
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 [0x0052da28]
cmp byte [rax], 0
jne 0x48291d
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 0x48299f
nop
mov dword [rbp + 0x38], 0
mov rax, qword [0x0052da28]
cmp byte [rax], 0
je 0x48295d
call fcn.00410bf0
cmp byte [rax + 0x1b1], 0
je 0x482948
mov dword [rbp + 0x38], pe_nt_image_headers64
jmp 0x48295d
call fcn.00410bf0
cmp byte [rax + 0x1b0], 0
je 0x48295d
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 0x48299f
mov eax, dword [rbp + 0x3c]
lea rsp, [rbp + 0x40]
pop rbp
ret
Function at 0x482b10
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
sub rsp, 0xb0
mov rbp, rsp
mov qword [rbp + 0x60], 0
mov qword [rbp + 0xa8], 0
mov qword [rbp + 0x80], 0
mov qword [rbp + 0x68], rbp
mov qword [rbp + 0xc0], rcx
mov qword [rbp + 0xc8], rdx
mov byte [rbp + 0xd0], r8b
nop
mov byte [rbp + 0x9f], 0
lea rcx, [0x00482ebc]
mov rdx, qword [rbp + 0xc8]
call fcn.0040caa0
test eax, eax
je 0x482dc3
cmp byte [rbp + 0xd0], 0
je 0x482da9
nop
mov dword [rbp + 0x7c], 0
mov rax, qword [0x0052da28]
cmp byte [rax], 0
je 0x482bc2
call fcn.00410bf0
cmp byte [rax + 0x1b1], 0
je 0x482bad
mov dword [rbp + 0x7c], pe_nt_image_headers64
jmp 0x482bc2
call fcn.00410bf0
cmp byte [rax + 0x1b0], 0
je 0x482bc2
mov dword [rbp + 0x7c], 0x200
nop
mov rcx, qword [rbp + 0xc8]
call fcn.0040c300
mov rcx, qword [rbp + 0xc0]
mov rdx, rax
xor r8, r8
mov r9d, dword [rbp + 0x7c]
or r9d, 0x2000f
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
mov dword [rbp + 0x98], eax
nop
cmp dword [rbp + 0x98], 0
jne 0x482d83
mov dword [rbp + 0x90], 0
mov rcx, qword [rbp + 0xa0]
xor rdx, rdx
xor r8, r8
xor r9, r9
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
call sub.advapi32.dll_RegQueryInfoKeyW
test eax, eax
jne 0x482d83
mov eax, dword [rbp + 0x90]
sub eax, 1
mov dword [rbp + 0x8c], eax
cmp dword [rbp + 0x8c], 0
jl 0x482d82
mov eax, dword [0x0051f318]
mov dword [rbp + 0x94], eax
lea rcx, [rbp + 0xa8]
mov edx, dword [rbp + 0x94]
call fcn.0040c540
lea rcx, [rbp + 0xa8]
call fcn.0040b340
mov rcx, qword [rbp + 0xa0]
mov edx, dword [rbp + 0x8c]
mov r8, rax
lea r9, [rbp + 0x94]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.advapi32.dll_RegEnumKeyExW
test eax, eax
jne 0x482d6e
lea rcx, [rbp + 0xa8]
mov edx, dword [rbp + 0x94]
call fcn.0040c540
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0xc8]
call fcn.004317f0
lea rcx, [rbp + 0x80]
mov rdx, qword [rbp + 0x60]
mov r8, qword [rbp + 0xa8]
call fcn.0040c6f0
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x80]
movzx r8, byte [rbp + 0xd0]
call fcn.00482b10
test al, al
jne 0x482d6e
xor rcx, rcx
mov rdx, qword [rbp + 0x68]
call fcn.00482e00
jmp 0x482dc3
sub dword [rbp + 0x8c], 1
cmp dword [rbp + 0x8c], 0xffffffff
jne 0x482c9a
nop
nop
lea rcx, [rbp + 0xa8]
xor rdx, rdx
call fcn.0040c540
mov rcx, qword [rbp + 0xa0]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x482da9
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0xc8]
call fcn.004829c0
mov byte [rbp + 0x9f], al
nop
lea rcx, [rbp + 0x60]
call fcn.0040aa00
lea rcx, [rbp + 0x80]
call fcn.0040aa00
lea rcx, [rbp + 0xa8]
call fcn.0040aa00
movzx rax, byte [rbp + 0x9f]
lea rsp, [rbp + 0xb0]
pop rbp
ret