joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf0489fb
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0xf061038]
mov ecx, dword [ebp + 8]
push esi
mov dword [ebp - 4], eax
push edi
mov eax, dword fs:[0x18]
lea esi, [eax + 0xbf8]
push ecx
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.ntdll.dll_RtlInitString]
xor edi, edi
push edi
lea eax, [ebp - 0x264]
push eax
push esi
call dword [0xf09bd38]
cmp eax, edi
jl 0xf048b52
push esi
call fcn.0f04640f
cmp dword [ebp + 0x14], edi
je 0xf048b14
push dword [ebp + 0x10]
lea eax, [ebp - 0x254]
push dword [ebp + 0xc]
mov dword [ebp - 0x258], edi
push eax
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.0f047169
cmp eax, edi
jl 0xf048b52
push ebx
push edi
push 0x5c
push esi
call fcn.0f0463ab
mov ebx, eax
inc ebx
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x26c]
push eax
push esi
mov word [esi], bx
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
mov edi, eax
test edi, edi
jl 0xf048afa
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0xf048aec
push dword [ebp + 0x10]
lea eax, [ebp - 0x254]
push dword [ebp + 0xc]
mov dword [ebp - 0x258], 1
push eax
push dword [ebp - 0x25c]
call fcn.0f0471f6
mov edi, eax
test edi, edi
jge 0xf048a8a
jmp 0xf048afa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or edi, 0x80070000
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x258], 0
pop ebx
je 0xf048b50
xor edi, edi
jmp 0xf048b50
push edi
push 0x2a
push esi
call fcn.0f0463ab
test eax, eax
jge 0xf048b2e
push edi
push 0x3f
push esi
call fcn.0f0463ab
test eax, eax
jl 0xf048b35
mov eax, 0x80070057
jmp 0xf048b52
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0xf048b50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or edi, 0x80070000
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0f01b45c
leave
ret 0x10
Function at 0xf048e50
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0xf061038]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x118], 0xf00366c
mov dword [ebp - 0x114], 0xf003668
call sym.ntvdm.exe_cmdCheckTempInit
xor ebx, ebx
mov edi, 0x104
mov eax, dword [ebp + ebx*4 - 0x118]
lea edx, [ebp - 0x110]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0xf048e95
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf048ea8
sub eax, edx
mov esi, eax
push edi
lea eax, [ebp + esi - 0x10f]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0xf048ef8
cmp eax, edi
jae 0xf048ef8
lea eax, [ebp - 0x110]
push eax
mov byte [ebp + esi - 0x110], 0x3d
call sym.ntvdm.exe_cmdCheckTemp
test eax, eax
je 0xf048ef8
lea ecx, [eax + esi]
mov byte [ecx], 0
inc ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
inc ebx
cmp ebx, 2
jb 0xf048e86
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0f01b45c
leave
ret

Function at 0xf048fe0
Capabilities:
Get number of processors
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
lea eax, [ebp - 0x14]
push eax
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
jne 0xf04900e
mov eax, 0x80070003
jmp 0xf0490c5
mov eax, dword [ebp - 0x14]
cmp ax, bx
push esi
push edi
mov edi, dword [ebp - 4]
je 0xf049026
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0xf049029
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ntdll.dll_NtQueryFullAttributesFile]
mov esi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp esi, ebx
jge 0xf049075
mov eax, esi
jmp 0xf0490c3
mov eax, dword [ebp + 8]
sub eax, 4
je 0xf04908f
dec eax
dec eax
je 0xf04908a
dec eax
dec eax
jne 0xf049094
lea eax, [ebp - 0x64]
jmp 0xf049097
lea eax, [ebp - 0x5c]
jmp 0xf049097
lea eax, [ebp - 0x54]
jmp 0xf049097
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.0f04858b
neg eax
sbb eax, eax
and eax, 0x10
push eax
call fcn.0f048284
cmp eax, ebx
jge 0xf0490c3
cmp eax, 0x8007000d
jne 0xf0490c3
cmp dword [ebp + 8], 4
jne 0xf0490c3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0xf0490cf
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov eax, dword fs:[0x18]
push dword [ebp + 0xc]
lea esi, [eax + 0xbf8]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlInitString]
push 0
lea eax, [ebp - 8]
push eax
push esi
call dword [0xf09bd38]
mov edi, eax
test edi, edi
jl 0xf0491a7
push esi
call fcn.0f04640f
mov eax, dword [ebp + 8]
cmp eax, 8
ja case.default.0xf04911a
jmp dword [eax*4 + 0xf0491af]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0xf049171
mov ecx, dword [ebp + 0x10]
and eax, 0x3f
mov word [ecx], ax
jmp 0xf0491a7
mov eax, dword [ebp + 0x10]
movzx eax, word [eax]
test eax, 0xffffffd0
je 0xf04914e
mov edi, 0x80070005
jmp 0xf0491a7
and eax, 0x27
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0xf0491a7
jmp 0xf049171
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
cmp eax, 0xffffffff
jne 0xf049181
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or edi, 0x80070000
jmp 0xf0491a7
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0xf0491a7
push dword [ebp + 0x10]
push esi
push eax
call fcn.0f048430
jmp 0xf04919e
push dword [ebp + 0x10]
push esi
push eax
call fcn.0f048fe0
mov edi, eax
jmp 0xf0491a7
mov edi, 0x80070001
mov eax, edi
pop edi
pop esi
leave
ret 0xc

Function at 0xf04b3e6
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
or edi, 0xffffffff
cmp eax, edi
jne 0xf04b41d
push edi
push esi
call fcn.0f007f37
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0xf04b460
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
test eax, eax
je 0xf04b459
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
je 0xf04b459
cmp dword [ebp - 4], 0
je 0xf04b464
push edi
push esi
call fcn.0f007f37
xor eax, eax
jmp 0xf04b467
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 0x10
Function at 0xf04bf98
Capabilities:
Set current directory
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov bl, byte [esi + 0x9a]
add bl, 0x41
cmp word [esi + 0x96], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov dword [ebp - 4], 0x3a3f3d
je 0xf04bfd9
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [esi + 0x28]
lea eax, [ebp - 4]
push eax
mov byte [ebp - 3], bl
call edi
mov esi, dword [ebp + 8]
test esi, esi
je 0xf04c023
jmp 0xf04c01d
cmp al, 0x3d
jne 0xf04c010
movsx eax, byte [esi + 1]
push eax
call fcn.0f0562e2
cmp al, 0x41
pop ecx
jl 0xf04c010
cmp al, 0x5a
jg 0xf04c010
cmp byte [esi + 2], 0x3a
jne 0xf04c010
cmp al, bl
je 0xf04c010
mov byte [ebp - 3], al
lea eax, [esi + 4]
push eax
lea eax, [ebp - 4]
push eax
call edi
push 0
push esi
call fcn.0f0563d0
pop ecx
inc eax
pop ecx
mov esi, eax
mov al, byte [esi]
test al, al
jne 0xf04bfe2
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0xf04c085
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, 0x104
push edi
mov dword [ebp - 8], 0x3a3f3d
mov dword [ebp - 0xc], 0x5c3a3f
call fcn.0f006f83
xor ebx, ebx
mov esi, eax
cmp esi, ebx
pop ecx
mov dword [0xf0773c8], eax
mov dword [0xf0773cc], ebx
je 0xf04c248
mov al, byte [ebp + 8]
add al, 0x41
push edi
mov byte [ebp - 7], al
push esi
lea eax, [ebp - 8]
push eax
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, eax
cmp ecx, ebx
mov dword [0xf0773cc], ecx
je 0xf04c230
cmp ecx, edi
ja 0xf04c230
inc ecx
mov ebx, edi
sub ebx, ecx
mov dword [0xf0773cc], ecx
add esi, ecx
mov al, byte [ebp - 4]
cmp al, byte [ebp + 8]
je 0xf04c1a7
push dword [ebp - 4]
call sym.ntvdm.exe_demGetPhysicalDriveType
movzx eax, al
test eax, eax
jne 0xf04c12d
mov al, byte [ebp - 4]
add al, 0x41
mov byte [ebp - 0xc], al
lea eax, [ebp - 0xc]
push eax
call fcn.0f011ba9
test eax, eax
je 0xf04c1a1
cmp eax, 1
je 0xf04c1a1
mov al, byte [ebp - 4]
add al, 0x41
push ebx
mov byte [ebp - 7], al
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp eax, ebx
jbe 0xf04c188
mov eax, dword [0xf0773cc]
lea eax, [eax + ebx + 0x104]
push eax
push dword [0xf0773c8]
call fcn.0f010020
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0xf04c207
mov dword [0xf0773c8], esi
add esi, dword [0xf0773cc]
add ebx, edi
push ebx
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0xf04c1a1
mov ecx, dword [0xf0773cc]
inc eax
add esi, eax
sub ebx, eax
add ecx, eax
mov dword [0xf0773cc], ecx
jmp 0xf04c1a7
mov ecx, dword [0xf0773cc]
inc byte [ebp - 4]
cmp byte [ebp - 4], 0x1a
jb 0xf04c0fd
mov esi, dword [0xf0773c8]
inc ecx
push ecx
push esi
call fcn.0f010020
xor edi, edi
cmp eax, edi
pop ecx
pop ecx
mov dword [0xf0773c8], eax
je 0xf04c222
mov ecx, dword [0xf0773cc]
cmp ecx, edi
je 0xf04c222
mov byte [ecx + eax], 0
push dword [0xf0773c8]
inc dword [0xf0773cc]
push dword [0xf0773cc]
call sub.KERNEL32.dll_SetVDMCurrentDirectories
push dword [0xf0773c8]
call fcn.0f00579c
mov dword [0xf0773c8], edi
jmp 0xf04c228
push dword [0xf0773c8]
call fcn.0f00579c
and dword [0xf0773c8], 0
and dword [0xf0773cc], 0
jmp 0xf04c247
push esi
call fcn.0f00579c
mov dword [0xf0773cc], edi
jmp 0xf04c247
push dword [0xf0773c8]
call fcn.0f00579c
mov dword [0xf0773c8], ebx
mov dword [0xf0773cc], ebx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0xf04c26a
Capabilities:
Check if file exists
Create directory
Get file attributes
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov esi, 0xf003878
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
je 0xf04c2fc
cmp dword [ebp + 0x10], 1
je 0xf04c303
cmp dword [ebp + 0x10], 2
jne 0xf04c343
lea eax, [ebp + 0x10]
push eax
push 1
push edi
push str.SoftwareMicrosoftWindows_NTCurrentVersionTerminal_Server
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xf04c343
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp + 8]
push eax
push edi
push str.RootDrive
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jne 0xf04c3d6
cmp dword [ebp + 8], 1
jne 0xf04c3d6
dec dword [ebp - 4]
jmp 0xf04c343
mov eax, 0xf00386c
jmp 0xf04c308
mov eax, 0xf003860
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp eax, edi
mov dword [ebp - 4], eax
je 0xf04c3d6
cmp eax, dword [ebp + 0xc]
jae 0xf04c3d6
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf04c32c
mov ecx, dword [ebp - 4]
sub eax, edx
add eax, ecx
cmp eax, dword [ebp + 0xc]
jae 0xf04c3d6
mov eax, dword [ebp - 4]
cmp byte [eax + ebx - 1], 0x5c
jne 0xf04c354
mov dword [ebp - 0xc], 0xf003879
mov eax, dword [ebp - 0xc]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf04c359
mov edi, ebx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0xf04c365
push dword [ebp + 0xc]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
jbe 0xf04c3a0
cmp eax, dword [ebp + 0xc]
jae 0xf04c3a0
push ebx
call esi
cmp eax, 0xffffffff
jne 0xf04c3c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0xf04c3b0
cmp eax, 2
jne 0xf04c3d1
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
mov dword [ebp - 8], eax
je 0xf04c3d1
push ebx
call esi
cmp eax, 0xffffffff
je 0xf04c3d1
shr eax, 4
and eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0xf04c3d8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0xf04cdda
Capabilities:
Delete file
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0xf04cf0a
mov ecx, dword [edi + 0x20]
test ecx, ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
je 0xf04cea0
mov eax, dword [0xf0773d8]
cmp ecx, eax
jne 0xf04ce12
mov esi, ecx
mov eax, dword [esi]
mov dword [0xf0773d8], eax
jmp 0xf04ce30
test eax, eax
mov esi, eax
je 0xf04cea0
cmp esi, ecx
je 0xf04ce28
mov eax, esi
mov esi, dword [esi]
test esi, esi
jne 0xf04ce1c
test esi, esi
je 0xf04cea0
mov ecx, dword [esi]
mov dword [eax], ecx
lea eax, [esi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xf04ce5f
push 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 8]
call ebx
push dword [esi + 0xc]
call ebx
push dword [esi + 0x10]
call ebx
push dword [esi + 0x14]
call ebx
lea eax, [esi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esi + 0x18]
call fcn.0f00579c
push esi
call fcn.0f00579c
pop ecx
pop ecx
mov eax, dword [edi + 0x24]
test eax, eax
mov esi, dword [ebp + 0xc]
je 0xf04ced2
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, esi
neg eax
sbb eax, eax
and eax, 0xfffffc17
add eax, 0x3e8
push eax
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x18]
call ebx
mov eax, dword [edi + 0x28]
test eax, eax
je 0xf04cf01
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
neg esi
sbb esi, esi
and esi, 0xfffffc17
add esi, 0x3e8
push esi
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x1c]
call ebx
push edi
call fcn.0f00579c
pop ecx
pop esi
pop ebx
xor eax, eax
inc eax
pop edi
pop ebp
ret 8
Function at 0xf04d19f
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0xf0773d8]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 4], ebx
je 0xf04d24b
mov ecx, dword [ebp + 8]
cmp dword [esi + 4], ecx
je 0xf04d1cb
mov esi, dword [esi]
cmp esi, ebx
jne 0xf04d1bd
cmp esi, ebx
je 0xf04d24b
mov eax, dword [esi + 0x20]
cmp eax, ebx
mov edi, dword [ebp + 0xc]
mov dword [edi], eax
jne 0xf04d254
push 1
lea eax, [ebp - 4]
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp + 0xc], ebx
lea ebx, [esi + 0x2c]
push ebx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x20]
mov dword [edi], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 8], eax
jne 0xf04d221
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jne 0xf04d221
mov dword [esi + 0x24], 1
jmp 0xf04d228
mov dword [ebp + 0xc], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 0xc], 0
jne 0xf04d25f
push 0x37
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb eax, eax
inc eax
and dword [esi + 0x24], 0
jmp 0xf04d257
mov edi, dword [ebp + 0xc]
mov dword [edi], 1
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0xf04d25f
cmp dword [edi], eax
je 0xf04d262
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0xf04d2e3
Capabilities:
Create thread
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0f00fda1
test eax, eax
je 0xf04d425
push ebx
push edi
xor ebx, ebx
push ebx
push 0x100
push 3
push ebx
push 3
push 0xc0000000
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0xc], edi
jne 0xf04d340
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0xf04d423
push esi
push 0x218
call fcn.0f006f83
mov esi, eax
cmp esi, ebx
pop ecx
jne 0xf04d370
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0xf04d422
push ebx
push ebx
lea eax, [esi + 0x18]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 8]
push ebx
push ebx
mov dword [esi + 0x10], 0x200
mov dword [esi], edi
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, ebx
mov dword [esi + 8], eax
jne 0xf04d3a6
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0xc]
jmp 0xf04d3f9
cmp word [ebp + 0xc], 1
mov edi, dword [ebp + 8]
jne 0xf04d3c1
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x24], esi
mov dword [edi + 0x10], eax
jmp 0xf04d3cf
mov eax, dword [edi]
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x28], esi
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push 0xf04d035
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
jne 0xf04d410
push dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0xc]
call edi
push dword [ebp - 4]
call edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call fcn.0f00579c
pop ecx
jmp 0xf04d369
cmp word [ebp + 0xc], 1
jne 0xf04d41c
mov dword [edi + 0x18], eax
jmp 0xf04d41f
mov dword [edi + 0x1c], eax
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0xf04d42e
Capabilities:
Create thread
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0f00fda1
test eax, eax
je 0xf04d56c
push ebx
push edi
xor edi, edi
push edi
push 0x100
push 3
push edi
push 3
push 0xc0000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0xc], ebx
jne 0xf04d48b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0xf04d56a
push esi
push 0x244
call fcn.0f006f83
mov esi, eax
cmp esi, edi
pop ecx
jne 0xf04d4bb
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0xf04d569
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
jne 0xf04d4d7
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push ebx
jmp 0xf04d539
lea ecx, [esi + 0x44]
mov dword [esi + 0x28], ecx
mov ecx, dword [ebp - 8]
mov dword [esi + 8], ebx
mov ebx, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov dword [esi + 0x1c], 0x200
mov dword [esi + 0x20], edi
mov dword [esi + 4], ecx
mov eax, dword [ebx + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x18], eax
lea eax, [esi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push 0xf04d0ff
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x14], eax
jne 0xf04d550
push dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 0x10]
call edi
push dword [ebp - 8]
call edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call fcn.0f00579c
pop ecx
jmp 0xf04d4b4
mov eax, dword [0xf0773d8]
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov dword [0xf0773d8], esi
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [ebx + 0x20], esi
inc eax
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0xf04e446
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [0xf09be9c], eax
mov eax, dword [ebp + 0xc]
mov dword [0xf09bea4], eax
mov eax, dword [0xf0708c0]
push ebx
movzx ecx, ax
push esi
push edi
mov ebx, 0xffff0000
inc ecx
and eax, ebx
or ecx, eax
xor edi, edi
push edi
mov dword [0xf0708c0], ecx
call fcn.0f03b229
mov eax, dword [0xf09be8c]
mov dword [0xf09bea8], eax
mov dword [0xf0773b0], 1
call sym.ntvdm.exe_getSS
movzx esi, ax
shl esi, 4
call sym.ntvdm.exe_getBP
movzx eax, ax
add esi, eax
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0xf04e243
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
jne 0xf04e4e8
push edi
call sym.ntvdm.exe_setCF
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.ntvdm.exe_setAL
call fcn.0f03b416
push dword [0xf09bea8]
call fcn.0f032b12
mov dword [0xf0773b0], edi
jmp 0xf04e54f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x28
mov edx, 0xf09bd80
pop ecx
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
push edx
mov word [0xf09be18], 0xc0
call sub.KERNEL32.dll_GetNextVDMCommand
xor esi, esi
cmp word [0xf09be10], si
jbe 0xf04e526
inc esi
push esi
call sym.ntvdm.exe_setCF
mov dword [0xf0773a8], esi
jmp 0xf04e54f
push esi
call sym.ntvdm.exe_setCF
xor eax, eax
mov al, byte [0xf09be98]
push eax
call sym.ntvdm.exe_setAL
call fcn.0f03b416
push dword [0xf09bea8]
call fcn.0f032b12
mov dword [0xf0773b0], esi
mov eax, dword [0xf0708c0]
movzx ecx, ax
and eax, ebx
pop edi
dec ecx
or ecx, eax
pop esi
mov dword [0xf0708c0], ecx
pop ebx
pop ebp
ret 8