joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408c34
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [esi + 0x54]
mov ecx, eax
and ecx, 0xc
push edi
mov byte [ebp - 1], 1
cmp cl, 0xc
jne 0x408c7e
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0x10], eax
call edi
push dword [esi + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call edi
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x10]
push ecx
push edi
push 0x4e
jmp 0x408ca5
shr eax, 2
test al, 1
je 0x408cae
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [esi + 4]
movzx ecx, di
push ecx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x408ce1
push ebx
push 1
xor ebx, ebx
push ebx
push ebx
push dword [esi + 0x28]
push 0x43793c
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x408ce0
or byte [esi + 0x58], 2
push 1
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop ebx
mov al, byte [ebp - 1]
pop edi
leave
ret

Function at 0x40af20
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b8
push ebx
push esi
lea eax, [ebp - 0x9b8]
call fcn.00406448
lea eax, [ebp - 0x218]
call fcn.00406448
lea eax, [ebp - 0x7a0]
call fcn.00409d88
xor ebx, ebx
push 0x24c
lea eax, [ebp - 0x464]
push ebx
push eax
mov dword [ebp - 0x468], ebx
call fcn.004237a0
add esp, 0xc
push str.English
lea esi, [ebp - 0x218]
call fcn.0040adba
mov eax, esi
lea ecx, [ebp - 0x7a0]
call fcn.00409f0b
test al, al
jne 0x40af9b
lea eax, [ebp - 0x7a0]
call fcn.00409dcd
pop esi
mov al, bl
pop ebx
leave
ret
lea eax, [ebp - 0x7a0]
push eax
call fcn.0040b50c
push 0x4343c8
push dword [0x441414]
lea eax, [ebp - 0x9b8]
push str._slanguages_s_.lng
call fcn.0040179f
add esp, 0xc
lea eax, [ebp - 0x468]
push eax
push dword [ebp - 0x9b4]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40b039
lea eax, [ebp - 0x43c]
push eax
push dword [0x441414]
lea eax, [ebp - 0x218]
push str._slanguages_s
call fcn.0040179f
add esp, 0xc
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x7a0]
call fcn.00409f0b
test al, al
je 0x40b020
lea eax, [ebp - 0x7a0]
push eax
call fcn.0040b50c
lea eax, [ebp - 0x468]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40afdf
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov bl, 1
jmp 0x40af8a
Function at 0x40b040
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbd0
push ebx
push esi
lea eax, [ebp - 0x430]
call fcn.00406448
lea eax, [ebp - 0x898]
call fcn.00406448
lea eax, [ebp - 0x218]
call fcn.00406448
lea eax, [ebp - 0xbd0]
call fcn.00409d88
xor ebx, ebx
push 0x24c
lea eax, [ebp - 0x67c]
push ebx
push eax
mov dword [ebp - 0x680], ebx
call fcn.004237a0
add esp, 0xc
push dword [ebp - 0x214]
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
jne 0x40b0bb
lea eax, [ebp - 0xbd0]
call fcn.00409dcd
pop esi
mov al, bl
pop ebx
leave
ret
lea esi, [ebp - 0x218]
call fcn.00406409
mov esi, 0x4343c8
push esi
push dword [ebp - 0x214]
lea eax, [ebp - 0x430]
push str._s_s_
call fcn.0040179f
add esp, 0xc
push dword [ebp - 0x42c]
push 0x40b1a3
push 0xa
push ebx
call dword [sym.imp.KERNEL32.DLL_EnumResourceNamesW]
push 0x437aa0
push esi
push dword [ebp - 0x214]
lea eax, [ebp - 0x430]
push str._s_s_._s
call fcn.0040179f
add esp, 0x10
lea eax, [ebp - 0x680]
push eax
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40b19c
lea eax, [ebp - 0x654]
push eax
push dword [ebp - 0x214]
lea eax, [ebp - 0x898]
push str._s_s
call fcn.0040179f
add esp, 0xc
lea eax, [ebp - 0x898]
lea ecx, [ebp - 0xbd0]
call fcn.00409f0b
test al, al
je 0x40b173
lea eax, [ebp - 0xbd0]
push eax
call fcn.0040b50c
push dword [ebp - 0x894]
push 0x441650
call fcn.0040b942
lea eax, [ebp - 0x680]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40b132
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov bl, 1
jmp 0x40b0aa

Function at 0x40b412
Capabilities:
Delete file

Disassembly:
push esi
xor esi, esi
cmp dword [0x441658], esi
jbe 0x40b43b
mov eax, dword [0x441660]
imul eax, esi
add eax, dword [0x441654]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
inc esi
cmp esi, dword [0x441658]
jb 0x40b41d
and dword [0x441658], 0
pop esi
ret
Function at 0x40ba7c
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Import public key
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40bae4
cmp dword [ebp + 0xc], esi
je 0x40bae4
cmp dword [ebp + 0x10], esi
je 0x40bae4
cmp dword [ebp + 0x14], esi
je 0x40bae4
mov eax, dword [edi]
cmp eax, esi
je 0x40bae4
cmp dword [eax + 0xc], esi
je 0x40bae4
push 0xf0000000
push 1
push esi
push esi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40bae4
lea eax, [ebp - 8]
push eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
add eax, 0x38
push eax
push 0x10001
push dword [ebp - 4]
call dword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
test eax, eax
jne 0x40baeb
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
pop esi
leave
ret 0x10
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x8004
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40bb0e
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x40bada
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x40bb36
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x40bada
push esi
push esi
push dword [ebp - 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
push dword [ebp - 8]
test eax, eax
je 0x40bb25
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
jmp 0x40bae6
Function at 0x40becd
Capabilities:
Check if file exists
Enumerate files on windows
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x878
push ebx
push esi
push edi
xor eax, eax
push 0x40e
mov word [ebp - 0x874], ax
xor esi, esi
lea eax, [ebp - 0x872]
push esi
push eax
call fcn.004237a0
add esp, 0xc
cmp dword [ebp + 0xc], esi
je 0x40c061
cmp dword [ebp + 0x10], esi
je 0x40c061
cmp dword [ebp + 0x14], esi
je 0x40c061
cmp dword [ebp + 0x18], esi
je 0x40c061
lea eax, [ebp - 0x874]
push eax
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x40c061
lea ebx, [ebp - 0x874]
call fcn.0040c71d
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c061
push 0x24c
lea eax, [ebp - 0x258]
push esi
push eax
mov dword [ebp - 0x25c], esi
call fcn.004237a0
mov eax, ebx
push eax
mov ebx, 0x103
push 0x437ba8
mov ecx, ebx
lea edi, [ebp - 0x464]
call fcn.0040c6d0
add esp, 0x14
lea eax, [ebp - 0x25c]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x40c061
test byte [ebp - 0x25c], 2
jne 0x40bfc1
test byte [ebp - 0x25c], 0x10
je 0x40bfc1
cmp word [ebp - 0x230], 0x2e
jne 0x40bfd7
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40bfa5
jmp 0x40c054
push dword [ebp + 0x10]
lea eax, [ebp - 0x230]
push dword [ebp + 0xc]
mov esi, str._s_s_s_s.sol
push eax
lea eax, [ebp - 0x874]
push eax
push esi
mov ecx, ebx
lea edi, [ebp - 0x464]
call fcn.0040c6d0
mov eax, edi
push 0x5c
push eax
call fcn.004219ab
add esp, 0x1c
test eax, eax
je 0x40c014
xor ecx, ecx
mov word [eax], cx
lea ebx, [ebp - 0x464]
call fcn.0040c630
push dword [ebp + 0x10]
lea eax, [ebp - 0x230]
push dword [ebp + 0xc]
mov ecx, 0x103
push eax
lea eax, [ebp - 0x874]
push eax
push esi
mov edi, ebx
call fcn.0040c6d0
add esp, 0x14
push dword [ebp + 0x18]
mov eax, ebx
push dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
push eax
call fcn.0040c06a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, 1
jmp 0x40c063
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40c06a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, 0xbf00
mov word [ebp - 0x18], ax
xor eax, eax
push esi
push edi
mov dword [ebp - 0x16], eax
mov byte [ebp - 0x12], 0x54
mov byte [ebp - 0x11], 0x43
mov byte [ebp - 0x10], 0x53
mov byte [ebp - 0xf], 0x4f
mov byte [ebp - 0xe], al
mov byte [ebp - 0xd], 4
mov byte [ebp - 0xc], al
mov byte [ebp - 0xb], al
mov byte [ebp - 0xa], al
mov byte [ebp - 9], al
cmp dword [ebp + 8], eax
je 0x40c26f
cmp dword [ebp + 0xc], eax
je 0x40c26f
cmp dword [ebp + 0x10], eax
je 0x40c26f
push 2
push 3
push 0x40000000
push dword [ebp + 8]
mov eax, ebx
call fcn.00401877
test al, al
je 0x40c26f
mov eax, dword [ebp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c0df
sub eax, edx
mov esi, eax
mov eax, str.uniq
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40c0f2
sub eax, ecx
mov ecx, eax
mov eax, dword [ebp + 0x10]
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40c103
add esi, ecx
sub eax, edi
lea eax, [esi + eax + 0x14]
movzx eax, ax
mov edx, eax
mov esi, eax
mov ecx, 0xff00
and edx, ecx
shl esi, 0x10
add edx, esi
mov esi, eax
shl edx, 8
sar esi, 8
and esi, ecx
sar eax, 0x18
add edx, esi
add edx, eax
push 0x10
lea eax, [ebp - 0x18]
push eax
mov eax, ebx
mov dword [ebp - 0x16], edx
call fcn.0040a8d5
cmp eax, 0x10
jne 0x40c25f
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40c155
and dword [ebp - 8], 0
sub eax, ecx
movzx edi, ax
mov eax, edi
shl eax, 8
movzx eax, ax
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 4]
push eax
mov eax, ebx
call fcn.0040a8d5
cmp eax, 2
jne 0x40c25f
movzx esi, di
push esi
push dword [ebp + 0xc]
mov eax, ebx
call fcn.0040a8d5
cmp eax, esi
jne 0x40c25f
push 3
lea eax, [ebp - 8]
push eax
mov eax, ebx
call fcn.0040a8d5
cmp eax, 3
jne 0x40c25f
mov eax, str.uniq
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c1ba
sub eax, edx
movzx edi, ax
mov eax, edi
shl eax, 9
add eax, 0x103
movzx eax, ax
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 4]
push eax
mov eax, ebx
call fcn.0040a8d5
cmp eax, 2
jne 0x40c25f
movzx esi, di
push esi
push str.uniq
mov eax, ebx
call fcn.0040a8d5
cmp eax, esi
jne 0x40c25f
mov eax, dword [ebp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c202
sub eax, edx
movzx edi, ax
mov eax, edi
shl eax, 9
add eax, 0x106
movzx eax, ax
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 4]
push eax
mov eax, ebx
call fcn.0040a8d5
cmp eax, 2
jne 0x40c25f
movzx esi, di
push esi
push dword [ebp + 0x10]
mov eax, ebx
call fcn.0040a8d5
cmp eax, esi
jne 0x40c25f
push 1
lea eax, [ebp - 8]
push eax
mov eax, ebx
call fcn.0040a8d5
cmp eax, 1
jne 0x40c25f
mov esi, ebx
call fcn.0040197e
mov al, 1
jmp 0x40c271
mov esi, ebx
call fcn.0040197e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
xor al, al
pop edi
pop esi
leave
ret 0xc
Function at 0x40c277
Capabilities:
Check if file exists
Enumerate files on windows
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x878
push ebx
push esi
push edi
xor eax, eax
push 0x40e
mov word [ebp - 0x874], ax
xor esi, esi
lea eax, [ebp - 0x872]
push esi
push eax
call fcn.004237a0
add esp, 0xc
cmp dword [ebp + 0xc], esi
je 0x40c3cf
cmp dword [ebp + 0x10], esi
je 0x40c3cf
lea eax, [ebp - 0x874]
push eax
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x40c3cf
lea ebx, [ebp - 0x874]
call fcn.0040c71d
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov eax, ebx
push eax
call esi
cmp eax, 0xffffffff
je 0x40c3cf
xor ebx, ebx
push 0x24c
lea eax, [ebp - 0x258]
push ebx
push eax
mov dword [ebp - 0x25c], ebx
call fcn.004237a0
add esp, 0xc
lea eax, [ebp - 0x874]
mov byte [ebp - 5], bl
push eax
mov ebx, 0x103
push 0x437ba8
mov ecx, ebx
lea edi, [ebp - 0x464]
call fcn.0040c6d0
pop ecx
pop ecx
lea eax, [ebp - 0x25c]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40c3cf
test byte [ebp - 0x25c], 2
jne 0x40c399
test byte [ebp - 0x25c], 0x10
je 0x40c399
cmp word [ebp - 0x230], 0x2e
je 0x40c399
push dword [ebp + 0x10]
lea eax, [ebp - 0x230]
push dword [ebp + 0xc]
mov ecx, ebx
push eax
lea eax, [ebp - 0x874]
push eax
push str._s_s_s_s.sol
lea edi, [ebp - 0x464]
call fcn.0040c6d0
add esp, 0x14
mov eax, edi
push eax
call esi
cmp eax, 0xffffffff
jne 0x40c3af
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40c34a
jmp 0x40c3c1
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x464]
push eax
call fcn.0040c3d8
mov byte [ebp - 5], al
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, byte [ebp - 5]
jmp 0x40c3d1
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40c630
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x208
test ebx, ebx
jne 0x40c641
xor al, al
jmp 0x40c6c9
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
push ebx
call edi
cmp eax, 0xffffffff
je 0x40c654
mov al, 1
jmp 0x40c6c8
push ebp
push esi
push SysReAllocString
mov eax, ebx
mov ecx, 0x103
lea edx, [esp + 0x10]
call fcn.0040da09
cmp word [esp + 0xc], 0
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
lea esi, [esp + 0xc]
je 0x40c6af
cmp word [esi], 0x5c
jne 0x40c6a7
xor eax, eax
mov word [esi], ax
lea eax, [esp + 0xc]
push eax
call edi
cmp eax, 0xffffffff
jne 0x40c6a1
push 0
lea eax, [esp + 0x10]
push eax
call ebp
test eax, eax
je 0x40c6c0
push 0x5c
pop eax
mov word [esi], ax
inc esi
inc esi
cmp word [esi], 0
jne 0x40c67d
push ebx
call edi
cmp eax, 0xffffffff
jne 0x40c6c4
push 0
push ebx
call ebp
test eax, eax
jne 0x40c6c4
xor al, al
jmp 0x40c6c6
mov al, 1
pop esi
pop ebp
pop edi
add esp, 0x208
ret
Function at 0x40c7b4
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x40cfa3
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp esi, ecx
je 0x40cfcf
xor eax, eax
cmp dword [esp + 4], ecx
jbe 0x40cfcf
push edi
mov edi, dword [esp + 0xc]
mov edx, eax
and edx, 0xf
mov dl, byte [edi + edx*4]
add dl, cl
xor byte [eax + esi], dl
movsx ecx, byte [eax + esi]
inc eax
cmp eax, dword [esp + 8]
jb 0x40cfb2
pop edi
ret

Function at 0x40cfd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
mov dword [ebp - 4], eax
cmp edi, eax
je 0x40d008
cmp dword [ebp + 8], eax
jbe 0x40d008
push ebx
push esi
mov ebx, dword [ebp + 0xc]
mov cl, byte [eax + edi]
mov edx, eax
and edx, 0xf
mov dl, byte [ebx + edx*4]
add dl, byte [ebp - 4]
movsx esi, cl
xor dl, cl
mov byte [eax + edi], dl
inc eax
mov dword [ebp - 4], esi
cmp eax, dword [ebp + 8]
jb 0x40cfe4
pop esi
pop ebx
leave
ret

Function at 0x40d05d
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x40d078
xor eax, eax
jmp 0x40d106
push esi
push edi
push ebx
mov eax, 0x410
lea edx, [ebp - 0x414]
call fcn.0040da48
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
lea eax, [ebp + eax*2 - 0x416]
jmp 0x40d0b5
cmp word [eax], 0x5c
je 0x40d0c1
dec eax
dec eax
lea ecx, [ebp - 0x414]
cmp eax, ecx
ja 0x40d0ad
jmp 0x40d0f2
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call esi
cmp eax, 0xffffffff
jne 0x40d0f2
push 0
lea eax, [ebp - 0x414]
push eax
call edi
test eax, eax
jne 0x40d0f2
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x414]
push eax
call fcn.0040d05d
push ebx
call esi
cmp eax, 0xffffffff
jne 0x40d101
push 0
push ebx
call edi
jmp 0x40d104
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40d12c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x208], ax
xor esi, esi
lea eax, [ebp - 0x206]
push esi
push eax
call fcn.004237a0
add esp, 0xc
cmp dword [ebp + 0xc], esi
je 0x40d1b7
mov eax, dword [ebp + 0xc]
call fcn.0040ae0d
cmp eax, 1
jb 0x40d1b7
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40d1b7
push ebx
mov esi, 0x208
push 0x437c64
mov eax, esi
lea ebx, [ebp - 0x208]
call fcn.0040d9a8
push dword [ebp + 0xc]
mov eax, esi
call fcn.0040d9a8
push 1
push 1
push 0x437c50
mov eax, ebx
push eax
mov ecx, 0x441670
call fcn.0040d703
pop ebx
pop esi
leave
ret 8
Function at 0x40d206
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push ebx
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x428], ax
xor esi, esi
lea eax, [ebp - 0x426]
push esi
push eax
call fcn.004237a0
add esp, 0xc
xor bl, bl
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0xc], esi
je 0x40d33d
cmp dword [ebp + 0x10], esi
je 0x40d33d
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40d33d
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x40d311
mov esi, 0x208
push 0x437c64
mov eax, esi
lea ebx, [ebp - 0x428]
call fcn.0040d9a8
push dword [ebp + 0xc]
mov eax, esi
call fcn.0040d9a8
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d2fb
and dword [ebp - 0x218], 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x21c], eax
xor eax, eax
mov word [ebp - 0x210], ax
mov eax, ebx
push eax
lea esi, [ebp - 0x220]
mov dword [ebp - 0x220], 0x437580
mov dword [ebp - 0x214], 0x104
call fcn.0040adba
mov eax, esi
mov dword [ebp - 0x220], 0x437580
call fcn.0040d8f5
mov bl, al
jmp 0x40d2fd
mov bl, 1
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x428]
push eax
mov eax, dword [ebp + 0x14]
add eax, eax
call fcn.0040da48
lea eax, [ebp - 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x40d334
mov eax, dword [ebp - 4]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
test bl, bl
setne al
jmp 0x40d33f
xor eax, eax
pop esi
pop ebx
leave
ret 0x10

Function at 0x40d3aa
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
mov edi, ecx
mov dword [ebp - 4], esi
call fcn.004237a0
add esp, 0xc
cmp dword [ebp + 0xc], esi
je 0x40d44f
cmp dword [ebp + 0x10], esi
je 0x40d44f
cmp dword [ebp + 0x18], esi
je 0x40d44f
cmp edi, esi
je 0x40d44f
cmp ebx, esi
je 0x40d44f
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40d44f
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x40d44f
push dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [edi - 1]
mov edi, dword [ebp + 0x18]
push str._s_s.lnk
call fcn.0040c6d0
add esp, 0xc
cmp word [ebx], si
jne 0x40d43f
mov ebx, dword [ebp + 0x10]
push esi
push ebx
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040d458
jmp 0x40d451
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40d458
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push edi
xor eax, eax
push 0x1fe
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.004237a0
add esp, 0xc
mov dword [ebp - 4], edi
cmp dword [ebp + 0xc], edi
je 0x40d58c
cmp dword [ebp + 0x10], edi
je 0x40d58c
lea eax, [ebp - 4]
push eax
push 0x4325b8
push 1
push edi
push 0x4325e8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40d58c
cmp dword [ebp + 0x18], edi
mov dword [ebp - 8], edi
jge 0x40d4d1
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
call fcn.0040d593
mov ecx, dword [ebp + 0x14]
cmp word [ebp - 0x20c], di
je 0x40d4e3
lea ecx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
push esi
push dword [ebp + 0x18]
push ecx
push eax
call dword [edx + 0x44]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xc]
push edx
push 0x100
lea edx, [ebp - 0x20c]
push edx
mov dword [ebp - 0xc], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov esi, 0x437280
push esi
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x4325f8
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x40d579
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
cmp esi, edi
setge al
pop esi
jmp 0x40d58e
xor eax, eax
pop edi
leave
ret 0x14