joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b8c1c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4b8c33
add esp, 0xfffffff0
call fcn.004057c4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00449a14
mov eax, dword [0x4dcfc4]
cmp byte [eax], 0
jne 0x4b8c60
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x4dd23c]
cmp word [eax + 2], 0
jne 0x4b8c7a
mov eax, dword [0x4dd23c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004bace4
mov eax, dword [0x4dd314]
cmp word [eax + 2], 0
jne 0x4b8c94
mov eax, dword [0x4dd314]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004baee8
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x4509ac]
call fcn.00455c40
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4bb460
mov dl, 1
mov eax, dword [0x4308ec]
call fcn.0040527c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4308ec]
call fcn.0040527c
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x4542a4]
call fcn.0045ca88
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4b8e74
mov eax, dword [0x4dd11c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0045cf1c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4bb748
mov dl, 1
mov eax, dword [0x4308ec]
call fcn.0040527c
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x4dd11c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0041d4f8
test eax, eax
je 0x4b8da5
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0041d2ac
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0041d4dc
test eax, eax
je 0x4b8dbd
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.004076b8
push ebx
push 0x4ba6d0
call fcn.004aea2c
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x4dcfc4]
cmp byte [eax], 0
jne 0x4b8e0e
mov eax, ebx
call fcn.004b8fe8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004bb974
mov eax, ebx
call fcn.004bc5a4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4b8e6b
call fcn.0040581c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b92b4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4b9356
cmp dword [ebx + 0x94], 0
jne 0x4b9350
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4b9200
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4b9350
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x4b9316
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4b9350
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0043c95c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4b9325
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4b9574
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4e32b4]
cmp dword [eax + 0x170], 0
je 0x4b96d9
test bl, bl
jne 0x4b9627
cmp dword [esi + 0x9c], 0
jne 0x4b961c
mov eax, esi
call fcn.004bc3f4
push eax
push 0x4b9480
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4b95ed
mov eax, dword [0x4e32b4]
cmp byte [eax + 0xd3], 0
je 0x4b95ed
mov eax, dword [esi + 0xd8]
call fcn.00408598
mov edi, eax
cmp edi, 0
jl 0x4b95ed
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4b95d6
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4b961c
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0043c95c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4b95fc
inc dword [esi + 0x9c]
jmp 0x4b96d9
cmp dword [esi + 0x9c], 0
jle 0x4b96d9
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4b96d9
cmp dword [esi + 0x44], 0
je 0x4b9684
mov eax, dword [0x4e32b4]
cmp byte [eax + 0xd3], 0
je 0x4b9684
mov eax, dword [esi + 0xd8]
call fcn.00408598
mov edi, eax
cmp edi, 0
jl 0x4b9684
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4b966d
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4b96b3
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0043c95c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4b9693
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x4ac904]
call fcn.00408758
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4ba31c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4ba387
cmp byte [ebx + 0xd3], 0
jne 0x4ba387
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406e1c
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4ba374
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4ba394
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00407074
jmp 0x4ba394
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00407074
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4bbb5c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4bbbca
mov eax, esi
call fcn.004794c4
test al, al
je 0x4bbbca
mov eax, dword [ebx + 0x84]
call fcn.00479118
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4bbbca
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4bbbbe
push 0
mov eax, dword [ebx + 0x84]
call fcn.00479118
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00470094
jmp 0x4bbbca
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004bb994
pop esi
pop ebx
ret
Function at 0x4ca844
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4caa18
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4ca9ee
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x4ca9e0
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4ca9e0
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004cadd4
test al, al
jne 0x4ca9d4
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0041d050
lea eax, [ebp - 0x10]
push eax
mov ecx, 8
mov edx, 7
mov eax, dword [ebp - 0x10]
call fcn.004079d8
mov edx, 0x1330225
mov eax, dword [ebp - 0x10]
call fcn.0041c610
mov dword [ebp - 0x18], eax
call fcn.0041ebd4
fstp qword [ebp - 0x30]
wait
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
lea ecx, [ebp - 0x34]
mov edx, dword [0x4dd340]
mov eax, 0x4caa34
call fcn.0041fa04
mov edx, 0x1330225
mov eax, dword [ebp - 0x34]
call fcn.0041c610
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4ca9bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
add eax, 0xa
cmp eax, dword [ebp - 0x1c]
jge 0x4ca9b1
mov eax, dword [ebp - 0xc]
call fcn.0040762c
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x35], al
cmp byte [ebp - 0x35], 0
jne 0x4ca9b1
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xc]
call fcn.0040762c
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
je 0x4ca9a8
test byte [ebp - 0x3b], 4
je 0x4ca9a8
test byte [ebp - 0x3c], 0x10
je 0x4ca9a8
mov eax, dword [ebp - 0xc]
call fcn.0040762c
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x35], al
jmp 0x4ca9b1
mov eax, dword [ebp - 0x40]
push eax
call sub.kernel32.dll_SetLastError
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ca9d4
inc dword [ebp - 0x14]
dec dword [ebp - 0x20]
jne 0x4ca8a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca9f5
ret
Function at 0x4cb794
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb4
xor edx, edx
mov dword [ebp - 0x240], edx
mov dword [ebp - 0x248], edx
mov dword [ebp - 0x24c], edx
mov dword [ebp - 0x244], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406d98
xor eax, eax
push ebp
push 0x4cb8d0
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
mov eax, 2
call fcn.004cb328
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x23c], 0x22c
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 0x10]
call fcn.004cb348
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
jmp 0x4cb897
lea eax, [ebp - 0x244]
lea edx, [ebp - 0x218]
mov ecx, 0x104
call fcn.004076b8
mov eax, dword [ebp - 0x244]
lea edx, [ebp - 0x240]
call fcn.0041bb94
mov eax, dword [ebp - 0x240]
push eax
lea edx, [ebp - 0x24c]
mov eax, dword [ebp - 4]
call fcn.0041d050
mov eax, dword [ebp - 0x24c]
lea edx, [ebp - 0x248]
call fcn.0041bb94
mov edx, dword [ebp - 0x248]
pop eax
call fcn.004079a0
jne 0x4cb880
push 0
mov eax, dword [ebp - 0x234]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov dword [ebp - 8], eax
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 0x10]
call fcn.004cb368
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x4cb80a
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cb8d7
lea eax, [ebp - 0x24c]
mov edx, 4
call fcn.00406d14
lea eax, [ebp - 4]
call fcn.00406cb4
ret

Function at 0x4cbaa8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406d98
xor eax, eax
push ebp
push 0x4cbb4d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x408]
mov edx, dword [ebp - 4]
call fcn.0041d320
lea eax, [ebp - 0x44c]
xor ecx, ecx
mov edx, 0x44
call fcn.00404c90
mov dword [ebp - 0x44c], 0x44
mov dword [ebp - 0x420], 1
mov word [ebp - 0x41c], 1
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x44c]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
lea eax, [ebp - 0x408]
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4cbb37
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cbb54
lea eax, [ebp - 4]
call fcn.00406cb4
ret

Function at 0x4cbd9c
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4cbf34]
call fcn.00407d04
xor eax, eax
push ebp
push 0x4cbe0c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406cb4
lea eax, [ebp - 0x10]
push eax
push 0x4cbd18
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 0xc]
call fcn.0040762c
push eax
push 0
call sub.user32.dll_FindWindowW
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cbe13
lea eax, [ebp - 0x10]
mov edx, dword [0x4cbf34]
call fcn.00407ddc
ret
Function at 0x4cec54
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4cedf7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x70], 0
jne 0x4cede0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
jmp 0x4cedd3
mov eax, dword [ebp - 4]
add eax, 0x98
xor edx, edx
call fcn.004d0e2c
mov eax, dword [ebp - 4]
add eax, 0x98
push eax
mov eax, dword [ebp - 4]
add eax, 0x6c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x4ced21
xor eax, eax
push ebp
push 0x4ced1a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x6c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x7c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 4]
call fcn.004cf1b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cedd3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa8]
push eax
call sub.kernel32.dll_ResetEvent
ret
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x58], 0xea
jne 0x4cedc0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x84]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x7c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 4]
add eax, 0x84
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
push eax
call sub.kernel32.dll_PeekNamedPipe
test eax, eax
je 0x4cedb3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x80]
jbe 0x4cedd3
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
mov eax, dword [ebp - 4]
add eax, 0x7c
call fcn.004043ec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, dword [ebp - 4]
mov dword [edx + 0x80], eax
jmp 0x4cedd3
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], eax
jmp 0x4cede0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x58], 0x3e5
jne 0x4cede0
mov eax, dword [ebp - 4]
mov byte [eax + 0x70], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x70], 0
je 0x4cec90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cedfe
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x70]
mov byte [ebp - 5], al
ret
Function at 0x4cee08
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa8]
push eax
call sub.kernel32.dll_ResetEvent
mov eax, dword [ebp - 4]
mov byte [eax + 0x70], 0
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
add eax, 0x6c
push eax
mov eax, dword [ebp - 4]
add eax, 0x98
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
push eax
call sub.kernel32.dll_GetOverlappedResult
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
jne 0x4cef72
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x58], 0xea
jne 0x4cef72
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x7c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x84]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 4]
add eax, 0x84
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
push eax
call sub.kernel32.dll_PeekNamedPipe
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x4cef67
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x80]
jbe 0x4ceef8
mov eax, dword [ebp - 4]
add eax, 0x7c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x84]
call fcn.004043ec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, dword [ebp - 4]
mov dword [edx + 0x80], eax
mov eax, dword [ebp - 4]
add eax, 0x98
xor edx, edx
call fcn.004d0e2c
mov eax, dword [ebp - 4]
add eax, 0x98
push eax
mov eax, dword [ebp - 4]
add eax, 0x6c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
push eax
call sub.kernel32.dll_ReadFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
jne 0x4cef72
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x58], 0x3e5
jne 0x4cef72
mov eax, dword [ebp - 4]
mov byte [eax + 0x70], 1
mov byte [ebp - 5], 1
jmp 0x4cef72
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], eax
cmp byte [ebp - 5], 0
je 0x4cefa0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x70], 0
jne 0x4cefa0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x7c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x6c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 4]
call fcn.004cf1b4
mov al, byte [ebp - 5]
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4cefa8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x71], 0
jne 0x4cf0d3
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x4cf0cf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
call fcn.004d027c
mov edx, dword [ebp - 4]
mov dword [edx + 0x68], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x68], 0
je 0x4cf0d3
mov eax, dword [ebp - 4]
add eax, 0xac
xor edx, edx
call fcn.004d0e2c
mov eax, dword [ebp - 4]
add eax, 0xac
push eax
mov eax, dword [ebp - 4]
add eax, 0x60
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
push eax
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 6], al
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], eax
cmp byte [ebp - 6], 0
je 0x4cf0b4
xor eax, eax
push ebp
push 0x4cf0ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
push eax
call sub.kernel32.dll_FlushFileBuffers
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x54]
mov edx, 0x467
mov eax, dword [ebp - 4]
call fcn.004cec08
mov eax, dword [ebp - 4]
add eax, 0x68
call fcn.004d10b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cf0d3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xbc]
push eax
call sub.kernel32.dll_ResetEvent
ret
mov eax, dword [ebp - 4]
cmp dword [eax + 0x58], 0x3e5
jne 0x4cf0c9
mov eax, dword [ebp - 4]
mov byte [eax + 0x71], 1
jmp 0x4cf0d3
mov byte [ebp - 5], 0
jmp 0x4cf0d3
mov byte [ebp - 5], 1
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x4cf7b4
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4cf888
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0x80
push eax
push 0x3e8
push 0
push 0
push 0xff
push 6
push 0x40000003
lea edx, [ebp - 0xc]
mov eax, 0x4cbf98
call fcn.0040a1b4
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x58]
call fcn.00407810
mov eax, dword [ebp - 0xc]
call fcn.0040762c
push eax
call sub.kernel32.dll_CreateNamedPipeW
mov edx, dword [ebp - 4]
mov dword [edx + 0x54], eax
xor eax, eax
push ebp
push 0x4cf86b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
call fcn.004d0f8c
test al, al
je 0x4cf844
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x50], edx
jmp 0x4cf84f
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x50], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cf872
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
call fcn.004d0f8c
mov byte [ebp - 5], al
ret