joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d44127f
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x6d4412e4
lea eax, [ebp - 0x10c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x6d4412e4
mov byte [ebp - 4], 0x3d
movzx eax, byte [ebp - 0x10c]
push eax
call sym.MSVCRT20.dll__mbctoupper
add esp, 4
lea ecx, [ebp - 4]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
mov byte [ebp - 3], al
lea eax, [ebp - 0x10c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
mov eax, 0
jne 0x6d4412f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.6d440737
add esp, 4
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x6d4412fc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
lea eax, [ebp - 0x104]
xor esi, esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x6d44133a
cmp byte [ebp - 0x103], 0x3a
jne 0x6d44133a
movzx eax, byte [ebp - 0x104]
push eax
call sym.MSVCRT20.dll_toupper
add esp, 4
lea esi, [eax - 0x40]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x6d441341
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, 1
jl 0x6d4413ac
cmp ebx, 0x1f
jg 0x6d4413ac
push 0xc
add bl, 0x40
call fcn.6d431b67
add esp, 4
mov byte [ebp - 4], bl
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0
lea ebx, [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x6d44138c
push 0xc
call fcn.6d4310c3
add esp, 4
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.6d440737
add esp, 4
push 0xc
call fcn.6d4310c3
add esp, 4
mov eax, 0xffffffff
jmp 0x6d441387
call sym.MSVCRT20.dll__errno
mov dword [eax], 0xd
call sym.MSVCRT20.dll___doserrno
mov dword [eax], 0xf
jmp 0x6d4413a5

Function at 0x6d4413c4
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_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x6d4413ef
test byte [esp + 0xc], 0x80
je 0x6d441405
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
mov eax, 0
jne 0x6d441403
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.6d440737
add esp, 4
mov eax, 0xffffffff
pop esi
ret
or al, 1
jmp 0x6d4413de
Function at 0x6d441452
Capabilities:
Clear file content

Disassembly:
push ebp
mov eax, 0x100c
mov ebp, esp
call fcn.6d4534b5
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
push 1
push 0
push esi
call fcn.6d44634f
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x6d441578
push 2
push 0
push esi
call fcn.6d44634f
add esp, 0xc
cmp eax, 0xffffffff
je 0x6d441578
mov ecx, dword [ebp + 0xc]
mov ebx, ecx
sub ebx, eax
test ebx, ebx
jle 0x6d441531
lea edi, [ebp - 0x100c]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.6d449b8e
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, 0x1000
cmp ebx, eax
jge 0x6d4414d5
mov eax, ebx
push eax
lea ecx, [ebp - 0x100c]
push ecx
push esi
call fcn.6d44d94d
add esp, 0xc
mov edi, eax
cmp edi, 0xffffffff
je 0x6d441517
sub ebx, edi
test ebx, ebx
jg 0x6d4414ca
push dword [ebp - 0xc]
push esi
call fcn.6d449b8e
add esp, 8
push 0
push dword [ebp - 8]
push esi
call fcn.6d44634f
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 0x6d44152c
call sym.MSVCRT20.dll__errno
mov dword [eax], 0xd
mov dword [ebp - 4], edi
jmp 0x6d4414f3
jge 0x6d4414ff
push 0
push ecx
push esi
call fcn.6d44634f
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 0x6d4414ff
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 0x6d4414ff
mov eax, 0xffffffff
jmp 0x6d441510
Function at 0x6d443b19
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 0x6d443b88
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x6d443b57
cmp eax, 3
jbe 0x6d443b6e
cmp eax, 8
je 0x6d443b7b
cmp eax, 0x12
je 0x6d443b6e
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 0x6d443b62
call sym.MSVCRT20.dll__errno
mov dword [eax], 0xc
jmp 0x6d443b62
cmp dword [ebp - 0x144], 0x80
jne 0x6d443c0a
mov ebx, dword [ebp + 0xc]
mov dword [ebx], 0
lea eax, [ebp - 0x140]
push eax
call fcn.6d443d34
add esp, 4
mov dword [ebx + 4], eax
lea eax, [ebp - 0x138]
push eax
call fcn.6d443d34
add esp, 4
mov dword [ebx + 8], eax
lea eax, [ebp - 0x130]
lea edi, [ebp - 0x118]
push eax
call fcn.6d443d34
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 0x6d443b67
mov eax, dword [ebp - 0x144]
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
jmp 0x6d443b9d

Function at 0x6d443c17
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 0x6d443c82
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x6d443c51
cmp eax, 3
jbe 0x6d443c68
cmp eax, 8
je 0x6d443c75
cmp eax, 0x12
je 0x6d443c68
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 0x6d443c5c
call sym.MSVCRT20.dll__errno
mov dword [eax], 0xc
jmp 0x6d443c5c
cmp dword [ebp - 0x140], 0x80
jne 0x6d443d03
mov ebx, dword [ebp + 0xc]
mov dword [ebx], 0
lea eax, [ebp - 0x13c]
push eax
call fcn.6d443d34
add esp, 4
mov dword [ebx + 4], eax
lea eax, [ebp - 0x134]
push eax
call fcn.6d443d34
add esp, 4
mov dword [ebx + 8], eax
lea eax, [ebp - 0x12c]
lea edi, [ebp - 0x114]
push eax
call fcn.6d443d34
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 0x6d443c61
mov eax, dword [ebp - 0x140]
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
jmp 0x6d443c97
Function at 0x6d4445c7
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 0x6d4445ec
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 0x6d4446ee
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 0x6d4446ee
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 0x6d4446ee
push esi
call sym.MSVCRT20.dll_localtime
add esp, 4
test eax, eax
je 0x6d4446ee
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 0x6d4446ee
lea eax, [ebp - 0x18]
lea ecx, [ebp - 8]
push eax
push ecx
call edi
test eax, eax
je 0x6d4446ee
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 0x6d4446ee
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 0x6d4446e7
Function at 0x6d444d51
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 0x6d444df6
push ebx
call fcn.6d444e4d
add esp, 4
test eax, eax
jne 0x6d444d92
call sym.MSVCRT20.dll___doserrno
mov dword [eax], 0xf
call sym.MSVCRT20.dll__errno
mov dword [eax], 0xd
xor eax, eax
jmp 0x6d444e46
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 0x6d444d8b
inc eax
cmp eax, 0x104
ja 0x6d444d8b
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x6d444e0a
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
jg 0x6d444dda
mov eax, ecx
push eax
call sym.MSVCRT20.dll_malloc
add esp, 4
mov edx, eax
test edx, edx
jne 0x6d444e1f
call sym.MSVCRT20.dll__errno
mov dword [eax], 0xc
jmp 0x6d444d8b
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
jmp 0x6d444dbe
cmp eax, dword [ebp + 0x10]
jle 0x6d444e1f
call sym.MSVCRT20.dll__errno
mov dword [eax], 0x22
jmp 0x6d444d8b
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 0x6d444e5f
Capabilities:
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
mov esi, 0x6d461a6c
lea edi, [ebp - 4]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x6d444edd
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp byte [ebp - 0x108], 0x5c
jne 0x6d444ea9
cmp byte [ebp - 0x107], 0x5c
jne 0x6d444ea9
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 0x6d444ea3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x6d444ea3
cmp eax, 0x1a
jbe 0x6d444ee9
mov eax, 0x57
jmp 0x6d444ea3
add al, 0x40
jmp 0x6d444eaf

Function at 0x6d448a7d
Capabilities:
Create directory

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
mov eax, 0
jne 0x6d448a98
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x6d448aab
push eax
call fcn.6d440737
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
jmp 0x6d448aaa
Function at 0x6d4493a1
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 0x6d4493cb
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 0x6d4493ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.6d440737
add esp, 4
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.6d4447a4
mov edi, dword [ebp + 8]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x6d4494d8
mov byte [eax + 0x6d462fe0], 0x89
call fcn.6d4447a4
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x6d4494c2
mov byte [eax + 0x6d462fe0], 0x89
test esi, 0x8000
je 0x6d44944c
mov eax, dword [edi]
and byte [eax + 0x6d462fe0], 0x7f
mov ecx, dword [edi + 4]
and byte [ecx + 0x6d462fe0], 0x7f
push dword [ebp - 8]
push dword [edi]
call fcn.6d444815
add esp, 8
push dword [ebp - 4]
push dword [edi + 4]
call fcn.6d444815
add esp, 8
call sym.MSVCRT20.dll__errno
mov dword [eax], 0
mov eax, dword [edi + 4]
add eax, 0x42
push eax
call fcn.6d4310c3
add esp, 4
mov eax, dword [edi]
add eax, 0x42
push eax
call fcn.6d4310c3
add esp, 4
call sym.MSVCRT20.dll__errno
cmp dword [eax], 0
mov eax, 0
je 0x6d4493f8
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 0x6d4493f3
mov eax, dword [edi]
mov byte [eax + 0x6d462fe0], 0
call sym.MSVCRT20.dll__errno
mov dword [eax], 0x18
jmp 0x6d449481
call sym.MSVCRT20.dll__errno
mov dword [eax], 0x18
jmp 0x6d44948f
Function at 0x6d44992c
Capabilities:
Delete directory

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
mov eax, 0
jne 0x6d449945
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x6d449958
push eax
call fcn.6d440737
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
jmp 0x6d449957
Function at 0x6d44b6b1
Capabilities:
Delete file

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov eax, 0
jne 0x6d44b6ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x6d44b6dd
push eax
call fcn.6d440737
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
jmp 0x6d44b6dc

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

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

Function at 0x6d44b93e
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 0x6d44b9a8
lea eax, [ebp - 0x214]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x6d44b9a8
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 0x6d44b9bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.6d440737
add esp, 4
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x6d44b9c0
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 0x6d44b9eb
test byte [esp + 0xc], 0x80
je 0x6d44ba01
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
mov eax, 0
jne 0x6d44b9ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.6d440737
add esp, 4
mov eax, 0xffffffff
pop esi
ret
or al, 1
jmp 0x6d44b9da
Function at 0x6d44c518
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 0x6d44c584
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x6d44c554
cmp eax, 3
jbe 0x6d44c56a
cmp eax, 8
je 0x6d44c577
cmp eax, 0x12
je 0x6d44c56a
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 0x6d44c55f
call sym.MSVCRT20.dll__errno
mov dword [eax], 0xc
jmp 0x6d44c55f
cmp dword [ebp - 0x250], 0x80
jne 0x6d44c5f2
mov esi, dword [ebp + 0xc]
mov dword [esi], 0
lea eax, [ebp - 0x24c]
push eax
call fcn.6d44c6e1
add esp, 4
mov dword [esi + 4], eax
lea eax, [ebp - 0x244]
push eax
call fcn.6d44c6e1
add esp, 4
mov dword [esi + 8], eax
lea eax, [ebp - 0x23c]
push eax
call fcn.6d44c6e1
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 0x6d44c564
mov eax, dword [ebp - 0x250]
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
jmp 0x6d44c599

Function at 0x6d44c5ff
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 0x6d44c666
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x6d44c637
cmp eax, 3
jbe 0x6d44c64c
cmp eax, 8
je 0x6d44c659
cmp eax, 0x12
je 0x6d44c64c
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 0x6d44c642
call sym.MSVCRT20.dll__errno
mov dword [eax], 0xc
jmp 0x6d44c642
cmp dword [ebp - 0x250], 0x80
jne 0x6d44c6d4
mov esi, dword [ebp + 0xc]
mov dword [esi], 0
lea eax, [ebp - 0x24c]
push eax
call fcn.6d44c6e1
add esp, 4
mov dword [esi + 4], eax
lea eax, [ebp - 0x244]
push eax
call fcn.6d44c6e1
add esp, 4
mov dword [esi + 8], eax
lea eax, [ebp - 0x23c]
push eax
call fcn.6d44c6e1
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 0x6d44c647
mov eax, dword [ebp - 0x250]
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
jmp 0x6d44c67b
Function at 0x6d44cbca
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 0x6d44cc77
push esi
call fcn.6d444e4d
add esp, 4
test eax, eax
jne 0x6d44cc09
call sym.MSVCRT20.dll___doserrno
mov dword [eax], 0xf
call sym.MSVCRT20.dll__errno
mov dword [eax], 0xd
xor eax, eax
jmp 0x6d44ccb0
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 0x6d44cc02
inc eax
cmp eax, 0x104
ja 0x6d44cc02
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x6d44cc8b
mov ecx, dword [ebp + 0x10]
cmp ecx, eax
jg 0x6d44cc59
mov ecx, eax
add ecx, ecx
push ecx
call sym.MSVCRT20.dll_malloc
add esp, 4
mov ecx, eax
test ecx, ecx
jne 0x6d44cca0
call sym.MSVCRT20.dll__errno
mov dword [eax], 0xc
jmp 0x6d44cc02
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x6d44cc3d
cmp dword [ebp + 0x10], eax
jge 0x6d44cca0
call sym.MSVCRT20.dll__errno
mov dword [eax], 0x22
jmp 0x6d44cc02
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 0x6d44ce2e
Capabilities:
Create directory

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
mov eax, 0
jne 0x6d44ce49
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x6d44ce5c
push eax
call fcn.6d440737
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
jmp 0x6d44ce5b

Function at 0x6d44d884
Capabilities:
Delete file

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov eax, 0
jne 0x6d44d89d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x6d44d8b0
push eax
call fcn.6d440737
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
jmp 0x6d44d8af

Function at 0x6d44d8c1
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 0x6d44d8de
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x6d44d8f1
push eax
call fcn.6d440737
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
jmp 0x6d44d8f0
Function at 0x6d44d94d
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 0x6d44d96c
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
test byte [eax + 0x6d462fe0], 0x20
je 0x6d44d985
push 2
push 0
push eax
call fcn.6d44634f
add esp, 0xc
mov eax, dword [ebp + 8]
test byte [eax + 0x6d462fe0], 0x80
je 0x6d44da42
mov dword [ebp - 0xc], 0
mov edi, dword [ebp + 0xc]
mov eax, edi
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x6d44da0d
lea ebx, [ebp - 0x410]
mov eax, edi
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x6d44d9d9
mov al, byte [edi]
inc edi
cmp al, 0xa
jne 0x6d44d9c5
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 0x6d44d9af
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 + 0x6d4630e0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6d44da71
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
cmp eax, ebx
jge 0x6d44d99f
cmp dword [ebp - 8], 0
jne 0x6d44dac4
cmp dword [ebp - 0xc], 0
je 0x6d44da89
cmp dword [ebp - 0xc], 5
jne 0x6d44da7c
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 0x6d44d965
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 + 0x6d4630e0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6d44da71
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x6d44da0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x6d44da0d
push dword [ebp - 0xc]
call fcn.6d440737
add esp, 4
jmp 0x6d44da38
mov eax, dword [ebp + 8]
test byte [eax + 0x6d462fe0], 0x40
je 0x6d44daa4
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x6d44daa4
xor eax, eax
jmp 0x6d44d965
call sym.MSVCRT20.dll__errno
mov dword [eax], 0x1c
call sym.MSVCRT20.dll___doserrno
mov dword [eax], 0
mov eax, 0xffffffff
jmp 0x6d44d965
mov eax, dword [ebp - 8]
sub eax, esi
jmp 0x6d44d965

Function at 0x6d44dace
Capabilities:
Delete directory

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov eax, 0
jne 0x6d44dae7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x6d44dafa
push eax
call fcn.6d440737
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
jmp 0x6d44daf9