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

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, eax
mov eax, dword [0x4ae8b8]
push ebx
push eax
push str.__s_s
mov esi, 0x800
call fcn.00474600
mov esi, eax
lea ecx, [esi + 1]
add esp, 0xc
cmp ecx, 0x800
jg 0x43ae35
lea edx, [edi + 1]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43ae35
mov ecx, dword [esp + 0x14]
mov word [esi + edi], 0x22
mov eax, dword [0x4ae8b8]
pop edi
pop esi
mov dword [ecx], eax
mov al, 1
pop ebp
ret
push ebp
call fcn.0043b4a0
add esp, 4
test eax, eax
je 0x43ae83
push ebx
push ebp
push str.__s_s
mov esi, 0x800
call fcn.00474600
mov esi, eax
lea eax, [esi + 1]
add esp, 0xc
cmp eax, 0x800
jg 0x43ae83
lea ecx, [edi + 1]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43ae83
mov edx, dword [esp + 0x14]
mov word [esi + edi], 0x22
pop edi
pop esi
mov dword [edx], ebp
mov al, 1
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebp
ret

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

Disassembly:
mov eax, 0x1114
call fcn.00493cb0
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
lea ebp, [esp + 0x924]
push ecx
mov eax, ebp
mov dword [esp + 0x18], 0x49b871
call fcn.0043ade0
add esp, 8
test al, al
jne 0x43aece
pop edi
pop esi
pop ebp
add esp, 0x1114
ret
cmp byte [esp + 0x1124], 0
je 0x43af37
mov edx, dword [esp + 0x14]
push 0x4a0d50
push edx
push str.__s_s
mov esi, 0x800
lea edi, [esp + 0x12c]
call fcn.00474600
mov esi, eax
lea eax, [esi + 1]
add esp, 0xc
cmp eax, 0x800
jg 0x43af37
lea ecx, [esp + 0x121]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43af37
lea edx, [esp + 0x920]
mov byte [esp + esi + 0x120], 0x22
mov byte [esp + esi + 0x121], 0
mov ebp, edi
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0x4ae2a8
mov edx, ebp
call fcn.00430740
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebp
add esp, 0x1114
ret
Function at 0x43ead0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x11c
push ebx
push ebp
mov ebp, dword [0x4ad238]
push edi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0
mov eax, esi
call fcn.00413780
add esp, 0xc
mov byte [esp + 0x13], al
test al, al
jne 0x43eb6c
push 0
lea ebx, [esp + 0x18]
mov eax, esi
call fcn.0044f620
mov edi, eax
add esp, 4
test edi, edi
jne 0x43eb30
push 1
push eax
push 0xffffffffffffffff
push 0x49b871
push ebp
call fcn.00477500
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.0044f8c0
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.00476e50
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
mov edx, dword [esp + 0x12c]
movzx ebx, byte [edx]
test ebx, 0xffffff80
jne 0x43eb90
push 2
push ebx
call fcn.00488cce
add esp, 8
test eax, eax
je 0x43eb90
and bl, 0xdf
cmp bl, 0x50
je 0x43eba3
xor eax, eax
cmp bl, 0x54
setne al
dec eax
and eax, 2
jmp 0x43eba8
mov eax, 1
mov bl, byte [esp + 0x13]
push eax
call fcn.0044f810
add esp, 4
test al, al
mov eax, 0x4a0fe4
jne 0x43ebc3
mov eax, 0x4a0fe8
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.00477500
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4

Function at 0x43ebe0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x120
push esi
mov esi, ecx
mov ecx, dword [0x4ad238]
push edi
call fcn.004147f0
test esi, esi
je 0x43ecc3
cmp byte [esi], 0
je 0x43ecc3
push 0x103
lea eax, [esp + 0x24]
push esi
push eax
call fcn.0048a520
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 0x43ec30
sub eax, edx
cmp byte [esp + eax + 0x1f], 0x5c
je 0x43ec55
lea ecx, [eax + 1]
cmp ecx, 0x104
jae 0x43ecc3
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 0x43ecc3
cmp byte [ebp + 0xc], 0
je 0x43ec83
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
jmp 0x43ec8b
mov edi, dword [esp + 8]
mov esi, dword [esp + 0xc]
mov eax, dword [0x4adaf4]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d8
push eax
call fcn.00477500
mov eax, dword [0x4ad238]
shrd edi, esi, 0x14
push 0x18
shr esi, 0x14
push esi
push edi
call fcn.004010d0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x4a9978]
test byte [ecx + 0xe0], 1
jne 0x43ecf1
mov edx, dword [0x4adaf4]
push 1
push 0
push 0xffffffffffffffff
push 0x49cf28
push edx
call fcn.00477500
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x49b871
push 0
push 0x49cf28
call fcn.0042f3e0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x440a60
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 0x440a8f
mov cl, 0x3a
cmp byte [esi + 1], cl
jne 0x440a8f
cmp byte [esi + 2], 0
jne 0x440a8f
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 0x440aaf
cmp byte [0x4ae8c0], al
je 0x440af4
call fcn.00409890
pop esi
add esp, 0x108
ret
cmp byte [0x4ae8c0], 0
je 0x440af4
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x440ad2
lea esi, [esp + 8]
jmp 0x440ad6
test esi, esi
je 0x440add
mov eax, esi
call fcn.0044ffa0
mov ecx, dword [0x4adaf4]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d8
push ecx
call fcn.00477500
pop esi
add esp, 0x108
ret
Function at 0x4410f0
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 0x4411ab
cmp byte [ebx], 0
je 0x4411ab
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x441133
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.00489bed
mov edi, eax
add esp, 8
mov dword [ebp + 8], edi
cmp edi, ebx
jbe 0x441195
cmp byte [edi - 1], 0x3a
je 0x441195
cmp dword [ebp + 0xc], 0
je 0x44115a
mov esi, ebx
mov byte [edi], 0
jmp 0x441178
sub edi, ebx
lea eax, [edi + 1]
call fcn.00490f10
mov esi, esp
push edi
push ebx
push esi
call fcn.0048a520
mov byte [edi + esi], 0
mov edi, dword [ebp + 8]
add esp, 0xc
push esi
push esi
call fcn.004410f0
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x44118b
mov byte [edi], 0x5c
cmp byte [edi + 1], 0
je 0x4411b5
test al, al
je 0x4411b5
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 0x441df0
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 0x441e40
push edi
push 1
mov ecx, ebp
call fcn.00401210
cmp byte [ebp + 0x17], 0
mov dword [esp + 0x24], eax
jne 0x441e1a
mov esi, dword [ebp + 0xc]
jmp 0x441e1c
mov esi, ebp
cmp byte [esi + 0x17], 1
jne 0x441e37
test byte [esi + 0x15], 8
je 0x441e2f
mov eax, esi
call fcn.00401150
mov ebx, dword [esi + 0xc]
add esi, 0xc
jmp 0x441e6e
mov esi, 0x4aeabc
mov ebx, dword [esi]
jmp 0x441e6e
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
call fcn.00476f90
add esp, 0xc
test eax, eax
jne 0x441e6a
mov edx, dword [0x4a9978]
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 0x441eb6
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], edi
test eax, eax
je 0x441eab
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 [0x4a9978]
mov dword [ecx + 0x30], eax
cmp esi, 0xffffffff
je 0x441ed1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
jne 0x441ee2
mov edx, dword [esp + 0x24]
push edx
call fcn.004877a8
add esp, 4
mov edx, dword [esp + 0x1c]
test edi, edi
sete al
movzx ecx, al
push ecx
push edx
call fcn.0042f480
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x441f90
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov edi, eax
mov esi, ecx
call fcn.0040e840
test al, al
je 0x441fb6
push 0x10
push 0
push edi
call fcn.00489235
add esp, 0xc
jmp 0x441fbf
push edi
call fcn.00488d16
add esp, 4
mov ebx, 1
cmp eax, ebx
je 0x442026
call fcn.00453c40
test al, al
je 0x442026
mov eax, dword [0x4a9978]
test byte [eax + 0xe0], bl
jne 0x442001
mov ecx, dword [0x4adaf4]
push ebx
push 0
push 0xffffffffffffffff
push 0x49cf28
push ecx
call fcn.00477500
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
mov ecx, dword [esp + 0x120]
push 0x49b871
push 0
push 0x49cf28
call fcn.0042f3e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x442072
mov edx, dword [0x4a9978]
test byte [edx + 0xe0], bl
jne 0x442001
push ebx
push 0
push eax
mov eax, dword [0x4adaf4]
push 0x49cf28
push eax
call fcn.00477500
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
mov esi, dword [esp + 0x124]
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x442080
sub eax, edx
cmp eax, 0x104
jb 0x442095
mov eax, 0x103
inc eax
push eax
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.0048fde0
lea edx, [esp + 0x20]
add esp, 0xc
push edx
call fcn.00489f2e
add esp, 4
push 0xa
lea eax, [esp + 0x18]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x442101
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x442101
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x442101
push 0
lea ecx, [esp + 0x14]
push ecx
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
jmp 0x442103
xor bl, bl
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x120]
test bl, bl
sete dl
movzx eax, dl
push eax
push ecx
call fcn.0042f480
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
Function at 0x442130
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [0x4ad238]
sub esp, 0x80
push esi
mov esi, eax
call fcn.004147f0
test esi, esi
je 0x4421e5
cmp byte [esi], 0
je 0x4421e5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44219c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a9978]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x442219
mov eax, dword [0x4adaf4]
push 1
push 0
push esi
push 0x49cf28
push eax
call fcn.00477500
pop esi
add esp, 0x80
ret
mov edx, dword [0x4adaf4]
mov ecx, dword [0x4a9978]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d8
push edx
mov dword [ecx + 0x30], 0
call fcn.00477500
mov edx, esi
lea eax, [esp + 4]
call fcn.00475540
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4ad238]
push eax
call fcn.00477500
pop esi
add esp, 0x80
ret
mov eax, dword [0x4a9978]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x442219
mov ecx, dword [0x4adaf4]
push 1
push 0
push 0xffffffffffffffff
push 0x49cf28
push ecx
call fcn.00477500
pop esi
add esp, 0x80
ret
push 0x49b871
push 0
push 0x49cf28
mov ecx, edi
call fcn.0042f3e0
pop esi
add esp, 0x80
ret
Function at 0x442b60
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4ad238]
sub esp, 0x148
push ebx
push esi
call fcn.004147f0
test edi, edi
je 0x442cce
cmp byte [edi], 0
je 0x442cce
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 0x442bc0
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 0x442c2b
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x442c0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a9978]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x442d02
mov edx, dword [0x4adaf4]
push 1
push 0
push 0xffffffffffffffff
push 0x49cf28
push edx
call fcn.00477500
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 0x442c33
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [ebp + 0xc]
movzx esi, byte [edx]
test esi, 0xffffff80
jne 0x442c5b
push 2
push esi
call fcn.00488cce
mov ecx, dword [esp + 0x10]
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
je 0x442c5b
and esi, 0xffffffdf
mov edx, esi
movsx edx, dl
sub edx, 0x4b
je 0x442c72
sub edx, 2
jne 0x442c88
push edx
push 0x100000
jmp 0x442c79
push 0
push 0x400
push eax
push ecx
call fcn.00495f50
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov ecx, dword [0x4adaf4]
mov eax, dword [0x4a9978]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d8
push ecx
mov dword [eax + 0x30], 0
call fcn.00477500
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0x18
push edx
push eax
mov eax, dword [0x4ad238]
call fcn.004010d0
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4a9978]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x442d02
mov ecx, dword [0x4adaf4]
push 1
push 0
push 0xffffffffffffffff
push 0x49cf28
push ecx
call fcn.00477500
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x49b871
push 0
push 0x49cf28
call fcn.0042f3e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44fdf0
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 0x44fe31
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x44fe31
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 0x44fe4c
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
jmp 0x44fe52
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test byte [0x4af378], 1
mov ebx, eax
jne 0x44fe82
or dword [0x4af378], 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 [0x4af374], eax
jmp 0x44fe87
mov eax, dword [0x4af374]
test ebx, ebx
jne 0x44ff84
test eax, eax
je 0x44ff84
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x44ff84
cmp byte [esp + 0x11c], 0
je 0x44fef9
push 0x5c
push edi
call fcn.00489bed
add esp, 8
test eax, eax
je 0x44ff84
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x44fed0
sub ecx, esi
push ecx
inc eax
push eax
push edi
call fcn.00488370
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 0x44ff3d
sub esi, 2
push esi
lea edx, [esp + 0x18]
push edi
push edx
call fcn.00489b29
add esp, 0xc
test eax, eax
jne 0x44ff3d
cmp byte [esi + edi], 0x5c
je 0x44ff5f
mov al, byte [esp + 0x10]
inc al
mov byte [esp + 0x10], al
cmp al, 0x5a
jle 0x44ff05
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.00488370
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 0x453150
Capabilities:
Delete file

Disassembly:
sub esp, 0x12c
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x453204
cmp byte [eax], bl
je 0x453204
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 0x453186
sub eax, edx
cmp eax, ebx
je 0x4531a0
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x4531a0
mov byte [eax], bl
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4531a7
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.0042f480
pop ebx
add esp, 0x12c
ret
mov edx, dword [0x4a9978]
test byte [edx + 0xe0], 1
jne 0x453230
mov eax, dword [0x4adaf4]
push 1
push ebx
push 0xffffffffffffffff
push 0x49cf28
push eax
call fcn.00477500
pop ebx
add esp, 0x12c
ret
push 0x49b871
push ebx
push 0x49cf28
mov ecx, esi
call fcn.0042f3e0
pop ebx
add esp, 0x12c
ret
Function at 0x453250
Capabilities:
Get file version info

Disassembly:
mov ecx, dword [0x4ad238]
sub esp, 0x8c
push ebp
mov ebp, dword [esp + 0x94]
push edi
mov edi, eax
call fcn.004147f0
test edi, edi
je 0x4533c8
cmp byte [edi], 0
je 0x4533c8
push esi
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x4532e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a9978]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x4532ca
mov ecx, dword [0x4adaf4]
push 1
push esi
push 0xffffffffffffffff
push 0x49cf28
push ecx
call fcn.00477500
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
push 0x49b871
push 0
push 0x49cf28
mov ecx, ebp
call fcn.0042f3e0
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
push ebx
push esi
call fcn.00487b67
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 0x45339d
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push 0x49de60
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x45339d
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.00474600
push ebx
call fcn.004877a8
mov eax, dword [0x4adaf4]
mov edx, dword [0x4a9978]
add esp, 0x18
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d8
push eax
mov dword [edx + 0x30], 0
call fcn.00477500
mov edx, dword [0x4ad238]
push 1
push 0
push 0xffffffffffffffff
mov ecx, edi
push ecx
push edx
call fcn.00477500
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a9978]
push ebx
mov dword [ecx + 0x30], eax
call fcn.004877a8
add esp, 4
push ebp
call fcn.00431de0
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
mov eax, dword [0x4a9978]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x4533ff
mov edx, dword [0x4adaf4]
push 1
push 0
push 0xffffffffffffffff
push 0x49cf28
push edx
call fcn.00477500
pop edi
pop ebp
add esp, 0x8c
ret 4
push 0x49b871
push 0
push 0x49cf28
mov ecx, ebp
call fcn.0042f3e0
pop edi
pop ebp
add esp, 0x8c
ret 4
Function at 0x453c40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x144
push 0x2a
push esi
call fcn.00488781
add esp, 8
test eax, eax
jne 0x453c78
push 0x3f
push esi
call fcn.00488781
add esp, 8
test eax, eax
jne 0x453c78
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 0x453c91
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 0x453cb0
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 0x453cd1
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 0x453ccb
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 0x453d30
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 0x453d8f
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 0x453d8f
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x453d8f
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