joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42fbf0
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.0042f9a0
mov ebx, eax
mov rax, qword [0x00536a60]
cmp byte [rax], 0
je 0x42fd28
mov rcx, qword [0x005365a0]
call fcn.00406d30
call fcn.00405ca0
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 [0x0042fba8]
mov r8d, 1
movsxd r9, esi
call fcn.0040dbd0
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, [0x0042fdc4]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x42fd6e
mov rcx, qword [0x0053bd68]
call fcn.0040dd30
mov rcx, rax
mov rax, qword [0x00536500]
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 [0x0042fba8]
call fcn.0040dc10
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret

Function at 0x432300
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.0040b220
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.004102a0
mov esi, eax
cmp esi, 0x104
jbe 0x43235d
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00405970
mov rdi, rax
jmp 0x432361
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.004102a0
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 0x4323b7
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 0x43239b
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x4323c9
mov rcx, rdi
call fcn.004059a0
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x45fcc0
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 0x45fcf7
mov rcx, rbp
call fcn.0045fbb0
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.kernel32.dll_LoadResource
mov qword [rbx + 0x28], rax
cmp qword [rbx + 0x28], 0
jne 0x45fd16
mov rcx, rbp
call fcn.0045fbb0
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.0045f730
lea rsp, [rbp + 0x28]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x469c00
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 0x469c33
movzx rax, byte [rbp + 0x2f]
test al, al
je 0x469c91
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x18], 0
jne 0x469c91
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x60], 0
jne 0x469c91
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 0x469cbb
lea rcx, [rbp + 0x38]
mov rdx, qword [0x00536990]
call fcn.004101d0
mov rcx, qword [0x00453fc8]
mov dl, 1
mov r8, qword [rbp + 0x38]
call fcn.0042fdf0
mov rcx, rax
call fcn.00409ab0
jmp 0x469cbb
lea rcx, [rbp + 0x30]
mov rdx, qword [0x00536990]
call fcn.004101d0
mov rcx, qword [0x00453fc8]
mov dl, 1
mov r8, qword [rbp + 0x30]
call fcn.0042fdf0
mov rcx, rax
call fcn.00409ab0
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040aac0
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x46a160
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.00469ad0
jmp 0x46a1bb
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x46a1e0
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.00469ad0
cmp esi, 1
jne 0x46a20a
mov byte [rbx + 0x16], 0
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x472e10
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.0040bfb0
mov rcx, rdi
mov rdx, rax
xor r8, r8
lea r9, [0x00472ee8]
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 0x472ebc
xor rdi, rdi
test rsi, rsi
je 0x472e7a
mov edi, dword [rsi - 4]
mov rcx, rbx
call fcn.0040bfb0
mov rbx, rax
mov rcx, rsi
call fcn.0040bfb0
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 0x472edd
mov rcx, qword [0x0046fe18]
mov dl, 1
mov r8, qword [0x005365d8]
call fcn.0042ff80
mov rcx, rax
call fcn.00409ab0
lea rsp, [rbp + 0x68]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x472ef0
Capabilities:
Delete registry key

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

Function at 0x472f10
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.0040a9e0
mov rcx, qword [rbp + 0x78]
call fcn.0040bfb0
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 0x472ffd
nop
mov dword [rbp + 0x44], pe_nt_image_headers64
mov rcx, qword [rbp + 0x70]
mov edx, dword [rbp + 0x44]
call fcn.0040c220
mov eax, dword [rbp + 0x44]
add eax, eax
mov dword [rbp + 0x44], eax
mov rcx, qword [rbp + 0x80]
call fcn.0040bfb0
mov rbx, rax
mov rax, qword [rbp + 0x70]
mov rcx, qword [rax]
call fcn.0040bfb0
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 0x472fea
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.0040c220
jmp 0x472ff3
mov rcx, qword [rbp + 0x70]
call fcn.0040a9e0
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 0x4812e0
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x38], rbp
mov qword [rbp + 0x70], rcx
mov byte [rbp + 0x78], dl
nop
mov dword [rbp + 0x5c], 0
nop
cmp byte [rbp + 0x78], 0
je 0x481348
lea rcx, [rbp + 0x28]
mov rdx, qword [rbp + 0x70]
call fcn.0040c140
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
call fcn.00425e50
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x30]
mov r8w, 0xfde9
call fcn.0040b640
jmp 0x48135a
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x70]
mov r8w, 0xfde9
call fcn.0040b8c0
mov dword [rbp + 0x48], 1
mov dword [rbp + 0x40], 0
cmp qword [rbp + 0x50], 0
je 0x481379
mov rax, qword [rbp + 0x50]
mov eax, dword [rax - 4]
mov dword [rbp + 0x40], eax
mov eax, 1
mov ecx, dword [rbp + 0x40]
mov dword [rbp + 0x4c], eax
cmp dword [rbp + 0x4c], ecx
jg 0x4813bb
add ecx, 1
imul eax, dword [rbp + 0x48], 0x5517e877
mov dword [rbp + 0x48], eax
lea rax, [0x00526e04]
mov rdx, qword [rbp + 0x50]
movsxd r8, dword [rbp + 0x4c]
movzx rdx, byte [rdx + r8 - 1]
mov eax, dword [rax + rdx*4]
xor dword [rbp + 0x48], eax
add dword [rbp + 0x4c], 1
cmp dword [rbp + 0x4c], ecx
jne 0x48138d
nop
mov eax, dword [rbp + 0x48]
mov dword [rbp + 0x5c], eax
jmp 0x4813cc
nop
lea rcx, [rbp + 0x28]
mov edx, 2
call fcn.0040ab20
lea rcx, [rbp + 0x50]
call fcn.0040aa30
mov eax, dword [rbp + 0x5c]
lea rsp, [rbp + 0x60]
pop rbp
ret

Function at 0x481440
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x38], rbp
mov qword [rbp + 0x80], rcx
mov byte [rbp + 0x88], dl
nop
mov qword [rbp + 0x68], 0
nop
cmp byte [rbp + 0x88], 0
je 0x4814b5
lea rcx, [rbp + 0x28]
mov rdx, qword [rbp + 0x80]
call fcn.0040c140
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
call fcn.00425e50
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x30]
mov r8w, 0xfde9
call fcn.0040b640
jmp 0x4814ca
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x80]
mov r8w, 0xfde9
call fcn.0040b8c0
mov qword [rbp + 0x50], 1
mov dword [rbp + 0x48], 0
cmp qword [rbp + 0x60], 0
je 0x4814ea
mov rax, qword [rbp + 0x60]
mov eax, dword [rax - 4]
mov dword [rbp + 0x48], eax
mov eax, 1
mov ecx, dword [rbp + 0x48]
mov dword [rbp + 0x5c], eax
cmp dword [rbp + 0x5c], ecx
jg 0x481533
add ecx, 1
mov rax, qword [rbp + 0x50]
imul rax, rax, 0x5517e877
mov qword [rbp + 0x50], rax
lea rax, [0x00527208]
mov rdx, qword [rbp + 0x60]
movsxd r8, dword [rbp + 0x5c]
movzx rdx, byte [rdx + r8 - 1]
mov rax, qword [rax + rdx*8]
xor qword [rbp + 0x50], rax
add dword [rbp + 0x5c], 1
cmp dword [rbp + 0x5c], ecx
jne 0x4814fe
nop
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x68], rax
jmp 0x481546
nop
lea rcx, [rbp + 0x28]
mov edx, 2
call fcn.0040ab20
lea rcx, [rbp + 0x60]
call fcn.0040aa30
mov rax, qword [rbp + 0x68]
lea rsp, [rbp + 0x70]
pop rbp
ret
Function at 0x485830
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, rdx
call fcn.0040bfb0
mov rcx, qword [rbx + 8]
mov rdx, rax
call sub.advapi32.dll_RegDeleteValueW
mov rcx, rbx
mov edx, eax
call fcn.00485560
add rsp, 0x20
pop rbx
ret

Function at 0x485b10
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.0040ab70
mov rcx, qword [rbp + 0xa0]
call fcn.0040ab70
nop
xor rax, rax
mov byte [rbp + 0x57], al
xor rbx, rbx
mov rax, qword [0x005363e0]
cmp byte [rax], 0
je 0x485b87
call fcn.004106e0
cmp byte [rax + 0x1b1], 0
je 0x485b73
mov ebx, pe_nt_image_headers64
jmp 0x485b87
call fcn.004106e0
cmp byte [rax + 0x1b0], 0
je 0x485b87
mov ebx, 0x200
nop
mov rcx, qword [rbp + 0x98]
call fcn.0040bfb0
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 0x485c72
cmp qword [rbp + 0xa0], 0
jne 0x485c23
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 0x485c62
mov rcx, qword [rbp + 0xa0]
call fcn.0040bfb0
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.0040aac0
movzx rax, byte [rbp + 0x57]
lea rsp, [rbp + 0x78]
pop rbx
pop rbp
ret
Function at 0x485cd0
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.0040ab70
mov rcx, qword [rbp + 0x90]
call fcn.0040ab70
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 [0x005363e0]
cmp byte [rax], 0
je 0x485d63
call fcn.004106e0
cmp byte [rax + 0x1b1], 0
je 0x485d4f
mov ebx, pe_nt_image_headers64
jmp 0x485d63
call fcn.004106e0
cmp byte [rax + 0x1b0], 0
je 0x485d63
mov ebx, 0x200
nop
mov rcx, qword [rbp + 0x88]
call fcn.0040bfb0
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 0x485e51
cmp qword [rbp + 0x90], 0
jne 0x485da9
xor rsi, rsi
jmp 0x485db8
mov rcx, qword [rbp + 0x90]
call fcn.0040bfb0
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 0x485e48
mov ecx, dword [rbp + 0x4c]
call fcn.00405970
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 0x485e40
mov eax, dword [rbp + 0x34]
cmp eax, dword [rbp + 0x5c]
jne 0x485e36
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 0x485e48
mov rcx, rbx
call fcn.004059a0
jmp 0x485e48
mov rcx, rbx
call fcn.004059a0
mov rcx, qword [rbp + 0x50]
call sub.advapi32.dll_RegCloseKey_1
nop
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040aac0
movzx rax, byte [rbp + 0x33]
lea rsp, [rbp + 0x60]
pop rbx
pop rsi
pop rbp
ret

Function at 0x486140
Capabilities:
Query or enumerate 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 [0x005363e0]
cmp byte [rax], 0
je 0x486197
call fcn.004106e0
cmp byte [rax + 0x1b1], 0
je 0x486182
mov r13d, pe_nt_image_headers64
jmp 0x486197
call fcn.004106e0
cmp byte [rax + 0x1b0], 0
je 0x486197
mov r13d, 0x200
nop
mov rcx, rsi
call fcn.0040bfb0
mov rcx, rbx
mov rdx, rax
xor r8, r8
mov r9d, r13d
or r9d, 0x20019
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x486202
mov rcx, rdi
call fcn.0040bfb0
mov rcx, qword [rbp + 0x48]
mov rdx, rax
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call sub.advapi32.dll_RegQueryValueExW_1
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 0x4862c0
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 [0x005363e0]
cmp byte [rax], 0
je 0x486317
call fcn.004106e0
cmp byte [rax + 0x1b1], 0
je 0x486302
mov r13d, pe_nt_image_headers64
jmp 0x486317
call fcn.004106e0
cmp byte [rax + 0x1b0], 0
je 0x486317
mov r13d, 0x200
nop
mov rcx, rsi
call fcn.0040bfb0
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 0x486373
mov rcx, rdi
call fcn.0040bfb0
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 0x486390
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 [0x005363e0]
cmp byte [rax], 0
jne 0x4863cd
mov rcx, qword [rbp + 0x58]
call fcn.0040bfb0
mov rcx, qword [rbp + 0x50]
mov rdx, rax
call sub.advapi32.dll_RegDeleteKeyW
mov dword [rbp + 0x3c], eax
jmp 0x48644f
nop
mov dword [rbp + 0x38], 0
mov rax, qword [0x005363e0]
cmp byte [rax], 0
je 0x48640d
call fcn.004106e0
cmp byte [rax + 0x1b1], 0
je 0x4863f8
mov dword [rbp + 0x38], pe_nt_image_headers64
jmp 0x48640d
call fcn.004106e0
cmp byte [rax + 0x1b0], 0
je 0x48640d
mov dword [rbp + 0x38], 0x200
nop
mov rcx, qword [rbp + 0x58]
call fcn.0040bfb0
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 0x48644f
mov eax, dword [rbp + 0x3c]
lea rsp, [rbp + 0x40]
pop rbp
ret
Function at 0x4865c0
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, [0x0048696c]
mov rdx, qword [rbp + 0xc8]
call fcn.0040c8b0
test eax, eax
je 0x486873
cmp byte [rbp + 0xd0], 0
je 0x486859
nop
mov dword [rbp + 0x7c], 0
mov rax, qword [0x005363e0]
cmp byte [rax], 0
je 0x486672
call fcn.004106e0
cmp byte [rax + 0x1b1], 0
je 0x48665d
mov dword [rbp + 0x7c], pe_nt_image_headers64
jmp 0x486672
call fcn.004106e0
cmp byte [rax + 0x1b0], 0
je 0x486672
mov dword [rbp + 0x7c], 0x200
nop
mov rcx, qword [rbp + 0xc8]
call fcn.0040bfb0
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 0x486833
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 0x486833
mov eax, dword [rbp + 0x90]
sub eax, 1
mov dword [rbp + 0x8c], eax
cmp dword [rbp + 0x8c], 0
jl 0x486832
mov eax, dword [0x00528488]
mov dword [rbp + 0x94], eax
lea rcx, [rbp + 0xa8]
mov edx, dword [rbp + 0x94]
call fcn.0040c220
lea rcx, [rbp + 0xa8]
call fcn.0040b320
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 0x48681e
lea rcx, [rbp + 0xa8]
mov edx, dword [rbp + 0x94]
call fcn.0040c220
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0xc8]
call fcn.00431860
lea rcx, [rbp + 0x80]
mov rdx, qword [rbp + 0x60]
mov r8, qword [rbp + 0xa8]
call fcn.0040c3d0
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x80]
movzx r8, byte [rbp + 0xd0]
call fcn.004865c0
test al, al
jne 0x48681e
xor rcx, rcx
mov rdx, qword [rbp + 0x68]
call fcn.004868b0
jmp 0x486873
sub dword [rbp + 0x8c], 1
cmp dword [rbp + 0x8c], 0xffffffff
jne 0x48674a
nop
nop
lea rcx, [rbp + 0xa8]
xor rdx, rdx
call fcn.0040c220
mov rcx, qword [rbp + 0xa0]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x486859
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0xc8]
call fcn.00486470
mov byte [rbp + 0x9f], al
nop
lea rcx, [rbp + 0x60]
call fcn.0040a9e0
lea rcx, [rbp + 0x80]
call fcn.0040a9e0
lea rcx, [rbp + 0xa8]
call fcn.0040a9e0
movzx rax, byte [rbp + 0x9f]
lea rsp, [rbp + 0xb0]
pop rbp
ret
Function at 0x486e30
Capabilities:
Check os version

Disassembly:
push rbp
sub rsp, 0x150
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov byte [rbp + 0x14f], 6
nop
mov dword [rbp + 0x30], 0x11c
lea rcx, [rbp + 0x30]
call sub.kernel32.dll_GetVersionExW
cmp dword [rbp + 0x40], 2
jne 0x486ed4
mov byte [rbp + 0x14f], 4
cmp dword [rbp + 0x34], 6
jb 0x486ea6
mov byte [rbp + 0x14f], 9
cmp byte [rbp + 0x14a], 1
jne 0x486e90
cmp dword [rbp + 0x38], 1
jb 0x486f1a
mov byte [rbp + 0x14f], 0xc
jmp 0x486f1a
mov byte [rbp + 0x14f], 0xa
cmp dword [rbp + 0x38], 1
jb 0x486f1a
mov byte [rbp + 0x14f], 0xb
jmp 0x486f1a
cmp dword [rbp + 0x34], 5
jb 0x486f1a
mov byte [rbp + 0x14f], 5
cmp dword [rbp + 0x38], 1
jb 0x486f1a
cmp byte [rbp + 0x14a], 1
jne 0x486ecb
mov byte [rbp + 0x14f], 6
jmp 0x486f1a
mov byte [rbp + 0x14f], 8
jmp 0x486f1a
cmp dword [rbp + 0x40], 1
jne 0x486f09
mov byte [rbp + 0x14f], 0
cmp dword [rbp + 0x34], 4
jne 0x486ef4
cmp dword [rbp + 0x38], 0xa
jne 0x486ef4
mov byte [rbp + 0x14f], 1
cmp dword [rbp + 0x34], 4
jne 0x486f1a
cmp dword [rbp + 0x38], 0x5a
jne 0x486f1a
mov byte [rbp + 0x14f], 2
jmp 0x486f1a
mov byte [rbp + 0x14f], 0
jmp 0x486f1a
movzx rax, byte [rbp + 0x14f]
lea rsp, [rbp + 0x150]
pop rbp
ret