joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dad8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x44c750]
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.00429830
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 5
mov ecx, dword [ebp - 4]
seta al
call fcn.0042a0fe
leave
ret

Function at 0x40dbcb
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x44c750]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push edi
mov edi, 0x100
mov dword [ebp + 0x3a0], eax
xor ebx, ebx
push edi
lea eax, [ebp + 0x1a0]
push eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], ebx
mov byte [ebp - 0x69], bl
push ebx
jmp 0x40dca2
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
lea eax, [ebp + 0x1a0]
push eax
push dword [ebp + 0x3ac]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40dc94
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push str.GDFBinaryPath
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40dc86
push dword [ebp + 0x3b0]
lea eax, [ebp - 0x68]
push eax
call fcn.0042b193
test eax, eax
pop ecx
pop ecx
jne 0x40dc86
push dword [ebp + 0x3b4]
lea eax, [ebp + 0x1a0]
push eax
mov byte [ebp - 0x69], 1
call fcn.0040db2a
pop ecx
pop ecx
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x69], bl
jne 0x40dcb2
inc dword [ebp - 0x70]
push edi
lea eax, [ebp + 0x1a0]
push eax
push dword [ebp - 0x70]
push dword [ebp + 0x3ac]
call esi
test eax, eax
je 0x40dc0b
mov ecx, dword [ebp + 0x3a0]
mov al, byte [ebp - 0x69]
pop edi
pop esi
pop ebx
call fcn.0042a0fe
add ebp, 0x3a4
leave
ret
Function at 0x40dccb
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov eax, 0x2c14
lea ebp, [esp - 0x2b94]
call fcn.0042a090
mov eax, dword [0x44c750]
push ebx
push esi
xor ebx, ebx
push ebx
mov dword [ebp + 0x2b90], eax
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
lea eax, [ebp - 0x78]
push eax
push 0x443ea8
push 1
push ebx
push 0x443ec8
setge byte [ebp - 0x71]
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x40ddfb
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
push ebx
push ebx
mov edi, 0x2800
push edi
lea eax, [ebp - 0x70]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x2b9c]
mov byte [ebp - 0x70], bl
push ebx
push ebx
call esi
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
lea edx, [ebp - 0x70]
push edx
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x2ba0], ebx
je 0x40dd74
push ebx
push ebx
push edi
lea eax, [ebp - 0x70]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x2ba0]
mov byte [ebp - 0x70], bl
push ebx
push ebx
call esi
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
lea edx, [ebp - 0x70]
push edx
push eax
call dword [ecx + 0x2c]
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x2790]
push eax
push 0x200
push dword [ebp + 0x2b9c]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [ebp - 0x80]
cmp eax, ebx
je 0x40dd9a
mov word [eax], bx
push ebx
push ebx
push edi
lea eax, [ebp - 0x70]
push eax
push 0xffffffffffffffff
lea eax, [ebp + 0x2790]
push eax
push ebx
push ebx
mov byte [ebp - 0x70], bl
call esi
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
lea edx, [ebp - 0x70]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
lea edx, [ebp - 0x7c]
push edx
push 0x43f470
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
pop edi
jl 0x40ddf2
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x2ba4]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp - 0x71], bl
je 0x40de06
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp + 0x2b90]
mov eax, esi
pop esi
pop ebx
call fcn.0042a0fe
add ebp, 0x2b94
leave
ret
Function at 0x40de44
Capabilities:
Delete registry key

Disassembly:
push ebp
lea ebp, [esp - 0x88c]
sub esp, 0x90c
mov eax, dword [0x44c750]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov dword [ebp + 0x888], eax
mov dword [ebp - 0x80], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
lea eax, [ebp - 0x80]
push eax
push 0x43e9ac
push 1
push ebx
push 0x43e99c
setge byte [ebp - 0x79]
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x40deae
mov esi, dword [ebp + 0x894]
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x10]
mov esi, eax
jmp 0x40df4b
cmp dword [ebp + 0x894], ebx
je 0x40df4b
push 0x3f
pop ecx
xor eax, eax
mov word [ebp + 0x788], bx
lea edi, [ebp + 0x78a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x80
lea eax, [ebp + 0x788]
push eax
push dword [ebp + 0x894]
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov esi, eax
cmp esi, ebx
jl 0x40df4b
lea eax, [ebp + 0x788]
push eax
push str.SoftwareClassesSoftwareMicrosoftWindowsCurrentVersionGameUXGamesToFindOnWindowsUpgrade_s
mov esi, 0x400
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.0040de1d
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
add esp, 0x10
test eax, eax
jl 0x40df21
lea eax, [ebp - 0x78]
push eax
push SysReAllocString
call edi
lea eax, [ebp + 0x788]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionGameUXGamesToFindOnWindowsUpgrade_s
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.0040de1d
add esp, 0x10
test eax, eax
jl 0x40df49
lea eax, [ebp - 0x78]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
xor esi, esi
mov eax, dword [ebp - 0x80]
cmp eax, ebx
je 0x40df58
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp - 0x79], bl
je 0x40df63
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp + 0x888]
mov eax, esi
call fcn.0042a0fe
pop edi
pop esi
pop ebx
add ebp, 0x88c
leave
ret 4
Function at 0x40e2a5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0c
mov eax, dword [0x44c750]
push ebx
mov dword [ebp - 4], eax
xor ebx, ebx
cmp dword [ebp + 8], 2
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
jne 0x40e2cc
push 0x1c
jmp 0x40e2ce
push 0x23
push ebx
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathW]
push 0x100
lea eax, [ebp - 0x60c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ole32.dll_StringFromGUID2]
cmp eax, ebx
jl 0x40e390
cmp dword [ebp + 0x10], ebx
mov eax, str.SupportTasks
jne 0x40e301
mov eax, str.PlayTasks
push esi
push dword [ebp + 0x14]
mov esi, 0x200
push eax
lea eax, [ebp - 0x60c]
push eax
lea eax, [ebp - 0x20c]
push eax
push str._sMicrosoftWindowsGameExplorer_s_s_d
lea eax, [ebp - 0xa0c]
push esi
push eax
call fcn.0040de1d
add esp, 0x1c
push ebx
push ebx
push esi
lea eax, [ebp - 0x40c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xa0c]
push eax
push ebx
push ebx
mov byte [ebp - 0x40c], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x40c]
push ebx
push eax
call fcn.0041430a
push dword [ebp + 0x18]
lea eax, [ebp - 0xa0c]
push eax
push 0x43ec04
lea eax, [ebp - 0xe0c]
push esi
push eax
call fcn.0040de1d
lea eax, [ebp - 0xe0c]
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call fcn.0040dccb
add esp, 0x28
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0042a0fe
leave
ret 0x1c
Function at 0x40e39d
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov eax, 0x3234
lea ebp, [esp - 0x31b4]
call fcn.0042a090
mov eax, dword [0x44c750]
push ebx
push esi
mov esi, dword [sym.imp.SHFOLDER.dll_SHGetFolderPathW]
push edi
mov dword [ebp + 0x31b0], eax
xor ebx, ebx
xor eax, eax
mov word [ebp + 0x2db0], bx
mov ecx, 0xff
lea edi, [ebp + 0x2db2]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 0x29a8]
push eax
push ebx
push ebx
push 0x1c
push ebx
call esi
cmp eax, ebx
jl 0x40e517
lea eax, [ebp + 0x27a0]
push eax
push ebx
push ebx
push 0x23
push ebx
call esi
cmp eax, ebx
jl 0x40e517
push 0x100
lea eax, [ebp + 0x2bb0]
push eax
push dword [ebp + 0x31bc]
call dword [sym.imp.ole32.dll_StringFromGUID2]
cmp eax, ebx
jl 0x40e517
lea eax, [ebp + 0x2bb0]
push eax
lea eax, [ebp + 0x29a8]
push eax
push str._sMicrosoftWindowsGameExplorer_s
lea eax, [ebp + 0x2db0]
push 0x200
push eax
call fcn.0040de1d
add esp, 0x14
cmp eax, ebx
jl 0x40e517
push 0x1e
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00429830
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0xc
push ebx
push ebx
push 0x2800
lea eax, [ebp - 0x60]
push eax
push 0xffffffffffffffff
lea eax, [ebp + 0x2db0]
push eax
push ebx
push ebx
mov dword [ebp - 0x7c], 3
mov byte [ebp - 0x60], bl
call esi
mov edi, dword [sym.imp.SHELL32.dll_SHFileOperationA]
lea eax, [ebp - 0x60]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
mov word [ebp - 0x70], 0x414
call edi
lea eax, [ebp + 0x2bb0]
push eax
lea eax, [ebp + 0x27a0]
push eax
push str._sMicrosoftWindowsGameExplorer_s
lea eax, [ebp + 0x2db0]
push 0x200
push eax
call fcn.0040de1d
add esp, 0x14
cmp eax, ebx
jl 0x40e517
push 0x1e
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00429830
add esp, 0xc
push ebx
push ebx
push 0x2800
lea eax, [ebp - 0x60]
push eax
push 0xffffffffffffffff
lea eax, [ebp + 0x2db0]
push eax
push ebx
push ebx
mov dword [ebp - 0x7c], 3
mov byte [ebp - 0x60], bl
call esi
lea eax, [ebp - 0x60]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
mov word [ebp - 0x70], 0x414
call edi
xor eax, eax
mov ecx, dword [ebp + 0x31b0]
pop edi
pop esi
pop ebx
call fcn.0042a0fe
add ebp, 0x31b4
leave
ret 4
Function at 0x40ec2b
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x43b859
call fcn.00429d5c
push ecx
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 0x98]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x43ed18
call fcn.00423739
xor ebx, ebx
lea ecx, [esi + 0xac]
mov dword [ebp - 4], ebx
call fcn.00423739
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe0], ebx
mov dword [esi + 4], ebx
mov byte [esi + 0xe4], bl
mov byte [esi + 8], bl
mov byte [esi + 9], bl
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xd4], ebx
mov dword [esi + 0xd8], ebx
mov byte [esi + 0xa], 1
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x411170
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x44c750]
push ebx
push esi
push edi
mov dword [ebp + 0x8c], eax
mov byte [ebp - 0x7d], 0
call fcn.00429dc0
test eax, eax
pop ecx
jbe 0x4111a6
cmp byte [eax + edi - 1], 0x5c
mov ebx, 0x43f0a0
jne 0x4111ab
mov ebx, 0x43dd00
xor eax, eax
xor esi, esi
test eax, eax
je 0x4111ba
push eax
call fcn.0042a2f4
pop ecx
push esi
push ebx
push edi
lea eax, [ebp - 0x7c]
push str._s_stemp._d.dat
push eax
call fcn.0042b5ed
lea eax, [ebp - 0x7c]
push 0x43f08c
push eax
inc esi
call fcn.0042a671
add esp, 0x1c
test eax, eax
je 0x4111e8
cmp esi, 0x64
jl 0x4111af
jmp 0x411211
lea eax, [ebp - 0x7c]
push 0x43f088
push eax
call fcn.0042a671
test eax, eax
pop ecx
pop ecx
je 0x411211
push eax
call fcn.0042a2f4
pop ecx
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 0x7d], 1
mov ecx, dword [ebp + 0x8c]
mov al, byte [ebp - 0x7d]
pop esi
pop ebx
call fcn.0042a0fe
add ebp, 0x90
leave
ret
Function at 0x411229
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [ebx + 0xd4], edi
mov dword [ebp - 4], edi
jne 0x411247
mov eax, 0x400
jmp 0x4112b9
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push str.SoftwareMicrosoftInternet_ExplorerNew_WindowsAllow
push SysReAllocString
mov dword [ebp + 8], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4112af
mov eax, dword [ebx + 0xd4]
cmp dword [eax], edi
je 0x4112a4
push esi
xor esi, esi
push edi
push edi
push 3
push edi
push dword [esi + eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x411295
or dword [ebp - 4], 0x20
mov eax, dword [ebx + 0xd4]
add esi, 4
cmp dword [esi + eax], edi
jne 0x41127c
pop esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4112b6
mov dword [ebp - 4], 0x40
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x4112bd
Capabilities:
Copy file
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1bc]
sub esp, 0x23c
mov eax, dword [0x44c750]
push esi
mov dword [ebp + 0x1b8], eax
xor esi, esi
lea eax, [ebp - 0x64]
push eax
push 8
push esi
push str.SoftwareMozilla
push dword [ebp + 0x1c8]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x70], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411496
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov edi, 0x104
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x68]
mov dword [ebp - 0x60], edi
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, esi
mov dword [ebp - 0x78], eax
jne 0x411483
lea eax, [ebp - 0x58]
push str.Extensions
push eax
call fcn.0042a1c0
pop ecx
pop ecx
lea eax, [ebp - 0x70]
push eax
push 1
push esi
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411483
inc dword [ebp - 0x74]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 0xb0]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push str.Plugins
push dword [ebp - 0x70]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x6c], 1
call ebx
test eax, eax
jne 0x4113f8
lea eax, [ebp + 0xb0]
push eax
call fcn.00429dc0
pop ecx
lea ecx, [ebp + 0xb0]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x4113c2
lea eax, [ebp + 0xb0]
push 0x43da04
push eax
call fcn.0042a1c0
pop ecx
pop ecx
mov eax, dword [ebp + 0x1c4]
push dword [eax + 0xc4]
lea eax, [ebp + 0xb0]
push eax
call fcn.0042a1c0
pop ecx
pop ecx
push esi
lea eax, [ebp + 0xb0]
push eax
push dword [ebp + 0x1cc]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4113f8
or dword [ebp - 0x5c], 8
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 0xb0]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push str.Components
push dword [ebp - 0x70]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x6c], 1
call ebx
test eax, eax
jne 0x411483
lea eax, [ebp + 0xb0]
push eax
call fcn.00429dc0
pop ecx
lea ecx, [ebp + 0xb0]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x41144d
lea eax, [ebp + 0xb0]
push 0x43da04
push eax
call fcn.0042a1c0
pop ecx
pop ecx
mov eax, dword [ebp + 0x1c4]
push dword [eax + 0xc8]
lea eax, [ebp + 0xb0]
push eax
call fcn.0042a1c0
pop ecx
pop ecx
push esi
lea eax, [ebp + 0xb0]
push eax
push dword [ebp + 0x1d0]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x411483
or dword [ebp - 0x5c], 0x10
inc dword [ebp - 0x68]
cmp dword [ebp - 0x78], esi
je 0x411315
cmp dword [ebp - 0x74], esi
pop edi
pop ebx
jne 0x41149a
or byte [ebp - 0x5c], 0x80
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x1b8]
mov eax, dword [ebp - 0x5c]
pop esi
call fcn.0042a0fe
add ebp, 0x1bc
leave
ret
Function at 0x4114da
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push esi
push edi
je 0x411571
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x411571
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
jbe 0x41156a
push eax
call fcn.004279e4
mov esi, eax
test esi, esi
pop ecx
jne 0x411519
mov eax, 0x8007000e
jmp 0x411576
push esi
push dword [ebp - 4]
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x411563
and dword [ebp + 8], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x43da04
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x411563
mov eax, dword [ebp + 8]
test eax, eax
je 0x411563
mov ecx, dword [eax + 8]
mov dword [edi + 4], ecx
mov eax, dword [eax + 0xc]
push esi
mov dword [edi], eax
call fcn.0042aaf6
pop ecx
xor eax, eax
jmp 0x411576
push esi
call fcn.0042aaf6
pop ecx
mov eax, 0x80004005
jmp 0x411576
mov eax, 0x80070057
pop edi
pop esi
leave
ret
Function at 0x4117a1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x44c750]
push ebx
push edi
push str.advapi32.dll
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x4117cb
xor al, al
jmp 0x411938
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43f190
push edi
call esi
push str.SetEntriesInAclA
push edi
mov dword [ebp - 0x10], eax
call esi
push str.InitializeSecurityDescriptor
push edi
mov dword [ebp - 0x24], eax
call esi
push str.SetSecurityDescriptorDacl
push edi
mov dword [ebp - 0x20], eax
call esi
push str.SetFileSecurityA
push edi
mov dword [ebp - 0x18], eax
call esi
push str.RegSetKeySecurity
push edi
mov dword [ebp - 0x1c], eax
call esi
push 0x43f110
push edi
mov dword [ebp - 0x28], eax
call esi
cmp dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], eax
je 0x411935
cmp dword [ebp - 0x24], ebx
je 0x411935
cmp dword [ebp - 0x20], ebx
je 0x411935
cmp dword [ebp - 0x18], ebx
je 0x411935
cmp dword [ebp - 0x1c], ebx
je 0x411935
cmp dword [ebp - 0x28], ebx
je 0x411935
cmp eax, ebx
je 0x411935
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 1
call dword [ebp - 0x10]
test eax, eax
je 0x411931
push 0x20
lea eax, [ebp - 0x4c]
push ebx
push eax
call fcn.00429830
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push esi
mov dword [ebp - 0x4c], 0x1fffff
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 5
mov dword [ebp - 0x10], ebx
call dword [ebp - 0x24]
test eax, eax
jne 0x41192b
push 0x14
call fcn.004279e4
pop ecx
mov edi, eax
push esi
push edi
call dword [ebp - 0x20]
test eax, eax
je 0x41191b
push ebx
push dword [ebp - 0x10]
push esi
push edi
call dword [ebp - 0x18]
test eax, eax
je 0x41191b
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x411908
mov eax, dword [eax + 4]
jmp 0x41190b
add eax, 4
push edi
push 4
push eax
call dword [ebp - 0x1c]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call fcn.00429d7b
pop ecx
push dword [ebp - 0x14]
call dword [ebp - 0x2c]
mov al, bl
jmp 0x411937
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0042a0fe
leave
ret
Function at 0x411dee
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x44c750]
mov ecx, dword [ebp + 0xa8]
push 0x43d9f1
mov dword [ebp + 0x94], eax
call fcn.00411cd7
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x78]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push dword [ebp + 0xa0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411e95
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push dword [ebp + 0xa4]
mov dword [ebp - 0x7c], 0x104
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x411e8c
mov eax, dword [ebp - 0x7c]
test eax, eax
mov byte [ebp + eax - 0x74], 0
jbe 0x411e8c
push edi
lea edi, [ebp - 0x74]
call fcn.00411170
test al, al
pop edi
je 0x411e8c
mov ecx, dword [ebp + 0xa8]
lea eax, [ebp - 0x74]
push eax
call fcn.00411cd7
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x94]
call fcn.0042a0fe
add ebp, 0x98
leave
ret

Function at 0x411ea8
Capabilities:
Get common file path

Disassembly:
mov eax, 0x43bbdb
call fcn.00429d5c
sub esp, 0x12c
mov eax, dword [0x44c750]
push ebx
xor ebx, ebx
push 0x43d9f1
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x138], ebx
call fcn.00411cf4
lea eax, [ebp - 0x2c]
push eax
push str.Common_AppData
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call fcn.00411dee
add esp, 0xc
cmp dword [ebp - 0x18], ebx
je 0x411f06
call fcn.0040dad8
test al, al
je 0x411f1c
call fcn.0040da35
test al, al
jne 0x411f1c
lea eax, [ebp - 0x2c]
push eax
push str.AppData
push SysReAllocString
call fcn.00411dee
add esp, 0xc
cmp dword [ebp - 0x18], ebx
jne 0x411f63
push esi
lea eax, [ebp - 0x134]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, ebx
jbe 0x411f3d
cmp eax, esi
jbe 0x411f5d
push edi
lea edi, [ebp - 0x134]
call fcn.00411170
test al, al
pop edi
je 0x411f5d
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00411cd7
cmp dword [ebp - 0x18], ebx
pop esi
je 0x411fa7
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x411f6f
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmp byte [eax + ecx - 1], 0x5c
je 0x411f85
push 0x5c
push 1
lea ecx, [ebp - 0x2c]
call fcn.00411a94
push 0xffffffffffffffff
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
call fcn.00411b83
lea eax, [ebp - 0x2c]
push eax
call fcn.00411d34
lea eax, [ebp - 0x2c]
push eax
call fcn.004117a1
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.00411c87
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004116ec
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0042a0fe
leave
ret