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

Disassembly:
push ecx
push ebx
push ebp
push esi
mov ebp, ecx
xor esi, esi
push edi
mov dword [ebp], 0x570aec
mov dword [ebp + 0x51c], esi
mov dword [ebp + 0x518], esi
call fcn.00425230
mov edx, dword [0x5c74b0]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
lea eax, [ebp + 4]
push ecx
push eax
push esi
push esi
push str.evDownloadComplete
push edx
mov dword [esp + 0x28], 0x145
call ebx
test eax, eax
je 0x4b41af
mov ecx, 0x41
xor eax, eax
lea edi, [ebp + 0x44]
mov byte [ebp + 0x148], 0
rep stosd dword es:[edi], eax
mov edi, dword [0x5c8078]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
lea edi, [ebp + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0x149]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x5c74b0]
lea ecx, [esp + 0x10]
push ecx
push eax
push 0
push 0
push str.evDownloadFailed
push edx
mov dword [esp + 0x28], 0x145
call ebx
test eax, eax
je 0x4b4213
mov ecx, 0x41
xor eax, eax
lea edi, [ebp + 0x189]
mov byte [ebp + 0x28d], 0
rep stosd dword es:[edi], eax
mov edi, dword [0x5c8074]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
lea edi, [ebp + 0x149]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0x28e]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x5c74b0]
lea ecx, [esp + 0x10]
push ecx
push eax
push 0
push 0
push str.evQueueStarted
push edx
mov dword [esp + 0x28], 0x145
call ebx
test eax, eax
je 0x4b427a
mov ecx, 0x41
xor eax, eax
lea edi, [ebp + 0x2ce]
mov byte [ebp + 0x3d2], 0
rep stosd dword es:[edi], eax
mov edi, dword [0x5c806c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
lea edi, [ebp + 0x28e]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0x3d3]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x5c74b0]
lea ecx, [esp + 0x10]
push ecx
push eax
push 0
push 0
push str.evQueueFinished
push edx
mov dword [esp + 0x28], 0x145
call ebx
test eax, eax
je 0x4b42e1
mov ecx, 0x41
xor eax, eax
lea edi, [ebp + 0x413]
mov byte [ebp + 0x517], 0
rep stosd dword es:[edi], eax
mov edi, dword [0x5c8070]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
lea edi, [ebp + 0x3d3]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4b4350
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [0x5c74b0]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esi + 4]
push 0x145
push eax
push 0
push 0
push str.evDownloadComplete
push ecx
call edi
mov eax, dword [0x5c74b0]
lea edx, [esi + 0x149]
push 0x145
push edx
push 0
push 0
push str.evDownloadFailed
push eax
call edi
mov edx, dword [0x5c74b0]
lea ecx, [esi + 0x28e]
push 0x145
push ecx
push 0
push 0
push str.evQueueStarted
push edx
call edi
mov eax, dword [0x5c74b0]
add esi, 0x3d3
push 0x145
push esi
push 0
push 0
push str.evQueueFinished
push eax
call edi
pop edi
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5624f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0x518]
mov dword [ebp - 0x10], esp
cmp eax, ebx
jne 0x4b44ae
call fcn.004b43d0
test al, al
jne 0x4b44ae
lea ecx, [ebp - 0x118]
call fcn.0045eaa0
mov eax, dword [0x5c2a74]
mov dword [ebp - 4], ebx
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
push str.Error__ld_during_LoadWINMMLibrary___n
push ecx
call fcn.0053afda
mov edx, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x118]
push 1
push edx
call fcn.0045eb80
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.005421be
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], 0xffffffff
call fcn.0045eb70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4b449b
push 0x20001
push ebx
push edi
mov dword [ebp - 4], 2
call dword [esi + 0x518]
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 0x4b47b0
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push 0
push eax
push 0
push 0xf003f
mov esi, ecx
push 0
mov ecx, dword [0x5c74b0]
push 0x5c6ff0
push 0
push str.SpecialKeys
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4b48d3
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esi + 8]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x18]
push str.UseKeyToPrevent
push eax
call edi
mov edx, dword [esp + 8]
lea ecx, [esi + 4]
push 4
push ecx
push 4
push 0
push str.UseKeyToForce
push edx
call edi
mov ecx, dword [esp + 8]
lea eax, [esi + 0xc]
push 4
push eax
push 4
push 0
push str.AltP
push ecx
call edi
mov eax, dword [esp + 8]
lea edx, [esi + 0x10]
push 4
push edx
push 4
push 0
push str.ShiftP
push eax
call edi
mov edx, dword [esp + 8]
lea ecx, [esi + 0x14]
push 4
push ecx
push 4
push 0
push str.CtrlP
push edx
call edi
mov ecx, dword [esp + 8]
lea eax, [esi + 0x18]
push 4
push eax
push 4
push 0
push str.AltF
push ecx
call edi
mov eax, dword [esp + 8]
lea edx, [esi + 0x1c]
push 4
push edx
push 4
push 0
push str.CtrlF
push eax
call edi
mov edx, dword [esp + 8]
lea ecx, [esi + 0x20]
push 4
push ecx
push 4
push 0
push str.ShiftF
push edx
call edi
mov ecx, dword [esp + 8]
lea eax, [esi + 0x24]
push 4
push eax
push 4
push 0
push str.InsF
push ecx
call edi
mov edx, dword [esp + 8]
add esi, 0x28
push 4
push esi
push 4
push 0
push str.CheckMouse
push edx
call edi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ecx
ret
Function at 0x4b5310
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
mov edx, dword [0x5c74b0]
push esi
mov esi, ecx
lea eax, [esp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
mov ebx, 4
push str.sls_maxSpeed
push edx
mov dword [esp + 0x24], ebx
call edi
test eax, eax
jne 0x4b535e
push eax
push 0x400
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.005291e0
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov eax, dword [esi + 0xc]
test eax, eax
jg 0x4b537c
jl 0x4b536e
mov eax, dword [esi + 8]
test eax, eax
ja 0x4b537c
mov dword [esi + 8], 0x2800
mov dword [esi + 0xc], 0
mov eax, dword [0x5c74b0]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push 0
push str.sls_bTOOst
push eax
mov dword [esp + 0x24], ebx
call edi
test eax, eax
jne 0x4b53ab
mov eax, dword [esp + 0x10]
test eax, eax
setne cl
mov byte [esi + 0x11], cl
mov al, byte [esi + 0x11]
test al, al
je 0x4b53b6
mov byte [esi + 0x10], 1
mov ecx, dword [0x5c74b0]
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push str.sls_bShChb
push ecx
mov dword [esp + 0x24], ebx
call edi
test eax, eax
jne 0x4b53e6
mov eax, dword [esp + 0x10]
test eax, eax
setne dl
mov byte [esi + 0x12], dl
mov edx, dword [0x5c74b0]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push str.sls_bRemIndEx
push edx
mov dword [esp + 0x24], ebx
call edi
test eax, eax
jne 0x4b5416
mov eax, dword [esp + 0x10]
test eax, eax
setne al
mov byte [esi + 0x13], al
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x4b5420
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push 0x400
push eax
push ecx
call fcn.00528840
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 8]
push 4
push edx
mov dword [esp + 0x10], eax
mov eax, dword [0x5c74b0]
push 4
push 0
push str.sls_maxSpeed
push eax
call edi
mov dl, byte [esi + 0x11]
mov eax, dword [0x5c74b0]
xor ecx, ecx
push 4
test dl, dl
lea edx, [esp + 0xc]
push edx
push 4
push 0
push str.sls_bTOOst
setne cl
push eax
mov dword [esp + 0x20], ecx
call edi
mov dl, byte [esi + 0x12]
mov eax, dword [0x5c74b0]
xor ecx, ecx
push 4
test dl, dl
lea edx, [esp + 0xc]
push edx
push 4
push 0
push str.sls_bShChb
setne cl
push eax
mov dword [esp + 0x20], ecx
call edi
mov al, byte [esi + 0x13]
lea edx, [esp + 8]
push 4
xor ecx, ecx
push edx
push 4
test al, al
mov eax, dword [0x5c74b0]
push 0
setne cl
push str.sls_bRemIndEx
push eax
mov dword [esp + 0x20], ecx
call edi
pop edi
pop esi
pop ecx
ret
Function at 0x4b8f50
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x562bd6
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x230
push ebx
push ebp
push esi
xor esi, esi
test eax, eax
push edi
mov ebx, ecx
mov eax, str.SoftwareDownloadManagerGrabberStsIncludeFilters
jne 0x4b8f85
mov eax, str.SoftwareDownloadManagerGrabberStsExcludeFilters
lea ecx, [esp + 0x34]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0x5c6ff0
push 0
push eax
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4b9163
xor ebp, ebp
lea ecx, [esp + 0x30]
lea edx, [esp + 0x13c]
push ecx
lea ecx, [esp + 0x2c]
mov eax, 0x104
push edx
push ecx
lea edx, [esp + 0x38]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
push 0
lea ecx, [esp + 0x48]
mov eax, ebp
push edx
mov edx, dword [esp + 0x34]
push ecx
push eax
push edx
inc ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x4b9163
test eax, eax
jne 0x4b8fb5
cmp dword [esp + 0x28], 1
jne 0x4b8fb5
lea eax, [esp + 0x24]
lea ecx, [esp + 0x38]
push eax
push 0x5a5cf0
push ecx
call fcn.005284dc
add esp, 0xc
cmp eax, 1
jne 0x4b8fb5
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4b8fb5
lea edx, [esp + 0x38]
push 0x20
push edx
call fcn.00526d60
mov edx, eax
add esp, 8
test edx, edx
je 0x4b8fb5
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jb 0x4b8fb5
mov eax, dword [0x5c2a74]
inc edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24c], 0
call fcn.00542347
lea eax, [esp + 0x13c]
lea ecx, [esp + 0x10]
push eax
call fcn.00542347
mov eax, dword [esp + 0x250]
mov ecx, dword [esp + 0x24]
test eax, eax
mov byte [esp + 0x1c], 1
mov dword [esp + 0x18], ecx
je 0x4b90ed
mov esi, dword [ebx + 0x11c]
lea edi, [ebx + 0x114]
push 0xffffffffffffffff
mov ecx, edi
lea edx, [esi + 1]
push edx
call fcn.0045f8b0
mov edx, dword [edi + 4]
lea eax, [esp + 0x10]
shl esi, 4
add esi, edx
push eax
mov ecx, esi
call fcn.005422f7
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 4]
call fcn.005422f7
mov edx, dword [esp + 0x18]
mov dword [esi + 8], edx
mov al, byte [esp + 0x1c]
mov byte [esi + 0xc], al
jmp 0x4b9135
mov esi, dword [ebx + 0x130]
lea edi, [ebx + 0x128]
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
mov ecx, edi
call fcn.0045f8b0
mov eax, dword [edi + 4]
lea edx, [esp + 0x10]
shl esi, 4
add esi, eax
push edx
mov ecx, esi
call fcn.005422f7
lea eax, [esp + 0x14]
lea ecx, [esi + 4]
push eax
call fcn.005422f7
mov ecx, dword [esp + 0x18]
mov dword [esi + 8], ecx
mov dl, byte [esp + 0x1c]
mov byte [esi + 0xc], dl
mov esi, 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x248], esi
call fcn.005421be
lea ecx, [esp + 0x10]
mov dword [esp + 0x248], 0xffffffff
call fcn.005421be
jmp 0x4b8fb5
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x240]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x23c
ret 4
Function at 0x4b9190
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x562bf0
push eax
mov dword fs:[0], esp
sub esp, 0x10
lea eax, [esp + 0xc]
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x18]
push eax
xor ebp, ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ecx
push ebp
push 0xf003f
push ebp
push 0x5c6ff0
push ebp
push str.SoftwareDownloadManagerGrabberSts
push reloc.WSOCK32.dll_accept
call ebx
test eax, eax
jne 0x4b938d
mov edi, dword [esp + 0x30]
mov eax, str.IncludeFilters
cmp edi, ebp
jne 0x4b91f3
mov eax, str.ExcludeFilters
mov edx, dword [esp + 0x18]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp edi, ebp
mov eax, str.IncludeFilters
jne 0x4b920d
mov eax, str.ExcludeFilters
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push edx
push ebp
push 0xf003f
push ebp
push 0x5c6ff0
push ebp
push eax
mov eax, dword [esp + 0x38]
push eax
call ebx
test eax, eax
jne 0x4b938d
cmp edi, ebp
je 0x4b92dd
mov eax, dword [esi + 0x11c]
mov dword [esp + 0x10], ebp
cmp eax, ebp
jle 0x4b9379
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
or ebx, 0xffffffff
mov ecx, dword [esi + 0x118]
lea eax, [ecx + edi]
mov cl, byte [ecx + edi + 0xc]
test cl, cl
je 0x4b92c2
mov edx, dword [0x5c2a74]
mov dword [esp + 0x30], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
push ecx
push edx
lea eax, [esp + 0x38]
push str._ld__s
push eax
mov dword [esp + 0x38], 0
call fcn.0053afda
mov ecx, dword [esi + 0x118]
mov edx, dword [esp + 0x40]
add esp, 0x10
mov eax, dword [ecx + edi]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [esp + 0x1c]
push 1
push 0
push edx
push eax
call ebp
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], ebx
call fcn.005421be
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x11c]
inc eax
add edi, 0x10
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4b9259
jmp 0x4b9379
mov eax, dword [esi + 0x130]
mov dword [esp + 0x30], ebp
cmp eax, ebp
jle 0x4b9379
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
or ebx, 0xffffffff
mov ecx, dword [esi + 0x12c]
lea eax, [edi + ecx]
mov cl, byte [edi + ecx + 0xc]
test cl, cl
je 0x4b9363
mov edx, dword [0x5c2a74]
mov dword [esp + 0x10], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
push ecx
push edx
lea eax, [esp + 0x18]
push str._ld__s
push eax
mov dword [esp + 0x38], 1
call fcn.0053afda
mov ecx, dword [esi + 0x12c]
mov edx, dword [esp + 0x20]
add esp, 0x10
mov eax, dword [edi + ecx]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [esp + 0x1c]
push 1
push 0
push edx
push eax
call ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], ebx
call fcn.005421be
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x130]
inc eax
add edi, 0x10
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x4b92fa
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x4b93b0
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x5c6ff0
push 0
push str.SoftwareDownloadManagerGrabberSts
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4b940f
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 4]
push 4
push eax
mov dword [esp + 0xc], edx
mov edx, dword [esp + 8]
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
ret 8

Function at 0x4c15b0
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563273
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xec
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 0x520]
push ebx
push ebx
push 0x1042
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebx
jl 0x4c168a
cmp eax, dword [esi + 0x2c8]
jge 0x4c168a
mov ecx, dword [esi + 0x2c4]
mov ecx, dword [ecx + eax*4]
cmp ecx, ebx
jl 0x4c168a
mov edx, dword [esi + 0x26c]
cmp ecx, dword [edx + 0xb0]
jge 0x4c168a
mov eax, dword [0x5c2a74]
mov dword [ebp - 0xbc], 0x56b594
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0xbc]
push ebx
push eax
push ecx
lea ecx, [edx + 8]
mov byte [ebp - 4], 1
call fcn.0051b270
cmp al, bl
jne 0x4c169b
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], bl
call fcn.0043fb90
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x7e], 4
jne 0x4c167c
mov eax, dword [ebp - 0x58]
cmp dword [eax - 8], ebx
je 0x4c167c
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4c16fa
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0xf8]
lea edx, [ebp - 0xf8]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x58]
push edx
mov dword [ebp - 0xf8], 0x3c
mov dword [ebp - 0xf4], 0x40
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 0xdc], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
jmp 0x4c167c
mov eax, dword [0x5c2a74]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [0x5c811c]
push ecx
lea eax, [ebp - 0x14]
push edx
push eax
mov byte [ebp - 4], 2
call fcn.0053afda
mov ecx, dword [0x5c8118]
mov edx, dword [ebp - 0x14]
add esp, 0xc
push 0x30
push ecx
push edx
mov ecx, esi
call fcn.005401b5
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.005421be
jmp 0x4c167c
Function at 0x4c24d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563300
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
mov al, byte [esi + 0x650]
mov dword [ebp - 0x10], esp
cmp al, bl
je 0x4c25c8
lea eax, [ebp - 0x14]
lea ecx, [esi + 0x624]
push eax
push ecx
mov byte [esi + 0x650], bl
mov edx, dword [0x5c74b0]
push ebx
push ebx
push str.GrabberWindowPlacement
push edx
mov dword [ebp - 0x14], 0x2c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c25c8
cmp dword [esi + 0x62c], 3
jne 0x4c254e
push 3
mov ecx, esi
call fcn.00541dd6
jmp 0x4c2578
mov eax, dword [esi + 0x644]
mov edx, dword [esi + 0x64c]
mov ecx, dword [esi + 0x640]
sub edx, eax
push 4
push edx
mov edx, dword [esi + 0x648]
sub edx, ecx
push edx
push eax
push ecx
push ebx
mov ecx, esi
call fcn.00541d87
mov ecx, dword [esi + 0x84]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x24]
push eax
push ecx
call edi
mov eax, dword [esi + 0x1c]
lea edx, [ebp - 0x34]
push edx
push eax
call edi
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
mov edx, ecx
mov edi, dword [ebp - 0x24]
sub edx, eax
sub eax, ecx
mov ecx, dword [ebp - 0x28]
push ebx
push edx
mov edx, dword [ebp - 0x1c]
lea eax, [eax + ecx - 0x55]
mov ecx, dword [ebp - 0x2c]
mov ebx, edx
sub ecx, edx
sub ebx, edi
push ebx
lea edx, [ecx + edi - 0x23]
push eax
push edx
lea ecx, [esi + 0x68]
call fcn.00541d46
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c2630
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56331b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 0x5f4]
mov dword [ebp - 4], edi
cmp eax, 4
je 0x4c27c4
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push ecx
push edi
push 0xf003f
push edi
push 0x5c6ff0
push edi
push str.SoftwareDownloadManagerGrabberDlgLS
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4c26f0
lea ecx, [ebp - 0x120]
call fcn.0045eaa0
push 1
push str.Cannot_open__create__registry_GetAllDlgLS_subkey._n
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 1
call fcn.0045eb80
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 0
call fcn.0045eb70
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, 7
jge 0x4c2716
mov edx, dword [esi + 0x520]
push 0
push edi
push 0x101d
push edx
call ebx
mov dword [esi + edi*4 + 0x654], eax
inc edi
jmp 0x4c26f6
mov ecx, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esi + 0x654]
push 4
push eax
push 4
push 0
push str.FileName
push ecx
call edi
mov eax, dword [ebp - 0x14]
lea edx, [esi + 0x658]
push 4
push edx
push 4
push 0
push str.FileType
push eax
call edi
mov edx, dword [ebp - 0x14]
lea ecx, [esi + 0x65c]
push 4
push ecx
push 4
push 0
push str.Size
push edx
call edi
mov ecx, dword [ebp - 0x14]
lea eax, [esi + 0x660]
push 4
push eax
push 4
push 0
push str.Status
push ecx
call edi
mov eax, dword [ebp - 0x14]
lea edx, [esi + 0x664]
push 4
push edx
push 4
push 0
push str.Description
push eax
call edi
mov edx, dword [ebp - 0x14]
lea ecx, [esi + 0x668]
push 4
push ecx
push 4
push 0
push 0x5a65c8
push edx
call edi
mov eax, dword [ebp - 0x14]
add esi, 0x66c
push 4
push esi
push 4
push 0
push str.SaveTo
push eax
call edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret