joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4638ad
Capabilities:
Copy file
Move file

Disassembly:
push ebp
push esp
pop ebp
and esp, 0xfffffff8
mov eax, 0x20030
call fcn.00431b90
push ebx
push esi
lea eax, [esp + 0x10038]
push edx
pop esi
push eax
mov edx, 0x7fff
call fcn.004648aa
lea eax, [esp + 0x3c]
mov edx, 0x7fff
push eax
mov ecx, esi
call fcn.004648aa
pop ecx
pop ecx
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1003c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x46393b
cmp byte [ebp + 8], al
je 0x463934
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1003c]
push eax
call fcn.0042378c
pop ecx
pop ecx
test eax, eax
je 0x46392d
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1003c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov al, 1
jmp 0x4639e7
xor al, al
jmp 0x4639e7
lea ecx, [esp + 0x10038]
call fcn.00464cd3
test al, al
je 0x463934
lea ecx, [esp + 0x38]
call fcn.00464cd3
test al, al
je 0x4639ed
cmp byte [ebp + 8], 0
je 0x463934
lea eax, [esp + 0x10038]
push str..
push eax
call fcn.00422fcd
lea eax, [esp + 0x10040]
push eax
call fcn.00422e3c
sub ecx, ecx
mov word [esp + eax*2 + 0x10046], cx
lea eax, [esp + 0x44]
push eax
call fcn.00422e3c
xor ecx, ecx
mov dword [esp + 0x1c], 2
add esp, 0x10
mov word [esp + eax*2 + 0x3a], cx
lea eax, [esp + 0x10038]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 8], eax
mov eax, 0x614
mov word [esp + 0x18], ax
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x2c]
call fcn.00407f41
lea ecx, [esp + 0x28]
call fcn.00463c66
mov bl, al
lea ecx, [esp + 0x28]
neg bl
sbb bl, bl
call fcn.00405a64
inc bl
jne 0x463934
lea ecx, [esp + 0x38]
call fcn.00464cd3
test al, al
jmp 0x463960
Function at 0x463a2b
Capabilities:
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x2cc
push ebx
push esi
mov esi, ecx
sub ebx, ebx
push edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 1], bl
mov edi, edx
call fcn.004077c7
lea ecx, [ebp - 0x44]
call fcn.004077c7
lea ecx, [ebp - 0x24]
call fcn.004077c7
lea ecx, [ebp - 0x14]
call fcn.004077c7
lea edx, [ebp - 0x34]
mov ecx, esi
call fcn.004048ae
lea edx, [ebp - 0x44]
push edi
pop ecx
call fcn.004048ae
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x34]
call fcn.00464c69
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 3], al
call fcn.00464cd3
mov esi, str..
test al, al
je 0x463a9c
push esi
lea ecx, [ebp - 0x34]
call fcn.00407e0b
mov ecx, dword [ebp - 0x44]
call fcn.00464cd3
test al, al
je 0x463ab1
push esi
lea ecx, [ebp - 0x44]
call fcn.00407e0b
lea ecx, [ebp - 0x54]
call fcn.004077c7
lea ecx, [ebp - 0x64]
call fcn.004077c7
push ebx
lea eax, [ebp - 0x64]
push ebx
push eax
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x34]
call fcn.004046f9
add esp, 0xc
lea eax, [ebp - 0x2c8]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov al, 1
mov byte [ebp - 2], al
cmp esi, 0xffffffff
je 0x463bfd
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp al, 1
jne 0x463bfd
test byte [ebp - 0x2c8], 0x10
jne 0x463bd1
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x74]
call fcn.00407f41
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x74]
call fcn.004642ad
pop ecx
lea ecx, [ebp - 0x74]
call fcn.00405a64
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x14]
call fcn.004081a7
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407c8e
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407e0b
lea ecx, [ebp - 0x24]
call fcn.00463e73
test al, al
je 0x463b89
cmp byte [ebp + 8], bl
je 0x463bf4
push ebx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407a68
push dword [ebp - 0x24]
or eax, eax
je 0x463b97
call edi
cmp byte [ebp + 0xc], 1
jne 0x463bbb
cmp byte [ebp - 3], bl
jne 0x463ba2
push dword [ebp - 0x24]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x463bc9
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.00463c40
movzx eax, al
or eax, eax
je 0x463bf4
push dword [ebp - 0x14]
call edi
jmp 0x463bc9
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.00463c40
movzx eax, al
test eax, eax
je 0x463bf4
mov byte [ebp - 1], 1
lea eax, [ebp - 0x2c8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
or eax, eax
mov al, byte [ebp - 2]
jne 0x463afb
mov al, bl
mov byte [ebp - 2], al
jmp 0x463afb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x463c07
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, byte [ebp - 1]
lea ecx, [ebp - 0x64]
call fcn.00405a64
lea ecx, [ebp - 0x54]
call fcn.00405a64
lea ecx, [ebp - 0x14]
call fcn.00405a64
lea ecx, [ebp - 0x24]
call fcn.00405a64
lea ecx, [ebp - 0x44]
call fcn.00405a64
lea ecx, [ebp - 0x34]
call fcn.00405a64
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463c66
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [ecx]
mov dword [esp], eax
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
mov eax, dword [ecx + 8]
push ebx
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 4]
push esi
push 0x48fac0
mov dword [esp + 0x18], eax
inc dword [eax]
call fcn.00407886
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x463d33
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub ebx, ebx
cmp eax, 2
jne 0x463cca
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
or eax, eax
je 0x463ccf
jmp 0x463d37
cmp eax, 3
jne 0x463d3b
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], eax
push 0x48fac0
inc dword [eax]
call fcn.00407e2f
cmp eax, 0xffffffff
je 0x463d28
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x20]
call fcn.00407e8c
lea ecx, [esp + 0x18]
call fcn.00463c66
test al, al
je 0x463d26
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
mov bl, al
lea ecx, [esp + 0x18]
call fcn.00405a64
jmp 0x463d3d
test al, 0x10
je 0x463d3b
mov bl, 1
jmp 0x463d3d
xor bl, bl
lea ecx, [esp + 8]
call fcn.00405a64
pop esi
mov al, bl
pop ebx
push ebp
pop esp
pop ebp
ret
Function at 0x463d4e
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x288
push ebx
push esi
push ecx
pop esi
sub ebx, ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0xf], bl
call fcn.004077c7
lea ecx, [esp + 0x20]
call fcn.004077c7
lea ecx, [esp + 0x30]
call fcn.004077c7
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.004048ae
mov ecx, dword [esp + 0x10]
call fcn.00464cd3
test al, al
je 0x463da5
push str..
lea ecx, [esp + 0x14]
call fcn.00407e0b
push ebx
lea eax, [esp + 0x34]
push ebx
push eax
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x1c]
call fcn.004046f9
add esp, 0xc
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov al, 1
mov byte [esp + 0xe], al
cmp esi, 0xffffffff
je 0x463e45
cmp al, 1
jne 0x463e45
test byte [esp + 0x40], 0x10
jne 0x463e20
mov byte [esp + 0xf], al
lea ecx, [esp + 0x10]
lea eax, [esp + 0x20]
push eax
call fcn.004081a7
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.00407c8e
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x14]
call fcn.00407e0b
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x463e3c
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov al, byte [esp + 0xe]
jne 0x463dd8
mov al, bl
mov byte [esp + 0xe], al
jmp 0x463dd8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x463e50
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, byte [esp + 0xf]
lea ecx, [esp + 0x30]
call fcn.00405a64
lea ecx, [esp + 0x20]
call fcn.00405a64
lea ecx, [esp + 0x10]
call fcn.00405a64
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463e91
Capabilities:
Enumerate processes

Disassembly:
push ebp
push esp
pop ebp
and esp, 0xfffffff8
sub esp, 0x26c
push ebx
push esi
push edi
push 0
mov ebx, ecx
mov dword [esp + 0x14], edx
push 2
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x50], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov esi, dword [ebp + 8]
mov ecx, dword [ebx]
mov byte [esi], 0
call fcn.004649c9
mov ebx, eax
jmp 0x463f84
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x463f8d
lea ecx, [esp + 0x18]
call fcn.004077c7
lea ecx, [esp + 0x28]
call fcn.004077c7
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x3c]
call fcn.00407f41
lea eax, [esp + 0x28]
sub edx, edx
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esp + 0x44]
call fcn.004046f9
add esp, 0xc
lea ecx, [esp + 0x38]
call fcn.00405a64
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
call fcn.00407c8e
push 0
push dword [esp + 0x18]
lea ecx, [esp + 0x20]
call fcn.00407a68
or eax, eax
jne 0x463f5d
mov eax, dword [esp + 0x50]
jmp 0x463f69
or ebx, ebx
je 0x463f72
mov eax, dword [esp + 0x50]
cmp ebx, eax
jne 0x463f72
mov ecx, dword [esp + 0x10]
mov byte [esi], 1
mov dword [ecx], eax
lea ecx, [esp + 0x28]
call fcn.00405a64
lea ecx, [esp + 0x18]
call fcn.00405a64
cmp byte [esi], 0
je 0x463ede
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x463fa0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
xor esi, esi
mov eax, 0x80
push esi
push eax
push 3
push esi
push 3
push edx
pop ebx
push eax
push ecx
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, eax
mov dword [ebp - 8], edx
cmp edx, 0xffffffff
jne 0x463fd1
xor al, al
jmp 0x46401a
push 0xa
pop ecx
sub eax, eax
mov dword [ebp - 0x14], esi
push esi
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x10], esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], esi
push eax
push 0x28
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], esi
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push 0x2d1400
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, esi
je 0x463fcd
mov eax, dword [ebp - 0x20]
mov dword [ebx], eax
mov al, 1
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret
Function at 0x464021
Capabilities:
Get storage device properties

Disassembly:
push ebp
push esp
pop ebp
mov eax, dword [0x4c7428]
sub esp, 0x1c
cmp byte [eax + 0x25], 0
jne 0x464039
mov eax, 0x80004005
jmp 0x4640ad
push ebx
push esi
xor esi, esi
mov eax, 0x80
push esi
push eax
push 3
push esi
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
pop ebx
cmp ebx, 0xffffffff
je 0x46409c
push edi
sub eax, eax
mov dword [ebp - 0x10], 7
lea edi, [ebp - 0x1c]
mov dword [ebp - 0xc], esi
stosd dword es:[edi], eax
push esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
or esi, esi
jne 0x4640a3
mov eax, 0x80004005
jmp 0x4640ab
xor eax, eax
cmp byte [ebp - 0x14], al
setne al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x464696
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push esp
pop ebp
and esp, 0xfffffff8
sub esp, 0x254
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4646d1
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4646c6
test eax, eax
jmp 0x4646d1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 8]
pop esi
push ebp
pop esp
pop ebp
ret
Function at 0x4646d6
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x18]
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x4646fb
xor al, al
jmp 0x4648a3
push esi
call fcn.00420ff6
pop ecx
push eax
mov dword [ebp - 4], eax
sub eax, eax
push esi
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov esi, dword [ebp + 8]
push esi
call fcn.00422e3c
xor ecx, ecx
add eax, 0x1a
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420ff6
push eax
pop edi
push 0x48fac0
push edi
call fcn.00422ffc
push 0x48fac0
push esi
call fcn.0042378c
add esp, 0x18
test eax, eax
je 0x4647e7
push str.StringFileInfo_
push edi
call fcn.00422fcd
push 0x48fac0
push esi
call fcn.00423bba
add esp, 0x10
or eax, eax
jne 0x4647de
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4647ba
mov eax, dword [ebp - 0x10]
lea ecx, [edi + 0x20]
push 0
mov esi, dword [eax]
push esi
push 4
pop edx
call fcn.0041fd71
push 0
shr esi, 0x10
lea ecx, [edi + 0x28]
push esi
push 4
pop edx
call fcn.0041fd71
mov esi, dword [ebp + 8]
add esp, 0x10
jmp 0x4647c7
push str.04090000
push edi
call fcn.00422fcd
pop ecx
pop ecx
push 0x48fac0
push edi
call fcn.00422fcd
push esi
push edi
call fcn.00422fcd
add esp, 0x10
jmp 0x4647e7
push esi
push edi
call fcn.00422fcd
pop ecx
pop ecx
push str.DefaultLangCodepage
push esi
call fcn.0042313d
pop ecx
pop ecx
or eax, eax
jne 0x464822
push 8
lea eax, [edi + 0x20]
push eax
push ebx
call fcn.004242ee
push dword [ebp - 4]
sub eax, eax
mov word [ebx + 0x10], ax
call fcn.0042106c
push edi
call fcn.0042106c
add esp, 0x14
mov al, 1
jmp 0x4648a3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x464890
push 0x48fac0
push esi
call fcn.0042378c
pop ecx
pop ecx
or eax, eax
jne 0x464872
mov eax, dword [ebp - 8]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
push edx
push str._u._u._u._u
push ebx
call fcn.004238d8
add esp, 0x18
jmp 0x46488c
push 0x200
push dword [ebp - 8]
push ebx
call fcn.004242ee
add esp, 0xc
sub eax, eax
mov word [ebx + 0x400], ax
mov byte [ebp - 0xc], 1
push dword [ebp - 4]
call fcn.0042106c
push edi
call fcn.0042106c
mov al, byte [ebp - 0xc]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret
Function at 0x4648f3
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
lea eax, [ebp - 0x298]
push esi
push edi
push eax
push 0x101
mov edi, edx
push ecx
pop esi
call dword [sym.imp.WSOCK32.dll_WSAStartup]
or eax, eax
jne 0x4649b6
push 0x100
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x4649b6
mov edx, dword [eax + 0xc]
xor ecx, ecx
cmp dword [edx], ecx
je 0x464953
mov eax, edx
lea eax, [eax + 4]
inc ecx
cmp dword [eax], 0
jne 0x46494a
cmp esi, ecx
jle 0x464966
push str.0.0.0.0
push edi
call fcn.00422ffc
pop ecx
pop ecx
jmp 0x4649ae
push 4
push dword [edx + esi*4 - 4]
lea eax, [ebp - 4]
push eax
call fcn.00421080
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00424570
or edx, 0xffffffff
lea ecx, [ebp - 0x108]
call fcn.0046573e
push eax
pop esi
push esi
push edi
call fcn.00422ffc
push esi
call fcn.0042106c
add esp, 0x14
call dword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x4649c3
push 0x48f910
push edi
call fcn.00422ffc
pop ecx
pop ecx
pop edi
pop esi
push ebp
pop esp
pop ebp
ret

Function at 0x464c03
Capabilities:
Get token membership

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x10
push ebx
sub ebx, ebx
mov word [ebp - 0xc], 0x500
lea eax, [ebp - 8]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push eax
pop ecx
mov dword [ebp - 4], ecx
or ecx, ecx
je 0x464c5c
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 8]
neg eax
sbb eax, eax
and dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp ecx, 1
pop ebx
sete al
push ebp
pop esp
pop ebp
ret

Function at 0x464cd3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x464ce6
test al, 0x10
je 0x464ce6
mov al, 1
ret
xor al, al
ret
Function at 0x464d35
Capabilities:
Create thread

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov eax, ecx
sub esi, esi
mov dword [ebp - 4], eax
mov byte [0x4c62b7], 0
mov ebx, edx
or edi, edi
je 0x464d87
mov byte [0x4c62b8], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
xor ecx, ecx
lea eax, [ebp + 0x10]
mov dword [ebp - 8], edi
push eax
push ecx
lea eax, [ebp - 0xc]
push eax
push 0x465217
push ecx
push ecx
call fcn.004240c1
push eax
pop esi
add esp, 0x18
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push eax
pop edi
test esi, esi
je 0x464db2
push 0xffffffffffffffff
push esi
mov byte [0x4c62b8], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x4c62b7], 1
jne 0x464dc0
or eax, 0xffffffff
jmp 0x464dc2
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x464f63
Capabilities:
Move file

Disassembly:
push ebp
push esp
pop ebp
and esp, 0xfffffff8
mov eax, 0x20450
call fcn.00431b90
push ebx
push esi
lea eax, [esp + 0x10458]
mov esi, edx
push eax
mov edx, 0x7fff
call fcn.004648aa
pop ecx
lea eax, [esp + 0x458]
mov edx, 0x7fff
push eax
push esi
pop ecx
call fcn.004648aa
pop ecx
lea ecx, [esp + 0x10458]
call fcn.00464cd3
test al, al
jne 0x464fb6
xor al, al
jmp 0x4651c4
lea ecx, [esp + 0x458]
call fcn.00464cd3
xor esi, esi
test al, al
je 0x465092
cmp byte [ebp + 8], 0
je 0x464faf
lea eax, [esp + 0x458]
push eax
lea eax, [esp + 0x1045c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
or eax, eax
jne 0x46502e
lea eax, [esp + 0x458]
push eax
lea eax, [esp + 0x1045c]
push eax
call fcn.0042378c
pop ecx
pop ecx
test eax, eax
je 0x465027
lea eax, [esp + 0x458]
push eax
lea eax, [esp + 0x1045c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
or eax, eax
setne al
jmp 0x4651c4
mov al, 1
jmp 0x4651c4
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x254]
push eax
push esi
lea eax, [esp + 0x10464]
push esi
push eax
call fcn.0042432e
add esp, 0x14
lea eax, [esp + 0x458]
push 0x48fac0
push eax
call fcn.00422fcd
lea eax, [esp + 0x258]
push eax
lea eax, [esp + 0x464]
push eax
call fcn.00422fcd
add esp, 0x10
cmp word [esp + 0x48], si
je 0x465092
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x45c]
push eax
call fcn.00422fcd
pop ecx
pop ecx
lea eax, [esp + 0x458]
push eax
lea ecx, [esp + 0xc]
call fcn.00407f41
lea eax, [esp + 0x10458]
push eax
lea ecx, [esp + 0x3c]
call fcn.00407f41
lea edx, [esp + 8]
lea ecx, [esp + 0x38]
call fcn.00464c69
lea ecx, [esp + 0x38]
mov bl, al
call fcn.00405a64
lea ecx, [esp + 8]
call fcn.00405a64
test bl, bl
je 0x46512c
push 1
lea edx, [esp + 0x45c]
lea ecx, [esp + 0x1045c]
call fcn.004638ad
pop ecx
test al, al
je 0x464faf
lea eax, [esp + 0x10458]
push eax
lea ecx, [esp + 0xc]
call fcn.00407f41
mov dl, 1
lea ecx, [esp + 8]
call fcn.004653c5
mov bl, al
lea ecx, [esp + 8]
neg bl
sbb bl, bl
call fcn.00405a64
inc bl
sete al
jmp 0x4651c4
lea eax, [esp + 0x458]
push eax
lea eax, [esp + 0x1045c]
push eax
call fcn.0042378c
pop ecx
pop ecx
test eax, eax
je 0x464faf
lea eax, [esp + 0x10458]
push eax
call fcn.00422e3c
pop ecx
xor ecx, ecx
mov word [esp + eax*2 + 0x1045a], cx
lea eax, [esp + 0x458]
push eax
call fcn.00422e3c
pop ecx
xor ecx, ecx
mov dword [esp + 0x2e], esi
mov dword [esp + 0x32], esi
mov word [esp + eax*2 + 0x45a], cx
lea eax, [esp + 0x10458]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x458]
mov dword [esp + 0x24], eax
mov eax, 0x614
mov word [esp + 0x28], ax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x2e], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 1
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4653c5
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.00431b90
mov ecx, dword [ecx]
lea eax, [ebp - 0x10020]
push ebx
mov bl, dl
mov edx, 0x7fff
push eax
call fcn.004648aa
pop ecx
lea ecx, [ebp - 0x10020]
call fcn.00464cd3
test al, al
je 0x46545a
lea eax, [ebp - 0x10020]
push eax
test bl, bl
jne 0x465410
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
or eax, eax
setne al
jmp 0x46545a
call fcn.00422e3c
pop ecx
xor ecx, ecx
mov dword [ebp - 0x1c], 3
mov word [ebp + eax*2 - 0x1001e], cx
lea eax, [ebp - 0x10020]
mov dword [ebp - 0x18], eax
sub eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0x20], eax
mov eax, 0x614
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46545f
Capabilities:
Shutdown system

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x10
push ebx
push esi
push ecx
pop ebx
mov esi, edx
push str.SeShutdownPrivilege
lea ecx, [ebp - 0x10]
call fcn.004637e9
push ecx
lea ecx, [ebp - 0x10]
call fcn.00458cc3
test al, al
jne 0x465489
sub esi, esi
jmp 0x4654d6
cmp ebx, 0x20
je 0x4654c8
cmp ebx, 0x40
je 0x4654c4
test bl, 0xb
jne 0x4654a3
push 0
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x4654d4
xor ecx, ecx
test bl, 0x14
je 0x4654ab
inc ecx
xor eax, eax
test bl, 2
je 0x4654b3
inc eax
push esi
push eax
push ecx
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
jmp 0x4654d4
xor eax, eax
jmp 0x4654cb
xor eax, eax
inc eax
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.00458713
mov eax, esi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret

Function at 0x4654e6
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x28
push esi
push ecx
pop esi
or esi, esi
js 0x465564
jne 0x4654f9
push 0
jmp 0x46555e
cmp esi, 0xf
jae 0x46555d
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x46555d
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
sbb eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild qword [ebp - 0x28]
fstp qword [ebp - 0x20]
fdiv qword [ebp - 0x20]
fmul qword [0x4a4be0]
call fcn.0043b606
cmp eax, esi
jb 0x465516
jmp 0x465564
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
push ebp
pop esp
pop ebp
ret