joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d4b0
Capabilities:
Access peb ldr_data
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x4f5c1f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call fcn.00464470
push 0x1000
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
call fcn.00464590
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 4]
mov dword [esp + 4], eax
push ecx
push edx
call dword [sym.imp.kernel32.dll_GetComputerNameA]
test eax, eax
jne 0x45d530
push edi
mov edi, str.unknown
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x34]
push ecx
mov ecx, esi
call fcn.004da8ea
mov dword [esp + 8], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.004644e0
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x45d570
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x4f5c4f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x532934]
push esi
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
lea ecx, [esp + 8]
mov dword [esp + 0x18], 1
push ecx
push 0x100
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0x100
call fcn.004dacac
push eax
call dword [sym.imp.advapi32.dll_GetUserNameA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call fcn.004dacfb
mov esi, dword [esp + 0x20]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.004da5f1
mov dword [esp + 0xc], 1
lea ecx, [esp + 4]
mov byte [esp + 0x18], 0
call fcn.004da87c
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x45df60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f5d97
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x1c]
push esi
push 0x5279e8
lea ecx, [esp + 8]
push eax
push ecx
mov dword [esp + 0x14], 0
call fcn.0046a840
mov edx, dword [esp + 0x10]
push 0
push 0x528f14
lea eax, [esp + 0x34]
push edx
push eax
mov dword [esp + 0x30], 1
call fcn.0046a8d0
add esp, 0x1c
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], 2
call fcn.004d38e9
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.004da5f1
mov dword [esp + 8], 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], 1
call fcn.004da87c
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.004da87c
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x45e100
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f5e10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push edi
push 1
push 0x537368
lea ecx, [esp + 0x2c]
call fcn.004ba961
mov ebp, dword [esp + 0x40]
lea eax, [esp + 0x10]
push ebp
push eax
mov dword [esp + 0x40], 0
call fcn.0045dda0
lea ecx, [esp + 0x24]
push ebp
push ecx
mov byte [esp + 0x48], 1
call fcn.0045dee0
mov edx, dword [esp + 0x20]
push str.HKEY_CURRENT_USER
push edx
mov byte [esp + 0x50], 2
xor edi, edi
call fcn.004c2c45
add esp, 0x18
test eax, eax
jne 0x45e174
mov edi, 0x80000001
mov eax, dword [esp + 0x10]
push str.HKEY_LOCAL_MACHINE
push eax
call fcn.004c2c45
add esp, 8
test eax, eax
jne 0x45e18f
mov edi, 0x80000002
mov ecx, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x10]
mov dword [esp + 0x1c], ecx
push 0x52468c
push edx
lea ecx, [esp + 0x24]
call fcn.0046aa10
mov eax, dword [esp + 0xc]
mov bl, 3
mov byte [esp + 0x38], bl
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x45e277
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
push ecx
push eax
push edi
call dword [sym.imp.advapi32.dll_RegCreateKeyA]
push edi
mov esi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov edi, dword [esp + 0x18]
test esi, esi
je 0x45e236
push esi
call dword [sym.imp.kernel32.dll_SetLastError]
mov edx, dword [0x532934]
mov dword [esp + 0x44], edx
push ebp
lea eax, [esp + 0x48]
push str.Cannot_create_registry_key___s_
push eax
mov byte [esp + 0x48], 4
call fcn.004d383a
mov esi, dword [esp + 0x50]
add esp, 0xc
push 0
push 0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
call fcn.0045b7f0
add esp, 0x10
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], bl
call fcn.004da87c
push 0
lea ecx, [esp + 0x28]
push 0x52468c
push ecx
lea ecx, [esp + 0x28]
call fcn.0046aa10
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 5
call fcn.004da9b5
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], bl
call fcn.004da87c
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x45e1c2
pop esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 2
call fcn.004da87c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 1
call fcn.004da87c
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
call fcn.004da87c
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
call fcn.004ba99d
mov ecx, dword [esp + 0x30]
mov eax, edi
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x45e2d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f5e50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push edi
push 1
push 0x537368
lea ecx, [esp + 0x2c]
call fcn.004ba961
mov ebp, dword [esp + 0x40]
lea eax, [esp + 0x10]
push ebp
push eax
mov dword [esp + 0x40], 0
call fcn.0045dda0
lea ecx, [esp + 0x24]
push ebp
push ecx
mov byte [esp + 0x48], 1
call fcn.0045dee0
mov edx, dword [esp + 0x20]
push str.HKEY_CURRENT_USER
push edx
mov byte [esp + 0x50], 2
xor edi, edi
call fcn.004c2c45
add esp, 0x18
test eax, eax
jne 0x45e344
mov edi, 0x80000001
mov eax, dword [esp + 0x10]
push str.HKEY_LOCAL_MACHINE
push eax
call fcn.004c2c45
add esp, 8
test eax, eax
jne 0x45e35f
mov edi, 0x80000002
mov ecx, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x10]
mov dword [esp + 0x1c], ecx
push 0x52468c
push edx
lea ecx, [esp + 0x24]
call fcn.0046aa10
mov eax, dword [esp + 0xc]
mov bl, 3
mov byte [esp + 0x38], bl
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x45e447
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
push ecx
push eax
push edi
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
push edi
mov esi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov edi, dword [esp + 0x18]
test esi, esi
je 0x45e406
push esi
call dword [sym.imp.kernel32.dll_SetLastError]
mov edx, dword [0x532934]
mov dword [esp + 0x44], edx
push ebp
lea eax, [esp + 0x48]
push str.Cannot_open_registry_key___s_
push eax
mov byte [esp + 0x48], 4
call fcn.004d383a
mov esi, dword [esp + 0x50]
add esp, 0xc
push 0
push 0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
call fcn.0045b7f0
add esp, 0x10
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], bl
call fcn.004da87c
push 0
lea ecx, [esp + 0x28]
push 0x52468c
push ecx
lea ecx, [esp + 0x28]
call fcn.0046aa10
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 5
call fcn.004da9b5
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], bl
call fcn.004da87c
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x45e392
pop esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 2
call fcn.004da87c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 1
call fcn.004da87c
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
call fcn.004da87c
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
call fcn.004ba99d
mov ecx, dword [esp + 0x30]
mov eax, edi
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x45e4a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5e68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call fcn.0045e2d0
add esp, 4
mov edi, eax
lea eax, [ebp + 8]
push esi
push eax
call fcn.0045df60
add esp, 8
mov eax, dword [ebp + 8]
xor esi, esi
cmp dword [eax - 8], ebx
je 0x45e4f9
push ebx
push ebx
push ebx
push ebx
push eax
push edi
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov esi, eax
push edi
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp esi, ebx
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
je 0x45e522
call fcn.004da87c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004da87c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45e560
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4f5e88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
push edi
call fcn.0045e100
mov esi, eax
lea eax, [esp + 0x10]
push edi
push eax
call fcn.0045df60
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x24]
push 4
push ecx
push 4
push 0
push eax
push esi
call dword [sym.imp.advapi32.dll_RegSetValueExA]
lea ecx, [esp + 0xc]
mov ebx, eax
call fcn.004da87c
push esi
call dword [sym.imp.advapi32.dll_RegCloseKey]
test ebx, ebx
je 0x45e618
push ebx
call dword [sym.imp.kernel32.dll_SetLastError]
mov edx, dword [0x532934]
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x24]
push edi
push eax
lea ecx, [esp + 0x28]
push str.Unable_to_write_value___d__to_registry_key___s_
push ecx
mov dword [esp + 0x28], 0
call fcn.004d383a
mov esi, dword [esp + 0x30]
add esp, 0x10
push 0
push 0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
call fcn.0045b7f0
add esp, 0x10
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.004da87c
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x45e630
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4f5ea8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
push edi
push ebx
call fcn.0045e100
mov esi, eax
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.0045df60
mov ebp, dword [esp + 0x34]
mov edx, dword [eax]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
push ecx
push ebp
push 1
push eax
push edx
push esi
call dword [sym.imp.advapi32.dll_RegSetValueExA]
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.004da87c
push esi
call dword [sym.imp.advapi32.dll_RegCloseKey]
test edi, edi
je 0x45e6ee
push edi
call dword [sym.imp.kernel32.dll_SetLastError]
mov ecx, dword [0x532934]
mov dword [esp + 0x24], ecx
push ebx
push ebp
lea edx, [esp + 0x2c]
push str.Unable_to_write_value___s__to_registry_key___s_
push edx
mov dword [esp + 0x2c], 0
call fcn.004d383a
mov esi, dword [esp + 0x34]
add esp, 0x10
push 0
push 0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
call fcn.0045b7f0
add esp, 0x10
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004da87c
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x45e710
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4f5ec8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
push edi
call fcn.0045e100
mov esi, eax
lea eax, [esp + 0x14]
push edi
push eax
call fcn.0045df60
mov ebp, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov eax, dword [eax]
add esp, 0xc
push ebp
push ecx
push 3
push 0
push eax
push esi
call dword [sym.imp.advapi32.dll_RegSetValueExA]
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.004da87c
push esi
call dword [sym.imp.advapi32.dll_RegCloseKey]
test ebx, ebx
je 0x45e7c8
push ebx
call dword [sym.imp.kernel32.dll_SetLastError]
mov edx, dword [0x532934]
mov dword [esp + 0x24], edx
push edi
push ebp
lea eax, [esp + 0x2c]
push str.Unable_to_write_binary_data_of_length___d__to_registry_key___s_
push eax
mov dword [esp + 0x2c], 0
call fcn.004d383a
mov esi, dword [esp + 0x34]
add esp, 0x10
push 0
push 0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
call fcn.0045b7f0
add esp, 0x10
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004da87c
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x45e7e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f5ef6
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push esi
mov esi, dword [esp + 0x128]
push edi
push esi
call fcn.0045e4a0
add esp, 4
test eax, eax
jne 0x45e820
push esi
call fcn.0045e090
add esp, 4
jmp 0x45e953
push esi
mov dword [esp + 0x18], 0x100
mov dword [esp + 0x1c], 0
call fcn.0045e2d0
mov edi, eax
lea eax, [esp + 0x10]
push esi
push eax
call fcn.0045df60
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
push edx
push ecx
push 0
push eax
push edi
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
mov ebx, eax
call fcn.004da87c
push edi
call dword [sym.imp.advapi32.dll_RegCloseKey]
or edi, 0xffffffff
test ebx, ebx
jne 0x45e96b
cmp dword [esp + 0x14], 0x100
jae 0x45e8fa
mov eax, dword [esp + 0x18]
cmp eax, 4
jne 0x45e89a
mov eax, dword [esp + 0x1c]
jmp 0x45e953
cmp eax, 1
jne 0x45e8b1
lea edx, [esp + 0x1c]
push edx
call fcn.004c3552
add esp, 4
jmp 0x45e953
mov ecx, dword [0x532934]
mov dword [esp + 0xc], ecx
push esi
push eax
lea edx, [esp + 0x14]
push str.Unexpected_data_type__d_in_registry_key___s_
push edx
mov dword [esp + 0x134], 0
call fcn.004d383a
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0
push eax
call fcn.0045b7f0
add esp, 0x20
lea ecx, [esp + 0xc]
mov dword [esp + 0x124], edi
call fcn.004da87c
push ebx
call dword [sym.imp.kernel32.dll_SetLastError]
mov ecx, dword [0x532934]
mov dword [esp + 0x10], ecx
push esi
lea edx, [esp + 0x14]
push str.Cannot_read_from_registry_key___s_
push edx
mov dword [esp + 0x130], 1
call fcn.004d383a
mov esi, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
call fcn.0045b7f0
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x124], edi
call fcn.004da87c
xor eax, eax
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret
cmp ebx, 2
jne 0x45e8fa
push esi
call fcn.0045e090
add esp, 4
jmp 0x45e953
Function at 0x45e980
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f5f16
push eax
mov eax, 0x1010
mov dword fs:[0], esp
call fcn.004c2ff0
push ebx
push esi
mov esi, dword [esp + 0x102c]
push edi
push esi
mov dword [esp + 0x18], 0
call fcn.0045e4a0
add esp, 4
test eax, eax
jne 0x45e9d4
push esi
mov esi, dword [esp + 0x1030]
push esi
call fcn.0045e010
add esp, 8
jmp 0x45eb19
push esi
mov dword [esp + 0x1c], 0x1000
mov dword [esp + 0x18], 0
call fcn.0045e2d0
mov ebx, eax
lea eax, [esp + 0x10]
push esi
push eax
call fcn.0045df60
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
push edx
push ecx
push 0
push eax
push ebx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
mov edi, eax
call fcn.004da87c
push ebx
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp edi, 2
jne 0x45ea42
push esi
mov esi, dword [esp + 0x1030]
push esi
call fcn.0045e010
add esp, 8
jmp 0x45eb19
or ebx, 0xffffffff
test edi, edi
jne 0x45eaaf
cmp dword [esp + 0x18], 0x1000
ja 0x45eaaf
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x45ea66
lea edx, [esp + 0x1c]
push edx
jmp 0x45eb0b
mov ecx, dword [0x532934]
mov dword [esp + 0xc], ecx
push esi
push eax
lea edx, [esp + 0x14]
push str.Unexpected_data_type__d_in_registry_key___s_
push edx
mov dword [esp + 0x1034], 0
call fcn.004d383a
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0
push eax
call fcn.0045b7f0
add esp, 0x20
lea ecx, [esp + 0xc]
mov dword [esp + 0x1024], ebx
call fcn.004da87c
push edi
call dword [sym.imp.kernel32.dll_SetLastError]
mov ecx, dword [0x532934]
mov dword [esp + 0x10], ecx
push esi
lea edx, [esp + 0x14]
push str.Cannot_read_from_registry_key___s_
push edx
mov dword [esp + 0x1030], 1
call fcn.004d383a
mov esi, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
call fcn.0045b7f0
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x1024], ebx
call fcn.004da87c
push 0x536ec0
mov esi, dword [esp + 0x1030]
mov ecx, esi
call fcn.004da8ea
mov ecx, dword [esp + 0x101c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x101c
ret
Function at 0x45eb40
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4f5f28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push esi
push edi
push ebx
call fcn.0045e4a0
add esp, 4
test eax, eax
je 0x45eca7
mov esi, dword [esp + 0x24]
push ebp
push 0x1000
mov ecx, esi
call fcn.00464590
push ebx
mov dword [esp + 0x28], 0
call fcn.0045e2d0
mov edi, dword [esi + 4]
mov ebp, eax
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.0045df60
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push edi
push 0
push 0
push eax
push ebp
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.004da87c
mov eax, dword [esp + 0x24]
cmp edi, 0xea
je 0x45ebd2
cmp eax, 0x1000
jbe 0x45ec0a
push eax
mov ecx, esi
call fcn.00464590
mov edi, dword [esi + 4]
lea edx, [esp + 0x10]
push ebx
push edx
call fcn.0045df60
mov eax, dword [eax]
add esp, 8
lea ecx, [esp + 0x24]
push ecx
push edi
push 0
push 0
push eax
push ebp
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.004da87c
push ebp
call dword [sym.imp.advapi32.dll_RegCloseKey]
test edi, edi
pop ebp
jne 0x45ec2d
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
cmp edi, 2
jne 0x45ec49
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0
mov ecx, esi
call fcn.00464590
push edi
call dword [sym.imp.kernel32.dll_SetLastError]
mov edx, dword [0x532934]
mov dword [esp + 0x24], edx
push ebx
lea eax, [esp + 0x28]
push str.Cannot_read_from_registry_key___s_
push eax
mov dword [esp + 0x24], 0
call fcn.004d383a
mov esi, dword [esp + 0x30]
add esp, 0xc
push 0
push 0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
call fcn.0045b7f0
add esp, 0x10
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call fcn.004da87c
mov ecx, dword [esp + 0x10]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x45ecc0
Capabilities:
Delete registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f5f60
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
mov ebp, dword [esp + 0x1c]
push ebp
call fcn.0045e4a0
add esp, 4
test eax, eax
jne 0x45ecfa
pop ebp
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push esi
push edi
lea eax, [esp + 0x10]
push ebp
push eax
call fcn.0045df60
lea ecx, [esp + 0x14]
push ebp
push ecx
mov dword [esp + 0x2c], 0
call fcn.0045ddd0
mov edx, dword [esp + 0x1c]
mov byte [esp + 0x2c], 1
push edx
call fcn.0045e2d0
mov esi, eax
mov eax, dword [esp + 0x24]
add esp, 0x14
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x45ed6e
mov eax, dword [0x532934]
mov dword [esp + 0x24], eax
mov byte [esp + 0x1c], 2
call fcn.004e903c
mov eax, dword [eax + 4]
lea ecx, [esp + 0x24]
push ecx
push esi
mov ecx, eax
call fcn.004e9ab5
lea ecx, [esp + 0x24]
mov edi, eax
mov byte [esp + 0x1c], 1
call fcn.004da87c
jmp 0x45ed7f
push eax
push esi
call dword [sym.imp.advapi32.dll_RegDeleteValueA]
push esi
mov edi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
test edi, edi
je 0x45edd2
push edi
call dword [sym.imp.kernel32.dll_SetLastError]
mov edx, dword [0x532934]
mov dword [esp + 0x24], edx
push ebp
lea eax, [esp + 0x28]
push str.Cannot_delete_registry_key___s_
push eax
mov byte [esp + 0x28], 3
call fcn.004d383a
mov esi, dword [esp + 0x30]
add esp, 0xc
push 0
push 0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
call fcn.0045b7f0
add esp, 0x10
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 1
call fcn.004da87c
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call fcn.004da87c
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004da87c
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x45eed0
Capabilities:
Access peb ldr_data
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f5f95
push eax
mov eax, 0x102c
mov dword fs:[0], esp
call fcn.004c2ff0
mov eax, dword [0x532934]
push ebp
push esi
push edi
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x104c]
lea ecx, [esp + 0x10]
push ecx
push 0x11
push esi
mov dword [esp + 0x104c], 1
mov dword [esp + 0x1c], 0
call dword [sym.imp.shell32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esp + 0x10]
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.shell32.dll_SHBrowseForFolder]
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], 0x11
mov dword [esp + 0x30], 0x45eea0
mov dword [esp + 0x20], edx
call edi
mov esi, eax
test esi, esi
je 0x45efc8
mov ebp, dword [esp + 0x1050]
lea ecx, [esp + 0x38]
push ecx
push esi
call dword [sym.imp.shell32.dll_SHGetPathFromIDList]
test eax, eax
jne 0x45ef9e
push eax
push eax
push ebp
call fcn.004e0830
push esi
call fcn.0045f020
add esp, 4
lea edx, [esp + 0x18]
push edx
call edi
mov esi, eax
test esi, esi
jne 0x45ef6e
jmp 0x45efc8
push esi
call fcn.0045f020
add esp, 4
lea eax, [esp + 0x38]
lea ecx, [esp + 0xc]
push eax
call fcn.004daa05
push 0x52468c
push 0x52b0a0
lea ecx, [esp + 0x14]
call fcn.004d31cf
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0045f020
mov esi, dword [esp + 0x104c]
add esp, 4
lea edx, [esp + 0xc]
mov ecx, esi
push edx
call fcn.004da5f1
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x1040], 0
call fcn.004da87c
mov ecx, dword [esp + 0x1038]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1038
ret

Function at 0x45f2b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [sym.imp.kernel32.dll_SetLastError]
push 0
call esi
mov edx, dword [esp + 8]
test edx, edx
je 0x45f2fc
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x45f2fc
push edx
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x45f2ea
push 0
call esi
mov eax, 1
pop esi
ret
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 5
jne 0x45f2fc
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret