joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d90
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x104
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push 0x42038c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x420404
lea eax, [esp + 0xc]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0x421940], eax
jne 0x401dff
push eax
push eax
push 1
call fcn.00401c30
add esp, 0xc
pop edi
add esp, 0x104
ret
push esi
push 0
push 0
push 4
call fcn.00401c30
push 0xa
call fcn.00401cb0
push 0
call fcn.00401130
add esp, 0x14
mov ecx, 0x4221e0
push 5
call fcn.00406140
push 5
call fcn.00401cb0
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 4
xor esi, esi
mov edx, dword [0x421940]
push 0x1f4
push edx
inc esi
call edi
test eax, eax
je 0x401ea1
mov eax, esi
xor edx, edx
mov ecx, 0xe100
div ecx
test edx, edx
jne 0x401e68
push 5
mov ecx, 0x4221e0
call fcn.00406140
mov eax, esi
xor edx, edx
mov ecx, 0x15180
div ecx
test edx, edx
jne 0x401e87
push edx
call fcn.00401130
push 5
call fcn.00401cb0
add esp, 8
mov eax, esi
xor edx, edx
mov ecx, 0xe10
div ecx
test edx, edx
jne 0x401e3a
push edx
call fcn.00401150
add esp, 4
jmp 0x401e3a
push 0
push 0
push 1
call fcn.00401c30
add esp, 0xc
pop esi
pop edi
add esp, 0x104
ret
Function at 0x402410
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x410
test eax, eax
push esi
mov esi, dword [esp + 0x418]
push edi
je 0x402440
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x402440
pop edi
mov eax, 1
pop esi
add esp, 0x410
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x402459
pop edi
mov eax, 1
pop esi
add esp, 0x410
ret
call fcn.004039c0
test eax, eax
je 0x402485
push esi
call fcn.00402640
add esp, 4
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x410
ret
mov al, byte [0x42195c]
test al, al
jne 0x4024ae
push 0x104
push 0x42195c
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x420498
push 0x42195c
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x402631
lea ecx, [esp + 0x10c]
push ecx
call fcn.00402640
lea edx, [esp + 0x110]
lea eax, [esp + 0xc]
push edx
push 0x420490
push 0x103
push eax
call sub.MSVCRT.dll__snprintf
push 0x42048c
push 0x42195c
call sub.MSVCRT.dll_fopen
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x402557
push 0x420488
push 0x42195c
call sub.MSVCRT.dll_fopen
mov esi, eax
add esp, 8
test esi, esi
je 0x402631
push esi
call sub.MSVCRT.dll_rewind
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x215]
mov byte [esp + 0x214], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
lea ecx, [esp + 0x218]
push 0x208
push ecx
stosb byte es:[edi], al
call sub.MSVCRT.dll_fgets
add esp, 0x10
test eax, eax
je 0x4025d2
lea edx, [esp + 0x210]
push edx
call sub.MSVCRT.dll__strlwr
lea eax, [esp + 0x214]
push 0x42047c
push eax
call sub.MSVCRT.dll_strstr
add esp, 0xc
test eax, eax
jne 0x402602
push esi
lea ecx, [esp + 0x214]
push 0x208
push ecx
call sub.MSVCRT.dll_fgets
add esp, 0xc
test eax, eax
jne 0x402592
push esi
push 0x420470
call sub.MSVCRT.dll_fputs
lea edx, [esp + 0x10]
push esi
push edx
call sub.MSVCRT.dll_fputs
add esp, 0x10
push esi
call sub.MSVCRT.dll_fclose
add esp, 4
mov eax, 1
pop edi
pop esi
add esp, 0x410
ret
push 2
push 0
push esi
call sub.MSVCRT.dll_fseek
lea eax, [esp + 0x14]
push esi
push eax
call sub.MSVCRT.dll_fputs
add esp, 0x14
push esi
call sub.MSVCRT.dll_fclose
add esp, 4
mov eax, 1
pop edi
pop esi
add esp, 0x410
ret
pop edi
xor eax, eax
pop esi
add esp, 0x410
ret
Function at 0x4046e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x25c
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0x44
mov edx, dword [esp + 0x264]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
mov ecx, 0x81
mov dword [esp + 8], eax
lea edi, [esp + 0x59]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x58], al
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x268]
stosw word es:[edi], ax
push ecx
push edx
stosb byte es:[edi], al
push 0x4206a8
lea eax, [esp + 0x64]
push 0x207
push eax
call sub.MSVCRT.dll__snprintf
add esp, 0x14
lea ecx, [esp + 4]
lea edx, [esp + 0x14]
lea eax, [esp + 0x58]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x40477c
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add esp, 0x25c
ret
mov eax, dword [esp + 0x268]
test eax, eax
jbe 0x404793
mov ecx, dword [esp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov eax, 1
pop esi
add esp, 0x25c
ret

Function at 0x405120
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
push ebx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], bl
mov byte [esp + 0xc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [0x421fe8], ebx
jne 0x40516d
pop edi
xor eax, eax
pop ebx
add esp, 0x20c
ret 0x10
mov ecx, dword [esp + 0x218]
push esi
lea eax, [esp + 0x114]
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40521b
lea edx, [esp + 0x10]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x10]
push 0x4206b0
push eax
call esi
lea ecx, [esp + 0x114]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
lea edx, [esp + 0x10]
push eax
push edx
call esi
push 1
lea eax, [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
cmp esi, ebx
je 0x40521b
mov ecx, dword [esp + 0x220]
push ecx
push esi
call fcn.00405040
cmp eax, ebx
je 0x405214
mov ecx, dword [esp + 0x228]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x228]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov eax, ebx
pop edi
pop ebx
add esp, 0x20c
ret 0x10
Function at 0x4064a0
Capabilities:
Check if file exists
Delete file

Disassembly:
sub esp, 0x104
push esi
mov edx, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
add edx, 4
push eax
push edx
call fcn.00407330
add esp, 0xc
lea ecx, [esp + 8]
mov esi, eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x406500
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x406500
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
pop edi
pop esi
add esp, 0x104
ret

Function at 0x406510
Capabilities:
Check if file exists
Delete file

Disassembly:
sub esp, 0x104
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x110]
push 0x103
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.00407330
add esp, 0xc
lea edx, [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x406572
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x406572
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
pop edi
pop esi
add esp, 0x104
ret 4

Function at 0x406d30
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x406dff
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x406d80
cmp dword [esp + 4], 4
jne 0x406dff
mov eax, 1
add esp, 0x94
ret
cmp eax, 2
jne 0x406dff
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x406dc4
mov eax, dword [esp + 8]
test eax, eax
jne 0x406da2
mov eax, 2
add esp, 0x94
ret
cmp eax, 1
jne 0x406db3
mov eax, 3
add esp, 0x94
ret
cmp eax, 2
jne 0x406dff
mov eax, 4
add esp, 0x94
ret
cmp eax, 6
jne 0x406dff
mov eax, dword [esp + 8]
test eax, eax
jne 0x406ddd
mov eax, 5
add esp, 0x94
ret
cmp eax, 1
jne 0x406dee
mov eax, 6
add esp, 0x94
ret
cmp eax, 2
jne 0x406dff
mov eax, 7
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret
Function at 0x407010
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x104
push ebx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push 0x104
push eax
mov ebx, 0xffff
call fcn.00411ed0
add esp, 8
lea ecx, [esp + 8]
push 0x42080c
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40706f
or ax, bx
pop edi
pop ebx
add esp, 0x104
ret
lea eax, [esp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40709c
push 0x4207fc
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407095
call eax
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov ax, bx
pop edi
pop ebx
add esp, 0x104
ret

Function at 0x407630
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
push edi
lea ecx, [esi + 8]
call fcn.00409680
xor edx, edx
mov ecx, 0x41
xor eax, eax
lea edi, [esi + 0x118]
mov dword [esi], 0x41a79c
mov dword [esi + 4], edx
mov byte [esi + 0x14], dl
mov dword [esi + 0x21c], 0xffffffff
rep stosd dword es:[edi], eax
mov ecx, 0x63
lea edi, [esp + 0xa]
mov word [esp + 8], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret 4
Function at 0x409000
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push esi
push edi
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0xc]
mov dword [esp + 8], 0
push eax
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x409099
lea eax, [esp + 8]
mov dword [esp + 8], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x409092
lea ecx, [esp + 0x2c]
push 0x420b48
push ecx
call sub.MSVCRT.dll__mbsicmp
add esp, 8
test eax, eax
je 0x40907e
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x409092
lea eax, [esp + 0x2c]
push 0x420b48
push eax
call sub.MSVCRT.dll__mbsicmp
add esp, 8
test eax, eax
jne 0x409059
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
add esp, 0x128
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x128
ret
Function at 0x409440
Capabilities:
Check if file exists
Delete file

Disassembly:
sub esp, 0x208
push ebx
push ebp
mov ebp, dword [esp + 0x21c]
push esi
test ebp, ebp
push edi
je 0x409539
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x409539
mov esi, dword [esp + 0x220]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4094cc
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push esi
call fcn.0040c4d0
add esp, 8
lea ecx, [esp + 0x10]
push ebp
push ecx
call ebx
test eax, eax
jne 0x4094c1
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x409539
mov edx, dword [esp + 0x21c]
push 0
push 0xa
push esi
push edx
call fcn.00407200
add esp, 0x10
test eax, eax
je 0x409539
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x114]
push eax
push esi
call fcn.0040c4d0
add esp, 8
lea ecx, [esp + 0x114]
push ebp
push ecx
call ebx
test eax, eax
jne 0x409532
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret 0xc

Function at 0x40a560
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
sub esp, 0x104
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 4]
push 0x420bfc
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
pop edi
jne 0x40a5c6
push eax
lea eax, [esp + 4]
push eax
call fcn.00402df0
add esp, 8
test eax, eax
jne 0x40a5c6
add esp, 0x104
ret
mov ecx, dword [esp + 0x10c]
mov eax, dword [esp + 0x108]
lea edx, [esp]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, 1
add esp, 0x104
ret
Function at 0x40abb0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, ecx
push 0
lea ebp, [esi + 0x30]
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x40abd0
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push edi
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, ebx
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 8], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 8]
push eax
push ebx
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
pop edi
jne 0x40ac0a
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.0040a8b0
test eax, eax
jne 0x40ac21
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x14]
push 0x104
mov edx, eax
mov word [esi + 0xe], ax
mov eax, dword [esp + 0x1c]
shr edx, 0x10
mov ecx, eax
mov word [esi + 0x12], ax
mov eax, dword [esp + 0x20]
mov word [esi + 0xc], dx
shr ecx, 0x10
mov edx, eax
mov word [esi + 0x16], ax
mov eax, dword [esp + 0x24]
mov word [esi + 0x10], cx
mov ecx, eax
mov word [esi + 0x1a], ax
mov eax, dword [esp + 0x2c]
shr ecx, 0x10
shr edx, 0x10
mov word [esi + 0x18], cx
mov ecx, dword [esp + 0x30]
mov word [esi + 0x14], dx
mov edx, dword [esp + 0x28]
mov dword [esi + 0x24], ecx
lea ecx, [esi + 0x134]
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x34]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x38]
push ecx
push 0x420cb0
mov ecx, esi
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], eax
call fcn.0040aa30
test eax, eax
jne 0x40acab
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
lea edx, [esi + 0x33c]
push 0x104
push edx
push 0x420ca0
mov ecx, esi
call fcn.0040aa30
test eax, eax
jne 0x40acce
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
lea eax, [esi + 0x238]
push 0x104
push eax
push 0x420c94
mov ecx, esi
call fcn.0040aa30
neg eax
sbb eax, eax
pop esi
pop ebp
pop ebx
neg eax
add esp, 0x34
ret
Function at 0x40b8a0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x40c4d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x490
mov ecx, 8
xor eax, eax
push ebx
mov ebx, dword [esp + 0x49c]
push esi
push edi
mov edi, ebx
push 0
rep stosd dword es:[edi], eax
push 0
push 3
stosb byte es:[edi], al
mov eax, dword [esp + 0x4ac]
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c51c
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x490
ret
lea ecx, [esp + 0x44]
push ecx
call fcn.0040b8a0
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 4
lea edx, [esp + 0xc]
lea eax, [esp + 0x9c]
push 0
push edx
push 0x400
push eax
push esi
call edi
test eax, eax
je 0x40c583
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x40c583
lea ecx, [esp + 0x9c]
push eax
lea edx, [esp + 0x48]
push ecx
push edx
call fcn.0040b8d0
add esp, 0xc
lea eax, [esp + 0xc]
lea ecx, [esp + 0x9c]
push 0
push eax
push 0x400
push ecx
push esi
call edi
test eax, eax
jne 0x40c54a
lea edx, [esp + 0x44]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.0040b980
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea edi, [esp + 0x20]
xor ecx, ecx
mov cl, byte [esp + esi + 0x10]
push ecx
push 0x420a18
push 2
push edi
call sub.MSVCRT.dll__snprintf
add esp, 0x10
inc esi
add edi, 2
cmp esi, 0x10
jl 0x40c5a2
mov ecx, 8
lea esi, [esp + 0x20]
mov edi, ebx
mov al, 1
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
add esp, 0x490
ret

Function at 0x40cd10
Capabilities:
Check if file exists
Copy file

Disassembly:
sub esp, 0x208
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov esi, dword [esp + 0x218]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0x104
push eax
push esi
call fcn.00413360
add esp, 0xc
test eax, eax
jne 0x40cd58
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x208
ret
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea ecx, [esp + 0xc]
push ecx
call ebp
test eax, eax
jne 0x40cdb9
mov ecx, 0x40
lea edi, [esp + 0x111]
mov byte [esp + 0x110], al
lea edx, [esp + 0x110]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push esi
stosb byte es:[edi], al
call fcn.0040ce30
add esp, 8
test eax, eax
je 0x40cd4c
lea eax, [esp + 0x110]
push eax
call ebp
test eax, eax
je 0x40cd4c
lea ecx, [esp + 0xc]
push 0
lea edx, [esp + 0x114]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [esp + 0x21c]
lea eax, [esp + 0xc]
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x208
ret
Function at 0x40d160
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x208
push ebp
push esi
push edi
call fcn.00403a60
test eax, eax
je 0x40d257
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x21c]
test eax, eax
je 0x40d1b2
call fcn.00410e70
test al, al
je 0x40d1b2
lea eax, [esp + 0xc]
push 2
push eax
push 9
call fcn.0040cde0
add esp, 0xc
jmp 0x40d1c1
lea ecx, [esp + 0xc]
push ecx
push 9
call fcn.0040cd10
add esp, 8
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40d3cf
mov ebp, dword [esp + 0x218]
cmp ebp, 1
jne 0x40d20e
mov esi, 0x420f00
xor edi, edi
call fcn.00403a60
test eax, eax
je 0x40d21d
call fcn.0040d3e0
test eax, eax
jne 0x40d3d1
push eax
lea eax, [esp + 0x10]
push esi
push eax
call fcn.00410380
jmp 0x40d3a5
cmp ebp, 2
jne 0x40d229
mov esi, 0x420efc
mov edi, 0x1388
push edi
lea ecx, [esp + 0x10]
push esi
push ecx
jmp 0x40d3a0
cmp ebp, 4
jne 0x40d244
mov edi, 0x1388
mov esi, 0x420ef8
push edi
lea ecx, [esp + 0x10]
push esi
push ecx
jmp 0x40d3a0
xor edi, edi
mov esi, 0x422a38
push edi
lea ecx, [esp + 0x10]
push esi
push ecx
jmp 0x40d3a0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x21c]
test eax, eax
je 0x40d2ae
call fcn.00410e70
test al, al
je 0x40d2ae
lea edx, [esp + 0xc]
push 4
push edx
push 1
call fcn.0040cde0
add esp, 0xc
jmp 0x40d2bd
lea eax, [esp + 0xc]
push eax
push 1
call fcn.0040cd10
add esp, 8
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40d3cf
lea edx, [esp + 0xc]
push 0x104
lea eax, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x40d3cf
mov ebp, dword [esp + 0x218]
cmp ebp, 3
jne 0x40d30a
lea ecx, [esp + 0xc]
mov ebp, 1
push ecx
push 0x420ee8
jmp 0x40d37b
cmp ebp, 1
jne 0x40d31b
lea ecx, [esp + 0xc]
push ecx
push 0x420ee8
jmp 0x40d37b
cmp ebp, 2
jne 0x40d346
lea eax, [esp + 0xc]
lea ecx, [esp + 0x110]
push eax
push 0x420ed8
push 0x103
push ecx
call sub.MSVCRT.dll__snprintf
add esp, 0x10
mov eax, 0x1388
jmp 0x40d392
cmp ebp, 4
jne 0x40d371
lea edx, [esp + 0xc]
lea eax, [esp + 0x110]
push edx
push 0x420ec8
push 0x103
push eax
call sub.MSVCRT.dll__snprintf
add esp, 0x10
mov eax, 0x1388
jmp 0x40d392
lea ecx, [esp + 0xc]
push ecx
push 0x420ebc
lea edx, [esp + 0x118]
push 0x103
push edx
call sub.MSVCRT.dll__snprintf
add esp, 0x10
xor eax, eax
push eax
lea eax, [esp + 0x114]
push eax
push 0x420eac
call fcn.004046e0
add esp, 0xc
test eax, eax
jne 0x40d3d1
cmp dword [esp + 0x21c], 1
jne 0x40d3d1
cmp ebp, 3
jne 0x40d3d1
push eax
push ebp
call fcn.0040d160
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x208
ret
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x208
ret
Function at 0x40e570
Capabilities:
Copy file
Delete file
Move file

Disassembly:
sub esp, 0x104
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x118]
push 0x104
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x104
lea ecx, [esp + 0xc]
push 0x420f44
push ecx
call fcn.00404560
mov eax, dword [esp + 0x120]
add esp, 0xc
lea edx, [esp + 8]
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40e5de
pop edi
pop esi
add esp, 0x104
ret
lea ecx, [esp + 8]
push esi
push ecx
call sub.MSVCRT.dll_rename
add esp, 8
test eax, eax
je 0x40e606
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
xor eax, eax
pop esi
add esp, 0x104
ret
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret