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

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
push ebx
call edi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x40c4a8
movzx eax, word [esi]
cmp eax, 0x5c
je 0x40c3e5
cmp eax, 0x2f
je 0x40c3e5
push eax
call fcn.004106a5
add esp, 4
test eax, eax
je 0x40c4a8
cmp word [esi + 2], 0x3a
jne 0x40c4a8
movzx eax, word [esi + 4]
cmp eax, 0x5c
je 0x40c3e5
cmp eax, 0x2f
jne 0x40c4a8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c49e
test al, 0x50
jne 0x40c49e
push ebp
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40c426
push 0x20
call edi
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
ret
xor ecx, ecx
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x1c], ecx
lea eax, [esp + 0x14]
cmove eax, ecx
push eax
push esi
call fcn.0040caf0
add esp, 8
test eax, eax
je 0x40c458
cmp dword [esp + 0x1c], ebx
je 0x40c46c
cmp dword [esp + 0x14], ebx
jne 0x40c46c
push 0x80092009
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.0040a420
add esp, 8
test eax, eax
je 0x40c481
mov eax, dword [esp + 0x18]
and eax, 0xffffe0f7
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebp, ebp
je 0x40c41f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
ret
push 0x7e
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
ret
push 0xa0
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x40d2e0
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x418
mov eax, dword [0x447170]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x40d317
mov al, 1
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0040e41a
add esp, 0x418
ret 4
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
push dword [esp + 4]
lea eax, [esp + 0xc]
push dword [esp + 0x424]
push 0x104
push eax
call fcn.0040d6e0
push 1
lea eax, [esp + 0x1c]
push eax
push 0x43ea04
lea eax, [esp + 0x22c]
push 0x104
push eax
call fcn.0040d6e0
add esp, 0x24
lea eax, [esp + 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 8]
push eax
push str._s_backup1
lea eax, [esp + 0x218]
push 0x104
push eax
call fcn.0040d6e0
add esp, 0x10
lea eax, [esp + 0x210]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0x20
lea eax, [esp + 0xc]
push 0x43ea34
push eax
call fcn.00412337
xor ecx, ecx
mov dword [esi + 8], eax
add esp, 0xc
test eax, eax
setne al
mov ecx, dword [esp + 0x418]
pop esi
xor ecx, esp
call fcn.0040e41a
add esp, 0x418
ret 4

Function at 0x40d920
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x104], 0
jne 0x40d94c
push str.Directory_listener_has_not_been_configured.
push 1
push 0x54
push str.C:dvsp4_build_swgcompdev_srcNvContainercommonDirectoryListener.cpp
push dword [esi + 0x108]
call fcn.0040d3f0
add esp, 0x14
xor al, al
pop esi
ret
cmp dword [esi + 0x110], 0
je 0x40d960
push str.Directory_listener_is_already_running.
push 1
push 0x5a
jmp 0x40d935
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x110], eax
test eax, eax
jne 0x40d983
push str.Failed_to_start_directory_listener__no_start_event_.
push 1
push 0x61
jmp 0x40d935
push 0
push 0
push esi
push 0x40db40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10c], eax
test eax, eax
jne 0x40d9ac
push str.Failed_to_create_directory_listener_thread.
push 1
push 0x68
jmp 0x40d935
push 0x2710
push dword [esi + 0x110]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40d9cf
push str.Failed_to_start_directory_listener_thread.
push 1
push 0x6e
jmp 0x40d935
push str.Directory_listener_thread_started.
push 4
push 0x72
push str.C:dvsp4_build_swgcompdev_srcNvContainercommonDirectoryListener.cpp
push dword [esi + 0x108]
call fcn.0040d3f0
add esp, 0x14
mov al, 1
pop esi
ret
Function at 0x40dbe0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x668
mov eax, dword [0x447170]
xor eax, esp
mov dword [esp + 0x664], eax
push ebp
mov ebp, dword [esp + 0x670]
lea eax, [esp + 0x460]
push esi
push ebp
push 0x43ed74
push 0x104
push eax
mov esi, ecx
call fcn.0040de40
add esp, 0x10
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x40dc68
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x468]
push eax
push str.Unable_to_enumerate_items__S__result__lu_
push 3
push 0x21
push str.C:dvsp4_build_swgcompdev_srcNvContainercommonDirectoryEnumerator.cpp
push dword [esi + 0x210]
call fcn.0040d3f0
add esp, 0x1c
mov al, 1
jmp 0x40de24
mov eax, dword [esp + 0x678]
push ebx
push edi
mov edi, eax
mov bl, 1
and edi, 0x12
test edi, edi
je 0x40dd58
test byte [esp + 0x14], 0x10
je 0x40dd58
cmp word [esp + 0x40], 0x2e
je 0x40dd58
lea eax, [esp + 0x40]
push eax
push ebp
push str._s__s
lea eax, [esp + 0x270]
push 0x104
push eax
call fcn.0040de40
lea eax, [esp + 0x278]
push eax
push str.Process_folder__S
push 4
push 0x31
push str.C:dvsp4_build_swgcompdev_srcNvContainercommonDirectoryEnumerator.cpp
push dword [esi + 0x210]
call fcn.0040d3f0
mov eax, dword [esp + 0x6ac]
add esp, 0x2c
test al, 2
je 0x40dd06
mov eax, dword [esi]
lea ecx, [esp + 0x264]
push 2
push ecx
mov ecx, esi
mov eax, dword [eax]
call eax
mov bl, al
test bl, bl
je 0x40dddb
mov eax, dword [esp + 0x680]
test al, 0x10
je 0x40dd58
test byte [esi + 0x20c], 1
je 0x40dd2c
push 1
lea eax, [esp + 0x268]
mov ecx, esi
push eax
call fcn.0040dbe0
test al, al
je 0x40ddee
mov eax, dword [esi + 0x20c]
and eax, 0x12
je 0x40dd4f
push eax
lea eax, [esp + 0x268]
mov ecx, esi
push eax
call fcn.0040dbe0
test al, al
je 0x40ddee
mov eax, dword [esp + 0x680]
mov bl, 1
test al, 1
je 0x40ddbc
test byte [esp + 0x14], 0x10
jne 0x40ddbc
lea eax, [esp + 0x40]
push eax
push ebp
push str._s__s
lea eax, [esp + 0x270]
push 0x104
push eax
call fcn.0040de40
lea eax, [esp + 0x278]
push eax
push str.Process_file__S
push 4
push 0x4f
push str.C:dvsp4_build_swgcompdev_srcNvContainercommonDirectoryEnumerator.cpp
push dword [esi + 0x210]
call fcn.0040d3f0
mov eax, dword [esi]
lea ecx, [esp + 0x290]
add esp, 0x2c
mov eax, dword [eax]
push 1
push ecx
mov ecx, esi
call eax
mov bl, al
test bl, bl
je 0x40ddf2
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40de16
mov eax, dword [esp + 0x680]
jmp 0x40dc78
lea eax, [esp + 0x264]
push eax
push str.OnItem___returned_FALSE_for_folder__S
push 4
push 0x38
jmp 0x40de03
xor bl, bl
jmp 0x40de16
lea eax, [esp + 0x264]
push eax
push str.OnItem_returned_FALSE_for_file__S
push 4
push 0x53
push str.C:dvsp4_build_swgcompdev_srcNvContainercommonDirectoryEnumerator.cpp
push dword [esi + 0x210]
call fcn.0040d3f0
add esp, 0x18
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov al, bl
pop ebx
mov ecx, dword [esp + 0x66c]
pop esi
pop ebp
xor ecx, esp
call fcn.0040e41a
add esp, 0x668
ret 8
Function at 0x4313bd
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x447170]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004200f6
mov dword [ebp - 0x14], eax
cmp dword [0x44a914], esi
jne 0x4314b0
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x43143d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x431590
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x431590
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x431590
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x44a914], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x44a918], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x44a91c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44a924], eax
test eax, eax
je 0x4314ad
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44a920], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4314d5
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4314c8
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4314ea
push 4
pop eax
jmp 0x431592
cmp dword [ebp - 0x14], esi
je 0x4314ea
push dword [0x44a914]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4314cf
mov eax, dword [0x44a920]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x431548
cmp dword [0x44a924], edi
je 0x431548
push eax
call ebx
push dword [0x44a924]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x431548
test eax, eax
je 0x431548
call ecx
test eax, eax
je 0x43153d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x43153d
test byte [ebp - 8], 1
jne 0x431548
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x431578
mov eax, dword [0x44a918]
cmp eax, edi
je 0x431575
push eax
call ebx
test eax, eax
je 0x431575
call eax
mov esi, eax
test esi, esi
je 0x431575
mov eax, dword [0x44a91c]
cmp eax, edi
je 0x431575
push eax
call ebx
test eax, eax
je 0x431575
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x44a914]
call ebx
test eax, eax
je 0x431590
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x431592
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e41a
mov esp, ebp
pop ebp
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x403d88
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x42fcef
call fcn.0041c468
mov ebx, ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
test esi, esi
jne 0x403daa
mov al, 1
jmp 0x403ee6
cmp dword [ebx + 0x10], 1
lea ecx, [ebx + 8]
mov dword [ebp - 0x34], ecx
jne 0x403dc8
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebx + 8]
mov dword [ecx], eax
jmp 0x403eaf
mov dword [ebp - 0x34], ecx
and dword [ebp - 0x30], 0
xor dl, dl
cmp dword [ebx + 0x10], 0
mov byte [ebp - 0x29], dl
je 0x403e1f
xor edi, edi
test esi, esi
je 0x403e3f
mov eax, esi
mov edx, 0x4000
sub eax, edi
cmp eax, edx
jb 0x403def
mov eax, edx
push 0
lea edx, [ebp - 0x30]
push edx
push eax
mov eax, dword [ebp - 0x38]
add eax, edi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dl
mov byte [ebp - 0x29], dl
test eax, eax
je 0x403e37
mov ecx, dword [ebp - 0x34]
add edi, 0x4000
cmp edi, esi
jb 0x403de0
jmp 0x403e37
push 0
lea edx, [ebp - 0x30]
push edx
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dl
mov byte [ebp - 0x29], dl
test dl, dl
jne 0x403edf
cmp byte [ebx + 0x1e], 0
je 0x403edf
cmp dword [ebx + 0x10], 0
jne 0x403edf
push 0
lea edi, [ebx + 0x34]
mov ecx, 0x45b4e8
push edi
call fcn.00402d73
test al, al
je 0x403eb7
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x30], esi
jae 0x403dcb
cmp dword [ebp - 0x30], 0
jbe 0x403dcb
mov edi, dword [ebx]
push 0
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x43224c]
mov ecx, ebx
call esi
sub eax, dword [ebp - 0x30]
mov ecx, dword [edi + 0x10]
sbb edx, 0
push edx
push eax
call dword [0x43224c]
mov ecx, ebx
call dword [edi + 0x10]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
jmp 0x403dcb
push 0x432668
lea ecx, [ebp - 0x28]
call fcn.004014a3
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push edi
push eax
mov ecx, 0x45b4e8
call fcn.00403183
lea ecx, [ebp - 0x28]
call fcn.00401770
mov al, byte [ebp - 0x29]
mov byte [ebx + 0xc], 1
call fcn.0041c417
ret 8
Function at 0x404461
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x24
mov eax, 0x42fc7c
call fcn.0041c468
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40447a
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4044fe
xor ecx, ecx
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ecx
push eax
push esi
call fcn.004060a8
test al, al
je 0x4044c3
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x4044ba
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4044fe
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x4044f5
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004016b3
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.0041c3b6
pop ecx
pop ecx
mov eax, edi
call fcn.0041c417
ret 4

Function at 0x404740
Capabilities:
Create directory

Disassembly:
push 0x24
mov eax, 0x42fc7c
call fcn.0041c468
mov esi, dword [ebp + 8]
push esi
call fcn.00405e94
movzx eax, ax
cmp eax, 0x2e
je 0x404782
cmp eax, 0x20
je 0x404782
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40476c
mov eax, dword [esi]
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test ebx, ebx
jne 0x404821
jmp 0x404786
xor edi, edi
mov ebx, edi
push esi
call fcn.0040444f
test al, al
jne 0x404834
xor eax, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], edi
push eax
push esi
call fcn.004060a8
test al, al
je 0x4047ce
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x4047c4
mov eax, dword [ebp - 0x28]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40480d
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x404804
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004016b3
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.0041c3b6
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test ebx, ebx
je 0x404834
cmp byte [ebp + 0xc], 0
je 0x404830
push dword [ebp + 0x10]
push esi
call fcn.00404a2f
xor eax, eax
jmp 0x40484c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
push 2
pop eax
cmp ecx, eax
je 0x40484c
xor eax, eax
cmp ecx, 3
sete al
inc eax
call fcn.0041c417
ret 0xc
Function at 0x404a2f
Capabilities:
Set file attributes

Disassembly:
push 0x24
mov eax, 0x42fc7c
call fcn.0041c468
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x404a48
mov eax, dword [esi]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x404ad5
xor ecx, ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ecx
push eax
push esi
call fcn.004060a8
test al, al
je 0x404a9a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x404a8b
mov eax, dword [ebp - 0x28]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x404ad5
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x404acc
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004016b3
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.0041c3b6
pop ecx
pop ecx
mov al, bl
call fcn.0041c417
ret 8
Function at 0x404d8a
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push 0x274
mov eax, 0x42fd9e
call fcn.0041c468
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
cmp esi, 0xffffffff
jne 0x404e89
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x404db5
mov eax, dword [ebx]
lea ecx, [ebp - 0x278]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404eac
xor ecx, ecx
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ecx
push eax
push ebx
call fcn.004060a8
test al, al
je 0x404e10
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x404e00
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x278]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x404e61
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x280], ecx
cmp eax, 0x1000
jb 0x404e58
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.004016b3
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0x280]
push eax
push ecx
call fcn.0041c3b6
pop ecx
pop ecx
cmp esi, 0xffffffff
jne 0x404eac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x404e7f
cmp eax, 3
je 0x404e7f
cmp eax, 0x12
je 0x404e7f
mov al, 1
jmp 0x404e81
xor al, al
mov byte [edi + 0x5c], al
jmp 0x404f63
lea eax, [ebp - 0x278]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404eac
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x404e81
push ebx
mov ecx, edi
call fcn.004021d7
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x28]
call fcn.004014a3
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
push edi
call fcn.004066d5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401770
mov ecx, dword [ebp - 0x25c]
xor eax, eax
add eax, dword [ebp - 0x258]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x278]
adc ecx, 0
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x274]
mov dword [edi + 0x1c], ecx
mov ecx, dword [ebp - 0x270]
mov dword [edi + 0x40], eax
mov eax, dword [ebp - 0x26c]
mov dword [edi + 0x44], ecx
mov ecx, dword [ebp - 0x268]
mov dword [edi + 0x48], eax
mov eax, dword [ebp - 0x264]
mov dword [edi + 0x4c], ecx
mov ecx, dword [ebp - 0x260]
mov dword [edi + 0x50], eax
lea eax, [ebp - 0x264]
mov dword [edi + 0x54], ecx
lea ecx, [edi + 0x28]
push eax
call fcn.0040ae56
lea eax, [ebp - 0x274]
push eax
lea ecx, [edi + 0x30]
call fcn.0040ae56
lea eax, [ebp - 0x26c]
push eax
lea ecx, [edi + 0x38]
call fcn.0040ae56
and dword [edi + 0x58], 0
mov eax, esi
call fcn.0041c417
ret 0xc
Function at 0x408069
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ecx
push ebx
push ebp
xor ebp, ebp
push edi
mov ecx, ebp
movzx eax, byte [ecx + str.cw]
mov byte [eax + 0x447038], cl
inc ecx
cmp ecx, 0x100
jl 0x408072
mov al, byte [ebp + str.cw]
mov byte [esp + 0x10], al
push 2
push dword [esp + 0x14]
mov byte [ebp*4 + 0x447d39], al
mov byte [ebp*4 + 0x447d38], al
mov byte [ebp*4 + 0x44793b], al
mov byte [ebp*4 + 0x447938], al
mov byte [ebp*4 + 0x44753b], al
mov byte [ebp*4 + 0x44753a], al
mov byte [ebp*4 + 0x44713a], al
mov byte [ebp*4 + 0x447139], al
call fcn.00408840
push 3
push dword [esp + 0x14]
mov byte [ebp*4 + 0x447d3b], al
mov byte [ebp*4 + 0x44793a], al
mov byte [ebp*4 + 0x447539], al
mov byte [ebp*4 + 0x447138], al
call fcn.00408840
mov bl, byte [ebp + 0x447038]
push 0xb
mov byte [esp + 0x10], bl
push dword [esp + 0x10]
mov byte [ebp*4 + 0x447d3a], al
mov byte [ebp*4 + 0x447939], al
mov byte [ebp*4 + 0x447538], al
mov byte [ebp*4 + 0x44713b], al
call fcn.00408840
movzx edi, bl
push 9
push dword [esp + 0x10]
mov byte [ebp*4 + 0x448d3a], al
mov byte [ebp*4 + 0x448939], al
mov byte [ebp*4 + 0x448538], al
mov byte [ebp*4 + 0x44813b], al
mov byte [edi*4 + 0x449d3a], al
mov byte [edi*4 + 0x449939], al
mov byte [edi*4 + 0x449538], al
mov byte [edi*4 + 0x44913b], al
call fcn.00408840
push 0xd
push dword [esp + 0x10]
mov byte [ebp*4 + 0x448d38], al
mov byte [ebp*4 + 0x44893b], al
mov byte [ebp*4 + 0x44853a], al
mov byte [ebp*4 + 0x448139], al
mov byte [edi*4 + 0x449d38], al
mov byte [edi*4 + 0x44993b], al
mov byte [edi*4 + 0x44953a], al
mov byte [edi*4 + 0x449139], al
call fcn.00408840
push 0xe
push dword [esp + 0x10]
mov byte [ebp*4 + 0x448d39], al
mov byte [ebp*4 + 0x448938], al
mov byte [ebp*4 + 0x44853b], al
mov byte [ebp*4 + 0x44813a], al
mov byte [edi*4 + 0x449d39], al
mov byte [edi*4 + 0x449938], al
mov byte [edi*4 + 0x44953b], al
mov byte [edi*4 + 0x44913a], al
call fcn.00408840
mov byte [ebp*4 + 0x448d3b], al
mov byte [ebp*4 + 0x44893a], al
mov byte [ebp*4 + 0x448539], al
mov byte [ebp*4 + 0x448138], al
inc ebp
mov byte [edi*4 + 0x449d3b], al
mov byte [edi*4 + 0x44993a], al
mov byte [edi*4 + 0x449539], al
mov byte [edi*4 + 0x449138], al
cmp ebp, 0x100
jl 0x408088
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret