joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c05e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
push esi
call sym.ProcessHacker.exe_PhCountStringZ
add eax, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0xa0]
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov eax, dword fs:[0x18]
xor ebx, ebx
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0xc]
add edi, 0xc
mov esi, dword [edi]
cmp esi, edi
je 0x4c0661
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
mov eax, dword ds:[esi + 0x30]
mov dword [esp + 0x1c], eax
movzx eax, word [esi + 0x2c]
cmp eax, ebx
jb 0x4c0659
push 1
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
jne 0x4c0685
mov esi, dword [esi]
cmp esi, edi
jne 0x4c0632
xor ebx, ebx
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
push dword [ecx + 0xa0]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
test ebx, ebx
je 0x4c0689
mov eax, dword [ebx + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, esi
jmp 0x4c0661
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c06a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
push esi
call sym.ProcessHacker.exe_PhCountStringZ
add eax, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0xa0]
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov eax, dword fs:[0x18]
xor ebx, ebx
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0xc]
add edi, 0xc
mov esi, dword [edi]
cmp esi, edi
je 0x4c0721
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
mov eax, dword ds:[esi + 0x28]
mov dword [esp + 0x1c], eax
movzx eax, word [esi + 0x24]
cmp eax, ebx
jb 0x4c0719
push 1
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
jne 0x4c0745
mov esi, dword [esi]
cmp esi, edi
jne 0x4c06f2
xor ebx, ebx
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
push dword [ecx + 0xa0]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
test ebx, ebx
je 0x4c0749
mov eax, dword [ebx + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, esi
jmp 0x4c0721
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c0760
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, 0x5a4d
push esi
mov esi, edx
cmp word [ecx], ax
jne 0x4c07b5
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4c07b5
jmp 0x4c0780
cmp eax, 0x7fffffff
jae 0x4c07b5
cmp dword [eax + ecx], 0x4550
jne 0x4c07b5
lea edx, [ecx + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x4c07b5
cmp dword ds:[edx + 4], 0
je 0x4c07b5
push dword [ebp + 8]
add eax, ecx
push esi
push eax
call fcn.004c0900
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4c1380
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.005552a0
mov eax, dword [0x5c7004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov byte [ebp - 0x1009], dl
mov ecx, 0x1000
mov dword [ebp - 0x101c], ebx
push ecx
push 4
push dword [0x5cd55c]
mov dword [ebp - 0x1014], 0
mov dword [ebp - 0x1010], ecx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor esi, esi
mov edi, eax
push esi
push esi
push 0x1000
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1024]
push eax
push esi
push esi
push esi
push ebx
call dword [sym.imp.ntdll.dll_NtReadFile]
test eax, eax
js 0x4c1501
lfence
lea ebx, [ebx]
mov ebx, dword [ebp - 0x1020]
test ebx, ebx
je 0x4c147e
mov eax, dword [ebp - 0x1010]
lea ecx, [ebx + esi]
mov dword [ebp - 0x1018], ecx
cmp eax, ecx
jae 0x4c1437
add eax, eax
push eax
push edi
push 4
push dword [0x5cd55c]
mov dword [ebp - 0x1010], eax
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov edi, eax
push ebx
lea eax, [ebp - 0x1008]
push eax
lea eax, [esi + edi]
push eax
call fcn.00537fe0
add esp, 0xc
mov esi, dword [ebp - 0x1018]
lea eax, [ebp - 0x1008]
push 0
push 0
push 0x1000
push eax
lea eax, [ebp - 0x1024]
push eax
push 0
push 0
push 0
push dword [ebp - 0x101c]
call dword [sym.imp.ntdll.dll_NtReadFile]
test eax, eax
jns 0x4c1400
mov ecx, dword [ebp - 0x1010]
lea eax, [esi + 1]
cmp ecx, eax
jae 0x4c14a8
lea eax, ds:[ecx + 1]
push eax
push edi
push 4
lfence
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov edi, eax
test esi, esi
je 0x4c1501
cmp byte [ebp - 0x1009], 0
mov byte [esi + edi], 0
lfence
je 0x4c14cd
push esi
push edi
call sym.ProcessHacker.exe_PhConvertUtf8ToUtf16Ex
mov dword [ebp - 0x1014], eax
jmp 0x4c1501
push dword [0x5cd4f0]
lea eax, [esi + 9]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov ecx, eax
mov dword [ebp - 0x1014], ecx
lea eax, [ecx + 8]
mov dword [ecx], esi
mov dword [ecx + 4], eax
mov byte [eax + esi], 0
test edi, edi
je 0x4c1501
push esi
push edi
push dword [ecx + 4]
call fcn.00537fe0
add esp, 0xc
push edi
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword ds:[ebp - 4]
mov eax, dword [ebp - 0x1014]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00534c91
mov esp, ebp
pop ebp
ret
Function at 0x4c1620
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 0x4c16db
mov eax, dword ds:[ecx + 0x3c]
test eax, eax
je 0x4c16db
cmp eax, 0x7fffffff
jae 0x4c16db
cmp dword [eax + ecx], 0x4550
jne 0x4c16db
lea edx, [ecx + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x4c16db
cmp dword [edx + 4], 0
je 0x4c16db
push 0
add eax, ecx
push str.DllGetClassObject
push eax
call fcn.004c0900
mov esi, eax
test esi, esi
je 0x4c16db
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0x55ab50
push edi
call dword [0x55890c]
call esi
mov edi, eax
test edi, edi
js 0x4c16d1
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 [0x55890c]
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 [0x55890c]
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 0x4c17a0
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0xc]
push esi
push edi
push 0x60
push 1
push 5
push 0x80
push 0x100081
push dword [ebp + 8]
push eax
call sym.ProcessHacker.exe_PhCreateFile
test eax, eax
jns 0x4c17d4
lfence
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
cmp dword [0x5c7aa8], 0x3e
mov esi, dword [ebp - 0xc]
sbb eax, eax
push esi
and eax, 0xf0000000
add eax, 0x11000000
push eax
push 2
push 0
push 0
push 5
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ntdll.dll_NtCreateSection]
push esi
mov edi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
jns 0x4c1818
lfence
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
cmp dword [0x5c7aa8], 0x67
push 2
sbb eax, eax
mov dword [ebp - 8], 0
and eax, 0xfffc0000
mov dword [ebp - 0x10], 0
add eax, 0x40000
push eax
push 1
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
push dword ds:[ebp - 4]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
js 0x4c1879
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4c1879
mov eax, dword [ebp - 8]
or eax, 2
mov dword [ecx], eax
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4c2260
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [0x5cf03c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp + 8]
mov esi, eax
test edi, edi
jne 0x4c2283
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [esi]
cmp eax, 0x40
jae 0x4c2298
mov dword [esi + eax*4 + 4], edi
mov eax, edi
inc dword [esi]
pop edi
pop esi
pop ebp
ret 4
cmp dword ds:[esi + 0x10c], 0
jne 0x4c22c5
push 0x100
push 4
push dword [0x5cd55c]
mov dword [esi + 0x108], 0x40
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi + 0x10c], eax
mov ecx, dword [esi + 0x104]
mov eax, dword [esi + 0x108]
cmp ecx, eax
jne 0x4c2301
add eax, eax
mov dword [esi + 0x108], eax
shl eax, 2
push eax
push dword [esi + 0x10c]
push 4
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov ecx, dword [esi + 0x104]
mov dword [esi + 0x10c], eax
mov eax, dword [esi + 0x10c]
mov dword [eax + ecx*4], edi
mov eax, edi
inc dword [esi + 0x104]
pop edi
pop esi
pop ebp
ret 4

Function at 0x4c2620
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0x5cf040
call dword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov edi, eax
test edi, edi
je 0x4c263f
lock dec dword [0x5cf048]
jmp 0x4c2658
mov eax, dword [0x5cf050]
add eax, 8
push eax
push 4
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov ecx, dword [ebp + 0xc]
lea edx, [edi + 8]
push esi
push 0
lea eax, [ebp - 4]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
push eax
push edx
push 0x4c25a0
push dword [ebp + 8]
mov dword [edx + 4], ecx
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov esi, eax
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
pop esi
js 0x4c26a5
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x5cf048]
cmp eax, dword [0x5cf04c]
push edi
lfence
jae 0x4c26d6
push 0x5cf040
jmp 0x4c26c0
call dword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x5cf048]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4c2700
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x5cf040
call dword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov esi, eax
test esi, esi
je 0x4c2722
lock dec dword [0x5cf048]
mov edi, edi
jmp 0x4c273b
mov eax, dword [0x5cf050]
add eax, 8
push eax
push 4
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov ecx, dword [ebp + 0xc]
lea edx, [esi + 8]
push 0
lea eax, [ebp - 4]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
push eax
push edx
push 0x4c25a0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov dword [edx + 4], ecx
call dword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov edi, eax
test edi, edi
js 0x4c277d
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [edx], ecx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x5cf048]
cmp eax, dword [0x5cf04c]
push esi
lfence
jae 0x4c27aa
push 0x5cf040
call dword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x5cf048]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4c27e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x5cf040
call dword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov esi, eax
test esi, esi
je 0x4c27ff
lock dec dword [0x5cf048]
jmp 0x4c2818
mov eax, dword [0x5cf050]
add eax, 8
push eax
push 4
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov ecx, dword ds:[ebp + 8]
lea edx, [esi + 8]
push 0
push 0
push edx
push 0x4c25a0
push 0
push 0
push 0
push 0
push 0
mov dword [edx], ecx
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
mov dword [edx + 4], ecx
call dword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov edi, eax
test edi, edi
jns 0x4c2886
mov ecx, dword [0x5cf048]
cmp ecx, dword [0x5cf04c]
push esi
lfence
jae 0x4c2878
push 0x5cf040
call dword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x5cf048]
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

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

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [esi]
test eax, eax
jne 0x4c68b6
pop esi
pop ebx
pop ebp
ret 8
mov esi, dword ds:[esi + 4]
push edi
mov edi, eax
shr edi, 1
cmp byte [ebp + 0xc], bl
jne 0x4c68d3
push eax
push esi
call sym.ProcessHacker.exe_PhHashBytes
pop edi
pop esi
pop ebx
pop ebp
ret 8
movzx eax, word ds:[esi]
lea esi, [esi + 2]
push eax
call dword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
movzx eax, ax
xor eax, ebx
imul ebx, eax, 0x1000193
sub edi, 1
jne 0x4c68d3
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x4ccf20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x5c7004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
push esi
push edi
mov edi, dword [ebp + 0x10]
test bl, 1
je 0x4ccffa
test bl, 2
je 0x4ccf70
push 0x20
lea ecx, [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.USER32.dll_InternalGetWindowText]
pop edi
mov ebx, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 0xc
push dword [0x5cd4f8]
push 0x20a
call sym.ProcessHacker.exe_PhCreateObject
mov esi, eax
xor eax, eax
lea ecx, [esi + 8]
mov dword [esi + 4], ecx
mov dword [esi], 0x200
mov word [ecx + 0x200], ax
mov ecx, dword [esi]
shr ecx, 1
inc ecx
push ecx
push dword [esi + 4]
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_InternalGetWindowText]
mov ebx, eax
lea eax, [ebx + ebx]
mov dword [esi], eax
test edi, edi
je 0x4ccfd0
mov dword [edi], esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4ccfe5
mov edi, edi
call fcn.004c1f60
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 0xc
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
mov dword [ebp - 0x48], esi
test esi, esi
je 0x4cd09d
test bl, 2
jne 0x4cd09d
push dword [0x5cd4f8]
add esi, esi
lea eax, [esi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov ebx, eax
xor eax, eax
lea ecx, [ebx + 8]
mov dword [ebx + 4], ecx
mov dword [ebx], esi
mov word [ecx + esi], ax
mov ecx, dword [ebx]
shr ecx, 1
inc ecx
push ecx
push dword [ebx + 4]
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x4cd06a
test edi, edi
je 0x4cd05e
mov esi, dword [ebp - 0x48]
mov dword [edi], ebx
jmp 0x4cd0ab
push ebx
call sym.ProcessHacker.exe_PhDereferenceObject
mov esi, dword [ebp - 0x48]
jmp 0x4cd0ab
test edi, edi
je 0x4cd075
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov dword [edi], eax
lea ecx, [ebx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4cd088
call fcn.004c1f60
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ecx]
test edi, edi
je 0x4cd0ab
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov dword [edi], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00534c91
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4cdc80
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.00537fe0
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 0x4cdcf7
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x4cdcf7
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x4cdcf7
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 0x4cff80
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 0x4cffd0
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 0x4cffb4
push eax
lfence
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
mov eax, dword [esi + 8]
cmp eax, dword [ebp - 8]
jne 0x4cffc5
mov eax, dword ds:[esi + 0xc]
cmp eax, dword [ebp - 4]
je 0x4cffd0
push 0xc00000e5
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4d0040
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 0x4d008d
push 0
push 0
push dword [edi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x4d00a6
mov eax, dword [ebp - 8]
test eax, eax
js 0x4d00a6
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 0x4d00a6
mov dword [edx], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4d00c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov eax, dword [esi + 4]
test al, 2
je 0x4d0139
push ebx
test al, 8
mov ecx, ebx
lea eax, [esi + 8]
cmove eax, ecx
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
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 0x4d0112
push ebx
push ebx
push dword [esi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x4d0268
mov eax, dword [ebp - 8]
test eax, eax
js 0x4d0268
mov ecx, dword [ebp - 4]
add dword [esi + 8], ecx
mov edx, dword [ebp + 0x14]
adc dword [esi + 0xc], ebx
test edx, edx
je 0x4d0268
pop edi
pop esi
mov dword [edx], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
mov eax, dword [ebp + 0x10]
sub edi, ecx
jne 0x4d0204
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4d016a
mov edx, dword [esi + 0x10]
push ecx
mov ecx, esi
call fcn.004d0280
lea esp, [esp]
test eax, eax
js 0x4d018f
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x20], ebx
cmp eax, dword [esi + 0x14]
jb 0x4d019b
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.004d0040
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
jmp 0x4d01a0
cmp dword [esi + 0x10], ebx
jne 0x4d01b0
mov ecx, esi
call fcn.004cffe0
test eax, eax
js 0x4d018f
mov edx, dword ds:[esi + 0x10]
lea eax, [ebp - 4]
push eax
push dword [esi + 0x14]
mov ecx, esi
call fcn.004d0040
mov ebx, eax
test ebx, ebx
jns 0x4d01d7
pop edi
pop esi
lfence
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp - 4]
test edi, edi
jne 0x4d01f5
mov eax, dword [ebp + 0x14]
lfence
test eax, eax
je 0x4d0266
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 ecx, ecx
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], edi
cmp edi, eax
cmova edi, eax
mov eax, dword [esi + 0x10]
add eax, ecx
push edi
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00537fe0
add dword [esi + 0x18], edi
add esp, 0xc
mov ecx, dword [ebp + 0x10]
cmp edi, ecx
jae 0x4d025c
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x14]
jne 0x4d025c
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 4]
sub ecx, edi
push eax
push ecx
lea edx, [edi + edx]
mov ecx, esi
lfence
call fcn.004d0040
mov ebx, eax
test ebx, ebx
js 0x4d0266
add edi, dword [ebp - 4]
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov eax, dword ds:[ebp + 0x14]
test eax, eax
je 0x4d0266
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4d0280
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 0x4d02cd
push 0
push 0
push dword [edi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x4d02e4
mov ecx, dword [ebp - 0xc]
test ecx, ecx
js 0x4d02e2
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 0x4d0440
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 0x4d049c
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 0x4d049c
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 0x4d049c
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 0x4d0560
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x5c7004]
xor eax, esp
mov dword [esp + 0x30], 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 0x4d05de
sub eax, 1
je 0x4d05ba
sub eax, 1
jne 0x4d05e9
push 5
push 0x18
lea eax, [esp + 0x28]
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 0x4d05c7
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esi + 8], eax
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 0x4d05e9
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00534c91
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 0x4d061c
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 + 0x24]
mov dword [esp + 0x20], ecx
push eax
push dword [esi]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov edi, eax
test edi, edi
jns 0x4d061c
lfence
mov ecx, dword [esp + 0x3c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 4