joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b187
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
cmp word [eax], bx
push esi
mov esi, ecx
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], ebx
jne 0x40b1a6
xor al, al
jmp 0x40b2cc
push eax
or eax, 0xffffffff
call fcn.0040fc4b
mov ecx, dword [ebp + 0x10]
mov byte [ecx], bl
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x10], eax
mov byte [esi], bl
mov byte [edi], bl
mov byte [ecx], bl
call fcn.00451ee0
inc eax
push eax
call fcn.0044f8e7
add esp, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + ebx]
cmp al, 0x2b
je 0x40b1ed
cmp al, 0x5e
je 0x40b1e9
cmp al, 0x21
je 0x40b1e9
cmp al, 0x23
jne 0x40b211
cmp al, 0x2b
jne 0x40b1f2
mov eax, dword [ebp + 0xc]
jmp 0x40b202
cmp al, 0x5e
jne 0x40b1fb
mov byte [edi], 1
jmp 0x40b20e
cmp al, 0x21
jne 0x40b207
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40b20e
cmp al, 0x23
jne 0x40b20e
mov byte [esi], 1
inc ebx
jmp 0x40b1d3
mov al, byte [ecx + ebx]
inc ebx
cmp al, 0x7b
mov byte [ebp - 0x18], al
mov dword [ebp - 0x14], ebx
jne 0x40b27c
mov ebx, dword [ebp - 8]
lea edx, [ebp - 0x14]
mov esi, ecx
add al, 2
call fcn.0040b0af
test eax, eax
je 0x40b238
mov byte [ebp - 1], 0
jmp 0x40b2ae
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
push ebx
push dword [esi*4 + 0x478398]
call fcn.00464a15
test eax, eax
pop ecx
pop ecx
je 0x40b25a
inc esi
cmp esi, 0x62
mov dword [ebp - 0xc], esi
jl 0x40b238
cmp esi, 0x62
jne 0x40b265
movzx eax, byte [ebx]
push eax
jmp 0x40b27f
cmp byte [esi + 0x478520], 0
jne 0x40b232
mov eax, dword [esi*4 + str._f_b_b..__reepqrstuvwxyz________t___]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x40b2ae
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov ecx, dword [ebp + 8]
movsx eax, ax
test ax, 0x200
mov dword [ecx], eax
je 0x40b296
mov byte [edi], 1
test ax, 0x400
je 0x40b2a2
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
test ax, 0x100
je 0x40b2ae
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [ebp + 8]
push dword [ebp - 0x10]
and dword [eax], 0xff
call fcn.0044f951
push dword [ebp - 8]
call fcn.0044f951
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop esi
pop ebx
leave
ret 0xc
Function at 0x40b3a0
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 0x40b3bd
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 0x40b3d5
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 0x40b4b9
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 0x40b48e
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 0x40b496
mov dword [esp + 0x18], 4
jmp 0x40b496
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 0x40b4c1
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 0x40b59a
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 0x40b5b7
inc edi
add eax, 8
cmp edi, 0x10
jl 0x40b5aa
cmp edi, 0x10
jne 0x40b5c3
xor eax, eax
jmp 0x40b663
cmp byte [esi + 0x18], 1
jne 0x40b63a
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 0x40b616
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
cmp eax, ebx
mov dword [esi], eax
je 0x40b616
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 0x40b622
mov eax, 0x4296da
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 0x40b661
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 0x40d133
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [esi]
test al, 3
je 0x40d1b3
push ebx
xor ebx, ebx
inc ebx
test bl, al
je 0x40d15c
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call fcn.0045298a
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
pop ecx
pop ecx
jne 0x40d1b2
mov eax, dword [esi]
test al, 0x20
je 0x40d177
push dword [esi + 4]
push 2
push ebx
push 0x46cf30
call fcn.00452b54
mov dword [esi + 0xc], ebx
jmp 0x40d1af
test al, 0x40
je 0x40d194
push dword [esi + 4]
push 2
push ebx
push 0x46cf34
call fcn.00452b54
mov dword [esi + 0xc], 2
jmp 0x40d1af
test al, al
jns 0x40d1b2
push dword [esi + 4]
push 3
push ebx
push str.rb
call fcn.00452b54
mov dword [esi + 0xc], 4
add esp, 0x10
pop ebx
leave
ret

Function at 0x40d1e7
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.0045286b
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40d272
push ebx
push edi
push 3
lea eax, [ebp + 8]
push 1
push eax
call fcn.00452f60
push edi
mov ebx, eax
call fcn.00452c48
add esp, 0x14
push 2
pop eax
cmp ebx, eax
jb 0x40d24f
cmp byte [ebp + 8], 0xff
jne 0x40d23e
cmp byte [ebp + 9], 0xfe
jne 0x40d24f
mov dword [esi + 0xc], 1
jmp 0x40d26d
cmp byte [ebp + 8], 0xfe
jne 0x40d24f
cmp byte [ebp + 9], 0xff
jne 0x40d24f
mov dword [esi + 0xc], eax
jmp 0x40d26d
cmp ebx, 3
jb 0x40d271
cmp byte [ebp + 8], 0xef
jne 0x40d271
cmp byte [ebp + 9], 0xbb
jne 0x40d271
cmp byte [ebp + 0xa], 0xbf
jne 0x40d271
mov dword [esi + 0xc], 4
mov byte [esi + 8], 1
pop ebx
pop edi
pop ebp
ret 4
Function at 0x40d332
Capabilities:
Read file on windows

Disassembly:
test byte [esi], 4
push ebx
je 0x40d362
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 0x40d388
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 0x40d38a
push dword [esi + 4]
push dword [edi]
push 1
push dword [esp + 0x14]
call fcn.00452f60
mov dword [edi], eax
push dword [esi + 4]
call fcn.00452776
add esp, 0x14
test eax, eax
je 0x40d388
and dword [edi], 0
jmp 0x40d35e
mov al, 1
pop ebx
ret 4

Function at 0x40d6d9
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esi + 0x58]
cmp dword [esi + 0x5c], edi
jne 0x40d758
cmp edi, 4
jle 0x40d6ea
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.00453170
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.0044fd10
push dword [esi + 4]
lea eax, [esi + 0x14]
push 0x40
push 1
push eax
mov dword [esi + 0x54], edi
call fcn.00452f60
and dword [esi + 0x5c], 0
add esp, 0x28
test eax, eax
mov dword [esi + 0x58], eax
jne 0x40d758
push dword [esi + 4]
call fcn.00452747
test eax, eax
pop ecx
jne 0x40d753
push dword [esi + 4]
call fcn.00452776
test eax, eax
pop ecx
jne 0x40d753
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 0x40d871
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 0x40d8be
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 0x40d8b5
shr dword [ebp + 0x14], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
leave
ret

Function at 0x40d8c1
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 0x40d921
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 0x40dd65
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 0x40ddab
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 0x40ddee
push ebx
push ebx
mov dword [ebp - 8], edi
call fcn.00453c44
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 0x40ddd9
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 0x40dde7
or eax, 0xffffffff
jmp 0x40dde9
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40df4d
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 0x40df71
test al, 0x10
je 0x40df71
cmp byte [0x48a2ed], bl
je 0x40df71
mov al, 1
jmp 0x40dfc3
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 0x40df96
xor al, al
jmp 0x40dfc2
cmp dword [ebp + 0x10], ebx
jne 0x40dfa1
push dword [ebp + 0xc]
push ebx
jmp 0x40dfb1
cmp dword [ebp + 0x10], 1
push ebx
jne 0x40dfae
push ebx
push dword [ebp + 0xc]
jmp 0x40dfb2
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 0x40dfc6
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 0x40dfe6
xor al, al
jmp 0x40e0fb
push ebx
push edi
push esi
call fcn.0044f8e7
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.0045177a
xor ecx, ecx
push 2
add eax, 0x1a
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044f8e7
mov esi, 0x46c6b8
mov edi, eax
push esi
push edi
call fcn.0044f86d
push esi
push ebx
call fcn.004518ea
add esp, 0x18
test eax, eax
je 0x40e0c1
push str.StringFileInfo_
push edi
call fcn.0044f843
push esi
push ebx
call fcn.00451c33
add esp, 0x10
test eax, eax
jne 0x40e0b8
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 0x40e098
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.0040f88d
mov eax, dword [ebp - 0x10]
shr eax, 0x10
lea ebx, [edi + 0x28]
push eax
call fcn.0040f88d
mov ebx, dword [ebp + 0x10]
jmp 0x40e0a3
push str.04090000
push edi
call fcn.0044f843
pop ecx
pop ecx
push esi
push edi
call fcn.0044f843
push ebx
push edi
call fcn.0044f843
add esp, 0x10
jmp 0x40e0c1
push ebx
push edi
call fcn.0044f843
pop ecx
pop ecx
push str.DefaultLangCodepage
push ebx
call fcn.0044f7b2
test eax, eax
pop ecx
pop ecx
jne 0x40e0fe
mov esi, dword [ebp + 0xc]
push 8
lea eax, [edi + 0x20]
push eax
push esi
call fcn.00451790
push dword [ebp - 4]
and word [esi + 0x10], 0
call fcn.0044f951
push edi
call fcn.0044f951
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 0x40e174
push esi
push ebx
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
jne 0x40e14b
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.00451a06
add esp, 0x18
jmp 0x40e15e
push 0x200
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.00451790
add esp, 0xc
mov bl, 1
push dword [ebp - 4]
call fcn.0044f951
push edi
call fcn.0044f951
pop ecx
pop ecx
mov al, bl
jmp 0x40e0f9
xor bl, bl
jmp 0x40e160

Function at 0x40e18d
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 0x40e1c7
lea eax, [esp]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40e1bd
or eax, eax
jmp 0x40e1c7
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp]
mov esp, ebp
pop ebp
ret
Function at 0x40e362
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.0040e1cb
pop ecx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e3a7
test al, 0x10
je 0x40e3a7
lea eax, [esp + 0x10]
push str..
push eax
call fcn.0044f843
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.0045237c
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 0x40e478
cmp bl, 1
jne 0x40e478
test byte [esp + 0x220], 0x10
jne 0x40e450
lea eax, [esp + 0x680]
push eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x17], bl
call fcn.0044f86d
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0044f843
lea eax, [esp + 0x25c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0044f843
add esp, 0x18
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp eax, 1
jne 0x40e467
lea eax, [esp + 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40e3f4
xor bl, bl
jmp 0x40e3f4
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 0x40e469
Function at 0x40e47e
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.00454dd0
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [esp + 0x43c]
xor bl, bl
call fcn.0040e1cb
pop ecx
push dword [ebp + 0xc]
lea eax, [esp + 0x64c]
call fcn.0040e1cb
pop ecx
lea eax, [esp + 0x648]
push eax
lea eax, [esp + 0x43c]
push eax
call fcn.0040e2bd
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 0x40e4fc
test al, 0x10
je 0x40e4fc
lea eax, [esp + 0x438]
push edi
push eax
call fcn.0044f843
pop ecx
pop ecx
lea eax, [esp + 0x648]
push eax
call esi
cmp eax, 0xffffffff
je 0x40e51f
test al, 0x10
je 0x40e51f
lea eax, [esp + 0x648]
push edi
push eax
call fcn.0044f843
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.0045237c
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 0x40e6b7
mov edi, dword [sym.imp.KERNEL32.DLL_CopyFileW]
cmp byte [esp + 0x12], 1
jne 0x40e6b7
test byte [esp + 0x858], 0x10
jne 0x40e692
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.0040e6ca
lea eax, [esp + 0xed8]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0044f86d
lea eax, [esp + 0xcd0]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0044f843
lea eax, [esp + 0x8a4]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0044f843
mov eax, esi
push eax
call fcn.0040e178
add esp, 0x2c
test al, al
je 0x40e628
cmp byte [ebp + 0x10], 0
je 0x40e673
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 0x40e681
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [ebp + 0x14], 1
lea eax, [esp + 0x228]
jne 0x40e665
cmp byte [esp + 0x13], 0
jne 0x40e64a
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
jmp 0x40e66f
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
je 0x40e673
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x40e66f
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
jne 0x40e690
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor al, al
jmp 0x40e6c3
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
je 0x40e6b5
mov bl, 1
lea eax, [esp + 0x858]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40e57d
mov byte [esp + 0x12], al
jmp 0x40e57d
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 0x40e8e6
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.0045177a
dec eax
lea eax, [esi + eax*2]
cmp word [eax], 0x5c
pop ecx
jne 0x40e902
and word [eax], 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40e979
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
jne 0x40e92c
push 0
push esi
call ebp
test eax, eax
je 0x40e931
mov al, 1
jmp 0x40e97f
cmp eax, 3
jne 0x40e97d
push esi
call fcn.0040f3a1
mov edi, eax
push 0x5c
push edi
call fcn.00453b1a
add esp, 0xc
test eax, eax
jne 0x40e951
push edi
call fcn.0044f951
pop ecx
jmp 0x40e97d
and word [eax], 0
push ebx
push edi
call fcn.0040e8e6
push edi
mov bl, al
call fcn.0044f951
test bl, bl
pop ecx
pop ecx
je 0x40e974
push 0
push esi
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x40e97f
test al, 0x10
jne 0x40e928
xor al, al
pop edi
pop esi
pop ebp
ret

Function at 0x40e983
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.0040e1cb
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
call fcn.0040e1cb
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 0x40e9fc
cmp byte [ebp + 0x10], al
je 0x40e9f8
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
je 0x40e9f4
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 0x40ea15
test al, 0x10
jne 0x40ea1c
xor al, al
jmp 0x40ead5
push ebx
lea eax, [ebp - 0x22c]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40ea36
test al, 0x10
je 0x40ea36
cmp byte [ebp + 0x10], bl
jmp 0x40ea57
lea eax, [ebp - 0x22c]
push eax
call fcn.0040e8e6
test al, al
pop ecx
je 0x40ea59
lea eax, [ebp - 0x22c]
push eax
call esi
cmp eax, 0xffffffff
je 0x40ea59
test al, 0x10
jne 0x40ea5d
xor al, al
jmp 0x40ead4
lea eax, [ebp - 0x438]
push str..
push eax
call fcn.0044f843
lea eax, [ebp - 0x438]
push eax
call fcn.0045177a
mov word [ebp + eax*2 - 0x436], bx
lea eax, [ebp - 0x22c]
push eax
call fcn.0045177a
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