joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bd7e
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
push edi
cmp dword [ebp + 8], 0
je 0x40bd9e
mov eax, dword [ebp + 8]
push eax
call fcn.00430d40
add esp, 4
test eax, eax
jne 0x40bda5
xor eax, eax
jmp 0x40bf8b
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40bdbf
xor eax, eax
jmp 0x40bf8b
mov edx, dword [ebp - 8]
and edx, 1
test edx, edx
je 0x40bddf
mov eax, dword [ebp - 8]
and al, 0xfe
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
and eax, 0x10
test eax, eax
je 0x40bf5e
mov byte [ebp - 0x10c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x10c]
push edx
call fcn.00430c50
add esp, 8
push 0x5b7f00
lea eax, [ebp - 0x10c]
push eax
call fcn.00430c60
add esp, 8
mov dword [ebp - 0x24c], 0
mov ecx, 0x4f
xor eax, eax
lea edi, [ebp - 0x248]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0xffffffff
je 0x40bf32
push 0x5b7f04
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40bea0
push 0x5b7f08
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40bea2
jmp 0x40bf09
mov byte [ebp - 0x354], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x353]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x354]
push eax
call fcn.00430c50
add esp, 8
push 0x5b7f0c
lea ecx, [ebp - 0x354]
push ecx
call fcn.00430c60
add esp, 8
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x354]
push eax
call fcn.00430c60
add esp, 8
push 0
lea ecx, [ebp - 0x354]
push ecx
call fcn.0040bd7e
add esp, 8
lea edx, [ebp - 0x24c]
push edx
mov eax, dword [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40be74
mov ecx, dword [ebp - 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40bf5c
cmp dword [ebp + 0xc], 0
je 0x40bf5c
push 4
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 4], eax
jmp 0x40bf88
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40bf88
cmp dword [ebp + 0xc], 0
je 0x40bf88
push 4
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40bf90
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
push edi
cmp dword [ebp + 8], 0
je 0x40bfb0
mov eax, dword [ebp + 8]
push eax
call fcn.0043139f
add esp, 4
test eax, eax
jne 0x40bfb7
xor eax, eax
jmp 0x40c1b8
mov dword [ebp - 8], 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00408aad
add esp, 0x1c
test eax, eax
je 0x40bfe2
cmp dword [ebp - 8], 0xffffffff
jne 0x40bfe9
xor eax, eax
jmp 0x40c1b8
mov eax, dword [ebp - 8]
and eax, 1
test eax, eax
je 0x40c00a
mov ecx, dword [ebp - 8]
and ecx, 0xfffffffe
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 8]
and ecx, 0x10
test ecx, ecx
je 0x40c18b
mov word [ebp - 0x210], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.0043137a
add esp, 8
push 0x5b7f10
lea ecx, [ebp - 0x210]
push ecx
call fcn.00431350
add esp, 8
mov dword [ebp - 0x460], 0
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x45c]
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x460]
push edx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x464], eax
cmp dword [ebp - 0x464], 0xffffffff
je 0x40c15f
push 0x5b7f18
lea ecx, [ebp - 0x434]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40c0cc
push 0x5b7f20
lea edx, [ebp - 0x434]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40c0ce
jmp 0x40c136
mov word [ebp - 0x66c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x66a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x66c]
push ecx
call fcn.0043137a
add esp, 8
push 0x5b7f24
lea edx, [ebp - 0x66c]
push edx
call fcn.00431350
add esp, 8
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x66c]
push ecx
call fcn.00431350
add esp, 8
push 0
lea edx, [ebp - 0x66c]
push edx
call fcn.0040bf90
add esp, 8
lea eax, [ebp - 0x460]
push eax
mov ecx, dword [ebp - 0x464]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c0a0
mov edx, dword [ebp - 0x464]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40c189
cmp dword [ebp + 0xc], 0
je 0x40c189
push 4
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 4], eax
jmp 0x40c1b5
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40c1b5
cmp dword [ebp + 0xc], 0
je 0x40c1b5
push 4
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40c814
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push edi
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40c861
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040e7e7
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x40c97a
mov edx, dword [ebp - 8]
and edx, 1
test edx, edx
je 0x40c881
mov eax, dword [ebp - 8]
and al, 0xfe
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 8]
and eax, 0x10
test eax, eax
je 0x40c956
mov byte [ebp - 0x208], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x5b7fd0
lea edx, [ebp - 0x208]
push edx
call fcn.004312be
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x210], 0
cmp dword [ebp - 0x20c], 0xffffffff
je 0x40c945
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x5b7fdc
lea edx, [ebp - 0x208]
push edx
call fcn.004312be
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x20c], eax
mov ecx, dword [ebp - 0x210]
add ecx, 1
mov dword [ebp - 0x210], ecx
cmp dword [ebp - 0x210], 0xa
jl 0x40c943
xor eax, eax
jmp 0x40c97a
jmp 0x40c8e4
lea edx, [ebp - 0x208]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040e7e7
add esp, 4
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40cf90
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.0045c010
test eax, eax
je 0x40cfb6
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x40d069
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x40cfc9
cmp dword [ebp + 0x10], 0
jne 0x40cfce
jmp 0x40d066
mov eax, dword [ebp + 0x10]
shl eax, 1
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00431600
add esp, 0xc
mov edx, dword [ebp + 0x10]
push edx
call fcn.005568c8
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40cfff
jmp 0x40d066
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00431600
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40d05c
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 8]
push edx
call fcn.0041a438
add esp, 0x10
test eax, eax
je 0x40d05c
mov eax, dword [ebp + 0xc]
push eax
call fcn.0043139f
add esp, 4
mov dword [ebp - 4], eax
xor ecx, ecx
test ecx, ecx
jne 0x40cfbd
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40d0e3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0x200
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
jmp 0x40d110
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jge 0x40d1ff
cmp dword [ebp - 8], 1
jne 0x40d127
mov dword [ebp - 0xc], 0x400
cmp dword [ebp - 8], 2
jne 0x40d18d
mov dword [ebp - 0x28], 0
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x2c], 0
push 0
lea edx, [ebp - 0x2c]
push edx
push 0x18
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0x70000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40d177
mov eax, dword [ebp - 4]
jmp 0x40d20a
cmp dword [ebp - 0x14], 0x200
jb 0x40d188
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
jmp 0x40d18d
mov eax, dword [ebp - 4]
jmp 0x40d20a
mov eax, dword [ebp - 0xc]
push eax
call fcn.005568c8
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x30]
mov dword [ecx], edx
mov eax, dword [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call fcn.00431600
add esp, 0xc
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40d1dd
jmp 0x40d1ff
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.005568f1
add esp, 4
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
jmp 0x40d107
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40d20e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push edi
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ax, word [0x5b8044]
mov word [ebp - 0x10c], ax
mov cl, byte [0x5b8046]
mov byte [ebp - 0x10a], cl
mov dword [ebp - 0x108], 0
cmp dword [ebp + 8], 0
je 0x40d260
cmp dword [ebp + 8], 1
jne 0x40d278
call fcn.0045bfc0
test eax, eax
jne 0x40d278
mov dword [ebp - 0x108], 4
jmp 0x40d317
mov edx, dword [ebp + 8]
add edx, 0x41
mov byte [ebp - 0x10c], dl
push 0x103
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jbe 0x40d30d
cmp dword [ebp - 0x110], 0x104
jae 0x40d30d
lea edx, [ebp - 0x104]
push edx
call fcn.004146a0
add esp, 4
push str.cdrom
lea eax, [ebp - 0x104]
push eax
call fcn.00414660
add esp, 8
test eax, eax
je 0x40d2e9
mov dword [ebp - 0x108], 5
push str.floppy
lea ecx, [ebp - 0x104]
push ecx
call fcn.00414660
add esp, 8
test eax, eax
je 0x40d30b
mov dword [ebp - 0x108], 4
jmp 0x40d317
mov dword [ebp - 0x108], 0
mov eax, dword [ebp - 0x108]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40d322
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push edi
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x40d33f
cmp dword [ebp + 0x10], 0x200
je 0x40d344
jmp 0x40d52f
mov word [ebp - 0x30], 0
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x2e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0x20
push 0
lea eax, [ebp - 0x30]
push eax
call fcn.00431600
add esp, 0xc
mov dword [ebp - 8], 0
mov ecx, dword [0x5b8058]
mov dword [ebp - 0x3c], ecx
mov edx, dword [0x5b805c]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp + 8]
add eax, 0x41
mov word [ebp - 0x3c], ax
push 0x10
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
push 0
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x40d3c4
mov dword [ebp - 8], 1
mov dword [ebp - 0x34], 0
cmp dword [ebp - 8], 0
je 0x40d4d2
lea eax, [ebp - 0x30]
push eax
call fcn.0043139f
add esp, 4
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], 1
push 5
push 0x5b8060
mov ecx, dword [ebp + 0xc]
add ecx, 0x36
push ecx
call fcn.00438630
add esp, 0xc
test eax, eax
jne 0x40d44b
cmp dword [ebp - 0x40], 5
jne 0x40d422
push 5
push 0x5b8068
lea edx, [ebp - 0x30]
push edx
call fcn.0052f7d2
add esp, 0xc
test eax, eax
je 0x40d43f
cmp dword [ebp - 0x40], 3
jne 0x40d44b
push 3
push 0x5b8074
lea eax, [ebp - 0x30]
push eax
call fcn.0052f7d2
add esp, 0xc
test eax, eax
jne 0x40d44b
mov dword [ebp - 4], 3
jmp 0x40d4d2
push 5
push str.FAT12
mov ecx, dword [ebp + 0xc]
add ecx, 0x36
push ecx
call fcn.00438630
add esp, 0xc
test eax, eax
jne 0x40d48b
cmp dword [ebp - 0x40], 3
jne 0x40d48b
push 3
push 0x5b8084
lea edx, [ebp - 0x30]
push edx
call fcn.0052f7d2
add esp, 0xc
test eax, eax
jne 0x40d48b
mov dword [ebp - 4], 3
jmp 0x40d4d2
push 5
push 0x5b808c
mov eax, dword [ebp + 0xc]
add eax, 0x52
push eax
call fcn.00438630
add esp, 0xc
test eax, eax
jne 0x40d4cb
cmp dword [ebp - 0x40], 5
jne 0x40d4cb
push 5
push 0x5b8094
lea ecx, [ebp - 0x30]
push ecx
call fcn.0052f7d2
add esp, 0xc
test eax, eax
jne 0x40d4cb
mov dword [ebp - 4], 2
jmp 0x40d4d2
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x34], 0
jne 0x40d525
push 5
push 0x5b80a0
mov edx, dword [ebp + 0xc]
add edx, 3
push edx
call fcn.00438630
add esp, 0xc
test eax, eax
jne 0x40d4fb
mov dword [ebp - 4], 5
jmp 0x40d525
push 4
push 0x5b80a8
mov eax, dword [ebp + 0xc]
add eax, 3
push eax
call fcn.00438630
add esp, 0xc
test eax, eax
jne 0x40d51e
mov dword [ebp - 4], 1
jmp 0x40d525
mov dword [ebp - 4], 0
xor ecx, ecx
test ecx, ecx
jne 0x40d330
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40ed0a
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
je 0x40ed1c
cmp dword [ebp + 0xc], 0
jne 0x40ed23
xor eax, eax
jmp 0x40edbb
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
cmp dword [0x5d7ddc], 0
jne 0x40ed6e
push 0x5b843c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40ed63
push str.GetComputerNameExW
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5d7ddc], eax
cmp dword [0x5d7ddc], 0
jne 0x40ed6e
jmp 0x40ed89
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call dword [0x5d7ddc]
mov dword [ebp - 4], eax
xor eax, eax
test eax, eax
jne 0x40ed32
cmp dword [ebp - 4], 0
je 0x40ed9f
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043139f
add esp, 4
test eax, eax
jne 0x40edb8
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4109b0
Capabilities:
Check if file exists
Get disk size
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56fc04
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x41c
push edi
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0
jne 0x4109e1
jmp 0x410b1a
cmp dword [ebp + 0xc], 0
jne 0x4109f8
cmp dword [ebp + 0x10], 0
jne 0x4109f8
cmp dword [ebp + 0x14], 0
jne 0x4109f8
jmp 0x410b1a
mov word [ebp - 0x420], 0
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x41e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x424], 0xffffffff
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x428]
call fcn.00449fa0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x428]
call fcn.00403620
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0xffffffff
je 0x410a89
mov ecx, dword [ebp - 0x424]
and ecx, 0x10
test ecx, ecx
je 0x410a89
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x428]
call fcn.00403620
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x410a89
jmp 0x410afe
push 0x410
push 0
lea edx, [ebp - 0x420]
push edx
call fcn.00431600
add esp, 0xc
push 0x207
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x428]
call fcn.00403620
push eax
call fcn.0045f9a0
add esp, 0xc
test eax, eax
je 0x410aef
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x428]
call fcn.00403df0
test eax, eax
jne 0x410adb
jmp 0x410afe
lea edx, [ebp - 0x420]
push edx
lea ecx, [ebp - 0x428]
call fcn.0044aaf0
jmp 0x410af1
jmp 0x410afe
mov eax, 1
test eax, eax
jne 0x410a32
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.0044a810
xor ecx, ecx
test ecx, ecx
jne 0x4109d6
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x413469
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x4134bc
cmp dword [ebp + 0x10], 0
je 0x413496
push 0
mov eax, dword [ebp + 0x10]
push eax
call fcn.004678c0
add esp, 8
test eax, eax
je 0x413496
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004680c0
add esp, 4
cmp dword [ebp + 0x14], 0
je 0x4134ba
push 0
mov edx, dword [ebp + 0x14]
push edx
call fcn.004678c0
add esp, 8
test eax, eax
je 0x4134ba
mov eax, dword [ebp + 0x14]
push eax
call fcn.004680c0
add esp, 4
jmp 0x413528
cmp dword [ebp + 0xc], 0
je 0x413528
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004678c0
add esp, 8
test eax, eax
je 0x413528
cmp dword [ebp + 0x10], 0
je 0x4134fe
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004133c6
add esp, 8
test eax, eax
jne 0x4134fe
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp + 0x14], 0
je 0x413528
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004133c6
add esp, 8
test eax, eax
jne 0x413528
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop ebp
ret

Function at 0x41352a
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x4135ef
cmp dword [ebp + 0x14], 0
je 0x413575
push 0
mov eax, dword [ebp + 0x14]
push eax
call fcn.004678c0
add esp, 8
test eax, eax
je 0x413575
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.004133c6
add esp, 8
test eax, eax
jne 0x413573
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x4135ef
cmp dword [ebp + 0x10], 0
je 0x4135b3
push 0
mov edx, dword [ebp + 0x10]
push edx
call fcn.004678c0
add esp, 8
test eax, eax
je 0x4135b3
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004133c6
add esp, 8
test eax, eax
jne 0x4135b1
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x4135ef
cmp dword [ebp + 0xc], 0
je 0x4135ef
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004678c0
add esp, 8
test eax, eax
je 0x4135ef
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004133c6
add esp, 8
test eax, eax
jne 0x4135ef
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop ebp
ret