joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4be540
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x53b008]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], 0
xor bl, bl
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4be69e
cmp dword [eax], 0xffffffff
je 0x4be69e
push 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push 1
lea ecx, [esp + 0x14]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4be69e
cmp dword [esp + 0xc], 1
jne 0x4be69e
lea eax, [esp + 9]
mov ecx, esi
push eax
call fcn.004be4d0
test al, al
je 0x4be69e
lea eax, [esp + 0xa]
mov ecx, esi
push eax
call fcn.004be4d0
test al, al
je 0x4be5f2
lea eax, [esp + 0xb]
mov ecx, esi
push eax
call fcn.004be4d0
test al, al
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
mov eax, dword [esp + 8]
cmp al, 0xff
jne 0x4be631
cmp ah, 0xfe
jne 0x4be690
test bl, bl
je 0x4be623
cmp byte [esp + 0xa], 0
jne 0x4be623
cmp byte [esp + 0xb], 0
jne 0x4be623
mov edx, 4
mov ecx, 0xc
mov dword [esi], edx
jmp 0x4be698
mov edx, 2
mov ecx, 9
mov dword [esi], edx
jmp 0x4be698
cmp al, 0xfe
jne 0x4be647
cmp ah, 0xff
jne 0x4be690
mov dword [esi], 2
mov ecx, 8
jmp 0x4be698
cmp al, 0xef
jne 0x4be66d
cmp ah, 0xbb
jne 0x4be690
cmp byte [esp + 0xa], 0xbf
jne 0x4be665
mov edx, 3
mov ecx, 6
mov dword [esi], edx
jmp 0x4be698
xor ecx, ecx
xor edx, edx
mov dword [esi], edx
jmp 0x4be698
test al, al
jne 0x4be690
test ah, ah
jne 0x4be690
cmp byte [esp + 0xa], 0xfe
jne 0x4be690
cmp byte [esp + 0xb], 0xff
jne 0x4be690
mov dword [esi], 4
mov ecx, 0xb
jmp 0x4be698
mov dword [esi], 0
xor ecx, ecx
mov dword [esi + 8], ecx
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x10]
pop esi
pop ebx
xor ecx, esp
call fcn.004e9681
add esp, 0xc
ret
Function at 0x4be750
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503dbb
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x53b008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x4be789
call fcn.004be8f0
cmp byte [0x53ce48], 0
jne 0x4be79c
mov eax, 0x80000001
jmp 0x4be8cc
mov eax, dword [esi]
test eax, eax
jne 0x4be81c
push 8
call fcn.004e9692
mov edi, eax
add esp, 4
mov dword [ebp - 0x138], edi
mov dword [ebp - 4], 0
push 1
call fcn.004e9692
add esp, 4
mov dword [edi + 4], eax
mov byte [eax], 0
lea eax, [ebp - 0x130]
push 0x118
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x134], 0x11c
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4be80b
cmp dword [ebp - 0x130], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4be8bb
call fcn.004ba5d0
test al, al
jne 0x4be856
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.004bade0
test al, al
je 0x4be8bb
mov ecx, dword [esi]
add ecx, 4
call fcn.004ba0b0
call fcn.004ba5d0
test al, al
je 0x4be8bb
push str.Advapi32.dll
lea ecx, [ebp - 0x150]
call fcn.0040a730
mov dword [ebp - 4], 2
lea eax, [ebp - 0x150]
push eax
call fcn.004bcdd0
mov ecx, eax
call fcn.004bce90
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.0040b220
test edi, edi
je 0x4be8bb
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4be8bb
push dword [esi]
push dword [ebp + 8]
call eax
test eax, eax
je 0x4be8bb
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4be8ca
mov dword [eax], 0x80000001
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e9681
mov esp, ebp
pop ebp
ret 4
Function at 0x4beaa0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x63c]
sub esp, 0x63c
push 0xffffffffffffffff
push 0x503e70
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x53b008]
xor eax, ebp
mov dword [ebp + 0x638], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0x644]
xor eax, eax
mov ebx, dword [ebp + 0x648]
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 7
mov word [ebp], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
mov eax, dword [0x53cea0]
mov dword [ebp - 0x10], 0x53cea0
test eax, eax
je 0x4beb24
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 1
mov ecx, dword [0x53b2e8]
test ecx, ecx
je 0x4beb4a
cmp dword [0x53b2ec], 8
mov eax, 0x53b2d8
cmovae eax, dword [0x53b2d8]
jmp 0x4bec05
push 0x20c
lea eax, [ebp + 0x42c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x42c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x4becb4
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x636], ax
lea eax, [ebp + 0x18]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x18]
push 0x208
push eax
lea eax, [ebp + 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x4bebe4
test eax, eax
je 0x4bebe4
add eax, eax
cmp eax, 0x412
jae 0x4bed07
xor ecx, ecx
mov word [ebp + eax + 0x18], cx
lea ecx, [ebp + 0x18]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bebd4
lea eax, [ebp + 0x18]
jmp 0x4bec01
lea ecx, [ebp + 0x42c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bebf0
lea eax, [ebp + 0x42c]
sub ecx, edx
sar ecx, 1
push ecx
push eax
lea ecx, [ebp]
call fcn.0040b290
mov byte [ebp - 4], 0
mov eax, dword [0x53cea0]
test eax, eax
je 0x4bec23
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
push edi
lea eax, [ebp]
mov dword [ebp - 0x10], 0
push eax
mov ecx, esi
call fcn.004bea40
test al, al
je 0x4bec42
mov bl, 1
jmp 0x4becd1
push 0x20c
lea eax, [ebp + 0x42c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x42c]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x4beccf
xor eax, eax
lea edx, [ebp + 0x42c]
mov word [ebp + 0x636], ax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4bec84
sub edx, ecx
lea eax, [ebp + 0x42c]
sar edx, 1
lea ecx, [ebp]
push edx
push eax
call fcn.0040b290
push ebx
push edi
lea eax, [ebp]
mov ecx, esi
push eax
call fcn.004bea40
mov bl, al
jmp 0x4becd1
mov byte [ebp - 4], 0
mov eax, dword [0x53cea0]
test eax, eax
je 0x4becc8
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x10], 0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.0040b220
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x638]
xor ecx, ebp
call fcn.004e9681
lea esp, [ebp + 0x63c]
pop ebp
ret 8
call fcn.004e9e20
int3
Function at 0x4bf7d0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb6a8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x53b008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 8]
test edi, edi
jne 0x4bf813
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add edi, 0x20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x10], edi
je 0x4bf82f
mov eax, dword [edi]
test eax, eax
je 0x4bf82f
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x4bf894
push 1
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x4bf370
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x4bf8c9
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0xffffffffffffffff
push ebx
call eax
sub eax, 1
jne 0x4bf88c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.004bf530
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4bf8b5
mov eax, dword [edi]
test eax, eax
je 0x4bf8ae
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x10], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x4bf8e1
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x4bf876
mov bl, 1
jmp 0x4bf896
Function at 0x4c0eb0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50424f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x53b008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.0040b220
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.0040b220
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.0040b220
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.0040b220
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.0040b220
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0040b220
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4c0f40
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50424f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x53b008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.0040b220
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.0040b220
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.0040b220
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.0040b220
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.0040b220
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0040b220
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4c43b0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50471f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x53b008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0040be30
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.0040be30
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.0040be30
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.0040be30
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.0040be30
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.0040be30
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4c7270
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x53b008]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x4c72f2
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x4c72f2
test ecx, ecx
je 0x4c72ee
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x4c72b0
xor eax, eax
jmp 0x4c72f7
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4c7301
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e9681
add esp, 0xc
ret 0xc
Function at 0x4cc1f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x53b008]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x4cc287
cmp dword [esp + 8], 6
jb 0x4cc287
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.004e9681
add esp, 0x118
ret

Function at 0x4cc2a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505680
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x53b008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xc
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
push str.wintrust.dll
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040b290
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.004bcdd0
mov ecx, eax
call fcn.004bce90
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040b220
push 0xb
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x40]
push str.crypt32.dll
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.0040b290
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.004bcdd0
mov ecx, eax
call fcn.004bce90
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040b220
test ebx, ebx
je 0x4cc3fd
test esi, esi
je 0x4cc3fd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push ebx
call esi
push str.CryptCATAdminAcquireContext
push ebx
mov dword [edi + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push ebx
mov dword [edi + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push ebx
mov dword [edi + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push ebx
mov dword [edi + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push ebx
mov dword [edi + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push ebx
mov dword [edi + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.WinVerifyTrust
push ebx
mov dword [edi + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x28], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ccc60
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5056a8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x53b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
and edi, 0xffffb1af
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4ccc9f
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push eax
call ebx
test eax, eax
je 0x4cccb1
mov al, 1
jmp 0x4ccd0e
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.004cd7c0
test al, al
je 0x4cccfb
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x4cccfb
mov bl, 1
jmp 0x4cccfd
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040b220
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e9681
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5056a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x53b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4ccd66
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4ccdca
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.004cd7c0
test al, al
je 0x4ccdbb
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040b220
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e9681
mov esp, ebp
pop ebp
ret
Function at 0x4ccdf0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5056e0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x53b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x4cce28
mov ecx, dword [edi]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4cce32
mov eax, dword [esi]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4cceec
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x41], al
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.004cd7c0
movzx ecx, byte [ebp - 0x41]
test al, al
mov edx, 1
mov dword [ebp - 0x18], 0
cmovne ecx, edx
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], dl
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.004cd7c0
test al, al
jne 0x4cceaf
cmp byte [ebp - 0x48], al
je 0x4ccef0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4ccef0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040b220
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040b220
mov al, 1
jmp 0x4ccf0d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040b220
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040b220
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e9681
mov esp, ebp
pop ebp
ret
Function at 0x4ccf30
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505728
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x53b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4ccf69
mov ecx, dword [esi]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4ccf73
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0xb
push ecx
push eax
call ebx
test eax, eax
je 0x4ccf8a
mov al, 1
jmp 0x4cd0b0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x59], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.004cd7c0
movzx ecx, byte [ebp - 0x59]
test al, al
mov edx, 1
mov dword [ebp - 0x18], 0
cmovne ecx, edx
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], dl
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.004cd7c0
test al, al
jne 0x4cd006
cmp byte [ebp - 0x60], al
je 0x4cd026
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push 0xb
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call ebx
test eax, eax
jne 0x4cd07a
mov ecx, esi
call fcn.004ccd30
cmp eax, 0xffffffff
je 0x4cd091
push esi
lea ecx, [ebp - 0x58]
call fcn.0040be30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.004cd580
test al, al
je 0x4cd085
lea edx, [ebp - 0x58]
mov ecx, esi
call fcn.004ccdf0
test al, al
je 0x4cd085
mov edx, esi
mov ecx, edi
call fcn.004ccdf0
lea ecx, [ebp - 0x58]
test al, al
je 0x4cd07e
call fcn.004cd0d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0040b220
mov bl, 1
jmp 0x4cd093
mov edx, esi
call fcn.004ccdf0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0040b220
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040b220
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040b220
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e9681
mov esp, ebp
pop ebp
ret