joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10602058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.106021a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1060207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1060206a
add dl, dl
jne 0x10602089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x106020dc
xor eax, eax
add dl, dl
jne 0x10602096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1060217d
add dl, dl
jne 0x106020a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106020b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106020bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106020c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x106020d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10602075
mov eax, 1
add dl, dl
jne 0x106020ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106020f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x106020e1
sub eax, ebx
mov ebx, 1
jne 0x10602128
mov ecx, 1
add dl, dl
jne 0x1060210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10602119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10602105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10602075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1060213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1060214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10602136
cmp eax, 0x7d00
jae 0x1060216d
cmp eax, 0x500
jb 0x10602168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10602075
cmp eax, 0x7f
ja 0x10602170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10602075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1060219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10602075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x7c7244
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7c724e
pushal
call 0x7c7254
pop ebp
sub ebp, 0x10
sub ebp, 0x3c7244
jmp 0x7c726a
mov eax, 0x3c7244
add eax, ebp
add eax, 0x4c
mov ecx, 0x61d
mov edx, 0x1c0d4c64
xor byte [eax], dl
inc eax
dec ecx
jne 0x7c7281
jmp 0x7c7294
out dx, eax
test eax, 0x6458edef
in eax, 0xa5
pushfd
test eax, 0x646461dc
fimul word fs:[esp + 0x64]
xchg ebx, eax
xchg byte [edi - 0x54], ah
out dx, eax
in eax, 0x68
mov eax, dword fs:[0xe934]
add byte [eax - 0x68], al
in eax, dx
pushal
inc eax
or al, 0xd0
pop ds
push 0x64
or al, 0xf4
xchg edx, eax
dec ecx
dec eax
inc eax
or al, 0x27
fstp xword [eax + 0x64618cb9]
lea edx, fs:[esp + 0x64]
jmp 0xee14b2e3
Function at 0x58bc70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x11e000]
push edi
or ebp, 0xffffffff
jmp 0x58bc92
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x58bc99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58bc88
mov eax, 1
add ebx, ebx
jne 0x58bcab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x58bcbc
jne 0x58bcdb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58bcdb
dec eax
add ebx, ebx
jne 0x58bcc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x58bca0
add ebx, ebx
jne 0x58bcd7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x58bd2d
xor ecx, ecx
sub eax, 3
jb 0x58bcf3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x58bd62
sar eax, 1
mov ebp, eax
jmp 0x58bcfe
add ebx, ebx
jne 0x58bcfe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58bccc
inc ecx
add ebx, ebx
jne 0x58bd0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58bccc
add ebx, ebx
jne 0x58bd19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x58bd0e
jne 0x58bd2a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x58bd0e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x58bd4c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x58bd3e
jmp 0x58bc8e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x58bd4c
add edi, ecx
jmp 0x58bc8e
pop esi
mov edi, esi
mov ecx, 0x5aef
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x58bd6a
cmp byte [edi], 0x1e
jne 0x58bd6a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x58bd6f
lea edi, [esi + 0x182000]
mov eax, dword [edi]
or eax, eax
je 0x58bde7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1961f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x196314]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x58bd9c
mov ecx, edi
jns 0x58bdcb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19631c]
or eax, eax
je 0x58bde1
mov dword [ebx], eax
add ebx, 4
jmp 0x58bdb9
call dword [esi + 0x196318]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x58be18
cmp al, 0xef
ja 0x58be0b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x58bded
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x58bdfa
mov ebp, dword [esi + 0x196320]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x58be4c
sub esp, 0xffffff80
jmp 0x4b3f00
Function at 0x7c004075
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
je 0x7c00bd2d
push esi
push 0x88
push 1
call sym.MSVCR70.dll_calloc
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x7c00bd4f
push esi
call fcn.7c00173b
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
je 0x7c00bd3f
push eax
push dword [ebp + 0x18]
push esi
push 0x7c0040e2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
je 0x7c00bd47
pop esi
pop edi
pop ebx
pop ebp
ret
call sym.MSVCR70.dll__errno
mov dword [eax], 0x16
xor eax, eax
jmp 0x7c0040de
lea eax, [ebp + 0x10]
jmp 0x7c0040bf
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
push esi
call sym.MSVCR70.dll_free
test ebx, ebx
pop ecx
je 0x7c00bd61
push ebx
call fcn.7c0102b7
pop ecx
xor eax, eax
jmp 0x7c0040dd

Function at 0x7c004373
Capabilities:
Terminate process

Disassembly:
push 8
call sym.MSVCR70.dll__assert
jmp 0x7c00440a
push esi
push 8
call sym.MSVCR70.dll__assert
xor esi, esi
inc esi
cmp dword [0x7c04aba8], esi
pop ecx
je 0x7c00bb8d
cmp dword [esp + 0xc], 0
mov dword [0x7c04aadc], esi
mov byte [0x7c04aba4], bl
jne 0x7c0043e2
mov ecx, dword [0x7c04ab74]
test ecx, ecx
je 0x7c0043d1
mov eax, dword [0x7c04ab70]
sub eax, 4
cmp eax, ecx
mov dword [0x7c04ab70], eax
jb 0x7c0043d1
mov eax, dword [eax]
test eax, eax
je 0x7c0043c1
call eax
mov eax, dword [0x7c04ab70]
sub eax, 4
cmp eax, dword [0x7c04ab74]
jmp 0x7c0043b2
push 0x7c04ab8c
push 0x7c04ab7c
call sym.MSVCR70.dll__initterm
pop ecx
pop ecx
push 0x7c04ab98
push 0x7c04ab90
call sym.MSVCR70.dll__initterm
test ebx, ebx
pop ecx
pop ecx
jne 0x7c004134
push dword [esp + 8]
mov dword [0x7c04aba8], esi
call fcn.7c00440d
pop ecx
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
jmp 0x7c00438b
Function at 0x7c00453f
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x7c04b118]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
xor ebx, ebx
xor esi, esi
cmp eax, ebx
push 2
pop ebp
jne 0x7c0045e9
call edi
mov esi, eax
cmp esi, ebx
je 0x7c00c679
mov dword [0x7c04b118], 1
cmp esi, ebx
je 0x7c00c69a
cmp word [esi], bx
mov eax, esi
je 0x7c004592
add eax, ebp
cmp word [eax], bx
jne 0x7c004584
add eax, ebp
cmp word [eax], bx
jne 0x7c004584
mov edi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x7c0045d9
push ebp
call sym.MSVCR70.dll_malloc
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x7c0045d9
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
je 0x7c00c6a7
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
cmp eax, 1
jne 0x7c00c6ba
jmp 0x7c004575
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x7c00c690
mov eax, ebp
mov dword [0x7c04b118], eax
jmp 0x7c0045e9
mov eax, dword [0x7c04b118]
jmp 0x7c0045e9
call edi
mov esi, eax
cmp esi, ebx
je 0x7c00c6c2
jmp 0x7c00457d
push dword [esp + 0x10]
call sym.MSVCR70.dll_free
pop ecx
mov dword [esp + 0x10], ebx
jmp 0x7c0045d5
cmp eax, ebp
je 0x7c00c6c9
cmp eax, ebx
je 0x7c00c6c9
xor eax, eax
jmp 0x7c0045e2
call dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
je 0x7c00c6c2
cmp byte [esi], bl
je 0x7c00c6e3
inc eax
cmp byte [eax], bl
jne 0x7c00c6d9
inc eax
cmp byte [eax], bl
jne 0x7c00c6d9
sub eax, esi
inc eax
mov ebp, eax
push ebp
call sym.MSVCR70.dll_malloc
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x7c00c6f9
xor edi, edi
jmp 0x7c00c704
push ebp
push esi
push edi
call sym.MSVCR70.dll__assert
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
mov eax, edi
jmp 0x7c0045e2
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 0x7c01202b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x7c01203a
pop dword [ebp - 0x38]
mov eax, 0xd49ae431
add eax, 0xa7663c09
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x3dbde
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0xa06a2dc
sub ecx, 0xa0658bf
xor edx, edx
add edx, eax
mov ebx, 0x7c054000
add ebx, dword [ebp - 0x38]
mov esi, 0x549065e4
sub esi, 0x7858efb9
xor dword [ebp - 0x30], esi
mov edi, dword [ebx]
add dword [ebp - 0xc], 0x94a277c
add edi, esi
add dword [ebp - 0x10], 0x28cb9ed6
mov dword [edx], edi
xor dword [ebp - 0x24], 0xf14fcfb2
add edx, 0xd0a7420c
add edx, 0x2f58bdf8
add ebx, 0x4e4d3e13
sub ebx, 0x4e4d3e0f
loop 0x7c012090
add eax, 0x11b47
mov ebx, eax
add eax, 5
mov ecx, 0xf4732db6
sub ecx, 0x78732db6
add ecx, dword [ebp - 0x38]
call ebx
leave
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 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__assert
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 0x7c0284d7
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x7c04f564]
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 0x7c028520
call ebp
mov esi, eax
cmp esi, ebx
je 0x7c028506
mov dword [0x7c04f564], 1
jmp 0x7c028525
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x7c02851b
push 2
pop eax
mov dword [0x7c04f564], eax
jmp 0x7c028520
mov eax, dword [0x7c04f564]
cmp eax, 1
jne 0x7c02857d
cmp esi, ebx
jne 0x7c028538
call ebp
mov esi, eax
cmp esi, ebx
jne 0x7c028538
xor eax, eax
jmp 0x7c028624
cmp word [esi], bx
mov eax, esi
je 0x7c02854d
inc eax
inc eax
cmp word [eax], bx
jne 0x7c02853f
inc eax
inc eax
cmp word [eax], bx
jne 0x7c02853f
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 0x7c028570
xor edi, edi
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x7c028624
push ebp
push esi
push edi
call sym.MSVCR70.dll__assert
add esp, 0xc
jmp 0x7c028562
cmp eax, 2
je 0x7c028586
cmp eax, ebx
jne 0x7c028531
call dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x7c028531
cmp byte [ebp], bl
mov esi, ebp
je 0x7c0285bc
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x7c028531
push esi
add edi, eax
call sym.MSVCR70.dll_strlen
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x7c028599
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 0x7c028635
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x7c028616
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 0x7c02862b
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 0x7c0285dc
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 0x7c028531
Function at 0x7c03070e
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x7c03072f
lea eax, [ebp - 4]
push eax
call sym.MSVCR70.dll__assert
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__assert
test eax, eax
pop ecx
jne 0x7c030750
call sym.MSVCR70.dll__errno
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x7c030851
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 0x7c030842
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.kernel32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x7c030842
push edi
call sym.MSVCR70.dll__assert
test eax, eax
pop ecx
je 0x7c030842
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 0x7c030842
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.kernel32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x7c030842
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 0x7c030842
xor eax, eax
jmp 0x7c030850
call sym.MSVCR70.dll__errno
mov dword [eax], 0x16
or eax, 0xffffffff
pop esi
pop edi
leave
ret