joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d500
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53cf97
mov eax, dword fs:[0]
push eax
sub esp, 0x690
mov eax, dword [0x5a6900]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x694], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push 0x54b138
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004af679
add esp, 0xc
lea edx, [ebp - 0x474]
push edx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x478], eax
cmp dword [ebp - 0x478], 0xffffffff
je 0x40d6e5
lea ecx, [ebp - 0x474]
push ecx
mov edx, dword [ebp - 0x478]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x40d59f
jmp 0x40d6e5
movzx eax, word [ebp - 0x448]
cmp eax, 0x2e
jne 0x40d5ad
jmp 0x40d56a
movzx ecx, word [ebp - 0x446]
test ecx, ecx
jne 0x40d5ba
jmp 0x40d56a
movzx edx, word [ebp - 0x446]
cmp edx, 0x2e
jne 0x40d5d3
movzx eax, word [ebp - 0x444]
test eax, eax
jne 0x40d5d3
jmp 0x40d56a
lea ecx, [ebp - 0x47c]
call fcn.0040da00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x448]
push ecx
push 0x54b144
lea edx, [ebp - 0x47c]
push edx
call fcn.0040d1d0
add esp, 0xc
mov eax, dword [ebp - 0x474]
and eax, 0x10
je 0x40d66e
xor ecx, ecx
mov word [ebp - 0x684], cx
push 0x206
push 0
lea edx, [ebp - 0x682]
push edx
call fcn.004af7d0
add esp, 0xc
mov eax, dword [ebp - 0x47c]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x54b14c
lea edx, [ebp - 0x684]
push edx
call fcn.004af679
add esp, 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x68c], esp
lea eax, [ebp - 0x684]
push eax
call fcn.00404760
mov dword [ebp - 0x698], eax
mov ecx, dword [ebp - 0x694]
call fcn.0040d500
jmp 0x40d6d1
lea ecx, [ebp - 0x688]
call fcn.0040da00
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x47c]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x54b158
lea eax, [ebp - 0x688]
push eax
call fcn.0040d1d0
add esp, 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x690], esp
lea edx, [ebp - 0x688]
push edx
call fcn.00404740
mov dword [ebp - 0x69c], eax
mov ecx, dword [ebp - 0x694]
call fcn.0040d760
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x688]
call fcn.004047e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x47c]
call fcn.004047e0
jmp 0x40d56a
mov eax, dword [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp + 8]
call fcn.00404880
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40d718
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004047e0
jmp 0x40d73a
push 4
push 0
lea ecx, [ebp + 8]
call fcn.00404880
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004047e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004af76a
mov esp, ebp
pop ebp
ret 4
Function at 0x40d760
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53cfc7
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5a6900]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404880
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40d7c2
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004047e0
mov eax, dword [ebp - 0x14]
jmp 0x40d7ec
lea ecx, [ebp + 8]
call fcn.0040d9c0
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.0040d800
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004047e0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d800
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5a6900]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x220], ecx
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004af7d0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40d850
jmp 0x40d973
mov eax, dword [ebp + 8]
push eax
push 0x54b164
lea ecx, [ebp - 0x210]
push ecx
call fcn.004af679
add esp, 0xc
push 0x54b16c
lea edx, [ebp - 0x210]
push edx
call fcn.00401c20
add esp, 8
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x40d89e
push 5
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x40d973
mov dword [ebp - 0x218], 0
mov ecx, 1
test ecx, ecx
je 0x40d973
mov dword [ebp - 0x21c], 1
cmp dword [ebp - 0x218], 0
jne 0x40d8e2
mov edx, dword [ebp + 8]
push edx
push 0x54b178
lea eax, [ebp - 0x210]
push eax
call fcn.004af679
add esp, 0xc
jmp 0x40d901
mov ecx, dword [ebp - 0x218]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x54b188
lea eax, [ebp - 0x210]
push eax
call fcn.004af679
add esp, 0x10
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d925
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x40d954
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004b1e36
add esp, 8
push 5
push 0
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x40d973
cmp dword [ebp - 0x218], 0xa
jle 0x40d95f
jmp 0x40d973
mov eax, dword [ebp - 0x218]
add eax, 1
mov dword [ebp - 0x218], eax
jmp 0x40d8a8
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004af76a
mov esp, ebp
pop ebp
ret 4
Function at 0x40dab0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe44
mov eax, dword [0x5a6900]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xe44], ecx
push 0x104
lea eax, [ebp - 0x418]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea ecx, [ebp - 0x418]
push ecx
call fcn.00404220
add esp, 8
xor edx, edx
mov word [eax + 2], dx
xor eax, eax
mov word [ebp - 0xa30], ax
push 0x206
push 0
lea ecx, [ebp - 0xa2e]
push ecx
call fcn.004af7d0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x620], dx
push 0x206
push 0
lea eax, [ebp - 0x61e]
push eax
call fcn.004af7d0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x828], cx
push 0x206
push 0
lea edx, [ebp - 0x826]
push edx
call fcn.004af7d0
add esp, 0xc
xor eax, eax
mov word [ebp - 0xc38], ax
push 0x206
push 0
lea ecx, [ebp - 0xc36]
push ecx
call fcn.004af7d0
add esp, 0xc
xor edx, edx
mov word [ebp - 0xe40], dx
push 0x206
push 0
lea eax, [ebp - 0xe3e]
push eax
call fcn.004af7d0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.004af7d0
add esp, 0xc
push 0
push 0x2b
lea eax, [ebp - 0xa30]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x54b1fc
lea ecx, [ebp - 0xa30]
push ecx
call fcn.004af779
add esp, 8
push 0x54b200
lea edx, [ebp - 0xa30]
push edx
call fcn.004af779
add esp, 8
push 0x54b21c
lea eax, [ebp - 0xa30]
push eax
call fcn.004af779
add esp, 8
lea ecx, [ebp - 0xa30]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40dc1d
push 0
lea edx, [ebp - 0xa30]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x54b220
lea eax, [ebp - 0xa30]
push eax
call fcn.004af779
add esp, 8
push str..ini
lea ecx, [ebp - 0xa30]
push ecx
call fcn.004af779
add esp, 8
lea edx, [ebp - 0xa30]
push edx
lea eax, [ebp - 0x418]
push eax
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af76a
mov esp, ebp
pop ebp
ret

Function at 0x40eb60
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SoftWareMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40eba1
push 0x54b560
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov esp, ebp
pop ebp
ret
Function at 0x40ebc0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d164
mov eax, dword fs:[0]
push eax
sub esp, 0x690
mov eax, dword [0x5a6900]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x694], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push str._s.
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004af679
add esp, 0xc
lea edx, [ebp - 0x474]
push edx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x478], eax
cmp dword [ebp - 0x478], 0xffffffff
je 0x40eda5
lea ecx, [ebp - 0x474]
push ecx
mov edx, dword [ebp - 0x478]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x40ec5f
jmp 0x40eda5
movzx eax, word [ebp - 0x448]
cmp eax, 0x2e
jne 0x40ec6d
jmp 0x40ec2a
movzx ecx, word [ebp - 0x446]
test ecx, ecx
jne 0x40ec7a
jmp 0x40ec2a
movzx edx, word [ebp - 0x446]
cmp edx, 0x2e
jne 0x40ec93
movzx eax, word [ebp - 0x444]
test eax, eax
jne 0x40ec93
jmp 0x40ec2a
lea ecx, [ebp - 0x47c]
call fcn.0040da00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x448]
push ecx
push 0x54b578
lea edx, [ebp - 0x47c]
push edx
call fcn.0040d1d0
add esp, 0xc
mov eax, dword [ebp - 0x474]
and eax, 0x10
je 0x40ed2e
xor ecx, ecx
mov word [ebp - 0x684], cx
push 0x206
push 0
lea edx, [ebp - 0x682]
push edx
call fcn.004af7d0
add esp, 0xc
mov eax, dword [ebp - 0x47c]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._s_s_
lea edx, [ebp - 0x684]
push edx
call fcn.004af679
add esp, 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x68c], esp
lea eax, [ebp - 0x684]
push eax
call fcn.00404760
mov dword [ebp - 0x698], eax
mov ecx, dword [ebp - 0x694]
call fcn.0040ebc0
jmp 0x40ed91
lea ecx, [ebp - 0x688]
call fcn.0040da00
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x47c]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x54b58c
lea eax, [ebp - 0x688]
push eax
call fcn.0040d1d0
add esp, 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x690], esp
lea edx, [ebp - 0x688]
push edx
call fcn.00404740
mov dword [ebp - 0x69c], eax
mov ecx, dword [ebp - 0x694]
call fcn.0040ee20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x688]
call fcn.004047e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x47c]
call fcn.004047e0
jmp 0x40ec2a
mov eax, dword [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp + 8]
call fcn.00404880
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40edd8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004047e0
jmp 0x40edfa
push 4
push 0
lea ecx, [ebp + 8]
call fcn.00404880
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004047e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004af76a
mov esp, ebp
pop ebp
ret 4
Function at 0x40ee20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d194
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5a6900]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404880
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40ee82
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004047e0
mov eax, dword [ebp - 0x14]
jmp 0x40eeac
lea ecx, [ebp + 8]
call fcn.0040d9c0
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.0040eec0
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004047e0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x40eec0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5a6900]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x220], ecx
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004af7d0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40ef10
jmp 0x40f033
mov eax, dword [ebp + 8]
push eax
push 0x54b598
lea ecx, [ebp - 0x210]
push ecx
call fcn.004af679
add esp, 0xc
push str..del
lea edx, [ebp - 0x210]
push edx
call fcn.00401c20
add esp, 8
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x40ef5e
push 5
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x40f033
mov dword [ebp - 0x218], 0
mov ecx, 1
test ecx, ecx
je 0x40f033
mov dword [ebp - 0x21c], 1
cmp dword [ebp - 0x218], 0
jne 0x40efa2
mov edx, dword [ebp + 8]
push edx
push str._s.del
lea eax, [ebp - 0x210]
push eax
call fcn.004af679
add esp, 0xc
jmp 0x40efc1
mov ecx, dword [ebp - 0x218]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._s.del_d
lea eax, [ebp - 0x210]
push eax
call fcn.004af679
add esp, 0x10
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40efe5
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x40f014
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004b1e36
add esp, 8
push 5
push 0
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x40f033
cmp dword [ebp - 0x218], 0xa
jle 0x40f01f
jmp 0x40f033
mov eax, dword [ebp - 0x218]
add eax, 1
mov dword [ebp - 0x218], eax
jmp 0x40ef68
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004af76a
mov esp, ebp
pop ebp
ret 4
Function at 0x40f6c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edx, dword [ebp - 4]
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40f711
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [edx], 0
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
jmp 0x40f71b
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x40f760
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40f7a8
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
jmp 0x40f7b2
mov eax, dword [ebp - 4]
mov dword [eax + 4], 1
mov esp, ebp
pop ebp
ret 4

Function at 0x40f7e0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call fcn.004af750
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048b8f7
add esp, 4
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.004af7a7
add esp, 8
mov byte [ebp - 9], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x40f84d
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 4]
jg 0x40f8bb
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + eax*2]
cmp edx, 0x5c
jne 0x40f8b9
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov dx, word [ecx + eax*2]
mov word [ebp - 0x18], dx
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f8a2
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40f8a2
mov byte [ebp - 9], 0
jmp 0x40f8bb
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov dx, word [ebp - 0x18]
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x40f844
mov eax, dword [ebp - 8]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.0048b8ec
add esp, 4
movzx eax, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40fc00
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x5a6900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40fc48
xor eax, eax
jmp 0x40fd53
xor eax, eax
mov word [ebp - 0x214], ax
push 0x206
push 0
lea eax, [ebp - 0x212]
push eax
call fcn.004af7d0
add esp, 0xc
mov dword [ebp - 0x218], 0x104
mov dword [ebp - 0x21c], 1
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x21c]
push edx
push 0
push 0x54a628
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40fd31
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov word [ebp - 0x424], ax
push 0x206
push 0
lea eax, [ebp - 0x422]
push eax
call fcn.004af7d0
add esp, 0xc
push 0
push 0x26
lea eax, [ebp - 0x424]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x54baf0
lea eax, [ebp - 0x424]
push eax
call fcn.004af779
add esp, 8
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40fd17
xor eax, eax
jmp 0x40fd53
lea eax, [ebp - 0x424]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004af7a7
add esp, 8
mov eax, 1
jmp 0x40fd53
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004af7a7
add esp, 8
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af76a
mov esp, ebp
pop ebp
ret
Function at 0x40fd70
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x488
mov eax, dword [0x5a6900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
xor eax, eax
mov word [ebp - 0x228], ax
push 0x206
push 0
lea eax, [ebp - 0x226]
push eax
call fcn.004af7d0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x430], ax
push 0x206
push 0
lea eax, [ebp - 0x42e]
push eax
call fcn.004af7d0
add esp, 0xc
mov dword [ebp - 0x434], 0x104
mov dword [ebp - 0x438], 1
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push 0x54bbe0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40fe34
xor eax, eax
jmp 0x40ff73
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.shell
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40fe5e
xor eax, eax
jmp 0x40ff73
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x54bbb8
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40fe88
xor eax, eax
jmp 0x40ff73
mov dword [ebp - 0x20], 0x104
mov dword [ebp - 0x43c], 1
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x43c]
push edx
push 0
push 0x54a628
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x228]
push eax
call fcn.004b2d8d
add esp, 4
mov dword [ebp - 0x440], eax
push 0x54bbb4
mov eax, dword [ebp - 0x440]
push eax
call fcn.00401c20
add esp, 8
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x444], 0
jne 0x40ff0c
xor eax, eax
jmp 0x40ff73
mov eax, dword [ebp - 0x444]
add eax, 2
mov dword [ebp - 0x440], eax
mov eax, dword [ebp - 0x440]
mov dword [ebp - 0x448], eax
push 0x54bbb4
mov eax, dword [ebp - 0x440]
push eax
call fcn.00401c20
add esp, 8
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x444], 0
jne 0x40ff4e
xor eax, eax
jmp 0x40ff73
xor eax, eax
mov ecx, dword [ebp - 0x444]
mov word [ecx], ax
mov eax, dword [ebp - 0x448]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ff6e
xor eax, eax
jmp 0x40ff73
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af76a
mov esp, ebp
pop ebp
ret