joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484c80
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
mov bl, dl
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x484c90
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x484ce3
test al, 0x10
jne 0x484ce3
test bl, bl
je 0x484ce3
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x484cae
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x484cc1
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x484cde
add bl, 0xff
je 0x484c86
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x484c86
pop esi
mov al, 1
pop ebx
ret
pop esi
xor al, al
pop ebx
ret

Function at 0x484cf0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6525
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x10], 0
jne 0x484d29
xor al, al
jmp 0x484ddb
test dl, dl
jne 0x484d4a
cmp dword [edi + 0x14], 8
jb 0x484d35
mov edi, dword [edi]
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne al
jmp 0x484ddb
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push 3
push 0x504630
lea ecx, [ebp - 0x38]
movq qword [ebp - 0x1c], xmm0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.0040a4a0
push 0
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0
push 1
push eax
mov edx, edi
lea ecx, [ebp - 0x1c]
call fcn.00485310
add esp, 0xc
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.0040a590
mov esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 0x1c]
je 0x484dc4
mov ecx, esi
nop dword [eax]
add ecx, 0xffffffe8
xor dl, dl
add esi, 0xffffffe8
call fcn.00484cf0
mov ecx, esi
cmp esi, dword [ebp - 0x1c]
jne 0x484db0
xor dl, dl
mov ecx, edi
call fcn.00484cf0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1d], al
call fcn.0040c480
mov al, byte [ebp - 0x1d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
ret
Function at 0x4851e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e65d5
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
cmp dword [edi + 0x14], 8
mov al, byte [ebp + 0xc]
mov byte [ebp - 0x19], al
mov eax, edi
jb 0x48521f
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x48]
push eax
call fcn.00483950
add esp, 8
xor edx, edx
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.00483b10
lea ecx, [ebp - 0x48]
call fcn.0040a590
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x485250
mov ecx, dword [edi]
movzx eax, byte [ebp - 0x19]
push 0
push 0x80
inc eax
push eax
push 0
push 5
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
cmp esi, 0xffffffff
je 0x4852b6
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4852e2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0040a630
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push str.set_file_content__ls
push eax
lea ecx, [ebp - 0x30]
call fcn.00413560
push 0x518f50
lea eax, [ebp - 0x30]
push eax
call fcn.004a2f8b
push str.set_file_content
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.0048de90
push 0x518f50
lea eax, [ebp - 0x30]
push eax
call fcn.004a2f8b
int3
Function at 0x4858a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e671e
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x51c100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x34], edi
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov esi, dword [ebp + 8]
push 0x4fd344
movzx eax, si
push eax
mov dword [ebp - 4], 0
push 0x400000
mov dword [ebp - 0x18], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4859ce
push ebx
push 0x400000
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4859fe
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4859b3
push ebx
push 0x400000
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [edi]
mov ebx, eax
mov eax, dword [edi + 4]
mov ecx, eax
sub ecx, edx
mov dword [ebp - 0x10], eax
cmp ebx, ecx
jae 0x485972
lea eax, [edx + ebx]
jmp 0x4859a2
jbe 0x4859a5
mov eax, dword [edi + 8]
sub eax, edx
cmp ebx, eax
jbe 0x485988
push ecx
push ebx
mov ecx, edi
call fcn.00422ce0
jmp 0x4859a5
mov esi, ebx
sub esi, ecx
push esi
push 0
push dword [ebp - 0x10]
call fcn.004a3580
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, esi
mov esi, dword [ebp - 0x1c]
mov dword [edi + 4], eax
push ebx
push dword [ebp - 0x14]
push dword [edi]
call fcn.004a3000
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x4fd344
push ecx
push esi
test eax, 0xffff0000
je 0x485a20
push str.resource__d_of_type__s_was_not_found
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.00485c20
push 0x518f50
lea eax, [ebp - 0x30]
push eax
call fcn.004a2f8b
push str.resource_was_not_properly_loaded
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.0048de90
push 0x518f50
lea eax, [ebp - 0x30]
push eax
call fcn.004a2f8b
push str.resource__d_of_type__d_was_not_found
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.00485c20
push 0x518f50
lea eax, [ebp - 0x30]
push eax
call fcn.004a2f8b
int3

Function at 0x486150
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x2c
push esi
push dword [ebp + 0xc]
mov dword [esp + 0x14], 0x80000002
mov esi, ecx
push dword [ebp + 8]
mov dword [esp + 0x1c], str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov dl, 1
sub esp, 0x18
mov dword [esp + 0x38], 0x40
mov eax, esp
mov dword [esp + 0x3c], 0
movups xmm0, xmmword [esp + 0x30]
mov dword [esp + 0x28], esi
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov byte [eax + 0x14], 1
call fcn.004887f0
add esp, 0x20
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4861b0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6810
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x288
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov dword [ebp - 0x230], edi
mov esi, ecx
mov dword [ebp - 0x22c], esi
lea eax, [ebp - 0x228]
mov dword [ebp - 0x234], esi
push eax
push 0
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, eax
test ecx, ecx
jns 0x48639e
mov eax, edi
and eax, 0xffff00ff
cmp eax, 0x24
jne 0x48625f
push 0x104
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x48641d
cmp eax, 0x104
ja 0x486442
jmp 0x48639e
cmp eax, 0x25
jne 0x48628e
push 0x104
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x486465
cmp eax, 0x104
ja 0x48648a
jmp 0x48639e
cmp eax, 0x26
jne 0x4862a2
lea edx, [eax - 0x25]
mov ecx, esi
call fcn.004864c0
jmp 0x4863de
cmp eax, 0x2b
jne 0x4862b3
mov ecx, esi
call fcn.00486660
jmp 0x4863de
cmp eax, 0x23
jne 0x4862d9
sub esp, 8
mov ecx, esi
mov eax, esp
mov dword [eax], str.Common_AppData
mov dword [eax + 4], 0xe
call fcn.00486150
add esp, 8
jmp 0x4863de
cmp eax, 0x1a
jne 0x48632d
sub esp, 8
mov dword [ebp - 4], 0
mov eax, esp
mov ecx, esi
mov dword [eax], str.AppData
mov dword [eax + 4], 7
call fcn.00486150
add esp, 8
jmp 0x4863de
cmp eax, 0x1c
jne 0x4863fe
sub esp, 8
mov dword [ebp - 4], 2
mov eax, esp
mov ecx, esi
mov dword [eax], str.Local_AppData
mov dword [eax + 4], 0xd
call fcn.00486150
add esp, 8
jmp 0x4863de
xorps xmm0, xmm0
lea ecx, [ebp - 0x228]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
lea edx, [ecx + 2]
mov dword [esi + 0x14], 0
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4863c0
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0040a4a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push edi
push ecx
push ecx
lea ecx, [ebp - 0x29c]
call fcn.0043b5f0
push 0x518f50
lea eax, [ebp - 0x29c]
push eax
call fcn.004a2f8b
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x24c]
call fcn.0043b5f0
push 0x518f50
lea eax, [ebp - 0x24c]
push eax
call fcn.004a2f8b
push edi
push ecx
push 0xea
lea ecx, [ebp - 0x260]
call fcn.0043b5f0
push 0x518f50
lea eax, [ebp - 0x260]
push eax
call fcn.004a2f8b
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x274]
call fcn.0043b5f0
push 0x518f50
lea eax, [ebp - 0x274]
push eax
call fcn.004a2f8b
push edi
push ecx
push 0xea
lea ecx, [ebp - 0x288]
call fcn.0043b5f0
push 0x518f50
lea eax, [ebp - 0x288]
push eax
call fcn.004a2f8b
int3
Function at 0x4872d0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e69e0
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x218], ecx
test ecx, ecx
je 0x4873f0
test ebx, ebx
je 0x4873f0
cmp word [ebx], 0
je 0x4873f0
mov dword [ebp - 0x214], 0
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
mov eax, edi
mov dword [ebp - 4], 0
or eax, 8
push eax
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4873a7
push 0x100
lea eax, [ebp - 0x210]
push eax
push 0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4873a3
mov ecx, dword [ebp - 0x214]
lea edx, [ebp - 0x210]
push edi
call fcn.004872d0
add esp, 4
test al, al
je 0x48738c
xor esi, esi
jmp 0x487351
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x487351
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x4873d0
test esi, esi
je 0x4873b2
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x4873d0
push 0
push edi
push ebx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
sete bl
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x4873ec
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4873ec
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, bl
jmp 0x4873fa
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
ret
Function at 0x4874f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6a20
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x228]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], 0x80000002
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x21c], 0
mov dword [ebp - 0x214], eax
push eax
push 0x101
push 0
push str.SoftwareClassesCLSIDB7E6B353_129C_43BE_86A5_1041305A828CProductIDs
push 0x80000002
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x48758e
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x4876be
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x200
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push 0
push 0x4fd084
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x4875d9
push dword [ebp - 0x220]
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00444890
jmp 0x4876b2
cmp edi, 0xea
jne 0x4876a8
mov ebx, dword [esi + 4]
mov ecx, ebx
mov edx, dword [esi]
sub ecx, edx
mov edi, dword [ebp - 0x220]
cmp edi, ecx
jae 0x4875fd
lea eax, [edx + edi]
jmp 0x487624
jbe 0x487627
mov eax, dword [esi + 8]
sub eax, edx
cmp edi, eax
jbe 0x487613
push ecx
push edi
mov ecx, esi
call fcn.00422ce0
jmp 0x487627
sub edi, ecx
push edi
push 0
push ebx
call fcn.004a3580
add esp, 0xc
lea eax, [edi + ebx]
mov dword [esi + 4], eax
lea eax, [ebp - 0x220]
push eax
push dword [esi]
push dword [ebp - 0x22c]
push 0
push 0x4fd084
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, 0xea
je 0x4875e5
test edi, edi
jne 0x4876b2
mov eax, dword [esi + 4]
mov ecx, eax
mov edx, dword [esi]
sub ecx, edx
mov ebx, dword [ebp - 0x220]
mov dword [ebp - 0x22c], eax
cmp ebx, ecx
jae 0x487675
lea eax, [edx + ebx]
jmp 0x4876af
jbe 0x4876b2
mov eax, dword [esi + 8]
sub eax, edx
cmp ebx, eax
jbe 0x48768b
push ecx
push ebx
mov ecx, esi
call fcn.00422ce0
jmp 0x4876b2
sub ebx, ecx
push ebx
push 0
push dword [ebp - 0x22c]
call fcn.004a3580
mov eax, dword [ebp - 0x22c]
add esp, 0xc
add eax, ebx
jmp 0x4876af
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x4876b2
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete bl
cmp byte [ebp - 0x21c], 0
jne 0x4876de
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x22c], eax
call fcn.00488290
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
ret
Function at 0x487a70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x80000000
push esi
mov esi, edx
push edi
test ebx, ebx
je 0x487b5e
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 0x10], 0
mov dword [ebp - 8], eax
test esi, esi
je 0x487b10
cmp word [esi], 0
je 0x487b10
push 0
push eax
push 0
push 2
push 0
push 0
push 0
push esi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
je 0x487b0b
cmp edi, 5
jne 0x487b00
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 2
push 4
push 0
push 0
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x487b0b
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x487b37
mov eax, dword [ebp - 0x14]
jmp 0x487b18
mov eax, 0x80000000
mov dword [ebp - 0x14], eax
push 4
push ebx
push 4
push 0
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
sete bl
cmp byte [ebp - 0x10], 0
jne 0x487b4b
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
call fcn.00488290
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a057b
mov esp, ebp
pop ebp
ret
Function at 0x487f60
Capabilities:
Delete registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6b2d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x34], 0
test edx, edx
jne 0x487fb3
lea esi, [ecx + 0x57]
jmp 0x4880d3
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 0
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487fd0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.0040a4a0
push 0x503774
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4880b5
push 0x504190
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4880b5
call fcn.0048bb60
test al, al
jne 0x48804b
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x488044
cmp dword [ebp - 0x18], 0
jne 0x48804b
mov ecx, 0xf003f
jmp 0x488062
lea ecx, [ebp - 0x30]
call fcn.00487b80
test al, al
mov ecx, 0xf013f
mov edx, 0xf023f
cmovne ecx, edx
cmp dword [ebp - 0x1c], 8
lea edx, [ebp - 0x34]
push edx
push ecx
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push 8
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4880bd
push str.SymbolicLinkValue
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
jne 0x4880bd
push dword [ebp - 0x34]
mov ecx, edi
call dword [0x4e933c]
call edi
lea ecx, [ebp - 0x30]
test eax, eax
je 0x4880c0
mov esi, 5
jmp 0x4880c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x30]
call fcn.0040a590
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4880d3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x488100
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6b6d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], edx
mov esi, ecx
xor edi, edi
test esi, esi
jne 0x488151
lea edi, [ecx + 0x57]
jmp 0x488244
xorps xmm0, xmm0
mov dword [ebp - 0x24], edi
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x488161
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x34]
call fcn.0040a4a0
mov dword [ebp - 4], 0
call fcn.0048bb60
test al, al
jne 0x4881b3
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x4881ac
cmp dword [ebp - 0x18], 0
jne 0x4881b3
mov ecx, 0x20019
jmp 0x4881ca
lea ecx, [ebp - 0x34]
call fcn.00487b80
test al, al
mov ecx, 0x20119
mov edx, 0x20219
cmovne ecx, edx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push ecx
push 8
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x48821b
mov eax, dword [ebp - 0x38]
push esi
push esi
mov byte [eax], 0
lea eax, [ebp - 0x1c]
push eax
push esi
push str.SymbolicLinkValue
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x48820f
xor esi, esi
jmp 0x48821b
cmp dword [ebp - 0x1c], 6
jne 0x48821b
mov eax, dword [ebp - 0x38]
mov byte [eax], 1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x488229
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x48823c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea ecx, [ebp - 0x34]
call fcn.0040a590
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x488680
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6bb5
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
push 1
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp + 8]
call fcn.00489dd0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 4
push ecx
push 0
push dword [ebp + 0x20]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push str.Cannot_query_registry_value
mov ecx, eax
call fcn.00488490
xor ecx, ecx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x24]
add esp, 4
cmp byte [ebp - 0x20], cl
cmove eax, ecx
mov dword [ebp - 0x24], eax
test eax, eax
je 0x488720
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x488720
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x14]
cmp ecx, 4
jne 0x488777
movsx eax, byte [ebp + 0x1c]
inc eax
sub eax, 0
je 0x48875b
sub eax, 1
jne 0x48875b
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp byte [ebp + 0xc], cl
cmove eax, ecx
mov dword [ebp + 8], eax
test eax, eax
je 0x48875b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x48875b
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
ret
call fcn.00416370
push eax
push 4
lea ecx, [ebp - 0x40]
call fcn.00488410
push 0x519298
lea eax, [ebp - 0x40]
push eax
call fcn.004a2f8b
int3