joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fae60
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.00527a00
mov esi, eax
test esi, esi
jne 0x4faee4
push 0x800
push eax
push str.AppXDeploymentClient.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4faee4
push 0x200
push eax
push str.AppXDeploymentClient.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4faee4
cmp dword [0x62dbb0], 0x3e
jae 0x4faed7
push eax
push eax
push str.AppXDeploymentClient.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4faee4
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 0x4faffd
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4faffd
jmp 0x4faf20
cmp eax, 0x7fffffff
jae 0x4faffd
cmp dword [eax + esi], 0x4550
jne 0x4faffd
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x4faffd
cmp dword [edx + 4], 0
je 0x4faffd
push 0
add eax, esi
mov ecx, esi
push str.DllGetActivationFactory
push eax
call fcn.00527c80
mov esi, eax
test esi, esi
je 0x4faffd
lea eax, ds:[esp + 0xc]
mov ecx, esi
push eax
lea eax, [esp + 0x18]
push eax
call dword [0x5a28f0]
call esi
mov edi, eax
test edi, edi
jne 0x4fb002
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 [0x5a28f0]
call esi
mov edi, eax
test edi, edi
jne 0x4fafdf
mov eax, dword [esp + 8]
push dword [ebp + 0xc]
push 0x61b458
mov esi, dword [eax]
push eax
mov esi, dword [esi]
mov ecx, esi
call dword [0x5a28f0]
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 [0x5a28f0]
call esi
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x5a28f0]
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 0x4fc120
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x62dbb0], 0xffffffff
mov ecx, dword [0x635c08]
push esi
push edi
jae 0x4fc14b
cmp ecx, 0x40
jae 0x4fc14b
lfence
mov eax, dword fs:[0x18]
mov esi, dword [eax + ecx*4 + 0xe10]
jmp 0x4fc154
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov edi, dword [ebp + 8]
test edi, edi
jne 0x4fc163
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [esi]
cmp eax, 0x40
jae 0x4fc178
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 0x4fc1ae
push 0x100
push 4
push dword [0x633f94]
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 0x4fc1f3
add eax, eax
mov dword [esi + 0x108], eax
shl eax, 2
push eax
test ecx, ecx
jne 0x4fc1dc
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x4fc1eb
push ecx
push 4
push dword [0x633f94]
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 0x4fc500
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 - 0x28], 0
mov dword [ebp - 0x2c], 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 0x4fc5d1
test ebx, ebx
je 0x4fc5af
mov ecx, dword [ebp - 0x1c]
mov dword [ebx], ecx
jmp 0x4fc5bd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4fc5bd
push eax
call dword [sym.imp.ntdll.dll_NtClose]
lea ecx, [ecx]
test edi, edi
je 0x4fc5cf
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.0057e94f
mov esp, ebp
pop ebp
ret 0x20

Function at 0x500940
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 0x500950
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 0x500954
pop esi
pop ebp
ret 8
Function at 0x500980
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 0x500996
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 0x5009d6
test esi, esi
je 0x5009cd
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 0x5009b0
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 0x5020e0
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x62dbb0], 0xffffffff
push ebx
push esi
push edi
jae 0x5021ff
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 0x50219c
jmp 0x502130
cmp dword [esi + 0xf94], 0
jne 0x5021bf
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 0x5021ff
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 0x502130
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 0x5021ff
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 0x508020
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 0x5080d9
test bl, 2
je 0x50807b
push 0x20
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.USER32.dll_InternalGetWindowText]
mov edi, eax
test esi, esi
je 0x50818b
mov dword [esi], 0
jmp 0x50818b
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 0x5080bd
mov dword [esi], ebx
jmp 0x50818b
lea ecx, [ebx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x50818b
call fcn.004fbd80
jmp 0x50818b
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
je 0x50817f
test bl, 2
jne 0x50817f
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 0x50814b
test esi, esi
je 0x50813f
mov dword [esi], edi
mov edi, dword [esp + 0x14]
jmp 0x50818b
push edi
call sym.SystemInformer.exe_PhDereferenceObject
mov edi, dword [esp + 0x14]
jmp 0x50818b
test esi, esi
je 0x508156
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 0x508169
call fcn.004fbd80
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0057e94f
mov esp, ebp
pop ebp
ret 0xc
nop
test esi, esi
je 0x50818b
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.0057e94f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x508c80
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.00580c90
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 0x508cf7
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x508cf7
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x508cf7
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 0x50a940
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 0x50b900
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
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 0x50b96b
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0057e94f
mov esp, ebp
pop ebp
ret 0x18
test byte [0x630d30], 1
jne 0x50b99b
mov esi, 0x630d30
lock bts dword [esi], 0x1f
setb al
test al, al
je 0x50ba71
test byte [0x630d30], 1
jne 0x50b99b
xor edx, edx
mov ecx, esi
call sym.SystemInformer.exe_PhfWaitForEvent
push dword [0x6340dc]
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 0x50baf5
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 0x50ba51
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 0x50baf5
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 0x50baf5
lfence
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x50bafa
call fcn.004fbd80
jmp 0x50bafa
push dword [0x633f68]
push 0x28
call sym.SystemInformer.exe_PhCreateObject
mov edx, eax
mov ecx, 1
mov word [edx], cx
lock xadd dword [0x633f64], ecx
inc ecx
dec cl
mov dword [edx + 4], 0
movzx eax, cl
mov byte [edx + 2], cl
mov dword [edx + 8], 0x50bc40
mov dword [edx + 0xc], 0x615ac4
mov dword [eax*4 + 0x6365a0], edx
lea eax, [edx + 0x10]
test al, 7
jne 0x50baea
xor ecx, ecx
mov dword [0x6340dc], 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 0x50b99b
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.0057e94f
mov esp, ebp
pop ebp
ret 0x18
Function at 0x50bcc0
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 0x50bd10
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 0x50bcf4
push eax
lfence
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
mov eax, dword [esi + 8]
cmp eax, dword [ebp - 8]
jne 0x50bd05
mov eax, dword ds:[esi + 0xc]
cmp eax, dword [ebp - 4]
je 0x50bd10
push 0xc00000e5
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x50bd80
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 0x50bdcd
push 0
push 0
push dword [edi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x50bde6
mov eax, dword [ebp - 8]
test eax, eax
js 0x50bde6
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 0x50bde6
mov dword [edx], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x50be00
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 0x50be79
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 0x50be52
push ebx
push ebx
push dword [esi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x50bfb3
mov eax, dword [ebp - 0xc]
test eax, eax
js 0x50bfb3
mov ecx, dword [ebp - 8]
add dword [esi + 8], ecx
mov edx, dword [ebp + 0x14]
adc dword [esi + 0xc], ebx
test edx, edx
je 0x50bfb3
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 0x50bf4d
mov ecx, dword [esi + 0x20]
lea edi, [esi + 0x10]
test ecx, ecx
je 0x50beaa
mov edx, dword [edi]
push ecx
mov ecx, esi
call fcn.0050bfc0
mov edi, edi
test eax, eax
js 0x50becf
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x20], ebx
cmp eax, dword [esi + 0x14]
jb 0x50bedb
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.0050bd80
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 0x50bef5
mov ecx, esi
call fcn.0050bd20
test eax, eax
js 0x50becf
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.0050bd80
mov ebx, eax
test ebx, ebx
jns 0x50bf17
pop edi
pop esi
lfence
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp - 8]
test edi, edi
jne 0x50bf39
mov eax, dword [ebp + 0x14]
lfence
test eax, eax
je 0x50bfb1
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 0x50bf50
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.00580c90
add dword [esi + 0x18], edi
add esp, 0xc
mov ecx, dword [ebp + 0x10]
cmp edi, ecx
jae 0x50bfa8
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x14]
jne 0x50bfa8
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.0050bd80
mov ebx, eax
test ebx, ebx
js 0x50bfb1
add edi, dword [ebp - 8]
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x50bfb1
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x50bfc0
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 0x50c00d
push 0
push 0
push dword [edi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x50c024
mov ecx, dword [ebp - 0xc]
test ecx, ecx
js 0x50c022
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 0x50c1a0
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 0x50c1fe
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 0x50c1f0
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 0x50c1fe
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 0x50c2c0
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 0x50c33e
sub eax, 1
je 0x50c31a
sub eax, 1
jne 0x50c349
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 0x50c327
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 0x50c349
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0057e94f
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 0x50c37c
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 0x50c37c
lfence
mov ecx, dword [esp + 0x54]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057e94f
mov esp, ebp
pop ebp
ret 4