joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7c014a33
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 0x7c014a9e
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 0x7c014a9e
cmp dword [ebp + 8], esi
je 0x7c014a9e
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 0x7c014a84
mov edi, eax
call fcn.7c0149d2
mov dword [sym.MSVCR70.dll__environ], eax
cmp eax, ebx
jne 0x7c014add
cmp dword [ebp + 0xc], ebx
je 0x7c014aa6
cmp dword [sym.MSVCR70.dll__wenviron], ebx
je 0x7c014aa6
call fcn.7c01491a
test eax, eax
je 0x7c014add
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x7c014be1
push 4
call sym.MSVCR70.dll_malloc
cmp eax, ebx
pop ecx
mov dword [sym.MSVCR70.dll__environ], eax
je 0x7c014a9e
mov dword [eax], ebx
cmp dword [sym.MSVCR70.dll__wenviron], ebx
jne 0x7c014add
push 4
call sym.MSVCR70.dll_malloc
cmp eax, ebx
pop ecx
mov dword [sym.MSVCR70.dll__wenviron], eax
je 0x7c014a9e
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.7c014985
mov edi, eax
test edi, edi
pop ecx
jl 0x7c014b36
cmp dword [ebx], 0
je 0x7c014b36
lea esi, [ebx + edi*4]
push dword [esi]
call sym.MSVCR70.dll_free
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x7c014b1e
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x7c014b6c
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x7c014b15
mov eax, edi
shl eax, 2
push eax
push ebx
call sym.MSVCR70.dll_realloc
test eax, eax
pop ecx
pop ecx
je 0x7c014b6c
jmp 0x7c014b67
cmp dword [ebp - 4], 0
jne 0x7c014bda
test edi, edi
jge 0x7c014b46
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call sym.MSVCR70.dll_realloc
test eax, eax
pop ecx
pop ecx
je 0x7c014a9e
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 0x7c014bc3
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 0x7c014bc3
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 0x7c014bbc
or dword [ebp - 8], 0xffffffff
push esi
call sym.MSVCR70.dll_free
pop ecx
cmp dword [ebp - 4], 0
je 0x7c014bd2
push dword [ebp + 8]
call sym.MSVCR70.dll_free
pop ecx
mov eax, dword [ebp - 8]
jmp 0x7c014aa1
push esi
call sym.MSVCR70.dll_free
pop ecx
xor eax, eax
jmp 0x7c014aa1
Function at 0x7c016a0b
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x7c016a19
xor ecx, ecx
jmp 0x7c016a37
cmp eax, 0x1a
jbe 0x7c016a23
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 0x7c016a59
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop ebp
ret

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

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

Function at 0x7c017182
Capabilities:
Set current directory

Disassembly:
push 0x10
push 0x7c03fc38
call fcn.7c001d9b
mov ebx, dword [ebp + 8]
cmp ebx, 1
jl 0x7c0171f1
cmp ebx, 0x1f
jg 0x7c0171f1
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 0x7c0171c9
and dword [ebp - 0x20], 0
jmp 0x7c0171da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.7c00bbc4
pop ecx
or dword [ebp - 0x20], 0xffffffff
or dword [ebp - 4], 0xffffffff
call fcn.7c0171e8
mov eax, dword [ebp - 0x20]
jmp 0x7c01720a
call sym.MSVCR70.dll__errno
mov dword [eax], 0xd
call sym.MSVCR70.dll___doserrno
mov dword [eax], 0xf
or eax, 0xffffffff
call fcn.7c0019f5
ret

Function at 0x7c017210
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 0x7c01723d
test byte [esp + 8], 0x80
je 0x7c01722b
and eax, 0xfffffffe
jmp 0x7c01722e
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x7c01724e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.7c00bbc4
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x7c017332
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x7c049290]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x7c0173ad
push ebx
call fcn.7c0172fb
test eax, eax
pop ecx
jne 0x7c01737f
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.7c00188c
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 0x7c0173bf
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x7c01736f
inc eax
cmp eax, 0x104
ja 0x7c01736f
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x7c0173f7
cmp eax, dword [ebp + 0x10]
jg 0x7c0173da
mov eax, dword [ebp + 0x10]
push eax
call sym.MSVCR70.dll_malloc
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x7c01740c
call sym.MSVCR70.dll__errno
mov dword [eax], 0xc
jmp 0x7c01736f
cmp eax, dword [ebp + 0x10]
jle 0x7c01740c
call sym.MSVCR70.dll__errno
mov dword [eax], 0x22
jmp 0x7c01736f
lea eax, [ebp - 0x10c]
push eax
push ecx
call sym.MSVCR70.dll__mbscpy
pop ecx
pop ecx
jmp 0x7c017371
Function at 0x7c017f6e
Capabilities:
Check if file exists
Get file attributes

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

Function at 0x7c018058
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 0x7c018085
test byte [esp + 8], 0x80
je 0x7c018073
and eax, 0xfffffffe
jmp 0x7c018076
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x7c018096
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.7c00bbc4
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x7c018147
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x7c049290]
xor eax, dword [ebp + 4]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], eax
je 0x7c0181c9
push esi
call fcn.7c0172fb
test eax, eax
pop ecx
jne 0x7c018194
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.7c00188c
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 0x7c0181dc
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x7c018184
inc eax
cmp eax, esi
ja 0x7c018184
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x7c018213
cmp eax, dword [ebp + 0x10]
jg 0x7c0181f4
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
call sym.MSVCR70.dll_malloc
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x7c018228
call sym.MSVCR70.dll__errno
mov dword [eax], 0xc
jmp 0x7c018184
cmp eax, dword [ebp + 0x10]
jle 0x7c018228
call sym.MSVCR70.dll__errno
mov dword [eax], 0x22
jmp 0x7c018184
lea eax, [ebp - 0x214]
push eax
push ecx
call sym.MSVCR70.dll_wcscpy
pop ecx
pop ecx
jmp 0x7c018186
Function at 0x7c021471
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.7c00229a
mov eax, dword [0x7c049290]
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.7c013c09
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x7c02159b
push 2
push esi
push dword [ebp + 8]
call fcn.7c013c09
add esp, 0xc
cmp eax, ebx
je 0x7c02159b
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x7c02153e
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.7c023722
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x7c0214f7
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.7c0137b5
add esp, 0xc
cmp eax, 0xffffffff
je 0x7c021517
sub edi, eax
test edi, edi
jg 0x7c0214ef
jmp 0x7c02152f
call sym.MSVCR70.dll___doserrno
cmp dword [eax], 5
jne 0x7c02152c
call sym.MSVCR70.dll__errno
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.7c023722
pop ecx
pop ecx
jmp 0x7c021586
jge 0x7c021586
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.7c013c09
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 0x7c021586
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.7c013c09
add esp, 0xc
mov eax, esi
pop edi
jmp 0x7c02159d
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.7c00188c
leave
ret
Function at 0x7c023249
Capabilities:
Create pipe

Disassembly:
push 0x24
push 0x7c040d30
call fcn.7c001d9b
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 0x7c0232a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.7c00bbc4
pop ecx
mov eax, esi
jmp 0x7c02343d
call fcn.7c01403a
mov edi, eax
mov dword [ebp - 0x30], edi
cmp edi, esi
je 0x7c023401
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.7c0233c3
call fcn.7c01403a
mov esi, eax
mov dword [ebp - 0x34], esi
cmp esi, 0xffffffff
je 0x7c0233e1
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.7c0233d4
mov eax, 0x8000
test dword [ebp + 0x10], eax
jne 0x7c02332c
test byte [ebp + 0x11], 0x40
jne 0x7c023362
cmp dword [sym.MSVCR70.dll__fmode], eax
jne 0x7c023362
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 0x7c02339e
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.7c013e69
push dword [ebp - 0x28]
push esi
call fcn.7c013e69
add esp, 0x10
call sym.MSVCR70.dll__errno
and dword [eax], 0
jmp 0x7c02340f
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 0x7c023409
call sym.MSVCR70.dll__errno
mov esi, dword [ebp - 0x34]
mov dword [eax], 0x18
call sym.MSVCR70.dll__errno
cmp dword [eax], 0
je 0x7c023436
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 0x7c02343d
mov dword [ebx], edi
mov dword [ebx + 4], esi
xor eax, eax
call fcn.7c0019f5
ret
Function at 0x7c0234a8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x7c023670
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + sym.MSVCR70.dll___pioinfo]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x7c023670
test cl, 0x48
je 0x7c02350e
mov al, byte [eax + 5]
cmp al, 0xa
je 0x7c02350e
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x7c023560
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x7c023548
call sym.MSVCR70.dll__errno
mov dword [eax], 9
call sym.MSVCR70.dll___doserrno
mov dword [eax], esi
jmp 0x7c023558
cmp eax, 0x6d
je 0x7c023670
push eax
call fcn.7c00bbc4
pop ecx
or eax, 0xffffffff
jmp 0x7c023672
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [esi + eax + 4]
mov al, byte [ecx]
test al, al
jns 0x7c02366b
test edx, edx
je 0x7c023583
cmp byte [ebx], 0xa
jne 0x7c023583
or al, 4
jmp 0x7c023585
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x7c023665
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x7c023655
cmp al, 0xd
je 0x7c0235b9
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x7c023647
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x7c0235d3
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x7c0235ce
add dword [ebp + 0x10], 2
jmp 0x7c023627
mov dword [ebp + 0x10], eax
jmp 0x7c023643
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x7c0235fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x7c023643
cmp dword [ebp - 0xc], 0
je 0x7c023643
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x7c02361c
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x7c023627
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x7c023646
cmp ebx, dword [ebp + 0xc]
jne 0x7c02362c
cmp byte [ebp - 1], 0xa
jne 0x7c02362c
mov byte [ebx], 0xa
jmp 0x7c023646
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.7c013d28
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x7c023647
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x7c02359d
jmp 0x7c023665
mov eax, dword [edi]
lea esi, [esi + eax + 4]
mov al, byte [esi]
test al, 0x40
jne 0x7c023665
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x7c023672
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x7c026c4f
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x7c04f51c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x7c026c98
call ebp
mov esi, eax
cmp esi, ebx
je 0x7c026c7e
mov dword [0x7c04f51c], 1
jmp 0x7c026c9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x7c026c93
push 2
pop eax
mov dword [0x7c04f51c], eax
jmp 0x7c026c98
mov eax, dword [0x7c04f51c]
cmp eax, 1
jne 0x7c026cf5
cmp esi, ebx
jne 0x7c026cb0
call ebp
mov esi, eax
cmp esi, ebx
jne 0x7c026cb0
xor eax, eax
jmp 0x7c026d9c
cmp word [esi], bx
mov eax, esi
je 0x7c026cc5
inc eax
inc eax
cmp word [eax], bx
jne 0x7c026cb7
inc eax
inc eax
cmp word [eax], bx
jne 0x7c026cb7
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call sym.MSVCR70.dll_malloc
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x7c026ce8
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x7c026d9c
push ebp
push esi
push edi
call sym.MSVCR70.dll_memcpy
add esp, 0xc
jmp 0x7c026cda
cmp eax, 2
je 0x7c026cfe
cmp eax, ebx
jne 0x7c026ca9
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x7c026ca9
cmp byte [ebp], bl
mov esi, ebp
je 0x7c026d34
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x7c026ca9
push esi
add edi, eax
call sym.MSVCR70.dll_strlen
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x7c026d11
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call sym.MSVCR70.dll_malloc
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x7c026dad
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x7c026d8e
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x7c026da3
push edi
call sym.MSVCR70.dll_strlen
push esi
lea edi, [edi + eax + 1]
call sym.MSVCR70.dll_wcslen
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x7c026d54
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call sym.MSVCR70.dll_free
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x7c026ca9
Function at 0x7c02efaa
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x7c02efcb
lea eax, [ebp - 4]
push eax
call sym.MSVCR70.dll_time
mov eax, dword [ebp - 4]
pop ecx
mov dword [ebp - 8], eax
lea edi, [ebp - 8]
lea eax, [edi + 4]
push eax
call sym.MSVCR70.dll_localtime
test eax, eax
pop ecx
jne 0x7c02efec
call sym.MSVCR70.dll__errno
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x7c02f0ed
mov cx, word [eax + 0x14]
add cx, 0x76c
mov word [ebp - 0x30], cx
mov cx, word [eax + 0x10]
inc cx
mov word [ebp - 0x2e], cx
mov cx, word [eax + 0xc]
mov word [ebp - 0x2a], cx
mov cx, word [eax + 8]
mov word [ebp - 0x28], cx
mov cx, word [eax + 4]
mov word [ebp - 0x26], cx
mov ax, word [eax]
and word [ebp - 0x22], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
call esi
test eax, eax
je 0x7c02f0de
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x7c02f0de
push edi
call sym.MSVCR70.dll_localtime
test eax, eax
pop ecx
je 0x7c02f0de
mov cx, word [eax + 0x14]
add cx, 0x76c
mov word [ebp - 0x30], cx
mov cx, word [eax + 0x10]
inc cx
mov word [ebp - 0x2e], cx
mov cx, word [eax + 0xc]
mov word [ebp - 0x2a], cx
mov cx, word [eax + 8]
mov word [ebp - 0x28], cx
mov cx, word [eax + 4]
mov word [ebp - 0x26], cx
mov ax, word [eax]
and word [ebp - 0x22], 0
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
call esi
test eax, eax
je 0x7c02f0de
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x7c02f0de
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp + 8]
call sym.MSVCR70.dll__get_osfhandle
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x7c02f0de
xor eax, eax
jmp 0x7c02f0ec
call sym.MSVCR70.dll__errno
mov dword [eax], 0x16
or eax, 0xffffffff
pop esi
pop edi
leave
ret
Function at 0x7c02f127
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x7c02f14e
lea eax, [ebp - 0x30]
push eax
call sym.MSVCR70.dll__time64
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
pop ecx
mov dword [ebp - 0x34], eax
lea edi, [ebp - 0x38]
lea eax, [edi + 8]
push eax
call sym.MSVCR70.dll__localtime64
test eax, eax
pop ecx
jne 0x7c02f16f
call sym.MSVCR70.dll__errno
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x7c02f270
mov cx, word [eax + 0x14]
add cx, 0x76c
mov word [ebp - 0x28], cx
mov cx, word [eax + 0x10]
inc cx
mov word [ebp - 0x26], cx
mov cx, word [eax + 0xc]
mov word [ebp - 0x22], cx
mov cx, word [eax + 8]
mov word [ebp - 0x20], cx
mov cx, word [eax + 4]
mov word [ebp - 0x1e], cx
mov ax, word [eax]
and word [ebp - 0x1a], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov word [ebp - 0x1c], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
call esi
test eax, eax
je 0x7c02f261
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x7c02f261
push edi
call sym.MSVCR70.dll__localtime64
test eax, eax
pop ecx
je 0x7c02f261
mov cx, word [eax + 0x14]
add cx, 0x76c
mov word [ebp - 0x28], cx
mov cx, word [eax + 0x10]
inc cx
mov word [ebp - 0x26], cx
mov cx, word [eax + 0xc]
mov word [ebp - 0x22], cx
mov cx, word [eax + 8]
mov word [ebp - 0x20], cx
mov cx, word [eax + 4]
mov word [ebp - 0x1e], cx
mov ax, word [eax]
and word [ebp - 0x1a], 0
mov word [ebp - 0x1c], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
call esi
test eax, eax
je 0x7c02f261
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x7c02f261
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 8]
call sym.MSVCR70.dll__get_osfhandle
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x7c02f261
xor eax, eax
jmp 0x7c02f26f
call sym.MSVCR70.dll__errno
mov dword [eax], 0x16
or eax, 0xffffffff
pop esi
pop edi
leave
ret