joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40934d
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
test edi, edi
push esi
jl 0x4093e1
jne 0x409365
push 0
jmp 0x4093db
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x11d]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x4093da
mov esi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x4093da
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [esp + 8]
push eax
call esi
mov eax, dword [esp + 8]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
sbb ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
fild qword [esp + 0x18]
fild qword [esp + 0x20]
fdivp st(1)
fmul qword [0x46d9d0]
call fcn.00463f06
cmp eax, edi
jb 0x409398
jmp 0x4093e1
push edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4093e8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [eax], bl
push esi
mov esi, ecx
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], ebx
jne 0x409406
xor al, al
jmp 0x409520
push eax
call fcn.0040d437
mov ecx, dword [ebp + 0x10]
mov byte [ecx], bl
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x10], eax
mov byte [edi], bl
mov byte [esi], bl
mov byte [ecx], bl
call fcn.0044e140
inc eax
push eax
call fcn.0044daa6
add esp, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + ebx]
cmp al, 0x2b
je 0x40944a
cmp al, 0x5e
je 0x409446
cmp al, 0x21
je 0x409446
cmp al, 0x23
jne 0x40946e
cmp al, 0x2b
jne 0x40944f
mov eax, dword [ebp + 0xc]
jmp 0x40945f
cmp al, 0x5e
jne 0x409458
mov byte [esi], 1
jmp 0x40946b
cmp al, 0x21
jne 0x409464
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40946b
cmp al, 0x23
jne 0x40946b
mov byte [edi], 1
inc ebx
jmp 0x409430
mov al, byte [ecx + ebx]
inc ebx
cmp al, 0x7b
mov byte [ebp - 0x18], al
mov dword [ebp - 0x14], ebx
jne 0x4094d0
mov ebx, dword [ebp - 8]
lea edx, [ebp - 0x14]
mov esi, ecx
add al, 2
call fcn.00409310
test eax, eax
jne 0x4094bc
mov esi, dword [ebp - 0xc]
push ebx
push dword [esi*4 + 0x4734a8]
call fcn.0044d8f4
test eax, eax
pop ecx
pop ecx
je 0x4094ae
inc esi
cmp esi, 0x62
mov dword [ebp - 0xc], esi
jl 0x40948f
cmp esi, 0x62
je 0x4094bc
cmp byte [esi + 0x473630], 0
je 0x4094c2
mov byte [ebp - 1], 0
jmp 0x409502
mov eax, dword [esi*4 + str._f_b_b..__reepqrstuvwxyz________t___]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x409502
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 0x4094ea
mov byte [esi], 1
test ax, 0x400
je 0x4094f6
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
test ax, 0x100
je 0x409502
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [ebp + 8]
push dword [ebp - 0x10]
and dword [eax], 0xff
call fcn.0044db10
push dword [ebp - 8]
call fcn.0044db10
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop esi
pop ebx
leave
ret 0xc
Function at 0x4095b9
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0x10
push ebp
push esi
mov esi, eax
xor ebp, ebp
cmp esi, ebp
push edi
jne 0x4095d5
push ebp
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4095ed
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebp
jne 0x4096bf
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push ebp
push dword [esp + 0x28]
mov ebx, eax
mov dword [esp + 0x24], ebx
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push ebx
mov dword [esp + 0x1c], eax
call esi
push 1
push edi
push ebx
call esi
push 1
push dword [esp + 0x14]
push edi
call esi
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebp
mov dword [esp + 0x14], eax
jne 0x4096a5
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
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]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
push ebp
push dword [esp + 0x14]
push ebx
call esi
push ebp
push edi
push ebx
call esi
push ebp
push dword [esp + 0x14]
push edi
call esi
mov eax, dword [esp + 0x14]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4
Function at 0x409793
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 0x4097b0
inc edi
add eax, 8
cmp edi, 0x10
jl 0x4097a3
cmp edi, 0x10
jne 0x4097bc
xor eax, eax
jmp 0x40985c
cmp byte [esi + 0x18], 1
jne 0x409833
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 0x40980f
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
cmp eax, ebx
mov dword [esi], eax
je 0x40980f
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 0x40981b
mov eax, 0x40992b
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 0x40985a
push ebx
push dword [ebp + 8]
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
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 0x40b298
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [esi]
test al, 3
je 0x40b318
push ebx
xor ebx, ebx
inc ebx
test bl, al
je 0x40b2c1
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call fcn.00450af4
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
pop ecx
pop ecx
jne 0x40b317
mov eax, dword [esi]
test al, 0x20
je 0x40b2dc
push dword [esi + 4]
push 2
push ebx
push 0x46a9cc
call fcn.00450cbe
mov dword [esi + 0xc], ebx
jmp 0x40b314
test al, 0x40
je 0x40b2f9
push dword [esi + 4]
push 2
push ebx
push 0x46a9d0
call fcn.00450cbe
mov dword [esi + 0xc], 2
jmp 0x40b314
test al, al
jns 0x40b317
push dword [esi + 4]
push 3
push ebx
push 0x46a9d4
call fcn.00450cbe
mov dword [esi + 0xc], 4
add esp, 0x10
pop ebx
leave
ret

Function at 0x40b34c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and dword [esi + 0xc], 0
push edi
push 0x46a9d8
push dword [ebp + 8]
mov byte [esi + 8], 0
call fcn.004509d5
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40b3d7
push ebx
push edi
push 3
lea eax, [ebp + 8]
push 1
push eax
call fcn.004510ca
push edi
mov ebx, eax
call fcn.00450db2
add esp, 0x14
push 2
pop eax
cmp ebx, eax
jb 0x40b3b4
cmp byte [ebp + 8], 0xff
jne 0x40b3a3
cmp byte [ebp + 9], 0xfe
jne 0x40b3b4
mov dword [esi + 0xc], 1
jmp 0x40b3d2
cmp byte [ebp + 8], 0xfe
jne 0x40b3b4
cmp byte [ebp + 9], 0xff
jne 0x40b3b4
mov dword [esi + 0xc], eax
jmp 0x40b3d2
cmp ebx, 3
jb 0x40b3d6
cmp byte [ebp + 8], 0xef
jne 0x40b3d6
cmp byte [ebp + 9], 0xbb
jne 0x40b3d6
cmp byte [ebp + 0xa], 0xbf
jne 0x40b3d6
mov dword [esi + 0xc], 4
mov byte [esi + 8], 1
pop ebx
pop edi
pop ebp
ret 4
Function at 0x40b49e
Capabilities:
Read file on windows

Disassembly:
test byte [esi], 4
push ebx
je 0x40b4ce
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 0x40b4f4
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 0x40b4f6
push dword [esi + 4]
push dword [edi]
push 1
push dword [esp + 0x14]
call fcn.004510ca
mov dword [edi], eax
push dword [esi + 4]
call fcn.00451114
add esp, 0x14
test eax, eax
je 0x40b4f4
and dword [edi], 0
jmp 0x40b4ca
mov al, 1
pop ebx
ret 4

Function at 0x40b7f3
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esi + 0x58]
cmp dword [esi + 0x5c], edi
jne 0x40b872
cmp edi, 4
jle 0x40b804
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.00451350
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.0044fd80
push dword [esi + 4]
lea eax, [esi + 0x14]
push 0x40
push 1
push eax
mov dword [esi + 0x54], edi
call fcn.004510ca
and dword [esi + 0x5c], 0
add esp, 0x28
test eax, eax
mov dword [esi + 0x58], eax
jne 0x40b872
push dword [esi + 4]
call fcn.004510e5
test eax, eax
pop ecx
jne 0x40b86d
push dword [esi + 4]
call fcn.00451114
test eax, eax
pop ecx
jne 0x40b86d
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 0x40b98b
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_PostMessageA]
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_SendMessageTimeoutA]
test eax, eax
jne 0x40b9eb
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 0x40be12
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 [0x4745b2], bl
je 0x40be58
mov byte [0x4745b3], 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 0x40be99
push ebx
push ebx
mov dword [ebp - 8], edi
call fcn.00451ef7
add esp, 0x18
mov esi, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, ebx
mov edi, eax
je 0x40be84
push 0xffffffffffffffff
push esi
mov byte [0x4745b3], bl
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [0x4745b2], 1
jne 0x40be92
or eax, 0xffffffff
jmp 0x40be94
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40bff5
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_GetFileAttributesA]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40c019
test al, 0x10
je 0x40c019
cmp byte [0x47e69d], bl
je 0x40c019
mov al, 1
jmp 0x40c06b
push esi
push ebx
push 0x2000080
push 3
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c03e
xor al, al
jmp 0x40c06a
cmp dword [ebp + 0x10], ebx
jne 0x40c049
push dword [ebp + 0xc]
push ebx
jmp 0x40c059
cmp dword [ebp + 0x10], 1
push ebx
jne 0x40c056
push ebx
push dword [ebp + 0xc]
jmp 0x40c05a
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 0x40c06e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x40c08e
xor al, al
jmp 0x40c191
push ebx
push edi
push esi
call fcn.0044daa6
pop ecx
push eax
push esi
push 0
push dword [ebp + 8]
mov dword [ebp - 4], eax
call sub.VERSION.dll_GetFileVersionInfoA
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.0044e140
add eax, 0x1a
push eax
call fcn.0044daa6
mov esi, 0x46a330
mov edi, eax
push esi
push edi
call fcn.0044d950
push esi
push ebx
call fcn.0044dfd0
add esp, 0x18
test eax, eax
je 0x40c158
push str.StringFileInfo_
push edi
call fcn.0044d960
push esi
push ebx
call fcn.0044e3a0
add esp, 0x10
test eax, eax
jne 0x40c14f
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40c12f
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
push ebx
push 4
lea edx, [edi + 0x10]
pop ecx
call fcn.0040d8ba
shr ebx, 0x10
lea edx, [edi + 0x14]
push ebx
call fcn.0040d8ba
mov ebx, dword [ebp + 0x10]
add esp, 8
jmp 0x40c13c
push str.04090000
push edi
call fcn.0044d960
pop ecx
pop ecx
push esi
push edi
call fcn.0044d960
push ebx
push edi
call fcn.0044d960
add esp, 0x10
jmp 0x40c158
push ebx
push edi
call fcn.0044d960
pop ecx
pop ecx
push str.DefaultLangCodepage
push ebx
call fcn.0044d8f4
test eax, eax
pop ecx
pop ecx
jne 0x40c194
mov esi, dword [ebp + 0xc]
push 8
lea eax, [edi + 0x10]
push eax
push esi
call fcn.004505f0
push dword [ebp - 4]
mov byte [esi + 8], 0
call fcn.0044db10
push edi
call fcn.0044db10
add esp, 0x14
mov al, 1
pop edi
pop ebx
pop esi
leave
ret
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40c20a
push esi
push ebx
call fcn.0044dfd0
test eax, eax
pop ecx
pop ecx
jne 0x40c1e1
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.0044e1cb
add esp, 0x18
jmp 0x40c1f4
push 0x200
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.004505f0
add esp, 0xc
mov bl, 1
push dword [ebp - 4]
call fcn.0044db10
push edi
call fcn.0044db10
pop ecx
pop ecx
mov al, bl
jmp 0x40c18f
xor bl, bl
jmp 0x40c1f6

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x140
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40c25d
lea eax, [esp]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40c253
or eax, eax
jmp 0x40c25d
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp]
mov esp, ebp
pop ebp
ret
Function at 0x40c3ff
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, 0x670
push ebx
push esi
push dword [ebp + 8]
lea eax, [esp + 0x14]
mov byte [esp + 0x13], 0
call fcn.0040c261
pop ecx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40c444
test al, 0x10
je 0x40c444
lea eax, [esp + 0x10]
push str..
push eax
call fcn.0044d960
pop ecx
pop ecx
lea eax, [esp + 0x570]
push eax
lea eax, [esp + 0x46c]
push eax
lea eax, [esp + 0x260]
push eax
lea eax, [esp + 0x36c]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00450444
add esp, 0x14
lea eax, [esp + 0x118]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov bl, 1
je 0x40c515
cmp bl, 1
jne 0x40c515
test byte [esp + 0x118], 0x10
jne 0x40c4ed
lea eax, [esp + 0x360]
push eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x17], bl
call fcn.0044d950
lea eax, [esp + 0x260]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0044d960
lea eax, [esp + 0x154]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0044d960
add esp, 0x18
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
cmp eax, 1
jne 0x40c504
lea eax, [esp + 0x118]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x40c491
xor bl, bl
jmp 0x40c491
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 0x40c506
Function at 0x40c51b
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
sub esp, 0x98c
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [esp + 0x22c]
xor bl, bl
call fcn.0040c261
pop ecx
push dword [ebp + 0xc]
lea eax, [esp + 0x334]
call fcn.0040c261
pop ecx
lea eax, [esp + 0x330]
push eax
lea eax, [esp + 0x22c]
push eax
call fcn.0040c35c
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
pop ecx
mov byte [esp + 0x17], al
pop ecx
lea eax, [esp + 0x228]
push eax
call esi
cmp eax, 0xffffffff
mov edi, str..
je 0x40c595
test al, 0x10
je 0x40c595
lea eax, [esp + 0x228]
push edi
push eax
call fcn.0044d960
pop ecx
pop ecx
lea eax, [esp + 0x330]
push eax
call esi
cmp eax, 0xffffffff
je 0x40c5b8
test al, 0x10
je 0x40c5b8
lea eax, [esp + 0x330]
push edi
push eax
call fcn.0044d960
pop ecx
pop ecx
lea eax, [esp + 0x890]
push eax
lea eax, [esp + 0x57c]
push eax
lea eax, [esp + 0x688]
push eax
lea eax, [esp + 0x794]
push eax
lea eax, [esp + 0x238]
push eax
call fcn.00450444
add esp, 0x14
lea eax, [esp + 0x438]
push eax
lea eax, [esp + 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
mov byte [esp + 0x12], 1
je 0x40c750
mov edi, dword [sym.imp.KERNEL32.DLL_CopyFileA]
cmp byte [esp + 0x12], 1
jne 0x40c750
test byte [esp + 0x438], 0x10
jne 0x40c72b
lea eax, [esp + 0x330]
push eax
lea eax, [esp + 0x894]
push eax
lea eax, [esp + 0x580]
push eax
lea eax, [esp + 0x470]
push eax
lea esi, [esp + 0x130]
call fcn.0040c763
lea eax, [esp + 0x798]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0044d950
lea eax, [esp + 0x698]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0044d960
lea eax, [esp + 0x484]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0044d960
mov eax, esi
push eax
call fcn.0040c20e
add esp, 0x2c
test al, al
je 0x40c6c1
cmp byte [ebp + 0x10], 0
je 0x40c70c
mov eax, esi
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
mov eax, esi
push eax
je 0x40c71a
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
cmp byte [ebp + 0x14], 1
lea eax, [esp + 0x120]
jne 0x40c6fe
cmp byte [esp + 0x13], 0
jne 0x40c6e3
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
jmp 0x40c708
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
je 0x40c70c
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
jmp 0x40c708
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
jne 0x40c729
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor al, al
jmp 0x40c75c
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
test eax, eax
je 0x40c74e
mov bl, 1
lea eax, [esp + 0x438]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x40c616
mov byte [esp + 0x12], al
jmp 0x40c616
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 0x40c959
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.0044e140
dec eax
add eax, esi
cmp byte [eax], 0x5c
pop ecx
jne 0x40c972
mov byte [eax], 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40c9e8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
jne 0x40c99c
push 0
push esi
call ebp
test eax, eax
je 0x40c9a1
mov al, 1
jmp 0x40c9ee
cmp eax, 3
jne 0x40c9ec
push esi
call fcn.0040d437
mov edi, eax
push 0x5c
push edi
call fcn.00451dd0
add esp, 0xc
test eax, eax
jne 0x40c9c1
push edi
call fcn.0044db10
pop ecx
jmp 0x40c9ec
push ebx
push edi
mov byte [eax], 0
call fcn.0040c959
push edi
mov bl, al
call fcn.0044db10
test bl, bl
pop ecx
pop ecx
je 0x40c9e3
push 0
push esi
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x40c9ee
test al, 0x10
jne 0x40c998
xor al, al
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push dword [ebp + 8]
lea eax, [ebp - 0x230]
call fcn.0040c261
push dword [ebp + 0xc]
lea eax, [ebp - 0x128]
call fcn.0040c261
pop ecx
pop ecx
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
jne 0x40ca6b
cmp byte [ebp + 0x10], al
je 0x40ca67
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0044dfd0
test eax, eax
pop ecx
pop ecx
je 0x40ca63
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
mov al, 1
leave
ret
xor al, al
leave
ret
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
lea eax, [ebp - 0x230]
push eax
call esi
cmp eax, 0xffffffff
je 0x40ca84
test al, 0x10
jne 0x40ca8b
xor al, al
jmp 0x40cb42
push ebx
lea eax, [ebp - 0x128]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40caa5
test al, 0x10
je 0x40caa5
cmp byte [ebp + 0x10], bl
jmp 0x40cac6
lea eax, [ebp - 0x128]
push eax
call fcn.0040c959
test al, al
pop ecx
je 0x40cac8
lea eax, [ebp - 0x128]
push eax
call esi
cmp eax, 0xffffffff
je 0x40cac8
test al, 0x10
jne 0x40cacc
xor al, al
jmp 0x40cb41
lea eax, [ebp - 0x230]
push str..
push eax
call fcn.0044d960
lea eax, [ebp - 0x230]
push eax
call fcn.0044e140
mov byte [ebp + eax - 0x22f], bl
lea eax, [ebp - 0x128]
push eax
call fcn.0044e140
mov byte [ebp + eax - 0x127], bl
lea eax, [ebp - 0x230]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x128]
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_SHFileOperationA]
neg eax
sbb al, al
inc al
pop ebx
pop esi
leave
ret