joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455dd0
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 0x5d2cff
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x240
mov eax, dword [0x689140]
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.00459b90
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 0x455fd4
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.004555c0
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.00596cd0
cmp eax, esi
jne 0x455f94
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x455f84
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.00428c10
add dword [edi + 4], 0x18
jmp 0x455f94
lea ecx, [ebp - 0x238]
push ecx
push ecx
push eax
mov ecx, edi
call fcn.004584a0
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 0x455ef0
xor eax, eax
cmp byte [ebp - 0x1c], al
cmove esi, eax
test esi, esi
je 0x455ff2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x455ff2
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.0059860b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4562c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d2da0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x689140]
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 0x456337
cmp ecx, 0x9249249
ja 0x4564a7
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00458070
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x2c], esi
test ecx, ecx
je 0x45648a
lea eax, [edi + 0x84]
add edi, 0x88
mov dword [ebp - 0x14], eax
push ecx
push dword [ebp + 0x10]
mov ecx, eax
call fcn.00457300
cmp dword [edi + 0x14], 7
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, edi
mov dword [ebp - 0x1c], 0
jbe 0x456375
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 0x45648c
push ecx
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
call fcn.00457300
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x98]
lea esi, [edx + 0x98]
cmp dword [edx + 0x9c], 7
jbe 0x4563c9
mov ecx, dword [edx + 0x88]
lea eax, [ecx + eax*2]
mov ecx, dword [edi]
jmp 0x4563d1
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.00596cd0
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 0x4563f9
mov ecx, dword [ecx]
mov eax, dword [esi]
lea eax, [ecx + eax*2]
cmp edx, eax
jne 0x456477
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 0x456468
cmp dword [ebp - 0x24], 7
mov edx, edi
jbe 0x456420
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 0x456440
sub ecx, dword [ebp - 0x24]
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00428c10
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x18], eax
mov esi, dword [ebp - 0x28]
add dword [esi + 4], 0x1c
jmp 0x456477
lea ecx, [ebp - 0x38]
push ecx
push dword [ebp - 0x20]
mov ecx, eax
push esi
call fcn.00458620
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
inc esi
mov dword [ebp - 0x2c], esi
cmp esi, dword [ebp + 8]
jb 0x456353
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.0059860b
mov esp, ebp
pop ebp
ret
call fcn.0040acb0
int3
Function at 0x4569e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
mov eax, dword [0x689140]
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.0059a470
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.004555c0
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.00428c10
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0059860b
mov esp, ebp
pop ebp
ret
Function at 0x456ac0
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 0x5d2ef8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x278
mov eax, dword [0x689140]
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.00459b90
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.00456c50
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 1
call fcn.0043b3f0
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.004569e0
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.004568b0
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.004555c0
mov eax, dword [ebp - 0x20]
add esp, 0x10
test eax, eax
je 0x456bd5
push eax
call dword [sym.imp.ntdll.dll_NtClose]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x20], 0
call fcn.00428f60
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 0x456c1c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x456c1c
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x456c1c
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.0059860b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x456c50
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 0x5d2f3d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x28
mov eax, dword [0x689140]
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.00459b90
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.004555c0
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 0x456d13
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x456d13
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.0059860b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x456d40
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 0x5d2f7d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x28
mov eax, dword [0x689140]
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.00459b90
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.004555c0
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 0x456e20
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x456e20
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x456e20
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.0059860b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x456e50
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 0x5d2fc8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x258
mov eax, dword [0x689140]
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 0x457012
sub eax, 1
je 0x456f61
mov eax, dword [edi]
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x250], eax
lea eax, [edi + 4]
push eax
call fcn.0043b6f0
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.004565a0
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 0x456f2a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x456f2a
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x254], 0
cmp eax, 7
jbe 0x456f4b
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x48]
push eax
call fcn.0043b7e0
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
jmp 0x456f6a
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.004555c0
xor eax, eax
add esp, 0x10
cmp byte [ebp - 0x18], al
cmove esi, eax
test esi, esi
je 0x456ff4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x456ff4
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.0059860b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push ecx
call fcn.00458fe0
int3
Function at 0x457080
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 0x5d3018
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x689140]
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.0040acc0
mov eax, dword [ebp - 0x20]
push 0x1000
push 0
push eax
lea esi, [eax + 0x1000]
call fcn.0059a470
add esp, 0xc
mov dword [ebp - 0x1c], esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
call fcn.00409980
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
jmp 0x457143
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 0x4571b4
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 0x457185
lea esi, [edx + edi]
mov dword [ebp - 0x1c], esi
jmp 0x457140
jbe 0x457140
mov eax, dword [ebp - 0x18]
sub eax, edx
cmp edi, eax
jbe 0x45719f
push ecx
push edi
lea ecx, [ebp - 0x20]
call fcn.00440e60
mov esi, dword [ebp - 0x1c]
jmp 0x45713b
sub edi, ecx
push edi
push 0
push esi
call fcn.0059a470
add esp, 0xc
add esi, edi
mov dword [ebp - 0x1c], esi
jmp 0x45713b
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.004555c0
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 0x457256
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x457256
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.0059860b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x457410
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x689140]
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.004555c0
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.0059860b
mov esp, ebp
pop ebp
ret

Function at 0x4574b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x689140]
xor eax, esp
mov dword [esp + 0x28], 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], 8
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, eax
mov eax, esp
movups xmmword [eax], xmm0
call fcn.004555c0
mov ecx, dword [esp + 0x30]
add esp, 0x10
mov edx, dword [esp + 0x24]
mov eax, esi
mov dword [esi], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esi + 4], edx
pop esi
xor ecx, esp
call fcn.0059860b
mov esp, ebp
pop ebp
ret
Function at 0x459d50
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 [0x689140]
xor eax, ebp
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x1b4]
call fcn.0045c5c0
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.0045c610
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.0045c610
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.0045c610
push 0x3c
lea eax, [ebp - 0x88]
mov dword [ebp - 0x8c], 0x40
push 0
push eax
call fcn.0059a470
add esp, 0x10
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x459e19
push 8
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x1b4]
call fcn.0045c610
push 8
lea edx, [ebp - 0x6c]
lea ecx, [ebp - 0x1b4]
call fcn.0045c610
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 0x459e40
push 8
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x1b4]
call fcn.0045c610
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 0x459eb9
push 4
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x1b4]
call fcn.0045c610
push 4
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x1b4]
call fcn.0045c610
push 4
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x1b4]
call fcn.0045c610
push 4
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x1b4]
call fcn.0045c610
push 4
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x1b4]
call fcn.0045c610
push 4
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x1b4]
call fcn.0045c610
add esp, 0x18
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x459eda
push 8
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x1b4]
call fcn.0045c610
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.0045c610
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 0x459f4a
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 0x459f3f
push 8
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x1b4]
call fcn.0045c610
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.0045c670
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
xor ecx, ebp
call fcn.0059860b
mov esp, ebp
pop ebp
ret