joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b17
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 0x404b7e
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x404b73
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00448a20
pop ecx
pop ecx
test eax, eax
je 0x404b8d
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x404b53
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00447788
leave
ret
mov eax, dword [ebp - 0x228]
jmp 0x404b80

Function at 0x404b95
Capabilities:
Get common file path

Disassembly:
push 0xc
mov eax, 0x467481
call fcn.00463ef0
push 0x800
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x404c46
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.00401755
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
call fcn.0040552f
lea eax, [ebp - 0x18]
push 0x46ed0c
push eax
mov ecx, esi
call fcn.0040522b
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040522b
add esp, 0x10
mov edi, esi
mov byte [ebp - 4], 2
call fcn.00401470
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004017b8
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
lea eax, [esi - 0x10]
call fcn.004017b8
mov eax, edi
call fcn.00463f8f
ret
Function at 0x404d3c
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x18
mov eax, 0x469898
call fcn.00463ef0
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.00401755
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
call fcn.0040552f
cmp dword [ebp + 0x10], ebx
je 0x404dee
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
push 0x46ed0c
push eax
call fcn.004021e4
push ecx
mov byte [ebp - 4], 1
mov eax, esp
mov dword [ebp - 0x20], esp
push dword [ebp + 0x10]
push eax
call fcn.004021e4
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.00402880
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.004017b8
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x404e30
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.004027b1
pop ecx
cmp eax, ebx
jne 0x404e30
push dword [ebp + 8]
call fcn.00402cb9
pop ecx
mov eax, esi
call fcn.004017b8
mov eax, dword [ebp + 8]
jmp 0x404e8a
push 1
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x14]
call fcn.00405195
mov eax, dword [eax]
cmp dword [eax - 0xc], 1
jne 0x404e4e
cmp word [eax], 0x5c
mov byte [ebp - 0xd], bl
je 0x404e52
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004017b8
cmp byte [ebp - 0xd], bl
je 0x404e6c
push 0x5c
lea eax, [ebp - 0x14]
call fcn.00401ff3
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.004017b8
mov eax, edi
call fcn.00463f8f
ret

Function at 0x4064e8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x4064f6
push 0xd
pop eax
jmp 0x406529
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 0x4064fd
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 0x40697e
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.00406940
mov ebx, eax
cmp ebx, edi
je 0x4069e4
cmp dword [ebp - 0x214], edi
je 0x4069dd
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x406a7c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x406a0c
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.0040697e
mov dword [ebp - 0x220], eax
cmp eax, edi
jne 0x406a8d
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 0x4069ec
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], edi
je 0x406a57
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], edi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], edi
call fcn.00406afa
mov esi, eax
cmp dword [ebp - 0x214], edi
je 0x406a7a
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.00447788
leave
ret 4
cmp dword [ebp - 0x214], edi
je 0x406aa1
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x406a7c

Function at 0x406afa
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x48886c], 0
jne 0x406b2a
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406b23
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 0x406b42
push 0
push dword [esi + 4]
push dword [esp + 0xc]
push dword [esi]
call eax
jmp 0x406b4e
push dword [esp + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
ret 4
Function at 0x408013
Capabilities:
Set current directory

Disassembly:
push 0x1c
mov eax, 0x46b29b
call fcn.00463ef0
mov ebx, ecx
lea esi, [ebp - 0x10]
call fcn.00402dcb
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.004017b8
lea eax, [ebp - 0x10]
push eax
call fcn.00402cb9
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004017b8
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 0x4080da
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.0040bf2e
cmp eax, esi
jne 0x4080ca
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.004017b8
xor eax, eax
call fcn.00463f8f
ret
lea eax, [ebx + 0x4f0]
lea edi, [ebp - 0x10]
call fcn.00401470
jmp 0x40811e
lea eax, [ebx + 0x530]
lea esi, [ebp - 0x18]
call fcn.0040789a
mov byte [ebp - 4], 2
mov ecx, dword [eax]
lea edi, [ebp - 0x14]
call fcn.0041bc0e
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00401470
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017b8
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004017b8
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.0040c670
cmp eax, esi
jne 0x408173
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.004017b8
mov eax, esi
jmp 0x4080c4
cmp dword [ebx + 0x4cc], esi
je 0x40819c
cmp dword [ebx + 0x520], esi
je 0x40819c
call fcn.004044a8
test eax, eax
jne 0x40819c
call fcn.004086fa
test eax, eax
je 0x40819a
xor esi, esi
inc esi
jmp 0x408164
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.0040885f
mov eax, dword [ebx + 0x500]
cmp dword [eax - 0xc], esi
je 0x408200
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, ebx
call fcn.0040cfb6
call fcn.0040d15c
test eax, eax
jne 0x40821e
xor esi, esi
push esi
push esi
push 0x10
push dword [ebx + 4]
jmp 0x40815e
add ebx, 4
push ebx
call fcn.00408c27
jmp 0x408195
Function at 0x4086fa
Capabilities:
Copy file
Create process on windows

Disassembly:
push 0x1c
mov eax, 0x46985d
call fcn.00463ef0
lea esi, [ebp - 0x1c]
call fcn.00402dcb
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 0x40876b
push dword [ebp - 0x10]
mov eax, dword [ebx + 0x4f8]
push eax
lea eax, [ebp - 0x14]
push str._s_d_s
push eax
call fcn.004024b6
add esp, 0x14
jmp 0x408797
lea eax, [ebp - 0x20]
lea ecx, [ebx + 0x4f8]
push eax
call fcn.0040522b
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.004017b8
lea esi, [ebp - 0x28]
call fcn.00404131
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.004051da
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.004017b8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.004017b8
mov edi, dword [ebp - 0x18]
push 0
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x408825
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x2710
jl 0x408743
xor esi, esi
lea eax, [edi - 0x10]
call fcn.004017b8
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, esi
call fcn.00463f8f
ret
lea eax, [ebx + 0x530]
lea esi, [ebp - 0x28]
call fcn.0040789a
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.004017b8
cmp esi, 0x20
jle 0x4087fd
xor esi, esi
inc esi
jmp 0x4087ff
Function at 0x40b6fb
Capabilities:
Delete file
Move file

Disassembly:
push 0x10
mov eax, 0x4697df
call fcn.00463ef0
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40b72e
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017b8
xor eax, eax
inc eax
call fcn.00463f8f
ret 4
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push 0x46ed0c
push eax
call fcn.004021e4
push ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov edi, esp
mov dword [ebp - 0x18], esp
call fcn.0041bc0e
push ecx
mov esi, esp
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], esp
call fcn.00404131
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 0
call fcn.00402880
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 0x40b7a3
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, esi
jmp 0x40b726
lea esi, [ebp - 0x14]
call fcn.004040c2
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00401470
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017b8
push dword [ebp - 0x10]
push dword [ebp + 8]
call ebx
mov esi, eax
jmp 0x40b789

Function at 0x40dc62
Capabilities:
Identify system language via api

Disassembly:
push 0xc
mov eax, 0x468c72
call fcn.00463ef0
mov esi, ecx
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
je 0x40dd7a
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.0040ef4c
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040df0b
mov edi, dword [ebp - 0x10]
push edi
push str._SetLangFolderCommon___lang:_s
call fcn.00402517
pop ecx
pop ecx
cmp dword [edi - 0xc], ebx
je 0x40dcec
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.0040ddd1
test eax, eax
je 0x40dcec
mov eax, edi
jmp 0x40dd75
push 1
push dword [ebp - 0x14]
call fcn.0040ef4c
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040df0b
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], 0
je 0x40dd2c
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.0040ddd1
test eax, eax
jne 0x40dce5
mov edi, dword [ebp - 0x10]
push ecx
mov eax, esp
mov dword [ebp - 0x18], esp
push 0x471d68
push eax
call fcn.004021e4
call fcn.0040ddd1
test eax, eax
jne 0x40dd72
cmp dword [esi + 8], eax
ja 0x40dd55
push 0x80070057
call fcn.00401785
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.0040ddd1
lea eax, [edi - 0x10]
call fcn.004017b8
call fcn.00463f8f
ret
Function at 0x40e189
Capabilities:
Delete file

Disassembly:
push 0x14
mov eax, 0x468c1c
call fcn.00463ef0
mov esi, ecx
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004021e4
and dword [ebp - 4], 0
push 0x5c
push 0x2f
lea eax, [ebp - 0x10]
call fcn.00404f3e
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push 0x46ed0c
push eax
call fcn.004021e4
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.00402880
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.004017b8
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 0x40e27c
push eax
push ebx
call fcn.004015c9
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x40e267
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, ebx
call fcn.00463f8f
ret 8
push ecx
mov eax, esp
mov dword [ebp - 0x20], esp
push ebx
push eax
call fcn.00402d03
pop ecx
pop ecx
call fcn.004027b1
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.0040e9ec
mov byte [ebp - 4], 4
jmp 0x40e2ad
mov ebx, dword [ebp - 0x14]
mov ebx, dword [ebx]
call fcn.00438398
test eax, eax
jne 0x40e332
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 0x40e305
cmp eax, 3
je 0x40e305
cmp eax, 4
je 0x40e2aa
cmp eax, 5
jne 0x40e332
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 0x40e319
push ebx
push 2
push dword [0x4887a4]
push dword [esi + 0x20]
call edi
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], ebx
je 0x40e325
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017b8
jmp 0x40e252
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x40e345
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017b8
jmp 0x40e24f
Function at 0x40e945
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x46a024
call fcn.00463ef0
push 0x18
mov dword [ebp - 4], 1
call fcn.0044a85a
mov edi, eax
pop ecx
test edi, edi
je 0x40e983
mov ebx, 0x4872ec
lea esi, [edi + 8]
mov ecx, ebx
call fcn.0040179d
lea esi, [edi + 0x14]
mov ecx, ebx
call fcn.0040179d
mov esi, edi
jmp 0x40e985
xor esi, esi
lea edi, [ebp + 0xc]
call fcn.004032eb
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 0x40e76f
push edi
push edi
call fcn.00447898
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, edi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.004017b8
call fcn.00463f8f
ret

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

Disassembly:
push 0x10
mov eax, 0x467938
call fcn.00463ef0
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov edi, 0x4872ec
mov ecx, edi
call fcn.0040179d
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call esi
cmp eax, 0xffffffff
je 0x40ead9
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.004024b6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
call fcn.004051da
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.004017b8
mov ebx, dword [ebp - 0x18]
push ebx
call esi
push ebx
cmp eax, 0xffffffff
je 0x40eaae
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x64
jl 0x40ea52
jmp 0x40eac6
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40eac6
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
call fcn.00401470
lea eax, [ebx - 0x10]
call fcn.004017b8
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004017b8
mov eax, dword [ebp + 8]
call fcn.00463f8f
ret 8
Function at 0x40ed88
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 0x40edb5
mov eax, str.Admin
jmp 0x40ef3f
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 0x40edee
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 0x40edee
mov eax, 0x46f164
jmp 0x40ef3f
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 0x40ee86
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 0x40ee7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40ee7a
push dword [ebp - 0x20]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x40ee7a
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 0x40ee7a
mov dword [ebp - 0x28], 1
jmp 0x40ee86
cmp dword [0x4887d8], ebx
je 0x40ef24
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 0x40ef15
mov eax, dword [0x4887d8]
mov dword [ebp - 0x1c], ebx
cmp eax, ebx
je 0x40eec7
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x24]
push ebx
call eax
jmp 0x40eefb
cmp dword [ebp - 0x28], ebx
je 0x40ef0c
mov eax, dword [ebp - 0x10]
xor edi, edi
cmp dword [eax], ebx
jbe 0x40ef0c
mov esi, eax
add esi, 4
push dword [ebp - 0x24]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x40eef0
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x10]
inc edi
add esi, 8
cmp edi, dword [eax]
jb 0x40eeda
cmp dword [ebp - 0x1c], ebx
je 0x40ef0c
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 0x40ee8a
pop edi
pop esi
cmp dword [ebp - 0x10], ebx
je 0x40ef33
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.00447788
leave
ret