joyce8/EMBER2024-capa huggingface dataset:
Function at 0x504ea0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x64b1e0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x7496c8]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov esi, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov word [esp + 0x1c], ax
mov dword [esp + 0x30], ebx
mov edx, dword [esi + 0x1a4]
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push 0x147
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
lea ecx, [esi + 0x1a0]
call fcn.004241f0
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x504f19
lea eax, [esp + 0x1c]
mov ecx, dword [0x750164]
push ecx
push eax
call fcn.00424420
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esp, 8
push 4
test eax, eax
jne 0x504f51
mov eax, dword [0x74ea0c]
lea edx, [esp + 0x14]
push edx
push 4
push ebx
push str.RememberDuplLinksA
mov dword [esp + 0x24], ebx
push eax
jmp 0x504fd8
mov edx, dword [0x74ea0c]
lea ecx, [esp + 0x14]
push ecx
push 4
push ebx
push str.RememberDuplLinksA
push edx
mov dword [esp + 0x28], 1
call edi
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x504f7b
lea eax, [esp + 0x1c]
mov ecx, dword [0x750168]
push ecx
push eax
call fcn.00424420
add esp, 8
test eax, eax
jne 0x504f99
mov dword [esp + 0x10], 1
jmp 0x504fc2
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x504fa5
lea eax, [esp + 0x1c]
mov edx, dword [0x75016c]
push edx
push eax
call fcn.00424420
add esp, 8
neg eax
sbb eax, eax
neg eax
add eax, 2
mov dword [esp + 0x10], eax
mov ecx, dword [0x74ea0c]
push 4
lea eax, [esp + 0x14]
push eax
push 4
push ebx
push str.DuplLinksA
push ecx
call edi
lea ecx, [esp + 0x14]
call fcn.00402500
mov byte [esp + 0x30], 1
lea edx, [esp + 0x14]
push edx
lea ecx, [esi + 0x88]
call fcn.005ed699
mov esi, dword [esp + 0x14]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x505001
sub eax, edx
je 0x50506a
mov ecx, dword [0x74e848]
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x505034
cmp dl, bl
je 0x505030
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x505034
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x505014
xor eax, eax
jmp 0x505039
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x50506a
push esi
push 0x66ae98
push 0x74e848
call fcn.00402f80
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
add esp, 0xc
inc ecx
push ecx
push eax
mov eax, dword [0x74ea0c]
push 1
push ebx
push str.szCustomUserAgent
push eax
call edi
mov byte [esp + 0x30], bl
lea ecx, [esp + 0x14]
call fcn.00402570
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004011f0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00613241
add esp, 0x24
ret
Function at 0x5090e0
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x64ba68
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
push esi
call fcn.005083a0
push str.SoftwareDownloadManagerPasswords_
lea ecx, [esp + 0xc]
call fcn.004030c0
mov dword [esp + 0x18], 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0xf003f
push 0
push 0x66b96c
push 0
push str.SoftwareDownloadManagerPasswords
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x509169
mov edx, dword [esp + 0x20]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 8]
call fcn.00402570
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret 4
Function at 0x50a380
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x64bd10
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x1c]
call fcn.0055c320
mov dword [esp + 0x2c], 0
mov edi, dword [esp + 0x38]
test edi, edi
jne 0x50a3c5
xor eax, eax
jmp 0x50a3d9
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x50a3d0
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x24]
call fcn.00402960
mov ebp, dword [esp + 0x3c]
test ebp, ebp
jne 0x50a3f0
xor eax, eax
jmp 0x50a3fe
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x50a3f5
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x28]
call fcn.00402960
mov edi, dword [esp + 0x34]
push edi
mov ecx, esi
call fcn.00509f00
mov esi, eax
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00405920
lea edx, [esp + 0x20]
lea ecx, [esi + 4]
push edx
call fcn.00405920
push str.SoftwareDownloadManagerPasswords_
lea ecx, [esp + 0x14]
call fcn.004030c0
mov byte [esp + 0x2c], 1
test edi, edi
jne 0x50a44b
xor eax, eax
jmp 0x50a459
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x50a450
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.00402e10
mov ecx, dword [esp + 0x10]
mov eax, ecx
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x50a470
sub eax, esi
cmp eax, 0x125
jbe 0x50a4ce
mov esi, dword [ecx - 0xc]
cmp esi, 0x124
jg 0x50a495
push 0x80070057
call fcn.00401090
cmp dword [ecx - 4], 1
jle 0x50a4ab
mov eax, esi
push eax
lea ecx, [esp + 0x14]
call fcn.00401720
mov ecx, dword [esp + 0x10]
mov byte [ecx + 0x124], 0
test esi, esi
jl 0x50a48b
mov eax, dword [esp + 0x10]
cmp esi, dword [eax - 8]
jg 0x50a48b
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x10]
mov byte [esi + ecx], 0
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0xf003f
push 0
push 0x66b96c
push 0
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [esp + 0x38]
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x50a500
mov ecx, dword [esp + 0x14]
sub eax, edx
inc eax
push eax
push esi
push 0
push 0
push 0x67e62c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x14]
push 0
push ebp
push str.EncPassword
push 0x68cf5c
push edx
call fcn.005ae320
mov eax, dword [esp + 0x28]
add esp, 0x14
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x2c], 0
lea ecx, [esp + 0x10]
call fcn.00402570
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0055c380
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret 0xc
Function at 0x50a7c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
movzx eax, word [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x10]
push 0x6959a8
push eax
push edi
mov dword [esp + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x50a7e9
pop edi
pop esi
pop ecx
ret 8
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x50a818
push ebp
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x50a821
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x50a89f
test ebx, ebx
je 0x50a89f
push ebp
push eax
push ebx
call fcn.00614de0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [esp + 0x1c]
push ecx
push 0
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x50a87e
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push edx
call fcn.0050a650
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
pop ebp
mov eax, edi
pop edi
pop esi
pop ecx
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
Function at 0x50eec4
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
cmp eax, 0x13fa
je 0x50eedf
mov ecx, dword [esp + 0xc]
push ecx
push eax
mov ecx, esi
call fcn.005fceab
pop esi
ret 8
cmp dword [esi + 0x145c], 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov edi, dword [esp + 0x14]
je 0x50f00b
cmp edi, 1
jne 0x50ef42
mov ecx, dword [esi + 0xc0]
test ecx, ecx
je 0x50ef42
call fcn.0041a650
test eax, eax
je 0x50ef42
push 0
lea ecx, [esi + 0xb18]
call fcn.00405470
mov edx, dword [0x750430]
mov eax, dword [esi + 0x20]
push 0x50040
push 0x66ad78
push edx
push eax
call fcn.0046db70
add esp, 0x10
mov eax, edi
pop edi
pop ebx
pop esi
ret 8
mov ecx, dword [0x74f090]
push 8
push 0x1436
push 0x111
push ecx
call ebx
mov ecx, dword [esi + 0x20]
mov dword [0x74f4a4], ecx
mov ecx, dword [esi + 0xc0]
cmp edi, 1
jne 0x50f0ea
push edi
call fcn.0041e670
cmp dword [esi + 0x145c], 0
je 0x50f139
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi + 0xc0]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0
call fcn.00410520
test eax, eax
jne 0x50f0f1
push eax
mov eax, dword [0x74f090]
push 0x1437
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esi + 0xb1c]
push 0
push 0
push 0xf1
push ecx
call ebx
cmp dword [0x74e9dc], 0
je 0x50f0c2
call fcn.0050e6e0
test eax, eax
je 0x50f0c2
push 0x50041
push 0x66ad78
cmp eax, edi
jne 0x50f075
mov edx, dword [0x7503e8]
mov eax, dword [esi + 0x20]
push edx
push eax
jmp 0x50f080
mov edx, dword [0x74fe54]
mov eax, dword [esi + 0x20]
push 0x50004
push 0x66ad78
push edx
push eax
call fcn.0046db70
add esp, 0x10
cmp eax, 6
je 0x50ef57
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x50f139
cmp dword [eax + 0x1c], 0
je 0x50f05d
push 1
lea ecx, [esi + 0x910]
call fcn.00405470
pop edi
pop ebx
mov eax, 1
pop esi
ret 8
push 0
lea ecx, [esi + 0xb18]
call fcn.00405470
pop edi
pop ebx
mov eax, 1
pop esi
ret 8
mov ecx, dword [0x7503ec]
mov edx, dword [esi + 0x20]
push ecx
push edx
call fcn.0046db70
add esp, 0x10
cmp eax, 1
jne 0x50f139
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.005ec2b6
mov eax, dword [eax + 0x20]
push 1
push 0
push 0
push str.https:__www.internetdownloadmanager.com_register_new_faq_enableBFE.html
push 0x66adac
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop ebx
mov eax, 1
pop esi
ret 8
mov ecx, dword [0x7503a4]
mov edx, dword [esi + 0x20]
push 0x50040
push 0x66ad78
push ecx
push edx
call fcn.0046db70
add esp, 0x10
pop edi
pop ebx
mov eax, 1
pop esi
ret 8
push 0
call fcn.0041e670
cmp dword [esi + 0x145c], 0
je 0x50f139
mov eax, dword [0x74f090]
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
push 0
push 0x1437
push 0x111
push eax
call edi
mov ecx, esi
call fcn.0050eab0
push 0
mov ecx, esi
call fcn.005fce33
mov ecx, dword [0x74f090]
push 0
push 0x146e
push 0x111
push ecx
call edi
pop edi
pop ebx
mov eax, 1
pop esi
ret 8
Function at 0x50fed0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64c66b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x7496c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
xor eax, eax
mov word [ebp - 0x1c], ax
mov byte [ebp - 4], 1
mov eax, dword [0x74ea5c]
cmp eax, ebx
jne 0x50ff26
mov eax, 0x74ea60
push ebx
push eax
push str._sScheduler_
lea ecx, [ebp - 0x20]
call fcn.004021b0
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x50ff3f
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x50ffeb
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x50ff59
lea eax, [ebp - 0x1c]
push 0x5c
add eax, 6
push eax
call fcn.00614db0
add esp, 8
mov esi, eax
lea esp, [esp]
cmp esi, ebx
je 0x50ffeb
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x50ff7e
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402180
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
mov ecx, eax
jne 0x50ff97
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x50ffa1
lea eax, [ebp - 0x1c]
mov edx, esi
sub edx, eax
sar edx, 1
xor eax, eax
mov word [ecx + edx*2], ax
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x50ffb7
lea eax, [ebp - 0x28]
push 1
push eax
call fcn.004a29e0
add esp, 8
test eax, eax
jne 0x51001a
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x50ffd0
lea eax, [ebp - 0x28]
push 1
push eax
call fcn.004a2bc0
add esp, 8
test eax, eax
jne 0x51001a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004011f0
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x50fff5
lea eax, [ebp - 0x1c]
push ebx
push eax
push 0x66ae98
lea ecx, [edi + 8]
call fcn.004021b0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.004011f0
mov dword [ebp - 4], 0xffffffff
xor eax, eax
jmp 0x51007b
push 0x5c
add esi, 2
push esi
call fcn.00614db0
add esp, 8
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004011f0
jmp 0x50ff70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00613241
mov esp, ebp
pop ebp
ret 4
Function at 0x513990
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x64cb10
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0xf003f
push 0
push 0x66b96c
push 0
push str.SoftwareDownloadManagerGrabberStsRecentProjects
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x513aa4
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edi, [eax + 4]
lea ecx, [esp + 0x10]
call fcn.00402500
mov dword [esp + 0x30], 0
push edi
lea edx, [esp + 0x14]
push 0x66b41c
push edx
call fcn.00402f80
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push edx
push eax
mov dword [esp + 0x30], 4
call ebp
test eax, eax
jne 0x513a73
mov ecx, dword [0x74ea94]
test ecx, ecx
jle 0x513a73
mov edx, dword [0x74ea90]
mov esi, dword [esp + 0x1c]
test eax, eax
jl 0x513ac2
cmp eax, ecx
jge 0x513ac2
cmp esi, dword [edx]
je 0x513a69
inc eax
add edx, 0xc
cmp eax, ecx
jl 0x513a53
jmp 0x513a73
mov ecx, dword [esp + 0x20]
push esi
call fcn.005138d0
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x513a9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
dec edi
test edi, edi
jg 0x5139f5
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret
call fcn.005e77c5
int3
Function at 0x513ad0
Capabilities:
Delete registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x644108
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0xf003f
push 0
push 0x66b96c
push 0
push str.SoftwareDownloadManagerGrabberSts
push 0x80000001
call esi
test eax, eax
jne 0x513bdc
mov edx, dword [esp + 0x18]
push str.RecentProjects
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0xf003f
push 0
push 0x66b96c
push 0
push str.RecentProjects
push edx
call esi
test eax, eax
jne 0x513bdc
xor esi, esi
cmp dword [ebx + 0x14], esi
jle 0x513bc8
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edi, [ebx + 4]
lea ecx, [esp + 0x14]
call fcn.00402500
mov dword [esp + 0x2c], 0
inc esi
push esi
lea eax, [esp + 0x18]
push 0x66b41c
push eax
call fcn.00402f80
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
add esp, 0xc
push 4
push edi
push 4
push 0
push ecx
push edx
call ebp
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402570
add edi, 4
cmp esi, dword [ebx + 0x14]
jl 0x513b77
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov dword [ecx], vtable.CRecentGrabberProjects.0
jmp 0x513ad0
Function at 0x513e60
Capabilities:
Delete registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x644108
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0xf003f
push 0
push 0x66b96c
push 0
push str.SoftwareDownloadManagerGrabberSts
push 0x80000001
call esi
test eax, eax
jne 0x513bdc
mov edx, dword [esp + 0x18]
push str.RecentProjects
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0xf003f
push 0
push 0x66b96c
push 0
push str.RecentProjects
push edx
call esi
test eax, eax
jne 0x513bdc
xor esi, esi
cmp dword [ebx + 0x14], esi
jle 0x513bc8
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edi, [ebx + 4]
lea ecx, [esp + 0x14]
call fcn.00402500
mov dword [esp + 0x2c], 0
inc esi
push esi
lea eax, [esp + 0x18]
push 0x66b41c
push eax
call fcn.00402f80
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
add esp, 0xc
push 4
push edi
push 4
push 0
push ecx
push edx
call ebp
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402570
add edi, 4
cmp esi, dword [ebx + 0x14]
jl 0x513b77
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov dword [ecx], vtable.CRecentGrabberProjects.0
jmp 0x513ad0
Function at 0x513e90
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x1c
mov eax, dword [0x7496c8]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [0x74f4b4]
push edi
mov edi, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x10], edi
cmp ecx, ebx
jne 0x513ed4
push str.Advapi32.dll
call fcn.00446c90
mov ecx, eax
add esp, 4
mov dword [0x74f4b4], ecx
cmp ecx, ebx
je 0x51402f
mov eax, dword [0x74f4b8]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x513ef7
push str.GetNamedSecurityInfoA
push ecx
call ebp
mov ecx, dword [0x74f4b4]
mov dword [0x74f4b8], eax
mov edx, dword [0x74f4bc]
cmp edx, ebx
jne 0x513f16
push str.SetNamedSecurityInfoA
push ecx
call ebp
mov edx, eax
mov eax, dword [0x74f4b8]
mov dword [0x74f4bc], edx
cmp eax, ebx
je 0x51402e
cmp edx, ebx
je 0x51402e
lea ecx, [esi + 8]
add esi, 4
push esi
push ebx
push ecx
push ebx
push ebx
push 4
push 4
push edi
mov dword [esp + 0x38], ecx
call eax
test eax, eax
jne 0x51402e
mov eax, dword [0x74f4b4]
push str.AllocateAndInitializeSid
push eax
call ebp
mov edi, eax
cmp edi, ebx
je 0x51402e
mov ecx, dword [0x74f4b4]
push 0x696968
push ecx
call ebp
mov esi, eax
cmp esi, ebx
je 0x51402e
mov edx, dword [0x74f4b4]
push str.InitializeAcl
push edx
call ebp
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x51402e
mov eax, dword [0x74f4b4]
push str.AddAccessDeniedAce
push eax
call ebp
mov ebp, eax
cmp ebp, ebx
je 0x51402e
lea ecx, [esp + 0x10]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x4c], bl
mov byte [esp + 0x4d], bl
mov byte [esp + 0x4e], bl
mov byte [esp + 0x4f], bl
mov byte [esp + 0x50], bl
mov byte [esp + 0x51], 1
call edi
mov eax, dword [esp + 0x10]
push eax
call esi
mov esi, eax
add esi, 0x10
push esi
call fcn.0061586f
add esp, 4
push 2
mov edi, eax
push esi
push edi
call dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
push ecx
push 0x10000000
push 2
push edi
call ebp
mov edx, dword [esp + 0x14]
push ebx
push edi
push ebx
push ebx
push 4
push 4
push edx
call dword [0x74f4bc]
push edi
test eax, eax
je 0x514020
call fcn.0061477c
jmp 0x51402b
call fcn.0061477c
mov eax, dword [esp + 0x1c]
mov dword [eax], ebx
add esp, 4
pop ebp
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00613241
add esp, 0x1c
ret 4