joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b220
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push 8
call fcn.00582ecc
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x46b368
mov eax, dword [0x63a28c]
test eax, eax
je 0x46b262
mov eax, dword [esp + 0x1c]
push 0
push 0
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
jmp 0x46b295
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x20]
call fcn.00586bf3
mov edx, dword [esp + 0x1c]
push 0
push 0
push 3
push 0
push 1
push closesocket
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x1c]
mov ebx, eax
call fcn.00586b33
cmp ebx, 0xffffffff
je 0x46b2ca
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46b2b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46b2c3
mov eax, dword [esp + 0x10]
test eax, eax
ja 0x46b2c3
test esi, esi
jne 0x46b2df
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.00582ef5
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push esi
call fcn.00582ecc
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp], edi
jne 0x46b30d
push ebp
call fcn.00582ef5
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 0x46b356
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x46b356
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov edx, dword [ebp]
push edx
call fcn.00582ef5
push ebp
call fcn.00582ef5
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4

Function at 0x46b720
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59fc08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x65ca8c]
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.0057f8fb
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.0046b670
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
call fcn.00586b33
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
Function at 0x46c180
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 [0x6614e8]
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 0x46c1b4
mov eax, dword [esp + 0xc]
pop ecx
ret

Function at 0x46c1c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x59fcc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x6614e8]
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 0x46c27c
mov edx, dword [0x65ca8c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0x24]
call fcn.00586f74
mov edx, dword [0x6614e8]
lea ecx, [esp + 8]
push ecx
push eax
push 0
push 0
push esi
push edx
call edi
test eax, eax
jne 0x46c26b
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.005868a8
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.00586b33
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.00586b33
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x46c289
mov eax, 0x660ff8
mov esi, dword [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00586ba1
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x46ca20
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59fd68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov eax, dword [0x65ca8c]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov ecx, dword [0x6614c8]
push str.temp.htm
push ecx
lea edx, [ebp - 0x14]
push 0x637020
push edx
mov byte [ebp - 4], 1
call fcn.0057f8fb
mov eax, dword [ebp - 0x14]
add esp, 0x10
push 0x63da44
push eax
call fcn.0056bf3f
mov esi, eax
add esp, 8
test esi, esi
je 0x46caa3
push esi
push 0xd
push 1
push str._HTML__HTML_
call fcn.0056bdd5
push esi
call fcn.0056bd58
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 0x46caf4
lea edi, [ebp - 0x118]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x46caf4
mov edx, dword [ebp + 8]
push 1
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x118]
push eax
push ecx
push 0x636f3c
push edx
jmp 0x46cb07
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 1
push 0
push 0
push eax
push 0x636f3c
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.00586b33
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 0x475b50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a068b
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 0x660ff8
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 0x475beb
lea ecx, [ebp - 0x120]
call fcn.00477f00
push 1
push str.Cannot_open__create__registry_GetAllDlgLS_subkey._n
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 1
call fcn.00478010
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 0
call fcn.00478000
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 0x475c11
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 0x475bf1
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 0x639bb0
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 0x63dc74
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 0x479280
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0b20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x65ca8c]
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 [0x6614c8]
lea edx, [ebp - 0x14]
push ecx
push str._sGrabberProjects_
push edx
mov byte [ebp - 4], 1
call fcn.0057f8fb
mov eax, dword [ebp - 0x14]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4793e7
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, 2
inc esi
lea ecx, [ebp - 0x14]
push esi
push 0x5c
call fcn.00586fa2
mov esi, eax
cmp esi, 0xffffffff
je 0x4793e7
lea ecx, [ebp - 0x18]
push esi
push ecx
lea ecx, [ebp - 0x14]
call fcn.0057f4fd
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea ecx, [ebp - 0x18]
sete bl
call fcn.00586b33
test bl, bl
je 0x4792ed
lea edx, [ebp - 0x1c]
push esi
push edx
lea ecx, [ebp - 0x14]
call fcn.0057f4fd
mov eax, dword [eax]
push 0
push eax
call edi
test eax, eax
lea ecx, [ebp - 0x1c]
sete bl
call fcn.00586b33
test bl, bl
je 0x4792ed
mov al, byte [ebp + 8]
test al, al
je 0x4793c3
mov eax, dword [0x65ca8c]
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 [0x662224]
push edx
lea ecx, [ebp + 8]
push eax
push ecx
call fcn.0057f8fb
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.00586b33
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00586b33
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 0x636fa0
push eax
call fcn.0057f8fb
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00586b33
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 0x479760
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 0x4797d2
mov ebx, dword [esi + 0x10]
mov ebp, dword [esp + 0x14]
mov ecx, ebx
mov edi, dword [ecx]
cmp dword [edi + 0x2c], ebp
je 0x47978e
inc eax
add ecx, 4
cmp eax, edx
jl 0x479778
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 0x4797b5
shl ecx, 2
lea edx, [edx + eax*4 + 4]
push ecx
push edx
push ebx
call fcn.0056b940
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 0x4797d2
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4797e0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5a0b68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x65ca8c]
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.0057f8fb
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.00586b33
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x47a0b0
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0cf0
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 0x47a161
cmp dword [ebp - 0xa4], 2
jne 0x47a161
push str.shell32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x47a161
push str.SHGetFolderPathA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x47a156
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 0x47a150
mov ebx, 1
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
jne 0x47a17b
lea edx, [ebp - 0x1b8]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x47a1ff
lea eax, [ebp - 0x1b8]
push 0x63852c
push eax
call fcn.0056ab30
add esp, 8
test eax, eax
je 0x47a1ff
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 0x47a1ff
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push ecx
add edx, 4
push 0x63de10
push edx
call fcn.0057f8fb
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 0x47b710
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a0f06
push eax
mov dword fs:[0], esp
sub esp, 0x228
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 0x660ff8
push ebx
push str.SoftwareDownloadManagerFoldersTree
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x47b7a7
lea ecx, [esp + 0x20]
call fcn.00477f00
push 1
push str.Cannot_open__create__registry_key_during_CIDMFoldersTree::Save__._r_n
lea ecx, [esp + 0x28]
mov dword [esp + 0x240], ebx
call fcn.00478010
lea ecx, [esp + 0x20]
mov dword [esp + 0x238], 0xffffffff
call fcn.00478000
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
add esp, 0x234
ret
mov eax, dword [esi + 8]
mov dword [esp + 8], ebx
cmp eax, ebx
mov dword [esp + 0xc], ebx
jle 0x47b91c
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 0x47b7ea
mov ecx, dword [esp + 0x1c]
add edx, 4
push edx
call fcn.00586c6c
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 0x660ff8
push 0
push eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x47b861
lea ecx, [esp + 0x130]
call fcn.00477f00
push 1
push str.Cannot_open__create__registry_subkey_during_CIDMFoldersTree::Save__._r_n
lea ecx, [esp + 0x138]
mov dword [esp + 0x248], 1
call fcn.00478010
lea ecx, [esp + 0x130]
mov dword [esp + 0x240], 0xffffffff
call fcn.00478000
jmp 0x47b8f4
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x10]
add ecx, ebx
push 4
push ecx
push 4
push 0
push 0x63deb4
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]
mov ecx, dword [eax + ebx + 0x10]
lea eax, [eax + ebx + 0x10]
test ecx, ecx
jne 0x47b8a8
lea ecx, [eax + 4]
mov edi, dword [eax]
test edi, edi
jne 0x47b8b1
lea edi, [eax + 4]
push ecx
call fcn.0056aeae
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push edi
push 0
push 0
push str.pathW
push edx
call ebp
mov eax, dword [esi + 4]
lea edx, [esp + 0x20]
xor ecx, ecx
push 4
mov cl, byte [eax + ebx + 0x1c]
mov eax, dword [esp + 0x14]
push edx
push 4
push 0
push str.rememberLastPath
push eax
mov dword [esp + 0x38], ecx
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 8]
inc eax
add ebx, 0x20
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x47b7c2
mov eax, dword [esp + 0x10]
pop edi
test eax, eax
pop ebp
je 0x47b91c
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 + 0x230]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x234
ret
Function at 0x47bc60
Capabilities:
Delete registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5a0f65
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
mov ebx, ecx
push esi
lea eax, [esp + 0x18]
push edi
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x660ff8
push 0
push str.SoftwareDownloadManagerFoldersTree
push reloc.WSOCK32.dll_accept
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x47bcef
lea ecx, [esp + 0x20]
call fcn.00477f00
push 1
push str.Cannot_open__create__registry_key_during_CIDMFoldersTree::DeleteItem__._r_n
lea ecx, [esp + 0x28]
mov dword [esp + 0x138], 0
call fcn.00478010
lea ecx, [esp + 0x20]
mov dword [esp + 0x130], 0xffffffff
call fcn.00478000
jmp 0x47be33
mov ecx, dword [ebx + 8]
xor esi, esi
test ecx, ecx
mov dword [esp + 0x14], esi
jle 0x47be33
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x138]
cmp dword [eax], edx
je 0x47bd1f
inc esi
add eax, 0x20
cmp esi, ecx
jl 0x47bd0a
mov dword [esp + 0x14], esi
jmp 0x47be33
test esi, esi
mov dword [esp + 0x14], esi
jl 0x47be33
mov edx, dword [ebx + 4]
push ebp
mov ebp, esi
or ecx, 0xffffffff
shl ebp, 5
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 0x47bd57
mov eax, dword [ebx + 4]
mov ecx, edx
lea eax, [eax + ebp + 4]
push eax
call fcn.00586c6c
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x10]
mov eax, dword [ecx + ebp + 8]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, dword [ebx + 8]
sub edi, esi
mov esi, dword [ebx + 4]
add esi, ebp
dec edi
mov dword [esp + 0x14], esi
xor ebx, ebx
lea ecx, [esi + 0x10]
mov dword [esp + 0x134], 3
call fcn.00401070
lea ecx, [esi + 0xc]
mov byte [esp + 0x134], 2
call fcn.00586b33
lea ecx, [esi + 8]
mov byte [esp + 0x134], 1
call fcn.00586b33
lea ecx, [esi + 4]
mov dword [esp + 0x134], 0xffffffff
call fcn.00586b33
add esi, 0x20
mov eax, ebx
dec ebx
mov dword [esp + 0x14], esi
test eax, eax
jne 0x47bd7b
mov esi, dword [esp + 0x1c]
test edi, edi
je 0x47bdf4
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 4]
shl edi, 5
inc ecx
push edi
shl ecx, 5
add ecx, eax
add eax, ebp
push ecx
push eax
call fcn.0056b940
add esp, 0xc
mov eax, dword [esi + 8]
pop ebp
dec eax
mov dword [esi + 8], eax
jne 0x47be21
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push 4
push edx
push 4
push 0
push 0x63dfcc
push eax
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
call fcn.0047b710
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret 4
Function at 0x47bec0
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a0f7b
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 0x660ff8
push 0
push str.SoftwareDownloadManagerFoldersTree
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x47bf4e
lea ecx, [esp + 0x10]
call fcn.00477f00
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.00478010
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 0xffffffff
call fcn.00478000
jmp 0x47bf78
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 0x47bf90
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a0f9b
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 0x660ff8
push ebx
push str.SoftwareDownloadManagerFoldersTree
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x47c025
lea ecx, [esp + 0x14]
call fcn.00477f00
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.00478010
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 0xffffffff
call fcn.00478000
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 0x47c056
cmp dword [esp + 8], 0xa
jne 0x47c056
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 0x47c080
Capabilities:
Delete registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a0fbb
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 0x660ff8
push 0
push str.SoftwareDownloadManagerFoldersTree
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x47c11a
lea ecx, [esp + 8]
call fcn.00477f00
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.00478010
lea ecx, [esp + 8]
mov dword [esp + 0x118], 0xffffffff
call fcn.00478000
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