joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463ce2
Capabilities:
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 1], bl
mov edi, edx
call fcn.00411207
lea ecx, [ebp - 0x44]
call fcn.00411207
lea ecx, [ebp - 0x24]
call fcn.00411207
lea ecx, [ebp - 0x14]
call fcn.00411207
lea edx, [ebp - 0x34]
mov ecx, esi
call fcn.00420284
lea edx, [ebp - 0x44]
mov ecx, edi
call fcn.00420284
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x34]
call fcn.00464f82
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 3], al
call fcn.00464fec
mov esi, str..
test al, al
je 0x463d53
push esi
lea ecx, [ebp - 0x34]
call fcn.00411900
mov ecx, dword [ebp - 0x44]
call fcn.00464fec
test al, al
je 0x463d68
push esi
lea ecx, [ebp - 0x44]
call fcn.00411900
lea ecx, [ebp - 0x54]
call fcn.00411207
lea ecx, [ebp - 0x64]
call fcn.00411207
push ebx
lea eax, [ebp - 0x64]
push ebx
push eax
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x34]
call fcn.00420119
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 0x463eb4
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp al, 1
jne 0x463eb4
test byte [ebp - 0x2c8], 0x10
jne 0x463e88
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x74]
call fcn.00411a36
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x74]
call fcn.00464561
pop ecx
lea ecx, [ebp - 0x74]
call fcn.00411cb6
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x14]
call fcn.00411c9c
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x14]
call fcn.004117e0
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00411900
lea ecx, [ebp - 0x24]
call fcn.0046412a
test al, al
je 0x463e40
cmp byte [ebp + 8], bl
je 0x463eab
push ebx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.0041151f
push dword [ebp - 0x24]
test eax, eax
je 0x463e4e
call edi
cmp byte [ebp + 0xc], 1
jne 0x463e72
cmp byte [ebp - 3], bl
jne 0x463e59
push dword [ebp - 0x24]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x463e80
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.00463ef7
movzx eax, al
test eax, eax
je 0x463eab
push dword [ebp - 0x14]
call edi
jmp 0x463e80
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.00463ef7
movzx eax, al
test eax, eax
je 0x463eab
mov byte [ebp - 1], 1
lea eax, [ebp - 0x2c8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov al, byte [ebp - 2]
jne 0x463db2
mov al, bl
mov byte [ebp - 2], al
jmp 0x463db2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x463ebe
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, byte [ebp - 1]
lea ecx, [ebp - 0x64]
call fcn.00411cb6
lea ecx, [ebp - 0x54]
call fcn.00411cb6
lea ecx, [ebp - 0x14]
call fcn.00411cb6
lea ecx, [ebp - 0x24]
call fcn.00411cb6
lea ecx, [ebp - 0x44]
call fcn.00411cb6
lea ecx, [ebp - 0x34]
call fcn.00411cb6
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463f1d
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 0x492c4c
mov dword [esp + 0x18], eax
inc dword [eax]
call fcn.0041133d
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x463fea
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 2
jne 0x463f81
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x463f86
jmp 0x463fee
cmp eax, 3
jne 0x463ff2
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 0x492c4c
inc dword [eax]
call fcn.00411924
cmp eax, 0xffffffff
je 0x463fdf
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x20]
call fcn.00411981
lea ecx, [esp + 0x18]
call fcn.00463f1d
test al, al
je 0x463fdd
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.00411cb6
jmp 0x463ff4
test al, 0x10
je 0x463ff2
mov bl, 1
jmp 0x463ff4
xor bl, bl
lea ecx, [esp + 8]
call fcn.00411cb6
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x464005
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x288
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0xf], bl
call fcn.00411207
lea ecx, [esp + 0x20]
call fcn.00411207
lea ecx, [esp + 0x30]
call fcn.00411207
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.00420284
mov ecx, dword [esp + 0x10]
call fcn.00464fec
test al, al
je 0x46405c
push str..
lea ecx, [esp + 0x14]
call fcn.00411900
push ebx
lea eax, [esp + 0x34]
push ebx
push eax
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x1c]
call fcn.00420119
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 0x4640fc
cmp al, 1
jne 0x4640fc
test byte [esp + 0x40], 0x10
jne 0x4640d7
mov byte [esp + 0xf], al
lea ecx, [esp + 0x10]
lea eax, [esp + 0x20]
push eax
call fcn.00411c9c
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.004117e0
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x14]
call fcn.00411900
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x4640f3
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov al, byte [esp + 0xe]
jne 0x46408f
mov al, bl
mov byte [esp + 0xe], al
jmp 0x46408f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x464107
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, byte [esp + 0xf]
lea ecx, [esp + 0x30]
call fcn.00411cb6
lea ecx, [esp + 0x20]
call fcn.00411cb6
lea ecx, [esp + 0x10]
call fcn.00411cb6
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x464148
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
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.00464ce2
mov ebx, eax
jmp 0x46423b
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x464244
lea ecx, [esp + 0x18]
call fcn.00411207
lea ecx, [esp + 0x28]
call fcn.00411207
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x3c]
call fcn.00411a36
lea eax, [esp + 0x28]
xor edx, edx
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esp + 0x44]
call fcn.00420119
add esp, 0xc
lea ecx, [esp + 0x38]
call fcn.00411cb6
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
call fcn.004117e0
push 0
push dword [esp + 0x18]
lea ecx, [esp + 0x20]
call fcn.0041151f
test eax, eax
jne 0x464214
mov eax, dword [esp + 0x50]
jmp 0x464220
test ebx, ebx
je 0x464229
mov eax, dword [esp + 0x50]
cmp ebx, eax
jne 0x464229
mov ecx, dword [esp + 0x10]
mov byte [esi], 1
mov dword [ecx], eax
lea ecx, [esp + 0x28]
call fcn.00411cb6
lea ecx, [esp + 0x18]
call fcn.00411cb6
cmp byte [esi], 0
je 0x464195
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 0x464254
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
mov ebx, edx
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 0x464285
xor al, al
jmp 0x4642ce
push 0xa
pop ecx
xor 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]
test esi, esi
je 0x464281
mov eax, dword [ebp - 0x20]
mov dword [ebx], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4642d5
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4c8428]
sub esp, 0x1c
cmp byte [eax + 0x25], 0
jne 0x4642ed
mov eax, 0x80004005
jmp 0x464361
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]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x464350
push edi
xor 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
test esi, esi
jne 0x464357
mov eax, 0x80004005
jmp 0x46435f
xor eax, eax
cmp byte [ebp - 0x14], al
setne al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x464985
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x46497a
or eax, eax
jmp 0x464985
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46498a
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 0x4649af
xor al, al
jmp 0x464b57
push esi
call fcn.00420fe6
pop ecx
push eax
mov dword [ebp - 4], eax
xor 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.00422e2c
xor ecx, ecx
add eax, 0x1a
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420fe6
mov edi, eax
push 0x492c4c
push edi
call fcn.00422fec
push 0x492c4c
push esi
call fcn.0042377c
add esp, 0x18
test eax, eax
je 0x464a9b
push str.StringFileInfo_
push edi
call fcn.00422fbd
push 0x492c4c
push esi
call fcn.00423baa
add esp, 0x10
test eax, eax
jne 0x464a92
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 0x464a6e
mov eax, dword [ebp - 0x10]
lea ecx, [edi + 0x20]
push 0
mov esi, dword [eax]
push esi
push 4
pop edx
call fcn.0041fc9b
push 0
shr esi, 0x10
lea ecx, [edi + 0x28]
push esi
push 4
pop edx
call fcn.0041fc9b
mov esi, dword [ebp + 8]
add esp, 0x10
jmp 0x464a7b
push str.04090000
push edi
call fcn.00422fbd
pop ecx
pop ecx
push 0x492c4c
push edi
call fcn.00422fbd
push esi
push edi
call fcn.00422fbd
add esp, 0x10
jmp 0x464a9b
push esi
push edi
call fcn.00422fbd
pop ecx
pop ecx
push str.DefaultLangCodepage
push esi
call fcn.0042312d
pop ecx
pop ecx
test eax, eax
jne 0x464ad6
push 8
lea eax, [edi + 0x20]
push eax
push ebx
call fcn.004242de
push dword [ebp - 4]
xor eax, eax
mov word [ebx + 0x10], ax
call fcn.0042105c
push edi
call fcn.0042105c
add esp, 0x14
mov al, 1
jmp 0x464b57
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 0x464b44
push 0x492c4c
push esi
call fcn.0042377c
pop ecx
pop ecx
test eax, eax
jne 0x464b26
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.004238c8
add esp, 0x18
jmp 0x464b40
push 0x200
push dword [ebp - 8]
push ebx
call fcn.004242de
add esp, 0xc
xor eax, eax
mov word [ebx + 0x400], ax
mov byte [ebp - 0xc], 1
push dword [ebp - 4]
call fcn.0042105c
push edi
call fcn.0042105c
mov al, byte [ebp - 0xc]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x464c0c
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
mov esi, ecx
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x464ccf
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 0x464ccf
mov edx, dword [eax + 0xc]
xor ecx, ecx
cmp dword [edx], ecx
je 0x464c6c
mov eax, edx
lea eax, [eax + 4]
inc ecx
cmp dword [eax], 0
jne 0x464c63
cmp esi, ecx
jle 0x464c7f
push str.0.0.0.0
push edi
call fcn.00422fec
pop ecx
pop ecx
jmp 0x464cc7
push 4
push dword [edx + esi*4 - 4]
lea eax, [ebp - 4]
push eax
call fcn.00421070
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.00424560
or edx, 0xffffffff
lea ecx, [ebp - 0x108]
call fcn.00465a57
mov esi, eax
push esi
push edi
call fcn.00422fec
push esi
call fcn.0042105c
add esp, 0x14
call dword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x464cdc
push 0x490980
push edi
call fcn.00422fec
pop ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x464f1c
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor 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]
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x464f75
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
mov esp, ebp
pop ebp
ret

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov eax, ecx
xor esi, esi
mov dword [ebp - 4], eax
mov byte [0x4c72b7], 0
mov ebx, edx
test edi, edi
je 0x4650a0
mov byte [0x4c72b8], 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 0x465530
push ecx
push ecx
call fcn.004240b1
mov esi, eax
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]
mov edi, eax
test esi, esi
je 0x4650cb
push 0xffffffffffffffff
push esi
mov byte [0x4c72b8], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x4c72b7], 1
jne 0x4650d9
or eax, 0xffffffff
jmp 0x4650db
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46527c
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x20450
call fcn.00431b70
push ebx
push esi
lea eax, [esp + 0x10458]
mov esi, edx
push eax
mov edx, 0x7fff
call fcn.00464bc3
pop ecx
lea eax, [esp + 0x458]
mov edx, 0x7fff
push eax
mov ecx, esi
call fcn.00464bc3
pop ecx
lea ecx, [esp + 0x10458]
call fcn.00464fec
test al, al
jne 0x4652cf
xor al, al
jmp 0x4654dd
lea ecx, [esp + 0x458]
call fcn.00464fec
xor esi, esi
test al, al
je 0x4653ab
cmp byte [ebp + 8], 0
je 0x4652c8
lea eax, [esp + 0x458]
push eax
lea eax, [esp + 0x1045c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x465347
lea eax, [esp + 0x458]
push eax
lea eax, [esp + 0x1045c]
push eax
call fcn.0042377c
pop ecx
pop ecx
test eax, eax
je 0x465340
lea eax, [esp + 0x458]
push eax
lea eax, [esp + 0x1045c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
jmp 0x4654dd
mov al, 1
jmp 0x4654dd
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x254]
push eax
push esi
lea eax, [esp + 0x10464]
push esi
push eax
call fcn.0042431e
add esp, 0x14
lea eax, [esp + 0x458]
push 0x492c4c
push eax
call fcn.00422fbd
lea eax, [esp + 0x258]
push eax
lea eax, [esp + 0x464]
push eax
call fcn.00422fbd
add esp, 0x10
cmp word [esp + 0x48], si
je 0x4653ab
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x45c]
push eax
call fcn.00422fbd
pop ecx
pop ecx
lea eax, [esp + 0x458]
push eax
lea ecx, [esp + 0xc]
call fcn.00411a36
lea eax, [esp + 0x10458]
push eax
lea ecx, [esp + 0x3c]
call fcn.00411a36
lea edx, [esp + 8]
lea ecx, [esp + 0x38]
call fcn.00464f82
lea ecx, [esp + 0x38]
mov bl, al
call fcn.00411cb6
lea ecx, [esp + 8]
call fcn.00411cb6
test bl, bl
je 0x465445
push 1
lea edx, [esp + 0x45c]
lea ecx, [esp + 0x1045c]
call fcn.00463b64
pop ecx
test al, al
je 0x4652c8
lea eax, [esp + 0x10458]
push eax
lea ecx, [esp + 0xc]
call fcn.00411a36
mov dl, 1
lea ecx, [esp + 8]
call fcn.004656de
mov bl, al
lea ecx, [esp + 8]
neg bl
sbb bl, bl
call fcn.00411cb6
inc bl
sete al
jmp 0x4654dd
lea eax, [esp + 0x458]
push eax
lea eax, [esp + 0x1045c]
push eax
call fcn.0042377c
pop ecx
pop ecx
test eax, eax
je 0x4652c8
lea eax, [esp + 0x10458]
push eax
call fcn.00422e2c
pop ecx
xor ecx, ecx
mov word [esp + eax*2 + 0x1045a], cx
lea eax, [esp + 0x458]
push eax
call fcn.00422e2c
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 0x4656de
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.00431b70
mov ecx, dword [ecx]
lea eax, [ebp - 0x10020]
push ebx
mov bl, dl
mov edx, 0x7fff
push eax
call fcn.00464bc3
pop ecx
lea ecx, [ebp - 0x10020]
call fcn.00464fec
test al, al
je 0x465773
lea eax, [ebp - 0x10020]
push eax
test bl, bl
jne 0x465729
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x465773
call fcn.00422e2c
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
xor 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 0x465778
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
mov esi, edx
push str.SeShutdownPrivilege
lea ecx, [ebp - 0x10]
call fcn.00463aa0
push ecx
lea ecx, [ebp - 0x10]
call fcn.00459399
test al, al
jne 0x4657a2
xor esi, esi
jmp 0x4657ef
cmp ebx, 0x20
je 0x4657e1
cmp ebx, 0x40
je 0x4657dd
test bl, 0xb
jne 0x4657bc
push 0
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x4657ed
xor ecx, ecx
test bl, 0x14
je 0x4657c4
inc ecx
xor eax, eax
test bl, 2
je 0x4657cc
inc eax
push esi
push eax
push ecx
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
jmp 0x4657ed
xor eax, eax
jmp 0x4657e4
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.00458de9
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
test esi, esi
js 0x46587d
jne 0x465812
push 0
jmp 0x465877
cmp esi, 0xf
jae 0x465876
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x465876
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 [0x4a5bc0]
call fcn.0043b5e6
cmp eax, esi
jb 0x46582f
jmp 0x46587d
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4659a4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 8]
push eax
push 0x1f4
push 2
push edi
push edi
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x4659ff
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x467357
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0x467393
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4673d0
mov dword [esi], edi
mov eax, dword [esi]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
test dword [ebp + 8], eax
je 0x4673b9
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x46738b
push edi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x467407
or eax, 0xffffffff
jmp 0x46738b
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
test eax, eax
je 0x4673de
cmp eax, 0xffffffff
je 0x4673de
push 1
mov edx, esi
mov ecx, eax
call fcn.00467221
pop ecx
jmp 0x467389
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40000000
push 0x4bb440
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x467387
test eax, eax
je 0x467387
mov ecx, dword [esi]
lea edx, [ebp + 0x10]
push 1
call fcn.00467221
pop ecx
mov ecx, esi
call fcn.004671f0
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x467389