joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ece0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x11c
push ebx
push ebp
mov ebp, dword [0x4ae218]
push edi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0
mov eax, esi
call fcn.00413d70
add esp, 0xc
mov byte [esp + 0x13], al
test al, al
jne 0x43ed7c
push 0
lea ebx, [esp + 0x18]
mov eax, esi
call fcn.0044fa20
mov edi, eax
add esp, 4
test edi, edi
jne 0x43ed40
push 1
push eax
push 0xffffffffffffffff
push 0x49b8cd
push ebp
call fcn.004780a0
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x28]
mov dword [esp + 0x18], eax
push 0
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0
call fcn.0044fcc0
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.004779f0
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
mov edx, dword [esp + 0x12c]
movzx ebx, byte [edx]
test ebx, 0xffffff80
jne 0x43eda0
push 2
push ebx
call fcn.0048962e
add esp, 8
test eax, eax
je 0x43eda0
and bl, 0xdf
cmp bl, 0x50
je 0x43edb3
xor eax, eax
cmp bl, 0x54
setne al
dec eax
and eax, 2
jmp 0x43edb8
mov eax, 1
mov bl, byte [esp + 0x13]
push eax
call fcn.0044fc10
add esp, 4
test al, al
mov eax, 0x4a102c
jne 0x43edd3
mov eax, 0x4a1030
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.004780a0
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4

Function at 0x43edf0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x120
push esi
mov esi, ecx
mov ecx, dword [0x4ae218]
push edi
call fcn.00414de0
test esi, esi
je 0x43eed3
cmp byte [esi], 0
je 0x43eed3
push 0x103
lea eax, [esp + 0x24]
push esi
push eax
call fcn.0048adb0
lea eax, [esp + 0x2c]
add esp, 0xc
mov byte [esp + 0x123], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43ee40
sub eax, edx
cmp byte [esp + eax + 0x1f], 0x5c
je 0x43ee65
lea ecx, [eax + 1]
cmp ecx, 0x104
jae 0x43eed3
mov byte [esp + eax + 0x20], 0x5c
mov byte [esp + eax + 0x21], 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExA]
test eax, eax
je 0x43eed3
cmp byte [ebp + 0xc], 0
je 0x43ee93
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
jmp 0x43ee9b
mov edi, dword [esp + 8]
mov esi, dword [esp + 0xc]
mov eax, dword [0x4aeae0]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8e8
push eax
call fcn.004780a0
mov eax, dword [0x4ae218]
shrd edi, esi, 0x14
push 0x18
shr esi, 0x14
push esi
push edi
call fcn.00401130
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x4aa988]
test byte [ecx + 0xe0], 1
jne 0x43ef01
mov edx, dword [0x4aeae0]
push 1
push 0
push 0xffffffffffffffff
push 0x49cf30
push edx
call fcn.004780a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x49b8cd
push 0
push 0x49cf30
call fcn.0042f6a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x440c70
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x108
push esi
mov esi, eax
mov al, byte [esi]
test al, al
je 0x440c9f
mov cl, 0x3a
cmp byte [esi + 1], cl
jne 0x440c9f
cmp byte [esi + 2], 0
jne 0x440c9f
mov byte [esp + 4], al
mov byte [esp + 5], cl
mov word [esp + 6], 0x5c
lea esi, [esp + 4]
push esi
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
test eax, eax
jne 0x440cbf
cmp byte [0x4af894], al
je 0x440d04
call fcn.00409dc0
pop esi
add esp, 0x108
ret
cmp byte [0x4af894], 0
je 0x440d04
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
test eax, eax
je 0x440ce2
lea esi, [esp + 8]
jmp 0x440ce6
test esi, esi
je 0x440ced
mov eax, esi
call fcn.004503a0
mov ecx, dword [0x4aeae0]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8e8
push ecx
call fcn.004780a0
pop esi
add esp, 0x108
ret
Function at 0x4412f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x44131a
push 0xb7
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, esi
shr eax, 4
pop edi
and eax, 1
pop esi
ret
push 0x5c
push edi
call fcn.0048a473
mov esi, eax
add esp, 8
cmp esi, edi
jbe 0x441347
cmp byte [esi - 1], 0x3a
je 0x441347
push edi
mov byte [esi], 0
call fcn.004412f0
add esp, 4
mov byte [esi], 0x5c
test al, al
jne 0x441347
pop edi
pop esi
ret
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
jne 0x441366
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x441366
pop edi
xor eax, eax
pop esi
ret
pop edi
mov eax, 1
pop esi
ret
Function at 0x441f80
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 0x441fd0
push edi
push 1
mov ecx, ebp
call fcn.00401270
cmp byte [ebp + 0x17], 0
mov dword [esp + 0x24], eax
jne 0x441faa
mov esi, dword [ebp + 0xc]
jmp 0x441fac
mov esi, ebp
cmp byte [esi + 0x17], 1
jne 0x441fc7
test byte [esi + 0x15], 8
je 0x441fbf
mov eax, esi
call fcn.004011b0
mov ebx, dword [esi + 0xc]
add esi, 0xc
jmp 0x441ffe
mov esi, 0x4afab0
mov ebx, dword [esi]
jmp 0x441ffe
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
call fcn.00477b30
add esp, 0xc
test eax, eax
jne 0x441ffa
mov edx, dword [0x4aa988]
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 0x442046
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], edi
test eax, eax
je 0x44203b
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 [0x4aa988]
mov dword [ecx + 0x30], eax
cmp esi, 0xffffffff
je 0x442061
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test ebp, ebp
jne 0x442072
mov edx, dword [esp + 0x24]
push edx
call fcn.004883b8
add esp, 4
mov edx, dword [esp + 0x1c]
test edi, edi
sete al
movzx ecx, al
push ecx
push edx
call fcn.0042f740
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x442170
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 0x4421b0
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 0x4421b5
sub eax, edx
cmp eax, 0x104
jb 0x4421ca
mov eax, 0x103
push ebx
inc eax
push eax
lea edx, [esp + 0x14]
push esi
push edx
call fcn.004905c0
lea eax, [esp + 0x1c]
push eax
call fcn.0048a7b4
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 0x442236
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x442236
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
je 0x442235
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 0x4422a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [0x4ae218]
sub esp, 0x80
push esi
mov esi, eax
call fcn.00414de0
test esi, esi
je 0x442355
cmp byte [esi], 0
je 0x442355
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44230c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [0x4aa988]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x442389
mov eax, dword [0x4aeae0]
push 1
push 0
push esi
push 0x49cf30
push eax
call fcn.004780a0
pop esi
add esp, 0x80
ret
mov edx, dword [0x4aeae0]
mov ecx, dword [0x4aa988]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8e8
push edx
mov dword [ecx + 0x30], 0
call fcn.004780a0
mov edx, esi
lea eax, [esp + 4]
call fcn.00475e80
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4ae218]
push eax
call fcn.004780a0
pop esi
add esp, 0x80
ret
mov eax, dword [0x4aa988]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x442389
mov ecx, dword [0x4aeae0]
push 1
push 0
push 0xffffffffffffffff
push 0x49cf30
push ecx
call fcn.004780a0
pop esi
add esp, 0x80
ret
push 0x49b8cd
push 0
push 0x49cf30
mov ecx, edi
call fcn.0042f6a0
pop esi
add esp, 0x80
ret
Function at 0x442cf0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4ae218]
sub esp, 0x148
push ebx
push esi
call fcn.00414de0
test edi, edi
je 0x442e5e
cmp byte [edi], 0
je 0x442e5e
push 0
push 0
push 3
push 0
push 7
push 0x80
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x442d50
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test ebx, ebx
jne 0x442dbb
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x442d9c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [0x4aa988]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x442e92
mov edx, dword [0x4aeae0]
push 1
push 0
push 0xffffffffffffffff
push 0x49cf30
push edx
call fcn.004780a0
pop esi
pop ebx
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 0x442dc3
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [ebp + 0xc]
movzx esi, byte [edx]
test esi, 0xffffff80
jne 0x442deb
push 2
push esi
call fcn.0048962e
mov ecx, dword [esp + 0x10]
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
je 0x442deb
and esi, 0xffffffdf
mov edx, esi
movsx edx, dl
sub edx, 0x4b
je 0x442e02
sub edx, 2
jne 0x442e18
push edx
push 0x100000
jmp 0x442e09
push 0
push 0x400
push eax
push ecx
call fcn.00496a60
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov ecx, dword [0x4aeae0]
mov eax, dword [0x4aa988]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8e8
push ecx
mov dword [eax + 0x30], 0
call fcn.004780a0
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0x18
push edx
push eax
mov eax, dword [0x4ae218]
call fcn.00401130
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4aa988]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x442e92
mov ecx, dword [0x4aeae0]
push 1
push 0
push 0xffffffffffffffff
push 0x49cf30
push ecx
call fcn.004780a0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x49b8cd
push 0
push 0x49cf30
call fcn.0042f6a0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4501f0
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 0x450231
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x450231
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 0x45024c
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
jmp 0x450252
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test byte [0x4b0378], 1
mov ebx, eax
jne 0x450282
or dword [0x4b0378], 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 [0x4b0374], eax
jmp 0x450287
mov eax, dword [0x4b0374]
test ebx, ebx
jne 0x450384
test eax, eax
je 0x450384
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x450384
cmp byte [esp + 0x11c], 0
je 0x4502f9
push 0x5c
push edi
call fcn.0048a473
add esp, 8
test eax, eax
je 0x450384
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4502d0
sub ecx, esi
push ecx
inc eax
push eax
push edi
call fcn.00488cd0
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 0x45033d
sub esi, 2
push esi
lea edx, [esp + 0x18]
push edi
push edx
call fcn.0048a3af
add esp, 0xc
test eax, eax
jne 0x45033d
cmp byte [esi + edi], 0x5c
je 0x45035f
mov al, byte [esp + 0x10]
inc al
mov byte [esp + 0x10], al
cmp al, 0x5a
jle 0x450305
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.00488cd0
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 0x453560
Capabilities:
Delete file

Disassembly:
sub esp, 0x12c
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x453614
cmp byte [eax], bl
je 0x453614
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 0x453596
sub eax, edx
cmp eax, ebx
je 0x4535b0
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x4535b0
mov byte [eax], bl
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4535b7
sub eax, edx
mov byte [esp + eax + 0x29], bl
lea edx, [esp + 4]
lea eax, [esp + 0x28]
mov ecx, 0x4054
push edx
mov dword [esp + 0x1e], ebx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x1a], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 3
mov word [esp + 0x18], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
setne al
movzx ecx, al
push ecx
push esi
call fcn.0042f740
pop ebx
add esp, 0x12c
ret
mov edx, dword [0x4aa988]
test byte [edx + 0xe0], 1
jne 0x453640
mov eax, dword [0x4aeae0]
push 1
push ebx
push 0xffffffffffffffff
push 0x49cf30
push eax
call fcn.004780a0
pop ebx
add esp, 0x12c
ret
push 0x49b8cd
push ebx
push 0x49cf30
mov ecx, esi
call fcn.0042f6a0
pop ebx
add esp, 0x12c
ret
Function at 0x453660
Capabilities:
Get file version info

Disassembly:
mov ecx, dword [0x4ae218]
sub esp, 0x8c
push ebp
mov ebp, dword [esp + 0x94]
push edi
mov edi, eax
call fcn.00414de0
test edi, edi
je 0x4537d8
cmp byte [edi], 0
je 0x4537d8
push esi
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x4536f9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [0x4aa988]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x4536da
mov ecx, dword [0x4aeae0]
push 1
push esi
push 0xffffffffffffffff
push 0x49cf30
push ecx
call fcn.004780a0
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
push 0x49b8cd
push 0
push 0x49cf30
mov ecx, ebp
call fcn.0042f6a0
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
push ebx
push esi
call fcn.00488777
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x4537ad
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push 0x49de88
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x4537ad
mov ecx, dword [esp + 0x10]
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 + 0x30]
call fcn.00474f40
push ebx
call fcn.004883b8
mov eax, dword [0x4aeae0]
mov edx, dword [0x4aa988]
add esp, 0x18
push 1
push 0
push 0xffffffffffffffff
push 0x49b8e8
push eax
mov dword [edx + 0x30], 0
call fcn.004780a0
mov edx, dword [0x4ae218]
push 1
push 0
push 0xffffffffffffffff
mov ecx, edi
push ecx
push edx
call fcn.004780a0
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [0x4aa988]
push ebx
mov dword [ecx + 0x30], eax
call fcn.004883b8
add esp, 4
push ebp
call fcn.00432060
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
mov eax, dword [0x4aa988]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x45380f
mov edx, dword [0x4aeae0]
push 1
push 0
push 0xffffffffffffffff
push 0x49cf30
push edx
call fcn.004780a0
pop edi
pop ebp
add esp, 0x8c
ret 4
push 0x49b8cd
push 0
push 0x49cf30
mov ecx, ebp
call fcn.0042f6a0
pop edi
pop ebp
add esp, 0x8c
ret 4
Function at 0x453ac0
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 0x453ad7
xor al, al
pop ebx
add esp, 0x12c
ret
cmp byte [esp + 0x134], bl
jne 0x453af4
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 0x453b11
sub eax, edx
cmp eax, ebx
je 0x453b2b
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x453b2b
mov byte [eax], bl
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x453acd
test al, 0x10
je 0x453acd
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x453b46
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 0x454050
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 0x454071
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 0x45406b
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 0x4540d0
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 0x45412f
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 0x45412f
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x45412f
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 0x454260
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.00474dd0
add esp, 0x10
test eax, eax
je 0x4542cc
mov eax, ebx
call fcn.0040ed30
test al, al
je 0x4542bf
push 0x10
push 0
push ebx
call fcn.0048a14e
add esp, 0xc
mov ebp, eax
jmp 0x4542ce
push ebx
call fcn.00489681
add esp, 4
mov ebp, eax
jmp 0x4542ce
xor ebp, ebp
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_Process32Next]
test eax, eax
je 0x454380
test ebp, ebp
je 0x4542f0
cmp ebp, dword [esp + 0x18]
je 0x454393
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.0048ad56
lea eax, [esp + 0x254]
add esp, 0x14
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x454326
lea edi, [esp + 0x138]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x454337
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.004883a1
add esp, 8
test eax, eax
je 0x4543a6
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 0x4542e2
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
Function at 0x470350
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x498878
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov ecx, dword [ebx + 8]
push ebp
push esi
mov esi, dword [ebx + 4]
push edi
xor ebp, ebp
mov edx, ebx
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [ebx + 4], edi
mov dword [esp + 0x2c], ebp
cmp ecx, ebp
jle 0x470484
mov edi, edi
cmp eax, dword [esp + 0x3c]
jl 0x4703ef
mov eax, dword [0x4aa988]
mov ecx, 0x3a
mov esi, 0x4acf90
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x2c], ebp
mov dword [0x4af8a0], ebp
mov dword [0x4af8a4], ebp
cmp dword [0x4ae480], ebp
je 0x4703eb
mov eax, dword [0x4ababc]
cmp eax, ebp
je 0x4703df
mov eax, dword [eax]
cmp eax, ebp
jne 0x4703e4
mov eax, 0x49b8cd
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx]
lea eax, [eax + eax*2]
mov ecx, dword [ecx + eax*4]
mov eax, dword [esp + 0x34]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x3c]
push eax
push str.call
push ecx
xor eax, eax
call fcn.0046d310
add esp, 0x10
test eax, eax
je 0x47043f
cmp dword [esp + 0xc], ebp
jne 0x470460
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x1c]
jl 0x4703a0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [edx + 4], ecx
jmp 0x470487
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
xor eax, eax
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, 3
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret 0xc
mov dword [edx + 4], esi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebp
add esp, 0x24
ret 0xc