joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404fda
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x4b5fd7
call fcn.00476610
mov edi, 0x4f9e18
push edi
lea ecx, [ebp - 0x10]
call fcn.0040284b
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.00404ca8
pop ecx
test eax, eax
jne 0x40501b
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402870
xor eax, eax
call fcn.004766e8
ret 0xc
mov ebx, dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp + 8]
push ebx
call fcn.00404e6c
test eax, eax
jne 0x405037
lea ecx, [ebx - 0x10]
jmp 0x40500c
push edi
lea ecx, [ebp - 0x14]
call fcn.0040284b
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.00404ca8
mov esi, dword [ebp - 0x14]
pop ecx
push esi
xor edi, edi
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp dword [ebp + 0x10], edi
je 0x405079
push edi
push esi
push ebx
call fcn.00473a50
add esp, 0xc
test eax, eax
jge 0x40509e
lea ecx, [esi - 0x10]
call fcn.00402870
jmp 0x405032
mov ecx, dword [ebp + 8]
push esi
push ebx
call fcn.004053c1
test eax, eax
jne 0x40509e
lea ecx, [esi - 0x10]
call fcn.00402870
lea ecx, [ebx - 0x10]
call fcn.00402870
mov eax, edi
jmp 0x405013
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
call fcn.00401c8e
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
inc edi
jmp 0x405087

Function at 0x4050b6
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0xc
mov eax, 0x4b12c5
call fcn.00476610
mov esi, ecx
mov dword [ebp - 0x18], esi
mov ebx, 0x4f9e18
push ebx
lea ecx, [ebp - 0x10]
call fcn.0040284b
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.004010d8
pop ecx
test eax, eax
jne 0x405107
push 0x4d4028
call fcn.00404d91
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402870
xor eax, eax
call fcn.004766e8
ret 8
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call fcn.00404e6c
test eax, eax
jne 0x40512b
push str.UnpackToTempFolder_SaveToFile_Failed__
call fcn.00404d91
pop ecx
lea ecx, [edi - 0x10]
jmp 0x4050f8
push ebx
lea ecx, [ebp - 0x14]
call fcn.0040284b
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.004010d8
mov esi, dword [ebp - 0x14]
pop ecx
push esi
xor ebx, ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405171
push esi
push str.UnpackToTempFolder_Create_Folder_Failed__Folder_:__s
call fcn.00404d91
pop ecx
pop ecx
lea ecx, [esi - 0x10]
call fcn.00402870
jmp 0x405126
cmp dword [ebp + 0xc], ebx
je 0x40519d
push ebx
push esi
push edi
call fcn.00473a50
add esp, 0xc
test eax, eax
jl 0x405167
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00401c8e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
inc ebx
jmp 0x4051ab
mov ecx, dword [ebp - 0x18]
push esi
push edi
call fcn.004053c1
test eax, eax
jne 0x405185
lea ecx, [esi - 0x10]
call fcn.00402870
lea ecx, [edi - 0x10]
call fcn.00402870
mov eax, ebx
jmp 0x4050ff
Function at 0x4051c2
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x4b587b
call fcn.00476610
mov esi, ecx
mov dword [ebp - 0x14], esi
push 0x4f9e18
lea ecx, [ebp - 0x10]
call fcn.0040284b
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.004010d8
pop ecx
test eax, eax
jne 0x405207
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402870
xor eax, eax
call fcn.004766e8
ret 8
mov edi, dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call ebx
push edi
call fcn.00404e6c
test eax, eax
jne 0x405222
lea ecx, [edi - 0x10]
jmp 0x4051f8
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00403c96
mov byte [ebp - 4], 1
mov esi, dword [ebp + 8]
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp dword [ebp + 0xc], 0
je 0x40525d
push 0
push esi
push edi
call fcn.00473a50
add esp, 0xc
test eax, eax
jge 0x405284
lea ecx, [esi - 0x10]
call fcn.00402870
jmp 0x40521d
mov ecx, dword [ebp - 0x14]
push esi
push edi
call fcn.004053c1
test eax, eax
jne 0x405284
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.00402870
lea ecx, [edi - 0x10]
call fcn.00402870
mov eax, ebx
jmp 0x4051ff
push edi
call ebx
xor ebx, ebx
inc ebx
jmp 0x40526d

Function at 0x40528c
Capabilities:
Check if file exists
Delete file

Disassembly:
push 4
mov eax, 0x4b3924
call fcn.00476610
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4052ac
call fcn.004766e8
ret 4
push 0x4f9e18
lea ecx, [ebp - 0x10]
call fcn.0040284b
lea eax, [ebp - 0x10]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004010d8
mov ebx, dword [ebp - 0x10]
pop ecx
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov eax, dword [esi]
push edi
push ebx
push eax
call fcn.00473a50
add esp, 0xc
test eax, eax
jge 0x4052f0
lea ecx, [ebx - 0x10]
call fcn.00402870
mov eax, edi
jmp 0x4052a4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00401c8e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
inc edi
jmp 0x4052e4

Function at 0x405466
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x1b4], eax
mov eax, dword [ebp + 0x1c0]
and dword [ebp - 0x7c], 0
push edi
push 0
push 2
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x4054fb
lea eax, [ebp - 0x78]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4054f4
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push ebx
lea eax, [ebp - 0x54]
push eax
call esi
test eax, eax
je 0x4054ec
cmp dword [ebp + 0x1c4], 0
jne 0x4054dc
push dword [ebp - 0x80]
lea eax, [ebp - 0x54]
push eax
call esi
test eax, eax
je 0x4054ec
lea eax, [ebp - 0x78]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4054bb
jmp 0x4054f3
mov dword [ebp - 0x7c], 1
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x1b4]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop edi
call fcn.004755ea
add ebp, 0x1b8
leave
ret
Function at 0x40554a
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xb0]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xb8]
mov ebx, edx
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0xa8]
mov edx, edi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], ebx
call fcn.00405514
mov ecx, dword [ebp + 0xb8]
mov eax, dword [ebp + 0xac]
mov edx, ebx
call fcn.00405514
mov ecx, dword [ebp + 0xb8]
mov eax, dword [ebp + 0xb4]
mov edx, dword [ebp - 0x74]
call fcn.00405514
lea eax, [ebp - 0x6c]
push eax
push 0x101
xor ebx, ebx
push ebx
push edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x78], 0x104
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
call esi
test eax, eax
jne 0x405629
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push dword [ebp - 0x7c]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40561b
push dword [ebp - 0x74]
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x40561b
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40561b
mov dword [ebp - 0x70], 1
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x70], ebx
jne 0x405686
lea eax, [ebp - 0x6c]
push eax
push 0x201
push ebx
push edi
push dword [ebp - 0x80]
call esi
test eax, eax
jne 0x405686
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push dword [ebp - 0x7c]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40567d
push dword [ebp - 0x74]
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x40567d
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40567d
mov dword [ebp - 0x70], 1
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x9c]
mov eax, dword [ebp - 0x70]
pop esi
xor ecx, ebp
pop ebx
call fcn.004755ea
add ebp, 0xa0
leave
ret
Function at 0x4056a0
Capabilities:
Enumerate files on windows

Disassembly:
push 0x1d8
mov eax, 0x4b4ca5
call fcn.00476679
mov eax, dword [ebp + 8]
xor ebx, ebx
push eax
mov esi, ecx
mov dword [ebp - 0x1c8], eax
mov dword [ebp - 0x1ac], ebx
call fcn.004769e0
pop ecx
lea ecx, [ebp - 0x1c4]
mov dword [ebp - 0x1cc], eax
call fcn.0040a735
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0040a6f1
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c4]
mov byte [ebp - 4], 1
call fcn.0040a774
xor edi, edi
inc edi
jmp 0x4058a8
cmp dword [ebp - 0x1ac], ebx
jne 0x4058cf
lea eax, [ebp - 0x1c4]
push eax
push dword [ebp - 0x1b8]
lea ecx, [ebp - 0x1dc]
call fcn.00415416
lea ecx, [ebp - 0x1dc]
call fcn.0040ad7b
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040b7ab
lea eax, [ebp - 0x1c4]
push eax
mov byte [ebp - 4], 2
push dword [ebp - 0x1b8]
lea ecx, [ebp - 0x1d4]
call fcn.00415416
mov esi, dword [ebp - 0x1d0]
push dword [ebp - 0x1b4]
lea ecx, [esi + 0x1c]
mov eax, esi
call fcn.0040af4d
mov eax, dword [ebp - 0x1b4]
pop ecx
lea edx, [ebp - 0x1bc]
push edx
lea ecx, [eax - 0x1c]
push eax
push ecx
call fcn.0040af8b
sub dword [ebp - 0x1b4], 0x1c
add esp, 0xc
lea eax, [ebp - 0x1c4]
push eax
push esi
lea ecx, [ebp - 0x1e4]
call fcn.00415416
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040b7ab
push 0x4d4144
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.0040a7f9
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x4057c9
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x1a8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40589e
test byte [ebp - 0x1a8], 0x10
je 0x405858
cmp byte [ebp - 0x17c], 0x2e
jne 0x40580d
cmp byte [ebp - 0x17b], bl
je 0x405879
cmp byte [ebp - 0x17b], 0x2e
jne 0x40580d
cmp byte [ebp - 0x17a], bl
je 0x405879
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x64]
call fcn.0040b7ab
push 0x4d414c
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call fcn.0040a7f9
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x64]
call fcn.0040a7f9
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x1c4]
call fcn.0040a774
push ebx
push edi
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.0040b809
jmp 0x405879
mov eax, dword [ebp - 0x1cc]
dec eax
push eax
push dword [ebp - 0x1c8]
lea eax, [ebp - 0x17c]
push eax
call fcn.00490ef5
add esp, 0xc
test eax, eax
je 0x405891
lea eax, [ebp - 0x1a8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4057e2
jmp 0x405897
mov dword [ebp - 0x1ac], edi
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push edi
lea ecx, [ebp - 0x48]
call fcn.0040b809
push ebx
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.0040b809
mov eax, dword [ebp - 0x1b4]
sub eax, dword [ebp - 0x1b8]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
jne 0x405701
lea ecx, [ebp - 0x1c4]
call fcn.0040a90e
push dword [ebp - 0x1c4]
call fcn.00472c4d
mov eax, dword [ebp - 0x1ac]
pop ecx
call fcn.004766fc
ret
Function at 0x405a90
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0x238
mov eax, 0x4b4ffb
call fcn.00476679
mov eax, dword [ebp + 8]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0x238], eax
xor esi, esi
inc esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0x20]
xor ebx, ebx
lea edi, [eax - 1]
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x228], ebx
cmp eax, edi
ja 0x405add
call fcn.00474e5c
cmp dword [ebp + 0x24], 0x10
mov eax, dword [ebp + 0x10]
jae 0x405ae9
lea eax, [ebp + 0x10]
cmp byte [eax + edi], 0x5c
je 0x405afd
push 0x5c
mov ebx, esi
lea edi, [ebp + 0xc]
call fcn.0040a816
xor ebx, ebx
cmp dword [ebp + 0x24], 0x10
mov eax, dword [ebp + 0x10]
jae 0x405b09
lea eax, [ebp + 0x10]
lea ecx, [ebp - 0x228]
push ecx
push 0x20019
push ebx
push eax
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405c65
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x224]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x228]
mov dword [ebp - 0x224], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x405c59
cmp dword [ebp - 0x224], ebx
je 0x405c59
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x22c], ebx
jbe 0x405c59
mov edi, 0x104
cmp dword [ebp - 0x230], ebx
jne 0x405c59
push 0x103
lea eax, [ebp - 0x117]
push ebx
push eax
mov byte [ebp - 0x118], bl
call fcn.00475570
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x22c]
mov dword [ebp - 0x23c], edi
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x405c41
cmp dword [ebp + 0x40], 0x10
mov eax, dword [ebp + 0x2c]
jae 0x405bda
lea eax, [ebp + 0x2c]
push dword [ebp + 0x3c]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00490ef5
add esp, 0xc
test eax, eax
jne 0x405c41
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x240]
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x228]
mov dword [ebp - 0x234], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x405c41
push dword [ebp - 0x238]
lea ecx, [ebp - 0x220]
call fcn.004056a0
pop ecx
mov dword [ebp - 0x230], eax
inc dword [ebp - 0x22c]
mov eax, dword [ebp - 0x22c]
cmp eax, dword [ebp - 0x224]
jb 0x405b79
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push esi
lea ecx, [ebp + 0xc]
call fcn.0040b809
push ebx
push esi
lea ecx, [ebp + 0x28]
call fcn.0040b809
mov eax, dword [ebp - 0x230]
call fcn.004766fc
ret
Function at 0x405d5f
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 [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x3a4], eax
push ebx
push esi
push 4
mov esi, ecx
pop ecx
mov ebx, edx
push 0x23
pop eax
mov edx, esi
mov dword [ebp - 0x74], ebx
call fcn.00405514
push 4
pop ecx
push 0xb
pop eax
mov edx, ebx
call fcn.00405514
push 4
pop ecx
push 8
pop eax
mov edx, edi
call fcn.00405514
lea eax, [ebp - 0x68]
push eax
push 0x20019
xor ebx, ebx
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405ea6
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
lea eax, [ebp - 0x7c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x68]
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x64], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x405ea6
mov dword [ebp - 0x60], ebx
cmp dword [ebp - 0x64], ebx
jbe 0x405ea6
mov esi, 0x200
cmp dword [ebp - 0x6c], ebx
jne 0x405ea6
push 0x1ff
lea eax, [ebp + 0x1a5]
push ebx
push eax
mov byte [ebp + 0x1a4], bl
call fcn.00475570
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 dword [ebp - 0x60]
mov dword [ebp - 0x78], esi
push dword [ebp - 0x68]
mov dword [ebp - 0x70], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x405e97
push 0xa
push dword [ebp - 0x74]
lea eax, [ebp + 0x1a4]
push eax
call fcn.00490ef5
add esp, 0xc
test eax, eax
jne 0x405e97
push edi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x405e97
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x405e97
mov dword [ebp - 0x6c], 1
inc dword [ebp - 0x60]
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x64]
jb 0x405e09
mov ecx, dword [ebp + 0x3a4]
mov eax, dword [ebp - 0x6c]
pop esi
xor ecx, ebp
pop ebx
call fcn.004755ea
add ebp, 0x3a8
leave
ret
Function at 0x405ec0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x74], eax
push 0x14
xor ecx, ecx
pop eax
mov edx, edi
mov dword [ebp - 0x80], esi
call fcn.00405514
push 5
xor ecx, ecx
pop eax
mov edx, ebx
call fcn.00405514
push 0x12
xor ecx, ecx
pop eax
mov edx, esi
call fcn.00405514
mov edx, dword [ebp - 0x74]
push 0x11
xor ecx, ecx
pop eax
call fcn.00405514
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x94]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push edi
mov esi, 0x104
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x7c], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x405fa6
lea eax, [ebp + 0x94]
push eax
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.0047d178
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
add esp, 0xc
push dword [ebp - 0x80]
lea eax, [ebp + 0x94]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x405f8f
lea eax, [ebp + 0x94]
push eax
call edi
test eax, eax
je 0x405f8f
xor eax, eax
inc eax
jmp 0x405fa8
push dword [ebp - 0x74]
lea eax, [ebp - 0x70]
push eax
call esi
test eax, eax
je 0x405fa6
lea eax, [ebp - 0x70]
push eax
call edi
test eax, eax
jne 0x405f8a
xor eax, eax
mov ecx, dword [ebp + 0x198]
pop edi
xor ecx, ebp
pop esi
call fcn.004755ea
add ebp, 0x19c
leave
ret
Function at 0x4060b0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x1a8
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
push 6
pop ecx
mov esi, 0x4d4150
lea edi, [ebp + 0x58]
rep movsd dword es:[edi], dword [esi]
push 0x1a
mov ebx, 0x104
mov ecx, 0xd3a
pop eax
lea edx, [ebp + 0x58]
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x130], ebx
movsw word es:[edi], word [esi]
call fcn.00405514
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 reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x406142
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x406142
xor eax, eax
inc eax
jmp 0x40624d
push ebx
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00475570
push 0xf
pop ecx
lea eax, [ebp + 0x1c]
mov esi, 0x4d4178
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.004769e0
add esp, 0x10
mov ecx, 0xd3c
lea edx, [ebp + 0x1c]
call fcn.00405514
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0x4d3fa2
lea eax, [ebp + 0x1c]
push eax
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4061c9
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40613a
push ebx
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00475570
add esp, 0xc
push 0xf
pop ecx
mov esi, 0x4d41b4
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
push 0x3d
mov ecx, 0xd3c
pop eax
lea edx, [ebp - 0x24]
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x130], ebx
movsb byte es:[edi], byte [esi]
call fcn.00405514
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0x4d3fa2
lea eax, [ebp - 0x24]
push eax
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40624b
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40613a
xor eax, eax
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004755ea
add ebp, 0x78
leave
ret
Function at 0x40625f
Capabilities:
Check if file exists
Enumerate files on windows
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x89c
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push eax
push 0x26
lea ecx, [ebp - 0x230]
push ecx
push eax
mov dword [ebp - 0x894], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x406422
mov esi, 0x4d41f4
lea edi, [ebp - 0x28]
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, 0x4d4208
lea edi, [ebp - 0x14]
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 0x11
mov ecx, esi
pop eax
lea edx, [ebp - 0x28]
call fcn.00405514
push 0xe
mov ecx, esi
pop eax
lea edx, [ebp - 0x14]
call fcn.00405514
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x28]
push eax
call edi
mov esi, eax
inc esi
mov ebx, 0x3fffffff
cmp esi, ebx
jle 0x4062f0
and dword [ebp - 0x89c], 0
jmp 0x40630d
lea eax, [esi + esi]
call fcn.0047be80
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.0040b487
mov dword [ebp - 0x89c], eax
lea eax, [ebp - 0x14]
push eax
call edi
mov esi, eax
inc esi
cmp esi, ebx
jle 0x406323
and dword [ebp - 0x898], 0
jmp 0x406340
lea eax, [esi + esi]
call fcn.0047be80
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.0040b487
mov dword [ebp - 0x898], eax
push dword [ebp - 0x89c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x230]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x4d4218
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x640]
push eax
call edi
lea eax, [ebp - 0x890]
push eax
lea eax, [ebp - 0x640]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40641c
test byte [ebp - 0x890], 0x10
je 0x4063f7
cmp word [ebp - 0x864], 0x2e
jne 0x4063c0
cmp word [ebp - 0x862], 0
je 0x4063f7
cmp word [ebp - 0x862], 0x2e
jne 0x4063c0
cmp word [ebp - 0x860], 0
je 0x4063f7
lea eax, [ebp - 0x864]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x438]
push eax
call edi
push dword [ebp - 0x898]
lea eax, [ebp - 0x438]
push eax
call esi
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40640b
lea eax, [ebp - 0x890]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40638f
jmp 0x406415
mov dword [ebp - 0x894], 1
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x894]
lea esp, [ebp - 0x8a8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004755ea
leave
ret