joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46afa4
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x14
mov eax, 0x4b3812
call fcn.004764c0
mov eax, dword [ebp + 0x214]
push eax
mov esi, ecx
mov dword [ebp - 0x18], eax
call fcn.0046af5b
push dword [esi + 0x14]
xor eax, eax
push dword [esi + 8]
xor edi, edi
push dword [esi + 0x30]
cmp dword [esi], edi
push dword [esi + 4]
sete al
push dword [esi + 0x2c]
lea ebx, [esi + 0x38]
push dword [esi + 0x28]
push dword [esi + 0x1c]
push dword [esi + 0x18]
push eax
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 0x34]
push str.V_sOV_d__dOW_dS_I64dM_I64dC_dipartner_sDT_dOAV_d
push ebx
call fcn.00403b2e
add esp, 0x38
xor eax, eax
cmp dword [esi + 0xc], 6
jae 0x46b097
push 0x206
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.00475420
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.oeminfo.ini
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46b106
push 0x100
lea eax, [ebp]
push eax
push 0x4d3260
push str.Manufacturer
push str.General
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0046ae32
lea ecx, [esi + 0x3c]
push eax
mov dword [ebp - 4], edi
call fcn.00401c3e
mov ecx, dword [ebp - 0x10]
jmp 0x46b0fa
push 0x1fe
mov word [ebp + 8], ax
lea eax, [ebp + 0xa]
push edi
push eax
call fcn.00475420
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
push str.Manufacturer
xor edi, edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionOEMInformation
inc edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], 0x200
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x46b106
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.004024e0
lea ecx, [esi + 0x3c]
push eax
mov dword [ebp - 4], edi
call fcn.00401c3e
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00402820
lea eax, [esi + 0x3c]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.0046ac38
push dword [eax]
mov dword [ebp - 4], 2
push str.oeminfo_s
push ebx
call fcn.0041f9f6
mov ecx, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
add esp, 0xc
add ecx, 0xfffffff0
call fcn.00402820
mov ecx, dword [ebp - 0x18]
push 0
push ebx
call fcn.00461fb1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0047549a
add ebp, 0x20c
leave
ret 4
Function at 0x46b16b
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 0x46b183
xor eax, eax
inc eax
jmp 0x46b1b2
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46b17e
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x46b1a5
push esi
call edi
test eax, eax
jne 0x46b17e
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop edi
pop esi
ret

Function at 0x46b1b5
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, 0x4b127f
call fcn.004764c0
mov esi, dword [ebp + 0x880]
xor ebx, ebx
cmp esi, ebx
jne 0x46b1ec
xor eax, eax
jmp 0x46b2e7
cmp word [esi], bx
je 0x46b1e5
push esi
call fcn.00475ebe
cmp eax, 0x104
pop ecx
jge 0x46b1e5
push 0x410
lea eax, [ebp + 0x464]
push ebx
push eax
call fcn.00475420
add esp, 0xc
push 0x4d34d8
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 0x46b242
test al, 1
je 0x46b242
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.0043a57a
cmp eax, ebx
je 0x46b2cd
lea ecx, [ebp]
call fcn.0043a53d
lea ecx, [ebp]
test eax, eax
je 0x46b286
call fcn.0043a471
mov edi, eax
jmp 0x46b2c9
lea eax, [ebp - 0x10]
push eax
call fcn.0043c78a
push 0x10
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.0043a455
push dword [ebp - 0x10]
test eax, eax
je 0x46b2ab
call fcn.0046b1b5
jmp 0x46b2b0
call fcn.0046b16b
pop ecx
lea ecx, [ebp]
call fcn.0043a471
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov edi, eax
mov byte [ebp - 4], bl
call fcn.00402820
cmp edi, ebx
jne 0x46b26e
lea ecx, [ebp]
call fcn.0043a498
push esi
call fcn.00430e2d
pop ecx
lea ecx, [ebp]
call fcn.0043a498
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.0047549a
add ebp, 0x878
leave
ret
Function at 0x46ca80
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 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.0046ca42
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 0x46cb15
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46cb15
xor eax, eax
inc eax
jmp 0x46cc26
push ebx
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00475420
add esp, 0xc
push 0xf
pop ecx
lea eax, [ebp + 0x1c]
push 0xd3c
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
pop ecx
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.0046ca42
add esp, 0xc
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 0x46cba2
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x46cb0d
push ebx
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00475420
push 0xf
pop ecx
mov esi, 0x4d3474
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.0046ca42
add esp, 0x18
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 0x46cc24
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x46cb0d
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 0x46cc38
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.00475420
add esp, 0xc
push 6
pop ecx
lea eax, [ebp + 0x8c]
push 0x237f
mov esi, 0x4d34ec
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.00476890
pop ecx
push eax
lea eax, [ebp + 0x8c]
push eax
call fcn.0046ca42
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0x4d3262
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 0x46cce8
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46cce8
xor eax, eax
inc eax
jmp 0x46ccea
xor eax, eax
mov ecx, dword [ebp + 0xa4]
xor ecx, ebp
call fcn.0047549a
add ebp, 0xa8
leave
ret

Function at 0x46ccff
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
add esp, 0xc
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 0x837
push eax
mov dword [ebp - 0x138], 1
mov dword [ebp - 0x134], 0x104
movsd dword es:[edi], dword [esi]
call fcn.00476890
pop ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0046ca42
add esp, 0xc
lea eax, [ebp - 0x10]
push 0x844
push eax
call fcn.00476890
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0046ca42
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 0x46cdf0
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 0x46cdf0
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46cdf0
xor eax, eax
inc eax
jmp 0x46cdf2
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047549a
leave
ret
Function at 0x46cdfe
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.00475420
mov esi, 0x4d35bc
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, 0x4d35cc
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.00476890
pop ecx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0046ca42
add esp, 0xc
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00476890
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0046ca42
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 0x46ceed
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 0x46ceed
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46ceed
xor eax, eax
inc eax
jmp 0x46ceef
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047549a
leave
ret
Function at 0x46cefb
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.00475420
add esp, 0xc
push 8
pop ecx
mov esi, 0x4d3620
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4d3640
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.00476890
pop ecx
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0046ca42
add esp, 0xc
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.00476890
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0046ca42
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 0x46cfeb
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 0x46cfeb
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46cfeb
xor eax, eax
inc eax
jmp 0x46cfed
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047549a
leave
ret
Function at 0x46cff9
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, 0x4d36cc
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.00476890
pop ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0046ca42
mov esi, 0x4d36dc
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.00476890
pop ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0046ca42
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 0x46d090
and dword [ebp - 0x254], 0
jmp 0x46d0ad
lea eax, [esi + esi]
call fcn.0047bd30
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0040b4e0
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x14]
push eax
call edi
mov esi, eax
inc esi
cmp esi, ebx
jle 0x46d0be
xor ebx, ebx
jmp 0x46d0d7
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 ebx, eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x46d149
lea eax, [ebp - 0x250]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x46d142
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push dword [ebp - 0x254]
lea eax, [ebp - 0x22c]
push eax
call esi
test eax, eax
je 0x46d138
cmp dword [ebp + 8], 0
jne 0x46d125
push ebx
lea eax, [ebp - 0x22c]
push eax
call esi
test eax, eax
je 0x46d138
lea eax, [ebp - 0x250]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x46d0fe
jmp 0x46d142
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.0047549a
leave
ret
Function at 0x46d164
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, 0x4d3708
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.00476890
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0046ca42
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 0x46d1c8
xor edi, edi
jmp 0x46d1e1
lea eax, [esi + esi]
call fcn.0047bd30
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.0040b4e0
mov edi, eax
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x46d22e
lea eax, [ebp - 0x244]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x46d21e
push edi
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x46d224
lea eax, [ebp - 0x244]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x46d1ff
jmp 0x46d227
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.0047549a
leave
ret
Function at 0x46d245
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.00475420
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 0x4d28bc
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 0x46d2dd
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 0x46d32e
push esi
lea eax, [ebp - 0x74]
push 0
push eax
mov dword [ebp - 0x7c], esi
call fcn.00475420
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 0x4c48b8
push ebx
call edi
test eax, eax
jne 0x46d335
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 0x46d335
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.0047549a
add ebp, 0x198
leave
ret

Function at 0x46d350
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.00475420
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 0x46d3dc
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 0x46d3dc
inc edi
mov ecx, dword [ebp + 0x190]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0047549a
add ebp, 0x194
leave
ret
Function at 0x46d3f4
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 0x46d5a1
mov esi, 0x4d34b4
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, 0x4d34c8
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.0046ca42
push esi
lea eax, [ebp + 0x808]
push 0xe
push eax
call fcn.0046ca42
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 0x46d497
and dword [ebp - 0x80], 0
jmp 0x46d4b4
lea eax, [esi + esi]
call fcn.0047bd30
mov eax, esp
push 3
push esi
lea ecx, [ebp + 0x7f4]
push ecx
push eax
call fcn.0040b4e0
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x808]
push eax
call edi
mov esi, eax
inc esi
cmp esi, ebx
jle 0x46d4ca
and dword [ebp - 0x7c], 0
jmp 0x46d4e7
lea eax, [esi + esi]
call fcn.0047bd30
mov eax, esp
push 3
push esi
lea ecx, [ebp + 0x808]
push ecx
push eax
call fcn.0040b4e0
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 0x4d34d8
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 0x46d59e
test byte [ebp - 0x74], 0x10
je 0x46d57f
cmp word [ebp - 0x48], 0x2e
jne 0x46d54e
cmp word [ebp - 0x46], 0
je 0x46d57f
cmp word [ebp - 0x46], 0x2e
jne 0x46d54e
cmp word [ebp - 0x44], 0
je 0x46d57f
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 0x46d590
lea eax, [ebp - 0x74]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46d52c
jmp 0x46d597
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.0047549a
add ebp, 0x81c
leave
ret