joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf09494b
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.0f012648
test eax, eax
je 0xf094a8d
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 0xf0949a8
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 0xf094a8b
push esi
push 0x218
call fcn.0f009d40
mov esi, eax
cmp esi, ebx
pop ecx
jne 0xf0949d8
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 0xf094a8a
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 0xf094a0e
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0xc]
jmp 0xf094a61
cmp word [ebp + 0xc], 1
mov edi, dword [ebp + 8]
jne 0xf094a29
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 0xf094a37
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 0xf0946a3
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
jne 0xf094a78
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.0f008a60
pop ecx
jmp 0xf0949d1
cmp word [ebp + 0xc], 1
jne 0xf094a84
mov dword [edi + 0x18], eax
jmp 0xf094a87
mov dword [edi + 0x1c], eax
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0xf094a96
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.0f012648
test eax, eax
je 0xf094bd4
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 0xf094af3
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 0xf094bd2
push esi
push 0x244
call fcn.0f009d40
mov esi, eax
cmp esi, edi
pop ecx
jne 0xf094b23
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 0xf094bd1
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
jne 0xf094b3f
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push ebx
jmp 0xf094ba1
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 0xf09476d
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x14], eax
jne 0xf094bb8
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.0f008a60
pop ecx
jmp 0xf094b1c
mov eax, dword [0xf205fdc]
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov dword [0xf205fdc], 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 0xf094d3e
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 0xf094d7f
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 0xf094dc9
jmp 0xf094dc3
cmp al, 0x3d
jne 0xf094db6
movsx eax, byte [esi + 1]
push eax
call fcn.0f09ad00
cmp al, 0x41
pop ecx
jl 0xf094db6
cmp al, 0x5a
jg 0xf094db6
cmp byte [esi + 2], 0x3a
jne 0xf094db6
cmp al, bl
je 0xf094db6
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.0f09a670
pop ecx
inc eax
pop ecx
mov esi, eax
mov al, byte [esi]
test al, al
jne 0xf094d88
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0xf094df1
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.0f009d40
xor ebx, ebx
mov esi, eax
cmp esi, ebx
pop ecx
mov dword [0xf205fcc], eax
mov dword [0xf205fd0], ebx
je 0xf094fb4
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 [0xf205fd0], ecx
je 0xf094f9c
cmp ecx, edi
ja 0xf094f9c
inc ecx
mov ebx, edi
sub ebx, ecx
mov dword [0xf205fd0], ecx
add esi, ecx
mov al, byte [ebp - 4]
cmp al, byte [ebp + 8]
je 0xf094f13
push dword [ebp - 4]
call sym.ntvdm.exe_demGetPhysicalDriveType
movzx eax, al
test eax, eax
jne 0xf094e99
mov al, byte [ebp - 4]
add al, 0x41
mov byte [ebp - 0xc], al
lea eax, [ebp - 0xc]
push eax
call fcn.0f0147ae
test eax, eax
je 0xf094f0d
cmp eax, 1
je 0xf094f0d
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 0xf094ef4
mov eax, dword [0xf205fd0]
lea eax, [eax + ebx + 0x104]
push eax
push dword [0xf205fcc]
call fcn.0f0128e0
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0xf094f73
mov dword [0xf205fcc], esi
add esi, dword [0xf205fd0]
add ebx, edi
push ebx
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0xf094f0d
mov ecx, dword [0xf205fd0]
inc eax
add esi, eax
sub ebx, eax
add ecx, eax
mov dword [0xf205fd0], ecx
jmp 0xf094f13
mov ecx, dword [0xf205fd0]
inc byte [ebp - 4]
cmp byte [ebp - 4], 0x1a
jb 0xf094e69
mov esi, dword [0xf205fcc]
inc ecx
push ecx
push esi
call fcn.0f0128e0
xor edi, edi
cmp eax, edi
pop ecx
pop ecx
mov dword [0xf205fcc], eax
je 0xf094f8e
mov ecx, dword [0xf205fd0]
cmp ecx, edi
je 0xf094f8e
mov byte [ecx + eax], 0
push dword [0xf205fcc]
inc dword [0xf205fd0]
push dword [0xf205fd0]
call sub.KERNEL32.dll_SetVDMCurrentDirectories
push dword [0xf205fcc]
call fcn.0f008a60
mov dword [0xf205fcc], edi
jmp 0xf094f94
push dword [0xf205fcc]
call fcn.0f008a60
and dword [0xf205fcc], 0
and dword [0xf205fd0], 0
jmp 0xf094fb3
push esi
call fcn.0f008a60
mov dword [0xf205fd0], edi
jmp 0xf094fb3
push dword [0xf205fcc]
call fcn.0f008a60
mov dword [0xf205fcc], ebx
mov dword [0xf205fd0], ebx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0xf095836
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [0xf23371c], eax
mov eax, dword [ebp + 0xc]
mov dword [0xf233724], eax
mov eax, dword [0xf0c262c]
push ebx
movzx ecx, ax
push esi
mov ebx, 0xffff0000
inc ecx
and eax, ebx
push edi
or ecx, eax
xor esi, esi
push esi
mov dword [0xf0c262c], ecx
call fcn.0f043bfe
mov eax, dword [0xf23370c]
push esi
mov dword [0xf233728], eax
mov dword [0xf205fa8], 1
call sym.ntvdm.exe_c_getSS
movzx edi, ax
shl edi, 0x10
call sym.ntvdm.exe_c_getBP
movzx eax, ax
or edi, eax
push edi
call sym.ntvdm.exe_Sim32pGetVDMPointer
lea ecx, [ebp + 8]
push ecx
push esi
push eax
push 0xf095633
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
jne 0xf0958c3
push esi
call sym.ntvdm.exe_c_setCF
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0xf09590e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x28
mov edx, 0xf233600
pop ecx
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
push edx
mov word [0xf233698], 0xc0
call sub.KERNEL32.dll_GetNextVDMCommand
cmp word [0xf233690], si
jbe 0xf095901
xor esi, esi
inc esi
push esi
call sym.ntvdm.exe_c_setCF
mov dword [0xf205fa0], esi
jmp 0xf09592a
push esi
call sym.ntvdm.exe_c_setCF
xor eax, eax
mov al, byte [0xf233718]
push eax
call sym.ntvdm.exe_c_setAL
call fcn.0f043e58
push dword [0xf233728]
call fcn.0f03c421
mov dword [0xf205fa8], esi
mov eax, dword [0xf0c262c]
movzx ecx, ax
and eax, ebx
pop edi
dec ecx
or ecx, eax
pop esi
mov dword [0xf0c262c], ecx
pop ebx
pop ebp
ret 8
Function at 0xf096343
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword fs:[0x18]
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.ntdll.dll_RtlInitString]
lea eax, [ebp - 8]
push eax
add esi, 0xbf8
call edi
mov ebx, dword [sym.imp.ntdll.dll_RtlOemStringToUnicodeString]
push 0
lea eax, [ebp - 8]
push eax
push esi
call ebx
test eax, eax
jge 0xf09639b
cmp eax, 0x80000005
jne 0xf09638b
push 0xce
jmp 0xf096393
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0xf0963ed
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call edi
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
call ebx
xor edi, edi
cmp eax, edi
jl 0xf09638b
mov eax, dword fs:[0x18]
push 0x20a
mov word [ebp - 0xe], 0x20a
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0xf0963f4
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
xor eax, eax
jmp 0xf096497
mov ecx, dword fs:[0x18]
cmp dword [ecx + 0xf18], edi
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x14]
push dword [esi + 4]
je 0xf09642d
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0xf18]
mov ecx, dword [ecx + 0x670]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x14]
call dword [ecx + 0xec]
jmp 0xf096433
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esi, eax
cmp esi, edi
je 0xf096475
push dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
mov word [ebp - 6], 0x105
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToOemString]
cmp eax, edi
jge 0xf096475
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
push dword [ebp - 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0xf096888
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push dword [ebp + 8]
mov esi, dword fs:[0x18]
lea eax, [ebp - 8]
push eax
add esi, 0xbf8
call dword [sym.imp.ntdll.dll_RtlInitString]
push 0
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlOemStringToUnicodeString]
test eax, eax
jge 0xf0968db
cmp eax, 0x80000005
jne 0xf0968c9
push 0xce
jmp 0xf0968d1
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0xf096922
mov eax, dword fs:[0x18]
cmp dword [eax + 0xf18], 0
jne 0xf0968f1
mov dword [ebp + 0x10], 1
cmp dword [ebp + 0x10], 0
push dword [ebp + 0xc]
push dword [esi + 4]
je 0xf096905
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0xf096922
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf18]
mov eax, dword [eax + 0x670]
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
call dword [eax + 0x154]
pop esi
leave
ret 0xc

Function at 0xf09692c
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push dword [ebp + 8]
mov esi, dword fs:[0x18]
lea eax, [ebp - 8]
push eax
add esi, 0xbf8
call dword [sym.imp.ntdll.dll_RtlInitAnsiString]
push 0
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlOemStringToUnicodeString]
test eax, eax
jge 0xf096980
cmp eax, 0x80000005
jne 0xf09696d
push 0xce
jmp 0xf096975
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0xf0969c4
mov eax, dword fs:[0x18]
cmp dword [eax + 0xf18], 0
jne 0xf096996
mov dword [ebp + 0xc], 1
cmp dword [ebp + 0xc], 0
push dword [esi + 4]
je 0xf0969a7
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0xf0969c4
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf18]
mov eax, dword [eax + 0x670]
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
call dword [eax + 0x120]
pop esi
leave
ret 8

Function at 0xf0969ce
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push dword [ebp + 8]
mov esi, dword fs:[0x18]
lea eax, [ebp - 8]
push eax
add esi, 0xbf8
call dword [sym.imp.ntdll.dll_RtlInitString]
push 0
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlOemStringToUnicodeString]
test eax, eax
jge 0xf096a21
cmp eax, 0x80000005
jne 0xf096a0f
push 0xce
jmp 0xf096a17
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0xf096a58
mov eax, dword fs:[0x18]
cmp dword [eax + 0xf18], 0
push dword [esi + 4]
je 0xf096a52
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf18]
mov eax, dword [eax + 0x670]
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
call dword [eax + 0x104]
jmp 0xf096a58
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
leave
ret 4
Function at 0xf096a62
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword fs:[0x18]
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.ntdll.dll_RtlInitString]
lea eax, [ebp - 0x10]
push eax
add esi, 0xbf8
call edi
mov ebx, dword [sym.imp.ntdll.dll_RtlOemStringToUnicodeString]
push 0
lea eax, [ebp - 0x10]
push eax
push esi
call ebx
test eax, eax
jge 0xf096aaa
cmp eax, 0x80000005
jne 0xf096ac9
push 0xce
jmp 0xf096ad1
cmp dword [ebp + 0xc], 0
je 0xf096adb
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call edi
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call ebx
test eax, eax
jge 0xf096adf
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0xf096b2f
and dword [ebp - 4], 0
mov eax, dword fs:[0x18]
cmp dword [eax + 0xf18], 0
push 2
push dword [ebp - 4]
push dword [esi + 4]
je 0xf096b15
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf18]
mov eax, dword [eax + 0x670]
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
call dword [eax + 0x140]
jmp 0xf096b1b
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 4], 0
mov esi, eax
je 0xf096b2d
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0xf096b3b
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword fs:[0x18]
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.ntdll.dll_RtlInitString]
lea eax, [ebp - 0x10]
push eax
add esi, 0xbf8
call edi
mov ebx, dword [sym.imp.ntdll.dll_RtlOemStringToUnicodeString]
push 0
lea eax, [ebp - 0x10]
push eax
push esi
call ebx
test eax, eax
jge 0xf096b83
cmp eax, 0x80000005
jne 0xf096ba2
push 0xce
jmp 0xf096baa
cmp dword [ebp + 0xc], 0
je 0xf096bb4
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call edi
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call ebx
test eax, eax
jge 0xf096bb8
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0xf096c09
and dword [ebp - 4], 0
push dword [ebp + 0x10]
mov eax, dword fs:[0x18]
cmp dword [eax + 0xf18], 0
push dword [ebp - 4]
push dword [esi + 4]
je 0xf096bef
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf18]
mov eax, dword [eax + 0x670]
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
call dword [eax + 0x140]
jmp 0xf096bf5
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 4], 0
mov esi, eax
je 0xf096c07
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0xf097100
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push dword [ebp + 8]
mov esi, dword fs:[0x18]
lea eax, [ebp - 8]
push eax
add esi, 0xbf8
call dword [sym.imp.ntdll.dll_RtlInitString]
push 0
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlOemStringToUnicodeString]
test eax, eax
jge 0xf097153
cmp eax, 0x80000005
jne 0xf097141
push 0xce
jmp 0xf097149
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0xf09718d
mov eax, dword fs:[0x18]
cmp dword [eax + 0xf18], 0
push dword [ebp + 0xc]
push dword [esi + 4]
je 0xf097187
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf18]
mov eax, dword [eax + 0x670]
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
call dword [eax + 0xf8]
jmp 0xf09718d
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
leave
ret 8

Function at 0xf097197
Capabilities:
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push dword [ebp + 8]
mov esi, dword fs:[0x18]
lea eax, [ebp - 8]
push eax
add esi, 0xbf8
call dword [sym.imp.ntdll.dll_RtlInitString]
push 0
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlOemStringToUnicodeString]
test eax, eax
jge 0xf0971ea
cmp eax, 0x80000005
jne 0xf0971d8
push 0xce
jmp 0xf0971e0
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0xf097221
mov eax, dword fs:[0x18]
cmp dword [eax + 0xf18], 0
push dword [esi + 4]
je 0xf09721b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf18]
mov eax, dword [eax + 0x670]
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
call dword [eax + 0x148]
jmp 0xf097221
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop esi
leave
ret 4

Function at 0xf09722b
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
mov esi, dword fs:[0x18]
add esi, 0xbf8
test eax, eax
jne 0xf09724c
mov eax, 0xf0070fc
push eax
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 [sym.imp.ntdll.dll_RtlOemStringToUnicodeString]
test eax, eax
jge 0xf097288
cmp eax, 0x80000005
jne 0xf097276
push 0xce
jmp 0xf09727e
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0xf0972cb
push dword [ebp + 0x18]
mov eax, dword fs:[0x18]
cmp dword [eax + 0xf18], 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 4]
je 0xf0972c5
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf18]
mov eax, dword [eax + 0x670]
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
call dword [eax + 0x114]
jmp 0xf0972cb
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
pop esi
leave
ret 0x14
Function at 0xf097367
Capabilities:
Get hostname
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi]
push edi
shl ecx, 1
push ecx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
jne 0xf09739f
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0xf0973fc
mov ax, word [esi]
and word [ebp - 8], 0
mov word [ebp - 6], ax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0xf0973c1
xor esi, esi
jmp 0xf0973e5
push edi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToOemString]
movzx eax, word [ebp - 8]
mov dword [esi], eax
xor esi, esi
inc esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
pop edi
pop esi
leave
ret 8

Function at 0xf0987d4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0xf0ad034]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x38]
push eax
push 9
xor edi, edi
push edi
push 0xf007210
push 0x80000002
mov dword [ebp - 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xf0988a1
push ebx
push esi
push 0x10
pop esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push edi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
push dword [ebp - 0x38]
mov dword [ebp - 0x30], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], esi
call edi
mov ebx, 0x103
jmp 0xf09888b
test eax, eax
jne 0xf098866
cmp dword [ebp - 0x2c], 3
jbe 0xf098866
lea eax, [ebp - 0x3c]
push eax
push 0xa
lea eax, [ebp - 0x11]
push eax
call dword [sym.imp.ntdll.dll_RtlCharToInteger]
test eax, eax
jl 0xf098866
mov ecx, dword [ebp - 0x3c]
xor eax, eax
dec ecx
inc eax
shl eax, cl
or dword [ebp - 0x28], eax
inc dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x30]
mov dword [ebp - 0x34], esi
push dword [ebp - 0x38]
mov dword [ebp - 0x2c], esi
call edi
cmp eax, ebx
jne 0xf09883c
push dword [ebp - 0x38]
and dword [ebp - 0x28], 0x1ff
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
pop edi
call fcn.0f01dda0
leave
ret
Function at 0xf0a8180
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebx
push esi
xor esi, esi
cmp dword [0xf2075c8], esi
je 0xf0a8197
push esi
call fcn.0f01e0f0
pop ecx
jmp 0xf0a81a1
mov dword [0xf2075c8], 1
call fcn.0f045230
xor bl, bl
xor eax, eax
mov al, bl
add al, 0x40
push esi
push eax
call sym.ntvdm.exe_cpu_createthread
inc bl
cmp bl, 3
jb 0xf0a81a8
xor bl, bl
xor eax, eax
mov al, bl
add al, 0x54
push esi
push eax
call sym.ntvdm.exe_cpu_createthread
inc bl
cmp bl, 4
jb 0xf0a81be
call sym.ntvdm.exe_DispatchInterrupts
call sym.ntvdm.exe_DispatchInterrupts
call fcn.0f02414f
call fcn.0f0a83e9
push esi
push 0x33
call sym.ntvdm.exe_cpu_createthread
call sym.ntvdm.exe_DispatchInterrupts
call fcn.0f03e322
call fcn.0f03e358
push esi
call fcn.0f01e0f0
pop ecx
pop esi
pop ebx
ret