joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d4130
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], 0x5d279c
mov dword [ebp + 0x51c], esi
mov dword [ebp + 0x518], esi
call fcn.0042e9c0
mov edx, dword [0x6614e8]
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 0x4d418f
mov ecx, 0x41
xor eax, eax
lea edi, [ebp + 0x44]
mov byte [ebp + 0x148], 0
rep stosd dword es:[edi], eax
mov edi, dword [0x662298]
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 [0x6614e8]
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 0x4d41f3
mov ecx, 0x41
xor eax, eax
lea edi, [ebp + 0x189]
mov byte [ebp + 0x28d], 0
rep stosd dword es:[edi], eax
mov edi, dword [0x662294]
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 [0x6614e8]
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 0x4d425a
mov ecx, 0x41
xor eax, eax
lea edi, [ebp + 0x2ce]
mov byte [ebp + 0x3d2], 0
rep stosd dword es:[edi], eax
mov edi, dword [0x66228c]
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 [0x6614e8]
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 0x4d42c1
mov ecx, 0x41
xor eax, eax
lea edi, [ebp + 0x413]
mov byte [ebp + 0x517], 0
rep stosd dword es:[edi], eax
mov edi, dword [0x662290]
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 0x4d4330
Capabilities:
Set registry value

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8623
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 0x4d448e
call fcn.004d43b0
test al, al
jne 0x4d448e
lea ecx, [ebp - 0x118]
call fcn.00477f00
mov eax, dword [0x65ca8c]
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.0057f8fb
mov edx, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x118]
push 1
push edx
call fcn.00478010
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.00586b33
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], 0xffffffff
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 4
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4d447b
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 0x4d47b0
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 [0x6614e8]
push 0x660ff8
push 0
push str.SpecialKeys
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4d48e9
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 eax, dword [esp + 8]
lea edx, [esi + 0x28]
push 4
push edx
push 4
push 0
push str.CheckMouse
push eax
call edi
mov ecx, dword [esp + 8]
add esi, 0x2c
push 4
push esi
push 4
push 0
push str.SkipHtml
push ecx
call edi
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ecx
ret
Function at 0x4d5230
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
mov edx, dword [0x6614e8]
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 0x4d527e
push eax
push 0x400
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.0056d280
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov eax, dword [esi + 0xc]
test eax, eax
jg 0x4d529c
jl 0x4d528e
mov eax, dword [esi + 8]
test eax, eax
ja 0x4d529c
mov dword [esi + 8], 0x2800
mov dword [esi + 0xc], 0
mov eax, dword [0x6614e8]
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 0x4d52cb
mov eax, dword [esp + 0x10]
test eax, eax
setne cl
mov byte [esi + 0x11], cl
mov al, byte [esi + 0x11]
test al, al
je 0x4d52d6
mov byte [esi + 0x10], 1
mov ecx, dword [0x6614e8]
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 0x4d5306
mov eax, dword [esp + 0x10]
test eax, eax
setne dl
mov byte [esi + 0x12], dl
mov edx, dword [0x6614e8]
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 0x4d5336
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 0x4d5340
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.0056c820
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 8]
push 4
push edx
mov dword [esp + 0x10], eax
mov eax, dword [0x6614e8]
push 4
push 0
push str.sls_maxSpeed
push eax
call edi
mov dl, byte [esi + 0x11]
mov eax, dword [0x6614e8]
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 [0x6614e8]
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 [0x6614e8]
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 0x4da0f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a8d96
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 0x4da125
mov eax, str.SoftwareDownloadManagerGrabberStsExcludeFilters
lea ecx, [esp + 0x34]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0x660ff8
push 0
push eax
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4da303
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 0x4da303
test eax, eax
jne 0x4da155
cmp dword [esp + 0x28], 1
jne 0x4da155
lea eax, [esp + 0x24]
lea ecx, [esp + 0x38]
push eax
push 0x6390c4
push ecx
call fcn.0056c333
add esp, 0xc
cmp eax, 1
jne 0x4da155
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4da155
lea edx, [esp + 0x38]
push 0x20
push edx
call fcn.0056aa70
mov edx, eax
add esp, 8
test edx, edx
je 0x4da155
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jb 0x4da155
mov eax, dword [0x65ca8c]
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.00586cbc
lea eax, [esp + 0x13c]
lea ecx, [esp + 0x10]
push eax
call fcn.00586cbc
mov eax, dword [esp + 0x250]
mov ecx, dword [esp + 0x24]
test eax, eax
mov byte [esp + 0x1c], 1
mov dword [esp + 0x18], ecx
je 0x4da28d
mov esi, dword [ebx + 0x12c]
lea edi, [ebx + 0x124]
push 0xffffffffffffffff
mov ecx, edi
lea edx, [esi + 1]
push edx
call fcn.00478d40
mov edx, dword [edi + 4]
lea eax, [esp + 0x10]
shl esi, 4
add esi, edx
push eax
mov ecx, esi
call fcn.00586c6c
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 4]
call fcn.00586c6c
mov edx, dword [esp + 0x18]
mov dword [esi + 8], edx
mov al, byte [esp + 0x1c]
mov byte [esi + 0xc], al
jmp 0x4da2d5
mov esi, dword [ebx + 0x140]
lea edi, [ebx + 0x138]
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
mov ecx, edi
call fcn.00478d40
mov eax, dword [edi + 4]
lea edx, [esp + 0x10]
shl esi, 4
add esi, eax
push edx
mov ecx, esi
call fcn.00586c6c
lea eax, [esp + 0x14]
lea ecx, [esi + 4]
push eax
call fcn.00586c6c
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.00586b33
lea ecx, [esp + 0x10]
mov dword [esp + 0x248], 0xffffffff
call fcn.00586b33
jmp 0x4da155
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 0x4da330
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a8db0
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 0x660ff8
push ebp
push str.SoftwareDownloadManagerGrabberSts
push reloc.WSOCK32.dll_accept
call ebx
test eax, eax
jne 0x4da52d
mov edi, dword [esp + 0x30]
mov eax, str.IncludeFilters
cmp edi, ebp
jne 0x4da393
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 0x4da3ad
mov eax, str.ExcludeFilters
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push edx
push ebp
push 0xf003f
push ebp
push 0x660ff8
push ebp
push eax
mov eax, dword [esp + 0x38]
push eax
call ebx
test eax, eax
jne 0x4da52d
cmp edi, ebp
je 0x4da47d
mov eax, dword [esi + 0x12c]
mov dword [esp + 0x10], ebp
cmp eax, ebp
jle 0x4da519
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
or ebx, 0xffffffff
mov ecx, dword [esi + 0x128]
lea eax, [ecx + edi]
mov cl, byte [ecx + edi + 0xc]
test cl, cl
je 0x4da462
mov edx, dword [0x65ca8c]
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.0057f8fb
mov ecx, dword [esi + 0x128]
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.00586b33
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x12c]
inc eax
add edi, 0x10
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4da3f9
jmp 0x4da519
mov eax, dword [esi + 0x140]
mov dword [esp + 0x30], ebp
cmp eax, ebp
jle 0x4da519
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
or ebx, 0xffffffff
mov ecx, dword [esi + 0x13c]
lea eax, [edi + ecx]
mov cl, byte [edi + ecx + 0xc]
test cl, cl
je 0x4da503
mov edx, dword [0x65ca8c]
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.0057f8fb
mov ecx, dword [esi + 0x13c]
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.00586b33
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x140]
inc eax
add edi, 0x10
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x4da49a
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 0x4da550
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 0x660ff8
push 0
push str.SoftwareDownloadManagerGrabberSts
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4da5af
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 0x4e3ac0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a94f0
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 0x4e3bb8
lea eax, [ebp - 0x14]
lea ecx, [esi + 0x624]
push eax
push ecx
mov byte [esi + 0x650], bl
mov edx, dword [0x6614e8]
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 0x4e3bb8
cmp dword [esi + 0x62c], 3
jne 0x4e3b3e
push 3
mov ecx, esi
call fcn.00586233
jmp 0x4e3b68
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.005861e4
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.005861a3
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e3bf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a950b
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 0x4e3d84
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push ecx
push edi
push 0xf003f
push edi
push 0x660ff8
push edi
push str.SoftwareDownloadManagerGrabberDlgLS
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4e3cb0
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, 7
jge 0x4e3cd6
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 0x4e3cb6
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 0x63e31c
push ecx
call edi
mov eax, dword [ebp - 0x14]
lea edx, [esi + 0x664]
push 4
push edx
push 4
push 0
push 0x63dc74
push eax
call edi
mov edx, dword [ebp - 0x14]
lea ecx, [esi + 0x668]
push 4
push ecx
push 4
push 0
push 0x639bb0
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
Function at 0x4e65b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5a9768
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x65ca8c]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x10]
push ecx
xor edi, edi
push str._s_tvlda.pdb
push edx
mov dword [esp + 0x30], edi
call fcn.0057f8fb
mov eax, dword [esp + 0x1c]
add esp, 0xc
push edi
push edi
push 4
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x2c], ebp
jne 0x4e662a
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], eax
call fcn.00586b33
xor eax, eax
jmp 0x4e6747
lea ecx, [esp + 0x14]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4e6666
test edi, edi
jne 0x4e6666
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4e6666
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
call fcn.00586b33
xor eax, eax
jmp 0x4e6747
mov edx, dword [esp + 0x14]
push 1
push 0
push 0
push edx
call fcn.0056d280
add ebx, eax
adc edi, edx
mov eax, ebx
or eax, edi
je 0x4e672a
push 0
push 0xc
push edi
push ebx
call fcn.0056c820
mov ebp, eax
mov eax, dword [esi + 8]
cmp ebp, eax
jl 0x4e66f3
mov eax, dword [esi + 0xc]
push eax
call fcn.00582ef5
lea eax, [ebp + 0x1f4]
mov dword [esi + 8], eax
lea ecx, [eax + eax*2]
shl ecx, 2
push ecx
call fcn.00582ecc
mov edi, eax
mov eax, dword [esi + 8]
mov dword [esi + 0xc], edi
add esp, 8
lea ecx, [eax + eax*2]
xor eax, eax
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4e66f3
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00586b33
xor eax, eax
jmp 0x4e6747
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push 0
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4e6723
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00586b33
xor eax, eax
jmp 0x4e6747
mov dword [esi + 4], ebp
mov ebp, dword [esp + 0x2c]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00586b33
mov eax, 1
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4