joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fafc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push esi
push edi
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0x30
xor ecx, ecx
mov dword [esp + 0x10], str.AppXDeploymentClient.dll
call fcn.005255a0
mov esi, eax
test esi, esi
jne 0x4fb044
push 0x800
push eax
push str.AppXDeploymentClient.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4fb044
push 0x200
push eax
push str.AppXDeploymentClient.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4fb044
cmp dword [0x62dbb0], 0x3e
jae 0x4fb037
push eax
push eax
push str.AppXDeploymentClient.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4fb044
mov eax, 0x8007007e
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push str.Windows.Management.Deployment.PackageManager
mov dword [esp + 0x18], 1
call sym.SystemInformer.exe_PhCountStringZ
mov dword [esp + 0x18], eax
mov eax, 0x5a4d
mov dword [esp + 0x24], str.Windows.Management.Deployment.PackageManager
cmp word [esi], ax
jne 0x4fb15d
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4fb15d
jmp 0x4fb080
cmp eax, 0x7fffffff
jae 0x4fb15d
cmp dword [eax + esi], 0x4550
jne 0x4fb15d
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x4fb15d
cmp dword [edx + 4], 0
je 0x4fb15d
push 0
add eax, esi
mov ecx, esi
push str.DllGetActivationFactory
push eax
call fcn.00525800
mov esi, eax
test esi, esi
je 0x4fb15d
lea eax, ds:[esp + 0xc]
mov ecx, esi
push eax
lea eax, [esp + 0x18]
push eax
call dword [0x5a38e4]
call esi
mov edi, eax
test edi, edi
js 0x4fb162
mov eax, dword ds:[esp + 0xc]
lea edx, [esp + 8]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x5a38e4]
call esi
mov edi, eax
test edi, edi
js 0x4fb13f
mov eax, dword [esp + 8]
push dword [ebp + 0xc]
push 0x61bfc8
mov esi, dword [eax]
push eax
mov esi, dword [esi]
mov ecx, esi
call dword [0x5a38e4]
call esi
mov edi, eax
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x5a38e4]
call esi
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x5a38e4]
call esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov edi, 0x8007007f
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4fc3a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x62dbb0], 0xffffffff
mov ecx, dword [0x6352bc]
push esi
push edi
jae 0x4fc3cb
cmp ecx, 0x40
jae 0x4fc3cb
lfence
mov eax, dword fs:[0x18]
mov esi, dword [eax + ecx*4 + 0xe10]
jmp 0x4fc3d4
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov edi, dword [ebp + 8]
test edi, edi
jne 0x4fc3e3
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [esi]
cmp eax, 0x40
jae 0x4fc3f8
mov dword [esi + eax*4 + 4], edi
mov eax, edi
inc dword [esi]
pop edi
pop esi
pop ebp
ret 4
mov ecx, dword ds:[esi + 0x10c]
test ecx, ecx
jne 0x4fc42e
push 0x100
push 4
push dword [0x6337d4]
mov dword [esi + 0x108], 0x40
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, eax
mov dword [esi + 0x10c], ecx
mov eax, dword [esi + 0x108]
cmp dword [esi + 0x104], eax
jne 0x4fc473
add eax, eax
mov dword [esi + 0x108], eax
shl eax, 2
push eax
test ecx, ecx
jne 0x4fc45c
push 4
push dword [0x6337d4]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x4fc46b
push ecx
push 4
push dword [0x6337d4]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov ecx, eax
mov dword [esi + 0x10c], ecx
mov eax, dword [esi + 0x104]
mov dword [ecx + eax*4], edi
mov eax, edi
inc dword [esi + 0x104]
pop edi
pop esi
pop ebp
ret 4

Function at 0x4fc780
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, dword [ebp + 0x1c]
push esi
mov edx, dword [ebp + 0x18]
lea esi, [ebp - 0x24]
push edi
mov ebx, dword [ebp + 0x20]
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0xc], esi
lea esi, [ebp - 0x18]
push esi
push dword [ebp + 0x14]
mov dword [ebp - 0x24], 0
push dword [ebp + 0x10]
mov dword [ebp - 0x20], 0
push 0
push dword [ebp + 8]
mov dword [ebp - 0x3c], 0x18
push eax
push edx
push ecx
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x38], 0
push eax
push 0x1fffff
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x30], 0
push eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0x14
mov dword [ebp - 0x14], 0x10003
mov dword [ebp - 0x10], 8
mov dword [ebp - 8], 0
call dword [sym.imp.ntdll.dll_NtCreateThreadEx]
mov esi, eax
test esi, esi
js 0x4fc851
test ebx, ebx
je 0x4fc82f
mov ecx, dword [ebp - 0x1c]
mov dword [ebx], ecx
jmp 0x4fc83d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4fc83d
push eax
call dword [sym.imp.ntdll.dll_NtClose]
lea ecx, [ecx]
test edi, edi
je 0x4fc84f
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret 0x20

Function at 0x500c80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
xor eax, eax
test edx, edx
jne 0x500c90
pop ebp
ret 8
push esi
mov esi, dword [ebp + 8]
movzx ecx, byte [esi]
lea esi, [esi + 1]
xor eax, ecx
imul eax, eax, 0x1000193
sub edx, 1
jne 0x500c94
pop esi
pop ebp
ret 8
Function at 0x500cc0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [edi]
test eax, eax
jne 0x500cd6
pop edi
pop ebx
pop ebp
ret 8
mov edi, dword ds:[edi + 4]
push esi
mov esi, eax
shr esi, 1
cmp byte [ebp + 0xc], bl
je 0x500d16
test esi, esi
je 0x500d0d
lea esp, [esp]
movzx eax, word [edi]
lea edi, [edi + 2]
push eax
call dword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
movzx eax, ax
xor eax, ebx
imul ebx, eax, 0x1000193
sub esi, 1
jne 0x500cf0
pop esi
pop edi
mov eax, ebx
pop ebx
pop ebp
ret 8
push eax
push edi
call sym.SystemInformer.exe_PhHashBytes
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x5023e0
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x62dbb0], 0xffffffff
push ebx
push esi
push edi
jae 0x5024ff
mov esi, dword fs:[0x18]
mov eax, dword fs:[0x18]
mov ebx, dword [esi + 0x30]
mov eax, dword [eax + 0x30]
push dword [eax + 0x1c]
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
push 0
push 1
push dword [ebx + 0x40]
call dword [sym.imp.ntdll.dll_RtlFindClearBitsAndSet]
mov edi, eax
cmp edi, 0xffffffff
jne 0x50249c
jmp 0x502430
cmp dword [esi + 0xf94], 0
jne 0x5024bf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x1c]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov eax, dword fs:[0x18]
push 0x2000
push 8
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi + 0xf94], eax
test eax, eax
je 0x5024ff
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x1c]
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
push 0
push 1
push dword [ebx + 0x40]
call dword [sym.imp.ntdll.dll_RtlFindClearBitsAndSet]
mov edi, eax
cmp edi, 0xffffffff
je 0x502430
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x1c]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov dword [esi + edi*4 + 0xe10], 0
mov eax, edi
pop edi
pop esi
pop ebx
ret
push 0
push 1
push dword [ebx + 0x150]
call dword [sym.imp.ntdll.dll_RtlFindClearBitsAndSet]
mov ecx, dword fs:[0x18]
mov edi, eax
mov ecx, dword [ecx + 0x30]
push dword [ecx + 0x1c]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
cmp edi, 0xffffffff
je 0x5024ff
mov ecx, dword [esi + 0xf94]
lea eax, [edi + 0x40]
mov dword [ecx + edi*4], 0
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x5082a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test bl, 1
je 0x508359
test bl, 2
je 0x5082fb
push 0x20
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.USER32.dll_InternalGetWindowText]
mov edi, eax
test esi, esi
je 0x50840b
mov dword [esi], 0
jmp 0x50840b
push 0
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 0
push eax
mov dword [esp + 0x18], 0x200
call sym.SystemInformer.exe_PhCreateString3
mov ebx, eax
mov ecx, dword [ebx]
shr ecx, 1
inc ecx
push ecx
push dword [ebx + 4]
push edi
call dword [sym.imp.USER32.dll_InternalGetWindowText]
mov edi, eax
lea eax, [edi + edi]
mov dword [ebx], eax
test esi, esi
je 0x50833d
mov dword [esi], ebx
jmp 0x50840b
lea ecx, [ebx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x50840b
call fcn.004fbfa0
jmp 0x50840b
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
je 0x5083ff
test bl, 2
jne 0x5083ff
push 0
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x24], 0
lea ecx, [edi + edi]
push eax
mov dword [esp + 0x24], ecx
call sym.SystemInformer.exe_PhCreateString3
mov edi, eax
mov ecx, dword [edi]
shr ecx, 1
inc ecx
push ecx
push dword [edi + 4]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x5083cb
test esi, esi
je 0x5083bf
mov dword [esi], edi
mov edi, dword [esp + 0x14]
jmp 0x50840b
push edi
call sym.SystemInformer.exe_PhDereferenceObject
mov edi, dword [esp + 0x14]
jmp 0x50840b
test esi, esi
je 0x5083d6
call sym.SystemInformer.exe_PhReferenceEmptyString
mov dword [esi], eax
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x5083e9
call fcn.004fbfa0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret 0xc
nop
test esi, esi
je 0x50840b
call sym.SystemInformer.exe_PhReferenceEmptyString
mov dword [esi], eax
mov ecx, dword [esp + 0x64]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret 0xc
Function at 0x508ea0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
add eax, 2
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [edi]
mov esi, eax
push dword [edi + 4]
push esi
call fcn.005831c0
mov ecx, dword ds:[edi]
add esp, 0xc
xor eax, eax
push esi
mov word [esi + ecx], ax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x508f17
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x508f17
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x508f17
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
pop ebp
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x50abc0
Capabilities:
Shutdown system

Disassembly:
push ebx
mov ebx, ecx
push esi
mov edx, ebx
and edx, 1
shl edx, 2
mov esi, edx
or esi, 8
test bl, 2
push 0x80000000
cmove esi, edx
mov ecx, esi
or ecx, 0x40
test bl, 4
cmove ecx, esi
mov edx, ecx
or edx, 0x200
test bl, 8
cmove edx, ecx
mov ecx, edx
or ecx, 0x400
test bl, 0x10
cmove ecx, edx
mov eax, ecx
or eax, 0x80000
test bl, 0x80
cmove eax, ecx
or eax, 1
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
pop esi
pop ebx
ret
Function at 0x50e5a0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0
lea eax, [edi*8]
not eax
and eax, 0x20
or eax, 0x40
push eax
push dword [ebp + 0x18]
lea eax, [esp + 0x1c]
push dword [ebp + 0x14]
push 0x80
push 0
push dword [ebp + 0x10]
push ecx
push eax
call sym.SystemInformer.exe_PhCreateFileWin32Ex
test eax, eax
jns 0x50e60b
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret 0x18
test byte [0x630cd8], 1
jne 0x50e638
mov esi, 0x630cd8
lock bts dword ds:[esi], 0x1f
jae 0x50e711
test byte [0x630cd8], 1
jne 0x50e638
xor edx, edx
mov ecx, esi
call sym.SystemInformer.exe_PhfWaitForEvent
push dword [0x633804]
push 0x28
call sym.SystemInformer.exe_PhCreateObject
mov ecx, dword [esp + 0x10]
mov esi, eax
mov eax, edi
shl eax, 0xb
not eax
mov dword [esi], ecx
and eax, 0x1000
mov dword [esi + 4], edi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
test edi, 0x10000
je 0x50e7e6
push 5
push 0x18
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x50e6ee
test byte [esi + 4], 8
mov edx, dword [esp + 0x48]
mov eax, edx
mov ecx, dword [esp + 0x4c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
jne 0x50e7e6
push 0xe
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 8
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x20], ecx
push eax
push dword [esi]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jns 0x50e7e6
lfence
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x50e7eb
call fcn.004fbfa0
jmp 0x50e7eb
push dword [0x63368c]
push 0x28
call sym.SystemInformer.exe_PhCreateObject
mov edx, eax
mov ecx, 1
mov word [edx], cx
lock xadd dword [0x633688], ecx
inc ecx
dec cl
mov dword [edx + 4], 0
movzx eax, cl
mov byte [edx + 2], cl
mov dword [edx + 8], 0x50e980
mov dword [edx + 0xc], str.FileStream
mov dword [eax*4 + 0x635c20], edx
lea eax, [edx + 0x10]
test al, 7
jne 0x50e7d5
xor ecx, ecx
mov dword [0x633804], edx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 0x10
mov dword [eax + 0x10], 0x30
lock bts dword [esi], 0
jb 0x50e638
mov esi, dword [0x630cdc]
test esi, esi
je 0x50e798
push ecx
push esi
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
mov ecx, 0x630cd8
lock xadd dword [ecx], eax
shr eax, 1
and eax, 0x7fff
sub eax, 1
jne 0x50e638
test esi, esi
je 0x50e638
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x630cdc], 0
jmp 0x50e638
push 0x80000002
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
lfence
mov dword [ebx], esi
mov ecx, dword [esp + 0x5c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret 0x18
Function at 0x50ea00
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 0xc
jne 0x50ea50
push 0xe
push 8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jns 0x50ea34
push eax
lfence
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
mov eax, dword [esi + 8]
cmp eax, dword [ebp - 8]
jne 0x50ea45
mov eax, dword ds:[esi + 0xc]
cmp eax, dword [ebp - 4]
je 0x50ea50
push 0xc00000e5
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x50eac0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov ecx, 0
push 0
test byte [edi + 4], 8
lea eax, [edi + 8]
cmove eax, ecx
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push edx
push eax
push ecx
push ecx
push ecx
push dword [edi]
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x50eb0d
push 0
push 0
push dword [edi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x50eb26
mov eax, dword [ebp - 8]
test eax, eax
js 0x50eb26
mov ecx, dword ds:[ebp - 4]
add dword [edi + 8], ecx
mov edx, dword [ebp + 0xc]
adc dword [edi + 0xc], 0
test edx, edx
je 0x50eb26
mov dword [edx], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x50eb40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov eax, dword [esi + 4]
test al, 2
je 0x50ebb9
push ebx
test al, 8
mov ecx, ebx
lea eax, [esi + 8]
cmove eax, ecx
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push dword [ebp + 0xc]
push eax
push ebx
push ebx
push ebx
push dword [esi]
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x50eb92
push ebx
push ebx
push dword [esi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x50ecf3
mov eax, dword [ebp - 0xc]
test eax, eax
js 0x50ecf3
mov ecx, dword [ebp - 8]
add dword [esi + 8], ecx
mov edx, dword [ebp + 0x14]
adc dword [esi + 0xc], ebx
test edx, edx
je 0x50ecf3
pop edi
pop esi
mov dword [edx], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
mov eax, dword [ebp + 0x10]
sub edi, edx
jne 0x50ec8d
mov ecx, dword [esi + 0x20]
lea edi, [esi + 0x10]
test ecx, ecx
je 0x50ebea
mov edx, dword [edi]
push ecx
mov ecx, esi
call fcn.0050ed00
mov edi, edi
test eax, eax
js 0x50ec0f
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x20], ebx
cmp eax, dword [esi + 0x14]
jb 0x50ec1b
push dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov ecx, esi
lfence
push eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
call fcn.0050eac0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
lfence
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword ds:[ebp - 4], edi
cmp dword [edi], ebx
jne 0x50ec35
mov ecx, esi
call fcn.0050ea60
test eax, eax
js 0x50ec0f
lea eax, [esi + 0x10]
mov dword [ebp - 4], eax
mov edx, dword [edi]
lea eax, [ebp - 8]
push eax
push dword [esi + 0x14]
mov ecx, esi
call fcn.0050eac0
mov ebx, eax
test ebx, ebx
jns 0x50ec57
pop edi
pop esi
lfence
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp - 8]
test edi, edi
jne 0x50ec79
mov eax, dword [ebp + 0x14]
lfence
test eax, eax
je 0x50ecf1
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, dword [ebp - 4]
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], edi
jmp 0x50ec90
lea ecx, [esi + 0x10]
cmp edi, eax
cmova edi, eax
mov eax, dword [ecx]
push edi
add eax, edx
push eax
push dword [ebp + 0xc]
call fcn.005831c0
add dword [esi + 0x18], edi
add esp, 0xc
mov ecx, dword [ebp + 0x10]
cmp edi, ecx
jae 0x50ece8
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x14]
jne 0x50ece8
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 8]
sub ecx, edi
push eax
push ecx
lea edx, [edi + edx]
mov ecx, esi
lfence
call fcn.0050eac0
mov ebx, eax
test ebx, ebx
js 0x50ecf1
add edi, dword [ebp - 8]
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x50ecf1
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x50ed00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov ecx, 0
push 0
test byte [edi + 4], 8
lea eax, [edi + 8]
cmove eax, ecx
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push edx
push eax
push ecx
push ecx
push ecx
push dword [edi]
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov ecx, eax
cmp ecx, 0x103
jne 0x50ed4d
push 0
push 0
push dword [edi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x50ed64
mov ecx, dword [ebp - 0xc]
test ecx, ecx
js 0x50ed62
mov eax, dword [ebp - 8]
add dword [edi + 8], eax
adc dword [edi + 0xc], 0
or dword [edi + 4], 0x80000000
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x50eee0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push esi
mov esi, ecx
xor ecx, ecx
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
sub eax, edx
je 0x50ef3c
sub edx, dword [esi + 0x1c]
mov eax, edx
cdq
add eax, dword [esi + 8]
mov dword [esi + 8], eax
adc edx, dword [esi + 0xc]
test byte [esi + 4], 8
mov dword [esi + 0xc], edx
jne 0x50ef3c
push 0xe
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push 8
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], edx
push eax
push dword [esi]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov ecx, eax
test ecx, ecx
jns 0x50ef3c
lfence
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x18], 0
mov eax, ecx
mov dword [esi + 0x1c], 0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x50f000
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov ebx, edx
mov esi, ecx
sub eax, edi
je 0x50f07e
sub eax, 1
je 0x50f05a
sub eax, 1
jne 0x50f089
push 5
push 0x18
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test edi, edi
js 0x50f067
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
mov eax, dword [ebx]
add dword [esi + 8], eax
mov eax, dword [ebx + 4]
adc dword [esi + 0xc], eax
jmp 0x50f089
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
test byte [esi + 4], 8
jne 0x50f0bc
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
push 0xe
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 8
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x20], ecx
push eax
push dword [esi]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov edi, eax
test edi, edi
jns 0x50f0bc
lfence
mov ecx, dword [esp + 0x54]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret 4