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

Disassembly:
push 8
mov eax, 0x4b5850
call fcn.004764c0
mov esi, ecx
mov dword [ebp - 0x14], esi
push 0x4f9e00
lea ecx, [ebp - 0x10]
call fcn.004027fb
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.004010d8
pop ecx
test eax, eax
jne 0x405220
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402820
xor eax, eax
call fcn.00476598
ret 8
mov edi, dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call ebx
push edi
call fcn.00404e82
test eax, eax
jne 0x40523b
lea ecx, [edi - 0x10]
jmp 0x405211
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00403cb9
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 0x405276
push 0
push esi
push edi
call fcn.00473954
add esp, 0xc
test eax, eax
jge 0x40529d
lea ecx, [esi - 0x10]
call fcn.00402820
jmp 0x405236
mov ecx, dword [ebp - 0x14]
push esi
push edi
call fcn.004053da
test eax, eax
jne 0x40529d
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.00402820
lea ecx, [edi - 0x10]
call fcn.00402820
mov eax, ebx
jmp 0x405218
push edi
call ebx
xor ebx, ebx
inc ebx
jmp 0x405286

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

Disassembly:
push 4
mov eax, 0x4b1d2e
call fcn.004764c0
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4052c5
call fcn.00476598
ret 4
push 0x4f9e00
lea ecx, [ebp - 0x10]
call fcn.004027fb
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.00473954
add esp, 0xc
test eax, eax
jge 0x405309
lea ecx, [ebx - 0x10]
call fcn.00402820
mov eax, edi
jmp 0x4052bd
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00401c3e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
inc edi
jmp 0x4052fd

Function at 0x40547f
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 0x405514
lea eax, [ebp - 0x78]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40550d
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push ebx
lea eax, [ebp - 0x54]
push eax
call esi
test eax, eax
je 0x405505
cmp dword [ebp + 0x1c4], 0
jne 0x4054f5
push dword [ebp - 0x80]
lea eax, [ebp - 0x54]
push eax
call esi
test eax, eax
je 0x405505
lea eax, [ebp - 0x78]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4054d4
jmp 0x40550c
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.0047549a
add ebp, 0x1b8
leave
ret
Function at 0x405563
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.0040552d
mov ecx, dword [ebp + 0xb8]
mov eax, dword [ebp + 0xac]
mov edx, ebx
call fcn.0040552d
mov ecx, dword [ebp + 0xb8]
mov eax, dword [ebp + 0xb4]
mov edx, dword [ebp - 0x74]
call fcn.0040552d
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 0x405642
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 0x405634
push dword [ebp - 0x74]
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x405634
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x405634
mov dword [ebp - 0x70], 1
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x70], ebx
jne 0x40569f
lea eax, [ebp - 0x6c]
push eax
push 0x201
push ebx
push edi
push dword [ebp - 0x80]
call esi
test eax, eax
jne 0x40569f
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 0x405696
push dword [ebp - 0x74]
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x405696
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x405696
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.0047549a
add ebp, 0xa0
leave
ret
Function at 0x4056b9
Capabilities:
Enumerate files on windows

Disassembly:
push 0x1d8
mov eax, 0x4b4c45
call fcn.00476529
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.00476890
pop ecx
lea ecx, [ebp - 0x1c4]
mov dword [ebp - 0x1cc], eax
call fcn.0040a74e
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0040a70a
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c4]
mov byte [ebp - 4], 1
call fcn.0040a78d
xor edi, edi
inc edi
jmp 0x4058c1
cmp dword [ebp - 0x1ac], ebx
jne 0x4058e8
lea eax, [ebp - 0x1c4]
push eax
push dword [ebp - 0x1b8]
lea ecx, [ebp - 0x1dc]
call fcn.0040ada2
lea ecx, [ebp - 0x1dc]
call fcn.0040add4
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040b804
lea eax, [ebp - 0x1c4]
push eax
mov byte [ebp - 4], 2
push dword [ebp - 0x1b8]
lea ecx, [ebp - 0x1d4]
call fcn.0040ada2
mov esi, dword [ebp - 0x1d0]
push dword [ebp - 0x1b4]
lea ecx, [esi + 0x1c]
mov eax, esi
call fcn.0040afa6
mov eax, dword [ebp - 0x1b4]
pop ecx
lea edx, [ebp - 0x1bc]
push edx
lea ecx, [eax - 0x1c]
push eax
push ecx
call fcn.0040afe4
sub dword [ebp - 0x1b4], 0x1c
add esp, 0xc
lea eax, [ebp - 0x1c4]
push eax
push esi
lea ecx, [ebp - 0x1e4]
call fcn.0040ada2
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040b804
push 0x4d3404
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.0040a81b
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x4057e2
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 0x4058b7
test byte [ebp - 0x1a8], 0x10
je 0x405871
cmp byte [ebp - 0x17c], 0x2e
jne 0x405826
cmp byte [ebp - 0x17b], bl
je 0x405892
cmp byte [ebp - 0x17b], 0x2e
jne 0x405826
cmp byte [ebp - 0x17a], bl
je 0x405892
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x64]
call fcn.0040b804
push 0x4d340c
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call fcn.0040a81b
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x64]
call fcn.0040a81b
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x1c4]
call fcn.0040a78d
push ebx
push edi
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.0040b862
jmp 0x405892
mov eax, dword [ebp - 0x1cc]
dec eax
push eax
push dword [ebp - 0x1c8]
lea eax, [ebp - 0x17c]
push eax
call fcn.00490df5
add esp, 0xc
test eax, eax
je 0x4058aa
lea eax, [ebp - 0x1a8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4057fb
jmp 0x4058b0
mov dword [ebp - 0x1ac], edi
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push edi
lea ecx, [ebp - 0x48]
call fcn.0040b862
push ebx
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.0040b862
mov eax, dword [ebp - 0x1b4]
sub eax, dword [ebp - 0x1b8]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
jne 0x40571a
lea ecx, [ebp - 0x1c4]
call fcn.0040a930
push dword [ebp - 0x1c4]
call fcn.00472b5b
mov eax, dword [ebp - 0x1ac]
pop ecx
call fcn.004765ac
ret
Function at 0x405aa9
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0x238
mov eax, 0x4b4fbe
call fcn.00476529
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 0x405af6
call fcn.00474d67
cmp dword [ebp + 0x24], 0x10
mov eax, dword [ebp + 0x10]
jae 0x405b02
lea eax, [ebp + 0x10]
cmp byte [eax + edi], 0x5c
je 0x405b16
push 0x5c
mov ebx, esi
lea edi, [ebp + 0xc]
call fcn.0040a838
xor ebx, ebx
cmp dword [ebp + 0x24], 0x10
mov eax, dword [ebp + 0x10]
jae 0x405b22
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 0x405c7e
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 0x405c72
cmp dword [ebp - 0x224], ebx
je 0x405c72
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x22c], ebx
jbe 0x405c72
mov edi, 0x104
cmp dword [ebp - 0x230], ebx
jne 0x405c72
push 0x103
lea eax, [ebp - 0x117]
push ebx
push eax
mov byte [ebp - 0x118], bl
call fcn.00475420
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 0x405c5a
cmp dword [ebp + 0x40], 0x10
mov eax, dword [ebp + 0x2c]
jae 0x405bf3
lea eax, [ebp + 0x2c]
push dword [ebp + 0x3c]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00490df5
add esp, 0xc
test eax, eax
jne 0x405c5a
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 0x405c5a
push dword [ebp - 0x238]
lea ecx, [ebp - 0x220]
call fcn.004056b9
pop ecx
mov dword [ebp - 0x230], eax
inc dword [ebp - 0x22c]
mov eax, dword [ebp - 0x22c]
cmp eax, dword [ebp - 0x224]
jb 0x405b92
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push esi
lea ecx, [ebp + 0xc]
call fcn.0040b862
push ebx
push esi
lea ecx, [ebp + 0x28]
call fcn.0040b862
mov eax, dword [ebp - 0x230]
call fcn.004765ac
ret
Function at 0x405d78
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.0040552d
push 4
pop ecx
push 0xb
pop eax
mov edx, ebx
call fcn.0040552d
push 4
pop ecx
push 8
pop eax
mov edx, edi
call fcn.0040552d
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 0x405ebf
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 0x405ebf
mov dword [ebp - 0x60], ebx
cmp dword [ebp - 0x64], ebx
jbe 0x405ebf
mov esi, 0x200
cmp dword [ebp - 0x6c], ebx
jne 0x405ebf
push 0x1ff
lea eax, [ebp + 0x1a5]
push ebx
push eax
mov byte [ebp + 0x1a4], bl
call fcn.00475420
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 0x405eb0
push 0xa
push dword [ebp - 0x74]
lea eax, [ebp + 0x1a4]
push eax
call fcn.00490df5
add esp, 0xc
test eax, eax
jne 0x405eb0
push edi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x405eb0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x405eb0
mov dword [ebp - 0x6c], 1
inc dword [ebp - 0x60]
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x64]
jb 0x405e22
mov ecx, dword [ebp + 0x3a4]
mov eax, dword [ebp - 0x6c]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047549a
add ebp, 0x3a8
leave
ret
Function at 0x405ed9
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.0040552d
push 5
xor ecx, ecx
pop eax
mov edx, ebx
call fcn.0040552d
push 0x12
xor ecx, ecx
pop eax
mov edx, esi
call fcn.0040552d
mov edx, dword [ebp - 0x74]
push 0x11
xor ecx, ecx
pop eax
call fcn.0040552d
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 0x405fbf
lea eax, [ebp + 0x94]
push eax
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.0047d088
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 0x405fa8
lea eax, [ebp + 0x94]
push eax
call edi
test eax, eax
je 0x405fa8
xor eax, eax
inc eax
jmp 0x405fc1
push dword [ebp - 0x74]
lea eax, [ebp - 0x70]
push eax
call esi
test eax, eax
je 0x405fbf
lea eax, [ebp - 0x70]
push eax
call edi
test eax, eax
jne 0x405fa3
xor eax, eax
mov ecx, dword [ebp + 0x198]
pop edi
xor ecx, ebp
pop esi
call fcn.0047549a
add ebp, 0x19c
leave
ret
Function at 0x4060c9
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, 0x4d3410
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.0040552d
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 0x40615b
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40615b
xor eax, eax
inc eax
jmp 0x406266
push ebx
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00475420
push 0xf
pop ecx
lea eax, [ebp + 0x1c]
mov esi, 0x4d3438
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.00476890
add esp, 0x10
mov ecx, 0xd3c
lea edx, [ebp + 0x1c]
call fcn.0040552d
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0x4d3262
lea eax, [ebp + 0x1c]
push eax
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4061e2
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x406153
push ebx
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00475420
add esp, 0xc
push 0xf
pop ecx
mov esi, 0x4d3474
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.0040552d
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0x4d3262
lea eax, [ebp - 0x24]
push eax
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x406264
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x406153
xor eax, eax
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047549a
add ebp, 0x78
leave
ret
Function at 0x406278
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 0x40643b
mov esi, 0x4d34b4
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, 0x4d34c8
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.0040552d
push 0xe
mov ecx, esi
pop eax
lea edx, [ebp - 0x14]
call fcn.0040552d
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 0x406309
and dword [ebp - 0x89c], 0
jmp 0x406326
lea eax, [esi + esi]
call fcn.0047bd30
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.0040b4e0
mov dword [ebp - 0x89c], eax
lea eax, [ebp - 0x14]
push eax
call edi
mov esi, eax
inc esi
cmp esi, ebx
jle 0x40633c
and dword [ebp - 0x898], 0
jmp 0x406359
lea eax, [esi + esi]
call fcn.0047bd30
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.0040b4e0
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 0x4d34d8
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 0x406435
test byte [ebp - 0x890], 0x10
je 0x406410
cmp word [ebp - 0x864], 0x2e
jne 0x4063d9
cmp word [ebp - 0x862], 0
je 0x406410
cmp word [ebp - 0x862], 0x2e
jne 0x4063d9
cmp word [ebp - 0x860], 0
je 0x406410
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 0x406424
lea eax, [ebp - 0x890]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4063a8
jmp 0x40642e
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.0047549a
leave
ret
Function at 0x40653f
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x4f3bd0]
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.00475420
push 7
pop ecx
mov esi, 0x4d352c
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4d3548
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x138], 1
mov dword [ebp - 0x134], 0x104
movsd dword es:[edi], dword [esi]
call fcn.00476890
mov ecx, 0x837
lea edx, [ebp - 0x2c]
call fcn.0040552d
lea eax, [ebp - 0x10]
push eax
call fcn.00476890
add esp, 0x14
mov ecx, 0x844
lea edx, [ebp - 0x10]
call fcn.0040552d
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 reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
pop edi
pop esi
test eax, eax
jne 0x406624
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 0x406624
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x406624
xor eax, eax
inc eax
jmp 0x406626
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047549a
leave
ret
Function at 0x406632
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x103
push esi
xor edi, edi
lea eax, [ebp - 0x35b]
push edi
push eax
mov byte [ebp - 0x35c], 0
call fcn.00475420
push esi
lea eax, [ebp - 0x153]
push edi
push eax
mov byte [ebp - 0x154], 0
call fcn.00475420
push esi
lea eax, [ebp - 0x257]
push edi
push eax
mov byte [ebp - 0x258], 0
call fcn.00475420
add esp, 0x24
push edi
push 0x26
lea eax, [ebp - 0x35c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x4067d6
push ebx
push 7
pop ecx
mov esi, 0x4d3560
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
push 9
pop ecx
mov esi, 0x4d357c
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4d3548
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x2c]
push eax
movsd dword es:[edi], dword [esi]
call fcn.00476890
mov esi, 0x844
mov ecx, esi
lea edx, [ebp - 0x2c]
call fcn.0040552d
lea eax, [ebp - 0x50]
push eax
call fcn.00476890
mov ecx, esi
lea edx, [ebp - 0x50]
call fcn.0040552d
lea eax, [ebp - 0x10]
push eax
call fcn.00476890
add esp, 0xc
mov ecx, esi
lea edx, [ebp - 0x10]
call fcn.0040552d
lea eax, [ebp - 0x35c]
push eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x154]
push eax
call fcn.0040b480
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x154]
push eax
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x258]
push eax
call ebx
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40676c
xor eax, eax
inc eax
jmp 0x4067d5
push esi
lea eax, [ebp - 0x258]
push 0
push eax
call fcn.00475420
push esi
lea eax, [ebp - 0x154]
push 0
push eax
call fcn.00475420
add esp, 0x18
lea eax, [ebp - 0x35c]
push eax
push esi
lea eax, [ebp - 0x154]
push eax
call fcn.0040b480
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x154]
push eax
call edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x258]
push eax
call ebx
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
neg eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047549a
leave
ret