joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c56c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x410
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x17
push 0
mov word [esp + 0x18], 0
call esi
cmp word [esp + 4], 0
je 0x4c5718
push str..lnk
push str.Debut_Video_Capture_Software
lea ecx, [esp + 0x214]
push ecx
lea eax, [esp + 0x10]
call fcn.004ad3a0
push edi
lea edx, [esp + 0x210]
push edx
call fcn.004c53e0
test al, al
jne 0x4c575f
lea eax, [esp + 4]
push eax
push 0
push 0
push 2
push 0
mov word [esp + 0x18], 0
call esi
cmp word [esp + 4], 0
je 0x4c575f
push str..lnk
push str.Debut_Video_Capture_Software
lea ecx, [esp + 0x214]
push ecx
lea eax, [esp + 0x10]
call fcn.004ad3a0
push edi
lea edx, [esp + 0x210]
push edx
call fcn.004c53e0
pop esi
add esp, 0x410
ret

Function at 0x4c5770
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x410
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push edi
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x17
push 0
mov word [esp + 0x1c], 0
call esi
cmp word [esp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
je 0x4c57c7
push str..lnk
push str.Debut_Video_Capture_Software
lea ecx, [esp + 0x218]
push ecx
lea eax, [esp + 0x14]
call fcn.004ad3a0
lea edx, [esp + 0x210]
push edx
call edi
lea eax, [esp + 8]
push eax
push 0
push 0
push 2
push 0
mov word [esp + 0x1c], 0
call esi
cmp word [esp + 8], 0
je 0x4c580a
push str..lnk
push str.Debut_Video_Capture_Software
lea ecx, [esp + 0x218]
push ecx
lea eax, [esp + 0x14]
call fcn.004ad3a0
lea edx, [esp + 0x210]
push edx
call edi
pop edi
pop esi
add esp, 0x410
ret

Function at 0x4c5820
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x410
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x17
push 0
mov word [esp + 0x20], 0
call ebx
cmp word [esp + 0xc], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
je 0x4c5889
push 0x6bc0cc
push str.Debut_Video_Capture_Software
lea ecx, [esp + 0x21c]
push ecx
lea eax, [esp + 0x18]
call fcn.004ad3a0
lea edx, [esp + 0x214]
push edx
call edi
cmp eax, 0xffffffff
je 0x4c5889
lea esi, [esp + 0x214]
call fcn.004add10
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 2
push 0
mov word [esp + 0x20], 0
call ebx
cmp word [esp + 0xc], 0
je 0x4c58dd
push 0x6bc0cc
push str.Debut_Video_Capture_Software
lea ecx, [esp + 0x21c]
push ecx
lea eax, [esp + 0x18]
call fcn.004ad3a0
lea edx, [esp + 0x214]
push edx
call edi
cmp eax, 0xffffffff
je 0x4c58dd
lea esi, [esp + 0x214]
call fcn.004add10
pop edi
pop esi
pop ebx
add esp, 0x410
ret
Function at 0x4c58f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x208
push ebx
push ebp
mov ebp, dword [esp + 0x214]
push esi
mov esi, eax
push edi
mov eax, ebp
call fcn.00420f20
mov dword [ebp + 0xcc], esi
mov dword [ebp], 0x70df08
mov byte [ebp + 0x4e0], 0
mov byte [ebp + 0x4e1], 0
mov byte [esi], 1
push str.Software
push str.SoftwareNCH_SoftwareDebut_s
mov esi, 0x104
lea edi, [esp + 0x18]
call fcn.004af0d0
add esp, 8
lea esi, [ebp + 0xd0]
push esi
push 0x6bc0cc
push str.Installer
mov ecx, edi
mov edx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.004af7e0
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call ebx
cmp eax, 0xffffffff
jne 0x4c5973
mov word [esi], 0
cmp dword [0x731ffc], 0xa
jne 0x4c5981
call fcn.004b23e0
cmp dword [0x731ffc], 9
setb al
test al, al
jne 0x4c5998
call fcn.004b4d20
test al, al
je 0x4c59b0
mov word [ebp + 0x2d8], 0
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 4
push str.Software
push str.SoftwareNCH_SoftwareDebut_s
mov esi, 0x104
lea edi, [esp + 0x18]
call fcn.004af0d0
add esp, 8
lea esi, [ebp + 0x2d8]
push esi
push 0x6bc0cc
push str.PreviousInstaller
mov ecx, edi
mov edx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.004af7e0
push esi
call ebx
cmp eax, 0xffffffff
jne 0x4c59f5
mov word [esi], 0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x208
ret 4
Function at 0x4c62d0
Capabilities:
Hide graphical window

Disassembly:
push ecx
push edi
push 0
push 0
push 0x147
mov edi, eax
mov eax, dword [edi + 4]
push 0x70
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
test eax, eax
jg 0x4c632f
push 0
push 0x74
mov eax, 0x71
call fcn.005178a0
cmp byte [edi + 0x2d], 0
je 0x4c6314
mov ecx, dword [edi + 4]
push 1
push ecx
mov eax, 0x190
call fcn.004f6c00
pop edi
pop ecx
ret
mov edx, dword [edi + 4]
push 0
push 0x190
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop ecx
ret
push ebx
sub eax, 1
push ebp
push esi
mov esi, eax
imul esi, esi, 0x19
cmp dword [esi + 0x73223c], 0
sete bl
test bl, bl
setne al
mov byte [esp + 0x10], bl
push eax
push 0x72
mov eax, 0x71
call fcn.005178a0
test bl, bl
sete cl
mov eax, 0x73
push ecx
push 0x74
call fcn.005178a0
cmp byte [edi + 0x2d], 0
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
je 0x4c638d
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 4]
push edx
push eax
mov eax, 0x190
call fcn.004f6c00
jmp 0x4c63ac
mov edx, dword [edi + 4]
mov cl, bl
neg cl
sbb ecx, ecx
and ecx, 0xfffffffb
add ecx, 5
push ecx
push 0x190
push edx
call ebp
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
test bl, bl
jne 0x4c63e7
mov eax, dword [esi + 0x73223c]
push 0x73
push edi
call fcn.00517f60
mov eax, dword [esi + 0x73222c]
push str.Expired
push eax
call fcn.006adcb9
add esp, 8
test eax, eax
push 0x74
push edi
jne 0x4c63e0
mov eax, str.Check_for_special_discount
jmp 0x4c63f0
mov eax, str.NCH_Software_home_page
jmp 0x4c63f0
mov eax, dword [esi + 0x732234]
push 0x72
push edi
call fcn.00517f60
mov esi, dword [esi + 0x732238]
test esi, esi
jne 0x4c6404
mov esi, str._Type_any_comments_here_
mov eax, dword [edi + 4]
push 0x71
push eax
call ebp
push esi
mov esi, eax
call fcn.0051a310
pop esi
pop ebp
pop ebx
pop edi
pop ecx
ret

Function at 0x4c6a50
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x234
push ebx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
push eax
call ebx
test eax, eax
jne 0x4c6a77
pop ebx
add esp, 0x234
ret
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c6a93
pop esi
xor eax, eax
pop ebx
add esp, 0x234
ret
push edi
lea ecx, [esp + 0x14]
push ecx
push esi
xor edi, edi
mov dword [esp + 0x1c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4c6b0a
lea ecx, [ecx]
lea edx, [esp + 0x38]
push str.explorer.exe
push edx
call fcn.006b227b
add esp, 8
test eax, eax
jne 0x4c6ae4
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x14], 0xffffffff
call ebx
mov edx, dword [esp + 0xc]
cmp edx, dword [esp + 0x10]
je 0x4c6b06
lea eax, [esp + 0x14]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4c6ab0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x234
ret
mov edi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x234
ret
Function at 0x4c6b20
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push 0x3c
lea eax, [esp + 4]
push 0
push eax
call fcn.006a1300
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
add esp, 0xc
lea eax, [esp]
push eax
mov dword [esp + 4], 0x3c
mov dword [esp + 0x10], str.runas
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 8], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [esp + 0x38]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x38]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
lea eax, [esp + 0x40]
mov dword [esp + 0x40], 2
je 0x4c6bab
mov dword [esp + 0x40], 0
mov edx, dword [esp + 0x38]
mov ecx, dword [eax]
push edx
mov dword [edi], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
add esp, 0x3c
ret 0xc
Function at 0x4c6e10
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x2ac
push ebx
push ebp
push esi
push edi
mov esi, eax
mov eax, dword [0x735b9c]
xor edi, edi
cmp eax, edi
jne 0x4c6e37
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x735b9c], eax
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
mov dword [esp + 0x18], eax
je 0x4c6fab
xor eax, eax
xor bl, bl
xor ebp, ebp
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.004c6a50
cmp eax, edi
je 0x4c6f4e
push eax
push edi
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
cmp ebp, edi
je 0x4c6f4e
lea eax, [esp + 0x14]
push eax
push 0xf
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4c6f4e
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 1
push 2
push edi
push 0x2000000
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4c6f4e
push 0x44
lea eax, [esp + 0x6c]
push edi
push eax
call fcn.006a1300
add esp, 0xc
cmp esi, edi
mov dword [esp + 0x68], 0x44
je 0x4c6f29
cmp word [esi], di
je 0x4c6f29
mov ebx, dword [esp + 0x2c0]
push esi
push ebx
push str.__s___s
mov esi, 0x104
lea edi, [esp + 0xbc]
call fcn.004af0d0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x6c]
push edx
push 0
push 0
push 0
mov eax, edi
push eax
push ebx
push 0
push ecx
jmp 0x4c6f45
mov ecx, dword [esp + 0x2c0]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x6c]
push eax
push edi
push edi
push edi
push edi
push ecx
push edi
push edx
call dword [esp + 0x3c]
test eax, eax
setne bl
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
push ebp
call esi
test bl, bl
je 0x4c6f8e
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x2c4]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne bl
mov edx, dword [esp + 0x1c]
push edx
call esi
mov eax, dword [esp + 0x20]
push eax
call esi
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2ac
ret 8
push 0x3c
lea ecx, [esp + 0x30]
push edi
push ecx
call fcn.006a1300
mov edx, dword [esp + 0x2cc]
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], 0x3c
mov dword [esp + 0x34], 0x40
mov dword [esp + 0x3c], 0x6bc0b0
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], esi
mov dword [esp + 0x4c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [esp + 0x64]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x2c4]
mov eax, dword [esp + 0x64]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x64]
test eax, eax
push ecx
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x2ac
ret 8
Function at 0x4c86c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x60
push ebx
mov ebx, dword [esp + 0x68]
push ebp
mov ebp, dword [esp + 0x70]
push edi
push 0x44
lea eax, [esp + 0x24]
push 0
push eax
call fcn.006a1300
mov cx, word [esi + 0xc]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [esi]
add esp, 0xc
test eax, eax
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x4c], 1
mov word [esp + 0x50], cx
jne 0x4c8715
mov eax, 0x6bc0cc
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4c8749
mov dword [ebx], 2
mov eax, ebx
pop edi
pop ebp
pop ebx
add esp, 0x60
ret 8
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
push ecx
mov ecx, dword [esp + 0x14]
mov eax, esp
mov dword [eax], ecx
mov edx, dword [ebp]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x78]
push eax
mov ecx, ebp
call edx
lea eax, [esi + 0xe]
push eax
mov dword [eax], 0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x10]
push ecx
call edi
pop edi
pop ebp
mov dword [ebx], 0
mov eax, ebx
pop ebx
add esp, 0x60
ret 8

Function at 0x4c90f0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
or eax, 0xffffffff
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push esi
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x48], 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x34]
cmp ecx, edx
mov esi, dword [esp + 0x30]
ja 0x4c9147
mov eax, dword [esp + 0x40]
jb 0x4c913e
cmp eax, esi
jae 0x4c9147
mov dword [esp + 0xc], ecx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
mov dword [esp + 0xc], edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4c9160
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x40
push esi
push edi
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor esi, esi
xor edi, edi
cmp dword [esp + 0x30], esi
jbe 0x4c91b2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
push 0x1c
lea ecx, [esp + 0x10]
push ecx
push esi
call ebx
test eax, eax
jbe 0x4c91a7
cmp dword [esp + 0x1c], 0x10000
mov eax, dword [esp + 0x18]
jne 0x4c91a3
cmp eax, edi
jbe 0x4c91a3
mov edi, eax
add esi, eax
jmp 0x4c91ab
add esi, dword [esp + 0x2c]
cmp esi, dword [esp + 0x34]
jb 0x4c9181
pop ebx
mov eax, edi
pop edi
pop esi
add esp, 0x40
ret
Function at 0x4c92d0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows

Disassembly:
mov eax, 0x2068
call fcn.006ab750
mov eax, dword [esp + 0x206c]
push ebx
push esi
lea esi, [eax + 4]
push 0x44
mov dword [eax], 0xffffffff
lea eax, [esp + 0x2c]
push 0
push eax
mov dword [esi], 0xffffffff
call fcn.006a1300
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
add esp, 0xc
push 0xfffffffffffffff5
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x58], 0x101
mov word [esp + 0x5c], 0
call ebx
push 0xfffffffffffffff4
mov dword [esp + 0x68], eax
call ebx
push 0x10000
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x70], eax
push edx
lea eax, [esp + 0x6c]
push eax
mov dword [esp + 0x2c], 0xc
mov dword [esp + 0x34], 1
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x4c9407
push 2
push 0
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
mov ecx, dword [esp + 0x18]
push eax
push ecx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
movzx eax, word [edi]
xor ecx, ecx
test ax, ax
lea edx, [edi + 2]
je 0x4c93cf
cmp ecx, 0xfff
jae 0x4c93cf
mov word [esp + ecx*2 + 0x70], ax
movzx eax, word [edx]
add ecx, 1
add edx, 2
test ax, ax
jne 0x4c93b4
lea eax, [esp + 0xc]
push eax
mov word [esp + ecx*2 + 0x74], 0
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0x10
push 1
push 0
push 0
lea edx, [esp + 0x90]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4c9414
mov eax, dword [esp + 0x60]
push eax
call esi
xor al, al
pop esi
pop ebx
add esp, 0x2068
ret 4
mov ecx, dword [esp + 0x60]
push ecx
call esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov edx, dword [esp + 0x10]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x2074]
pop esi
mov dword [edx], ecx
mov al, 1
pop ebx
add esp, 0x2068
ret 4
Function at 0x4c9460
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes

Disassembly:
mov eax, 0x2074
call fcn.006ab750
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2088]
push 0x44
xor ebx, ebx
lea esi, [edi + 4]
lea eax, [esp + 0x3c]
mov dword [edi], 0xffffffff
push ebx
add edi, 8
push eax
mov dword [esi], 0xffffffff
mov dword [edi], 0xffffffff
call fcn.006a1300
add esp, 0xc
push 0xfffffffffffffff4
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 0x101
mov word [esp + 0x6c], bx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, dword [esp + 0x2090]
push ecx
lea edx, [esp + 0x30]
mov dword [esp + 0x7c], eax
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x7c]
push ecx
mov dword [esp + 0x3c], 0xc
mov dword [esp + 0x44], 1
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x4c95f0
push 2
push ebx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
mov edx, dword [esp + 0x28]
push eax
push edx
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call ebp
mov eax, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
mov ecx, dword [esp + 0x2094]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x4c95f0
push 2
push 0
push 0
push edi
call esi
mov edx, dword [esp + 0x24]
push eax
push edx
call esi
push eax
call ebp
mov eax, dword [esp + 0x14]
push eax
call ebx
mov edx, dword [esp + 0x208c]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
movzx eax, word [edx]
xor ecx, ecx
add edx, 2
test ax, ax
je 0x4c95ae
lea ebx, [ebx]
cmp ecx, 0xfff
jae 0x4c95ae
mov word [esp + ecx*2 + 0x80], ax
movzx eax, word [edx]
add ecx, 1
add edx, 2
test ax, ax
jne 0x4c9590
mov word [esp + ecx*2 + 0x80], 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x3c]
push edx
push 0
push 0
push 0x10
push 1
push 0
push 0
lea eax, [esp + 0xa0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4c95ff
mov ecx, dword [esp + 0x70]
push ecx
call ebx
mov edx, dword [esp + 0x74]
push edx
call ebx
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2074
ret 0x10
mov eax, dword [esp + 0x70]
push eax
call ebx
mov ecx, dword [esp + 0x74]
push ecx
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov edx, dword [esp + 0x20]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esp + 0x20]
push eax
call ebx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2088]
pop edi
pop esi
pop ebp
mov dword [edx], ecx
mov al, 1
pop ebx
add esp, 0x2074
ret 0x10
Function at 0x4c9800
Capabilities:
Create pipe

Disassembly:
sub esp, 0x428
push ebx
push 1
lea eax, [esp + 0x1c]
xor ebx, ebx
push eax
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x4c98cb
push 2
push 0x400
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x4c98cb
push esi
push 1
call dword [sym.imp.ADVAPI32.dll_GetSidLengthRequired]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 1
lea edx, [esp + 0xc]
mov esi, eax
push edx
push esi
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], bl
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], bl
mov byte [esp + 0x18], bl
mov byte [esp + 0x19], 1
call dword [sym.imp.ADVAPI32.dll_InitializeSid]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
push esi
push 0x10000000
mov dword [eax], ebx
push 2
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
je 0x4c98c3
push ebx
lea ecx, [esp + 0x34]
push ecx
push 1
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x4c98c3
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
mov edx, dword [esp + 0x430]
lea ecx, [esp + 0xc]
push ecx
push 0xbb8
push 0x10000
push 0x10000
push 0xff
push ebx
push 0x40000003
add edx, 0x29
push edx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
pop ebx
add esp, 0x428
ret 4

Function at 0x4c9910
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
lea eax, [esi + 8]
push eax
mov eax, dword [esi]
lea ecx, [esp + 8]
push ecx
push 4
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c993c
mov dword [ebx], 0
mov eax, ebx
pop ebx
pop ecx
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4c9981
push 0xbb8
push ecx
mov ecx, dword [esi + 4]
mov eax, esp
mov dword [eax], ecx
mov edx, dword [edi]
mov edx, dword [edx + 8]
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call edx
cmp dword [esp + 0xc], 0
je 0x4c9974
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov ecx, dword [esp + 0xc]
mov dword [ebx], ecx
mov eax, ebx
pop ebx
pop ecx
ret 4
mov dword [ebx], 2
mov eax, ebx
pop ebx
pop ecx
ret 4
Function at 0x4c9990
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, 4
lea ebx, [esi + 8]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi]
push ebx
lea eax, [esp + 0x1c]
push eax
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4c99fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4c9a0b
push 0xffffffffffffffff
push ecx
mov ecx, dword [esi + 4]
mov eax, esp
mov dword [eax], ecx
mov edx, dword [ebp]
mov edx, dword [edx + 8]
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
call edx
cmp dword [esp + 0xc], 0
jne 0x4c9a1c
mov ecx, dword [esi]
push 0
lea eax, [esp + 0x1c]
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x4c9a0b
mov eax, dword [esp + 0x18]
cmp eax, edi
jae 0x4c9a36
add dword [esp + 0x1c], eax
sub edi, eax
jmp 0x4c99a0
mov eax, dword [esp + 0x14]
mov dword [eax], 2
pop edi
pop ebp
pop ebx
pop ecx
ret 0xc
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
pop edi
pop ebp
pop ebx
pop ecx
ret 0xc
mov eax, dword [esp + 0x14]
pop edi
pop ebp
mov dword [eax], 0
pop ebx
pop ecx
ret 0xc