joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56291452
Capabilities:
Clear file content

Disassembly:
push ebp
mov eax, 0x100c
mov ebp, esp
call fcn.562a34b5
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
push 1
push 0
push esi
call fcn.5629634f
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x56291578
push 2
push 0
push esi
call fcn.5629634f
add esp, 0xc
cmp eax, 0xffffffff
je 0x56291578
mov ecx, dword [ebp + 0xc]
mov ebx, ecx
sub ebx, eax
test ebx, ebx
jle 0x56291531
lea edi, [ebp - 0x100c]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.56299b8e
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, 0x1000
cmp ebx, eax
jge 0x562914d5
mov eax, ebx
push eax
lea ecx, [ebp - 0x100c]
push ecx
push esi
call fcn.5629d94d
add esp, 0xc
mov edi, eax
cmp edi, 0xffffffff
je 0x56291517
sub ebx, edi
test ebx, ebx
jg 0x562914ca
push dword [ebp - 0xc]
push esi
call fcn.56299b8e
add esp, 8
push 0
push dword [ebp - 8]
push esi
call fcn.5629634f
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call sym.MSVCRT20.dll___doserrno
cmp dword [eax], 5
jne 0x5629152c
call sym.MSVCRT20.dll__errno
mov dword [eax], 0xd
mov dword [ebp - 4], edi
jmp 0x562914f3
jge 0x562914ff
push 0
push ecx
push esi
call fcn.5629634f
add esp, 0xc
push esi
call sym.MSVCRT20.dll__get_osfhandle
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ecx, ecx
mov dword [ebp - 4], ecx
cmp ecx, 0xffffffff
jne 0x562914ff
call sym.MSVCRT20.dll__errno
mov dword [eax], 0xd
call sym.MSVCRT20.dll___doserrno
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
jmp 0x562914ff
mov eax, 0xffffffff
jmp 0x56291510
Function at 0x56293b19
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
lea eax, [ebp - 0x144]
push esi
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x56293b88
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x56293b57
cmp eax, 3
jbe 0x56293b6e
cmp eax, 8
je 0x56293b7b
cmp eax, 0x12
je 0x56293b6e
call sym.MSVCRT20.dll__errno
mov dword [eax], 0x16
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call sym.MSVCRT20.dll__errno
mov dword [eax], 2
jmp 0x56293b62
call sym.MSVCRT20.dll__errno
mov dword [eax], 0xc
jmp 0x56293b62
cmp dword [ebp - 0x144], 0x80
jne 0x56293c0a
mov ebx, dword [ebp + 0xc]
mov dword [ebx], 0
lea eax, [ebp - 0x140]
push eax
call fcn.56293d34
add esp, 4
mov dword [ebx + 4], eax
lea eax, [ebp - 0x138]
push eax
call fcn.56293d34
add esp, 4
mov dword [ebx + 8], eax
lea eax, [ebp - 0x130]
lea edi, [ebp - 0x118]
push eax
call fcn.56293d34
add esp, 4
mov ecx, 0xffffffff
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x124]
mov dword [ebx + 0x10], eax
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
lea edi, [ebx + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 4]
jmp 0x56293b67
mov eax, dword [ebp - 0x144]
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
jmp 0x56293b9d

Function at 0x56293c17
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
lea eax, [ebp - 0x140]
push esi
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x56293c82
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x56293c51
cmp eax, 3
jbe 0x56293c68
cmp eax, 8
je 0x56293c75
cmp eax, 0x12
je 0x56293c68
call sym.MSVCRT20.dll__errno
mov dword [eax], 0x16
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call sym.MSVCRT20.dll__errno
mov dword [eax], 2
jmp 0x56293c5c
call sym.MSVCRT20.dll__errno
mov dword [eax], 0xc
jmp 0x56293c5c
cmp dword [ebp - 0x140], 0x80
jne 0x56293d03
mov ebx, dword [ebp + 0xc]
mov dword [ebx], 0
lea eax, [ebp - 0x13c]
push eax
call fcn.56293d34
add esp, 4
mov dword [ebx + 4], eax
lea eax, [ebp - 0x134]
push eax
call fcn.56293d34
add esp, 4
mov dword [ebx + 8], eax
lea eax, [ebp - 0x12c]
lea edi, [ebp - 0x114]
push eax
call fcn.56293d34
add esp, 4
mov ecx, 0xffffffff
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x120]
mov dword [ebx + 0x10], eax
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
lea edi, [ebx + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
jmp 0x56293c61
mov eax, dword [ebp - 0x140]
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
jmp 0x56293c97
Function at 0x562945c7
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x562945ec
lea eax, [ebp - 0xc]
lea esi, [ebp - 0x10]
push eax
call sym.MSVCRT20.dll_time
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
lea eax, [esi + 4]
push eax
call sym.MSVCRT20.dll_localtime
add esp, 4
test eax, eax
je 0x562946ee
mov ecx, dword [eax + 0x14]
add cx, 0x76c
mov word [ebp - 0x30], cx
mov ecx, dword [eax + 0x10]
inc cx
mov word [ebp - 0x2e], cx
mov edx, dword [eax + 0xc]
mov word [ebp - 0x2a], dx
mov ebx, dword [eax + 8]
lea edx, [ebp - 8]
mov word [ebp - 0x28], bx
push edx
mov ecx, dword [eax + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov word [ebp - 0x26], cx
lea ecx, [ebp - 0x30]
mov eax, dword [eax]
push ecx
mov word [ebp - 0x22], 0
mov word [ebp - 0x24], ax
call ebx
test eax, eax
je 0x562946ee
lea eax, [ebp - 0x20]
lea ecx, [ebp - 8]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push ecx
call edi
test eax, eax
je 0x562946ee
push esi
call sym.MSVCRT20.dll_localtime
add esp, 4
test eax, eax
je 0x562946ee
mov ecx, dword [eax + 0x14]
add cx, 0x76c
mov word [ebp - 0x30], cx
mov ecx, dword [eax + 0x10]
inc cx
mov word [ebp - 0x2e], cx
mov edx, dword [eax + 0xc]
mov word [ebp - 0x2a], dx
mov esi, dword [eax + 8]
lea edx, [ebp - 8]
mov word [ebp - 0x28], si
push edx
mov ecx, dword [eax + 4]
mov word [ebp - 0x26], cx
lea ecx, [ebp - 0x30]
mov eax, dword [eax]
push ecx
mov word [ebp - 0x22], 0
mov word [ebp - 0x24], ax
call ebx
test eax, eax
je 0x562946ee
lea eax, [ebp - 0x18]
lea ecx, [ebp - 8]
push eax
push ecx
call edi
test eax, eax
je 0x562946ee
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x18]
push eax
push ecx
push 0
push dword [ebp + 8]
call sym.MSVCRT20.dll__get_osfhandle
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x562946ee
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call sym.MSVCRT20.dll__errno
mov dword [eax], 0x16
mov eax, 0xffffffff
jmp 0x562946e7
Function at 0x56294d51
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x56294df6
push ebx
call fcn.56294e4d
add esp, 4
test eax, eax
jne 0x56294d92
call sym.MSVCRT20.dll___doserrno
mov dword [eax], 0xf
call sym.MSVCRT20.dll__errno
mov dword [eax], 0xd
xor eax, eax
jmp 0x56294e46
add bl, 0x40
lea eax, [ebp - 8]
push eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10c]
lea ebx, [ebp - 4]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x2e
mov byte [ebp - 1], 0
push ecx
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x56294d8b
inc eax
cmp eax, 0x104
ja 0x56294d8b
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x56294e0a
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
jg 0x56294dda
mov eax, ecx
push eax
call sym.MSVCRT20.dll_malloc
add esp, 4
mov edx, eax
test edx, edx
jne 0x56294e1f
call sym.MSVCRT20.dll__errno
mov dword [eax], 0xc
jmp 0x56294d8b
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
jmp 0x56294dbe
cmp eax, dword [ebp + 0x10]
jle 0x56294e1f
call sym.MSVCRT20.dll__errno
mov dword [eax], 0x22
jmp 0x56294d8b
lea edi, [ebp - 0x10c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x56294e5f
Capabilities:
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
mov esi, 0x562b1a6c
lea edi, [ebp - 4]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x56294edd
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp byte [ebp - 0x108], 0x5c
jne 0x56294ea9
cmp byte [ebp - 0x107], 0x5c
jne 0x56294ea9
mov eax, 0x57
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0x108]
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], al
push ecx
lea eax, [ecx + 4]
lea edx, [ecx + 0xc]
push eax
push edx
add ecx, 8
push ecx
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
mov eax, 0
jne 0x56294ea3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x56294ea3
cmp eax, 0x1a
jbe 0x56294ee9
mov eax, 0x57
jmp 0x56294ea3
add al, 0x40
jmp 0x56294eaf

Function at 0x56298a7d
Capabilities:
Create directory

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
mov eax, 0
jne 0x56298a98
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x56298aab
push eax
call fcn.56290737
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
jmp 0x56298aaa
Function at 0x562993a1
Capabilities:
Create pipe

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
sub esp, 0x14
push ebx
mov dword [ebp - 0x10], eax
push esi
mov dword [ebp - 0xc], eax
push edi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x14], 0xc
test esi, 0x80
jne 0x562993cb
mov dword [ebp - 0xc], 1
lea ecx, [ebp - 0x14]
lea edx, [ebp - 4]
push dword [ebp + 0xc]
push ecx
push edx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x562993ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.56290737
add esp, 4
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.562947a4
mov edi, dword [ebp + 8]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x562994d8
mov byte [eax + 0x562b2fe0], 0x89
call fcn.562947a4
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x562994c2
mov byte [eax + 0x562b2fe0], 0x89
test esi, 0x8000
je 0x5629944c
mov eax, dword [edi]
and byte [eax + 0x562b2fe0], 0x7f
mov ecx, dword [edi + 4]
and byte [ecx + 0x562b2fe0], 0x7f
push dword [ebp - 8]
push dword [edi]
call fcn.56294815
add esp, 8
push dword [ebp - 4]
push dword [edi + 4]
call fcn.56294815
add esp, 8
call sym.MSVCRT20.dll__errno
mov dword [eax], 0
mov eax, dword [edi + 4]
add eax, 0x42
push eax
call fcn.562810c3
add esp, 4
mov eax, dword [edi]
add eax, 0x42
push eax
call fcn.562810c3
add esp, 4
call sym.MSVCRT20.dll__errno
cmp dword [eax], 0
mov eax, 0
je 0x562993f8
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 4]
call esi
call sym.MSVCRT20.dll___doserrno
mov dword [eax], 0
jmp 0x562993f3
mov eax, dword [edi]
mov byte [eax + 0x562b2fe0], 0
call sym.MSVCRT20.dll__errno
mov dword [eax], 0x18
jmp 0x56299481
call sym.MSVCRT20.dll__errno
mov dword [eax], 0x18
jmp 0x5629948f
Function at 0x5629992c
Capabilities:
Delete directory

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
mov eax, 0
jne 0x56299945
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x56299958
push eax
call fcn.56290737
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
jmp 0x56299957
Function at 0x5629b6b1
Capabilities:
Delete file

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov eax, 0
jne 0x5629b6ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5629b6dd
push eax
call fcn.56290737
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
jmp 0x5629b6dc

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5629b7e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.56290737
add esp, 4
mov eax, 0xffffffff
ret
test al, 1
je 0x5629b808
test byte [esp + 8], 2
je 0x5629b808
call sym.MSVCRT20.dll__errno
mov dword [eax], 0xd
call sym.MSVCRT20.dll___doserrno
mov dword [eax], 5
mov eax, 0xffffffff
jmp 0x5629b7df
xor eax, eax
jmp 0x5629b7df

Function at 0x5629b93e
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x5629b9a8
lea eax, [ebp - 0x214]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x5629b9a8
push dword [ebp - 0x214]
mov word [ebp - 8], 0x3d
call sym.MSVCRT20.dll_towupper
mov word [ebp - 6], ax
add esp, 4
lea eax, [ebp - 0x214]
lea ecx, [ebp - 8]
mov word [ebp - 4], 0x3a
mov word [ebp - 2], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
mov eax, 0
jne 0x5629b9bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.56290737
add esp, 4
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x5629b9c0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5629b9eb
test byte [esp + 0xc], 0x80
je 0x5629ba01
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
mov eax, 0
jne 0x5629b9ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.56290737
add esp, 4
mov eax, 0xffffffff
pop esi
ret
or al, 1
jmp 0x5629b9da
Function at 0x5629c518
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
lea eax, [ebp - 0x250]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov edi, eax
jne 0x5629c584
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x5629c554
cmp eax, 3
jbe 0x5629c56a
cmp eax, 8
je 0x5629c577
cmp eax, 0x12
je 0x5629c56a
call sym.MSVCRT20.dll__errno
mov dword [eax], 0x16
mov eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call sym.MSVCRT20.dll__errno
mov dword [eax], 2
jmp 0x5629c55f
call sym.MSVCRT20.dll__errno
mov dword [eax], 0xc
jmp 0x5629c55f
cmp dword [ebp - 0x250], 0x80
jne 0x5629c5f2
mov esi, dword [ebp + 0xc]
mov dword [esi], 0
lea eax, [ebp - 0x24c]
push eax
call fcn.5629c6e1
add esp, 4
mov dword [esi + 4], eax
lea eax, [ebp - 0x244]
push eax
call fcn.5629c6e1
add esp, 4
mov dword [esi + 8], eax
lea eax, [ebp - 0x23c]
push eax
call fcn.5629c6e1
mov dword [esi + 0xc], eax
add esp, 4
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x224]
mov dword [esi + 0x10], eax
push ecx
add esi, 0x14
push esi
call sym.MSVCRT20.dll_wcscpy
add esp, 8
mov eax, edi
jmp 0x5629c564
mov eax, dword [ebp - 0x250]
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
jmp 0x5629c599

Function at 0x5629c5ff
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x5629c666
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x5629c637
cmp eax, 3
jbe 0x5629c64c
cmp eax, 8
je 0x5629c659
cmp eax, 0x12
je 0x5629c64c
call sym.MSVCRT20.dll__errno
mov dword [eax], 0x16
mov eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
call sym.MSVCRT20.dll__errno
mov dword [eax], 2
jmp 0x5629c642
call sym.MSVCRT20.dll__errno
mov dword [eax], 0xc
jmp 0x5629c642
cmp dword [ebp - 0x250], 0x80
jne 0x5629c6d4
mov esi, dword [ebp + 0xc]
mov dword [esi], 0
lea eax, [ebp - 0x24c]
push eax
call fcn.5629c6e1
add esp, 4
mov dword [esi + 4], eax
lea eax, [ebp - 0x244]
push eax
call fcn.5629c6e1
add esp, 4
mov dword [esi + 8], eax
lea eax, [ebp - 0x23c]
push eax
call fcn.5629c6e1
mov dword [esi + 0xc], eax
add esp, 4
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x224]
mov dword [esi + 0x10], eax
push ecx
add esi, 0x14
push esi
call sym.MSVCRT20.dll_wcscpy
add esp, 8
xor eax, eax
jmp 0x5629c647
mov eax, dword [ebp - 0x250]
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
jmp 0x5629c67b
Function at 0x5629cbca
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5629cc77
push esi
call fcn.56294e4d
add esp, 4
test eax, eax
jne 0x5629cc09
call sym.MSVCRT20.dll___doserrno
mov dword [eax], 0xf
call sym.MSVCRT20.dll__errno
mov dword [eax], 0xd
xor eax, eax
jmp 0x5629ccb0
add si, 0x40
lea eax, [ebp - 4]
mov word [ebp - 0xc], si
push eax
lea ecx, [ebp - 0x214]
lea esi, [ebp - 0xc]
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x2e
mov word [ebp - 6], 0
push ecx
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x5629cc02
inc eax
cmp eax, 0x104
ja 0x5629cc02
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x5629cc8b
mov ecx, dword [ebp + 0x10]
cmp ecx, eax
jg 0x5629cc59
mov ecx, eax
add ecx, ecx
push ecx
call sym.MSVCRT20.dll_malloc
add esp, 4
mov ecx, eax
test ecx, ecx
jne 0x5629cca0
call sym.MSVCRT20.dll__errno
mov dword [eax], 0xc
jmp 0x5629cc02
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x5629cc3d
cmp dword [ebp + 0x10], eax
jge 0x5629cca0
call sym.MSVCRT20.dll__errno
mov dword [eax], 0x22
jmp 0x5629cc02
lea eax, [ebp - 0x214]
push eax
push ecx
call sym.MSVCRT20.dll_wcscpy
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5629ce2e
Capabilities:
Create directory

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
mov eax, 0
jne 0x5629ce49
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5629ce5c
push eax
call fcn.56290737
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
jmp 0x5629ce5b

Function at 0x5629d884
Capabilities:
Delete file

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov eax, 0
jne 0x5629d89d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5629d8b0
push eax
call fcn.56290737
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
jmp 0x5629d8af

Function at 0x5629d8c1
Capabilities:
Move file

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
mov eax, 0
jne 0x5629d8de
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5629d8f1
push eax
call fcn.56290737
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
jmp 0x5629d8f0
Function at 0x5629d94d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], esi
cmp dword [ebp + 0x10], esi
jne 0x5629d96c
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
test byte [eax + 0x562b2fe0], 0x20
je 0x5629d985
push 2
push 0
push eax
call fcn.5629634f
add esp, 0xc
mov eax, dword [ebp + 8]
test byte [eax + 0x562b2fe0], 0x80
je 0x5629da42
mov dword [ebp - 0xc], 0
mov edi, dword [ebp + 0xc]
mov eax, edi
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x5629da0d
lea ebx, [ebp - 0x410]
mov eax, edi
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x5629d9d9
mov al, byte [edi]
inc edi
cmp al, 0xa
jne 0x5629d9c5
inc esi
mov byte [ebx], 0xd
inc ebx
lea ecx, [ebp - 0x410]
mov byte [ebx], al
inc ebx
mov eax, ebx
sub eax, ecx
cmp eax, 0x400
jl 0x5629d9af
lea eax, [ebp - 0x410]
push 0
sub ebx, eax
lea ecx, [ebp - 0x410]
lea eax, [ebp - 4]
push eax
push ebx
push ecx
mov eax, dword [ebp + 8]
push dword [eax*4 + 0x562b30e0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5629da71
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
cmp eax, ebx
jge 0x5629d99f
cmp dword [ebp - 8], 0
jne 0x5629dac4
cmp dword [ebp - 0xc], 0
je 0x5629da89
cmp dword [ebp - 0xc], 5
jne 0x5629da7c
call sym.MSVCRT20.dll__errno
mov dword [eax], 9
call sym.MSVCRT20.dll___doserrno
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, 0xffffffff
jmp 0x5629d965
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax*4 + 0x562b30e0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5629da71
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x5629da0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x5629da0d
push dword [ebp - 0xc]
call fcn.56290737
add esp, 4
jmp 0x5629da38
mov eax, dword [ebp + 8]
test byte [eax + 0x562b2fe0], 0x40
je 0x5629daa4
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x5629daa4
xor eax, eax
jmp 0x5629d965
call sym.MSVCRT20.dll__errno
mov dword [eax], 0x1c
call sym.MSVCRT20.dll___doserrno
mov dword [eax], 0
mov eax, 0xffffffff
jmp 0x5629d965
mov eax, dword [ebp - 8]
sub eax, esi
jmp 0x5629d965

Function at 0x5629dace
Capabilities:
Delete directory

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov eax, 0
jne 0x5629dae7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5629dafa
push eax
call fcn.56290737
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
jmp 0x5629daf9
Function at 0x562a0558
Capabilities:
Move file

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
mov eax, 0
jne 0x562a0575
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x562a0588
push eax
call fcn.56290737
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
jmp 0x562a0587

Function at 0x562a3433
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 4
xor ecx, ecx
mov eax, 0x562b37d0
push edi
cmp dword [eax], edx
je 0x562a3451
add eax, 8
inc ecx
cmp eax, 0x562b3848
jb 0x562a3442
cmp dword [ecx*8 + 0x562b37d0], edx
lea eax, [ecx*8]
jne 0x562a348a
mov edx, dword [eax + 0x562b37d4]
push 0
lea eax, [esp + 8]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [0x562b30e8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
add esp, 4
ret