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

Disassembly:
sub esp, 0x108
push ebp
push edi
mov edi, dword [esp + 0x114]
mov ebp, ecx
test edi, edi
je 0x43f0f1
cmp byte [edi], 0
je 0x43f0f1
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43efe7
mov ecx, dword [0x4ec48c]
shr eax, 4
not al
and al, 1
movzx edx, al
push edx
push ebp
mov dword [ecx + 0x30], 0xb7
call fcn.0042d120
pop edi
pop ebp
add esp, 0x108
ret 4
push ebx
push 0x5c
push edi
call fcn.004bc514
mov ebx, eax
add esp, 8
cmp ebx, edi
jbe 0x43f0b9
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43f002
sub eax, edx
cmp eax, 0x104
jb 0x43f068
mov eax, dword [0x4ec48c]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x6f
jne 0x43f049
mov eax, dword [0x4f13d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d9220
push eax
call fcn.004a5c20
pop ebx
pop edi
pop ebp
add esp, 0x108
ret 4
push 0x4d6959
push 0
push 0x4d9220
mov ecx, ebp
call fcn.0042d070
pop ebx
pop edi
pop ebp
add esp, 0x108
ret 4
push esi
mov esi, ebx
sub esi, edi
push esi
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.004bd1c0
add esp, 0xc
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
mov byte [esp + esi + 0x18], 0
call fcn.0043ef90
cmp byte [ebx + 1], 0
pop esi
je 0x43f0a8
mov ecx, dword [0x4f13d8]
push 0
push 1
call fcn.004016d0
cmp byte [eax], 0x31
jne 0x43f0b9
pop ebx
pop edi
mov eax, 1
pop ebp
add esp, 0x108
ret 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
sete al
mov byte [esp + 0xc], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0xc]
mov ecx, dword [0x4ec48c]
push edx
push ebp
mov dword [ecx + 0x30], eax
call fcn.0042d120
pop ebx
pop edi
pop ebp
add esp, 0x108
ret 4
mov eax, dword [0x4ec48c]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x43f127
mov eax, dword [0x4f13d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d9220
push eax
call fcn.004a5c20
pop edi
pop ebp
add esp, 0x108
ret 4
push 0x4d6959
push 0
push 0x4d9220
call fcn.0042d070
pop edi
pop ebp
add esp, 0x108
ret 4
Function at 0x43fd60
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 0x43fdb0
push edi
push 1
mov ecx, ebp
call fcn.004016d0
cmp byte [ebp + 0x17], 0
mov dword [esp + 0x24], eax
jne 0x43fd8a
mov esi, dword [ebp + 0xc]
jmp 0x43fd8c
mov esi, ebp
cmp byte [esi + 0x17], 1
jne 0x43fda7
test byte [esi + 0x15], 8
je 0x43fd9f
mov eax, esi
call fcn.004015f0
mov ebx, dword [esi + 0xc]
add esi, 0xc
jmp 0x43fdde
mov esi, 0x4f3e84
mov ebx, dword [esi]
jmp 0x43fdde
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
call fcn.004a56a0
add esp, 0xc
test eax, eax
jne 0x43fdda
mov edx, dword [0x4ec48c]
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 0x43fe26
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], edi
test eax, eax
je 0x43fe1b
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 [0x4ec48c]
mov dword [ecx + 0x30], eax
cmp esi, 0xffffffff
je 0x43fe41
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
jne 0x43fe52
mov edx, dword [esp + 0x24]
push edx
call fcn.004ba14c
add esp, 4
mov edx, dword [esp + 0x1c]
test edi, edi
sete al
movzx ecx, al
push ecx
push edx
call fcn.0042d120
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x43fe80
Capabilities:
Delete file

Disassembly:
sub esp, 8
push edi
mov edi, 0x4de0a0
mov eax, esi
call fcn.004099e0
test eax, eax
jne 0x43fece
cmp byte [esi], al
je 0x43fece
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
sete al
mov byte [esp + 8], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 8]
mov ecx, dword [0x4ec48c]
push edx
push ebx
mov dword [ecx + 0x30], eax
call fcn.0042d120
pop edi
add esp, 8
ret
push 0
push 0
push 0x43fe70
push 0
push 1
push esi
mov ecx, ebx
call fcn.00440520
mov ecx, dword [0x4ec48c]
xor eax, eax
cmp dword [ecx + 0xe4], eax
pop edi
sete al
add esp, 8
ret
Function at 0x440280
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [0x4f0b10]
sub esp, 0x80
push esi
mov esi, eax
call fcn.0041a480
test esi, esi
je 0x440335
cmp byte [esi], 0
je 0x440335
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4402ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4ec48c]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x440369
mov eax, dword [0x4f13d8]
push 1
push 0
push esi
push 0x4d9220
push eax
call fcn.004a5c20
pop esi
add esp, 0x80
ret
mov edx, dword [0x4f13d8]
mov ecx, dword [0x4ec48c]
push 1
push 0
push 0xffffffffffffffff
push 0x4d69c8
push edx
mov dword [ecx + 0x30], 0
call fcn.004a5c20
mov edx, esi
lea eax, [esp + 4]
call fcn.004a3e60
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4f0b10]
push eax
call fcn.004a5c20
pop esi
add esp, 0x80
ret
mov eax, dword [0x4ec48c]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x440369
mov ecx, dword [0x4f13d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d9220
push ecx
call fcn.004a5c20
pop esi
add esp, 0x80
ret
push 0x4d6959
push 0
push 0x4d9220
mov ecx, edi
call fcn.0042d070
pop esi
add esp, 0x80
ret
Function at 0x440ca0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4f0b10]
sub esp, 0x148
push ebx
push esi
call fcn.0041a480
test edi, edi
je 0x440e0e
cmp byte [edi], 0
je 0x440e0e
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 0x440d00
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 0x440d6b
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x440d4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4ec48c]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x440e42
mov edx, dword [0x4f13d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d9220
push edx
call fcn.004a5c20
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 0x440d73
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [ebp + 0xc]
movzx esi, byte [edx]
test esi, 0xffffff80
jne 0x440d9b
push 2
push esi
call fcn.004bb66e
mov ecx, dword [esp + 0x10]
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
je 0x440d9b
and esi, 0xffffffdf
mov edx, esi
movsx edx, dl
sub edx, 0x4b
je 0x440db2
sub edx, 2
jne 0x440dc8
push edx
push 0x100000
jmp 0x440db9
push 0
push 0x400
push eax
push ecx
call fcn.004c9150
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov ecx, dword [0x4f13d8]
mov eax, dword [0x4ec48c]
push 1
push 0
push 0xffffffffffffffff
push 0x4d69c8
push ecx
mov dword [eax + 0x30], 0
call fcn.004a5c20
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0x18
push edx
push eax
mov eax, dword [0x4f0b10]
call fcn.00401570
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4ec48c]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x440e42
mov ecx, dword [0x4f13d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d9220
push ecx
call fcn.004a5c20
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x4d6959
push 0
push 0x4d9220
call fcn.0042d070
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44d280
Capabilities:
Log keystrokes via polling

Disassembly:
test bl, bl
jne 0x44d287
xor al, al
ret
mov eax, dword [esp + 4]
dec eax
je 0x44d2af
dec eax
je 0x44d2a1
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 0x44d2bc
cmp bl, 3
jne 0x44d2c3
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x44d2e9
cmp dword [0x4f0d0c], 0
je 0x44d2d9
movzx ecx, bl
mov al, byte [ecx + 0x4f0bf8]
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 [0x4f0d08], 0
je 0x44d318
xor ecx, ecx
xor edx, edx
mov al, bl
call fcn.004123d0
test al, al
je 0x44d30b
push 1
call fcn.00412200
add esp, 4
movzx eax, bl
mov al, byte [eax + 0x4f0bf8]
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 0x44d860
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4cc48e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
push esi
push edi
mov esi, edx
push esi
push 0
mov edi, ecx
push 0x410
mov byte [edi], 0
call ebx
mov ebp, eax
test ebp, ebp
jne 0x44d8af
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
je 0x44da0b
cmp byte [esp + 0x128], 0
push 0x104
push edi
push 0
push ebp
je 0x44d8ca
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
jmp 0x44d8d0
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test byte [0x4f4a10], 1
mov ebx, eax
jne 0x44d928
or dword [0x4f4a10], 1
push 0x4de728
mov dword [esp + 0x124], 0
call fcn.0049be50
add esp, 4
push eax
push str.__07_
call fcn.0049be50
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4f4a0c], eax
mov dword [esp + 0x120], 0xffffffff
jmp 0x44d92d
mov eax, dword [0x4f4a0c]
test ebx, ebx
jne 0x44da02
test eax, eax
je 0x44da02
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x44da02
cmp byte [esp + 0x128], 0
je 0x44d989
push 0x5c
push edi
call fcn.004bc514
add esp, 8
test eax, eax
je 0x44da02
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x44d972
sub ecx, esi
push ecx
inc eax
push eax
push edi
call fcn.004bad10
add esp, 0xc
jmp 0x44da02
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 0x44d9cd
sub esi, 2
push esi
lea edx, [esp + 0x18]
push edi
push edx
call fcn.004bc8b3
add esp, 0xc
test eax, eax
jne 0x44d9cd
cmp byte [esi + edi], 0x5c
je 0x44d9dd
mov al, byte [esp + 0x10]
inc al
mov byte [esp + 0x10], al
cmp al, 0x5a
jle 0x44d995
jmp 0x44da02
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.004bad10
add esp, 0xc
add ebx, 2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x450940
Capabilities:
Delete file

Disassembly:
sub esp, 0x12c
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x4509f4
cmp byte [eax], bl
je 0x4509f4
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 0x450976
sub eax, edx
cmp eax, ebx
je 0x450990
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x450990
mov byte [eax], bl
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x450997
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.0042d120
pop ebx
add esp, 0x12c
ret
mov edx, dword [0x4ec48c]
test byte [edx + 0xe0], 1
jne 0x450a20
mov eax, dword [0x4f13d8]
push 1
push ebx
push 0xffffffffffffffff
push 0x4d9220
push eax
call fcn.004a5c20
pop ebx
add esp, 0x12c
ret
push 0x4d6959
push ebx
push 0x4d9220
mov ecx, esi
call fcn.0042d070
pop ebx
add esp, 0x12c
ret
Function at 0x450a40
Capabilities:
Get file version info

Disassembly:
mov ecx, dword [0x4f0b10]
sub esp, 0x8c
push ebp
mov ebp, dword [esp + 0x94]
push edi
mov edi, eax
call fcn.0041a480
test edi, edi
je 0x450bb8
cmp byte [edi], 0
je 0x450bb8
push esi
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x450ad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4ec48c]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x450aba
mov ecx, dword [0x4f13d8]
push 1
push esi
push 0xffffffffffffffff
push 0x4d9220
push ecx
call fcn.004a5c20
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
push 0x4d6959
push 0
push 0x4d9220
mov ecx, ebp
call fcn.0042d070
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
push ebx
push esi
call fcn.004ba2ed
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 0x450b8d
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push 0x4d9ad4
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x450b8d
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.004a2f10
push ebx
call fcn.004ba14c
mov eax, dword [0x4f13d8]
mov edx, dword [0x4ec48c]
add esp, 0x18
push 1
push 0
push 0xffffffffffffffff
push 0x4d69c8
push eax
mov dword [edx + 0x30], 0
call fcn.004a5c20
mov edx, dword [0x4f0b10]
push 1
push 0
push 0xffffffffffffffff
mov ecx, edi
push ecx
push edx
call fcn.004a5c20
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4ec48c]
push ebx
mov dword [ecx + 0x30], eax
call fcn.004ba14c
add esp, 4
push ebp
call fcn.0042fa00
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
mov eax, dword [0x4ec48c]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x450bef
mov edx, dword [0x4f13d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d9220
push edx
call fcn.004a5c20
pop edi
pop ebp
add esp, 0x8c
ret 4
push 0x4d6959
push 0
push 0x4d9220
mov ecx, ebp
call fcn.0042d070
pop edi
pop ebp
add esp, 0x8c
ret 4
Function at 0x450c10
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
sub esp, 0x234
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0x104
push edx
call esi
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x450c36
sub eax, edx
je 0x450c4e
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x450c4e
mov byte [eax], cl
mov edx, dword [esp + 0x23c]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x134]
push ecx
push 0x104
push edx
call esi
lea eax, [esp + 0x130]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x450c74
sub eax, edx
je 0x450c92
cmp byte [esp + eax + 0x12f], 0x5c
lea eax, [esp + eax + 0x12f]
jne 0x450c92
mov byte [eax], cl
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x28]
push eax
call esi
cmp eax, 0xffffffff
je 0x450cc5
test al, 0x10
je 0x450cc5
lea ecx, [esp + 0x130]
push ecx
call esi
cmp eax, 0xffffffff
je 0x450ccf
test al, 0x10
je 0x450ccf
cmp byte [esp + 0x240], 0
jne 0x450ceb
xor al, al
pop esi
add esp, 0x234
ret
lea edx, [esp + 0x130]
push edx
call fcn.00451620
add esp, 4
test al, al
jne 0x450ceb
pop esi
add esp, 0x234
ret
lea eax, [esp + 0x28]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x450cf0
mov ecx, dword [str..]
mov dl, byte [0x4dea70]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x450d10
sub eax, edx
mov byte [esp + eax + 0x29], cl
lea eax, [esp + 0x130]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x450d27
sub eax, edx
mov byte [esp + eax + 0x131], cl
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
lea eax, [esp + 0x28]
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x130]
mov edx, 0x614
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], 2
mov word [esp + 0x1c], dx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
pop esi
add esp, 0x234
ret
Function at 0x450da0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x234
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0x104
push edx
call esi
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x450dc6
sub eax, edx
je 0x450dde
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x450dde
mov byte [eax], cl
mov edx, dword [esp + 0x23c]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x134]
push ecx
push 0x104
push edx
call esi
lea eax, [esp + 0x130]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x450e04
sub eax, edx
je 0x450e22
cmp byte [esp + eax + 0x12f], 0x5c
lea eax, [esp + eax + 0x12f]
jne 0x450e22
mov byte [eax], cl
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x28]
push eax
call esi
cmp eax, 0xffffffff
je 0x450e55
test al, 0x10
je 0x450e55
lea ecx, [esp + 0x130]
push ecx
call esi
cmp eax, 0xffffffff
je 0x450e5f
test al, 0x10
je 0x450e55
cmp edi, 1
je 0x450e5f
cmp edi, 2
je 0x450e5f
xor al, al
pop esi
add esp, 0x234
ret
lea edx, [esp + 0x130]
push edx
lea edx, [esp + 0x2c]
call fcn.00451730
add esp, 4
test al, al
je 0x450ea7
lea eax, [esp + 0x130]
push 1
push eax
lea edx, [esp + 0x30]
call fcn.00450c10
add esp, 8
test al, al
je 0x450e55
push 1
lea edx, [esp + 0x2c]
call fcn.00450f50
add esp, 4
pop esi
add esp, 0x234
ret
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x450eb0
sub eax, edx
mov byte [esp + eax + 0x29], cl
lea eax, [esp + 0x130]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x450ec7
sub eax, edx
mov byte [esp + eax + 0x131], cl
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
lea ecx, [esp + 0x28]
lea edx, [esp + 0x130]
mov eax, 0x614
mov dword [esp + 8], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 1
mov word [esp + 0x18], ax
cmp edi, 2
jne 0x450f32
mov ecx, 0x615
mov word [esp + 0x18], cx
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
pop esi
add esp, 0x234
ret
Function at 0x450f50
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
sub esp, 0x12c
push ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x28]
lea edx, [eax + 1]
xor ebx, ebx
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x450f76
sub eax, edx
cmp eax, ebx
je 0x450f90
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x450f90
mov byte [eax], bl
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x450fa4
test al, 0x10
jne 0x450fae
xor al, al
pop ebx
add esp, 0x12c
ret
cmp byte [esp + 0x134], bl
jne 0x450fcf
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
pop ebx
add esp, 0x12c
ret
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x450fd6
sub eax, edx
mov byte [esp + eax + 0x29], bl
lea ecx, [esp + 4]
lea edx, [esp + 0x28]
mov eax, 0x614
push ecx
mov dword [esp + 0x10], edx
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], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
pop ebx
add esp, 0x12c
ret
Function at 0x451620
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4516a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x45168e
dec eax
jne 0x4516b0
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x451647
sub eax, edx
cmp eax, 0x104
ja 0x4516b0
inc eax
call fcn.004c41d0
mov esi, esp
mov edx, esi
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x451665
push 0x5c
push esi
call fcn.004bc514
add esp, 8
test eax, eax
je 0x4516b0
push esi
mov byte [eax], 0
call fcn.00451620
add esp, 4
test al, al
je 0x4516b0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne al
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
test al, 0x10
je 0x4516b0
mov al, 1
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
xor al, al
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret

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

Disassembly:
sub esp, 0x144
push 0x2a
push esi
call fcn.004bb121
add esp, 8
test eax, eax
jne 0x4516f8
push 0x3f
push esi
call fcn.004bb121
add esp, 8
test eax, eax
jne 0x4516f8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
add esp, 0x144
ret
lea eax, [esp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x451711
xor al, al
add esp, 0x144
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
add esp, 0x144
ret

Function at 0x451840
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 0x451861
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 0x45185b
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 0x4518c0
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
mov esi, eax
lea eax, [esp + 4]
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 0x451911
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x451911
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x451911
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ecx
ret