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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov edx, 1
push esi
mov esi, ecx
mov eax, dword [esi]
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x208
or edx, eax
jge 0x40ac4c
push 0x208
call fcn.00401740
push edi
mov edi, dword [esi]
push 0x410
push 0
push edi
call fcn.0043f760
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push str.Path
push 0x45e470
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], 0x410
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x410
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40acbf
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push str.Path
push 0x45e470
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40acc6
push edi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov eax, dword [esi]
pop edi
test eax, eax
jne 0x40acd1
xor ecx, ecx
jmp 0x40ace7
push dword [eax - 8]
push eax
call fcn.0043e3ad
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40addc
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x40addc
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, dword [esi]
cmp dword [eax - 0xc], edx
jne 0x40add7
mov dword [ebp - 4], edx
call fcn.0040ef30
test eax, eax
lea eax, [ebp - 4]
push eax
je 0x40ad1f
push 0x20119
jmp 0x40ad24
push 0x20019
push 0
push str.CLSID16076CC1_DE6A_4EB5_9356_201305201800InprocServer32
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40add7
push 0x206
push eax
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x222]
push eax
call fcn.0043f760
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push dword [ebp - 4]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40add7
push 0x45dae8
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40add7
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x40add7
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x224]
push eax
mov ecx, esi
call fcn.00401870
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004018e0
int3
Function at 0x40b7d0
Capabilities:
Delete directory
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x454778
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
sub esp, 0x28
push esi
mov esi, ecx
push edi
mov dword [esi + 0x4f0], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x4f4], eax
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], 0
je 0x40b818
call fcn.0040ba70
test eax, eax
jne 0x40b82f
cmp byte [ebp + 8], al
jne 0x40b84b
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 3
jne 0x40b84b
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push str.bfAppStore.exe
call fcn.0040b250
push str.bfAppWindow.exe
call fcn.0040b250
push 0
push str.CBrowserMainWnd
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x40b88d
push 0
push 0x64
push 0
push 0
push 0xf060
push 0x112
push eax
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
lea ecx, [ebp - 0x30]
call fcn.00402de0
push ecx
push 0xa
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.00402fd0
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.00402ee0
call fcn.0040d6f0
call fcn.0040beb0
mov ecx, esi
call fcn.0040bfe0
mov ecx, esi
call fcn.0040c210
mov edi, dword [esi + 0xc]
test edi, edi
je 0x40b8f3
push ecx
push edi
mov ecx, esi
call fcn.0040c9e0
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40b8f3
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea edi, [esi + 0x10]
test edi, edi
je 0x40b918
push ecx
push edi
mov ecx, esi
call fcn.0040c9e0
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40b918
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
call fcn.0040d490
call fcn.0040c770
call fcn.0040d340
test eax, eax
je 0x40b93e
push 0
push 0x7103
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esi + 0x4e8]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40c4e0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1098
call fcn.00447f00
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
test edi, edi
je 0x40c75b
cmp word [edi], 0
je 0x40c75b
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x1094], ax
lea eax, [ebp - 0x1092]
push eax
call fcn.0043f760
add esp, 0xc
lea eax, [ebp - 0x1094]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x1094]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0x45e424
lea eax, [ebp - 0x1094]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x24c
lea eax, [ebp - 0x460]
push 0
push eax
mov dword [ebp - 0x464], 0
call fcn.0043f760
add esp, 0xc
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x1094]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp + 8], ebx
cmp ebx, 0xffffffff
je 0x40c75b
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp word [ebp - 0x438], 0x2e
je 0x40c73a
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.0043f760
add esp, 0xc
test byte [ebp - 0x464], 0x10
lea eax, [ebp - 0x438]
push eax
push edi
lea eax, [ebp - 0x214]
je 0x40c603
push str._s_s_
push eax
call ebx
mov ecx, dword [ebp - 0xc]
add esp, 0x10
lea eax, [ebp - 0x214]
push eax
call fcn.0040c4e0
jmp 0x40c73a
push 0x45df24
push eax
call ebx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xa7c], ax
lea eax, [ebp - 0xa7a]
push eax
call fcn.0043f760
add esp, 0x1c
lea eax, [ebp - 0xa7c]
push str.bfDesktop.dll
push edi
push 0x45df24
push eax
call ebx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x66c], ax
lea eax, [ebp - 0x66a]
push eax
call fcn.0043f760
add esp, 0x1c
lea eax, [ebp - 0x66c]
push str.bfDesktop64.dll
push edi
push 0x45df24
push eax
call ebx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xc84], ax
lea eax, [ebp - 0xc82]
push eax
call fcn.0043f760
add esp, 0x1c
lea eax, [ebp - 0xc84]
push str.BFShellIcon.dll
push edi
push 0x45df24
push eax
call ebx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x874], ax
lea eax, [ebp - 0x872]
push eax
call fcn.0043f760
add esp, 0x1c
lea eax, [ebp - 0x874]
push str.BFShellIcon64.dll
push edi
push 0x45df24
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0xa7c]
push eax
lea eax, [ebp - 0x214]
push eax
call esi
test eax, eax
je 0x40c726
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x214]
push eax
call esi
test eax, eax
je 0x40c726
lea eax, [ebp - 0xc84]
push eax
lea eax, [ebp - 0x214]
push eax
call esi
test eax, eax
je 0x40c726
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x214]
push eax
call esi
test eax, eax
jne 0x40c73a
push ecx
lea eax, [ebp - 0x214]
mov ecx, esp
push eax
call fcn.00401560
call fcn.0040d150
lea eax, [ebp - 0x464]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c5a1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c9e0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x10], ecx
test esi, esi
je 0x40caea
cmp word [esi], 0
je 0x40caea
push esi
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x45e424
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40caea
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
mov edi, edi
cmp word [esp + 0x44], 0x2e
je 0x40cabe
test byte [esp + 0x18], 0x10
lea eax, [esp + 0x44]
push eax
push esi
lea eax, [esp + 0x270]
je 0x40ca8c
push str._s_s_
push eax
call ebx
mov ecx, dword [esp + 0x20]
add esp, 0x10
lea eax, [esp + 0x268]
push 1
push eax
call fcn.0040c9e0
jmp 0x40cabe
push 0x45df24
push eax
call ebx
add esp, 0x10
lea eax, [esp + 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40cabe
push ecx
lea eax, [esp + 0x26c]
mov ecx, esp
push eax
call fcn.00401560
call fcn.0040d150
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40ca50
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40caea
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40cbd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
mov esi, ecx
call fcn.0043f760
add esp, 0xc
lea eax, [ebp - 0x208]
push 1
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40cc1a
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push str.bfAppStoreApp
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x208]
push eax
mov ecx, esi
call fcn.0040cc70
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x208]
mov edx, ecx
sub esi, edx
jmp 0x40cc50
movzx edx, word [ecx]
mov word [esi + ecx], dx
lea ecx, [ecx + 2]
test dx, dx
jne 0x40cc50
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40cc70
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x40cd37
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x40cd37
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x40cd37
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ccbb
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x40cd37
push 0x206
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.0043f760
add esp, 0xc
lea eax, [ebp - 0x208]
push 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x208]
push eax
mov ecx, edi
call fcn.0040cc70
test al, al
je 0x40cd37
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40cd50
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454720
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push esi
push edi
push 0x40
lea eax, [ebp - 0x90]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x40cda2
push 0x8007000e
call fcn.004018e0
mov dword [ebp - 4], 0
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push edi
push str.Software_bfAppstoreApp
lea eax, [ebp + 8]
push 0x45be14
push eax
mov byte [ebp - 4], 1
call fcn.004012e0
mov esi, dword [ebp + 8]
add esp, 0x10
push esi
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ce04
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x40d150
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454628
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
or ebx, 0xffffffff
test eax, eax
je 0x40d1a8
push str._del
push eax
call fcn.0043d0c0
add esp, 8
test eax, eax
je 0x40d1a8
lea edi, [ebx + 2]
jmp 0x40d244
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00402bb0
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
lea eax, [edi - 0x10]
mov ecx, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], eax
call fcn.00402bb0
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
xor ebx, ebx
push 4
push str._del
lea ecx, [ebp - 0x10]
call fcn.0040a080
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d1ff
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x40d27a
inc ebx
cmp ebx, 0xa
jl 0x40d1d6
xor edi, edi
add esi, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d227
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d244
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40d265
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x40d205
mov edi, 1
jmp 0x40d207

Function at 0x40d3f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov dword [ebp - 8], 1
mov eax, dword [esi]
mov dword [ebp - 4], 0x208
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or edx, eax
push edi
jge 0x40d428
push 0x104
call fcn.00401740
lea eax, [ebp - 4]
push eax
push dword [esi]
lea eax, [ebp - 8]
push eax
push str.Start_Page
push str.SoftwareMicrosoftInternet_ExplorerMain
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ecx, dword [esi]
mov edi, eax
test ecx, ecx
je 0x40d461
push dword [ecx - 8]
push ecx
call fcn.0043e3ad
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40d47e
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x40d47e
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
xor edx, edx
test edi, edi
pop edi
mov word [eax + ecx*2], dx
sete al
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004018e0
int3
Function at 0x40d490
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455558
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [section..data]
push esi
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.0040d3f0
mov esi, dword [ebp - 0x10]
test al, al
je 0x40d537
push edi
push 7
push str.http:__
push esi
mov edi, esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x40d4eb
lea edi, [esi + 0xe]
push str.www.118go.com_v2
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push str.www.118go.com_v2
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
pop edi
test eax, eax
jne 0x40d537
push str.about:blank
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push str.about:blank
push 1
push str.Start_Page
push str.SoftwareMicrosoftInternet_ExplorerMain
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d558
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x40d570
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454700
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call fcn.0043f760
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
push dword [0x471330]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...AppShortcut.dll
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d66d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.0040e650
test eax, eax
je 0x40d66d
mov dword [ebp - 0x10], 0
push ecx
lea eax, [ebp - 0x10]
push eax
push 0x45e414
push 0x45e4b4
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040e740
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40d651
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 0
test eax, eax
je 0x40d65f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40d66d
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x40d6f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454700
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call fcn.0043f760
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
push dword [0x471330]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...AppShortcut.dll
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d7dd
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.0040e650
test eax, eax
je 0x40d7dd
mov dword [ebp - 0x10], 0
push ecx
lea eax, [ebp - 0x10]
push eax
push 0x45e404
push 0x45e4a4
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040e740
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40d7c1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 0
test eax, eax
je 0x40d7cf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40d7dd
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x40de40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push esi
mov esi, dword [0x472394]
cmp dword [esi + 0x510], 2
je 0x40de64
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call fcn.004027b0
cmp dword [esi + 0x510], 1
jne 0x40df0d
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x246]
push eax
call fcn.0043f760
add esp, 0xc
lea eax, [ebp - 0x248]
push 0x103
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x38
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.0043f760
add esp, 0xc
cmp dword [0x46fb8c], 6
lea eax, [ebp - 0x248]
mov dword [ebp - 0x30], eax
mov ecx, str.open
mov eax, str.runas
cmovb eax, ecx
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x24], 5
mov dword [ebp - 0x2c], str._WithGUIYes__UnPlatYes__FromSelf
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40df06
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e840
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x454540
push eax
mov dword fs:[0], esp
sub esp, 0x418
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x40e881
cmp dword [esi + 8], 0
je 0x40e881
mov eax, 1
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
push edi
call dword [eax + 4]
mov edi, dword [esi + 0x14]
test edi, edi
je 0x40e9e9
cmp word [edi], 0
je 0x40e9e9
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push eax
call fcn.0043f760
add esp, 0xc
lea eax, [ebp - 0x424]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.bfDesktopAPI.dll
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e9e9
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
sub esp, 0xc
lea eax, [ebp - 0x424]
push eax
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 0
call fcn.0040e7e0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40e9c4
mov ecx, dword [eax]
push 0x45cb2c
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x40e9b8
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x20]
test eax, eax
js 0x40e9a7
mov ecx, dword [esi + 4]
mov edi, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x40e96e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], edi
mov edx, dword [esi + 8]
mov edi, dword [ebp - 0x14]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
test edx, edx
je 0x40e98c
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [esi + 8], edi
mov byte [ebp - 4], 0
test ecx, ecx
je 0x40e9a0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x10]
mov esi, 1
jmp 0x40e9c6
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40e9b8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x40e9d7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret