joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x484060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x404bc7
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x404bbc
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00448b1a
pop ecx
pop ecx
test eax, eax
je 0x404bd6
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x404b9c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00447882
leave
ret
mov eax, dword [ebp - 0x228]
jmp 0x404bc9

Function at 0x404bde
Capabilities:
Get common file path

Disassembly:
push 0xc
mov eax, 0x467676
call fcn.00463fe0
push 0x800
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x404c8f
mov eax, dword [0x4872ec]
mov ecx, 0x4872ec
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], edi
mov eax, 0x104
push eax
push eax
lea esi, [ebp - 0x10]
call fcn.00401760
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
call fcn.0040551b
lea eax, [ebp - 0x18]
push 0x46ed0c
push eax
mov ecx, esi
call fcn.00405274
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00405274
add esp, 0x10
mov edi, esi
mov byte [ebp - 4], 2
call fcn.00401470
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004017c3
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
lea eax, [esi - 0x10]
call fcn.004017c3
mov eax, edi
call fcn.0046407f
ret
Function at 0x404d85
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x18
mov eax, 0x4699b0
call fcn.00463fe0
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [0x4872ec]
mov ecx, 0x4872ec
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x104
lea esi, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.00401760
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
call fcn.0040551b
cmp dword [ebp + 0x10], ebx
je 0x404e37
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
push 0x46ed0c
push eax
call fcn.004021f0
push ecx
mov byte [ebp - 4], 1
mov eax, esp
mov dword [ebp - 0x20], esp
push dword [ebp + 0x10]
push eax
call fcn.004021f0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov esi, esp
call fcn.004015e7
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], bl
call fcn.0040288c
add esp, 0x10
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00401470
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004017c3
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x404e79
push ecx
add esi, 0xfffffff0
mov eax, esi
mov dword [ebp - 0x24], esp
mov edi, esp
call fcn.004015e7
add eax, 0x10
mov dword [edi], eax
call fcn.004027bd
pop ecx
cmp eax, ebx
jne 0x404e79
push dword [ebp + 8]
call fcn.00402cc5
pop ecx
mov eax, esi
call fcn.004017c3
mov eax, dword [ebp + 8]
jmp 0x404ed3
push 1
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x14]
call fcn.004051de
mov eax, dword [eax]
cmp dword [eax - 0xc], 1
jne 0x404e97
cmp word [eax], 0x5c
mov byte [ebp - 0xd], bl
je 0x404e9b
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004017c3
cmp byte [ebp - 0xd], bl
je 0x404eb5
push 0x5c
lea eax, [ebp - 0x14]
call fcn.00401fff
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
mov eax, esi
call fcn.004015e7
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.004017c3
mov eax, edi
call fcn.0046407f
ret

Function at 0x4064db
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x4064e9
push 0xd
pop eax
jmp 0x40651c
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4064f0
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40697a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x484060]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
push ecx
push dword [esi]
mov dword [ebp - 0x21c], ecx
xor edi, edi
or eax, 0x2001f
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
call fcn.0040693c
mov ebx, eax
cmp ebx, edi
je 0x4069e0
cmp dword [ebp - 0x214], edi
je 0x4069d9
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x406a78
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x406a08
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.0040697a
mov dword [ebp - 0x220], eax
cmp eax, edi
jne 0x406a89
lea eax, [ebp - 0x228]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call ebx
test eax, eax
je 0x4069e8
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], edi
je 0x406a53
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], edi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], edi
call fcn.00406af6
mov esi, eax
cmp dword [ebp - 0x214], edi
je 0x406a76
push dword [ebp - 0x214]
call ebx
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00447882
leave
ret 4
cmp dword [ebp - 0x214], edi
je 0x406a9d
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x406a78

Function at 0x406af6
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x48886c], 0
jne 0x406b26
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406b1f
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x488870], eax
mov byte [0x48886c], 1
mov eax, dword [0x488870]
test eax, eax
je 0x406b3e
push 0
push dword [esi + 4]
push dword [esp + 0xc]
push dword [esi]
call eax
jmp 0x406b4a
push dword [esp + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
ret 4
Function at 0x40800c
Capabilities:
Set current directory

Disassembly:
push 0x1c
mov eax, 0x46b398
call fcn.00463fe0
mov ebx, ecx
lea esi, [ebp - 0x10]
call fcn.00402dd7
xor esi, esi
lea edi, [ebx + 0x4c8]
mov dword [ebp - 4], esi
call fcn.00401470
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004017c3
lea eax, [ebp - 0x10]
push eax
call fcn.00402cc5
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [0x4872ec]
mov ecx, 0x4872ec
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
cmp dword [ebx + 0x4cc], esi
je 0x4080d3
mov eax, dword [edi]
push ecx
sub eax, 0x10
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], esp
call fcn.004015e7
mov ecx, esp
add eax, 0x10
mov dword [ecx], eax
mov ecx, ebx
call fcn.0040c0e3
cmp eax, esi
jne 0x4080c3
push esi
push esi
push 0x10
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004017c3
xor eax, eax
call fcn.0046407f
ret
lea eax, [ebx + 0x4f0]
lea edi, [ebp - 0x10]
call fcn.00401470
jmp 0x408117
lea eax, [ebx + 0x530]
lea esi, [ebp - 0x18]
call fcn.00407893
mov byte [ebp - 4], 2
mov ecx, dword [eax]
lea edi, [ebp - 0x14]
call fcn.0041c0f9
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00401470
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017c3
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004017c3
xor esi, esi
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x18], eax
call fcn.004015e7
add eax, 0x10
mov dword [edi], eax
mov edi, ebx
call fcn.0040c825
cmp eax, esi
jne 0x40816c
push 0x30
push str.Bandisoft_Setup
push str.Error_at_ReadData
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
push esi
push 0x10
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x18]
call fcn.004017c3
mov eax, esi
jmp 0x4080bd
cmp dword [ebx + 0x4cc], esi
je 0x408195
cmp dword [ebx + 0x520], esi
je 0x408195
call fcn.004043ed
test eax, eax
jne 0x408195
call fcn.004086f3
test eax, eax
je 0x408193
xor esi, esi
inc esi
jmp 0x40815d
xor esi, esi
push 8
push dword [0x48730c]
mov dword [0x4856c0], 0x470770
mov dword [0x48569c], esi
mov dword [0x4856b8], esi
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [0x4856b0], eax
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [eax], esi
mov eax, esp
lea ecx, [ebp - 0x28]
mov dword [eax], ecx
mov eax, ebx
mov dword [ebp - 0x14], esp
call fcn.00408858
mov eax, dword [ebx + 0x500]
cmp dword [eax - 0xc], esi
je 0x4081f9
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, ebx
call fcn.0040d16b
call fcn.0040d311
test eax, eax
jne 0x408217
xor esi, esi
push esi
push esi
push 0x10
push dword [ebx + 4]
jmp 0x408157
add ebx, 4
push ebx
call fcn.00408c20
jmp 0x40818e
Function at 0x4086f3
Capabilities:
Copy file
Create process on windows

Disassembly:
push 0x1c
mov eax, 0x469975
call fcn.00463fe0
lea esi, [ebp - 0x1c]
call fcn.00402dd7
and dword [ebp - 4], 0
mov eax, dword [0x4872ec]
mov esi, 0x4872ec
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov eax, dword [0x4872ec]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
and dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x10], 0
push str.xinsttemp.exe
je 0x408764
push dword [ebp - 0x10]
mov eax, dword [ebx + 0x4f8]
push eax
lea eax, [ebp - 0x14]
push str._s_d_s
push eax
call fcn.004024c2
add esp, 0x14
jmp 0x408790
lea eax, [ebp - 0x20]
lea ecx, [ebx + 0x4f8]
push eax
call fcn.00405274
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00401470
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004017c3
lea esi, [ebp - 0x28]
call fcn.00404076
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00405223
pop ecx
pop ecx
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.00401470
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004017c3
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.004017c3
mov edi, dword [ebp - 0x18]
push 0
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40881e
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x2710
jl 0x40873c
xor esi, esi
lea eax, [edi - 0x10]
call fcn.004017c3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, esi
call fcn.0046407f
ret
lea eax, [ebx + 0x530]
lea esi, [ebp - 0x28]
call fcn.00407893
mov eax, dword [eax]
push 5
push 0
push eax
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.004017c3
cmp esi, 0x20
jle 0x4087f6
xor esi, esi
inc esi
jmp 0x4087f8
Function at 0x40b73b
Capabilities:
Delete file
Move file

Disassembly:
push 0x10
mov eax, 0x4698f7
call fcn.00463fe0
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40b76e
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017c3
xor eax, eax
inc eax
call fcn.0046407f
ret 4
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push 0x46ed0c
push eax
call fcn.004021f0
push ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov edi, esp
mov dword [ebp - 0x18], esp
call fcn.0041c0f9
push ecx
mov esi, esp
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], esp
call fcn.00404076
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 0
call fcn.0040288c
add esp, 0x10
mov byte [ebp - 4], 3
push dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileW]
push dword [ebp + 8]
call ebx
test eax, eax
je 0x40b7e3
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, esi
jmp 0x40b766
lea esi, [ebp - 0x14]
call fcn.00404007
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00401470
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017c3
push dword [ebp - 0x10]
push dword [ebp + 8]
call ebx
mov esi, eax
jmp 0x40b7c9

Function at 0x40de17
Capabilities:
Identify system language via api

Disassembly:
push 0xc
mov eax, 0x468dba
call fcn.00463fe0
mov esi, ecx
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
je 0x40df2f
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
mov eax, dword [0x4872ec]
mov ecx, 0x4872ec
mov dword [ebp - 0x14], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push ebx
push edi
mov dword [ebp - 4], ebx
call fcn.0040f101
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040e0c0
mov edi, dword [ebp - 0x10]
push edi
push str._SetLangFolderCommon___lang:_s
call fcn.00402523
pop ecx
pop ecx
cmp dword [edi - 0xc], ebx
je 0x40dea1
push ecx
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x18], esp
mov ebx, esp
call fcn.004015e7
add eax, 0x10
mov dword [ebx], eax
call fcn.0040df86
test eax, eax
je 0x40dea1
mov eax, edi
jmp 0x40df2a
push 1
push dword [ebp - 0x14]
call fcn.0040f101
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040e0c0
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], 0
je 0x40dee1
push ecx
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x18], esp
mov ebx, esp
call fcn.004015e7
add eax, 0x10
mov dword [ebx], eax
call fcn.0040df86
test eax, eax
jne 0x40de9a
mov edi, dword [ebp - 0x10]
push ecx
mov eax, esp
mov dword [ebp - 0x18], esp
push 0x471db0
push eax
call fcn.004021f0
call fcn.0040df86
test eax, eax
jne 0x40df27
cmp dword [esi + 8], eax
ja 0x40df0a
push 0x80070057
call fcn.00401790
mov eax, dword [esi + 4]
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [ebp - 0x18], esp
mov ebx, esp
call fcn.004015e7
add eax, 0x10
mov dword [ebx], eax
call fcn.0040df86
lea eax, [edi - 0x10]
call fcn.004017c3
call fcn.0046407f
ret
Function at 0x40e33e
Capabilities:
Delete file

Disassembly:
push 0x14
mov eax, 0x468d64
call fcn.00463fe0
mov esi, ecx
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004021f0
and dword [ebp - 4], 0
push 0x5c
push 0x2f
lea eax, [ebp - 0x10]
call fcn.00404f87
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push 0x46ed0c
push eax
call fcn.004021f0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov edi, esp
call fcn.004015e7
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x24]
push ecx
sub eax, 0x10
mov dword [ebp - 0x20], esp
mov edi, esp
call fcn.004015e7
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0
call fcn.0040288c
add esp, 0x10
lea ebx, [esi + 0x28]
mov byte [ebp - 4], 3
mov edi, ebx
mov dword [ebp - 0x14], ebx
call fcn.00401470
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004017c3
push dword [ebx]
push dword [ebp - 0x10]
push dword [0x4887ac]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40e431
push eax
push ebx
call fcn.004015c9
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x40e41c
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, ebx
call fcn.0046407f
ret 8
push ecx
mov eax, esp
mov dword [ebp - 0x20], esp
push ebx
push eax
call fcn.00402d0f
pop ecx
pop ecx
call fcn.004027bd
pop ecx
mov edi, dword [ebp + 0xc]
mov eax, ebx
call fcn.00401470
mov eax, dword [ebx]
push ecx
sub eax, 0x10
mov dword [ebp + 0xc], esp
mov edi, esp
call fcn.004015e7
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp + 8]
push eax
call fcn.0040eba1
mov byte [ebp - 4], 4
jmp 0x40e462
mov ebx, dword [ebp - 0x14]
mov ebx, dword [ebx]
call fcn.00438520
test eax, eax
jne 0x40e4e7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
push ebx
push eax
push dword [0x4887a8]
push dword [esi + 0x20]
call edi
cmp eax, 2
je 0x40e4ba
cmp eax, 3
je 0x40e4ba
cmp eax, 4
je 0x40e45f
cmp eax, 5
jne 0x40e4e7
push ebx
inc ebx
push ebx
push dword [0x4887a4]
push dword [esi + 0x20]
call edi
mov esi, dword [ebp - 0x14]
call fcn.004014f3
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jmp 0x40e4ce
push ebx
push 2
push dword [0x4887a4]
push dword [esi + 0x20]
call edi
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], ebx
je 0x40e4da
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017c3
jmp 0x40e407
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x40e4fa
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017c3
jmp 0x40e404
Function at 0x40eafa
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x46725a
call fcn.00463fe0
push 0x18
mov dword [ebp - 4], 1
call fcn.0044a957
mov edi, eax
pop ecx
test edi, edi
je 0x40eb38
mov ebx, 0x4872ec
lea esi, [edi + 8]
mov ecx, ebx
call fcn.004017a8
lea esi, [edi + 0x14]
mov ecx, ebx
call fcn.004017a8
mov esi, edi
jmp 0x40eb3a
xor esi, esi
lea edi, [ebp + 0xc]
call fcn.00403230
mov eax, dword [ebp + 8]
mov dword [esi], eax
lea edi, [esi + 8]
lea eax, [ebp + 0x10]
call fcn.00401470
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x10], eax
lea edi, [esi + 0x14]
lea eax, [ebp + 0xc]
call fcn.00401470
lea eax, [ebp - 0x10]
push eax
xor edi, edi
push edi
push esi
push 0x40e924
push edi
push edi
call fcn.00447992
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, edi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.004017c3
call fcn.0046407f
ret

Function at 0x40eba1
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push 0x10
mov eax, 0x467b73
call fcn.00463fe0
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov edi, 0x4872ec
mov ecx, edi
call fcn.004017a8
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call esi
cmp eax, 0xffffffff
je 0x40ec8e
mov eax, dword [0x4872ec]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
mov eax, dword [0x4872ec]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], 1
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push str.._d.tmp
push eax
call fcn.004024c2
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
call fcn.00405223
add esp, 0x14
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00401470
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004017c3
mov ebx, dword [ebp - 0x18]
push ebx
call esi
push ebx
cmp eax, 0xffffffff
je 0x40ec63
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x64
jl 0x40ec07
jmp 0x40ec7b
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40ec7b
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
call fcn.00401470
lea eax, [ebx - 0x10]
call fcn.004017c3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp + 8]
call fcn.0046407f
ret 8
Function at 0x40ef3d
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x484060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x40ef6a
mov eax, str.Admin
jmp 0x40f0f4
lea eax, [ebp - 0x18]
push eax
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x40efa3
lea eax, [ebp - 0x18]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40efa3
mov eax, 0x46f164
jmp 0x40f0f4
push esi
push str.CheckTokenMembership
push str.ADVAPI32
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4887d8], eax
cmp eax, ebx
jne 0x40f03b
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x40f02f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40f02f
push dword [ebp - 0x20]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x40f02f
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x10]
push 2
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x40f02f
mov dword [ebp - 0x28], 1
jmp 0x40f03b
cmp dword [0x4887d8], ebx
je 0x40f0d9
mov dword [ebp - 0x14], ebx
push edi
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x14]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [eax + 0x486988]
lea eax, [ebp - 0xc]
push 0x20
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40f0ca
mov eax, dword [0x4887d8]
mov dword [ebp - 0x1c], ebx
cmp eax, ebx
je 0x40f07c
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x24]
push ebx
call eax
jmp 0x40f0b0
cmp dword [ebp - 0x28], ebx
je 0x40f0c1
mov eax, dword [ebp - 0x10]
xor edi, edi
cmp dword [eax], ebx
jbe 0x40f0c1
mov esi, eax
add esi, 4
push dword [ebp - 0x24]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x40f0a5
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x10]
inc edi
add esi, 8
cmp edi, dword [eax]
jb 0x40f08f
cmp dword [ebp - 0x1c], ebx
je 0x40f0c1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x48698c]
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
add dword [ebp - 0x14], 8
cmp dword [ebp - 0x14], 0x20
jb 0x40f03f
pop edi
pop esi
cmp dword [ebp - 0x10], ebx
je 0x40f0e8
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00447882
leave
ret