joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c340
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x44c3fb
cmp byte [ebx], 0
je 0x44c3fb
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x44c383
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
shr eax, 4
and eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x5c
push ebx
call fcn.0049349c
mov edi, eax
add esp, 8
mov dword [ebp + 8], edi
cmp edi, ebx
jbe 0x44c3e5
cmp byte [edi - 1], 0x3a
je 0x44c3e5
cmp dword [ebp + 0xc], 0
je 0x44c3aa
mov esi, ebx
mov byte [edi], 0
jmp 0x44c3c8
sub edi, ebx
lea eax, [edi + 1]
call fcn.0049c230
mov esi, esp
push edi
push ebx
push esi
call fcn.00495b20
mov byte [edi + esi], 0
mov edi, dword [ebp + 8]
add esp, 0xc
push esi
push esi
call fcn.0044c340
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x44c3db
mov byte [edi], 0x5c
cmp byte [edi + 1], 0
je 0x44c405
test al, al
je 0x44c405
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne al
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x44d070
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
xor edi, edi
cmp ebp, edi
je 0x44d0c0
push edi
push 1
mov ecx, ebp
call fcn.00401210
cmp byte [ebp + 0x17], 0
mov dword [esp + 0x24], eax
jne 0x44d09a
mov esi, dword [ebp + 0xc]
jmp 0x44d09c
mov esi, ebp
cmp byte [esi + 0x17], 1
jne 0x44d0b7
test byte [esi + 0x15], 8
je 0x44d0af
mov eax, esi
call fcn.00401150
mov ebx, dword [esi + 0xc]
add esi, 0xc
jmp 0x44d0ee
mov esi, 0x4bcc74
mov ebx, dword [esi]
jmp 0x44d0ee
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
call fcn.00481ea0
add esp, 0xc
test eax, eax
jne 0x44d0ea
mov edx, dword [0x4b7a60]
mov dword [edx + 0x30], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x44d136
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], edi
test eax, eax
je 0x44d12b
push 0
lea ecx, [esp + 0x24]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
cmp dword [esp + 0x20], ebx
sete dl
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4b7a60]
mov dword [ecx + 0x30], eax
cmp esi, 0xffffffff
je 0x44d151
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
jne 0x44d162
mov edx, dword [esp + 0x24]
push edx
call fcn.00492708
add esp, 4
test edi, edi
mov edi, dword [esp + 0x1c]
sete al
movzx ecx, al
push ecx
call fcn.0043ae10
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x44d190
Capabilities:
Delete file

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, eax
push edi
mov edi, ecx
mov ebx, esi
test esi, esi
je 0x44d1c4
mov dl, byte [esi]
test dl, dl
je 0x44d201
mov ecx, 0x4aebe4
mov al, 0x3f
lea ecx, [ecx]
cmp dl, al
je 0x44d201
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x44d1b0
mov dl, byte [ebx + 1]
inc ebx
test dl, dl
jne 0x44d1a6
cmp byte [esi], 0
je 0x44d201
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
sete al
mov byte [esp + 0x10], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x10]
mov ecx, dword [0x4b7a60]
push edx
mov dword [ecx + 0x30], eax
call fcn.0043ae10
pop edi
pop esi
pop ebx
add esp, 8
ret
push 0
push 0x44d180
push 0
push 1
push edi
call fcn.0044d740
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x44d290
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x108
push ebp
push esi
mov esi, eax
xor eax, eax
cmp byte [esp + 0x114], al
push 0
setne al
push 0
inc eax
push eax
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x44d2d0
pop esi
xor al, al
pop ebp
add esp, 0x108
ret 4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44d2d5
sub eax, edx
cmp eax, 0x104
jb 0x44d2ea
mov eax, 0x103
push ebx
inc eax
push eax
lea edx, [esp + 0x14]
push esi
push edx
call fcn.0049b100
lea eax, [esp + 0x1c]
push eax
call fcn.0049552d
add esp, 0x10
push 0xa
lea ecx, [esp + 0x14]
push ecx
push 0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x44d356
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44d356
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x44d355
push 0
lea edx, [esp + 0x14]
push edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
pop edi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop esi
pop ebp
add esp, 0x108
ret 4

Function at 0x44d370
Capabilities:
Copy file
Set current directory

Disassembly:
sub esp, 0x104
push ebx
push esi
push 0
lea eax, [esp + 0xc]
push eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov edx, dword [0x4bca54]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edx
call esi
mov edx, dword [esp + 0x110]
xor eax, eax
cmp byte [esp + 0x114], al
lea ecx, [esp + 8]
sete al
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
mov eax, dword [0x4b8c80]
setne bl
test eax, eax
je 0x44d3ce
mov eax, dword [eax]
test eax, eax
jne 0x44d3d3
mov eax, 0x4a7935
push eax
call esi
pop esi
mov al, bl
pop ebx
add esp, 0x104
ret 8
Function at 0x44d4a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x84
push esi
push edi
mov edi, ecx
mov ecx, dword [0x4bb368]
mov esi, eax
call fcn.0041c000
test esi, esi
je 0x44d55a
cmp byte [esi], 0
je 0x44d55a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44d510
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4b7a60]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x44d58f
mov eax, dword [0x4bbc30]
push 1
push 0
push esi
push 0x4a7dfc
push eax
call fcn.00482410
pop edi
pop esi
add esp, 0x84
ret
mov edx, dword [0x4bbc30]
mov ecx, dword [0x4b7a60]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7950
push edx
mov dword [ecx + 0x30], 0
call fcn.00482410
mov edx, esi
lea eax, [esp + 8]
call fcn.00480280
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4bb368]
push eax
call fcn.00482410
pop edi
pop esi
add esp, 0x84
ret
mov eax, dword [0x4b7a60]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x44d58f
mov ecx, dword [0x4bbc30]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7dfc
push ecx
call fcn.00482410
pop edi
pop esi
add esp, 0x84
ret
push 0x4a7935
push 0
push 0x4a7dfc
call fcn.0043ad70
pop edi
pop esi
add esp, 0x84
ret
Function at 0x44deb0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4bb368]
sub esp, 0x148
push esi
push edi
call fcn.0041c000
test ebx, ebx
je 0x44e01e
cmp byte [ebx], 0
je 0x44e01e
push 0
push 0
push 3
push 0
push 7
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x44df10
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x44df7b
lea ecx, [esp + 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x44df5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4b7a60]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x44e052
mov edx, dword [0x4bbc30]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7dfc
push edx
call fcn.00482410
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x2c]
xor ecx, ecx
or ecx, dword [esp + 0x30]
xor esi, esi
or eax, esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
jmp 0x44df83
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [ebp + 0xc]
movzx esi, byte [edx]
test esi, 0xffffff80
jne 0x44dfab
push 2
push esi
call fcn.004938f7
mov ecx, dword [esp + 0x10]
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
je 0x44dfab
and esi, 0xffffffdf
mov edx, esi
movsx edx, dl
sub edx, 0x4b
je 0x44dfc2
sub edx, 2
jne 0x44dfd8
push edx
push 0x100000
jmp 0x44dfc9
push 0
push 0x400
push eax
push ecx
call fcn.004a1d40
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov ecx, dword [0x4bbc30]
mov eax, dword [0x4b7a60]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7950
push ecx
mov dword [eax + 0x30], 0
call fcn.00482410
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0x18
push edx
push eax
mov eax, dword [0x4bb368]
call fcn.004010d0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4b7a60]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x44e052
mov ecx, dword [0x4bbc30]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7dfc
push ecx
call fcn.00482410
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 8]
push 0x4a7935
push 0
push 0x4a7dfc
call fcn.0043ad70
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x44f8f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x44f910
mov byte [esp], 0
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44f916
sub eax, edx
je 0x44f92e
cmp byte [esp + eax - 1], 0x5c
jne 0x44f92e
mov byte [esp + eax - 1], 0
dec eax
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
je 0x44f94c
lea ecx, [esp + 4]
mov edx, ecx
sub esi, edx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x44f942
pop esi
add esp, 0x104
ret
Function at 0x45aee0
Capabilities:
Log keystrokes via polling

Disassembly:
test bl, bl
jne 0x45aee7
xor al, al
ret
mov eax, dword [esp + 4]
dec eax
je 0x45af0f
dec eax
je 0x45af01
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetKeyState]
and eax, 1
ret
lea edx, [ebx - 1]
cmp dl, 5
ja 0x45af1c
cmp bl, 3
jne 0x45af23
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x45af49
cmp dword [0x4bb55c], 0
je 0x45af39
movzx ecx, bl
mov al, byte [ecx + 0x4bb450]
shr al, 7
ret
movzx edx, bl
push edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret
cmp dword [0x4bb558], 0
je 0x45af78
xor ecx, ecx
xor edx, edx
mov al, bl
call fcn.0041a8c0
test al, al
je 0x45af6b
push 1
call fcn.0041a6c0
add esp, 4
movzx eax, bl
mov al, byte [eax + 0x4bb450]
shr al, 7
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret
Function at 0x45b4c0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
push esi
push edi
mov esi, ecx
push esi
push 0
mov edi, eax
push 0x410
mov byte [edi], 0
call ebx
mov ebp, eax
test ebp, ebp
jne 0x45b501
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x45b501
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
cmp byte [esp + 0x11c], 0
push 0x104
push edi
push 0
push ebp
je 0x45b51c
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
jmp 0x45b522
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test byte [0x4bd548], 1
mov ebx, eax
jne 0x45b552
or dword [0x4bd548], 1
push str.GetProcessImageFileNameA
push str.psapi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4bd544], eax
jmp 0x45b557
mov eax, dword [0x4bd544]
test ebx, ebx
jne 0x45b654
test eax, eax
je 0x45b654
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x45b654
cmp byte [esp + 0x11c], 0
je 0x45b5c9
push 0x5c
push edi
call fcn.0049349c
add esp, 8
test eax, eax
je 0x45b654
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x45b5a0
sub ecx, esi
push ecx
inc eax
push eax
push edi
call fcn.00493930
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
mov word [esp + 0x11], 0x3a
mov byte [esp + 0x10], 0x41
push 0x104
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov esi, eax
cmp esi, 2
jbe 0x45b60d
sub esi, 2
push esi
lea edx, [esp + 0x18]
push edi
push edx
call fcn.00495213
add esp, 0xc
test eax, eax
jne 0x45b60d
cmp byte [esi + edi], 0x5c
je 0x45b62f
mov al, byte [esp + 0x10]
inc al
mov byte [esp + 0x10], al
cmp al, 0x5a
jle 0x45b5d5
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
mov al, byte [esp + 0x10]
mov cl, byte [esp + 0x11]
sub ebx, esi
lea edx, [ebx + 1]
push edx
add esi, edi
mov byte [edi], al
mov byte [edi + 1], cl
push esi
add edi, 2
push edi
call fcn.00493930
add esp, 0xc
add ebx, 2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
Function at 0x45e0d0
Capabilities:
Delete file

Disassembly:
sub esp, 0x12c
push ebx
xor ebx, ebx
push edi
mov edi, ecx
cmp eax, ebx
je 0x45e18e
cmp byte [eax], bl
je 0x45e18e
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x45e110
sub eax, edx
cmp eax, ebx
je 0x45e12a
cmp byte [esp + eax + 0x2b], 0x5c
lea eax, [esp + eax + 0x2b]
jne 0x45e12a
mov byte [eax], bl
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x45e131
sub eax, edx
mov byte [esp + eax + 0x2d], bl
lea edx, [esp + 8]
lea eax, [esp + 0x2c]
mov ecx, 0x4054
push edx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x26], ebx
mov dword [esp + 0x1e], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 3
mov word [esp + 0x1c], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
setne al
movzx ecx, al
push ecx
call fcn.0043ae10
pop edi
pop ebx
add esp, 0x12c
ret
mov edx, dword [0x4b7a60]
test byte [edx + 0xe0], 1
jne 0x45e1bb
mov eax, dword [0x4bbc30]
push 1
push ebx
push 0xffffffffffffffff
push 0x4a7dfc
push eax
call fcn.00482410
pop edi
pop ebx
add esp, 0x12c
ret
push 0x4a7935
push ebx
push 0x4a7dfc
call fcn.0043ad70
pop edi
pop ebx
add esp, 0x12c
ret
Function at 0x45e1e0
Capabilities:
Get file version info

Disassembly:
mov ecx, dword [0x4bb368]
sub esp, 0x90
push ebx
push ebp
mov ebp, dword [esp + 0x9c]
push esi
push edi
mov edi, eax
call fcn.0041c000
test ebp, ebp
je 0x45e341
cmp byte [ebp], 0
je 0x45e341
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x45e261
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4b7a60]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x45e37a
mov ecx, dword [0x4bbc30]
push 1
push esi
push 0xffffffffffffffff
push 0x4a7dfc
push ecx
call fcn.00482410
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 4
push esi
call fcn.00492cd9
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push ebp
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x45e317
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push 0x4aaf14
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x45e317
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push str._u._u._u._u
mov esi, 0x80
lea edi, [esp + 0x34]
call fcn.0047f340
add esp, 0x14
push ebx
call fcn.00492708
mov eax, dword [0x4bbc30]
mov edx, dword [0x4b7a60]
add esp, 4
push 1
push 0
push 0xffffffffffffffff
push 0x4a7950
push eax
mov dword [edx + 0x30], 0
call fcn.00482410
mov edx, dword [0x4bb368]
push 1
push 0
push 0xffffffffffffffff
mov ecx, edi
push ecx
push edx
call fcn.00482410
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4b7a60]
push ebx
mov dword [ecx + 0x30], eax
call fcn.00492708
add esp, 4
call fcn.0043cd00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 4
mov eax, dword [0x4b7a60]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x45e37a
mov edx, dword [0x4bbc30]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7dfc
push edx
call fcn.00482410
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 4
push 0x4a7935
push 0
push 0x4a7dfc
call fcn.0043ad70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 4
Function at 0x45e640
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
sub esp, 0x12c
push ebx
xor ebx, ebx
cmp byte [eax], bl
jne 0x45e657
xor al, al
pop ebx
add esp, 0x12c
ret
cmp byte [esp + 0x134], bl
jne 0x45e674
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
pop ebx
add esp, 0x12c
ret
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x45e691
sub eax, edx
cmp eax, ebx
je 0x45e6ab
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x45e6ab
mov byte [eax], bl
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x45e64d
test al, 0x10
je 0x45e64d
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x45e6c6
sub eax, edx
mov byte [esp + eax + 0x29], bl
lea eax, [esp + 4]
lea ecx, [esp + 0x28]
mov edx, 0x614
push eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1e], ebx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x1a], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 3
mov word [esp + 0x18], dx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
pop ebx
add esp, 0x12c
ret
Function at 0x45ebd0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x45ebf1
xor al, al
add esp, 0x18
ret
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45ebeb
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
add esp, 0x18
ret

Function at 0x45ec50
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push esi
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x45ecaf
lea ecx, [esp + 4]
push ecx
push esi
mov dword [esp + 0xc], eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 4]
test eax, eax
je 0x45ecaf
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x45ecaf
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 8
ret
Function at 0x45ede0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x550
push ebp
push esi
push edi
push 0
push 2
mov dword [esp + 0x18], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_Process32First]
push 0
push 0
push 1
push 0
mov eax, ebx
call fcn.0047f1d0
add esp, 0x10
test eax, eax
je 0x45ee4c
mov eax, ebx
call fcn.00403fb0
test al, al
je 0x45ee3f
push 0x10
push 0
push ebx
call fcn.00492c4b
add esp, 0xc
mov ebp, eax
jmp 0x45ee4e
push ebx
call fcn.00492cc3
add esp, 4
mov ebp, eax
jmp 0x45ee4e
xor ebp, ebp
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x45ef00
test ebp, ebp
je 0x45ee70
cmp ebp, dword [esp + 0x18]
je 0x45ef13
lea edx, [esp + 0x240]
push edx
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0x458]
push ecx
lea edx, [esp + 0x354]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.00495acf
lea eax, [esp + 0x254]
add esp, 0x14
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45eea6
lea edi, [esp + 0x138]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x45eeb7
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x138]
push ebx
push ecx
call fcn.004926f1
add esp, 8
test eax, eax
je 0x45ef26
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_Process32Next]
mov esi, dword [esp + 0xc]
test eax, eax
jne 0x45ee62
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x550
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
pop edi
pop esi
pop ebp
add esp, 0x550
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x550
ret