joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf048ab0
Capabilities:
Get process heap flags
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
push 0xa
xor eax, eax
pop ecx
lea edi, [ebp - 0x5c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
sub eax, 3
je 0xf048ade
dec eax
dec eax
je 0xf048ad9
dec eax
dec eax
jne 0xf048ae3
lea eax, [ebp - 0x5c]
jmp 0xf048ae6
lea eax, [ebp - 0x54]
jmp 0xf048ae6
lea eax, [ebp - 0x4c]
jmp 0xf048ae6
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push eax
push 1
call fcn.0f048904
xor esi, esi
cmp eax, esi
jl 0xf048bb7
lea eax, [ebp - 0x1c]
push eax
push esi
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 0xf048b1e
mov eax, 0x80070003
jmp 0xf048bb7
mov eax, dword [ebp - 0x1c]
cmp ax, si
push ebx
mov ebx, dword [ebp - 4]
je 0xf048b35
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
jmp 0xf048b38
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
push 0x4020
lea eax, [ebp - 8]
mov dword [ebp - 0x2c], eax
push 7
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x100100
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x28], 0x40
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov edi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp edi, esi
pop ebx
jge 0xf048b95
mov eax, edi
jmp 0xf048bb7
push 4
push 0x28
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
pop edi
pop esi
leave
ret 0xc

Function at 0xf048c0b
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0xf062038]
mov edx, dword [ebp + 8]
push esi
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
xor esi, esi
call fcn.0f0468ff
movzx eax, word [ebp - 0x212]
push esi
push dword [ebp - 0x210]
push eax
push dword [edx + 4]
call dword [sym.imp.ntdll.dll_RtlGetFullPathName_U]
cmp eax, esi
jne 0xf048c65
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80070000
jmp 0xf048c73
cmp word [ebp - 0x212], ax
ja 0xf048c77
mov eax, 0x8007006f
cmp eax, esi
jl 0xf048ca6
push dword [ebp - 0x210]
call dword [sym.imp.ntdll.dll_RtlDetermineDosPathNameType_U]
cmp eax, 2
jne 0xf048ca6
lea eax, [ebp - 0x20c]
push eax
mov word [ebp - 0x206], si
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
sub esi, 5
neg esi
sbb esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
call fcn.0f01b9b9
leave
ret 4
Function at 0xf04907b
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0xf062038]
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 [0xf09ce38]
cmp eax, edi
jl 0xf0491d2
push esi
call fcn.0f046a8f
cmp dword [ebp + 0x14], edi
je 0xf049194
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.0f0477e9
cmp eax, edi
jl 0xf0491d2
push ebx
push edi
push 0x5c
push esi
call fcn.0f046a2b
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 0xf04917a
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0xf04916c
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.0f047876
mov edi, eax
test edi, edi
jge 0xf04910a
jmp 0xf04917a
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 0xf0491d0
xor edi, edi
jmp 0xf0491d0
push edi
push 0x2a
push esi
call fcn.0f046a2b
test eax, eax
jge 0xf0491ae
push edi
push 0x3f
push esi
call fcn.0f046a2b
test eax, eax
jl 0xf0491b5
mov eax, 0x80070057
jmp 0xf0491d2
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0xf0491d0
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.0f01b9b9
leave
ret 0x10
Function at 0xf0494d0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0xf062038]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x118], 0xf0036dc
mov dword [ebp - 0x114], 0xf0036d8
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 0xf049515
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf049528
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 0xf049578
cmp eax, edi
jae 0xf049578
lea eax, [ebp - 0x110]
push eax
mov byte [ebp + esi - 0x110], 0x3d
call sym.ntvdm.exe_cmdCheckTemp
test eax, eax
je 0xf049578
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 0xf049506
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0f01b9b9
leave
ret

Function at 0xf049660
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 0xf04968e
mov eax, 0x80070003
jmp 0xf049745
mov eax, dword [ebp - 0x14]
cmp ax, bx
push esi
push edi
mov edi, dword [ebp - 4]
je 0xf0496a6
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0xf0496a9
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 0xf0496f5
mov eax, esi
jmp 0xf049743
mov eax, dword [ebp + 8]
sub eax, 4
je 0xf04970f
dec eax
dec eax
je 0xf04970a
dec eax
dec eax
jne 0xf049714
lea eax, [ebp - 0x64]
jmp 0xf049717
lea eax, [ebp - 0x5c]
jmp 0xf049717
lea eax, [ebp - 0x54]
jmp 0xf049717
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.0f048c0b
neg eax
sbb eax, eax
and eax, 0x10
push eax
call fcn.0f048904
cmp eax, ebx
jge 0xf049743
cmp eax, 0x8007000d
jne 0xf049743
cmp dword [ebp + 8], 4
jne 0xf049743
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0xf04974f
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 [0xf09ce38]
mov edi, eax
test edi, edi
jl 0xf049827
push esi
call fcn.0f046a8f
mov eax, dword [ebp + 8]
cmp eax, 8
ja case.default.0xf04979a
jmp dword [eax*4 + 0xf04982f]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0xf0497f1
mov ecx, dword [ebp + 0x10]
and eax, 0x3f
mov word [ecx], ax
jmp 0xf049827
mov eax, dword [ebp + 0x10]
movzx eax, word [eax]
test eax, 0xffffffd0
je 0xf0497ce
mov edi, 0x80070005
jmp 0xf049827
and eax, 0x27
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0xf049827
jmp 0xf0497f1
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
cmp eax, 0xffffffff
jne 0xf049801
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or edi, 0x80070000
jmp 0xf049827
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0xf049827
push dword [ebp + 0x10]
push esi
push eax
call fcn.0f048ab0
jmp 0xf04981e
push dword [ebp + 0x10]
push esi
push eax
call fcn.0f049660
mov edi, eax
jmp 0xf049827
mov edi, 0x80070001
mov eax, edi
pop edi
pop esi
leave
ret 0xc

Function at 0xf04bcb7
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 0xf04bcee
push edi
push esi
call fcn.0f00807d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0xf04bd31
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 0xf04bd2a
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 0xf04bd2a
cmp dword [ebp - 4], 0
je 0xf04bd35
push edi
push esi
call fcn.0f00807d
xor eax, eax
jmp 0xf04bd38
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 0x10
Function at 0xf04c64a
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 [0xf078348], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], esi
je 0xf04c66f
xor eax, eax
inc eax
jmp 0xf04c6c7
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push 0xf003780
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xf04c6a8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0xf003778
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 4], esi
je 0xf04c6b6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
cmp dword [ebp - 8], eax
jne 0xf04c6c5
mov dword [0xf078348], eax
jmp 0xf04c6c7
xor eax, eax
pop esi
leave
ret

Function at 0xf04c6cf
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 0xf04c710
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 0xf04c75a
jmp 0xf04c754
cmp al, 0x3d
jne 0xf04c747
movsx eax, byte [esi + 1]
push eax
call fcn.0f056bb2
cmp al, 0x41
pop ecx
jl 0xf04c747
cmp al, 0x5a
jg 0xf04c747
cmp byte [esi + 2], 0x3a
jne 0xf04c747
cmp al, bl
je 0xf04c747
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.0f056ca0
pop ecx
inc eax
pop ecx
mov esi, eax
mov al, byte [esi]
test al, al
jne 0xf04c719
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0xf04c7bc
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.0f0070c9
xor ebx, ebx
mov esi, eax
cmp esi, ebx
pop ecx
mov dword [0xf0784c0], eax
mov dword [0xf0784c4], ebx
je 0xf04c97f
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 [0xf0784c4], ecx
je 0xf04c967
cmp ecx, edi
ja 0xf04c967
inc ecx
mov ebx, edi
sub ebx, ecx
mov dword [0xf0784c4], ecx
add esi, ecx
mov al, byte [ebp - 4]
cmp al, byte [ebp + 8]
je 0xf04c8de
push dword [ebp - 4]
call sym.ntvdm.exe_demGetPhysicalDriveType
movzx eax, al
test eax, eax
jne 0xf04c864
mov al, byte [ebp - 4]
add al, 0x41
mov byte [ebp - 0xc], al
lea eax, [ebp - 0xc]
push eax
call fcn.0f011d6f
test eax, eax
je 0xf04c8d8
cmp eax, 1
je 0xf04c8d8
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 0xf04c8bf
mov eax, dword [0xf0784c4]
lea eax, [eax + ebx + 0x104]
push eax
push dword [0xf0784c0]
call fcn.0f0101d4
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0xf04c93e
mov dword [0xf0784c0], esi
add esi, dword [0xf0784c4]
add ebx, edi
push ebx
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0xf04c8d8
mov ecx, dword [0xf0784c4]
inc eax
add esi, eax
sub ebx, eax
add ecx, eax
mov dword [0xf0784c4], ecx
jmp 0xf04c8de
mov ecx, dword [0xf0784c4]
inc byte [ebp - 4]
cmp byte [ebp - 4], 0x1a
jb 0xf04c834
mov esi, dword [0xf0784c0]
inc ecx
push ecx
push esi
call fcn.0f0101d4
xor edi, edi
cmp eax, edi
pop ecx
pop ecx
mov dword [0xf0784c0], eax
je 0xf04c959
mov ecx, dword [0xf0784c4]
cmp ecx, edi
je 0xf04c959
mov byte [ecx + eax], 0
push dword [0xf0784c0]
inc dword [0xf0784c4]
push dword [0xf0784c4]
call sub.KERNEL32.dll_SetVDMCurrentDirectories
push dword [0xf0784c0]
call fcn.0f0058e2
mov dword [0xf0784c0], edi
jmp 0xf04c95f
push dword [0xf0784c0]
call fcn.0f0058e2
and dword [0xf0784c0], 0
and dword [0xf0784c4], 0
jmp 0xf04c97e
push esi
call fcn.0f0058e2
mov dword [0xf0784c4], edi
jmp 0xf04c97e
push dword [0xf0784c0]
call fcn.0f0058e2
mov dword [0xf0784c0], ebx
mov dword [0xf0784c4], ebx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0xf04caac
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, 0xf003940
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
je 0xf04cb3e
cmp dword [ebp + 0x10], 1
je 0xf04cb45
cmp dword [ebp + 0x10], 2
jne 0xf04cb85
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 0xf04cb85
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 0xf04cc18
cmp dword [ebp + 8], 1
jne 0xf04cc18
dec dword [ebp - 4]
jmp 0xf04cb85
mov eax, 0xf003934
jmp 0xf04cb4a
mov eax, 0xf003928
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp eax, edi
mov dword [ebp - 4], eax
je 0xf04cc18
cmp eax, dword [ebp + 0xc]
jae 0xf04cc18
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf04cb6e
mov ecx, dword [ebp - 4]
sub eax, edx
add eax, ecx
cmp eax, dword [ebp + 0xc]
jae 0xf04cc18
mov eax, dword [ebp - 4]
cmp byte [eax + ebx - 1], 0x5c
jne 0xf04cb96
mov dword [ebp - 0xc], 0xf003941
mov eax, dword [ebp - 0xc]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf04cb9b
mov edi, ebx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0xf04cba7
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 0xf04cbe2
cmp eax, dword [ebp + 0xc]
jae 0xf04cbe2
push ebx
call esi
cmp eax, 0xffffffff
jne 0xf04cc0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0xf04cbf2
cmp eax, 2
jne 0xf04cc13
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
mov dword [ebp - 8], eax
je 0xf04cc13
push ebx
call esi
cmp eax, 0xffffffff
je 0xf04cc13
shr eax, 4
and eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0xf04cc1a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0xf04d61c
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 0xf04d74c
mov ecx, dword [edi + 0x20]
test ecx, ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
je 0xf04d6e2
mov eax, dword [0xf0784d0]
cmp ecx, eax
jne 0xf04d654
mov esi, ecx
mov eax, dword [esi]
mov dword [0xf0784d0], eax
jmp 0xf04d672
test eax, eax
mov esi, eax
je 0xf04d6e2
cmp esi, ecx
je 0xf04d66a
mov eax, esi
mov esi, dword [esi]
test esi, esi
jne 0xf04d65e
test esi, esi
je 0xf04d6e2
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 0xf04d6a1
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.0f0058e2
push esi
call fcn.0f0058e2
pop ecx
pop ecx
mov eax, dword [edi + 0x24]
test eax, eax
mov esi, dword [ebp + 0xc]
je 0xf04d714
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 0xf04d743
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.0f0058e2
pop ecx
pop esi
pop ebx
xor eax, eax
inc eax
pop edi
pop ebp
ret 8
Function at 0xf04d9e1
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0xf0784d0]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 4], ebx
je 0xf04da8d
mov ecx, dword [ebp + 8]
cmp dword [esi + 4], ecx
je 0xf04da0d
mov esi, dword [esi]
cmp esi, ebx
jne 0xf04d9ff
cmp esi, ebx
je 0xf04da8d
mov eax, dword [esi + 0x20]
cmp eax, ebx
mov edi, dword [ebp + 0xc]
mov dword [edi], eax
jne 0xf04da96
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 0xf04da63
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jne 0xf04da63
mov dword [esi + 0x24], 1
jmp 0xf04da6a
mov dword [ebp + 0xc], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 0xc], 0
jne 0xf04daa1
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 0xf04da99
mov edi, dword [ebp + 0xc]
mov dword [edi], 1
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0xf04daa1
cmp dword [edi], eax
je 0xf04daa4
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0xf04db25
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.0f00ff55
test eax, eax
je 0xf04dc67
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 0xf04db82
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 0xf04dc65
push esi
push 0x218
call fcn.0f0070c9
mov esi, eax
cmp esi, ebx
pop ecx
jne 0xf04dbb2
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 0xf04dc64
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 0xf04dbe8
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0xc]
jmp 0xf04dc3b
cmp word [ebp + 0xc], 1
mov edi, dword [ebp + 8]
jne 0xf04dc03
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 0xf04dc11
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 0xf04d877
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
jne 0xf04dc52
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.0f0058e2
pop ecx
jmp 0xf04dbab
cmp word [ebp + 0xc], 1
jne 0xf04dc5e
mov dword [edi + 0x18], eax
jmp 0xf04dc61
mov dword [edi + 0x1c], eax
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
leave
ret 8