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

Disassembly:
push ebp
lea ebp, [esp - 0x4ec]
sub esp, 0x56c
mov eax, dword [0x4d4268]
xor eax, ebp
mov dword [ebp + 0x4e8], eax
push ebx
push esi
mov esi, dword [ebp + 0x4f4]
push edi
mov edi, 0x11c
push edi
lea eax, [ebp - 0x44]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x48], ebx
call fcn.00472c30
push edi
push 0
push esi
mov dword [ebp - 0x44], edi
call fcn.00472c30
add esp, 0x18
push esi
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esi + 4], 5
jne 0x40ca1a
mov ecx, ebx
call fcn.0040c2d8
test eax, eax
je 0x40ca1a
and dword [ebx + 4], 0
jmp 0x40cac9
lea eax, [ebp - 0x44]
push eax
mov ecx, ebx
call fcn.0040c3a0
mov ebx, dword [esi + 4]
mov eax, dword [ebp - 0x40]
imul ebx, ebx, 0xa
add ebx, dword [esi + 8]
imul eax, eax, 0xa
add eax, dword [ebp - 0x3c]
cmp eax, ebx
mov dword [ebp - 0x4c], eax
jle 0x40ca4f
push edi
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.00472880
mov ebx, dword [ebp - 0x4c]
add esp, 0xc
xor eax, eax
push 0x40e
push eax
mov word [ebp + 0xd8], ax
lea eax, [ebp + 0xda]
push eax
call fcn.00472c30
mov edi, dword [ebp - 0x48]
add esp, 0xc
lea eax, [ebp + 0xd8]
push eax
mov ecx, edi
call fcn.0040c318
test eax, eax
jl 0x40cac5
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0xd8]
push eax
mov ecx, edi
call fcn.0040c3d1
test eax, eax
je 0x40cac5
mov ecx, dword [ebp - 0x70]
movzx edx, word [ebp - 0x70]
shr ecx, 0x10
mov eax, ecx
imul eax, eax, 0xa
add eax, edx
cmp ebx, eax
jge 0x40cac5
mov eax, dword [ebp - 0x6c]
shr eax, 0x10
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov dword [edi + 4], 1
jmp 0x40cac9
and dword [edi + 4], 0
mov ecx, dword [ebp + 0x4e8]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00472031
add ebp, 0x4ec
leave
ret 4
Function at 0x40cc00
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x2e8
mov eax, dword [0x4d4268]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
mov ebx, 0x2001f
push ebx
push esi
push esi
push str.SoftwareClassesFolder_shell
mov edi, 0x80000001
push edi
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x260], esi
call fcn.0040c093
test eax, eax
je 0x40cc69
lea ecx, [ebp - 0x264]
call fcn.0040c078
xor eax, eax
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00472031
add ebp, 0x78
leave
ret
xor eax, eax
push 0xc6
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push esi
push eax
call fcn.00472c30
add esp, 0xc
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x268], 0x64
call fcn.0040c166
push str.360FileBrowser
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x40cc4a
push esi
push esi
push ebx
push esi
push esi
push str.SoftwareClassesFolder_shell360FileBrowsercommand
push edi
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x26c], esi
call fcn.0040c093
test eax, eax
je 0x40cd0b
push 1
push 0x4ca314
push esi
lea ecx, [ebp - 0x264]
call fcn.0040c1ef
lea ecx, [ebp - 0x270]
call fcn.0040c078
lea ecx, [ebp - 0x264]
call fcn.0040c078
mov eax, esi
jmp 0x40cc57
xor eax, eax
push 0x206
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x25a]
push esi
push eax
call fcn.00472c30
add esp, 0xc
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x25c]
push eax
push esi
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x268], 0x104
call fcn.0040c166
lea eax, [ebp - 0x25c]
push eax
call fcn.00473a26
pop ecx
test eax, eax
jbe 0x40ccee
cmp word [ebp - 0x25c], 0x22
jne 0x40ccee
lea eax, [ebp - 0x25a]
push 0x22
push eax
call fcn.00472caa
pop ecx
pop ecx
cmp eax, esi
je 0x40cd81
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x25a]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ccee
xor esi, esi
inc esi
jmp 0x40ccee

Function at 0x40cdeb
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 2
mov edi, str.SOFTWARE360FileBrowserSetting
push edi
xor ebx, ebx
mov esi, 0x80000001
push esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.0040c0ed
cmp eax, 2
jne 0x40ce2a
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push edi
push esi
lea ecx, [ebp - 0xc]
call fcn.0040c093
cmp eax, ebx
jne 0x40ce4c
push 4
lea eax, [ebp - 4]
push eax
push 4
push ebx
push str.replacesys
push dword [ebp - 0xc]
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0xc]
call fcn.0040c078
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cf6e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 2
mov edi, str.SOFTWARE360FileBrowserSetting
push edi
xor ebx, ebx
mov esi, 0x80000001
push esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.0040c0ed
cmp eax, 2
jne 0x40cfad
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push edi
push esi
lea ecx, [ebp - 0xc]
call fcn.0040c093
cmp eax, ebx
jne 0x40cfcb
push 4
lea eax, [ebp - 4]
push eax
push 4
push ebx
push str.replacesys
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0xc]
call fcn.0040c078
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d02f
Capabilities:
Create process on windows
Create process suspended
Get common file path
Resume thread
Self delete

Disassembly:
push ebp
lea ebp, [esp - 0x7f8]
sub esp, 0x878
mov eax, dword [0x4d4268]
xor eax, ebp
mov dword [ebp + 0x7f4], eax
push ebx
push esi
push edi
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp + 0x3e4], ax
xor ebx, ebx
lea eax, [ebp + 0x3e6]
push ebx
push eax
call fcn.00472c30
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp + 0x3e4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
push edi
mov word [ebp + 0x1dc], ax
lea eax, [ebp + 0x1de]
push ebx
push eax
call fcn.00472c30
add esp, 0xc
push esi
lea eax, [ebp + 0x1dc]
push eax
lea eax, [ebp + 0x3e4]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
xor eax, eax
push edi
mov word [ebp + 0x5ec], ax
lea eax, [ebp + 0x5ee]
push ebx
push eax
call fcn.00472c30
add esp, 0xc
push esi
lea eax, [ebp + 0x5ec]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.cmd.exe
lea eax, [ebp + 0x5ec]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x44
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00472c30
xor eax, eax
push 0x10
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x3c]
push ebx
push eax
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x54], 1
call fcn.00472c30
xor eax, eax
push edi
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x2a]
push ebx
push eax
call fcn.00472c30
lea eax, [ebp + 0x1dc]
push eax
lea eax, [ebp + 0x5ec]
push eax
push str._s__c_del__s
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.0040c957
add esp, 0x38
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push 4
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40d19a
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call esi
push 0x40
push dword [ebp - 0x3c]
call esi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x3c]
call esi
mov ecx, dword [ebp + 0x7f4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00472031
add ebp, 0x7f8
leave
ret
Function at 0x40dca8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4d4268]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
call fcn.0040dbed
test eax, eax
je 0x40dd58
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
add eax, 3
push esi
mov dword [ebp - 0x210], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00472c30
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.dwmapi.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40dd57
push str.DwmSetWindowAttribute
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40dd50
push 4
lea ecx, [ebp - 0x210]
push ecx
push 0x21
push edi
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00472031
leave
ret

Function at 0x40e409
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4d4268]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [0x4d6160], 1
push esi
mov esi, 0x4d615c
jne 0x40e449
or dword [0x4d6160], 1
push 0x4d7a78
mov ecx, esi
call fcn.0040cb1b
push 0x4aacf8
call fcn.00472167
pop ecx
mov eax, dword [0x4d615c]
cmp dword [eax - 0xc], 0
jne 0x40e4b2
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00472c30
add esp, 0xc
push 0
push 0x1a
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push str.temp
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.0040db82
mov ecx, dword [ebp - 4]
mov eax, dword [0x4d615c]
xor ecx, ebp
pop esi
call fcn.00472031
leave
ret
Function at 0x40e8c1
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x4d4268]
xor eax, ebp
mov dword [ebp + 0x1b4], eax
and dword [ebp - 0x7c], 0
push ebx
mov ebx, dword [ebp + 0x1c4]
push edi
mov edi, dword [ebp + 0x1c0]
push 0
push 2
mov dword [ebp - 0x78], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x80], eax
cmp eax, 0xffffffff
je 0x40e95d
lea ecx, [ebp - 0x78]
push ecx
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40e954
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push edi
lea eax, [ebp - 0x54]
push eax
call esi
test eax, eax
je 0x40e94c
cmp dword [ebp + 0x1c8], 0
jne 0x40e93a
push ebx
lea eax, [ebp - 0x54]
push eax
call esi
test eax, eax
je 0x40e94c
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40e91b
jmp 0x40e953
mov dword [ebp - 0x7c], 1
pop esi
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x1b4]
mov eax, dword [ebp - 0x7c]
pop edi
xor ecx, ebp
pop ebx
call fcn.00472031
add ebp, 0x1b8
leave
ret
Function at 0x40e9d1
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x1a8
mov eax, dword [0x4d4268]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
push 6
pop ecx
mov esi, 0x4abe94
lea edi, [ebp + 0x58]
rep movsd dword es:[edi], dword [esi]
push 0xd3a
lea eax, [ebp + 0x58]
push 0x1a
mov ebx, 0x104
push eax
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x130], ebx
movsw word es:[edi], word [esi]
call fcn.0040e993
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x12c]
push eax
push str.ExeString
lea eax, [ebp + 0x58]
push eax
push SysStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40ea66
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40ea66
xor eax, eax
inc eax
jmp 0x40eb77
push ebx
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00472c30
add esp, 0xc
push 0xf
pop ecx
lea eax, [ebp + 0x1c]
push 0xd3c
mov esi, 0x4abe4c
lea edi, [ebp + 0x1c]
push eax
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x130], ebx
rep movsd dword es:[edi], dword [esi]
call fcn.00473a80
pop ecx
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.0040e993
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0x4ca9d1
lea eax, [ebp + 0x1c]
push eax
push 0x80000000
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40eaf3
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40ea5e
push ebx
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00472c30
push 0xf
pop ecx
mov esi, 0x4abe0c
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
push 0xd3c
lea eax, [ebp - 0x24]
push 0x3d
push eax
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x130], ebx
movsb byte es:[edi], byte [esi]
call fcn.0040e993
add esp, 0x18
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0x4ca9d1
lea eax, [ebp - 0x24]
push eax
push 0x80000000
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40eb75
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40ea5e
xor eax, eax
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00472031
add ebp, 0x78
leave
ret
Function at 0x40eb89
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x4d4268]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x12f]
push 0
push eax
mov byte [ebp - 0x130], 0
call fcn.00472c30
add esp, 0xc
push 7
pop ecx
mov esi, 0x4abec8
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4abebc
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x2c]
push 0x837
push eax
mov dword [ebp - 0x138], 1
mov dword [ebp - 0x134], 0x104
movsd dword es:[edi], dword [esi]
call fcn.00473a80
pop ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040e993
add esp, 0xc
lea eax, [ebp - 0x10]
push 0x844
push eax
call fcn.00473a80
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040e993
add esp, 0xc
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x138]
push eax
push str.ProgramPath
lea eax, [ebp - 0x2c]
push eax
push SysStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
pop edi
pop esi
test eax, eax
jne 0x40ec7a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x130]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
test eax, eax
je 0x40ec7a
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40ec7a
xor eax, eax
inc eax
jmp 0x40ec7c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472031
leave
ret

Function at 0x40ec88
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4d4268]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x13b]
push 0
push eax
mov byte [ebp - 0x13c], 0
call fcn.00472c30
add esp, 0xc
push 8
pop ecx
mov esi, 0x4abf00
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4abeec
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x237f
lea eax, [ebp - 0x38]
push esi
push eax
mov dword [ebp - 0x144], 1
mov dword [ebp - 0x140], 0x104
call fcn.00473a80
pop ecx
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0040e993
add esp, 0xc
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.00473a80
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040e993
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x144]
push eax
push str.AppPath
lea eax, [ebp - 0x38]
push eax
push SysStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
pop edi
pop esi
test eax, eax
jne 0x40ed78
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x13c]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
test eax, eax
je 0x40ed78
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40ed78
xor eax, eax
inc eax
jmp 0x40ed7a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472031
leave
ret
Function at 0x40ed86
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x4d4268]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1a8]
push ebx
mov ebx, dword [ebp + 0x1cc]
push esi
mov esi, dword [ebp + 0x1ac]
push edi
mov edi, dword [ebp + 0x1b4]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1bc]
push ebx
push dword [ebp + 0x1b0]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x1c4]
push esi
mov dword [ebp - 0x70], eax
call fcn.0040e993
push ebx
push dword [ebp + 0x1b8]
push edi
call fcn.0040e993
push ebx
push dword [ebp + 0x1c0]
push dword [ebp - 0x74]
call fcn.0040e993
push ebx
push dword [ebp + 0x1c8]
push dword [ebp - 0x70]
call fcn.0040e993
add esp, 0x30
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x98]
push eax
lea eax, [ebp - 0x78]
push eax
push edi
push esi
push dword [ebp - 0x80]
mov ebx, 0x104
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40ee92
lea eax, [ebp + 0x98]
push eax
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00473b0b
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
add esp, 0xc
push dword [ebp - 0x74]
lea eax, [ebp + 0x98]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40ee7b
lea eax, [ebp + 0x98]
push eax
call edi
test eax, eax
je 0x40ee7b
xor eax, eax
inc eax
jmp 0x40ee94
push dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
push eax
call esi
test eax, eax
je 0x40ee92
lea eax, [ebp - 0x6c]
push eax
call edi
test eax, eax
jne 0x40ee76
xor eax, eax
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00472031
add ebp, 0x1a0
leave
ret

Function at 0x40eeac
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4d4268]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call fcn.0040e993
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push edi
call fcn.0040e993
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x10c]
push eax
push edi
push esi
push ebx
mov dword [ebp - 0x10c], 1
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
pop edi
pop esi
pop ebx
test eax, eax
jne 0x40ef35
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40ef35
xor eax, eax
inc eax
jmp 0x40ef37
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472031
leave
ret
Function at 0x40ef43
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x4d4268]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xb8]
push ebx
mov ebx, dword [ebp + 0xb0]
push esi
mov esi, dword [ebp + 0xa8]
push edi
push dword [ebp + 0xc0]
mov edi, dword [ebp + 0xa4]
push dword [ebp + 0xac]
mov dword [ebp - 0x80], edi
push esi
mov dword [ebp - 0x78], eax
call fcn.0040e993
push dword [ebp + 0xc0]
push dword [ebp + 0xb4]
push ebx
call fcn.0040e993
push dword [ebp + 0xc0]
push dword [ebp + 0xbc]
push dword [ebp - 0x78]
call fcn.0040e993
add esp, 0x24
lea ecx, [ebp - 0x70]
push ecx
xor eax, eax
push 0x101
push eax
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x7c], 0x104
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
call edi
test eax, eax
jne 0x40f030
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push ebx
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f021
push dword [ebp - 0x78]
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x40f021
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40f021
mov dword [ebp - 0x74], 1
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x74], 0
jne 0x40f08e
lea eax, [ebp - 0x70]
push eax
push 0x201
push 0
push esi
push dword [ebp - 0x80]
call edi
test eax, eax
jne 0x40f08e
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push ebx
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f085
push dword [ebp - 0x78]
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x40f085
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40f085
mov dword [ebp - 0x74], 1
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x98]
mov eax, dword [ebp - 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00472031
add ebp, 0x9c
leave
ret
Function at 0x40f0a9
Capabilities:
Check if file exists
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a8]
sub esp, 0x428
mov eax, dword [0x4d4268]
xor eax, ebp
mov dword [ebp + 0x3a4], eax
mov eax, dword [ebp + 0x3c4]
push ebx
mov ebx, dword [ebp + 0x3bc]
push esi
mov esi, dword [ebp + 0x3b4]
push edi
push dword [ebp + 0x3cc]
mov edi, dword [ebp + 0x3b0]
push dword [ebp + 0x3b8]
mov dword [ebp - 0x74], ebx
push esi
mov dword [ebp - 0x6c], eax
call fcn.0040e993
push dword [ebp + 0x3cc]
push dword [ebp + 0x3c0]
push ebx
call fcn.0040e993
push dword [ebp + 0x3cc]
push dword [ebp + 0x3c8]
push dword [ebp - 0x6c]
call fcn.0040e993
add esp, 0x24
lea eax, [ebp - 0x64]
push eax
push 0x20019
xor ebx, ebx
push ebx
push esi
push edi
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x64], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f218
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
lea eax, [ebp - 0x7c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x64]
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x68], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x40f218
xor edi, edi
cmp dword [ebp - 0x68], ebx
jbe 0x40f218
mov esi, 0x200
cmp dword [ebp - 0x60], ebx
jne 0x40f218
push 0x1ff
lea eax, [ebp + 0x1a5]
push ebx
push eax
mov byte [ebp + 0x1a4], bl
call fcn.00472c30
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x1a4]
push eax
push edi
push dword [ebp - 0x64]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x70], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x40f20e
mov eax, dword [ebp + 0x3c0]
dec eax
push eax
push dword [ebp - 0x74]
lea eax, [ebp + 0x1a4]
push eax
call fcn.004a4ae0
add esp, 0xc
test eax, eax
jne 0x40f20e
push dword [ebp - 0x6c]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x40f20e
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40f20e
mov dword [ebp - 0x60], 1
inc edi
cmp edi, dword [ebp - 0x68]
jb 0x40f17a
mov ecx, dword [ebp + 0x3a4]
mov eax, dword [ebp - 0x60]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00472031
add ebp, 0x3a8
leave
ret