joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dee7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4d4218]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
call fcn.0040de63
test eax, eax
je 0x40df97
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.00472470
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 0x40df96
push str.DwmSetWindowAttribute
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40df8f
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.00471830
leave
ret

Function at 0x40e04c
Capabilities:
Persist via run registry key

Disassembly:
push 0x10
mov eax, 0x4a76e6
call fcn.00471d54
mov edi, 0x4d7a48
push edi
lea ecx, [ebp - 0x10]
call fcn.0040b5f9
lea eax, [ebp - 0x10]
push str.SoftwareMicrosoftWindowsCurrentVersionRun
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040ded4
pop ecx
pop ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
push 2
push dword [ebp - 0x10]
mov esi, 0x80000001
push esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0040c8c2
cmp eax, 2
jne 0x40e0b2
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push esi
call fcn.0040c868
cmp eax, ebx
jne 0x40e0f2
push edi
lea ecx, [ebp - 0x14]
call fcn.0040b5f9
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push str.__s___autorun
push eax
mov byte [ebp - 4], 2
call fcn.0040ded4
mov esi, dword [ebp - 0x14]
add esp, 0xc
push 1
push esi
push str.fbstart
lea ecx, [ebp - 0x1c]
call fcn.0040c972
lea ecx, [esi - 0x10]
call fcn.0040b453
lea ecx, [ebp - 0x1c]
call fcn.0040c84d
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040b453
call fcn.00471e2c
ret
Function at 0x40e6e3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4d4218]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [0x4d6100], 1
push esi
mov esi, 0x4d60fc
jne 0x40e723
or dword [0x4d6100], 1
push 0x4d7a48
mov ecx, esi
call fcn.0040b5f9
push 0x4aa228
call fcn.00472005
pop ecx
mov eax, dword [0x4d60fc]
cmp dword [eax - 0xc], 0
jne 0x40e78c
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00472470
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.0040b8d1
mov ecx, dword [ebp - 4]
mov eax, dword [0x4d60fc]
xor ecx, ebp
pop esi
call fcn.00471830
leave
ret

Function at 0x40eb89
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x4d4218]
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 0x40ec25
lea ecx, [ebp - 0x78]
push ecx
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40ec1c
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push edi
lea eax, [ebp - 0x54]
push eax
call esi
test eax, eax
je 0x40ec14
cmp dword [ebp + 0x1c8], 0
jne 0x40ec02
push ebx
lea eax, [ebp - 0x54]
push eax
call esi
test eax, eax
je 0x40ec14
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40ebe3
jmp 0x40ec1b
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.00471830
add ebp, 0x1b8
leave
ret
Function at 0x40ec99
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x1a8
mov eax, dword [0x4d4218]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
push 6
pop ecx
mov esi, 0x4abfb4
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.0040ec5b
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 0x40ed2e
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40ed2e
xor eax, eax
inc eax
jmp 0x40ee3f
push ebx
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00472470
add esp, 0xc
push 0xf
pop ecx
lea eax, [ebp + 0x1c]
push 0xd3c
mov esi, 0x4abf6c
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.00473160
pop ecx
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.0040ec5b
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0x4ca899
lea eax, [ebp + 0x1c]
push eax
push 0x80000000
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40edbb
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40ed26
push ebx
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00472470
push 0xf
pop ecx
mov esi, 0x4abf2c
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.0040ec5b
add esp, 0x18
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0x4ca899
lea eax, [ebp - 0x24]
push eax
push 0x80000000
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40ee3d
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40ed26
xor eax, eax
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00471830
add ebp, 0x78
leave
ret
Function at 0x40ee51
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x4d4218]
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.00472470
add esp, 0xc
push 7
pop ecx
mov esi, 0x4abfe8
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4abfdc
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.00473160
pop ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040ec5b
add esp, 0xc
lea eax, [ebp - 0x10]
push 0x844
push eax
call fcn.00473160
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040ec5b
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 0x40ef42
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 0x40ef42
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40ef42
xor eax, eax
inc eax
jmp 0x40ef44
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471830
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4d4218]
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.00472470
add esp, 0xc
push 8
pop ecx
mov esi, 0x4ac020
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4ac00c
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.00473160
pop ecx
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0040ec5b
add esp, 0xc
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.00473160
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040ec5b
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 0x40f040
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 0x40f040
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40f040
xor eax, eax
inc eax
jmp 0x40f042
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471830
leave
ret
Function at 0x40f04e
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x4d4218]
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.0040ec5b
push ebx
push dword [ebp + 0x1b8]
push edi
call fcn.0040ec5b
push ebx
push dword [ebp + 0x1c0]
push dword [ebp - 0x74]
call fcn.0040ec5b
push ebx
push dword [ebp + 0x1c8]
push dword [ebp - 0x70]
call fcn.0040ec5b
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 0x40f15a
lea eax, [ebp + 0x98]
push eax
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.004731eb
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 0x40f143
lea eax, [ebp + 0x98]
push eax
call edi
test eax, eax
je 0x40f143
xor eax, eax
inc eax
jmp 0x40f15c
push dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
push eax
call esi
test eax, eax
je 0x40f15a
lea eax, [ebp - 0x6c]
push eax
call edi
test eax, eax
jne 0x40f13e
xor eax, eax
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00471830
add ebp, 0x1a0
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4d4218]
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.0040ec5b
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push edi
call fcn.0040ec5b
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 0x40f1fd
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40f1fd
xor eax, eax
inc eax
jmp 0x40f1ff
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471830
leave
ret
Function at 0x40f20b
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x4d4218]
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.0040ec5b
push dword [ebp + 0xc0]
push dword [ebp + 0xb4]
push ebx
call fcn.0040ec5b
push dword [ebp + 0xc0]
push dword [ebp + 0xbc]
push dword [ebp - 0x78]
call fcn.0040ec5b
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 0x40f2f8
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 0x40f2e9
push dword [ebp - 0x78]
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x40f2e9
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40f2e9
mov dword [ebp - 0x74], 1
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x74], 0
jne 0x40f356
lea eax, [ebp - 0x70]
push eax
push 0x201
push 0
push esi
push dword [ebp - 0x80]
call edi
test eax, eax
jne 0x40f356
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 0x40f34d
push dword [ebp - 0x78]
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x40f34d
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40f34d
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.00471830
add ebp, 0x9c
leave
ret
Function at 0x40f371
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 [0x4d4218]
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.0040ec5b
push dword [ebp + 0x3cc]
push dword [ebp + 0x3c0]
push ebx
call fcn.0040ec5b
push dword [ebp + 0x3cc]
push dword [ebp + 0x3c8]
push dword [ebp - 0x6c]
call fcn.0040ec5b
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 0x40f4e0
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 0x40f4e0
xor edi, edi
cmp dword [ebp - 0x68], ebx
jbe 0x40f4e0
mov esi, 0x200
cmp dword [ebp - 0x60], ebx
jne 0x40f4e0
push 0x1ff
lea eax, [ebp + 0x1a5]
push ebx
push eax
mov byte [ebp + 0x1a4], bl
call fcn.00472470
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 0x40f4d6
mov eax, dword [ebp + 0x3c0]
dec eax
push eax
push dword [ebp - 0x74]
lea eax, [ebp + 0x1a4]
push eax
call fcn.004a4090
add esp, 0xc
test eax, eax
jne 0x40f4d6
push dword [ebp - 0x6c]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x40f4d6
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40f4d6
mov dword [ebp - 0x60], 1
inc edi
cmp edi, dword [ebp - 0x68]
jb 0x40f442
mov ecx, dword [ebp + 0x3a4]
mov eax, dword [ebp - 0x60]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00471830
add ebp, 0x3a8
leave
ret
Function at 0x40f5b8
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4d4218]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 6
pop ecx
mov esi, 0x4ac054
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x1591
lea eax, [ebp - 0x20]
push 0x1b
push eax
mov dword [ebp - 0x128], 1
mov dword [ebp - 0x12c], 0x104
movsb byte es:[edi], byte [esi]
call fcn.0040ec5b
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x128]
push eax
push str.ExeString
lea eax, [ebp - 0x20]
push eax
push SysStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
pop edi
pop esi
test eax, eax
jne 0x40f649
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40f649
xor eax, eax
inc eax
jmp 0x40f64b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471830
leave
ret
Function at 0x40fa22
Capabilities:
Check if file exists
Enumerate files on windows
Get common file path
Get program files directory

Disassembly:
push ebp
lea ebp, [esp - 0x81c]
sub esp, 0x89c
mov eax, dword [0x4d4218]
xor eax, ebp
mov dword [ebp + 0x818], eax
push ebx
push esi
push edi
xor eax, eax
push eax
push 0x26
lea ecx, [ebp + 0x5ec]
push ecx
push eax
mov dword [ebp - 0x78], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40fbcf
mov esi, 0x4ac0ac
lea edi, [ebp + 0x7f4]
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, 0x4ac09c
lea edi, [ebp + 0x808]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0xd3e
push esi
lea eax, [ebp + 0x7f4]
push 0x11
push eax
call fcn.0040ec5b
push esi
lea eax, [ebp + 0x808]
push 0xe
push eax
call fcn.0040ec5b
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x18
lea eax, [ebp + 0x7f4]
push eax
call edi
mov esi, eax
inc esi
mov ebx, 0x3fffffff
cmp esi, ebx
jle 0x40fac5
and dword [ebp - 0x80], 0
jmp 0x40fae2
lea eax, [esi + esi]
call fcn.00473260
mov eax, esp
push 3
push esi
lea ecx, [ebp + 0x7f4]
push ecx
push eax
call fcn.0040f4ff
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x808]
push eax
call edi
mov esi, eax
inc esi
cmp esi, ebx
jle 0x40faf8
and dword [ebp - 0x7c], 0
jmp 0x40fb15
lea eax, [esi + esi]
call fcn.00473260
mov eax, esp
push 3
push esi
lea ecx, [ebp + 0x808]
push ecx
push eax
call fcn.0040f4ff
mov dword [ebp - 0x7c], eax
push dword [ebp - 0x80]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x5ec]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x4ac098
lea eax, [ebp + 0x5ec]
push eax
lea eax, [ebp + 0x1dc]
push eax
call edi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x1dc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40fbcc
test byte [ebp - 0x74], 0x10
je 0x40fbad
cmp word [ebp - 0x48], 0x2e
jne 0x40fb7c
cmp word [ebp - 0x46], 0
je 0x40fbad
cmp word [ebp - 0x46], 0x2e
jne 0x40fb7c
cmp word [ebp - 0x44], 0
je 0x40fbad
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 0x5ec]
push eax
lea eax, [ebp + 0x3e4]
push eax
call edi
push dword [ebp - 0x7c]
lea eax, [ebp + 0x3e4]
push eax
call esi
lea eax, [ebp + 0x3e4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40fbbe
lea eax, [ebp - 0x74]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40fb5a
jmp 0x40fbc5
mov dword [ebp - 0x78], 1
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x78]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x818]
xor ecx, ebp
call fcn.00471830
add ebp, 0x81c
leave
ret
Function at 0x41007b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4d4218]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
mov byte [ebp - 0x5c], 0x79
mov byte [ebp - 0x5b], 0x76
mov byte [ebp - 0x5a], 0x3c
mov byte [ebp - 0x59], 0xd9
mov byte [ebp - 0x58], 0xee
mov byte [ebp - 0x57], 0x56
mov byte [ebp - 0x56], 0xff
mov byte [ebp - 0x55], 0x62
mov byte [ebp - 0x54], 0x2e
mov byte [ebp - 0x53], 0xc6
mov byte [ebp - 0x52], 0x10
mov byte [ebp - 0x51], 0xf8
mov byte [ebp - 0x50], 0xab
mov byte [ebp - 0x4f], 0x69
mov byte [ebp - 0x4e], 0x7c
mov byte [ebp - 0x4d], 0x84
mov byte [ebp - 0x4c], 0x52
mov byte [ebp - 0x4b], 0x13
mov byte [ebp - 0x4a], 0x1a
mov byte [ebp - 0x49], 0x58
mov byte [ebp - 0xc], 0x76
mov byte [ebp - 0xb], 0x88
mov byte [ebp - 0xa], 0x6a
mov byte [ebp - 9], 0xed
mov byte [ebp - 8], 0x97
mov byte [ebp - 0x34], 0x58
mov byte [ebp - 0x33], 0x5a
mov byte [ebp - 0x32], 0x2a
mov byte [ebp - 0x31], 0xba
mov byte [ebp - 0x30], 0xe9
mov byte [ebp - 0x2f], 0x69
mov byte [ebp - 0x2e], 0xfd
mov byte [ebp - 0x2d], 0x8f
mov byte [ebp - 0x2c], 0x41
mov byte [ebp - 0x2b], 8
mov byte [ebp - 0x2a], 0x42
mov byte [ebp - 0x29], 0x27
mov byte [ebp - 0x28], 0xea
mov byte [ebp - 0x27], 0x47
mov byte [ebp - 0x26], 0x9e
mov byte [ebp - 0x25], 0xa9
mov byte [ebp - 0x24], 0x56
mov byte [ebp - 0x23], 0xad
mov byte [ebp - 0x48], 0x58
mov byte [ebp - 0x47], 0x5a
mov byte [ebp - 0x46], 0x2a
mov byte [ebp - 0x45], 0xba
mov byte [ebp - 0x44], 0xe9
mov byte [ebp - 0x43], 0x69
mov byte [ebp - 0x42], 0xfd
mov byte [ebp - 0x41], 0x8f
mov byte [ebp - 0x40], 0x41
mov byte [ebp - 0x3f], 8
mov byte [ebp - 0x3e], 0x42
mov byte [ebp - 0x3d], 0x27
mov byte [ebp - 0x3c], 0xea
mov byte [ebp - 0x3b], 0x47
mov byte [ebp - 0x3a], 0x9e
mov byte [ebp - 0x39], 0xa9
mov byte [ebp - 0x38], 0x56
mov byte [ebp - 0x37], 0xad
mov byte [ebp - 0x20], 0x58
mov byte [ebp - 0x1f], 0x5a
mov byte [ebp - 0x1e], 0x2a
mov byte [ebp - 0x1d], 0xba
mov byte [ebp - 0x1c], 0xea
mov byte [ebp - 0x1b], 0x76
mov byte [ebp - 0x1a], 0x13
mov byte [ebp - 0x19], 0x82
mov byte [ebp - 0x18], 0x26
mov byte [ebp - 0x17], 6
mov byte [ebp - 0x16], 0x3e
mov byte [ebp - 0x15], 0x3d
mov byte [ebp - 0x14], 0xa4
mov byte [ebp - 0x13], 0x7e
mov byte [ebp - 0x12], 0xb1
mov byte [ebp - 0x11], 0x96
mov byte [ebp - 0x10], 0xf1
jne 0x4101f9
push 0
push 0x11
lea eax, [ebp - 0x20]
push eax
push 0x12
lea eax, [ebp - 0x34]
push eax
push 5
lea eax, [ebp - 0xc]
push eax
push 0x14
lea eax, [ebp - 0x5c]
push eax
push SysStringLen
call fcn.0040f04e
add esp, 0x28
test eax, eax
je 0x4101f9
xor eax, eax
inc eax
jmp 0x41020f
push 0
lea eax, [ebp - 0x48]
push 0x12
push eax
call fcn.0041000d
add esp, 0xc
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471830
leave
ret