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

Disassembly:
sub esp, 0xc
mov eax, dword [0x537008]
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 0x4bb4be
cmp dword [eax], 0xffffffff
je 0x4bb4be
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 0x4bb4be
cmp dword [esp + 0xc], 1
jne 0x4bb4be
lea eax, [esp + 9]
mov ecx, esi
push eax
call fcn.004bb2f0
test al, al
je 0x4bb4be
lea eax, [esp + 0xa]
mov ecx, esi
push eax
call fcn.004bb2f0
test al, al
je 0x4bb412
lea eax, [esp + 0xb]
mov ecx, esi
push eax
call fcn.004bb2f0
test al, al
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
mov eax, dword [esp + 8]
cmp al, 0xff
jne 0x4bb451
cmp ah, 0xfe
jne 0x4bb4b0
test bl, bl
je 0x4bb443
cmp byte [esp + 0xa], 0
jne 0x4bb443
cmp byte [esp + 0xb], 0
jne 0x4bb443
mov edx, 4
mov ecx, 0xc
mov dword [esi], edx
jmp 0x4bb4b8
mov edx, 2
mov ecx, 9
mov dword [esi], edx
jmp 0x4bb4b8
cmp al, 0xfe
jne 0x4bb467
cmp ah, 0xff
jne 0x4bb4b0
mov dword [esi], 2
mov ecx, 8
jmp 0x4bb4b8
cmp al, 0xef
jne 0x4bb48d
cmp ah, 0xbb
jne 0x4bb4b0
cmp byte [esp + 0xa], 0xbf
jne 0x4bb485
mov edx, 3
mov ecx, 6
mov dword [esi], edx
jmp 0x4bb4b8
xor ecx, ecx
xor edx, edx
mov dword [esi], edx
jmp 0x4bb4b8
test al, al
jne 0x4bb4b0
test ah, ah
jne 0x4bb4b0
cmp byte [esp + 0xa], 0xfe
jne 0x4bb4b0
cmp byte [esp + 0xb], 0xff
jne 0x4bb4b0
mov dword [esi], 4
mov ecx, 0xb
jmp 0x4bb4b8
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.004e647b
add esp, 0xc
ret
Function at 0x4bb570
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50076b
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x537008]
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 0x4bb5a9
call fcn.004bb710
cmp byte [0x538ce8], 0
jne 0x4bb5bc
mov eax, 0x80000001
jmp 0x4bb6ec
mov eax, dword [esi]
test eax, eax
jne 0x4bb63c
push 8
call fcn.004e648c
mov edi, eax
add esp, 4
mov dword [ebp - 0x138], edi
mov dword [ebp - 4], 0
push 1
call fcn.004e648c
add esp, 4
mov dword [edi + 4], eax
mov byte [eax], 0
lea eax, [ebp - 0x130]
push pe_nt_image_headers32
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 0x4bb62b
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 0x4bb6db
call fcn.004b73e0
test al, al
jne 0x4bb676
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.004b7bf0
test al, al
je 0x4bb6db
mov ecx, dword [esi]
add ecx, 4
call fcn.004b6ec0
call fcn.004b73e0
test al, al
je 0x4bb6db
push str.Advapi32.dll
lea ecx, [ebp - 0x150]
call fcn.0040a140
mov dword [ebp - 4], 2
lea eax, [ebp - 0x150]
push eax
call fcn.004b9be0
mov ecx, eax
call fcn.004b9ca0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.0040a320
test edi, edi
je 0x4bb6db
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4bb6db
push dword [esi]
push dword [ebp + 8]
call eax
test eax, eax
je 0x4bb6db
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4bb6ea
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.004e647b
mov esp, ebp
pop ebp
ret 4
Function at 0x4bb8c0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x63c]
sub esp, 0x63c
push 0xffffffffffffffff
push 0x500820
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x537008]
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 [0x538d40]
mov dword [ebp - 0x10], 0x538d40
test eax, eax
je 0x4bb944
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 1
mov ecx, dword [0x5372e8]
test ecx, ecx
je 0x4bb96a
cmp dword [0x5372ec], 8
mov eax, 0x5372d8
cmovae eax, dword [0x5372d8]
jmp 0x4bba25
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 0x4bbad4
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 0x4bba04
test eax, eax
je 0x4bba04
add eax, eax
cmp eax, 0x412
jae 0x4bbb27
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 0x4bb9f4
lea eax, [ebp + 0x18]
jmp 0x4bba21
lea ecx, [ebp + 0x42c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bba10
lea eax, [ebp + 0x42c]
sub ecx, edx
sar ecx, 1
push ecx
push eax
lea ecx, [ebp]
call fcn.0040a390
mov byte [ebp - 4], 0
mov eax, dword [0x538d40]
test eax, eax
je 0x4bba43
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.004bb860
test al, al
je 0x4bba62
mov bl, 1
jmp 0x4bbaf1
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 0x4bbaef
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 0x4bbaa4
sub edx, ecx
lea eax, [ebp + 0x42c]
sar edx, 1
lea ecx, [ebp]
push edx
push eax
call fcn.0040a390
push ebx
push edi
lea eax, [ebp]
mov ecx, esi
push eax
call fcn.004bb860
mov bl, al
jmp 0x4bbaf1
mov byte [ebp - 4], 0
mov eax, dword [0x538d40]
test eax, eax
je 0x4bbae8
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.0040a320
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.004e647b
lea esp, [ebp + 0x63c]
pop ebp
ret 8
call fcn.004e6c1a
int3
Function at 0x4bc5f0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8158
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x537008]
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 0x4bc633
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 0x4bc64f
mov eax, dword [edi]
test eax, eax
je 0x4bc64f
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 0x4bc6b4
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 0x4bc190
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 0x4bc6e9
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0xffffffffffffffff
push ebx
call eax
sub eax, 1
jne 0x4bc6ac
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.004bc350
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4bc6d5
mov eax, dword [edi]
test eax, eax
je 0x4bc6ce
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 0x4bc701
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 0x4bc696
mov bl, 1
jmp 0x4bc6b6
Function at 0x4bdcd0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500bff
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x537008]
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.0040a320
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.0040a320
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.0040a320
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.0040a320
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.0040a320
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0040a320
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 0x4bdd60
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500bff
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x537008]
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.0040a320
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.0040a320
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.0040a320
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.0040a320
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.0040a320
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0040a320
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4c11d0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5010cf
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x537008]
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.0040ac00
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.0040ac00
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.0040ac00
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.0040ac00
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.0040ac00
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.0040ac00
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 0x4c4090
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x537008]
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 0x4c4112
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 0x4c4112
test ecx, ecx
je 0x4c410e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x4c40d0
xor eax, eax
jmp 0x4c4117
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4c4121
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e647b
add esp, 0xc
ret 0xc
Function at 0x4c9010
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x537008]
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 0x4c90a7
cmp dword [esp + 8], 6
jb 0x4c90a7
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.004e647b
add esp, 0x118
ret

Function at 0x4c90c0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502030
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x537008]
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.0040a390
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.004b9be0
mov ecx, eax
call fcn.004b9ca0
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040a320
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.0040a390
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.004b9be0
mov ecx, eax
call fcn.004b9ca0
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040a320
test ebx, ebx
je 0x4c921d
test esi, esi
je 0x4c921d
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 0x4c9a80
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502058
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x537008]
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 0x4c9abf
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push eax
call ebx
test eax, eax
je 0x4c9ad1
mov al, 1
jmp 0x4c9b2e
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.004ca5e0
test al, al
je 0x4c9b1b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x4c9b1b
mov bl, 1
jmp 0x4c9b1d
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040a320
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.004e647b
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502058
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x537008]
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 0x4c9b86
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4c9bea
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.004ca5e0
test al, al
je 0x4c9bdb
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.0040a320
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.004e647b
mov esp, ebp
pop ebp
ret
Function at 0x4c9c10
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502090
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x537008]
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 0x4c9c48
mov ecx, dword [edi]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4c9c52
mov eax, dword [esi]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4c9d0c
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.004ca5e0
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.004ca5e0
test al, al
jne 0x4c9ccf
cmp byte [ebp - 0x48], al
je 0x4c9d10
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 0x4c9d10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040a320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040a320
mov al, 1
jmp 0x4c9d2d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040a320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040a320
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.004e647b
mov esp, ebp
pop ebp
ret
Function at 0x4c9d50
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5020d8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x537008]
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 0x4c9d89
mov ecx, dword [esi]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4c9d93
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0xb
push ecx
push eax
call ebx
test eax, eax
je 0x4c9daa
mov al, 1
jmp 0x4c9ed0
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.004ca5e0
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.004ca5e0
test al, al
jne 0x4c9e26
cmp byte [ebp - 0x60], al
je 0x4c9e46
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 0x4c9e9a
mov ecx, esi
call fcn.004c9b50
cmp eax, 0xffffffff
je 0x4c9eb1
push esi
lea ecx, [ebp - 0x58]
call fcn.0040ac00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.004ca3a0
test al, al
je 0x4c9ea5
lea edx, [ebp - 0x58]
mov ecx, esi
call fcn.004c9c10
test al, al
je 0x4c9ea5
mov edx, esi
mov ecx, edi
call fcn.004c9c10
lea ecx, [ebp - 0x58]
test al, al
je 0x4c9e9e
call fcn.004c9ef0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0040a320
mov bl, 1
jmp 0x4c9eb3
mov edx, esi
call fcn.004c9c10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0040a320
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040a320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040a320
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.004e647b
mov esp, ebp
pop ebp
ret