joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf048f4b
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 [0xf09bdf8]
cmp eax, edi
jl 0xf0490a2
push esi
call fcn.0f04695f
cmp dword [ebp + 0x14], edi
je 0xf049064
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.0f0476b9
cmp eax, edi
jl 0xf0490a2
push ebx
push edi
push 0x5c
push esi
call fcn.0f0468fb
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 0xf04904a
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0xf04903c
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.0f047746
mov edi, eax
test edi, edi
jge 0xf048fda
jmp 0xf04904a
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 0xf0490a0
xor edi, edi
jmp 0xf0490a0
push edi
push 0x2a
push esi
call fcn.0f0468fb
test eax, eax
jge 0xf04907e
push edi
push 0x3f
push esi
call fcn.0f0468fb
test eax, eax
jl 0xf049085
mov eax, 0x80070057
jmp 0xf0490a2
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0xf0490a0
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.0f01b780
leave
ret 0x10
Function at 0xf0493a0
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], 0xf0036bc
mov dword [ebp - 0x114], 0xf0036b8
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 0xf0493e5
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf0493f8
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 0xf049448
cmp eax, edi
jae 0xf049448
lea eax, [ebp - 0x110]
push eax
mov byte [ebp + esi - 0x110], 0x3d
call sym.ntvdm.exe_cmdCheckTemp
test eax, eax
je 0xf049448
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 0xf0493d6
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0f01b780
leave
ret

Function at 0xf049530
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 0xf04955e
mov eax, 0x80070003
jmp 0xf049615
mov eax, dword [ebp - 0x14]
cmp ax, bx
push esi
push edi
mov edi, dword [ebp - 4]
je 0xf049576
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0xf049579
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 0xf0495c5
mov eax, esi
jmp 0xf049613
mov eax, dword [ebp + 8]
sub eax, 4
je 0xf0495df
dec eax
dec eax
je 0xf0495da
dec eax
dec eax
jne 0xf0495e4
lea eax, [ebp - 0x64]
jmp 0xf0495e7
lea eax, [ebp - 0x5c]
jmp 0xf0495e7
lea eax, [ebp - 0x54]
jmp 0xf0495e7
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.0f048adb
neg eax
sbb eax, eax
and eax, 0x10
push eax
call fcn.0f0487d4
cmp eax, ebx
jge 0xf049613
cmp eax, 0x8007000d
jne 0xf049613
cmp dword [ebp + 8], 4
jne 0xf049613
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0xf04961f
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 [0xf09bdf8]
mov edi, eax
test edi, edi
jl 0xf0496f7
push esi
call fcn.0f04695f
mov eax, dword [ebp + 8]
cmp eax, 8
ja case.default.0xf04966a
jmp dword [eax*4 + 0xf0496ff]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0xf0496c1
mov ecx, dword [ebp + 0x10]
and eax, 0x3f
mov word [ecx], ax
jmp 0xf0496f7
mov eax, dword [ebp + 0x10]
movzx eax, word [eax]
test eax, 0xffffffd0
je 0xf04969e
mov edi, 0x80070005
jmp 0xf0496f7
and eax, 0x27
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0xf0496f7
jmp 0xf0496c1
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
cmp eax, 0xffffffff
jne 0xf0496d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or edi, 0x80070000
jmp 0xf0496f7
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0xf0496f7
push dword [ebp + 0x10]
push esi
push eax
call fcn.0f048980
jmp 0xf0496ee
push dword [ebp + 0x10]
push esi
push eax
call fcn.0f049530
mov edi, eax
jmp 0xf0496f7
mov edi, 0x80070001
mov eax, edi
pop edi
pop esi
leave
ret 0xc

Function at 0xf04b936
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 0xf04b96d
push edi
push esi
call fcn.0f00803d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0xf04b9b0
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 0xf04b9a9
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 0xf04b9a9
cmp dword [ebp - 4], 0
je 0xf04b9b4
push edi
push esi
call fcn.0f00803d
xor eax, eax
jmp 0xf04b9b7
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 0x10
Function at 0xf04c4e8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [0xf077344], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], esi
je 0xf04c50d
xor eax, eax
inc eax
jmp 0xf04c565
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push 0xf003760
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xf04c546
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0xf003758
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 4], esi
je 0xf04c554
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
cmp dword [ebp - 8], eax
jne 0xf04c563
mov dword [0xf077344], eax
jmp 0xf04c565
xor eax, eax
pop esi
leave
ret

Function at 0xf04c56d
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 0xf04c5ae
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 0xf04c5f8
jmp 0xf04c5f2
cmp al, 0x3d
jne 0xf04c5e5
movsx eax, byte [esi + 1]
push eax
call fcn.0f0568b2
cmp al, 0x41
pop ecx
jl 0xf04c5e5
cmp al, 0x5a
jg 0xf04c5e5
cmp byte [esi + 2], 0x3a
jne 0xf04c5e5
cmp al, bl
je 0xf04c5e5
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.0f0569a0
pop ecx
inc eax
pop ecx
mov esi, eax
mov al, byte [esi]
test al, al
jne 0xf04c5b7
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0xf04c65a
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.0f007089
xor ebx, ebx
mov esi, eax
cmp esi, ebx
pop ecx
mov dword [0xf077480], eax
mov dword [0xf077484], ebx
je 0xf04c81d
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 [0xf077484], ecx
je 0xf04c805
cmp ecx, edi
ja 0xf04c805
inc ecx
mov ebx, edi
sub ebx, ecx
mov dword [0xf077484], ecx
add esi, ecx
mov al, byte [ebp - 4]
cmp al, byte [ebp + 8]
je 0xf04c77c
push dword [ebp - 4]
call sym.ntvdm.exe_demGetPhysicalDriveType
movzx eax, al
test eax, eax
jne 0xf04c702
mov al, byte [ebp - 4]
add al, 0x41
mov byte [ebp - 0xc], al
lea eax, [ebp - 0xc]
push eax
call fcn.0f011cb8
test eax, eax
je 0xf04c776
cmp eax, 1
je 0xf04c776
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 0xf04c75d
mov eax, dword [0xf077484]
lea eax, [eax + ebx + 0x104]
push eax
push dword [0xf077480]
call fcn.0f01011d
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0xf04c7dc
mov dword [0xf077480], esi
add esi, dword [0xf077484]
add ebx, edi
push ebx
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0xf04c776
mov ecx, dword [0xf077484]
inc eax
add esi, eax
sub ebx, eax
add ecx, eax
mov dword [0xf077484], ecx
jmp 0xf04c77c
mov ecx, dword [0xf077484]
inc byte [ebp - 4]
cmp byte [ebp - 4], 0x1a
jb 0xf04c6d2
mov esi, dword [0xf077480]
inc ecx
push ecx
push esi
call fcn.0f01011d
xor edi, edi
cmp eax, edi
pop ecx
pop ecx
mov dword [0xf077480], eax
je 0xf04c7f7
mov ecx, dword [0xf077484]
cmp ecx, edi
je 0xf04c7f7
mov byte [ecx + eax], 0
push dword [0xf077480]
inc dword [0xf077484]
push dword [0xf077484]
call sub.KERNEL32.dll_SetVDMCurrentDirectories
push dword [0xf077480]
call fcn.0f0058a2
mov dword [0xf077480], edi
jmp 0xf04c7fd
push dword [0xf077480]
call fcn.0f0058a2
and dword [0xf077480], 0
and dword [0xf077484], 0
jmp 0xf04c81c
push esi
call fcn.0f0058a2
mov dword [0xf077484], edi
jmp 0xf04c81c
push dword [0xf077480]
call fcn.0f0058a2
mov dword [0xf077480], ebx
mov dword [0xf077484], ebx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0xf04c83f
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, 0xf00390c
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
je 0xf04c8d1
cmp dword [ebp + 0x10], 1
je 0xf04c8d8
cmp dword [ebp + 0x10], 2
jne 0xf04c918
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 0xf04c918
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 0xf04c9ab
cmp dword [ebp + 8], 1
jne 0xf04c9ab
dec dword [ebp - 4]
jmp 0xf04c918
mov eax, 0xf003900
jmp 0xf04c8dd
mov eax, 0xf0038f4
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp eax, edi
mov dword [ebp - 4], eax
je 0xf04c9ab
cmp eax, dword [ebp + 0xc]
jae 0xf04c9ab
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf04c901
mov ecx, dword [ebp - 4]
sub eax, edx
add eax, ecx
cmp eax, dword [ebp + 0xc]
jae 0xf04c9ab
mov eax, dword [ebp - 4]
cmp byte [eax + ebx - 1], 0x5c
jne 0xf04c929
mov dword [ebp - 0xc], 0xf00390d
mov eax, dword [ebp - 0xc]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf04c92e
mov edi, ebx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0xf04c93a
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 0xf04c975
cmp eax, dword [ebp + 0xc]
jae 0xf04c975
push ebx
call esi
cmp eax, 0xffffffff
jne 0xf04c99d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0xf04c985
cmp eax, 2
jne 0xf04c9a6
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
mov dword [ebp - 8], eax
je 0xf04c9a6
push ebx
call esi
cmp eax, 0xffffffff
je 0xf04c9a6
shr eax, 4
and eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0xf04c9ad
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0xf04d3af
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 0xf04d4df
mov ecx, dword [edi + 0x20]
test ecx, ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
je 0xf04d475
mov eax, dword [0xf077490]
cmp ecx, eax
jne 0xf04d3e7
mov esi, ecx
mov eax, dword [esi]
mov dword [0xf077490], eax
jmp 0xf04d405
test eax, eax
mov esi, eax
je 0xf04d475
cmp esi, ecx
je 0xf04d3fd
mov eax, esi
mov esi, dword [esi]
test esi, esi
jne 0xf04d3f1
test esi, esi
je 0xf04d475
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 0xf04d434
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.0f0058a2
push esi
call fcn.0f0058a2
pop ecx
pop ecx
mov eax, dword [edi + 0x24]
test eax, eax
mov esi, dword [ebp + 0xc]
je 0xf04d4a7
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 0xf04d4d6
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.0f0058a2
pop ecx
pop esi
pop ebx
xor eax, eax
inc eax
pop edi
pop ebp
ret 8
Function at 0xf04d774
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0xf077490]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 4], ebx
je 0xf04d820
mov ecx, dword [ebp + 8]
cmp dword [esi + 4], ecx
je 0xf04d7a0
mov esi, dword [esi]
cmp esi, ebx
jne 0xf04d792
cmp esi, ebx
je 0xf04d820
mov eax, dword [esi + 0x20]
cmp eax, ebx
mov edi, dword [ebp + 0xc]
mov dword [edi], eax
jne 0xf04d829
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 0xf04d7f6
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jne 0xf04d7f6
mov dword [esi + 0x24], 1
jmp 0xf04d7fd
mov dword [ebp + 0xc], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 0xc], 0
jne 0xf04d834
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 0xf04d82c
mov edi, dword [ebp + 0xc]
mov dword [edi], 1
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0xf04d834
cmp dword [edi], eax
je 0xf04d837
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0xf04d8b8
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.0f00fe9e
test eax, eax
je 0xf04d9fa
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 0xf04d915
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 0xf04d9f8
push esi
push 0x218
call fcn.0f007089
mov esi, eax
cmp esi, ebx
pop ecx
jne 0xf04d945
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 0xf04d9f7
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 0xf04d97b
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0xc]
jmp 0xf04d9ce
cmp word [ebp + 0xc], 1
mov edi, dword [ebp + 8]
jne 0xf04d996
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 0xf04d9a4
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 0xf04d60a
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
jne 0xf04d9e5
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.0f0058a2
pop ecx
jmp 0xf04d93e
cmp word [ebp + 0xc], 1
jne 0xf04d9f1
mov dword [edi + 0x18], eax
jmp 0xf04d9f4
mov dword [edi + 0x1c], eax
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0xf04da03
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.0f00fe9e
test eax, eax
je 0xf04db41
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 0xf04da60
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 0xf04db3f
push esi
push 0x244
call fcn.0f007089
mov esi, eax
cmp esi, edi
pop ecx
jne 0xf04da90
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 0xf04db3e
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
jne 0xf04daac
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push ebx
jmp 0xf04db0e
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 0xf04d6d4
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x14], eax
jne 0xf04db25
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.0f0058a2
pop ecx
jmp 0xf04da89
mov eax, dword [0xf077490]
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov dword [0xf077490], 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 0xf04ea1b
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [0xf09bf5c], eax
mov eax, dword [ebp + 0xc]
mov dword [0xf09bf64], eax
mov eax, dword [0xf070970]
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 [0xf070970], ecx
call fcn.0f03b74f
mov eax, dword [0xf09bf4c]
mov dword [0xf09bf68], eax
mov dword [0xf077468], 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 0xf04e818
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
jne 0xf04eabd
push edi
call sym.ntvdm.exe_setCF
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.ntvdm.exe_setAL
call fcn.0f03b93c
push dword [0xf09bf68]
call fcn.0f032eb9
mov dword [0xf077468], edi
jmp 0xf04eb24
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x28
mov edx, 0xf09be40
pop ecx
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
push edx
mov word [0xf09bed8], 0xc0
call sub.KERNEL32.dll_GetNextVDMCommand
xor esi, esi
cmp word [0xf09bed0], si
jbe 0xf04eafb
inc esi
push esi
call sym.ntvdm.exe_setCF
mov dword [0xf077460], esi
jmp 0xf04eb24
push esi
call sym.ntvdm.exe_setCF
xor eax, eax
mov al, byte [0xf09bf58]
push eax
call sym.ntvdm.exe_setAL
call fcn.0f03b93c
push dword [0xf09bf68]
call fcn.0f032eb9
mov dword [0xf077468], esi
mov eax, dword [0xf070970]
movzx ecx, ax
and eax, ebx
pop edi
dec ecx
or ecx, eax
pop esi
mov dword [0xf070970], ecx
pop ebx
pop ebp
ret 8