joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40de02
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov eax, 0x2c14
lea ebp, [esp - 0x2b94]
call fcn.0042a510
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 0x443fa0
push 1
push ebx
push 0x443fc0
setge byte [ebp - 0x71]
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x40df32
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 0x40deab
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 0x40ded1
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 0x43f530
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
pop edi
jl 0x40df29
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 0x40df3d
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp + 0x2b90]
mov eax, esi
pop esi
pop ebx
call fcn.0042a57e
add ebp, 0x2b94
leave
ret
Function at 0x40df7b
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 0x43ea4c
push 1
push ebx
push 0x43ea3c
setge byte [ebp - 0x79]
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x40dfe5
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 0x40e082
cmp dword [ebp + 0x894], ebx
je 0x40e082
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 0x40e082
lea eax, [ebp + 0x788]
push eax
push str.SoftwareClassesSoftwareMicrosoftWindowsCurrentVersionGameUXGamesToFindOnWindowsUpgrade_s
mov esi, 0x400
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.0040df54
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
add esp, 0x10
test eax, eax
jl 0x40e058
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.0040df54
add esp, 0x10
test eax, eax
jl 0x40e080
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 0x40e08f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp - 0x79], bl
je 0x40e09a
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp + 0x888]
mov eax, esi
call fcn.0042a57e
pop edi
pop esi
pop ebx
add ebp, 0x88c
leave
ret 4
Function at 0x40e3dc
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 0x40e403
push 0x1c
jmp 0x40e405
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 0x40e4c7
cmp dword [ebp + 0x10], ebx
mov eax, str.SupportTasks
jne 0x40e438
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.0040df54
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.00414596
push dword [ebp + 0x18]
lea eax, [ebp - 0xa0c]
push eax
push 0x43eca4
lea eax, [ebp - 0xe0c]
push esi
push eax
call fcn.0040df54
lea eax, [ebp - 0xe0c]
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call fcn.0040de02
add esp, 0x28
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0042a57e
leave
ret 0x1c
Function at 0x40e4d4
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov eax, 0x3234
lea ebp, [esp - 0x31b4]
call fcn.0042a510
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 0x40e64e
lea eax, [ebp + 0x27a0]
push eax
push ebx
push ebx
push 0x23
push ebx
call esi
cmp eax, ebx
jl 0x40e64e
push 0x100
lea eax, [ebp + 0x2bb0]
push eax
push dword [ebp + 0x31bc]
call dword [sym.imp.ole32.dll_StringFromGUID2]
cmp eax, ebx
jl 0x40e64e
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.0040df54
add esp, 0x14
cmp eax, ebx
jl 0x40e64e
push 0x1e
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00429cb0
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.0040df54
add esp, 0x14
cmp eax, ebx
jl 0x40e64e
push 0x1e
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00429cb0
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.0042a57e
add ebp, 0x31b4
leave
ret 4
Function at 0x40ed62
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x43bd0e
call fcn.0042a1dc
push ecx
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 0xa8]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x43edb8
call fcn.00423bc2
xor ebx, ebx
lea ecx, [esi + 0xbc]
mov dword [ebp - 4], ebx
call fcn.00423bc2
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 + 0xec], ebx
mov dword [esi + 0xf0], ebx
mov dword [esi + 4], ebx
mov byte [esi + 0xf4], 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 + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xd4], ebx
mov dword [esi + 0xd8], ebx
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xe8], ebx
mov byte [esi + 0xa], 1
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x411400
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.0042a240
test eax, eax
pop ecx
jbe 0x411436
cmp byte [eax + edi - 1], 0x5c
mov ebx, 0x43f160
jne 0x41143b
mov ebx, 0x43ddb0
xor eax, eax
xor esi, esi
test eax, eax
je 0x41144a
push eax
call fcn.0042a774
pop ecx
push esi
push ebx
push edi
lea eax, [ebp - 0x7c]
push str._s_stemp._d.dat
push eax
call fcn.0042b039
lea eax, [ebp - 0x7c]
push 0x43f14c
push eax
inc esi
call fcn.0042aaf1
add esp, 0x1c
test eax, eax
je 0x411478
cmp esi, 0x64
jl 0x41143f
jmp 0x4114a1
lea eax, [ebp - 0x7c]
push 0x43f148
push eax
call fcn.0042aaf1
test eax, eax
pop ecx
pop ecx
je 0x4114a1
push eax
call fcn.0042a774
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.0042a57e
add ebp, 0x90
leave
ret
Function at 0x4114b9
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 + 0xe4], edi
mov dword [ebp - 4], edi
jne 0x4114d7
mov eax, 0x400
jmp 0x411549
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 0x41153f
mov eax, dword [ebx + 0xe4]
cmp dword [eax], edi
je 0x411534
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 0x411525
or dword [ebp - 4], 0x20
mov eax, dword [ebx + 0xe4]
add esi, 4
cmp dword [esi + eax], edi
jne 0x41150c
pop esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x411546
mov dword [ebp - 4], 0x40
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x41154d
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 0x411726
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 0x411713
lea eax, [ebp - 0x58]
push str.Extensions
push eax
call fcn.0042a640
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 0x411713
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 0x411688
lea eax, [ebp + 0xb0]
push eax
call fcn.0042a240
pop ecx
lea ecx, [ebp + 0xb0]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x411652
lea eax, [ebp + 0xb0]
push 0x43dab4
push eax
call fcn.0042a640
pop ecx
pop ecx
mov eax, dword [ebp + 0x1c4]
push dword [eax + 0xd4]
lea eax, [ebp + 0xb0]
push eax
call fcn.0042a640
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 0x411688
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 0x411713
lea eax, [ebp + 0xb0]
push eax
call fcn.0042a240
pop ecx
lea ecx, [ebp + 0xb0]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x4116dd
lea eax, [ebp + 0xb0]
push 0x43dab4
push eax
call fcn.0042a640
pop ecx
pop ecx
mov eax, dword [ebp + 0x1c4]
push dword [eax + 0xd8]
lea eax, [ebp + 0xb0]
push eax
call fcn.0042a640
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 0x411713
or dword [ebp - 0x5c], 0x10
inc dword [ebp - 0x68]
cmp dword [ebp - 0x78], esi
je 0x4115a5
cmp dword [ebp - 0x74], esi
pop edi
pop ebx
jne 0x41172a
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.0042a57e
add ebp, 0x1bc
leave
ret
Function at 0x41176a
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 0x411801
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x411801
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
jbe 0x4117fa
push eax
call fcn.00427e64
mov esi, eax
test esi, esi
pop ecx
jne 0x4117a9
mov eax, 0x8007000e
jmp 0x411806
push esi
push dword [ebp - 4]
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4117f3
and dword [ebp + 8], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x43dab4
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4117f3
mov eax, dword [ebp + 8]
test eax, eax
je 0x4117f3
mov ecx, dword [eax + 8]
mov dword [edi + 4], ecx
mov eax, dword [eax + 0xc]
push esi
mov dword [edi], eax
call fcn.0042af76
pop ecx
xor eax, eax
jmp 0x411806
push esi
call fcn.0042af76
pop ecx
mov eax, 0x80004005
jmp 0x411806
mov eax, 0x80070057
pop edi
pop esi
leave
ret
Function at 0x411a31
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 0x411a5b
xor al, al
jmp 0x411bc8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43f250
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 0x43f1d0
push edi
mov dword [ebp - 0x28], eax
call esi
cmp dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], eax
je 0x411bc5
cmp dword [ebp - 0x24], ebx
je 0x411bc5
cmp dword [ebp - 0x20], ebx
je 0x411bc5
cmp dword [ebp - 0x18], ebx
je 0x411bc5
cmp dword [ebp - 0x1c], ebx
je 0x411bc5
cmp dword [ebp - 0x28], ebx
je 0x411bc5
cmp eax, ebx
je 0x411bc5
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 0x411bc1
push 0x20
lea eax, [ebp - 0x4c]
push ebx
push eax
call fcn.00429cb0
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 0x411bbb
push 0x14
call fcn.00427e64
pop ecx
mov edi, eax
push esi
push edi
call dword [ebp - 0x20]
test eax, eax
je 0x411bab
push ebx
push dword [ebp - 0x10]
push esi
push edi
call dword [ebp - 0x18]
test eax, eax
je 0x411bab
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x411b98
mov eax, dword [eax + 4]
jmp 0x411b9b
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.0042a1fb
pop ecx
push dword [ebp - 0x14]
call dword [ebp - 0x2c]
mov al, bl
jmp 0x411bc7
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0042a57e
leave
ret
Function at 0x41207e
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 0x43daa1
mov dword [ebp + 0x94], eax
call fcn.00411f67
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 0x412125
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 0x41211c
mov eax, dword [ebp - 0x7c]
test eax, eax
mov byte [ebp + eax - 0x74], 0
jbe 0x41211c
push edi
lea edi, [ebp - 0x74]
call fcn.00411400
test al, al
pop edi
je 0x41211c
mov ecx, dword [ebp + 0xa8]
lea eax, [ebp - 0x74]
push eax
call fcn.00411f67
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x94]
call fcn.0042a57e
add ebp, 0x98
leave
ret

Function at 0x412138
Capabilities:
Get common file path

Disassembly:
mov eax, 0x43c090
call fcn.0042a1dc
sub esp, 0x12c
mov eax, dword [0x44c750]
push ebx
xor ebx, ebx
push 0x43daa1
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x138], ebx
call fcn.00411f84
lea eax, [ebp - 0x2c]
push eax
push str.Common_AppData
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call fcn.0041207e
add esp, 0xc
cmp dword [ebp - 0x18], ebx
je 0x412196
call fcn.0040dc0f
test al, al
je 0x4121ac
call fcn.0040db6c
test al, al
jne 0x4121ac
lea eax, [ebp - 0x2c]
push eax
push str.AppData
push SysReAllocString
call fcn.0041207e
add esp, 0xc
cmp dword [ebp - 0x18], ebx
jne 0x4121f3
push esi
lea eax, [ebp - 0x134]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, ebx
jbe 0x4121cd
cmp eax, esi
jbe 0x4121ed
push edi
lea edi, [ebp - 0x134]
call fcn.00411400
test al, al
pop edi
je 0x4121ed
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00411f67
cmp dword [ebp - 0x18], ebx
pop esi
je 0x412237
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x4121ff
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmp byte [eax + ecx - 1], 0x5c
je 0x412215
push 0x5c
push 1
lea ecx, [ebp - 0x2c]
call fcn.00411d24
push 0xffffffffffffffff
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
call fcn.00411e13
lea eax, [ebp - 0x2c]
push eax
call fcn.00411fc4
lea eax, [ebp - 0x2c]
push eax
call fcn.00411a31
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.00411f17
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0041197c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0042a57e
leave
ret
Function at 0x413408
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0xc0]
sub esp, 0x140
mov eax, dword [0x44c750]
push edi
mov dword [ebp + 0xbc], eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
xor edi, edi
push edi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0xc8]
mov dword [ebp - 0x5c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x41355f
mov eax, dword [ebp - 0x58]
push ebx
inc eax
push esi
push eax
mov dword [ebp - 0x4c], eax
call fcn.00427e69
mov ebx, eax
mov eax, dword [ebp - 0x58]
inc eax
push eax
push edi
push ebx
mov dword [ebp - 0x4c], eax
call fcn.00429cb0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0x10
lea eax, [ebp - 0x4c]
push eax
push ebx
lea eax, [ebp - 0x54]
push eax
push edi
push str.Publisher
push dword [ebp + 0xc8]
call esi
test eax, eax
jne 0x413556
cmp dword [ebp - 0x54], 1
jne 0x413556
push str.Zylom_Games
push ebx
call fcn.0042af0d
test eax, eax
pop ecx
pop ecx
jne 0x413556
mov eax, dword [ebp - 0x58]
inc eax
push eax
push edi
push ebx
mov dword [ebp - 0x4c], eax
call fcn.00429cb0
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
push ebx
lea eax, [ebp - 0x54]
push eax
push edi
push str.GameID
push dword [ebp + 0xc8]
call esi
test eax, eax
jne 0x413556
cmp dword [ebp - 0x54], 4
jne 0x413556
push 4
lea eax, [ebp - 0x50]
push ebx
push eax
mov dword [ebp - 0x50], edi
call fcn.0042ab10
add esp, 0xc
cmp dword [ebp - 0x50], edi
jbe 0x413556
mov esi, dword [ebp + 0xd0]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
cmp eax, dword [ebp - 0x50]
jne 0x413556
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x40]
push 4
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push eax
push 4
push edi
push str.BuildType
push dword [ebp + 0xc8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
call fcn.0042a1fb
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp + 0xbc]
pop edi
call fcn.0042a57e
add ebp, 0xc0
leave
ret