joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f3f0
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b7798
push eax
mov eax, dword [0x67e570]
mov dword fs:[0], esp
push esi
push edi
test eax, eax
je 0x46f514
mov eax, dword [0x67e908]
test eax, eax
jne 0x46f43b
mov eax, dword [esp + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x67e8fc]
test eax, eax
jne 0x46f458
call fcn.0046e730
mov dword [0x67e8f8], eax
mov dword [0x67e8fc], 1
mov eax, dword [0x67e8f8]
test eax, eax
je 0x46f47f
mov ecx, dword [esp + 0x18]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.0046e7f0
add esp, 4
test eax, eax
jne 0x46f4d7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x46f4c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x46f4d7
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x46f4fa
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
push esi
call fcn.0046e680
add esp, 4
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov edi, dword [esp + 0x18]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x46f56c
mov eax, dword [0x656724]
test eax, eax
jne 0x46f56c
push edi
lea ecx, [esp + 0x1c]
call fcn.0059e000
mov edx, dword [esp + 0x18]
push 0x3f
push edx
call fcn.00581b50
add esp, 8
test eax, eax
jne 0x46f55b
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.0059df40
mov ecx, dword [esp + 8]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x46fbb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b7850
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 4]
mov dword [ebp - 4], 0
test eax, eax
je 0x46fbed
push eax
call fcn.0059a303
add esp, 4
mov ebx, dword [ebp + 8]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0059a2da
mov edx, eax
add esp, 4
test edx, edx
mov dword [esi + 4], edx
je 0x46fcaa
mov edi, ebx
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 edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
mov ecx, dword [ebp - 0x18]
push ebx
push 1
push eax
mov edx, dword [ecx + 8]
mov eax, dword [0x67e58c]
push edx
push eax
call esi
lea ecx, [ebp - 0x14]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0x67df58
push 0
push str.SoftwareDownloadManagerConfigTime
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x46fcaa
lea edx, [ebp + 8]
push edx
call fcn.00583273
mov ecx, dword [ebp - 0x14]
add esp, 4
lea eax, [ebp + 8]
push 4
push eax
push 4
push 0
push 0x67df58
push ecx
call esi
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46fe10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b7880
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.004341d0
mov ecx, dword [0x67e58c]
cmp ecx, esi
je 0x46feb0
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 0x46fec1
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x46fe6f
push eax
call fcn.0059a303
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebx + 4], esi
cmp eax, esi
je 0x46feb0
inc eax
push eax
call fcn.0059a2da
add esp, 4
cmp eax, esi
mov dword [ebx + 4], eax
je 0x46feb0
mov ecx, dword [ebx + 8]
lea edx, [ebp - 0x14]
push edx
push eax
mov eax, dword [0x67e58c]
push esi
push esi
push ecx
push eax
call edi
test eax, eax
je 0x46feb0
mov eax, dword [ebx + 4]
push eax
call fcn.0059a303
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.005831c4
add esp, 8
test eax, eax
jne 0x46feb0
mov edi, str..update.microsoft.com_download.windowsupdate.com_siteseal.thawte.com_ecom.cimetz.com_.voice2page.com
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0059a2da
mov edx, eax
add esp, 4
cmp edx, esi
mov dword [ebx + 4], edx
je 0x46feb0
mov edi, str..update.microsoft.com_download.windowsupdate.com_siteseal.thawte.com_ecom.cimetz.com_.voice2page.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 [0x67e58c]
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 0x47f890
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b85fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
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 0x67df58
push edi
push str.SoftwareDownloadManagerGetAllDlgLS
push reloc.WSOCK32.dll_accept
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x47f92b
lea ecx, [ebp - 0x228]
call fcn.00481cc0
push 1
push str.Cannot_open__create__registry_GetAllDlgLS_subkey._n
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.00481de0
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0
call fcn.00481dd0
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 0x47f951
mov edx, dword [esi + 0x42c]
push 0
push edi
push 0x101d
push edx
call ebx
mov dword [esi + edi*4 + 0x45c], eax
inc edi
jmp 0x47f931
mov ecx, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esi + 0x45c]
push 4
push eax
push 4
push 0
push str.FileName
push ecx
call edi
mov eax, dword [ebp - 0x14]
lea edx, [esi + 0x460]
push 4
push edx
push 4
push 0
push str.FileType
push eax
call edi
mov edx, dword [ebp - 0x14]
lea ecx, [esi + 0x464]
push 4
push ecx
push 4
push 0
push str.Size
push edx
call edi
mov ecx, dword [ebp - 0x14]
lea eax, [esi + 0x468]
push 4
push eax
push 4
push 0
push 0x656038
push ecx
call edi
mov eax, dword [ebp - 0x14]
lea edx, [esi + 0x46c]
push 4
push edx
push 4
push 0
push str.SaveTo
push eax
call edi
mov ecx, dword [ebp - 0x14]
add esi, 0x470
push 4
push esi
push 4
push 0
push 0x65a250
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 0x4837d0
Capabilities:
Delete file

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor eax, eax
push edi
mov edx, dword [esi + 0x1c]
test edx, edx
jle 0x483849
mov ebx, dword [esi + 0x18]
mov ebp, dword [esp + 0x14]
mov ecx, ebx
mov edi, dword [ecx]
cmp dword [edi + 0x2c], ebp
je 0x4837fe
inc eax
add ecx, 4
cmp eax, edx
jl 0x4837e8
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov dword [ebx + eax*4], 0
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
sub ecx, eax
dec ecx
lea ebx, [edx + eax*4]
je 0x483825
shl ecx, 2
lea edx, [edx + eax*4 + 4]
push ecx
push edx
push ebx
call fcn.00582b80
add esp, 0xc
mov edx, dword [esi + 0x1c]
dec edx
mov dword [esi + 0x1c], edx
mov eax, dword [edi + 0x30]
test eax, eax
jne 0x483836
lea eax, [edi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
je 0x483849
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x483850
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5b8b60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], ebx
mov word [esp + 0x10], bx
mov esi, dword [ecx + 8]
mov dword [esp + 0x84], ebx
cmp esi, ebx
jne 0x48388b
lea esi, [ecx + 0xc]
mov ecx, dword [esp + 0x8c]
lea eax, [esp + 0x3c]
push 0xa
push eax
push ecx
call fcn.00583192
mov edx, str._sproject_s.gsd
add esp, 0xc
test edx, edx
mov edi, eax
je 0x4839eb
cmp esi, ebx
je 0x4839eb
cmp edi, ebx
je 0x4839eb
push ebp
push ebx
push edx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ebx
mov word [esp + 0x40], bx
call fcn.004028e0
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x8c], 1
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov word [esp + 0x30], bx
call fcn.00401fc0
push edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 2
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov word [esp + 0x24], bx
call fcn.00401fc0
lea ecx, [esp + 0x10]
mov byte [esp + 0x88], 3
call fcn.00401070
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x1c]
call fcn.00401fb0
push eax
call fcn.00581b1a
add esp, 4
lea ecx, [esp + 0x28]
mov edi, eax
call fcn.00401fb0
push eax
call fcn.00581b1a
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.0059a2da
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x4839b8
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x1c]
call fcn.00401fb0
push eax
lea ecx, [esp + 0x2c]
call fcn.00401fb0
push eax
lea ecx, [esp + 0x3c]
call fcn.00401fb0
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.00581aaa
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00581b1a
add esp, 0x18
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 2
call fcn.00401070
lea ecx, [esp + 0x28]
mov byte [esp + 0x88], 1
call fcn.00401070
lea ecx, [esp + 0x34]
mov byte [esp + 0x88], bl
call fcn.00401070
pop ebp
mov eax, dword [esp + 0xc]
pop edi
pop esi
cmp eax, ebx
pop ebx
jne 0x4839fa
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp]
mov dword [esp + 0x78], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret 4
Function at 0x4843d0
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8ce0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x300
push ebx
push esi
mov dword [ebp - 0x18], ecx
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [ebp - 0xb4]
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xb4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xb4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x484481
cmp dword [ebp - 0xa4], 2
jne 0x484481
push str.shell32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x484481
push str.SHGetFolderPathA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x484476
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [ebp - 0x1b8]
push ecx
push ebx
push ebx
push 5
push ebx
call esi
test eax, eax
jne 0x484470
mov ebx, 1
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
jne 0x48449b
lea edx, [ebp - 0x1b8]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x48451f
lea eax, [ebp - 0x1b8]
push 0x65a43c
push eax
call fcn.00581c10
add esp, 8
test eax, eax
je 0x48451f
add eax, 2
lea ecx, [ebp - 0x208]
push 0x50
lea edx, [ebp - 0x20]
mov byte [eax], 0
push ecx
lea eax, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x14]
push eax
push ecx
lea edx, [ebp - 0x30c]
push 0x104
lea eax, [ebp - 0x1b8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x48451f
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push ecx
add edx, 4
push 0x65a438
push edx
call fcn.00596d08
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4859b0
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b8e96
push eax
mov dword fs:[0], esp
sub esp, 0x438
lea eax, [esp + 0x14]
push ebx
push esi
mov esi, ecx
push eax
lea ecx, [esp + 0x14]
xor ebx, ebx
push ecx
push ebx
push 0xf003f
push ebx
push 0x67df58
push ebx
push str.SoftwareDownloadManagerFoldersTree
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x485a47
lea ecx, [esp + 0x20]
call fcn.00481cc0
push 1
push str.Cannot_open__create__registry_key_during_CIDMFoldersTree::Save__._r_n
lea ecx, [esp + 0x28]
mov dword [esp + 0x450], ebx
call fcn.00481de0
lea ecx, [esp + 0x20]
mov dword [esp + 0x448], 0xffffffff
call fcn.00481dd0
pop esi
pop ebx
mov ecx, dword [esp + 0x438]
mov dword fs:[0], ecx
add esp, 0x444
ret
mov eax, dword [esi + 8]
mov dword [esp + 8], ebx
cmp eax, ebx
mov dword [esp + 0xc], ebx
jle 0x485bae
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
mov edx, dword [esi + 4]
or ecx, 0xffffffff
add edx, ebx
mov edi, dword [edx + 8]
lea eax, [edx + 8]
mov dword [esp + 0x1c], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x485a8a
mov ecx, dword [esp + 0x1c]
add edx, 4
push edx
call fcn.0059e079
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x10]
push ecx
mov eax, dword [eax + ebx + 8]
push edx
push 0
push 0xf003f
push 0
push 0x67df58
push 0
push eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x485b01
lea ecx, [esp + 0x238]
call fcn.00481cc0
push 1
push str.Cannot_open__create__registry_subkey_during_CIDMFoldersTree::Save__._r_n
lea ecx, [esp + 0x240]
mov dword [esp + 0x458], 1
call fcn.00481de0
lea ecx, [esp + 0x238]
mov dword [esp + 0x450], 0xffffffff
call fcn.00481dd0
jmp 0x485b86
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x10]
add ecx, ebx
push 4
push ecx
push 4
push 0
push 0x65a4e0
push edx
call ebp
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + ebx + 0xc]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push str.mask
push edx
call ebp
mov eax, dword [esi + 4]
lea edi, [eax + ebx]
mov eax, dword [eax + ebx + 0x10]
push eax
call fcn.00581b1a
mov edx, dword [edi + 0x10]
add esp, 4
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
push str.pathW
push eax
call ebp
mov ecx, dword [esi + 4]
lea eax, [esp + 0x20]
xor edx, edx
push 4
mov dl, byte [ecx + ebx + 0x14]
mov ecx, dword [esp + 0x14]
push eax
push 4
push 0
push str.rememberLastPath
push ecx
mov dword [esp + 0x38], edx
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 8]
inc eax
add ebx, 0x18
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x485a62
mov eax, dword [esp + 0x10]
pop edi
test eax, eax
pop ebp
je 0x485bae
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x440]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x444
ret
Function at 0x485efc
Capabilities:
Delete registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5b8ee7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push esi
mov esi, ecx
lea eax, [esp + 0x18]
push edi
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x67df58
push 0
push str.SoftwareDownloadManagerFoldersTree
push reloc.WSOCK32.dll_accept
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x485f6f
lea ecx, [esp + 0x20]
call fcn.00481cc0
push 1
push str.Cannot_open__create__registry_key_during_CIDMFoldersTree::DeleteItem__._r_n
lea ecx, [esp + 0x28]
mov dword [esp + 0x240], 0
call fcn.00481de0
lea ecx, [esp + 0x20]
mov dword [esp + 0x238], 0xffffffff
call fcn.00481dd0
jmp 0x4860b0
mov ecx, dword [esi + 8]
xor ebx, ebx
test ecx, ecx
jle 0x4860b0
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x240]
cmp dword [eax], edx
je 0x485f97
inc ebx
add eax, 0x18
cmp ebx, ecx
jl 0x485f86
jmp 0x4860b0
test ebx, ebx
jl 0x4860b0
mov edx, dword [esi + 4]
push ebp
lea ebp, [ebx + ebx*2]
or ecx, 0xffffffff
shl ebp, 3
xor eax, eax
mov edi, dword [edx + ebp + 8]
lea edx, [edx + ebp + 8]
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x485fcc
mov eax, dword [esi + 4]
mov ecx, edx
lea eax, [eax + ebp + 4]
push eax
call fcn.0059e079
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + ebp + 8]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, dword [esi + 8]
mov esi, dword [esi + 4]
sub edi, ebx
mov dword [esp + 0x1c], 0
dec edi
add esi, ebp
mov dword [esp + 0x10], esi
mov eax, dword [esi + 0x10]
mov dword [esp + 0x23c], 2
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esi + 0xc]
call fcn.0059df40
lea ecx, [esi + 8]
mov byte [esp + 0x23c], 1
call fcn.0059df40
lea ecx, [esi + 4]
mov dword [esp + 0x23c], 0xffffffff
call fcn.0059df40
mov eax, dword [esp + 0x1c]
add esi, 0x18
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], eax
jne 0x485ff6
mov esi, dword [esp + 0x18]
test edi, edi
je 0x486071
mov eax, dword [esi + 4]
lea edx, [edi + edi*2]
shl edx, 3
lea ecx, [ebx + ebx*2 + 3]
push edx
lea edx, [eax + ecx*8]
add eax, ebp
push edx
push eax
call fcn.00582b80
add esp, 0xc
mov eax, dword [esi + 8]
pop ebp
dec eax
mov dword [esi + 8], eax
jne 0x48609e
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push 0x65a5f8
push ecx
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
call fcn.004859b0
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret 4
Function at 0x486140
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b8f0b
push eax
mov dword fs:[0], esp
sub esp, 0x21c
lea eax, [esp + 8]
push esi
mov esi, dword [esp + 0x230]
mov dword [ecx + 0x18], esi
lea ecx, [esp + 4]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x67df58
push 0
push str.SoftwareDownloadManagerFoldersTree
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4861ce
lea ecx, [esp + 0x10]
call fcn.00481cc0
push 1
push str.Cannot_open__create__registry_key_during_CIDMFoldersTree::SetVisiblity__._r_n
lea ecx, [esp + 0x18]
mov dword [esp + 0x230], 0
call fcn.00481de0
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0xffffffff
call fcn.00481dd0
jmp 0x4861f8
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 + 0x220]
pop esi
mov dword fs:[0], ecx
add esp, 0x228
ret 4

Function at 0x486210
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b8f2b
push eax
mov dword fs:[0], esp
sub esp, 0x220
lea eax, [esp + 0xc]
lea ecx, [esp]
push ebx
xor ebx, ebx
push eax
push ecx
push ebx
push 0xf003f
push ebx
push 0x67df58
push ebx
push str.SoftwareDownloadManagerFoldersTree
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4862a5
lea ecx, [esp + 0x14]
call fcn.00481cc0
push 1
push str.Cannot_open__create__registry_key_during_CIDMFoldersTree::CheckQAU__._r_n
lea ecx, [esp + 0x1c]
mov dword [esp + 0x234], ebx
call fcn.00481de0
lea ecx, [esp + 0x14]
mov dword [esp + 0x22c], 0xffffffff
call fcn.00481dd0
xor al, al
pop ebx
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
add esp, 0x22c
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 0x4862d6
cmp dword [esp + 8], 0xa
jne 0x4862d6
mov bl, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x224]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x22c
ret
Function at 0x486300
Capabilities:
Delete registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b8f4b
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov byte [ecx + 0x14], 0
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x67df58
push 0
push str.SoftwareDownloadManagerFoldersTree
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x48639a
lea ecx, [esp + 8]
call fcn.00481cc0
push 1
push str.Cannot_open__create__registry_key_during_CIDMFoldersTree::DeleteQAU__._r_n
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0
call fcn.00481de0
lea ecx, [esp + 8]
mov dword [esp + 0x220], 0xffffffff
call fcn.00481dd0
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
add esp, 0x224
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 + 0x218]
mov dword fs:[0], ecx
add esp, 0x224
ret