joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b3d1
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, eax
xor ebp, ebp
cmp esi, ebp
push edi
jne 0x40b3ee
push ebp
push 0x46ce64
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
mov ebx, dword [esp + 0x24]
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40b406
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebx
mov dword [esp + 0x1c], ebp
call edi
test eax, eax
jne 0x40b4ea
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push ebp
push ebx
mov dword [esp + 0x18], eax
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [esp + 0x18]
mov dword [esp + 0x28], eax
call esi
push 1
push dword [esp + 0x18]
push dword [esp + 0x18]
call esi
push 1
push dword [esp + 0x20]
push dword [esp + 0x1c]
call esi
push ebx
call edi
test eax, eax
jne 0x40b4bf
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push ebp
push ebp
push ebp
push 0x12
call edi
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call ebx
push ebp
push 2
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push ebp
push ebp
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push ebp
push 2
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x40b4c7
mov dword [esp + 0x18], 4
jmp 0x40b4c7
mov dword [esp + 0x18], 3
push ebp
push dword [esp + 0x20]
push dword [esp + 0x18]
call esi
push ebp
push dword [esp + 0x18]
push dword [esp + 0x18]
call esi
push ebp
push dword [esp + 0x20]
push dword [esp + 0x1c]
call esi
jmp 0x40b4f2
mov dword [esp + 0x18], 2
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x40b5cb
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push edi
xor ebx, ebx
xor edi, edi
lea eax, [esi + 0x20]
cmp dword [eax], ebx
je 0x40b5e8
inc edi
add eax, 8
cmp edi, 0x10
jl 0x40b5db
cmp edi, 0x10
jne 0x40b5f4
xor eax, eax
jmp 0x40b694
cmp byte [esi + 0x18], 1
jne 0x40b66b
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
lea eax, [esi + edi*8 + 0x1c]
push ebx
push 0x438
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp dword [esi + 8], ebx
jne 0x40b647
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
cmp eax, ebx
mov dword [esi], eax
je 0x40b647
push str.VirtualAllocEx
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
cmp eax, ebx
jne 0x40b653
mov eax, 0x42970b
mov ecx, dword [ebp + 0xc]
push 4
push 0x1000
push dword [ebp + 8]
lea esi, [esi + edi*8 + 0x20]
push ebx
push dword [ecx]
call eax
jmp 0x40b692
push ebx
push dword [ebp + 8]
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
push ebx
push ebx
push ebx
push 0xf001f
mov dword [esi + edi*8 + 0x1c], eax
push eax
lea esi, [esi + edi*8 + 0x20]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [esi], eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40d164
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [esi]
test al, 3
je 0x40d1e4
push ebx
xor ebx, ebx
inc ebx
test bl, al
je 0x40d18d
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call fcn.004529aa
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
pop ecx
pop ecx
jne 0x40d1e3
mov eax, dword [esi]
test al, 0x20
je 0x40d1a8
push dword [esi + 4]
push 2
push ebx
push 0x46cf30
call fcn.00452b74
mov dword [esi + 0xc], ebx
jmp 0x40d1e0
test al, 0x40
je 0x40d1c5
push dword [esi + 4]
push 2
push ebx
push 0x46cf34
call fcn.00452b74
mov dword [esi + 0xc], 2
jmp 0x40d1e0
test al, al
jns 0x40d1e3
push dword [esi + 4]
push 3
push ebx
push str.rb
call fcn.00452b74
mov dword [esi + 0xc], 4
add esp, 0x10
pop ebx
leave
ret

Function at 0x40d218
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and dword [esi + 0xc], 0
push edi
push 0x46cf3c
push dword [ebp + 8]
mov byte [esi + 8], 0
call fcn.0045288b
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40d2a3
push ebx
push edi
push 3
lea eax, [ebp + 8]
push 1
push eax
call fcn.00452f80
push edi
mov ebx, eax
call fcn.00452c68
add esp, 0x14
push 2
pop eax
cmp ebx, eax
jb 0x40d280
cmp byte [ebp + 8], 0xff
jne 0x40d26f
cmp byte [ebp + 9], 0xfe
jne 0x40d280
mov dword [esi + 0xc], 1
jmp 0x40d29e
cmp byte [ebp + 8], 0xfe
jne 0x40d280
cmp byte [ebp + 9], 0xff
jne 0x40d280
mov dword [esi + 0xc], eax
jmp 0x40d29e
cmp ebx, 3
jb 0x40d2a2
cmp byte [ebp + 8], 0xef
jne 0x40d2a2
cmp byte [ebp + 9], 0xbb
jne 0x40d2a2
cmp byte [ebp + 0xa], 0xbf
jne 0x40d2a2
mov dword [esi + 0xc], 4
mov byte [esi + 8], 1
pop ebx
pop edi
pop ebp
ret 4
Function at 0x40d363
Capabilities:
Read file on windows

Disassembly:
test byte [esi], 4
push ebx
je 0x40d393
mov ebx, dword [edi]
push 0
push edi
push ebx
push dword [esp + 0x14]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x40d3b9
and dword [edi], eax
push 1
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
xor al, al
jmp 0x40d3bb
push dword [esi + 4]
push dword [edi]
push 1
push dword [esp + 0x14]
call fcn.00452f80
mov dword [edi], eax
push dword [esi + 4]
call fcn.00452796
add esp, 0x14
test eax, eax
je 0x40d3b9
and dword [edi], 0
jmp 0x40d38f
mov al, 1
pop ebx
ret 4

Function at 0x40d70a
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esi + 0x58]
cmp dword [esi + 0x5c], edi
jne 0x40d789
cmp edi, 4
jle 0x40d71b
push 4
pop edi
push 4
pop eax
sub eax, edi
push eax
lea eax, [edi + esi + 0x10]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00453190
mov eax, dword [esi + 0x58]
sub eax, edi
lea eax, [eax + esi + 0x14]
push edi
push eax
mov eax, esi
sub eax, edi
add eax, 0x14
push eax
call fcn.0044fd30
push dword [esi + 4]
lea eax, [esi + 0x14]
push 0x40
push 1
push eax
mov dword [esi + 0x54], edi
call fcn.00452f80
and dword [esi + 0x5c], 0
add esp, 0x28
test eax, eax
mov dword [esi + 0x58], eax
jne 0x40d789
push dword [esi + 4]
call fcn.00452767
test eax, eax
pop ecx
jne 0x40d784
push dword [esi + 4]
call fcn.00452796
test eax, eax
pop ecx
jne 0x40d784
pop edi
ret
or eax, 0xffffffff
pop edi
ret
mov ecx, dword [esi + 0x5c]
movzx eax, byte [ecx + esi + 0x14]
inc ecx
mov dword [esi + 0x5c], ecx
pop edi
ret

Function at 0x40d8a2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push edi
add eax, eax
mov dword [ebp + 0x14], eax
lea eax, [ebp - 4]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 0xc]
mov word [esi], di
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d8ef
lea eax, [ebp + 0x14]
push eax
push esi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp + 0x14], edi
je 0x40d8e6
shr dword [ebp + 0x14], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
leave
ret

Function at 0x40d8f2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 8]
push eax
push 0x1f4
push 2
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x40d952
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
leave
ret
Function at 0x40dd96
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
mov edi, eax
xor esi, esi
cmp edi, ebx
mov byte [0x4795c2], bl
je 0x40dddc
mov byte [0x4795c3], 1
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x40de1f
push ebx
push ebx
mov dword [ebp - 8], edi
call fcn.00453c64
add esp, 0x18
mov esi, eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp esi, ebx
mov edi, eax
je 0x40de0a
push 0xffffffffffffffff
push esi
mov byte [0x4795c3], bl
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [0x4795c2], 1
jne 0x40de18
or eax, 0xffffffff
jmp 0x40de1a
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40dfa2
test al, 0x10
je 0x40dfa2
cmp byte [0x48a2ed], bl
je 0x40dfa2
mov al, 1
jmp 0x40dff4
push esi
push ebx
push 0x2000080
push 3
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40dfc7
xor al, al
jmp 0x40dff3
cmp dword [ebp + 0x10], ebx
jne 0x40dfd2
push dword [ebp + 0xc]
push ebx
jmp 0x40dfe2
cmp dword [ebp + 0x10], 1
push ebx
jne 0x40dfdf
push ebx
push dword [ebp + 0xc]
jmp 0x40dfe3
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
pop esi
pop ebx
pop ebp
ret
Function at 0x40dff7
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x40e017
xor al, al
jmp 0x40e12c
push ebx
push edi
push esi
call fcn.0044f907
pop ecx
push eax
push esi
push 0
push dword [ebp + 8]
mov dword [ebp - 4], eax
call sub.VERSION.dll_GetFileVersionInfoW
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.0045179a
xor ecx, ecx
push 2
add eax, 0x1a
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044f907
mov esi, 0x46c6b8
mov edi, eax
push esi
push edi
call fcn.0044f88d
push esi
push ebx
call fcn.0045190a
add esp, 0x18
test eax, eax
je 0x40e0f2
push str.StringFileInfo_
push edi
call fcn.0044f863
push esi
push ebx
call fcn.00451c53
add esp, 0x10
test eax, eax
jne 0x40e0e9
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40e0c9
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
push 4
lea ebx, [edi + 0x20]
pop edx
mov dword [ebp - 0x10], eax
call fcn.0040f8be
mov eax, dword [ebp - 0x10]
shr eax, 0x10
lea ebx, [edi + 0x28]
push eax
call fcn.0040f8be
mov ebx, dword [ebp + 0x10]
jmp 0x40e0d4
push str.04090000
push edi
call fcn.0044f863
pop ecx
pop ecx
push esi
push edi
call fcn.0044f863
push ebx
push edi
call fcn.0044f863
add esp, 0x10
jmp 0x40e0f2
push ebx
push edi
call fcn.0044f863
pop ecx
pop ecx
push str.DefaultLangCodepage
push ebx
call fcn.0044f7d2
test eax, eax
pop ecx
pop ecx
jne 0x40e12f
mov esi, dword [ebp + 0xc]
push 8
lea eax, [edi + 0x20]
push eax
push esi
call fcn.004517b0
push dword [ebp - 4]
and word [esi + 0x10], 0
call fcn.0044f971
push edi
call fcn.0044f971
add esp, 0x14
mov al, 1
pop edi
pop ebx
pop esi
leave
ret
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40e1a5
push esi
push ebx
call fcn.0045190a
test eax, eax
pop ecx
pop ecx
jne 0x40e17c
mov ecx, dword [ebp - 8]
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
push dword [ebp + 0xc]
call fcn.00451a26
add esp, 0x18
jmp 0x40e18f
push 0x200
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.004517b0
add esp, 0xc
mov bl, 1
push dword [ebp - 4]
call fcn.0044f971
push edi
call fcn.0044f971
pop ecx
pop ecx
mov al, bl
jmp 0x40e12a
xor bl, bl
jmp 0x40e191

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x250
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40e1f8
lea eax, [esp]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40e1ee
or eax, eax
jmp 0x40e1f8
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp]
mov esp, ebp
pop ebp
ret
Function at 0x40e393
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xca8
push ebx
push esi
push dword [ebp + 8]
lea eax, [esp + 0x14]
mov byte [esp + 0x13], 0
call fcn.0040e1fc
pop ecx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e3d8
test al, 0x10
je 0x40e3d8
lea eax, [esp + 0x10]
push str..
push eax
call fcn.0044f863
pop ecx
pop ecx
lea eax, [esp + 0xaa0]
push eax
lea eax, [esp + 0x894]
push eax
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x68c]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0045239c
add esp, 0x14
lea eax, [esp + 0x220]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov bl, 1
je 0x40e4a9
cmp bl, 1
jne 0x40e4a9
test byte [esp + 0x220], 0x10
jne 0x40e481
lea eax, [esp + 0x680]
push eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x17], bl
call fcn.0044f88d
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0044f863
lea eax, [esp + 0x25c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0044f863
add esp, 0x18
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp eax, 1
jne 0x40e498
lea eax, [esp + 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40e425
xor bl, bl
jmp 0x40e425
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, byte [esp + 0xf]
jmp 0x40e49a
Function at 0x40e4af
Capabilities:
Check if file exists
Copy file
Delete file
Enumerate files on windows
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x12dc
call fcn.00454df0
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [esp + 0x43c]
xor bl, bl
call fcn.0040e1fc
pop ecx
push dword [ebp + 0xc]
lea eax, [esp + 0x64c]
call fcn.0040e1fc
pop ecx
lea eax, [esp + 0x648]
push eax
lea eax, [esp + 0x43c]
push eax
call fcn.0040e2ee
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
pop ecx
mov byte [esp + 0x17], al
pop ecx
lea eax, [esp + 0x438]
push eax
call esi
cmp eax, 0xffffffff
mov edi, str..
je 0x40e52d
test al, 0x10
je 0x40e52d
lea eax, [esp + 0x438]
push edi
push eax
call fcn.0044f863
pop ecx
pop ecx
lea eax, [esp + 0x648]
push eax
call esi
cmp eax, 0xffffffff
je 0x40e550
test al, 0x10
je 0x40e550
lea eax, [esp + 0x648]
push edi
push eax
call fcn.0044f863
pop ecx
pop ecx
lea eax, [esp + 0x10d8]
push eax
lea eax, [esp + 0xaac]
push eax
lea eax, [esp + 0xcc0]
push eax
lea eax, [esp + 0xed4]
push eax
lea eax, [esp + 0x448]
push eax
call fcn.0045239c
add esp, 0x14
lea eax, [esp + 0x858]
push eax
lea eax, [esp + 0x43c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
mov byte [esp + 0x12], 1
je 0x40e6e8
mov edi, dword [sym.imp.KERNEL32.DLL_CopyFileW]
cmp byte [esp + 0x12], 1
jne 0x40e6e8
test byte [esp + 0x858], 0x10
jne 0x40e6c3
lea eax, [esp + 0x648]
push eax
lea eax, [esp + 0x10dc]
push eax
lea eax, [esp + 0xab0]
push eax
lea eax, [esp + 0x890]
push eax
lea esi, [esp + 0x238]
call fcn.0040e6fb
lea eax, [esp + 0xed8]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0044f88d
lea eax, [esp + 0xcd0]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0044f863
lea eax, [esp + 0x8a4]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0044f863
mov eax, esi
push eax
call fcn.0040e1a9
add esp, 0x2c
test al, al
je 0x40e659
cmp byte [ebp + 0x10], 0
je 0x40e6a4
mov eax, esi
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
mov eax, esi
push eax
je 0x40e6b2
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [ebp + 0x14], 1
lea eax, [esp + 0x228]
jne 0x40e696
cmp byte [esp + 0x13], 0
jne 0x40e67b
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
jmp 0x40e6a0
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
je 0x40e6a4
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x40e6a0
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
jne 0x40e6c1
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor al, al
jmp 0x40e6f4
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
je 0x40e6e6
mov bl, 1
lea eax, [esp + 0x858]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40e5ae
mov byte [esp + 0x12], al
jmp 0x40e5ae
xor bl, bl
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e917
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call fcn.0045179a
dec eax
lea eax, [esi + eax*2]
cmp word [eax], 0x5c
pop ecx
jne 0x40e933
and word [eax], 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40e9aa
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
jne 0x40e95d
push 0
push esi
call ebp
test eax, eax
je 0x40e962
mov al, 1
jmp 0x40e9b0
cmp eax, 3
jne 0x40e9ae
push esi
call fcn.0040f3d2
mov edi, eax
push 0x5c
push edi
call fcn.00453b3a
add esp, 0xc
test eax, eax
jne 0x40e982
push edi
call fcn.0044f971
pop ecx
jmp 0x40e9ae
and word [eax], 0
push ebx
push edi
call fcn.0040e917
push edi
mov bl, al
call fcn.0044f971
test bl, bl
pop ecx
pop ecx
je 0x40e9a5
push 0
push esi
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x40e9b0
test al, 0x10
jne 0x40e959
xor al, al
pop edi
pop esi
pop ebp
ret

Function at 0x40e9b4
Capabilities:
Check if file exists
Copy file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push dword [ebp + 8]
lea eax, [ebp - 0x438]
call fcn.0040e1fc
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
call fcn.0040e1fc
pop ecx
pop ecx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x40ea2d
cmp byte [ebp + 0x10], al
je 0x40ea29
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.0045190a
test eax, eax
pop ecx
pop ecx
je 0x40ea25
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
mov al, 1
leave
ret
xor al, al
leave
ret
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
lea eax, [ebp - 0x438]
push eax
call esi
cmp eax, 0xffffffff
je 0x40ea46
test al, 0x10
jne 0x40ea4d
xor al, al
jmp 0x40eb06
push ebx
lea eax, [ebp - 0x22c]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40ea67
test al, 0x10
je 0x40ea67
cmp byte [ebp + 0x10], bl
jmp 0x40ea88
lea eax, [ebp - 0x22c]
push eax
call fcn.0040e917
test al, al
pop ecx
je 0x40ea8a
lea eax, [ebp - 0x22c]
push eax
call esi
cmp eax, 0xffffffff
je 0x40ea8a
test al, 0x10
jne 0x40ea8e
xor al, al
jmp 0x40eb05
lea eax, [ebp - 0x438]
push str..
push eax
call fcn.0044f863
lea eax, [ebp - 0x438]
push eax
call fcn.0045179a
mov word [ebp + eax*2 - 0x436], bx
lea eax, [ebp - 0x22c]
push eax
call fcn.0045179a
mov word [ebp + eax*2 - 0x22a], bx
lea eax, [ebp - 0x438]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x14], eax
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 2
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
pop esi
leave
ret
Function at 0x40eb09
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa54
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x440]
call fcn.0040e1fc
push dword [ebp + 0xc]
lea eax, [ebp - 0x234]
call fcn.0040e1fc
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
pop ecx
pop ecx
lea eax, [ebp - 0x440]
push eax
call esi
cmp eax, 0xffffffff
je 0x40eb49
test al, 0x10
jne 0x40eb50
xor al, al
jmp 0x40ecfb
push ebx
lea eax, [ebp - 0x234]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40ec45
test al, 0x10
je 0x40ec45
cmp byte [ebp + 0x10], bl
je 0x40ec7a
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x40ebc9
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.0045190a
test eax, eax
pop ecx
pop ecx
je 0x40ebc2
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jmp 0x40ec90
mov al, 1
jmp 0x40ecfa
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0xa54]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.0045239c
lea eax, [ebp - 0x234]
push 0x46c6b8
push eax
call fcn.0044f863
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0044f863
add esp, 0x24
cmp word [ebp - 0x644], bx
je 0x40ec45
lea eax, [ebp - 0x234]
push 0x46d028
push eax
call fcn.0044f863
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0044f863
add esp, 0x10
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.0040e2ee
test al, al
pop ecx
pop ecx
je 0x40ec95
push 1
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.0040e9b4
add esp, 0xc
test al, al
jne 0x40ec7e
xor al, al
jmp 0x40ecfa
lea eax, [ebp - 0x440]
push 1
push eax
call fcn.0040ecfe
pop ecx
pop ecx
test al, al
setne al
jmp 0x40ecfa
lea eax, [ebp - 0x440]
push eax
call fcn.0045179a
mov word [ebp + eax*2 - 0x43e], bx
lea eax, [ebp - 0x234]
push eax
call fcn.0045179a
mov word [ebp + eax*2 - 0x232], bx
lea eax, [ebp - 0x440]
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x234]
mov dword [ebp - 0x14], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
pop esi
leave
ret