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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557220
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov edx, dword [ebp + 0x10]
push ebx
push esi
push edi
lea eax, [ebp + 0x10]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], ecx
xor esi, esi
mov ecx, dword [ebp + 0xc]
push eax
push 0x20019
push esi
push ecx
push edx
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], 0x20019
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4abc8c
push str.Cannot_open_key_for_reading.
mov ecx, dword [ebp + 8]
call fcn.00537ee0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x1c]
push esi
lea ecx, [ebp - 0x14]
push eax
lea edx, [ebp - 0x18]
push ecx
lea eax, [ebp - 0x34]
push edx
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
push esi
lea edx, [ebp - 0x20]
push ecx
push edx
push esi
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x4abcbe
push str._Cannot_read_information_about_subkeys.
jmp 0x4abc71
mov eax, dword [ebp + 0xc]
inc eax
push eax
mov dword [ebp + 0xc], eax
call fcn.005380a1
mov ebx, eax
mov eax, dword [ebp - 0x14]
add esp, 4
inc eax
mov dword [ebp - 0x14], eax
push eax
call fcn.005380a1
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
add esp, 4
inc eax
mov dword [ebp - 0x18], eax
push eax
call fcn.005380a1
mov edi, dword [ebp + 8]
add esp, 4
mov dword [ebp - 0x30], eax
cmp esi, dword [ebp - 0x20]
jae 0x4abd52
push 0x59890c
mov ecx, edi
call fcn.00537ee0
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x3c]
push edx
push 0
push 0
lea eax, [ebp - 0x24]
push 0
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0x10]
push eax
push ebx
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4abd3d
push str.Cannot_enumerate_this_object.
mov ecx, edi
call fcn.00537ee0
inc esi
jmp 0x4abcf9
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x28]
push edx
push eax
push ebx
push edi
call fcn.004abda0
inc esi
jmp 0x4abcf9
push ebx
call fcn.005380ca
mov ecx, dword [ebp - 0x2c]
add esp, 4
push ecx
call fcn.005380ca
mov edx, dword [ebp - 0x30]
add esp, 4
push edx
call fcn.005380ca
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4ac950
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], 0x565374
mov dword [ebp + 0x51c], esi
mov dword [ebp + 0x518], esi
call fcn.004227e0
mov edx, dword [0x5ba8bc]
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 0x4ac9af
mov ecx, 0x41
xor eax, eax
lea edi, [ebp + 0x44]
mov byte [ebp + 0x148], 0
rep stosd dword es:[edi], eax
mov edi, dword [0x5bb420]
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 [0x5ba8bc]
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 0x4aca13
mov ecx, 0x41
xor eax, eax
lea edi, [ebp + 0x189]
mov byte [ebp + 0x28d], 0
rep stosd dword es:[edi], eax
mov edi, dword [0x5bb41c]
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 [0x5ba8bc]
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 0x4aca7a
mov ecx, 0x41
xor eax, eax
lea edi, [ebp + 0x2ce]
mov byte [ebp + 0x3d2], 0
rep stosd dword es:[edi], eax
mov edi, dword [0x5bb414]
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 [0x5ba8bc]
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 0x4acae1
mov ecx, 0x41
xor eax, eax
lea edi, [ebp + 0x413]
mov byte [ebp + 0x517], 0
rep stosd dword es:[edi], eax
mov edi, dword [0x5bb418]
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 0x4acb50
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [0x5ba8bc]
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 [0x5ba8bc]
lea edx, [esi + 0x149]
push 0x145
push edx
push 0
push 0
push str.evDownloadFailed
push eax
call edi
mov edx, dword [0x5ba8bc]
lea ecx, [esi + 0x28e]
push 0x145
push ecx
push 0
push 0
push str.evQueueStarted
push edx
call edi
mov eax, dword [0x5ba8bc]
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 0x4acc00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557303
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 0x4accae
call fcn.004acbd0
test al, al
jne 0x4accae
lea ecx, [ebp - 0x118]
call fcn.00459300
mov eax, dword [0x5b5ecc]
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.0053091a
mov edx, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x118]
push 1
push edx
call fcn.004593e0
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.00537b04
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], 0xffffffff
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 4
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4acc9b
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 0x4acfb0
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 [0x5ba8bc]
push 0x5ba440
push 0
push str.SpecialKeys
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4ad0d3
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 0x4b10d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x557966
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 0x4b1105
mov eax, str.SoftwareDownloadManagerGrabberStsExcludeFilters
lea ecx, [esp + 0x34]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0x5ba440
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4b12e3
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 0x4b12e3
test eax, eax
jne 0x4b1135
cmp dword [esp + 0x28], 1
jne 0x4b1135
lea eax, [esp + 0x24]
lea ecx, [esp + 0x38]
push eax
push 0x599b9c
push ecx
call fcn.0051de3d
add esp, 0xc
cmp eax, 1
jne 0x4b1135
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4b1135
lea edx, [esp + 0x38]
push 0x20
push edx
call fcn.0051c7f0
mov edx, eax
add esp, 8
test edx, edx
je 0x4b1135
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jb 0x4b1135
mov eax, dword [0x5b5ecc]
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.00537c8d
lea eax, [esp + 0x13c]
lea ecx, [esp + 0x10]
push eax
call fcn.00537c8d
mov eax, dword [esp + 0x250]
mov ecx, dword [esp + 0x24]
test eax, eax
mov byte [esp + 0x1c], 1
mov dword [esp + 0x18], ecx
je 0x4b126d
mov esi, dword [ebx + 0x11c]
lea edi, [ebx + 0x114]
push 0xffffffffffffffff
mov ecx, edi
lea edx, [esi + 1]
push edx
call fcn.0045a110
mov edx, dword [edi + 4]
lea eax, [esp + 0x10]
shl esi, 4
add esi, edx
push eax
mov ecx, esi
call fcn.00537c3d
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 4]
call fcn.00537c3d
mov edx, dword [esp + 0x18]
mov dword [esi + 8], edx
mov al, byte [esp + 0x1c]
mov byte [esi + 0xc], al
jmp 0x4b12b5
mov esi, dword [ebx + 0x130]
lea edi, [ebx + 0x128]
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
mov ecx, edi
call fcn.0045a110
mov eax, dword [edi + 4]
lea edx, [esp + 0x10]
shl esi, 4
add esi, eax
push edx
mov ecx, esi
call fcn.00537c3d
lea eax, [esp + 0x14]
lea ecx, [esi + 4]
push eax
call fcn.00537c3d
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.00537b04
lea ecx, [esp + 0x10]
mov dword [esp + 0x248], 0xffffffff
call fcn.00537b04
jmp 0x4b1135
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 0x4b1310
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x557980
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 0x5ba440
push ebp
push str.SoftwareDownloadManagerGrabberSts
push 0x80000001
call ebx
test eax, eax
jne 0x4b150d
mov edi, dword [esp + 0x30]
mov eax, str.IncludeFilters
cmp edi, ebp
jne 0x4b1373
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 0x4b138d
mov eax, str.ExcludeFilters
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push edx
push ebp
push 0xf003f
push ebp
push 0x5ba440
push ebp
push eax
mov eax, dword [esp + 0x38]
push eax
call ebx
test eax, eax
jne 0x4b150d
cmp edi, ebp
je 0x4b145d
mov eax, dword [esi + 0x11c]
mov dword [esp + 0x10], ebp
cmp eax, ebp
jle 0x4b14f9
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 0x4b1442
mov edx, dword [0x5b5ecc]
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.0053091a
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.00537b04
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x11c]
inc eax
add edi, 0x10
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4b13d9
jmp 0x4b14f9
mov eax, dword [esi + 0x130]
mov dword [esp + 0x30], ebp
cmp eax, ebp
jle 0x4b14f9
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 0x4b14e3
mov edx, dword [0x5b5ecc]
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.0053091a
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.00537b04
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x130]
inc eax
add edi, 0x10
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x4b147a
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 0x4b1530
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 0x5ba440
push 0
push str.SoftwareDownloadManagerGrabberSts
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4b158f
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 0x4b9730
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558003
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 0x4b980a
cmp eax, dword [esi + 0x2c8]
jge 0x4b980a
mov ecx, dword [esi + 0x2c4]
mov ecx, dword [ecx + eax*4]
cmp ecx, ebx
jl 0x4b980a
mov edx, dword [esi + 0x26c]
cmp ecx, dword [edx + 0xb0]
jge 0x4b980a
mov eax, dword [0x5b5ecc]
mov dword [ebp - 0xbc], 0x5602e8
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.00510d00
cmp al, bl
jne 0x4b981b
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], bl
call fcn.0043c730
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 0x4b97fc
mov eax, dword [ebp - 0x58]
cmp dword [eax - 8], ebx
je 0x4b97fc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4b987a
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 0x4b97fc
mov eax, dword [0x5b5ecc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [0x5bb4c4]
push ecx
lea eax, [ebp - 0x14]
push edx
push eax
mov byte [ebp - 4], 2
call fcn.0053091a
mov ecx, dword [0x5bb4c0]
mov edx, dword [ebp - 0x14]
add esp, 0xc
push 0x30
push ecx
push edx
mov ecx, esi
call fcn.00535af8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00537b04
jmp 0x4b97fc
Function at 0x4ba650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558090
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 0x4ba748
lea eax, [ebp - 0x14]
lea ecx, [esi + 0x624]
push eax
push ecx
mov byte [esi + 0x650], bl
mov edx, dword [0x5ba8bc]
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 0x4ba748
cmp dword [esi + 0x62c], 3
jne 0x4ba6ce
push 3
mov ecx, esi
call fcn.00537206
jmp 0x4ba6f8
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.005371b7
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.00537176
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ba7b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5580ab
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 0x4ba944
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push ecx
push edi
push 0xf003f
push edi
push 0x5ba440
push edi
push str.SoftwareDownloadManagerGrabberDlgLS
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4ba870
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, 7
jge 0x4ba896
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 0x4ba876
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 0x59e630
push ecx
call edi
mov eax, dword [ebp - 0x14]
lea edx, [esi + 0x664]
push 4
push edx
push 4
push 0
push 0x59dff4
push eax
call edi
mov edx, dword [ebp - 0x14]
lea ecx, [esi + 0x668]
push 4
push ecx
push 4
push 0
push 0x59a2ec
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