joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449d70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d32c5
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x68a140]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [edi + 0x88]
cmp dword [ebx], eax
jl 0x449ed2
call fcn.0044a520
sub esp, 8
mov ecx, ebx
mov eax, esp
mov dword [eax], 0x62c050
mov dword [eax + 4], 2
lea eax, [ebp - 0x38]
push eax
call fcn.0044ee50
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea esi, [edi + 0x44]
movlpd qword [ebp - 0x1c], xmm0
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x60]
test eax, eax
je 0x449df4
lock inc dword [eax + 4]
mov eax, dword [edi + 0x5c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x60]
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
cmp dword [ebp - 0x24], 0xf
mov eax, dword [ebp - 0x3c]
cmova ecx, dword [ebp - 0x38]
mov dword [ebp - 0x20], 0
test eax, eax
je 0x449e2b
mov eax, dword [eax]
jmp 0x449e2e
or eax, 0xffffffff
push 0
lea edx, [ebp - 0x20]
push edx
push dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x449ef0
mov eax, dword [edi + 0x8c]
cmp dword [ebx], eax
jl 0x449e66
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x449e5c
mov eax, dword [eax]
jmp 0x449e5f
or eax, 0xffffffff
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x449ea2
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x449ea2
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x5f3508]
mov ecx, edi
call esi
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x449ea2
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5f3508]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x449ed2
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x449ec8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x449f0c
push ecx
push edx
call fcn.0059a0ba
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00599e5b
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00447a50
push 0x685e44
mov eax, ecx
push eax
call fcn.0059b61b
call fcn.005a55ef
int3
Function at 0x451b40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3f16
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x68a140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea eax, [esi + 0xc]
mov dword [ebp - 4], 0
push eax
mov dword [esi], vtable.asw::mi::ModuleDestructions.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 1
mov dword [esi + 0x24], 0
push 0x40
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.0059a103
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x28], eax
mov byte [ebp - 4], 2
push 0x40
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
call fcn.0059a103
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x30], eax
mov eax, esi
mov byte [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x453080
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
push esi
mov esi, ecx
push edi
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x453097
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4531bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4530e4
cmp dword [esi + 0x14], 7
jbe 0x4530bd
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4530d1
test al, 0x10
jne 0x4531bb
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x4530dc
xor eax, eax
nop dword [eax + eax]
mov edi, dword [esi + 0x14]
mov ecx, esi
cmp edi, 7
jbe 0x4530fc
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
inc eax
push 2
push 0x62c980
push eax
call fcn.00441e10
add esp, 0xc
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x453176
inc eax
mov dword [esp + 0x20], 0
cmp dword [esi + 0x10], eax
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
mov ecx, esi
cmovb eax, dword [esi + 0x10]
mov dword [esp + 0x24], 0
cmp edi, 7
jbe 0x453142
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00428be0
cmp dword [esp + 0x24], 7
lea eax, [esp + 0x10]
push 0
cmova eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0x10]
call fcn.00428f30
mov eax, dword [esp + 0xc]
jmp 0x4530f0
mov eax, esi
cmp edi, 7
jbe 0x45317f
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4531bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 7
mov edi, eax
jbe 0x45319c
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4531ac
test al, 0x10
jne 0x4531bb
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x455ba0
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 0x5d459f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x240
mov eax, dword [0x68a140]
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.00459960
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 0x455da4
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.00455390
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.00598520
cmp eax, esi
jne 0x455d64
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x455d54
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.00428be0
add dword [edi + 4], 0x18
jmp 0x455d64
lea ecx, [ebp - 0x238]
push ecx
push ecx
push eax
mov ecx, edi
call fcn.00458270
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 0x455cc0
xor eax, eax
cmp byte [ebp - 0x1c], al
cmove esi, eax
test esi, esi
je 0x455dc2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x455dc2
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.00599e5b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x456090
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d4640
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x68a140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 8]
sub ecx, dword [esi]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, 0x92492493
imul ecx
mov dword [ebp - 0x20], edi
add edx, ecx
mov ecx, dword [ebp + 8]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jbe 0x456107
cmp ecx, 0x9249249
ja 0x456277
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00457e40
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x2c], esi
test ecx, ecx
je 0x45625a
lea eax, [edi + 0x84]
add edi, 0x88
mov dword [ebp - 0x14], eax
push ecx
push dword [ebp + 0x10]
mov ecx, eax
call fcn.004570d0
cmp dword [edi + 0x14], 7
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, edi
mov dword [ebp - 0x1c], 0
jbe 0x456145
mov eax, dword [edi]
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
mov eax, dword [ebp - 0x30]
push esi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x45625c
push ecx
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
call fcn.004570d0
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x98]
lea esi, [edx + 0x98]
cmp dword [edx + 0x9c], 7
jbe 0x456199
mov ecx, dword [edx + 0x88]
lea eax, [ecx + eax*2]
mov ecx, dword [edi]
jmp 0x4561a1
add eax, 0x44
mov ecx, edi
lea eax, [edx + eax*2]
sub eax, ecx
sar eax, 1
push 0
lea eax, [ecx + eax*2]
push eax
push ecx
call fcn.00598520
mov ecx, dword [ebp - 0x20]
mov edx, eax
add ecx, 0x88
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x24], eax
cmp eax, 7
jbe 0x4561c9
mov ecx, dword [ecx]
mov eax, dword [esi]
lea eax, [ecx + eax*2]
cmp edx, eax
jne 0x456247
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x28]
mov esi, dword [eax + 4]
cmp esi, dword [eax + 8]
je 0x456238
cmp dword [ebp - 0x24], 7
mov edx, edi
jbe 0x4561f0
mov edx, dword [edi]
mov ecx, edx
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea eax, [ecx + 2]
mov dword [ebp - 0x24], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x456210
sub ecx, dword [ebp - 0x24]
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00428be0
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x18], eax
mov esi, dword [ebp - 0x28]
add dword [esi + 4], 0x1c
jmp 0x456247
lea ecx, [ebp - 0x38]
push ecx
push dword [ebp - 0x20]
mov ecx, eax
push esi
call fcn.004583f0
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
inc esi
mov dword [ebp - 0x2c], esi
cmp esi, dword [ebp + 8]
jb 0x456123
xor eax, eax
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.00599e5b
mov esp, ebp
pop ebp
ret
call fcn.0040ac70
int3
Function at 0x4567b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
mov eax, dword [0x68a140]
xor eax, esp
mov dword [esp + 0x21c], eax
push esi
push edi
push 0x200
mov edi, ecx
lea eax, [esp + 0x24]
push 0
mov dword [esp + 0x24], edi
mov esi, edx
push eax
mov dword [esp + 0x28], edi
call fcn.0059bcc0
add esp, 0xc
mov dword [esp + 0x1c], 0x200
lea eax, [esp + 0x1c]
mov dword [esp + 8], str.Cannot_query_kernel_mode_registry_key_path
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
push eax
push 0x200
lea eax, [esp + 0x28]
mov dword [esp + 0x1c], 0
push eax
push 3
push dword [esi]
call dword [sym.imp.ntdll.dll_NtQueryKey]
movups xmm0, xmmword [esp + 8]
sub esp, 0x10
mov ecx, eax
mov eax, esp
movups xmmword [eax], xmm0
call fcn.00455390
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x34]
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.00428be0
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00599e5b
mov esp, ebp
pop ebp
ret
Function at 0x456890
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 0x5d4798
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x278
mov eax, dword [0x68a140]
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 dword [ebp - 0x44], edx
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.00459960
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x288], eax
mov byte [ebp - 0x284], 0
mov byte [ebp - 0x5c], 0
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 2
call fcn.00456a20
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 1
call fcn.0043b4f0
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.004567b0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 7
push ecx
push dword [ebp - 0x30]
cmova eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0
call fcn.00456680
add esp, 0xc
mov byte [ebp - 4], 4
xor ecx, ecx
cmp byte [esi + 0x22c], 1
push dword [ebp - 0x20]
cmovne esi, ecx
mov dword [ebp - 0x58], str.Cannot_delete_registry_key
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
call dword [sym.imp.ntdll.dll_NtDeleteKey]
movups xmm0, xmmword [ebp - 0x58]
sub esp, 0x10
mov ecx, esp
movups xmmword [ecx], xmm0
mov ecx, eax
call fcn.00455390
mov eax, dword [ebp - 0x20]
add esp, 0x10
test eax, eax
je 0x4569a5
push eax
call dword [sym.imp.ntdll.dll_NtClose]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x20], 0
call fcn.00428f30
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 0x4569ec
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4569ec
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4569ec
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.00599e5b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x456a20
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 0x5d47dd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x28
mov eax, dword [0x68a140]
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.00459960
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.00455390
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 0x456ae3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x456ae3
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.00599e5b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x456b10
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 0x5d481d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x28
mov eax, dword [0x68a140]
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 dword [ebp - 0x28], edx
mov esi, ecx
push ecx
push 2
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x24], xmm0
call fcn.00459960
mov byte [ebp - 4], 1
xor ecx, ecx
cmp byte [esi + 0x22c], 1
mov eax, dword [ebx + 0xc]
cmovne esi, ecx
mov dword [ebp - 0x38], str.Cannot_delete_registry_value
mov ecx, dword [ebx + 8]
push ecx
push dword [ebp - 0x24]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
movups xmm0, xmmword [ebp - 0x38]
sub esp, 0x10
mov ecx, esp
movups xmmword [ecx], xmm0
mov ecx, eax
call fcn.00455390
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 0x456bf0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x456bf0
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x456bf0
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.00599e5b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x456c20
Capabilities:
Set 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 0x5d4868
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x258
mov eax, dword [0x68a140]
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 - 0x258], edx
mov edi, ecx
movsx eax, byte [edi + 0x22c]
xorps xmm0, xmm0
inc eax
movlpd qword [ebp - 0x1c], xmm0
sub eax, 0
je 0x456de2
sub eax, 1
je 0x456d31
mov eax, dword [edi]
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x250], eax
lea eax, [edi + 4]
push eax
call fcn.0043b7f0
mov eax, dword [edi + 0x228]
mov ecx, dword [edi + 0x224]
mov dword [ebp - 0x28], eax
or ecx, 6
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], ecx
lea edx, [ebp - 0x250]
lea ecx, [ebp - 0x254]
call fcn.00456370
mov byte [ebp - 0x18], 1
mov esi, dword [eax]
mov dword [eax], 0
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x1c], esi
test eax, eax
je 0x456cfa
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x456cfa
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x254], 0
cmp eax, 7
jbe 0x456d1b
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x48]
push eax
call fcn.0043b8e0
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
jmp 0x456d3a
mov esi, dword [edi]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x18], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x268], str.Cannot_write_key_value
push dword [ebx + 8]
mov byte [ebp - 4], 2
xor eax, eax
push dword [ebp - 0x258]
cmp byte [edi + 0x22c], 1
push dword [ebx + 0xc]
mov byte [ebp - 4], 1
cmove eax, edi
mov ecx, dword [ebx + 0x10]
push 0
push ecx
mov dword [ebp - 0x264], eax
mov eax, dword [ebx + 0x14]
push esi
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x25c], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movups xmm0, xmmword [ebp - 0x268]
sub esp, 0x10
mov ecx, esp
movups xmmword [ecx], xmm0
mov ecx, eax
call fcn.00455390
xor eax, eax
add esp, 0x10
cmp byte [ebp - 0x18], al
cmove esi, eax
test esi, esi
je 0x456dc4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x456dc4
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 - 0x14]
xor ecx, ebp
call fcn.00599e5b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push ecx
call fcn.00458db0
int3
Function at 0x456e50
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 0x5d48b8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x68a140]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
push 0x1000
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.0040ac80
mov eax, dword [ebp - 0x20]
push 0x1000
push 0
push eax
lea esi, [eax + 0x1000]
call fcn.0059bcc0
add esp, 0xc
mov dword [ebp - 0x1c], esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
call fcn.00409940
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
jmp 0x456f13
mov edx, dword [ebp - 0x20]
nop
mov edi, dword [ebp - 0x28]
mov ecx, dword [edi]
sub esi, edx
mov eax, dword [edi + 4]
mov dword [ebp - 0x24], esi
sub eax, ecx
lea esi, [ebp - 0x24]
sar eax, 4
push esi
push edx
push eax
push ecx
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryMultipleValuesW]
mov ecx, eax
cmp ecx, 0xea
jne 0x456f84
mov esi, dword [ebp - 0x1c]
mov ecx, esi
mov edx, dword [ebp - 0x20]
sub ecx, edx
mov edi, dword [ebp - 0x24]
cmp edi, ecx
jae 0x456f55
lea esi, [edx + edi]
mov dword [ebp - 0x1c], esi
jmp 0x456f10
jbe 0x456f10
mov eax, dword [ebp - 0x18]
sub eax, edx
cmp edi, eax
jbe 0x456f6f
push ecx
push edi
lea ecx, [ebp - 0x20]
call fcn.00440e80
mov esi, dword [ebp - 0x1c]
jmp 0x456f0b
sub edi, ecx
push edi
push 0
push esi
call fcn.0059bcc0
add esp, 0xc
add esi, edi
mov dword [ebp - 0x1c], esi
jmp 0x456f0b
sub esp, 0x10
mov dword [ebp - 0x3c], str.Cannot_query_multiple_values
mov eax, esp
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
movups xmm0, xmmword [ebp - 0x3c]
movups xmmword [eax], xmm0
call fcn.00455390
mov esi, dword [ebp - 0x2c]
add esp, 0x10
mov edx, dword [edi + 8]
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 8], edx
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x10], ecx
xor ecx, ecx
cmp byte [ebx + 0xc], cl
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 8]
cmove eax, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [esi + 0x14], edx
mov dword [ebx + 8], eax
test eax, eax
je 0x457026
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x457026
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
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.00599e5b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret