joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493120
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eeb80
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x545100]
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 0x4931be
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x4932ee
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x200
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push 0
push 0x525b04
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x493209
push dword [ebp - 0x220]
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.004560b0
jmp 0x4932e2
cmp edi, 0xea
jne 0x4932d8
mov ebx, dword [esi + 4]
mov ecx, ebx
mov edx, dword [esi]
sub ecx, edx
mov edi, dword [ebp - 0x220]
cmp edi, ecx
jae 0x49322d
lea eax, [edx + edi]
jmp 0x493254
jbe 0x493257
mov eax, dword [esi + 8]
sub eax, edx
cmp edi, eax
jbe 0x493243
push ecx
push edi
mov ecx, esi
call fcn.00425570
jmp 0x493257
sub edi, ecx
push edi
push 0
push ebx
call fcn.004a8c90
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 0x525b04
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, 0xea
je 0x493215
test edi, edi
jne 0x4932e2
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 0x4932a5
lea eax, [edx + ebx]
jmp 0x4932df
jbe 0x4932e2
mov eax, dword [esi + 8]
sub eax, edx
cmp ebx, eax
jbe 0x4932bb
push ecx
push ebx
mov ecx, esi
call fcn.00425570
jmp 0x4932e2
sub ebx, ecx
push ebx
push 0
push dword [ebp - 0x22c]
call fcn.004a8c90
mov eax, dword [ebp - 0x22c]
add esp, 0xc
add eax, ebx
jmp 0x4932df
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x4932e2
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 0x49330e
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x22c], eax
call fcn.00493eb0
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.004a5e3b
mov esp, ebp
pop ebp
ret
Function at 0x4936a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x545100]
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 0x49378e
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 0x493740
cmp word [esi], 0
je 0x493740
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 0x49373b
cmp edi, 5
jne 0x493730
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 0x49373b
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x493767
mov eax, dword [ebp - 0x14]
jmp 0x493748
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 0x49377b
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
call fcn.00493eb0
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5e3b
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.004a5e3b
mov esp, ebp
pop ebp
ret
Function at 0x493b80
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 0x4eec8d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x545100]
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 0x493bd3
lea esi, [ecx + 0x57]
jmp 0x493cf3
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 0x493bf0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.0040ab20
push 0x51f94c
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x493cd5
push 0x52ecec
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x493cd5
call fcn.00496ee0
test al, al
jne 0x493c6b
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 0x493c64
cmp dword [ebp - 0x18], 0
jne 0x493c6b
mov ecx, 0xf003f
jmp 0x493c82
lea ecx, [ebp - 0x30]
call fcn.004937b0
test al, al
mov ecx, 0xf013f
mov edx, 0xf023f
cmovne ecx, edx
cmp dword [ebp - 0x1c], 7
lea edx, [ebp - 0x34]
push edx
push ecx
lea eax, [ebp - 0x30]
cmova eax, dword [ebp - 0x30]
push 8
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x493cdd
push str.SymbolicLinkValue
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
jne 0x493cdd
push dword [ebp - 0x34]
mov ecx, edi
call dword [0x4f1320]
call edi
lea ecx, [ebp - 0x30]
test eax, eax
je 0x493ce0
mov esi, 5
jmp 0x493ce0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x30]
call fcn.0040a900
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x493cf3
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.004a5e3b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x493d20
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 0x4eeccd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x545100]
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 0x493d71
lea edi, [ecx + 0x57]
jmp 0x493e64
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 0x493d81
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x34]
call fcn.0040ab20
mov dword [ebp - 4], 0
call fcn.00496ee0
test al, al
jne 0x493dd3
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 0x493dcc
cmp dword [ebp - 0x18], 0
jne 0x493dd3
mov ecx, 0x20019
jmp 0x493dea
lea ecx, [ebp - 0x34]
call fcn.004937b0
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 0x493e3b
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 0x493e2f
xor esi, esi
jmp 0x493e3b
cmp dword [ebp - 0x1c], 6
jne 0x493e3b
mov eax, dword [ebp - 0x38]
mov byte [eax], 1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x493e49
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x493e5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea ecx, [ebp - 0x34]
call fcn.0040a900
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.004a5e3b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x494b30
Capabilities:
Query or enumerate registry key

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 0x4eee6f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x240
mov eax, dword [0x545100]
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 - 0x230], edx
mov edi, ecx
mov dword [ebp - 0x228], edi
push ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24c], edi
xorps xmm0, xmm0
push 8
mov dword [ebp - 0x22c], 0
mov ecx, edx
push eax
movlpd qword [ebp - 0x20], xmm0
call fcn.00496450
mov dword [ebp - 4], 1
xorps xmm0, xmm0
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 - 0x20]
lea eax, [ebp - 0x18]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x22c], 1
push eax
push 0
push esi
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x18], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, eax
cmp ecx, 0x103
je 0x494d34
lea eax, [ebp - 0x220]
mov dword [ebp - 0x248], str.Cannot_enumerate_subkeys
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], eax
nop word [eax + eax]
mov edx, dword [ebp - 0x230]
xor eax, eax
cmp byte [edx + 0x22c], 1
mov byte [ebp - 4], 1
cmove eax, edx
sub esp, 0x10
mov dword [ebp - 0x244], eax
mov eax, esp
movups xmm0, xmmword [ebp - 0x248]
movups xmmword [eax], xmm0
call fcn.004944e0
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x220]
add esp, 0x10
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x234], eax
lea esi, [esi + eax*2]
push 0
push esi
lea eax, [ebp - 0x220]
push eax
call fcn.004a4af0
cmp eax, esi
jne 0x494cf4
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x494ce4
push dword [ebp - 0x228]
lea ecx, [ebp - 0x220]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
push ecx
mov ecx, eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
call fcn.0040ab20
add dword [edi + 4], 0x18
jmp 0x494cf4
lea ecx, [ebp - 0x238]
push ecx
push ecx
push eax
mov ecx, edi
call fcn.00495c00
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x18]
mov esi, dword [ebp - 0x20]
inc eax
push 0
push 0
push 0
push 0
push ecx
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x224], eax
push ecx
push eax
push esi
mov dword [ebp - 0x18], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, eax
cmp ecx, 0x103
jne 0x494c50
xor eax, eax
cmp byte [ebp - 0x1c], al
cmove esi, eax
test esi, esi
je 0x494d52
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x494d52
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
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.004a5e3b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x495050
Capabilities:
Query or enumerate registry key

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
sub esp, 0x228
mov eax, dword [0x545100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x200
mov edi, ecx
lea eax, [ebp - 0x208]
push 0
mov dword [ebp - 0x20c], edi
mov esi, edx
push eax
mov dword [ebp - 0x20c], edi
call fcn.004a8c90
add esp, 0xc
mov dword [ebp - 0x20c], 0x200
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x220], str.Cannot_query_kernel_mode_registry_key_path
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
push eax
push 0x200
lea eax, [ebp - 0x208]
mov dword [ebp - 0x214], 0
push eax
push 3
push dword [esi]
call dword [sym.imp.ntdll.dll_NtQueryKey]
movups xmm0, xmmword [ebp - 0x220]
sub esp, 0x10
mov ecx, eax
mov eax, esp
movups xmmword [eax], xmm0
call fcn.004944e0
mov ecx, dword [ebp - 0x208]
lea eax, [ebp - 0x204]
add esp, 0x10
shr ecx, 1
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
push ecx
push eax
mov ecx, edi
mov dword [edi + 0x14], 0
call fcn.0040ab20
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004a5e3b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x495150
Capabilities:
Delete registry key

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 0x4eef58
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x270
mov eax, dword [0x545100]
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 esi, ecx
push ecx
push 0xb
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x28], xmm0
call fcn.00496450
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x280], eax
mov byte [ebp - 0x27c], 0
mov byte [ebp - 0x54], 0
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 2
call fcn.00495310
mov byte [ebp - 4], 1
movsx eax, byte [ebp - 0x54]
inc eax
sub eax, 0
je 0x495221
sub eax, 1
je 0x4951f2
lea ecx, [ebp - 0x78]
call fcn.0044a5a0
jmp 0x495221
cmp byte [ebp - 0x27c], 0
jne 0x495205
xor eax, eax
mov dword [ebp - 0x280], eax
jmp 0x49520b
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x495221
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x495221
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.00495050
mov byte [ebp - 4], 3
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 7
push dword [ebp - 0x30]
cmova eax, dword [ebp - 0x40]
push eax
push ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
call fcn.00494f30
add esp, 0xc
mov dword [ebp - 0x50], str.Cannot_delete_registry_key
mov byte [ebp - 4], 5
xor eax, eax
cmp byte [esi + 0x22c], 1
mov byte [ebp - 4], 4
push dword [ebp - 0x20]
cmove eax, esi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x44], 0
call dword [sym.imp.ntdll.dll_NtDeleteKey]
movups xmm0, xmmword [ebp - 0x50]
sub esp, 0x10
mov ecx, esp
movups xmmword [ecx], xmm0
mov ecx, eax
call fcn.004944e0
mov eax, dword [ebp - 0x20]
add esp, 0x10
test eax, eax
je 0x4952ab
push eax
call dword [sym.imp.ntdll.dll_NtClose]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x20], 0
call fcn.0040a900
mov eax, dword [ebp - 0x28]
xor ecx, ecx
cmp byte [ebp - 0x24], cl
cmove eax, ecx
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4952de
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4952de
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
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.004a5e3b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x495310
Capabilities:
Delete registry key

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 0x4eef9d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x28
mov eax, dword [0x545100]
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 esi, ecx
push ecx
push 0xb
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x24], xmm0
call fcn.00496450
mov byte [ebp - 4], 1
xor ecx, ecx
cmp byte [esi + 0x22c], 1
push ecx
push dword [ebp - 0x24]
cmovne esi, ecx
mov dword [ebp - 0x38], str.Cannot_delete_registry_key_tree
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
movups xmm0, xmmword [ebp - 0x38]
sub esp, 0x10
mov ecx, esp
movups xmmword [ecx], xmm0
mov ecx, eax
call fcn.004944e0
mov eax, dword [ebp - 0x24]
xor ecx, ecx
add esp, 0x10
cmp byte [ebp - 0x20], cl
cmove eax, ecx
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4953d3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4953d3
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
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.004a5e3b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x495400
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eefe8
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x545100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], edx
mov edi, ecx
movsx eax, byte [edi + 0x22c]
xorps xmm0, xmm0
inc eax
movlpd qword [ebp - 0x18], xmm0
sub eax, 0
je 0x495586
sub eax, 1
je 0x4954da
mov eax, dword [edi]
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x244], eax
lea eax, [edi + 4]
push eax
call fcn.0044a4b0
mov eax, dword [edi + 0x228]
mov ecx, dword [edi + 0x224]
mov dword [ebp - 0x1c], eax
or ecx, 6
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0x244]
lea ecx, [ebp - 0x248]
call fcn.00494d80
mov byte [ebp - 0x14], 1
mov esi, dword [eax]
mov dword [eax], 0
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x18], esi
test eax, eax
je 0x4954c6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4954c6
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x248], 0
call fcn.0044a5a0
jmp 0x4954e3
mov esi, dword [edi]
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x14], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x25c], str.Cannot_write_key_value
push 4
push dword [ebp - 0x24c]
mov byte [ebp - 4], 2
xor eax, eax
cmp byte [edi + 0x22c], 1
push 4
mov byte [ebp - 4], 1
cmove eax, edi
mov ecx, dword [ebp + 8]
push 0
push ecx
mov dword [ebp - 0x258], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x250], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movups xmm0, xmmword [ebp - 0x25c]
sub esp, 0x10
mov ecx, esp
movups xmmword [ecx], xmm0
mov ecx, eax
call fcn.004944e0
xor eax, eax
add esp, 0x10
cmp byte [ebp - 0x14], al
cmove esi, eax
test esi, esi
je 0x49556b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x49556b
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
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.004a5e3b
mov esp, ebp
pop ebp
ret
push ecx
call fcn.00495d80
int3
Function at 0x4955e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x545100]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [esp + 0x14], eax
mov esi, ecx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x1c], 0
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x24], 4
push eax
push 0
push ecx
push dword [edx]
mov dword [esp + 0x20], str.Cannot_query_registry_value
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movups xmm0, xmmword [esp + 8]
sub esp, 0x10
mov ecx, esp
movups xmmword [ecx], xmm0
mov ecx, eax
call fcn.004944e0
mov ecx, dword [esp + 0x30]
add esp, 0x10
mov dword [esi], ecx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x24]
pop esi
xor ecx, esp
call fcn.004a5e3b
mov esp, ebp
pop ebp
ret
Function at 0x4965e0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi
Get disk size
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [0x545100]
xor eax, ebp
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x1b4]
call fcn.00498ec0
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 8
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x1b4]
call fcn.00498f10
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 4
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x1b4]
call fcn.00498f10
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 4
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x1b4]
call fcn.00498f10
push 0x3c
lea eax, [ebp - 0x88]
mov dword [ebp - 0x8c], 0x40
push 0
push eax
call fcn.004a8c90
add esp, 0x10
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x4966a9
push 8
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x1b4]
call fcn.00498f10
push 8
lea edx, [ebp - 0x6c]
lea ecx, [ebp - 0x1b4]
call fcn.00498f10
add esp, 8
push 0
push 0
lea eax, [ebp - 0x44]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4966d0
push 8
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x1b4]
call fcn.00498f10
add esp, 4
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimes]
test eax, eax
je 0x496749
push 4
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x1b4]
call fcn.00498f10
push 4
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x1b4]
call fcn.00498f10
push 4
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x1b4]
call fcn.00498f10
push 4
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x1b4]
call fcn.00498f10
push 4
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x1b4]
call fcn.00498f10
push 4
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x1b4]
call fcn.00498f10
add esp, 0x18
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x49676a
push 8
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x1b4]
call fcn.00498f10
add esp, 4
rdtsc
mov dword [ebp - 0x10], edx
lea ecx, [ebp - 0x1b4]
push 8
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.00498f10
add esp, 4
lea eax, [ebp - 0x18]
push 0xf0000040
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4967da
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 8
push dword [ebp - 0x18]
movlpd qword [ebp - 0x14], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x4967cf
push 8
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x1b4]
call fcn.00498f10
add esp, 4
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x1b4]
call fcn.00498f70
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
xor ecx, ebp
call fcn.004a5e3b
mov esp, ebp
pop ebp
ret