joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f3a94
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
mov dword [0x53f320], 0x834
lea eax, [ebp - 0x118]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x118]
push eax
push 0xff
call sub.kernel32.dll_GetLogicalDriveStringsA
test eax, eax
je 0x4f3bb2
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
and al, 0xdf
mov bl, al
cmp bl, 0x41
jb 0x4f3bab
cmp bl, 0x43
jb 0x4f3b8d
mov esi, ebx
and esi, 0xff
cmp byte [esi + 0x5497a5], 3
je 0x4f3b8d
xor eax, eax
push ebp
push 0x4f3b83
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetDriveTypeA
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 5
jne 0x4f3b33
mov byte [esi + 0x5497a5], 3
jmp 0x4f3b51
cmp byte [ebp - 0xd], 3
jne 0x4f3b51
mov eax, ebx
call fcn.00471d58
test al, al
jne 0x4f3b4d
mov byte [esi + 0x5497a5], 3
jmp 0x4f3b51
mov byte [ebp - 0xd], 2
cmp byte [ebp - 0xd], 2
jne 0x4f3b79
mov eax, ebx
sub al, 0x41
inc eax
call fcn.00409c64
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
add eax, dword [ebp - 0x18]
adc edx, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f3b8d
mov eax, dword [ebp - 0xc]
call fcn.00409d38
inc eax
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
and al, 0xdf
mov bl, al
cmp bl, 0x41
jae 0x4f3aec
xor eax, eax
mov dword [0x53f320], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f4a14
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
xor eax, eax
push ebp
push 0x4f4c24
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x53f320], 0x841
xor eax, eax
mov dword [ebp - 8], eax
push 0
push 4
push 2
push 1
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [0x53fa5c]
cmp eax, 0x7a
jne 0x4f4c09
mov eax, dword [ebp - 8]
call fcn.00408d98
mov dword [ebp - 4], eax
mov eax, dword [0x549800]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x549804]
mov edx, dword [eax]
call dword [edx + 8]
push 0
push 4
push 2
push 1
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [0x53fa5c]
test eax, eax
jne 0x4f4b2a
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
dec ebx
test ebx, ebx
jl 0x4f4b2a
inc ebx
xor esi, esi
lea eax, [esi + esi*2]
mov edx, dword [ebp - 4]
lea edi, [edx + eax*8 + 4]
cmp dword [edi + 0xc], 0
je 0x4f4b26
cmp dword [edi + 0x14], 0
je 0x4f4b26
mov eax, dword [edi]
cmp eax, 3
je 0x4f4ad5
cmp eax, 4
je 0x4f4ad5
cmp eax, 5
jne 0x4f4b26
mov edx, dword [edi + 0x14]
mov eax, dword [0x549800]
call fcn.00416ee0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x4f4b0a
mov edx, dword [ebp - 0xc]
mov eax, dword [0x549804]
call fcn.00416e84
mov ecx, eax
inc ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [0x549804]
call fcn.00416fd0
jmp 0x4f4b26
mov edx, dword [edi + 0x14]
mov eax, dword [0x549800]
call fcn.00416d28
mov edx, 1
mov eax, dword [0x549804]
call fcn.00416d28
inc esi
dec ebx
jne 0x4f4aae
mov eax, dword [ebp - 4]
call fcn.004027dc
mov eax, dword [0x549800]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4f4c02
inc ebx
xor esi, esi
mov edx, esi
mov eax, dword [0x549804]
call fcn.00416e84
cmp eax, 8
jbe 0x4f4bfa
mov edx, esi
mov eax, dword [0x549800]
call fcn.00416e84
mov edi, eax
xor eax, eax
call fcn.004b44b4
mov dword [0x53fc3c], eax
mov eax, edi
call fcn.004f227c
test al, al
jne 0x4f4bfa
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.004b49b4
push edi
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
test eax, eax
je 0x4f4bab
cmp eax, 0xffffffff
je 0x4f4bab
push 0x1111
push eax
call sub.kernel32.dll_TerminateProcess
cmp dword [0x53f41c], 0
je 0x4f4bfa
cmp dword [ebp - 0x10], 0
je 0x4f4bfa
push 0
lea edx, [ebp - 0x14]
mov eax, 0xec
call fcn.004ab8a8
mov eax, dword [ebp - 0x14]
call fcn.00404a84
push eax
lea edx, [ebp - 0x18]
mov eax, 0x25
call fcn.004ac138
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
call fcn.00404894
mov eax, dword [ebp - 0x18]
call fcn.00404a84
push eax
push 0
call sub.user32.dll_MessageBoxA_1
inc esi
dec ebx
jne 0x4f4b46
xor eax, eax
mov dword [0x53f320], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f4c2b
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004045dc
ret
Function at 0x4f4c7c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
xor eax, eax
push ebp
push 0x4f4e16
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x53f320], 0x845
cmp dword [0x53fa70], 0
je 0x4f4d90
push 0
push 0x1388
mov eax, dword [0x53f338]
mov edx, dword [0x53f33c]
call fcn.00405a30
cmp edx, 0
jne 0x4f4d90
cmp eax, 0x4b0
jne 0x4f4d90
cmp dword [0x53fbb8], 0
jne 0x4f4ced
mov dl, 1
mov eax, dword [0x470804]
call fcn.0040377c
mov dword [0x53fbb8], eax
mov eax, dword [0x53f45c]
call fcn.00404ea0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x4f4d15
mov eax, dword [0x53f45c]
push eax
mov eax, dword [0x53fa70]
push eax
call fcn.0046de68
jmp 0x4f4d90
test al, 6
je 0x4f4d2d
push 0x20
mov eax, dword [0x53f45c]
call fcn.00404ea0
push eax
call sub.kernel32.dll_SetFileAttributesW
jmp 0x4f4d02
push 0xa
mov eax, dword [0x53f45c]
push eax
mov eax, dword [0x53fbb8]
push eax
call fcn.0046df20
test al, al
je 0x4f4d02
mov eax, dword [0x53fbb8]
call fcn.004196f0
push edx
push eax
mov eax, dword [0x53fa70]
call fcn.004196f0
cmp edx, dword [esp + 4]
jne 0x4f4d63
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4f4d02
mov eax, dword [0x53fbb8]
call fcn.004196f0
mov ecx, eax
mov eax, dword [0x53fa70]
mov edx, dword [eax + 4]
mov eax, dword [0x53fbb8]
mov eax, dword [eax + 4]
call fcn.00471e90
test eax, eax
jne 0x4f4d02
cmp dword [0x53f430], 0
jle 0x4f4df9
sub dword [0x53f430], 0xc8
cmp dword [0x53f430], 0
jg 0x4f4e00
mov dword [0x53f430], 0x4e20
lea eax, [ebp - 4]
mov edx, dword [0x54962c]
call fcn.00404650
xor ebx, ebx
call fcn.004e9600
test al, al
jne 0x4f4dd1
mov bl, 1
mov eax, dword [ebp - 4]
call fcn.004e9798
cmp eax, 2
je 0x4f4de7
cmp dword [0x53fba8], 3
jle 0x4f4dee
mov bl, 1
call fcn.004e96b8
mov dl, 1
mov eax, ebx
call fcn.004e99c0
jmp 0x4f4e00
xor eax, eax
mov dword [0x53f320], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f4e1d
lea eax, [ebp - 4]
call fcn.004045b8
ret
Function at 0x4f4ea0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
xor edx, edx
push ebp
push 0x4f5003
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [0x53f320], 0x847
cmp al, byte [0x53fc64]
je 0x4f4fe1
mov byte [0x53fc64], al
cmp dword [0x5499f0], 0
jne 0x4f4eef
mov dl, 1
mov eax, dword [0x414568]
call fcn.0040377c
mov dword [0x5499f0], eax
mov eax, dword [0x5499f0]
mov eax, dword [eax + 8]
test eax, eax
jle 0x4f4f25
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4f4f1b
inc ebx
xor esi, esi
mov edx, esi
mov eax, dword [0x5499f0]
call fcn.00416e84
push eax
call sub.kernel32.dll_CloseHandle_1
inc esi
dec ebx
jne 0x4f4f05
mov eax, dword [0x5499f0]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x54956c]
mov al, byte [eax]
mov byte [ebp - 1], al
mov eax, dword [0x540c9c]
mov eax, dword [eax]
mov al, byte [eax]
mov byte [ebp - 2], al
cmp byte [0x53fc64], 0
je 0x4f4fe1
mov bl, 0x41
cmp bl, byte [ebp - 1]
je 0x4f4fd7
cmp bl, byte [ebp - 2]
je 0x4f4fd7
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00404798
lea eax, [ebp - 0xc]
mov edx, 0x4f5018
call fcn.00404894
mov eax, dword [ebp - 0xc]
call fcn.00404a84
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x4f4fd7
lea edx, [ebp - 0x10]
mov eax, 0x7d
call fcn.004ab8a8
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.00404798
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 8]
pop ecx
call fcn.004048d8
push 0
push 0x22
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 8]
call fcn.00404adc
push eax
call sub.kernel32.dll_CreateFileA_1
cmp eax, 0xffffffff
je 0x4f4fd7
mov edx, eax
mov eax, dword [0x5499f0]
call fcn.00416d28
inc ebx
cmp bl, 0x5b
jne 0x4f4f4a
xor eax, eax
mov dword [0x53f320], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f500a
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.004045dc
ret

Function at 0x4f549c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a74
mov eax, dword [ebp - 8]
call fcn.00404a74
xor eax, eax
push ebp
push 0x4f5546
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0046de04
mov esi, eax
mov eax, dword [ebp - 8]
call fcn.0046de04
cmp esi, eax
jne 0x4f54ff
mov eax, dword [ebp - 4]
call fcn.00470ab8
push edx
push eax
mov eax, dword [ebp - 8]
call fcn.00470ab8
cmp edx, dword [esp + 4]
jne 0x4f54fb
cmp eax, dword [esp]
pop edx
pop eax
je 0x4f552b
mov edx, 0x20
mov eax, dword [ebp - 8]
call fcn.0040986c
push 0
lea eax, [ebp - 8]
call fcn.00404adc
push eax
lea eax, [ebp - 4]
call fcn.00404adc
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f554d
lea eax, [ebp - 8]
mov edx, 2
call fcn.004045dc
ret
Function at 0x4fc810
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a74
mov eax, dword [ebp - 8]
call fcn.00404a74
xor eax, eax
push ebp
push 0x4fc8b4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0046de04
mov ebx, eax
mov eax, dword [ebp - 8]
call fcn.0046de04
mov ecx, eax
test ecx, ecx
jle 0x4fc897
test ebx, ebx
jle 0x4fc876
mov eax, ecx
sub eax, ebx
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jg 0x4fc869
mov bl, 1
jmp 0x4fc899
mov edx, 0x20
mov eax, dword [ebp - 4]
call fcn.0040986c
push 0
lea eax, [ebp - 4]
call fcn.00404adc
push eax
lea eax, [ebp - 8]
call fcn.00404adc
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4fc899
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fc8bb
lea eax, [ebp - 8]
mov edx, 2
call fcn.004045dc
ret
Function at 0x401390
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x44200c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x210]
mov edi, ecx
push 0
push eax
call fcn.0040b440
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x208
push 0
push eax
call fcn.0040b440
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x40144a
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0x41c]
mov esi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test esi, esi
je 0x40144a
push 0x43f88c
lea eax, [ebp - 0x210]
push eax
push str._s_s.lnk
push 0x104
push eax
call fcn.00401040
push ecx
lea edx, [ebp - 0x210]
mov ecx, edi
call fcn.004012c0
add esp, 0x18
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004078a0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004078a0
mov esp, ebp
pop ebp
ret

Function at 0x401460
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x44200c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
push 0xa
push edx
xor esi, esi
mov dword [ebp - 0xc], eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40151b
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x401508
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x401501
push esi
push 0x80
push 2
push esi
push esi
push 0xc0000000
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401501
push esi
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4014f8
cmp dword [ebp - 8], esi
jne 0x4014f8
mov esi, 1
jmp 0x4014fa
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004078a0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004078a0
mov esp, ebp
pop ebp
ret
Function at 0x401530
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x44200c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, edx
push 0
push eax
call fcn.0040b440
add esp, 0xc
mov dword [ebp - 0x210], 0
lea eax, [ebp - 0x210]
push eax
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x4015e4
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x4015e4
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4015e4
test esi, esi
je 0x4015e4
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4015a4
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jae 0x4015e4
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
call fcn.00415520
add esp, 0xc
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004078a0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004078a0
mov esp, ebp
pop ebp
ret

Function at 0x401ab0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x44200c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x218], edx
push 0x200
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], esi
push esi
push eax
mov ebx, ecx
call fcn.0040b440
add esp, 0xc
push esi
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x401bc4
push eax
call fcn.00407b80
mov edi, eax
add esp, 4
test edi, edi
je 0x401bc4
push edi
push dword [ebp - 0x210]
push esi
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x401bbb
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x43f728
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x401bbb
mov ecx, dword [ebp - 0x214]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x43f72c
lea eax, [ebp - 0x20c]
push 0x100
push eax
call fcn.00401040
mov edx, dword [ebp - 0x218]
add esp, 0x1c
test edx, edx
je 0x401bbb
lea ecx, [ebp - 0x20c]
lea ebx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401b90
sub ecx, ebx
sar ecx, 1
cmp ecx, 0x40
jae 0x401bbb
lea eax, [ebp - 0x20c]
push eax
push 0x40
push edx
call fcn.00415520
add esp, 0xc
mov esi, 1
push edi
call fcn.00407b60
add esp, 4
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004078a0
mov esp, ebp
pop ebp
ret
Function at 0x401be0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4314d2
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x44200c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x11c], esi
push 0x104
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x118], 0
call fcn.0040b440
add esp, 8
mov ecx, esi
call fcn.00402bd0
push 1
push 0x17
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push eax
push 0
mov dword [ebp - 0x118], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x401c8b
cmp byte [ebp - 0x114], 0
je 0x401caa
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401c82
jmp 0x401cbe
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0040b440
add esp, 0xc
cmp byte [ebp - 0x114], 0
jne 0x401cae
xor ecx, ecx
jmp 0x401cc0
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401cb7
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
mov ecx, esi
push eax
call fcn.00403310
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004078a0
mov esp, ebp
pop ebp
ret
Function at 0x401cf0
Capabilities:
Check if file exists
Create shortcut via ishelllink
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43153b
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x44200c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 5
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401d48
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x401d76
lea eax, [ebp - 0x14]
push eax
push 0x432210
push 1
push 0
push 0x432230
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x401dc7
call dword [sym.imp.ole32.dll_CoUninitialize]
xor bl, bl
lea ecx, [ebp + 8]
call fcn.00402640
lea ecx, [ebp + 0x24]
call fcn.00402640
lea ecx, [ebp + 0x40]
call fcn.00402640
lea ecx, [ebp + 0x5c]
call fcn.00402640
lea ecx, [ebp + 0x78]
call fcn.00402640
lea ecx, [ebp + 0x94]
call fcn.00402640
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004078a0
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 0x40]
push eax
lea edx, [ebp + 0x24]
lea ecx, [ebp - 0x34]
call fcn.004040d0
add esp, 4
mov byte [ebp - 4], 6
cmp dword [eax + 0x18], 8
jb 0x401de8
mov edx, dword [eax + 4]
jmp 0x401deb
lea edx, [eax + 4]
mov eax, dword [ebp - 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.00402640
mov eax, dword [ebp - 0x14]
lea edx, [ebp + 0x28]
cmp dword [ebp + 0x3c], 8
cmovae edx, dword [ebp + 0x28]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x24]
cmp dword [ebp + 0xa8], 0
je 0x401e3d
mov eax, dword [ebp - 0x14]
lea edx, [ebp + 0x98]
cmp dword [ebp + 0xac], 8
cmovae edx, dword [ebp + 0x98]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x14]
lea edx, [ebp + 0x7c]
cmp dword [ebp + 0x90], 8
cmovae edx, dword [ebp + 0x7c]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1c]
cmp dword [ebp + 0x70], 0
je 0x401e72
mov eax, dword [ebp - 0x14]
lea edx, [ebp + 0x60]
cmp dword [ebp + 0x74], 8
push 0
cmovae edx, dword [ebp + 0x60]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
push edx
push 0x432220
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x401ea7
mov eax, dword [ebp - 0x18]
lea edx, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
push 1
cmovae edx, dword [ebp + 0xc]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov bl, 1
jmp 0x401d78
Function at 0x4024e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4316fe
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x44200c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0x1c
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00402d20
lea ecx, [ebp - 0x2c]
call fcn.00401ec0
add esp, 0x1c
mov esi, eax
lea eax, [ebp + 8]
cmp eax, esi
je 0x402560
mov edx, dword [ebp + 0x20]
cmp edx, 0x10
jb 0x402545
mov ecx, dword [ebp + 0xc]
inc edx
push 1
call fcn.004010f0
add esp, 4
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], 0
mov byte [ebp + 0xc], 0
call fcn.004036d0
lea ecx, [ebp - 0x2c]
call fcn.00402a50
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x402590
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
lea ecx, [ebp + 8]
call fcn.00402a50
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret