joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41586b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
push edi
and word [ebp - 0x19c], 0
push 4
lea edi, [ebp - 0x19a]
pop eax
and dword [ebp - 4], 0
push 0x63
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
pop ecx
push dword [ebp + 8]
xor eax, eax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZones_d
lea eax, [ebp - 0x19c]
push 0xc8
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x19c]
push str.2500
push eax
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
pop edi
jne 0x4158e5
cmp dword [ebp - 4], eax
je 0x4158e5
leave
ret
push 1
pop eax
leave
ret

Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4
Function at 0x401000
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
cmp dword [0x42a558], 0
push esi
push edi
jne 0x401117
push 1
xor eax, eax
pop esi
lea edi, [ebp - 0x118]
push 0x46
mov dword [0x42a558], esi
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401117
push 2
pop ecx
cmp dword [ebp - 0x10c], ecx
jne 0x401117
mov edx, dword [ebp - 0x118]
cmp edx, 4
jbe 0x401117
push 5
pop edi
cmp edx, edi
jne 0x4010cb
cmp dword [ebp - 0x114], 0
jne 0x401082
mov eax, ecx
jmp 0x401110
cmp dword [ebp - 0x114], esi
jne 0x4010bb
mov ax, word [ebp - 8]
test ax, ax
jne 0x401097
push 3
jmp 0x4010ec
cmp ax, si
jne 0x4010a0
push 4
jmp 0x4010ec
cmp ax, cx
jne 0x4010a9
push 6
jmp 0x4010ec
cmp ax, 3
jne 0x4010fe
mov dword [0x42a554], 7
jmp 0x4010fe
cmp dword [ebp - 0x114], ecx
jne 0x4010fe
mov dword [0x42a554], edi
jmp 0x4010fe
cmp edx, 6
jne 0x4010fe
mov eax, dword [ebp - 0x114]
test eax, eax
jne 0x4010de
push 8
jmp 0x4010ec
cmp eax, esi
jne 0x4010e6
push 9
jmp 0x4010ec
cmp eax, ecx
jne 0x4010ef
push 0xa
pop eax
jmp 0x401110
cmp eax, 3
jne 0x4010fe
mov dword [0x42a554], 0xb
mov eax, dword [0x42a554]
test eax, eax
jne 0x40111c
cmp edx, edi
sbb eax, eax
and al, 0xf5
add eax, 0xc
mov dword [0x42a554], eax
jmp 0x40111c
mov eax, dword [0x42a554]
pop edi
pop esi
leave
ret

Function at 0x401120
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4008
call fcn.0041fa70
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp - 4], edi
je 0x4011fb
cmp dword [ebp + 0xc], edi
je 0x4011fb
mov esi, dword [ebp + 0x10]
cmp esi, edi
je 0x4011fb
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4011fb
mov word [ebp - 0x4008], di
mov ecx, 0xfff
xor eax, eax
lea edi, [ebp - 0x4006]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 0x10]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4011fb
cmp eax, 0x2000
ja 0x4011fb
lea ecx, [ebp - 0x4008]
push ecx
push eax
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4011f6
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x4008]
push 0x4260b4
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4011f6
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0xc]
push ecx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
push ecx
movzx ecx, word [eax + 8]
mov eax, dword [eax + 8]
push ecx
shr eax, 0x10
push eax
dec esi
push str._d._d._d._d
push esi
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x1c
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
jmp 0x4011fd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40135e
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
je 0x4013e6
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x4013e6
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], bx
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0x26
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x208]
push str.Internet_Exploreriexplore.exe
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop edi
je 0x4013e2
lea eax, [ebp - 0x208]
dec esi
push eax
push 0x4260b8
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push 1
pop ebx
mov eax, ebx
jmp 0x4013e8
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x4013ec
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
push esi
xor esi, esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40140d
push 1
pop eax
jmp 0x4014a0
push edi
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0x7e]
mov word [ebp - 0x80], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.JUZITEST__d.tmp
lea eax, [ebp - 0x80]
push 0x3f
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x286]
mov word [ebp - 0x288], si
rep stosd dword es:[edi], eax
add esp, 0x10
stosw word es:[edi], ax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x288]
push dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
push 0x80
push 2
push esi
push esi
lea eax, [ebp - 0x288]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
pop edi
je 0x40149e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x4014a3
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40153d
cmp word [esi], 0
je 0x40153d
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push esi
call ebx
test eax, eax
je 0x4014d1
push 1
pop eax
jmp 0x40153f
and word [ebp - 0x208], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4260b8
lea eax, [ebp - 0x208]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
pop edi
je 0x40153d
lea eax, [ebp - 0x208]
push eax
call ebx
test eax, eax
jne 0x401532
lea eax, [ebp - 0x208]
push eax
call fcn.004014a3
pop ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x40153f
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x401543
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x4016bd
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4016bd
and dword [ebp - 0x254], 0
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x250]
rep stosd dword es:[edi], eax
mov ax, word [0x42a560]
mov ebx, 0x81
mov word [ebp - 0x86c], ax
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x86a]
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x42612c
push dword [ebp + 8]
stosw word es:[edi], ax
lea eax, [ebp - 0x86c]
push eax
call esi
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x86c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4016bd
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea eax, [ebp - 0x228]
push 0x426128
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x401683
lea eax, [ebp - 0x228]
push 0x426120
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x401683
test byte [ebp - 0x254], 0x10
mov ax, word [0x42a560]
je 0x40164e
mov word [ebp - 0x45c], ax
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x45a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x45c]
push dword [ebp + 8]
push eax
call esi
lea eax, [ebp - 0x45c]
push eax
call fcn.00401543
jmp 0x401682
mov word [ebp - 0x664], ax
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x662]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x664]
push dword [ebp + 8]
push eax
call esi
lea eax, [ebp - 0x664]
push eax
call fcn.00401a3c
pop ecx
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4015d7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4016bf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4016c4
Capabilities:
Check if file exists
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
je 0x401822
cmp dword [ebp + 0xc], edi
je 0x401822
cmp dword [ebp + 0x10], edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x4016fe
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x401822
mov word [ebp - 0x414], di
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
push dword [ebp + 0xc]
stosw word es:[edi], ax
push 0x4260b8
lea eax, [ebp - 0x414]
push 0x103
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x414]
push eax
call fcn.004014a3
test eax, eax
pop ecx
je 0x40181c
cmp dword [ebp + 0x10], 0
je 0x401782
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x40181c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 4], eax
jmp 0x40181c
and word [ebp - 0x20c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
push 0x426134
push 0x103
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x4017cf
lea eax, [ebp - 0x20c]
push eax
call fcn.00401a3c
pop ecx
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x20c]
push eax
push edi
call ebx
push edi
mov dword [ebp + 0xc], eax
call esi
test eax, eax
jne 0x4017f7
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
je 0x40181c
cmp dword [ebp - 4], 0
jne 0x40180f
lea eax, [ebp - 0x20c]
push edi
push eax
call ebx
jmp 0x40181c
lea eax, [ebp - 0x20c]
push eax
call fcn.00401a3c
pop ecx
mov eax, dword [ebp - 4]
pop ebx
jmp 0x401824
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x401828
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebp
push edi
push 0x426154
xor ebp, ebp
push dword [esp + 0x14]
mov dword [esp + 0x10], ebp
call dword [sym.imp.MSVCRT.dll__wfopen]
mov edi, eax
pop ecx
cmp edi, ebp
pop ecx
je 0x4018d2
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push ebp
push edi
call esi
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
push ebp
push ebp
push edi
mov ebx, eax
call esi
lea ebp, [ebx + 1]
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 0x20
test esi, esi
je 0x4018c8
push ebp
push 0
push esi
call sub.MSVCRT.dll_memset
push edi
push ebx
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
push 0x42614c
push dword [esp + 0x3c]
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebp, eax
add esp, 0x24
test ebp, ebp
je 0x4018c1
push ebp
push ebx
push 1
pop ebx
push ebx
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov dword [esp + 0x10], ebx
push esi
call fcn.0041fa52
pop ecx
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop esi
pop ebx
mov eax, dword [esp + 8]
pop edi
pop ebp
pop ecx
ret
Function at 0x4018da
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
je 0x401a36
cmp dword [ebp + 0xc], edi
je 0x401a36
cmp dword [ebp + 0x10], edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x401914
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x401a36
mov word [ebp - 0x414], di
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
push dword [ebp + 0xc]
stosw word es:[edi], ax
push 0x4260b8
lea eax, [ebp - 0x414]
push 0x103
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x414]
push eax
call fcn.004014a3
test eax, eax
pop ecx
je 0x401a30
cmp dword [ebp + 0x10], 0
je 0x401996
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x401a30
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401828
pop ecx
mov dword [ebp - 4], eax
pop ecx
jmp 0x401a30
and word [ebp - 0x20c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
push 0x426134
push 0x103
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x4019e3
lea eax, [ebp - 0x20c]
push eax
call fcn.00401a3c
pop ecx
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x20c]
push eax
push edi
call ebx
push edi
mov dword [ebp + 0xc], eax
call esi
test eax, eax
jne 0x401a0b
push edi
push dword [ebp + 8]
call fcn.00401828
pop ecx
mov dword [ebp - 4], eax
pop ecx
cmp dword [ebp + 0xc], 0
je 0x401a30
cmp dword [ebp - 4], 0
jne 0x401a23
lea eax, [ebp - 0x20c]
push edi
push eax
call ebx
jmp 0x401a30
lea eax, [ebp - 0x20c]
push eax
call fcn.00401a3c
pop ecx
mov eax, dword [ebp - 4]
pop ebx
jmp 0x401a38
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x401a3c
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401a5b
push 1
pop eax
leave
ret
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push 0x80
push dword [ebp + 8]
call esi
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call ebx
test eax, eax
jne 0x401af4
and word [ebp - 0x20c], ax
push dword [ebp + 8]
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str._s.inst.del
lea eax, [ebp - 0x20c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401ad8
lea eax, [ebp - 0x20c]
push 0x80
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call ebx
push 1
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
lea eax, [ebp - 0x20c]
push edi
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x401afd
jmp 0x401b0d
mov dword [ebp - 4], 1
jmp 0x401b0d
push 4
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [ebp - 4], edi
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401c99
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov eax, 0x41ff5c
call fcn.0041fac0
sub esp, 0x214
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
push 0x421dd0
push 1
push ebx
push 0x421de0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x401d9c
mov eax, dword [ebp - 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x14], 0xffffffff
je 0x401cfb
mov eax, dword [ebp - 0x10]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push esi
jmp 0x401d09
cmp dword [ebp + 0x18], ebx
je 0x401d0d
mov eax, dword [ebp - 0x10]
push ebx
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21e]
mov word [ebp - 0x220], bx
rep stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcslen]
push eax
lea eax, [ebp - 0x220]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0x10
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x220]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
cmp dword [ebp + 0x10], ebx
pop edi
pop esi
je 0x401d6e
mov eax, dword [ebp - 0x10]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push 0x421df0
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x401d9c
mov eax, dword [ebp - 0x14]
push 2
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x401d9c
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x401dac
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
pop ebx
je 0x401dbe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], ecx
leave
ret
Function at 0x402231
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x22f0
call fcn.0041fa70
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push ebx
mov dword [ebp - 4], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402378
push edi
mov ecx, 0x823
xor eax, eax
lea edi, [ebp - 0x22ee]
mov word [ebp - 0x22f0], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x40229a
cmp word [eax], si
je 0x40229a
push eax
push ebx
push str.__s___s
lea eax, [ebp - 0x22f0]
push 0x1047
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
jmp 0x4022b5
push ebx
push 0x4262d8
lea eax, [ebp - 0x22f0]
push 0x1047
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x25e]
mov word [ebp - 0x260], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push 0x4260b8
lea eax, [ebp - 0x260]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x58], 0x44
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x260]
push eax
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x22f0]
push esi
push eax
push ebx
mov dword [ebp - 0x2c], 0x80
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
je 0x402375
cmp dword [ebp + 0x10], esi
je 0x402352
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x402359
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x402365
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x40237c
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1428
call fcn.0041fa70
mov edx, dword [ebp + 8]
push ebx
xor ebx, ebx
push edi
cmp edx, ebx
mov dword [ebp - 4], ebx
je 0x4024e2
cmp word [edx], bx
je 0x4024e2
cmp dword [ebp + 0xc], ebx
je 0x4024e2
cmp dword [ebp + 0x10], ebx
je 0x4024e2
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x426]
mov word [ebp - 0x428], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4262f4
lea eax, [ebp - 0x428]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1428]
push 0x1000
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4024e2
mov edx, dword [ebp - 0x10]
push ebx
mov ecx, 0x82
pop eax
lea edi, [ebp - 0x21e]
mov word [ebp - 0x220], bx
shr edx, 2
rep stosd dword es:[edi], eax
mov dword [ebp - 8], ebx
je 0x4024dd
lea eax, [ebp - 0x1428]
push esi
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], edx
jmp 0x402434
xor ebx, ebx
mov eax, dword [ebp + 8]
push dword [eax]
push ebx
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x4024cf
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push 4
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4024c8
lea eax, [ebp - 0x220]
push 0x104
push eax
push dword [ebp - 8]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x4024c8
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
xor edi, edi
mov ebx, eax
cmp dword [ebp + 0x10], edi
jle 0x4024cf
mov esi, dword [ebp + 0xc]
push dword [esi]
push ebx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
je 0x4024c3
inc edi
add esi, 4
cmp edi, dword [ebp + 0x10]
jl 0x4024a9
jmp 0x4024cf
inc dword [ebp - 4]
jmp 0x4024cf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add dword [ebp + 8], 4
dec dword [ebp - 0xc]
jne 0x402432
pop esi
mov eax, dword [ebp - 4]
jmp 0x4024e4
xor eax, eax
pop edi
pop ebx
leave
ret