joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7c00fcd4
Capabilities:
Enumerate files on windows

Disassembly:
cmp dword [esp + 4], 0
je 0x7c00fd32
cmp dword [0x7c04f3f0], 0
jne 0x7c00fcf8
push 0x244
call sym.MSVCR70.dll_malloc
test eax, eax
pop ecx
mov dword [0x7c04f3f0], eax
je 0x7c00fd5b
mov eax, dword [0x7c04f3f4]
test eax, eax
je 0x7c00fd0f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [0x7c04f3f4], 0
push dword [0x7c04f3f0]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [0x7c04f3f4], eax
je 0x7c00fd5b
mov eax, dword [0x7c04f3f0]
add eax, 0x2c
ret
push dword [0x7c04f3f0]
push dword [0x7c04f3f4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x7c00fd29
push dword [0x7c04f3f4]
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [0x7c04f3f4], 0
xor eax, eax
ret

Function at 0x7c00ffc3
Capabilities:
Enumerate files on windows

Disassembly:
cmp dword [esp + 4], 0
je 0x7c010021
cmp dword [0x7c04f404], 0
jne 0x7c00ffe7
push 0x354
call sym.MSVCR70.dll_malloc
test eax, eax
pop ecx
mov dword [0x7c04f404], eax
je 0x7c01004a
mov eax, dword [0x7c04f400]
test eax, eax
je 0x7c00fffe
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [0x7c04f400], 0
push dword [0x7c04f404]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [0x7c04f400], eax
je 0x7c01004a
mov eax, dword [0x7c04f404]
add eax, 0x2c
ret
push dword [0x7c04f404]
push dword [0x7c04f400]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x7c010018
push dword [0x7c04f400]
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [0x7c04f400], 0
xor eax, eax
ret
Function at 0x7c01240c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x7c04f410], ebx
push esi
push edi
jne 0x7c01248c
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x7c0124c7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x7c04f410], eax
je 0x7c0124c7
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x7c04f414], eax
call esi
cmp dword [sym.MSVCR70.dll__osplatform], 2
mov dword [0x7c04f418], eax
jne 0x7c01248c
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x7c04f420], eax
je 0x7c01248c
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x7c04f41c], eax
mov eax, dword [0x7c04f41c]
test eax, eax
je 0x7c0124d1
call eax
test eax, eax
je 0x7c0124b8
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x7c04f420]
test eax, eax
je 0x7c0124b8
test byte [ebp - 8], 1
jne 0x7c0124d1
cmp dword [sym.MSVCR70.dll__winmajor], 4
jb 0x7c0124cb
or byte [ebp + 0x12], 0x20
jmp 0x7c0124f0
xor eax, eax
jmp 0x7c012500
or byte [ebp + 0x12], 4
jmp 0x7c0124f0
mov eax, dword [0x7c04f414]
test eax, eax
je 0x7c0124f0
call eax
mov ebx, eax
test ebx, ebx
je 0x7c0124f0
mov eax, dword [0x7c04f418]
test eax, eax
je 0x7c0124f0
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x7c04f410]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x7c015709
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.7c0014ee
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x7c01579e
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [sym.MSVCR70.dll__osplatform]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x7c01579e
cmp eax, 1
je 0x7c0157b6
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x7c01579e
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x7c015773
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x7c01579a
xor eax, eax
inc eax
jmp 0x7c0157d2
cmp esi, ebx
jae 0x7c0157a2
xor eax, eax
jmp 0x7c0157d2
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [sym.MSVCR70.dll__osplatform]
jmp 0x7c0157b8
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x7c0157da
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x7c04a9a8]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x7c015803
xor eax, eax
jmp 0x7c015971
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + sym.MSVCR70.dll___pioinfo]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x7c015836
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.7c015d4d
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x7c015908
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x7c015943
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x7c015891
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x7c015882
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x7c015865
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x7c0158d1
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x7c0158da
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x7c015856
jmp 0x7c0158dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x7c01596c
cmp dword [ebp - 8], edi
je 0x7c015943
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x7c015935
call sym.MSVCR70.dll__errno
mov dword [eax], 9
call sym.MSVCR70.dll___doserrno
mov dword [eax], esi
jmp 0x7c01593e
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x7c01592a
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x7c0158dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x7c0158dc
push dword [ebp - 8]
call fcn.7c0102b7
pop ecx
or eax, 0xffffffff
jmp 0x7c01596f
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x7c015958
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x7c015958
xor eax, eax
jmp 0x7c01596f
call sym.MSVCR70.dll__errno
mov dword [eax], 0x1c
call sym.MSVCR70.dll___doserrno
mov dword [eax], edi
jmp 0x7c01593e
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.7c0013ab
leave
ret
Function at 0x7c01683e
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x7c0168a9
push 0x3d
push dword [ebp + 8]
call sym.MSVCR70.dll__mbschr
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x7c0168a9
cmp dword [ebp + 8], esi
je 0x7c0168a9
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [sym.MSVCR70.dll__environ]
cmp eax, dword [sym.MSVCR70.dll___initenv]
jne 0x7c01688f
mov edi, eax
call fcn.7c0167dd
mov dword [sym.MSVCR70.dll__environ], eax
cmp eax, ebx
jne 0x7c0168e8
cmp dword [ebp + 0xc], ebx
je 0x7c0168b1
cmp dword [sym.MSVCR70.dll__wenviron], ebx
je 0x7c0168b1
call fcn.7c016725
test eax, eax
je 0x7c0168e8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x7c0169ec
push 4
call sym.MSVCR70.dll_malloc
cmp eax, ebx
pop ecx
mov dword [sym.MSVCR70.dll__environ], eax
je 0x7c0168a9
mov dword [eax], ebx
cmp dword [sym.MSVCR70.dll__wenviron], ebx
jne 0x7c0168e8
push 4
call sym.MSVCR70.dll_malloc
cmp eax, ebx
pop ecx
mov dword [sym.MSVCR70.dll__wenviron], eax
je 0x7c0168a9
mov dword [eax], ebx
mov ebx, dword [sym.MSVCR70.dll__environ]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.7c016790
mov edi, eax
test edi, edi
pop ecx
jl 0x7c016941
cmp dword [ebx], 0
je 0x7c016941
lea esi, [ebx + edi*4]
push dword [esi]
call sym.MSVCR70.dll_free
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x7c016929
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x7c016977
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x7c016920
mov eax, edi
shl eax, 2
push eax
push ebx
call sym.MSVCR70.dll_realloc
test eax, eax
pop ecx
pop ecx
je 0x7c016977
jmp 0x7c016972
cmp dword [ebp - 4], 0
jne 0x7c0169e5
test edi, edi
jge 0x7c016951
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call sym.MSVCR70.dll_realloc
test eax, eax
pop ecx
pop ecx
je 0x7c0168a9
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [sym.MSVCR70.dll__environ], eax
cmp dword [ebp + 0xc], 0
je 0x7c0169ce
push dword [ebp + 8]
call sym.MSVCR70.dll_strlen
inc eax
inc eax
push eax
call sym.MSVCR70.dll_malloc
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x7c0169ce
push dword [ebp + 8]
push esi
call sym.MSVCR70.dll__mbscpy
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x7c0169c7
or dword [ebp - 8], 0xffffffff
push esi
call sym.MSVCR70.dll_free
pop ecx
cmp dword [ebp - 4], 0
je 0x7c0169dd
push dword [ebp + 8]
call sym.MSVCR70.dll_free
pop ecx
mov eax, dword [ebp - 8]
jmp 0x7c0168ac
push esi
call sym.MSVCR70.dll_free
pop ecx
xor eax, eax
jmp 0x7c0168ac
Function at 0x7c018586
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x7c018594
xor ecx, ecx
jmp 0x7c0185b2
cmp eax, 0x1a
jbe 0x7c01859e
push 0x57
pop eax
pop ebp
ret
add al, 0x40
and byte [ebp + 0xb], 0
lea ecx, [ebp + 8]
mov byte [ebp + 8], al
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov eax, dword [ebp + 0xc]
push eax
lea edx, [eax + 4]
push edx
lea edx, [eax + 0xc]
push edx
add eax, 8
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x7c0185d4
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop ebp
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x7c018be2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.7c0102b7
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x7c018c05
test byte [esp + 8], 2
je 0x7c018c05
call sym.MSVCR70.dll__errno
mov dword [eax], 0xd
call sym.MSVCR70.dll___doserrno
mov dword [eax], 5
jmp 0x7c018bde
xor eax, eax
ret

Function at 0x7c018cfd
Capabilities:
Set current directory

Disassembly:
push 0x10
push 0x7c03fc28
call fcn.7c00101f
mov ebx, dword [ebp + 8]
cmp ebx, 1
jl 0x7c018d6c
cmp ebx, 0x1f
jg 0x7c018d6c
push 7
call sym.MSVCR70.dll__lock
pop ecx
and dword [ebp - 4], 0
add ebx, 0x40
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], 0x3a
and byte [ebp - 0x1a], 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x7c018d44
and dword [ebp - 0x20], 0
jmp 0x7c018d55
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.7c0102b7
pop ecx
or dword [ebp - 0x20], 0xffffffff
or dword [ebp - 4], 0xffffffff
call fcn.7c018d63
mov eax, dword [ebp - 0x20]
jmp 0x7c018d85
call sym.MSVCR70.dll__errno
mov dword [eax], 0xd
call sym.MSVCR70.dll___doserrno
mov dword [eax], 0xf
or eax, 0xffffffff
call fcn.7c00105a
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x7c018db8
test byte [esp + 8], 0x80
je 0x7c018da6
and eax, 0xfffffffe
jmp 0x7c018da9
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x7c018dc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.7c0102b7
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x7c018ead
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x7c04a9a8]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x7c018f28
push ebx
call fcn.7c018e76
test eax, eax
pop ecx
jne 0x7c018efa
call sym.MSVCR70.dll___doserrno
mov dword [eax], 0xf
call sym.MSVCR70.dll__errno
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.7c0013ab
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x7c018f3a
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x7c018eea
inc eax
cmp eax, 0x104
ja 0x7c018eea
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x7c018f72
cmp eax, dword [ebp + 0x10]
jg 0x7c018f55
mov eax, dword [ebp + 0x10]
push eax
call sym.MSVCR70.dll_malloc
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x7c018f87
call sym.MSVCR70.dll__errno
mov dword [eax], 0xc
jmp 0x7c018eea
cmp eax, dword [ebp + 0x10]
jle 0x7c018f87
call sym.MSVCR70.dll__errno
mov dword [eax], 0x22
jmp 0x7c018eea
lea eax, [ebp - 0x10c]
push eax
push ecx
call sym.MSVCR70.dll__mbscpy
pop ecx
pop ecx
jmp 0x7c018eec
Function at 0x7c019ae9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x7c019b09
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.7c0102b7
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x7c019b2c
test byte [esp + 8], 2
je 0x7c019b2c
call sym.MSVCR70.dll__errno
mov dword [eax], 0xd
call sym.MSVCR70.dll___doserrno
mov dword [eax], 5
jmp 0x7c019b05
xor eax, eax
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x7c019c00
test byte [esp + 8], 0x80
je 0x7c019bee
and eax, 0xfffffffe
jmp 0x7c019bf1
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x7c019c11
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.7c0102b7
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x7c019cc2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x7c04a9a8]
xor eax, dword [ebp + 4]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], eax
je 0x7c019d44
push esi
call fcn.7c018e76
test eax, eax
pop ecx
jne 0x7c019d0f
call sym.MSVCR70.dll___doserrno
mov dword [eax], 0xf
call sym.MSVCR70.dll__errno
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.7c0013ab
leave
ret
and word [ebp - 6], 0
lea eax, [ebp + 8]
push eax
add esi, 0x40
lea eax, [ebp - 0x214]
push eax
mov word [ebp - 0xc], si
mov esi, 0x104
push esi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
jmp 0x7c019d57
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x7c019cff
inc eax
cmp eax, esi
ja 0x7c019cff
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x7c019d8e
cmp eax, dword [ebp + 0x10]
jg 0x7c019d6f
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
call sym.MSVCR70.dll_malloc
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x7c019da3
call sym.MSVCR70.dll__errno
mov dword [eax], 0xc
jmp 0x7c019cff
cmp eax, dword [ebp + 0x10]
jle 0x7c019da3
call sym.MSVCR70.dll__errno
mov dword [eax], 0x22
jmp 0x7c019cff
lea eax, [ebp - 0x214]
push eax
push ecx
call sym.MSVCR70.dll_wcscpy
pop ecx
pop ecx
jmp 0x7c019d01
Function at 0x7c022fdc
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.7c0014ee
mov eax, dword [0x7c04a9a8]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.7c015c2e
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x7c023106
push 2
push esi
push dword [ebp + 8]
call fcn.7c015c2e
add esp, 0xc
cmp eax, ebx
je 0x7c023106
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x7c0230a9
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call sym.MSVCR70.dll_memset
push 0x8000
push dword [ebp + 8]
call fcn.7c02528b
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x7c023062
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.7c0157da
add esp, 0xc
cmp eax, 0xffffffff
je 0x7c023082
sub edi, eax
test edi, edi
jg 0x7c02305a
jmp 0x7c02309a
call sym.MSVCR70.dll___doserrno
cmp dword [eax], 5
jne 0x7c023097
call sym.MSVCR70.dll__errno
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.7c02528b
pop ecx
pop ecx
jmp 0x7c0230f1
jge 0x7c0230f1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.7c015c2e
push dword [ebp + 8]
call sym.MSVCR70.dll__get_osfhandle
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x7c0230f1
call sym.MSVCR70.dll__errno
mov dword [eax], 0xd
call sym.MSVCR70.dll___doserrno
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.7c015c2e
add esp, 0xc
mov eax, esi
pop edi
jmp 0x7c023108
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.7c0013ab
leave
ret
Function at 0x7c024db4
Capabilities:
Create pipe

Disassembly:
push 0x24
push 0x7c040d20
call fcn.7c00101f
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
mov dword [ebx + 4], esi
mov dword [ebx], esi
mov dword [ebp - 0x24], 0xc
and dword [ebp - 0x20], 0
mov al, byte [ebp + 0x10]
and al, 0x80
neg al
sbb eax, eax
inc eax
mov dword [ebp - 0x1c], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x7c024e10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.7c0102b7
pop ecx
mov eax, esi
jmp 0x7c024fa8
call fcn.7c01605f
mov edi, eax
mov dword [ebp - 0x30], edi
cmp edi, esi
je 0x7c024f6c
and dword [ebp - 4], 0
mov ecx, edi
sar ecx, 5
and eax, 0x1f
lea eax, [eax + eax*8]
mov ecx, dword [ecx*4 + sym.MSVCR70.dll___pioinfo]
mov byte [ecx + eax*4 + 4], 0x89
mov dword [ebp - 4], esi
call fcn.7c024f2e
call fcn.7c01605f
mov esi, eax
mov dword [ebp - 0x34], esi
cmp esi, 0xffffffff
je 0x7c024f4c
mov dword [ebp - 4], 1
mov ecx, esi
sar ecx, 5
and eax, 0x1f
lea eax, [eax + eax*8]
mov ecx, dword [ecx*4 + sym.MSVCR70.dll___pioinfo]
mov byte [ecx + eax*4 + 4], 0x89
or dword [ebp - 4], 0xffffffff
call fcn.7c024f3f
mov eax, 0x8000
test dword [ebp + 0x10], eax
jne 0x7c024e97
test byte [ebp + 0x11], 0x40
jne 0x7c024ecd
cmp dword [sym.MSVCR70.dll__fmode], eax
jne 0x7c024ecd
mov ecx, edi
sar ecx, 5
mov eax, edi
and eax, 0x1f
lea eax, [eax + eax*8]
mov ecx, dword [ecx*4 + sym.MSVCR70.dll___pioinfo]
lea eax, [ecx + eax*4 + 4]
and byte [eax], 0x7f
mov ecx, esi
sar ecx, 5
mov eax, esi
and eax, 0x1f
lea eax, [eax + eax*8]
mov ecx, dword [ecx*4 + sym.MSVCR70.dll___pioinfo]
lea eax, [ecx + eax*4 + 4]
and byte [eax], 0x7f
test byte [ebp + 0x10], 0x80
je 0x7c024f09
mov ecx, edi
sar ecx, 5
mov eax, edi
and eax, 0x1f
lea eax, [eax + eax*8]
mov ecx, dword [ecx*4 + sym.MSVCR70.dll___pioinfo]
lea eax, [ecx + eax*4 + 4]
or byte [eax], 0x10
mov ecx, esi
sar ecx, 5
mov eax, esi
and eax, 0x1f
lea eax, [eax + eax*8]
mov ecx, dword [ecx*4 + sym.MSVCR70.dll___pioinfo]
lea eax, [ecx + eax*4 + 4]
or byte [eax], 0x10
push dword [ebp - 0x2c]
push edi
call fcn.7c015e8e
push dword [ebp - 0x28]
push esi
call fcn.7c015e8e
add esp, 0x10
call sym.MSVCR70.dll__errno
and dword [eax], 0
jmp 0x7c024f7a
mov ecx, edi
sar ecx, 5
mov eax, edi
and eax, 0x1f
lea eax, [eax + eax*8]
mov ecx, dword [ecx*4 + sym.MSVCR70.dll___pioinfo]
and byte [ecx + eax*4 + 4], 0
call sym.MSVCR70.dll__errno
jmp 0x7c024f74
call sym.MSVCR70.dll__errno
mov esi, dword [ebp - 0x34]
mov dword [eax], 0x18
call sym.MSVCR70.dll__errno
cmp dword [eax], 0
je 0x7c024fa1
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x28]
call esi
call sym.MSVCR70.dll___doserrno
and dword [eax], 0
or eax, 0xffffffff
jmp 0x7c024fa8
mov dword [ebx], edi
mov dword [ebx + 4], esi
xor eax, eax
call fcn.7c00105a
ret