joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7c34c130
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x7c3912d8], ebx
push esi
push edi
jne 0x7c34c1b0
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x7c34c1eb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x7c3912d8], eax
je 0x7c34c1eb
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x7c3912dc], eax
call esi
cmp dword [sym.MSVCR71.dll__osplatform], 2
mov dword [0x7c3912e0], eax
jne 0x7c34c1b0
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x7c3912e8], eax
je 0x7c34c1b0
push 0x7c37f65c
push edi
call esi
mov dword [0x7c3912e4], eax
mov eax, dword [0x7c3912e4]
test eax, eax
je 0x7c34c1f5
call eax
test eax, eax
je 0x7c34c1dc
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x7c3912e8]
test eax, eax
je 0x7c34c1dc
test byte [ebp - 8], 1
jne 0x7c34c1f5
cmp dword [sym.MSVCR71.dll__winmajor], 4
jb 0x7c34c1ef
or byte [ebp + 0x12], 0x20
jmp 0x7c34c214
xor eax, eax
jmp 0x7c34c224
or byte [ebp + 0x12], 4
jmp 0x7c34c214
mov eax, dword [0x7c3912dc]
test eax, eax
je 0x7c34c214
call eax
mov ebx, eax
test ebx, ebx
je 0x7c34c214
mov eax, dword [0x7c3912e0]
test eax, eax
je 0x7c34c214
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x7c3912d8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x7c34f388
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x7c3808d0
call fcn.7c34230b
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x7c3913bc], edi
jne 0x7c34f3cc
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x7c34f3b7
mov dword [0x7c3913bc], ebx
jmp 0x7c34f3cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x7c34f3cc
mov dword [0x7c3913bc], 2
mov eax, dword [0x7c3913bc]
cmp eax, ebx
jne 0x7c34f3ec
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x7c34f4af
cmp eax, 2
je 0x7c34f3f5
cmp eax, edi
jne 0x7c34f41d
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x7c34f408
mov eax, dword [sym.MSVCR71.dll___lc_codepage]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x7c34f424
xor eax, eax
jmp 0x7c34f4af
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.7c341395
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x7c34f457
cmp esi, edi
jne 0x7c34f46d
push dword [ebp - 0x20]
call sym.MSVCR71.dll_malloc
pop ecx
mov esi, eax
cmp esi, edi
je 0x7c34f41d
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x7c34f4a0
cmp dword [ebp + 0x14], edi
jne 0x7c34f48a
push edi
push edi
jmp 0x7c34f490
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x7c34f4ac
push esi
call sym.MSVCR71.dll_free
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.7c342346
ret
Function at 0x7c34f4b8
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x7c3808e0
call fcn.7c34230b
xor esi, esi
cmp dword [0x7c3913c0], esi
jne 0x7c34f4fc
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x7c34f4e7
mov dword [0x7c3913c0], edi
jmp 0x7c34f4fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x7c34f4fc
mov dword [0x7c3913c0], 2
mov eax, dword [0x7c3913c0]
cmp eax, 2
je 0x7c34f5dd
cmp eax, esi
je 0x7c34f5dd
cmp eax, 1
jne 0x7c34f541
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x7c34f52a
mov eax, dword [sym.MSVCR71.dll___lc_codepage]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x7c34f548
xor eax, eax
jmp 0x7c34f5ef
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.7c341395
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x7c34f57e
cmp edi, esi
jne 0x7c34f599
lea eax, [ebx + ebx]
push eax
call sym.MSVCR71.dll_malloc
pop ecx
mov edi, eax
cmp edi, esi
je 0x7c34f541
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x7c34f5cc
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x7c34f5b6
push esi
push esi
jmp 0x7c34f5bc
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x7c34f5d8
push edi
call sym.MSVCR71.dll_free
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x7c34f5ef
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.7c342346
ret
Function at 0x7c352808
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.7c341395
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x7c3528a3
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [sym.MSVCR71.dll__osplatform]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x7c3528a3
cmp eax, 1
je 0x7c3528c4
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x7c3528a3
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x7c352870
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x7c35289f
xor eax, eax
inc eax
jmp 0x7c3528e3
cmp edi, eax
jae 0x7c3528a7
xor eax, eax
jmp 0x7c3528e3
cmp eax, esi
jae 0x7c3528ae
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [sym.MSVCR71.dll__osplatform]
jmp 0x7c3528c7
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x7c3528eb
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x7c38b118]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x7c35291c
xor eax, eax
jmp 0x7c352aa5
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + sym.MSVCR71.dll___pioinfo]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x7c352958
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.7c352e87
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x7c352a33
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x7c352a71
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x7c3529bc
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x7c3529ad
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x7c35298d
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x7c3529fc
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x7c352a05
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x7c35297e
jmp 0x7c352a07
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x7c352aa0
cmp dword [ebp - 0x6c], edi
je 0x7c352a71
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x7c352a66
call sym.MSVCR71.dll__errno
mov dword [eax], 9
call sym.MSVCR71.dll___doserrno
mov dword [eax], esi
jmp 0x7c352a9b
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x7c352a5b
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x7c352a07
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x7c352a07
push dword [ebp - 0x6c]
call fcn.7c349ee2
pop ecx
jmp 0x7c352a9b
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x7c352a89
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x7c352a89
xor eax, eax
jmp 0x7c352aa3
call sym.MSVCR71.dll__errno
mov dword [eax], 0x1c
call sym.MSVCR71.dll___doserrno
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x7c352aa3
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.7c341aed
add ebp, 0x3a0
leave
ret
Function at 0x7c3562f8
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x7c356306
xor ecx, ecx
jmp 0x7c356324
cmp eax, 0x1a
jbe 0x7c356310
push 0x57
pop eax
pop ebp
ret
add al, 0x40
lea ecx, [ebp + 8]
mov byte [ebp + 8], al
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
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 0x7c356346
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop ebp
ret

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

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

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

Disassembly:
push 0x128
push 0x7c380ce0
call fcn.7c34230b
mov eax, dword [0x7c38b118]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x7c356a63
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x7c356a14
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.7c341395
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x7c356a01
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x7c356a63
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x7c356a63
mov al, byte [edi]
cmp al, 0x5c
je 0x7c356a22
cmp al, 0x2f
jne 0x7c356a27
cmp al, byte [edi + 1]
je 0x7c356a5d
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call sym.MSVCR71.dll__mbctoupper
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x7c356a63
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.7c349ee2
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x7c356a7f
push edi
call sym.MSVCR71.dll_free
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
call fcn.7c341aed
call fcn.7c342346
ret
Function at 0x7c356a99
Capabilities:
Get common file path

Disassembly:
push 0x120
push 0x7c380cf0
call fcn.7c34230b
mov eax, dword [0x7c38b118]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x7c356b3d
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.7c341395
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x7c356b2a
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x7c356b3d
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x7c356b58
cmp byte [edi + 1], 0x3a
jne 0x7c356b58
movzx eax, byte [edi]
push eax
call sym.MSVCR71.dll_toupper
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x7c356b68
push edi
call sym.MSVCR71.dll_free
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
call fcn.7c341aed
call fcn.7c342346
ret

Function at 0x7c356b7e
Capabilities:
Set current directory

Disassembly:
push 0x10
push 0x7c380d00
call fcn.7c34230b
mov ebx, dword [ebp + 8]
cmp ebx, 1
jl 0x7c356bed
cmp ebx, 0x1f
jg 0x7c356bed
push 7
call sym.MSVCR71.dll__lock
pop ecx
and dword [ebp - 4], 0
add ebx, 0x40
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], 0x3a
mov byte [ebp - 0x1a], 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x7c356bc5
and dword [ebp - 0x20], 0
jmp 0x7c356bd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.7c349ee2
pop ecx
or dword [ebp - 0x20], 0xffffffff
or dword [ebp - 4], 0xffffffff
call fcn.7c356be4
mov eax, dword [ebp - 0x20]
jmp 0x7c356c06
call sym.MSVCR71.dll__errno
mov dword [eax], 0xd
call sym.MSVCR71.dll___doserrno
mov dword [eax], 0xf
or eax, 0xffffffff
call fcn.7c342346
ret

Function at 0x7c356c0c
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 0x7c356c39
test byte [esp + 8], 0x80
je 0x7c356c27
and eax, 0xfffffffe
jmp 0x7c356c2a
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x7c356c4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.7c349ee2
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x7c356cf7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x7c356d25
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x7c356d2a
cmp eax, 1
je 0x7c356d2a
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x7c356d2e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x7c38b118]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x7c356da6
push ebx
call fcn.7c356cf7
test eax, eax
pop ecx
jne 0x7c356d75
call sym.MSVCR71.dll___doserrno
mov dword [eax], 0xf
call sym.MSVCR71.dll__errno
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.7c341aed
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
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
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x7c356db8
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x7c356d68
inc eax
cmp eax, 0x104
ja 0x7c356d68
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x7c356df0
cmp eax, dword [ebp + 0x10]
jg 0x7c356dd3
mov eax, dword [ebp + 0x10]
push eax
call sym.MSVCR71.dll_malloc
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x7c356e05
call sym.MSVCR71.dll__errno
mov dword [eax], 0xc
jmp 0x7c356d68
cmp eax, dword [ebp + 0x10]
jle 0x7c356e05
call sym.MSVCR71.dll__errno
mov dword [eax], 0x22
jmp 0x7c356d68
lea eax, [ebp - 0x108]
push eax
push ecx
call sym.MSVCR71.dll__mbscpy
pop ecx
pop ecx
jmp 0x7c356d6a
Function at 0x7c357a88
Capabilities:
Check if file exists
Get file attributes

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

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

Disassembly:
push 0x230
push 0x7c380d58
call fcn.7c34230b
mov eax, dword [0x7c38b118]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x230]
xor ebx, ebx
mov dword [ebp - 0x238], ebx
or dword [ebp - 0x234], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x7c357bdc
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
mov dword [ebp - 0x23c], esi
cmp esi, 0x104
jle 0x7c357b8e
mov dword [ebp - 4], ebx
lea eax, [esi + esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.7c341395
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x240], edi
jmp 0x7c357b7b
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x7c357bdc
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
cmp esi, ebx
je 0x7c357bdc
mov ax, word [edi]
cmp ax, 0x5c
je 0x7c357ba1
cmp ax, 0x2f
jne 0x7c357ba7
cmp ax, word [edi + 2]
je 0x7c357bd6
mov word [ebp - 0x24], 0x3d
xor eax, eax
mov ax, word [edi]
push eax
call sym.MSVCR71.dll_towupper
pop ecx
mov word [ebp - 0x22], ax
mov word [ebp - 0x20], 0x3a
mov word [ebp - 0x1e], bx
push edi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x7c357bdc
mov dword [ebp - 0x234], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.7c349ee2
pop ecx
cmp dword [ebp - 0x238], ebx
je 0x7c357bf8
push edi
call sym.MSVCR71.dll_free
pop ecx
mov eax, dword [ebp - 0x234]
lea esp, [ebp - 0x24c]
mov ecx, dword [ebp - 0x1c]
call fcn.7c341aed
call fcn.7c342346
ret

Function at 0x7c357c12
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 0x7c357c3f
test byte [esp + 8], 0x80
je 0x7c357c2d
and eax, 0xfffffffe
jmp 0x7c357c30
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x7c357c50
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.7c349ee2
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x7c357d01
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x7c38b118]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], eax
je 0x7c357d80
push esi
call fcn.7c356cf7
test eax, eax
pop ecx
jne 0x7c357d48
call sym.MSVCR71.dll___doserrno
mov dword [eax], 0xf
call sym.MSVCR71.dll__errno
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.7c341aed
leave
ret
and word [ebp - 6], 0
lea eax, [ebp - 0x218]
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 0x7c357d93
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x7c357d3b
inc eax
cmp eax, esi
ja 0x7c357d3b
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x7c357dca
cmp eax, dword [ebp + 0x10]
jg 0x7c357dab
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
call sym.MSVCR71.dll_malloc
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x7c357ddf
call sym.MSVCR71.dll__errno
mov dword [eax], 0xc
jmp 0x7c357d3b
cmp eax, dword [ebp + 0x10]
jle 0x7c357ddf
call sym.MSVCR71.dll__errno
mov dword [eax], 0x22
jmp 0x7c357d3b
lea eax, [ebp - 0x214]
push eax
push ecx
call sym.MSVCR71.dll_wcscpy
pop ecx
pop ecx
jmp 0x7c357d3d
Function at 0x7c36130d
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.7c341395
mov eax, dword [0x7c38b118]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.7c352d68
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x7c361440
push 2
push esi
push dword [ebp + 8]
call fcn.7c352d68
add esp, 0xc
cmp eax, ebx
je 0x7c361440
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x7c3613e0
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call sym.MSVCR71.dll_memset
push 0x8000
push dword [ebp + 8]
call fcn.7c3636e3
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x7c361396
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.7c3528eb
add esp, 0xc
cmp eax, 0xffffffff
je 0x7c3613b6
sub edi, eax
test edi, edi
jg 0x7c36138e
jmp 0x7c3613ce
call sym.MSVCR71.dll___doserrno
cmp dword [eax], 5
jne 0x7c3613cb
call sym.MSVCR71.dll__errno
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.7c3636e3
pop ecx
pop ecx
jmp 0x7c361428
jge 0x7c361428
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.7c352d68
push dword [ebp + 8]
call sym.MSVCR71.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 0x7c361428
call sym.MSVCR71.dll__errno
mov dword [eax], 0xd
call sym.MSVCR71.dll___doserrno
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.7c352d68
add esp, 0xc
mov eax, esi
pop edi
jmp 0x7c361442
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.7c341aed
leave
ret