joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410500
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
call fcn.0040bd60
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
call fcn.00409300
test eax, eax
je 0x410699
lea ecx, [ebp - 8]
call fcn.00405ce0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
call fcn.00409420
mov ecx, dword [eax]
push ecx
push 0x4cfac4
lea edx, [ebp - 8]
push edx
call fcn.004068d0
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00405d40
lea ecx, [ebp - 8]
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410691
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 4]
call fcn.00409420
mov ecx, eax
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
lea ecx, [ebp - 8]
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.0040bd10
mov ecx, eax
call fcn.00416b60
lea ecx, [ebp - 0x1c]
call fcn.00405d40
lea ecx, [ebp - 0xc]
call fcn.00405ce0
call fcn.0040bd10
add eax, 0x208
push eax
push str._s_remove.dat
lea ecx, [ebp - 0xc]
push ecx
call fcn.004068d0
add esp, 0xc
lea ecx, [ebp - 0xc]
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4105ee
lea ecx, [ebp - 8]
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
lea ecx, [ebp - 0xc]
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.0040bd10
mov ecx, eax
call fcn.004137f0
lea ecx, [ebp - 8]
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410689
lea ecx, [ebp - 0x10]
call fcn.00405ce0
mov edx, dword [ebp - 8]
push edx
push str.__s___usilent
lea eax, [ebp - 0x10]
push eax
call fcn.004068d0
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.0040fc20
push eax
call fcn.0040bd10
mov ecx, eax
call fcn.00412ec0
mov dword [ebp - 0x14], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0040fc60
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp - 4]
call fcn.00409420
mov ecx, eax
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
lea ecx, [ebp - 8]
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.0040bd10
mov ecx, eax
call fcn.00416b60
lea ecx, [ebp - 0x20]
call fcn.00405d40
lea ecx, [ebp - 0x10]
call fcn.00405d40
lea ecx, [ebp - 0xc]
call fcn.00405d40
lea ecx, [ebp - 8]
call fcn.00405d40
mov esp, ebp
pop ebp
ret
Function at 0x411530
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4f62a0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x21c], ecx
call fcn.0040bd60
mov dword [ebp - 4], eax
call fcn.0040bd10
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
call fcn.00409170
test eax, eax
je 0x4115b7
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.0042efe0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 4
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0
push 3
call fcn.0041ac20
add esp, 8
jmp 0x4115c3
push 0
push 1
call fcn.0041ac20
add esp, 8
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00425912
mov esp, ebp
pop ebp
ret

Function at 0x4116b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4f62a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], 0
cmp dword [ebp + 8], 0
jne 0x4116de
mov eax, dword [ebp - 0x23c]
jmp 0x411791
mov dword [ebp - 0x238], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0xffffffff
jne 0x41170c
mov eax, dword [ebp - 0x23c]
jmp 0x411791
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x41177e
lea edx, [ebp - 0x214]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00426522
add esp, 8
test eax, eax
jne 0x411762
mov ecx, dword [ebp - 0x230]
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x23c], eax
jmp 0x41177e
lea edx, [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov dword [ebp - 0x244], eax
jmp 0x411726
mov ecx, dword [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425912
mov esp, ebp
pop ebp
ret

Function at 0x412740
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov dword [edx], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], 0x10325476
mov esp, ebp
pop ebp
ret
Function at 0x4129d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4f62a0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x414], ecx
mov ecx, dword [ebp - 0x414]
call fcn.00412740
xor eax, eax
mov ecx, dword [ebp - 0x414]
add ecx, 0x68
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
mov byte [ecx + 0x20], al
mov edx, 0x7a7a7a7a
mov eax, dword [ebp - 0x414]
add eax, 0x68
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], edx
push 0x4d3b38
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042833f
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x412aaa
mov edx, dword [ebp - 4]
push edx
push 0x400
push 1
lea eax, [ebp - 0x410]
push eax
call fcn.00428b16
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x412a93
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x410]
push edx
mov ecx, dword [ebp - 0x414]
call fcn.00412790
jmp 0x412a58
mov ecx, dword [ebp - 0x414]
call fcn.004128a0
mov eax, dword [ebp - 4]
push eax
call fcn.00427da6
add esp, 4
mov eax, dword [ebp - 0x414]
add eax, 0x68
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00425912
mov esp, ebp
pop ebp
ret 4
Function at 0x412ad0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4f62a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x224], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x228]
add ecx, 2
mov dword [ebp - 0x22c], ecx
mov edx, dword [ebp - 0x228]
mov ax, word [edx]
mov word [ebp - 0x22e], ax
add dword [ebp - 0x228], 2
cmp word [ebp - 0x22e], 0
jne 0x412b01
mov ecx, dword [ebp - 0x228]
sub ecx, dword [ebp - 0x22c]
sar ecx, 1
mov dword [ebp - 0x234], ecx
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x220], 0x4ce92c
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
add ecx, 2
mov dword [ebp - 0x23c], ecx
mov edx, dword [ebp - 0x238]
mov ax, word [edx]
mov word [ebp - 0x23e], ax
add dword [ebp - 0x238], 2
cmp word [ebp - 0x23e], 0
jne 0x412b67
mov ecx, dword [ebp - 0x238]
sub ecx, dword [ebp - 0x23c]
sar ecx, 1
mov dword [ebp - 0x244], ecx
mov edx, dword [ebp - 0x244]
mov dword [ebp - 0x214], edx
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.0042efe0
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
push str.__s_
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.00406a30
add esp, 0x10
lea ecx, [ebp - 0x218]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallGamePP2
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x412c69
push 0x104
mov edx, dword [ebp + 8]
push edx
push 1
push 0
push str.DisplayName
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
push 1
push 0
push str.UninstallString
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x104
mov eax, dword [ebp + 0xc]
push eax
push 1
push 0
push str.DisplayIcon
mov ecx, dword [ebp - 0x218]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425912
mov esp, ebp
pop ebp
ret 8
Function at 0x412c80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x412e17
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add eax, 2
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
mov dx, word [ecx]
mov word [ebp - 0x2a], dx
add dword [ebp - 0x24], 2
cmp word [ebp - 0x2a], 0
jne 0x412cba
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
sar eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x412d26
mov dword [ebp - 0x34], 0x4cea78
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x34]
mov dx, word [ecx]
mov word [ebp - 0x3e], dx
mov eax, dword [ebp - 0x38]
mov cx, word [ebp - 0x3e]
mov word [eax], cx
mov edx, dword [ebp - 0x34]
add edx, 2
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x38]
add eax, 2
mov dword [ebp - 0x38], eax
cmp word [ebp - 0x3e], 0
jne 0x412cf9
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
add edx, 2
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x44]
mov cx, word [eax]
mov word [ebp - 0x4a], cx
add dword [ebp - 0x44], 2
cmp word [ebp - 0x4a], 0
jne 0x412d35
mov edx, dword [ebp - 0x44]
sub edx, dword [ebp - 0x48]
sar edx, 1
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
add edx, 2
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x54]
mov cx, word [eax]
mov word [ebp - 0x5a], cx
add dword [ebp - 0x54], 2
cmp word [ebp - 0x5a], 0
jne 0x412d6a
mov edx, dword [ebp - 0x54]
sub edx, dword [ebp - 0x58]
sar edx, 1
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
add edx, 2
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x64]
mov cx, word [eax]
mov word [ebp - 0x6a], cx
add dword [ebp - 0x64], 2
cmp word [ebp - 0x6a], 0
jne 0x412d9f
mov edx, dword [ebp - 0x64]
sub edx, dword [ebp - 0x68]
sar edx, 1
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x18], eax
push 0x104
mov ecx, dword [ebp + 0x10]
push ecx
push 1
push 0
push 0x4ce9b4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x1c], eax
push 0x104
mov eax, dword [ebp + 0xc]
push eax
push 1
push 0
push 0x4cea88
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x1c], 0
jne 0x412e0d
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x412e20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], 0x44
push 0x40
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.0042efe0
add esp, 0xc
mov dword [ebp - 0x34], 1
mov cx, word [ebp + 0x10]
mov word [ebp - 0x30], cx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0xc], 0
jne 0x412e7e
xor eax, eax
jmp 0x412eb5
push 0xffffffffffffffff
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x412eb5
mov esp, ebp
pop ebp
ret 0xc

Function at 0x412ec0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], 0x44
push 0x40
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.0042efe0
add esp, 0xc
mov dword [ebp - 0x34], 1
xor ecx, ecx
mov word [ebp - 0x30], cx
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x60]
push ecx
push 0
push 0
push 0x10
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0xc], 0
je 0x412f3b
cmp dword [ebp - 0xc], 0xffffffff
je 0x412f3b
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x412f50
Capabilities:
Create process on windows
Spoof parent pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov dword [ebp - 0x80], ecx
push str.explorer.exe
call fcn.004116b0
add esp, 4
mov dword [ebp - 0x74], eax
push 0x48
push 0
lea eax, [ebp - 0x70]
push eax
call fcn.0042efe0
add esp, 0xc
mov dword [ebp - 0x70], 0x48
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov edx, dword [ebp - 8]
push edx
call fcn.00424d7a
add esp, 4
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x24], ecx
lea edx, [ebp - 8]
push edx
push 0
push 1
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
push 0
push 0
push 4
lea ecx, [ebp - 0x74]
push ecx
push 0x20000
push 0
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
jne 0x412fed
xor eax, eax
jmp 0x413074
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x70]
push eax
push 0
push 0
push 0x80000
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x41304c
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x7c]
push eax
call fcn.004262f0
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x413080
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4130c9
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0xc]
jmp 0x4130cb
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x413170
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x534
mov eax, dword [0x4f62a0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x534], ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
cmp dword [ebp + 0x14], 0
jne 0x41319e
xor eax, eax
jmp 0x413363
lea eax, [ebp - 0x214]
push eax
push 0x4ba63c
push 1
push 0
push 0x4ba65c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x324], eax
cmp dword [ebp - 0x324], 0
jge 0x4131cf
xor eax, eax
jmp 0x413363
lea ecx, [ebp - 4]
push ecx
push 0x4ba68c
mov edx, dword [ebp - 0x214]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [eax]
call edx
mov dword [ebp - 0x324], eax
cmp dword [ebp - 0x324], 0
jge 0x413215
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x214]
push edx
mov eax, dword [ecx + 8]
call eax
xor eax, eax
jmp 0x413363
cmp dword [ebp + 0xc], 0
jne 0x413238
lea ecx, [ebp - 0x530]
push ecx
mov edx, dword [ebp - 0x214]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [eax + 0x50]
call edx
jmp 0x413250
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x214]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [edx + 0x50]
call ecx
cmp dword [ebp + 0x18], 0
je 0x41326e
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x214]
push edx
mov eax, dword [ecx + 0x50]
call eax
cmp dword [ebp + 0x1c], 0
je 0x41328d
movzx ecx, word [ebp + 0x1c]
push ecx
mov edx, dword [ebp - 0x214]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [eax + 0x34]
call edx
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [ebp - 0x214]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [edx + 0x3c]
call ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x214]
push edx
mov eax, dword [ecx + 0x1c]
call eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x214]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [eax + 0x44]
call edx
cmp dword [ebp + 0x14], 0
je 0x4132fb
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0x4ceb08
lea edx, [ebp - 0x210]
push edx
call fcn.00410470
add esp, 0x10
jmp 0x413318
push str.unknown.lnk
mov eax, dword [ebp + 0x10]
push eax
push 0x4ceb20
lea ecx, [ebp - 0x210]
push ecx
call fcn.00410470
add esp, 0x10
push 1
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ecx + 0x18]
call eax
mov dword [ebp - 0x324], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x214]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [eax + 8]
call edx
xor eax, eax
cmp dword [ebp - 0x324], 0
setge al
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00425912
mov esp, ebp
pop ebp
ret 0x20
Function at 0x413780
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4137a5
mov eax, 1
jmp 0x4137e4
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4137ba
mov eax, 1
jmp 0x4137e4
push 0x80
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4137e2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4137e2
mov eax, 1
jmp 0x4137e4
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x413ed0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x413f17
cmp dword [ebp - 4], 0x50
je 0x413f17
cmp dword [ebp - 4], 0xb7
je 0x413f17
push 0x30
push 0x4ced8c
push str._rN_f_tgHe
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x413f26
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, 1
mov esp, ebp
pop ebp
ret 4