joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b0a1
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
je 0x46b0b9
xor eax, eax
inc eax
jmp 0x46b0e8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46b0b4
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x46b0db
push esi
call edi
test eax, eax
jne 0x46b0b4
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop edi
pop esi
ret

Function at 0x46b0eb
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
sub esp, 0x874
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x874], eax
push 4
mov eax, 0x4b128d
call fcn.00476610
mov esi, dword [ebp + 0x880]
xor ebx, ebx
cmp esi, ebx
jne 0x46b122
xor eax, eax
jmp 0x46b21d
cmp word [esi], bx
je 0x46b11b
push esi
call fcn.0047600e
cmp eax, 0x104
pop ecx
jge 0x46b11b
push 0x410
lea eax, [ebp + 0x464]
push ebx
push eax
call fcn.00475570
add esp, 0xc
push 0x4d4218
push esi
lea eax, [ebp + 0x464]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46b178
test al, 1
je 0x46b178
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x5c
pop eax
mov word [ebp + 0x458], ax
mov dword [ebp + 0x45c], ebx
mov dword [ebp + 0x460], ebx
lea eax, [ebp + 0x464]
push eax
lea ecx, [ebp]
mov dword [ebp - 4], ebx
call fcn.0043a29f
cmp eax, ebx
je 0x46b203
lea ecx, [ebp]
call fcn.0043a262
lea ecx, [ebp]
test eax, eax
je 0x46b1bc
call fcn.0043a196
mov edi, eax
jmp 0x46b1ff
lea eax, [ebp - 0x10]
push eax
call fcn.0043c57a
push 0x10
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.0043a17a
push dword [ebp - 0x10]
test eax, eax
je 0x46b1e1
call fcn.0046b0eb
jmp 0x46b1e6
call fcn.0046b0a1
pop ecx
lea ecx, [ebp]
call fcn.0043a196
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov edi, eax
mov byte [ebp - 4], bl
call fcn.00402870
cmp edi, ebx
jne 0x46b1a4
lea ecx, [ebp]
call fcn.0043a1bd
push esi
call fcn.00430d71
pop ecx
lea ecx, [ebp]
call fcn.0043a1bd
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x874]
xor ecx, ebp
call fcn.004755ea
add ebp, 0x878
leave
ret
Function at 0x46ca18
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 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.0046c9da
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 reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x46caad
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46caad
xor eax, eax
inc eax
jmp 0x46cbbe
push ebx
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00475570
add esp, 0xc
push 0xf
pop ecx
lea eax, [ebp + 0x1c]
push 0xd3c
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
pop ecx
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.0046c9da
add esp, 0xc
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 0x46cb3a
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x46caa5
push ebx
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00475570
push 0xf
pop ecx
mov esi, 0x4d41b4
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.0046c9da
add esp, 0x18
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 0x46cbbc
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x46caa5
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 0x46cbd0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xa8]
sub esp, 0x128
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0xa4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x77]
push 0
push eax
mov byte [ebp - 0x78], 0
call fcn.00475570
add esp, 0xc
push 6
pop ecx
lea eax, [ebp + 0x8c]
push 0x237f
mov esi, 0x4d422c
lea edi, [ebp + 0x8c]
push eax
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x80], 0x104
rep movsd dword es:[edi], dword [esi]
call fcn.004769e0
pop ecx
push eax
lea eax, [ebp + 0x8c]
push eax
call fcn.0046c9da
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0x4d3fa2
lea eax, [ebp + 0x8c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
pop edi
pop esi
test eax, eax
jne 0x46cc80
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46cc80
xor eax, eax
inc eax
jmp 0x46cc82
xor eax, eax
mov ecx, dword [ebp + 0xa4]
xor ecx, ebp
call fcn.004755ea
add ebp, 0xa8
leave
ret

Function at 0x46cc97
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.00475570
add esp, 0xc
push 7
pop ecx
mov esi, 0x4d426c
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4d4288
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.004769e0
pop ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0046c9da
add esp, 0xc
lea eax, [ebp - 0x10]
push 0x844
push eax
call fcn.004769e0
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0046c9da
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 reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
pop edi
pop esi
test eax, eax
jne 0x46cd88
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 0x46cd88
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46cd88
xor eax, eax
inc eax
jmp 0x46cd8a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004755ea
leave
ret
Function at 0x46cd96
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x123]
push 0
push eax
mov byte [ebp - 0x124], 0
call fcn.00475570
mov esi, 0x4d42fc
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x4d430c
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
add esp, 0xc
mov esi, 0x237f
lea eax, [ebp - 0x20]
push esi
push eax
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x128], 0x104
call fcn.004769e0
pop ecx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0046c9da
add esp, 0xc
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.004769e0
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0046c9da
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x12c]
push eax
push str.ProgramPath
lea eax, [ebp - 0x20]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
pop edi
pop esi
test eax, eax
jne 0x46ce85
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x124]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
test eax, eax
je 0x46ce85
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46ce85
xor eax, eax
inc eax
jmp 0x46ce87
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004755ea
leave
ret
Function at 0x46ce93
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4f3bd0]
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.00475570
add esp, 0xc
push 8
pop ecx
mov esi, 0x4d4360
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4d4380
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.004769e0
pop ecx
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0046c9da
add esp, 0xc
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.004769e0
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0046c9da
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 reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
pop edi
pop esi
test eax, eax
jne 0x46cf83
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 0x46cf83
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46cf83
xor eax, eax
inc eax
jmp 0x46cf85
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004755ea
leave
ret
Function at 0x46cf91
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x4d440c
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, 0x237f
lea eax, [ebp - 0x24]
push ebx
push eax
movsd dword es:[edi], dword [esi]
call fcn.004769e0
pop ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0046c9da
mov esi, 0x4d441c
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0xc
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x14]
push ebx
push eax
movsb byte es:[edi], byte [esi]
call fcn.004769e0
pop ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0046c9da
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
and dword [ebp - 0x258], 0
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x250], 0x22c
call edi
mov esi, eax
inc esi
mov ebx, 0x3fffffff
cmp esi, ebx
jle 0x46d028
and dword [ebp - 0x254], 0
jmp 0x46d045
lea eax, [esi + esi]
call fcn.0047be80
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0040b487
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x14]
push eax
call edi
mov esi, eax
inc esi
cmp esi, ebx
jle 0x46d056
xor ebx, ebx
jmp 0x46d06f
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 ebx, eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x46d0e1
lea eax, [ebp - 0x250]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x46d0da
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push dword [ebp - 0x254]
lea eax, [ebp - 0x22c]
push eax
call esi
test eax, eax
je 0x46d0d0
cmp dword [ebp + 8], 0
jne 0x46d0bd
push ebx
lea eax, [ebp - 0x22c]
push eax
call esi
test eax, eax
je 0x46d0d0
lea eax, [ebp - 0x250]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x46d096
jmp 0x46d0da
mov dword [ebp - 0x258], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x258]
lea esp, [ebp - 0x264]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004755ea
leave
ret
Function at 0x46d0fc
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x4d4448
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]
lea eax, [ebp - 0x18]
push 0x237f
push eax
movsb byte es:[edi], byte [esi]
call fcn.004769e0
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0046c9da
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
xor ebx, ebx
mov dword [ebp - 0x244], 0x22c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x46d160
xor edi, edi
jmp 0x46d179
lea eax, [esi + esi]
call fcn.0047be80
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.0040b487
mov edi, eax
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x46d1c6
lea eax, [ebp - 0x244]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x46d1b6
push edi
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x46d1bc
lea eax, [ebp - 0x244]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x46d197
jmp 0x46d1bf
xor ebx, ebx
inc ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
lea esp, [ebp - 0x250]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004755ea
leave
ret
Function at 0x46d1dd
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x194], eax
and dword [ebp - 0x78], 0
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
mov dword [ebp - 0x80], 1
call fcn.00475570
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push 0x4d35fc
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsQAXSecurity.exe
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
mov esi, 0x208
push ebx
mov dword [ebp - 0x7c], esi
call edi
test eax, eax
jne 0x46d275
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
push str.QAXSecurity.exe
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46d2c6
push esi
lea eax, [ebp - 0x74]
push 0
push eax
mov dword [ebp - 0x7c], esi
call fcn.00475570
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push str.UninstallString
push 0x4c5600
push ebx
call edi
test eax, eax
jne 0x46d2cd
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveArgsW]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46d2cd
mov dword [ebp - 0x78], 1
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x78]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004755ea
add ebp, 0x198
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x190], eax
push edi
xor eax, eax
push 0x206
xor edi, edi
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push edi
push eax
mov dword [ebp - 0x7c], 1
call fcn.00475570
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push str.UninstallString
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallMSPCManager
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x46d374
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveArgsW]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46d374
inc edi
mov ecx, dword [ebp + 0x190]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.004755ea
add ebp, 0x194
leave
ret
Function at 0x46d38c
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 [0x4f3bd0]
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 0x46d539
mov esi, 0x4d41f4
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, 0x4d4208
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.0046c9da
push esi
lea eax, [ebp + 0x808]
push 0xe
push eax
call fcn.0046c9da
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 0x46d42f
and dword [ebp - 0x80], 0
jmp 0x46d44c
lea eax, [esi + esi]
call fcn.0047be80
mov eax, esp
push 3
push esi
lea ecx, [ebp + 0x7f4]
push ecx
push eax
call fcn.0040b487
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x808]
push eax
call edi
mov esi, eax
inc esi
cmp esi, ebx
jle 0x46d462
and dword [ebp - 0x7c], 0
jmp 0x46d47f
lea eax, [esi + esi]
call fcn.0047be80
mov eax, esp
push 3
push esi
lea ecx, [ebp + 0x808]
push ecx
push eax
call fcn.0040b487
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 0x4d4218
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 0x46d536
test byte [ebp - 0x74], 0x10
je 0x46d517
cmp word [ebp - 0x48], 0x2e
jne 0x46d4e6
cmp word [ebp - 0x46], 0
je 0x46d517
cmp word [ebp - 0x46], 0x2e
jne 0x46d4e6
cmp word [ebp - 0x44], 0
je 0x46d517
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 0x46d528
lea eax, [ebp - 0x74]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46d4c4
jmp 0x46d52f
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.004755ea
add ebp, 0x81c
leave
ret
Function at 0x46d557
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x4d4208
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, 0xd3e
movsd dword es:[edi], dword [esi]
push ebx
lea eax, [ebp - 0x24]
push 0xe
push eax
movsw word es:[edi], word [esi]
call fcn.0046c9da
mov esi, 0x4d421c
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
lea eax, [ebp - 0x14]
push 0xd
push eax
movsb byte es:[edi], byte [esi]
call fcn.0046c9da
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
and dword [ebp - 0x258], 0
add esp, 0x18
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x250], 0x22c
call edi
mov esi, eax
inc esi
mov ebx, 0x3fffffff
cmp esi, ebx
jle 0x46d5d8
and dword [ebp - 0x254], 0
jmp 0x46d5f5
lea eax, [esi + esi]
call fcn.0047be80
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0040b487
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x14]
push eax
call edi
mov esi, eax
inc esi
cmp esi, ebx
jle 0x46d606
xor ebx, ebx
jmp 0x46d61f
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 ebx, eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x46d691
lea eax, [ebp - 0x250]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x46d68a
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push dword [ebp - 0x254]
lea eax, [ebp - 0x22c]
push eax
call esi
test eax, eax
je 0x46d680
cmp dword [ebp + 8], 0
jne 0x46d66d
push ebx
lea eax, [ebp - 0x22c]
push eax
call esi
test eax, eax
je 0x46d680
lea eax, [ebp - 0x250]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x46d646
jmp 0x46d68a
mov dword [ebp - 0x258], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x258]
lea esp, [ebp - 0x264]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004755ea
leave
ret