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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, 0x5a4d
push esi
push edi
mov edi, edx
cmp word [ecx], ax
jne 0x4fb31b
mov eax, dword ds:[ecx + 0x3c]
test eax, eax
je 0x4fb31b
cmp eax, 0x7fffffff
jae 0x4fb31b
cmp dword [eax + ecx], 0x4550
jne 0x4fb31b
lea edx, [ecx + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x4fb31b
cmp dword [edx + 4], 0
je 0x4fb31b
push 0
add eax, ecx
push str.DllGetClassObject
push eax
call fcn.00529280
mov esi, eax
test esi, esi
je 0x4fb31b
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0x5a71c0
push edi
call dword [0x5a48f4]
call esi
mov edi, eax
test edi, edi
js 0x4fb311
mov eax, dword [esp + 0xc]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [eax]
push 0
push eax
mov esi, dword [esi + 0xc]
mov ecx, esi
call dword [0x5a48f4]
call esi
mov edi, eax
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x5a48f4]
call esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, 0x8007007f
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4fb500
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.00529000
mov esi, eax
test esi, esi
jne 0x4fb584
push 0x800
push eax
push str.AppXDeploymentClient.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4fb584
push 0x200
push eax
push str.AppXDeploymentClient.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4fb584
cmp dword [0x62fbb0], 0x3e
jae 0x4fb577
push eax
push eax
push str.AppXDeploymentClient.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4fb584
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 0x4fb69d
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4fb69d
jmp 0x4fb5c0
cmp eax, 0x7fffffff
jae 0x4fb69d
cmp dword [eax + esi], 0x4550
jne 0x4fb69d
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x4fb69d
cmp dword [edx + 4], 0
je 0x4fb69d
push 0
add eax, esi
mov ecx, esi
push str.DllGetActivationFactory
push eax
call fcn.00529280
mov esi, eax
test esi, esi
je 0x4fb69d
lea eax, ds:[esp + 0xc]
mov ecx, esi
push eax
lea eax, [esp + 0x18]
push eax
call dword [0x5a48f4]
call esi
mov edi, eax
test edi, edi
jne 0x4fb6a2
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 [0x5a48f4]
call esi
mov edi, eax
test edi, edi
jne 0x4fb67f
mov eax, dword [esp + 8]
push dword [ebp + 0xc]
push 0x61d600
mov esi, dword [eax]
push eax
mov esi, dword [esi]
mov ecx, esi
call dword [0x5a48f4]
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 [0x5a48f4]
call esi
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x5a48f4]
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 0x4fc7c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x62fbb0], 0xffffffff
mov ecx, dword [0x637b4c]
push esi
push edi
jae 0x4fc7eb
cmp ecx, 0x40
jae 0x4fc7eb
lfence
mov eax, dword fs:[0x18]
mov esi, dword [eax + ecx*4 + 0xe10]
jmp 0x4fc7f4
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov edi, dword [ebp + 8]
test edi, edi
jne 0x4fc803
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [esi]
cmp eax, 0x40
jae 0x4fc818
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 0x4fc84e
push 0x100
push 4
push dword [0x636044]
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 0x4fc893
add eax, eax
mov dword [esi + 0x108], eax
shl eax, 2
push eax
test ecx, ecx
jne 0x4fc87c
push 4
push dword [0x636044]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x4fc88b
push ecx
push 4
push dword [0x636044]
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 0x4fcba0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x62f040]
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 0x4fcc71
test ebx, ebx
je 0x4fcc4f
mov ecx, dword [ebp - 0x1c]
mov dword [ebx], ecx
jmp 0x4fcc5d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4fcc5d
push eax
call dword [sym.imp.ntdll.dll_NtClose]
lea ecx, [ecx]
test edi, edi
je 0x4fcc6f
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.0058078f
mov esp, ebp
pop ebp
ret 0x20

Function at 0x5010a0
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 0x5010b0
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 0x5010b4
pop esi
pop ebp
ret 8
Function at 0x5010e0
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 0x5010f6
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 0x501136
test esi, esi
je 0x50112d
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 0x501110
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 0x502880
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x62fbb0], 0xffffffff
push ebx
push esi
push edi
jae 0x50299f
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 0x50293c
jmp 0x5028d0
cmp dword [esi + 0xf94], 0
jne 0x50295f
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 0x1000
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 0x50299f
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 0x5028d0
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 0x50299f
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 0x5088a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x62f040]
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 0x508959
test bl, 2
je 0x5088fb
push 0x20
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.USER32.dll_InternalGetWindowText]
mov edi, eax
test esi, esi
je 0x508a0b
mov dword [esi], 0
jmp 0x508a0b
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 0x50893d
mov dword [esi], ebx
jmp 0x508a0b
lea ecx, [ebx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x508a0b
call fcn.004fc420
jmp 0x508a0b
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
je 0x5089ff
test bl, 2
jne 0x5089ff
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 0x5089cb
test esi, esi
je 0x5089bf
mov dword [esi], edi
mov edi, dword [esp + 0x14]
jmp 0x508a0b
push edi
call sym.SystemInformer.exe_PhDereferenceObject
mov edi, dword [esp + 0x14]
jmp 0x508a0b
test esi, esi
je 0x5089d6
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 0x5089e9
call fcn.004fc420
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0058078f
mov esp, ebp
pop ebp
ret 0xc
nop
test esi, esi
je 0x508a0b
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.0058078f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x509500
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.00582850
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 0x509577
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x509577
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x509577
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 0x50b1c0
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 0x50c180
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x62f040]
xor eax, esp
mov dword [esp + 0x48], 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 0x50c1eb
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0058078f
mov esp, ebp
pop ebp
ret 0x18
test byte [0x632cdc], 1
jne 0x50c21b
mov esi, 0x632cdc
lock bts dword [esi], 0x1f
setb al
test al, al
je 0x50c2f1
test byte [0x632cdc], 1
jne 0x50c21b
xor edx, edx
mov ecx, esi
call sym.SystemInformer.exe_PhfWaitForEvent
push dword [0x636070]
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 0x50c375
push 5
push 0x18
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x50c2d1
test byte [esi + 4], 8
mov edx, dword [esp + 0x40]
mov eax, edx
mov ecx, dword [esp + 0x44]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
jne 0x50c375
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]
test eax, eax
jns 0x50c375
lfence
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x50c37a
call fcn.004fc420
jmp 0x50c37a
push dword [0x635efc]
push 0x28
call sym.SystemInformer.exe_PhCreateObject
mov edx, eax
mov ecx, 1
mov word [edx], cx
lock xadd dword [0x635ef8], ecx
inc ecx
dec cl
mov dword [edx + 4], 0
movzx eax, cl
mov byte [edx + 2], cl
mov dword [edx + 8], 0x50c4c0
mov dword [edx + 0xc], 0x617cc4
mov dword [eax*4 + 0x6384c0], edx
lea eax, [edx + 0x10]
test al, 7
jne 0x50c36a
xor ecx, ecx
mov dword [0x636070], edx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], 0x10
mov dword [eax + 0x10], 0x30
call sym.SystemInformer.exe_PhfEndInitOnce
jmp 0x50c21b
push 0x80000002
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
lfence
mov dword [ebx], esi
mov ecx, dword [esp + 0x54]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0058078f
mov esp, ebp
pop ebp
ret 0x18
Function at 0x50c540
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 0x50c590
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 0x50c574
push eax
lfence
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
mov eax, dword [esi + 8]
cmp eax, dword [ebp - 8]
jne 0x50c585
mov eax, dword ds:[esi + 0xc]
cmp eax, dword [ebp - 4]
je 0x50c590
push 0xc00000e5
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x50c600
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 0x50c64d
push 0
push 0
push dword [edi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x50c666
mov eax, dword [ebp - 8]
test eax, eax
js 0x50c666
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 0x50c666
mov dword [edx], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x50c680
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 0x50c6f9
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 0x50c6d2
push ebx
push ebx
push dword [esi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x50c833
mov eax, dword [ebp - 0xc]
test eax, eax
js 0x50c833
mov ecx, dword [ebp - 8]
add dword [esi + 8], ecx
mov edx, dword [ebp + 0x14]
adc dword [esi + 0xc], ebx
test edx, edx
je 0x50c833
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 0x50c7cd
mov ecx, dword [esi + 0x20]
lea edi, [esi + 0x10]
test ecx, ecx
je 0x50c72a
mov edx, dword [edi]
push ecx
mov ecx, esi
call fcn.0050c840
mov edi, edi
test eax, eax
js 0x50c74f
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x20], ebx
cmp eax, dword [esi + 0x14]
jb 0x50c75b
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.0050c600
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 0x50c775
mov ecx, esi
call fcn.0050c5a0
test eax, eax
js 0x50c74f
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.0050c600
mov ebx, eax
test ebx, ebx
jns 0x50c797
pop edi
pop esi
lfence
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp - 8]
test edi, edi
jne 0x50c7b9
mov eax, dword [ebp + 0x14]
lfence
test eax, eax
je 0x50c831
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 0x50c7d0
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.00582850
add dword [esi + 0x18], edi
add esp, 0xc
mov ecx, dword [ebp + 0x10]
cmp edi, ecx
jae 0x50c828
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x14]
jne 0x50c828
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.0050c600
mov ebx, eax
test ebx, ebx
js 0x50c831
add edi, dword [ebp - 8]
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x50c831
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x50c840
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 0x50c88d
push 0
push 0
push dword [edi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x50c8a4
mov ecx, dword [ebp - 0xc]
test ecx, ecx
js 0x50c8a2
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 0x50ca20
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 0x50ca7e
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 0x50ca70
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 0x50ca7e
lfence
mov eax, ecx
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 0x50cb40
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x62f040]
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 0x50cbbe
sub eax, 1
je 0x50cb9a
sub eax, 1
jne 0x50cbc9
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 0x50cba7
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 0x50cbc9
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0058078f
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 0x50cbfc
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 0x50cbfc
lfence
mov ecx, dword [esp + 0x54]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0058078f
mov esp, ebp
pop ebp
ret 4