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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f230
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], esi
call fcn.004227e0
mov ecx, dword [0x5ba8bc]
cmp ecx, esi
je 0x44bb80
mov eax, dword [ebx + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x14]
push edx
push esi
push esi
push esi
push eax
push ecx
call edi
test eax, eax
jne 0x44bb91
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x44bb3f
push eax
call fcn.005380ca
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebx + 4], esi
cmp eax, esi
je 0x44bb80
inc eax
push eax
call fcn.005380a1
add esp, 4
cmp eax, esi
mov dword [ebx + 4], eax
je 0x44bb80
mov ecx, dword [ebx + 8]
lea edx, [ebp - 0x14]
push edx
push eax
mov eax, dword [0x5ba8bc]
push esi
push esi
push ecx
push eax
call edi
test eax, eax
je 0x44bb80
mov eax, dword [ebx + 4]
push eax
call fcn.005380ca
add esp, 4
mov dword [ebx + 4], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 8]
push str.ExceptionServers
push eax
call fcn.0051c942
add esp, 8
test eax, eax
jne 0x44bb80
mov edi, str..update.microsoft.com_download.windowsupdate.com_siteseal.thawte.com
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.005380a1
mov edx, eax
add esp, 4
cmp edx, esi
mov dword [ebx + 4], edx
je 0x44bb80
mov edi, str..update.microsoft.com_download.windowsupdate.com_siteseal.thawte.com
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 4]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [ebx + 8]
push edx
mov edx, dword [0x5ba8bc]
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44fed0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push 8
call fcn.005380a1
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x44ffda
mov eax, dword [esp + 0x1c]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44ff3c
lea ecx, [esp + 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44ff29
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x44ff35
mov eax, dword [esp + 0x10]
test eax, eax
ja 0x44ff35
test esi, esi
jne 0x44ff51
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.005380ca
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push esi
call fcn.005380a1
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp], edi
jne 0x44ff7f
push ebp
call fcn.005380ca
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
mov ecx, esi
xor eax, eax
mov edx, ecx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp]
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push ebx
mov dword [ebp + 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x44ffc8
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x44ffc8
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov edx, dword [ebp]
push edx
call fcn.005380ca
push ebp
call fcn.005380ca
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4

Function at 0x450390
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54f478
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x5b5ecc]
push esi
mov esi, ecx
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push ecx
push edx
lea eax, [esp + 0xc]
push str._d__URL_s
push eax
mov dword [esp + 0x20], 0
call fcn.0053091a
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add esp, 0x10
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
mov ecx, esi
call fcn.004502e0
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
call fcn.00537b04
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14

Function at 0x450d10
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
lea eax, [esp]
lea ecx, [esp + 8]
push eax
mov eax, dword [0x5ba8bc]
push ecx
push 0
push 0
push edx
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [esp + 8]
je 0x450d44
mov eax, dword [esp + 0xc]
pop ecx
ret
Function at 0x450d50
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x54f4f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x5ba8bc]
push esi
mov esi, dword [esp + 0x1c]
lea eax, [esp + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push 0
push 0
push 0
push esi
push ecx
mov dword [esp + 0x20], 0
call edi
test eax, eax
jne 0x450e0c
mov edx, dword [0x5b5ecc]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0x24]
call fcn.00537fab
mov edx, dword [0x5ba8bc]
lea ecx, [esp + 8]
push ecx
push eax
push 0
push 0
push esi
push edx
call edi
test eax, eax
jne 0x450dfb
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.00537879
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.00537b04
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.00537b04
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x450e19
mov eax, 0x5ba440
mov esi, dword [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00537b72
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4515a0
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f598
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov eax, dword [0x5b5ecc]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov ecx, dword [0x5ba8a4]
push str.temp.htm
push ecx
lea edx, [ebp - 0x14]
push 0x598a7c
push edx
mov byte [ebp - 4], 1
call fcn.0053091a
mov eax, dword [ebp - 0x14]
add esp, 0x10
push 0x59dd28
push eax
call fcn.0051dc3f
mov esi, eax
add esp, 8
test esi, esi
je 0x451623
push esi
push 0xd
push 1
push str._HTML__HTML_
call fcn.0051dad5
push esi
call fcn.0051da58
add esp, 0x14
mov edx, dword [ebp - 0x14]
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x118]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x118]
push ecx
push eax
push edx
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x20
jle 0x451674
lea edi, [ebp - 0x118]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x451674
mov edx, dword [ebp + 8]
push 1
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x118]
push eax
push ecx
push str.open
push edx
jmp 0x451687
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 1
push 0
push 0
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457f00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54fc1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x14]
xor edi, edi
push eax
push ecx
push edi
push 0xf003f
push edi
push 0x5ba440
push edi
push str.SoftwareDownloadManagerGetAllDlgLS
push 0x80000001
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x457f9b
lea ecx, [ebp - 0x120]
call fcn.00459300
push 1
push str.Cannot_open__create__registry_GetAllDlgLS_subkey._n
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 1
call fcn.004593e0
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 0
call fcn.004593d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
cmp edi, 6
jge 0x457fc1
mov edx, dword [esi + 0x41c]
push 0
push edi
push 0x101d
push edx
call ebx
mov dword [esi + edi*4 + 0x43c], eax
inc edi
jmp 0x457fa1
mov ecx, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esi + 0x43c]
push 4
push eax
push 4
push 0
push str.FileName
push ecx
call edi
mov eax, dword [ebp - 0x14]
lea edx, [esi + 0x440]
push 4
push edx
push 4
push 0
push str.FileType
push eax
call edi
mov edx, dword [ebp - 0x14]
lea ecx, [esi + 0x444]
push 4
push ecx
push 4
push 0
push str.Size
push edx
call edi
mov ecx, dword [ebp - 0x14]
lea eax, [esi + 0x448]
push 4
push eax
push 4
push 0
push 0x59a2ec
push ecx
call edi
mov eax, dword [ebp - 0x14]
lea edx, [esi + 0x44c]
push 4
push edx
push 4
push 0
push str.SaveTo
push eax
call edi
mov ecx, dword [ebp - 0x14]
add esi, 0x450
push 4
push esi
push 4
push 0
push 0x59dff4
push ecx
call edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45a650
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54ffc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x5b5ecc]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov ecx, dword [0x5ba8a4]
lea edx, [ebp - 0x14]
push ecx
push str._sGrabberProjects_
push edx
mov byte [ebp - 4], 1
call fcn.0053091a
mov eax, dword [ebp - 0x14]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45a7b7
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, 2
inc esi
lea ecx, [ebp - 0x14]
push esi
push 0x5c
call fcn.00537fd9
mov esi, eax
cmp esi, 0xffffffff
je 0x45a7b7
lea ecx, [ebp - 0x18]
push esi
push ecx
lea ecx, [ebp - 0x14]
call fcn.005304fa
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea ecx, [ebp - 0x18]
sete bl
call fcn.00537b04
test bl, bl
je 0x45a6bd
lea edx, [ebp - 0x1c]
push esi
push edx
lea ecx, [ebp - 0x14]
call fcn.005304fa
mov eax, dword [eax]
push 0
push eax
call edi
test eax, eax
lea ecx, [ebp - 0x1c]
sete bl
call fcn.00537b04
test bl, bl
je 0x45a6bd
mov al, byte [ebp + 8]
test al, al
je 0x45a793
mov eax, dword [0x5b5ecc]
mov dword [ebp + 8], eax
push 0
lea ecx, [ebp - 0x18]
push 0
push ecx
push 0x400
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [ebp - 0x18]
mov eax, dword [0x5bb3ac]
push edx
lea ecx, [ebp + 8]
push eax
push ecx
call fcn.0053091a
mov edx, dword [ebp - 0x18]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
push 0x30
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00537b04
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
mov eax, 0x7546
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
push edx
add eax, 8
push 0x597ddc
push eax
call fcn.0053091a
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
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 4
Function at 0x45ab30
Capabilities:
Delete file

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor eax, eax
push edi
mov edx, dword [esi + 0x14]
test edx, edx
jle 0x45aba2
mov ebx, dword [esi + 0x10]
mov ebp, dword [esp + 0x14]
mov ecx, ebx
mov edi, dword [ecx]
cmp dword [edi + 0x2c], ebp
je 0x45ab5e
inc eax
add ecx, 4
cmp eax, edx
jl 0x45ab48
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov dword [ebx + eax*4], 0
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
sub ecx, eax
dec ecx
lea ebx, [edx + eax*4]
je 0x45ab85
shl ecx, 2
lea edx, [edx + eax*4 + 4]
push ecx
push edx
push ebx
call fcn.0051d640
add esp, 0xc
mov edx, dword [esi + 0x14]
dec edx
mov dword [esi + 0x14], edx
mov eax, dword [edi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test edi, edi
je 0x45aba2
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x45abb0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x550008
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x5b5ecc]
mov dword [esp], eax
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + 8]
push edx
push eax
lea ecx, [esp + 8]
push str._sproject_ld.gsd
push ecx
mov dword [esp + 0x1c], 0
call fcn.0053091a
mov edx, dword [esp + 0x10]
add esp, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp]
mov dword [esp + 0xc], 0xffffffff
call fcn.00537b04
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x45be00
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x550256
push eax
mov dword fs:[0], esp
sub esp, 0x220
lea eax, [esp + 8]
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
push eax
xor edi, edi
push ecx
push edi
push 0xf003f
push edi
push 0x5ba440
push edi
push str.SoftwareDownloadManagerFoldersTree
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x45be97
lea ecx, [esp + 0x18]
call fcn.00459300
push 1
push str.Cannot_open__create__registry_key_during_CIDMFoldersTree::Save__._r_n
lea ecx, [esp + 0x20]
mov dword [esp + 0x238], edi
call fcn.004593e0
lea ecx, [esp + 0x18]
mov dword [esp + 0x230], 0xffffffff
call fcn.004593d0
pop edi
pop esi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
add esp, 0x22c
ret
mov eax, dword [esi + 8]
push ebp
xor ebp, ebp
cmp eax, edi
mov dword [esp + 0xc], edi
jle 0x45bfb9
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
mov eax, dword [edx + edi + 4]
lea edx, [esp + 0x14]
push edx
push 0
push 0xf003f
push 0
push 0x5ba440
push 0
push eax
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x45bf24
lea ecx, [esp + 0x128]
call fcn.00459300
push 1
push str.Cannot_open__create__registry_subkey_during_CIDMFoldersTree::Save__._r_n
lea ecx, [esp + 0x130]
mov dword [esp + 0x240], 1
call fcn.004593e0
lea ecx, [esp + 0x128]
mov dword [esp + 0x238], 0xffffffff
call fcn.004593d0
jmp 0x45bf9a
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x10]
add ecx, edi
push 4
push ecx
push 4
push 0
push 0x59e1dc
push edx
call ebx
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + edi + 0xc]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push str.mask
push edx
call ebx
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + edi + 8]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push str.path
push edx
call ebx
mov eax, dword [esi + 4]
lea edx, [esp + 0x1c]
xor ecx, ecx
push 4
mov cl, byte [eax + edi + 0x10]
mov eax, dword [esp + 0x14]
push edx
push 4
push 0
push str.rememberLastPath
push eax
mov dword [esp + 0x34], ecx
call ebx
mov eax, dword [esi + 8]
inc ebp
add edi, 0x14
cmp ebp, eax
jl 0x45beb0
mov eax, dword [esp + 0x10]
pop ebx
test eax, eax
je 0x45bfb9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
pop ebp
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x22c
ret
Function at 0x45c280
Capabilities:
Delete registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x550287
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0x1c]
push edi
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x5ba440
push 0
push str.SoftwareDownloadManagerFoldersTree
push 0x80000001
mov dword [esp + 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x45c310
lea ecx, [esp + 0x24]
call fcn.00459300
push 1
push str.Cannot_open__create__registry_key_during_CIDMFoldersTree::DeleteItem__._r_n
lea ecx, [esp + 0x2c]
mov dword [esp + 0x13c], 0
call fcn.004593e0
lea ecx, [esp + 0x24]
mov dword [esp + 0x134], 0xffffffff
call fcn.004593d0
jmp 0x45c41e
mov ecx, dword [esi + 8]
xor edi, edi
test ecx, ecx
jle 0x45c41e
mov edx, dword [esi + 4]
mov ebx, dword [esp + 0x13c]
mov eax, edx
cmp dword [eax], ebx
je 0x45c33a
inc edi
add eax, 0x14
cmp edi, ecx
jl 0x45c329
jmp 0x45c41e
test edi, edi
jl 0x45c41e
lea ebp, [edi + edi*4]
shl ebp, 2
mov eax, dword [edx + ebp + 4]
mov edx, dword [esp + 0x14]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebx, dword [esi + 8]
mov esi, dword [esi + 4]
sub ebx, edi
mov dword [esp + 0x1c], 0
dec ebx
add esi, ebp
mov dword [esp + 0x10], esi
lea ecx, [esi + 0xc]
mov dword [esp + 0x134], 2
call fcn.00537b04
lea ecx, [esi + 8]
mov byte [esp + 0x134], 1
call fcn.00537b04
lea ecx, [esi + 4]
mov dword [esp + 0x134], 0xffffffff
call fcn.00537b04
mov eax, dword [esp + 0x1c]
add esi, 0x14
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], eax
jne 0x45c36f
mov esi, dword [esp + 0x18]
test ebx, ebx
je 0x45c3e0
mov eax, dword [esi + 4]
lea edx, [ebx + ebx*4]
shl edx, 2
lea ecx, [edi + edi*4 + 5]
push edx
lea edx, [eax + ecx*4]
add eax, ebp
push edx
push eax
call fcn.0051d640
add esp, 0xc
mov eax, dword [esi + 8]
dec eax
mov dword [esi + 8], eax
jne 0x45c40c
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push 0x59e2e0
push ecx
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
call fcn.0045be00
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret 4
Function at 0x45c4b0
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5502ab
push eax
mov dword fs:[0], esp
sub esp, 0x114
lea eax, [esp + 8]
push esi
mov esi, dword [esp + 0x128]
mov dword [ecx + 0x18], esi
lea ecx, [esp + 4]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x5ba440
push 0
push str.SoftwareDownloadManagerFoldersTree
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x45c53e
lea ecx, [esp + 0x10]
call fcn.00459300
push 1
push str.Cannot_open__create__registry_key_during_CIDMFoldersTree::SetVisiblity__._r_n
lea ecx, [esp + 0x18]
mov dword [esp + 0x128], 0
call fcn.004593e0
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 0xffffffff
call fcn.004593d0
jmp 0x45c568
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push 4
push edx
push 4
push 0
push str.Visiblity
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x118]
pop esi
mov dword fs:[0], ecx
add esp, 0x120
ret 4

Function at 0x45c580
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5502cb
push eax
mov dword fs:[0], esp
sub esp, 0x118
lea eax, [esp + 0xc]
lea ecx, [esp]
push ebx
xor ebx, ebx
push eax
push ecx
push ebx
push 0xf003f
push ebx
push 0x5ba440
push ebx
push str.SoftwareDownloadManagerFoldersTree
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x45c615
lea ecx, [esp + 0x14]
call fcn.00459300
push 1
push str.Cannot_open__create__registry_key_during_CIDMFoldersTree::CheckQAU__._r_n
lea ecx, [esp + 0x1c]
mov dword [esp + 0x12c], ebx
call fcn.004593e0
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 0xffffffff
call fcn.004593d0
xor al, al
pop ebx
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
add esp, 0x124
ret
mov ecx, dword [esp + 4]
lea edx, [esp + 0xc]
lea eax, [esp + 8]
push edx
push eax
push ebx
push ebx
push str.QAUWA
push ecx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45c646
cmp dword [esp + 8], 0xa
jne 0x45c646
mov bl, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x11c]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret
Function at 0x45c670
Capabilities:
Delete registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5502eb
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov byte [ecx + 0x14], 0
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x5ba440
push 0
push str.SoftwareDownloadManagerFoldersTree
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x45c70a
lea ecx, [esp + 8]
call fcn.00459300
push 1
push str.Cannot_open__create__registry_key_during_CIDMFoldersTree::DeleteQAU__._r_n
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 0
call fcn.004593e0
lea ecx, [esp + 8]
mov dword [esp + 0x118], 0xffffffff
call fcn.004593d0
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
add esp, 0x11c
ret
mov edx, dword [esp]
push str.QAUWA
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
add esp, 0x11c
ret