joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1282370
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push 0x1760010
call fcn.01294390
mov ebx, dword [ebp + 0xc]
add esp, 4
test eax, eax
je 0x12823ab
push ebx
push str.fFormats0x_x_n
push str.int___cdecl_sharedClipboardWinAnnounceFormats_struct__SHCLWINCTX__unsigned_int_
push str._Rfn:__M
push 0x176
push 0x10
push eax
call fcn.012952b0
add esp, 0x1c
push esi
push edi
xor eax, eax
mov edi, ebx
xor ebx, ebx
mov dword [ebp - 4], eax
xor esi, esi
test edi, edi
je 0x128246c
test dword [esi + 0x12fcd28], edi
je 0x1282460
push 0x1760010
call fcn.01294390
add esp, 4
test eax, eax
je 0x1282402
push dword [esi + 0x12fcd34]
push 0x12c7b14
push str.int___cdecl_sharedClipboardWinAnnounceFormats_struct__SHCLWINCTX__unsigned_int_
push str._Rfn:__M
push 0x176
push 0x10
push eax
call fcn.012952b0
add esp, 0x1c
mov eax, dword [esi + 0x12fcd28]
not eax
and edi, eax
mov eax, dword [esi + 0x12fcd2c]
mov dword [ebp - 8], eax
test eax, eax
jne 0x128242c
push dword [esi + 0x12fcd30]
call dword [sym.imp.USER32.dll_RegisterClipboardFormatA]
mov dword [ebp - 8], eax
test eax, eax
je 0x128245d
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetClipboardData]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1282484
cmp dword [ebp - 8], 0
jne 0x1282484
push eax
call fcn.0128c1e0
add esp, 4
mov ebx, eax
mov eax, dword [ebp - 4]
add esi, 0x10
cmp esi, 0x30
jb 0x12823b8
test eax, eax
je 0x128248d
call dword [sym.imp.USER32.dll_GetClipboardOwner]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x28], eax
test ebx, ebx
jns 0x12824ce
neg ebx
jmp 0x12824ce
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
jmp 0x1282460
test ebx, ebx
js 0x12824ce
test edi, edi
je 0x12824ce
push 0x1760010
call fcn.01294390
add esp, 4
test eax, eax
je 0x12824c9
push dword [ebp + 0xc]
push edi
push str.Unsupported_formats:__x___x__n
push str.int___cdecl_sharedClipboardWinAnnounceFormats_struct__SHCLWINCTX__unsigned_int_
push str._Rfn:__M
push 0x176
push 0x10
push eax
call fcn.012952b0
add esp, 0x20
mov ebx, 0xffffffdb
push 0x1760002
call fcn.01294390
add esp, 4
pop edi
pop esi
test eax, eax
je 0x1282501
push ebx
push str.LEAVE:__Rrc_n
push str.int___cdecl_sharedClipboardWinAnnounceFormats_struct__SHCLWINCTX__unsigned_int_
push str._Rfn:__M
push 0x176
push 2
push eax
call fcn.012952b0
add esp, 0x1c
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1283810
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [ecx + 0x34]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
ret
Function at 0x1284cf0
Capabilities:
Hide graphical window

Disassembly:
push esi
push 0x8d0002
mov esi, ecx
call fcn.01294390
add esp, 4
test eax, eax
je 0x1284d30
push dword [esi + 0xa4]
push dword [esi + 0xa0]
push str.Resetting__old_mMode_ld__mState_ld_n
push str.void___thiscall_VBoxDnDWnd::Reset_void_
push esi
push str._p__Rfn:__M
push 0x8d
push 2
push eax
call fcn.012952b0
add esp, 0x24
push dword [esi + 0x4c]
push 0
push dword [esi + 0x48]
call fcn.01285f40
add esp, 0xc
cmp dword [esi + 0x4c], 0xa
je 0x1284d6c
cmp dword [esi + 0x50], 0xa
je 0x1284d6c
push str.D:_tinderbox_add_7.0includeiprt_cpp_list.h
push 0x28
push dword [esi + 0x48]
call fcn.012955a0
add esp, 0xc
test eax, eax
je 0x1284d6c
mov dword [esi + 0x48], eax
mov dword [esi + 0x50], 0xa
mov dword [esi + 0x4c], 0
push 0x8d0002
mov dword [esi + 0x58], 0
call fcn.01294390
add esp, 4
test eax, eax
je 0x1284db3
push 0
push dword [esi + 0xa0]
push str.Old_mode_ld__new_mode_ld_n
push str.int___thiscall_VBoxDnDWnd::setMode_enum_VBoxDnDWnd::Mode_
push esi
push str._p__Rfn:__M
push 0x8d
push 2
push eax
call fcn.012952b0
add esp, 0x24
push 0
push dword [esi + 0x34]
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 1
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x128a5e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.012712c0
mov eax, dword [0x12fceb0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 2
call fcn.01294390
add esp, 4
test eax, eax
je 0x128a625
push str.laDoAttach_n
push str.void___cdecl_laDoAttach_struct__VBOXLACONTEXT__
push str._Rfn:__M
push 0
push 2
push eax
call fcn.012952b0
add esp, 0x18
push 0x800
lea eax, [ebp - 0x804]
push eax
push edi
call fcn.0128ab40
add esp, 0xc
test eax, eax
je 0x128a6c6
push 0x800
lea eax, [ebp - 0x1004]
push eax
push edi
call fcn.0128a390
add esp, 0xc
test eax, eax
je 0x128a6c6
lea eax, [ebp - 0x1008]
push eax
push 2
push 0
lea eax, [ebp - 0x1004]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x128a6c6
push esi
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x804]
push eax
push 1
push 0
push str.CLIENTNAME
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x1008]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x128a6c6
call fcn.0128a580
lea eax, [edi + 0xc]
push eax
call fcn.0128a240
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
call fcn.01271180
mov esp, ebp
pop ebp
ret

Function at 0x128a6f0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 2
call fcn.01294390
add esp, 4
test eax, eax
je 0x128a71d
push str.laDoDetach_n
push str.void___cdecl_laDoDetach_struct__VBOXLACONTEXT__
push str._Rfn:__M
push 0
push 2
push eax
call fcn.012952b0
add esp, 0x18
add dword [ebp + 8], 0x14
pop ebp
jmp fcn.0128a240
Function at 0x128a880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
push 1
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x128a8fc
mov edi, dword [0x12fde48]
test edi, edi
je 0x128a8d3
push 0x10
mov ecx, edi
call dword [section..rdata]
call edi
add esp, 4
test eax, eax
je 0x128a8d3
push esi
push str.LA:_RegOpenKeyExW:_failed___ls__n
push 0
push 0x10
push eax
call fcn.012952d0
add esp, 0x14
push 0x10
call fcn.01294390
add esp, 4
test eax, eax
je 0x128a8f4
push esi
push str.LA:_RegOpenKeyExW:_failed___ls__n
push 0
push 0x10
push eax
call fcn.012952b0
add esp, 0x14
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push ebx
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 4
push eax
push 0
push edi
push dword [ebp - 4]
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x128a971
mov ebx, dword [0x12fde48]
test ebx, ebx
je 0x128a95a
push 0x10
mov ecx, ebx
call dword [section..rdata]
call ebx
add esp, 4
test eax, eax
je 0x128a95a
push edi
push esi
push str.LA:_RegQueryValueExW:_failed___ls__ls__n
push 0
push 0x10
push eax
call fcn.012952d0
add esp, 0x18
push 0x10
call fcn.01294390
add esp, 4
test eax, eax
je 0x128a9ce
push edi
push esi
push str.LA:_RegQueryValueExW:_failed___ls__ls__n
jmp 0x128a9c1
cmp dword [ebp - 8], 4
je 0x128a9e0
mov edi, dword [0x12fde48]
test edi, edi
je 0x128a9aa
push 0x10
mov ecx, edi
call dword [section..rdata]
call edi
add esp, 4
test eax, eax
je 0x128a9aa
push esi
push dword [ebp - 8]
push str.LA:_buffer_overflow_reg__d____ls__n
push 0
push 0x10
push eax
call fcn.012952d0
add esp, 0x18
push 0x10
call fcn.01294390
add esp, 4
test eax, eax
je 0x128a9ce
push esi
push dword [ebp - 8]
push str.LA:_buffer_overflow_reg__d____ls__n
push 0
push 0x10
push eax
call fcn.012952b0
add esp, 0x18
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0xc], 4
je 0x128aa51
mov ebx, dword [0x12fde48]
test ebx, ebx
je 0x128aa1a
push 0x10
mov ecx, ebx
call dword [section..rdata]
call ebx
add esp, 4
test eax, eax
je 0x128aa1a
push edi
push esi
push dword [ebp - 0xc]
push str.LA:_wrong_type__d____ls__ls__n
push 0
push 0x10
push eax
call fcn.012952d0
add esp, 0x1c
push 0x10
call fcn.01294390
add esp, 4
test eax, eax
je 0x128aa3f
push edi
push esi
push dword [ebp - 0xc]
push str.LA:_wrong_type__d____ls__ls__n
push 0
push 0x10
push eax
call fcn.012952b0
add esp, 0x1c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x128ab40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x12fceb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x804]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x800
push ecx
push eax
call fcn.0128a390
add esp, 0xc
test eax, eax
je 0x128ac44
lea eax, [ebp - 0x808]
push eax
push 1
push 0
lea eax, [ebp - 0x804]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x128abe0
push 2
call fcn.01294390
add esp, 4
test eax, eax
je 0x128ac44
lea ecx, [ebp - 0x804]
push ecx
push str.RegOpenKeyExW:_failed___ls__n
push str.int___cdecl_laGetUtcInfoClientName_struct__VBOXLACONTEXT__unsigned_short__unsigned_long_
push str._Rfn:__M
push 0
push 2
push eax
call fcn.012952b0
add esp, 0x1c
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01271180
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x80c]
push eax
push 0
lea eax, [ebp - 0x810]
push eax
push 0
push str.UTCINFO_CLIENTNAME
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x128ac56
push 2
call fcn.01294390
add esp, 4
test eax, eax
je 0x128ac38
lea ecx, [ebp - 0x804]
push ecx
push str.RegQueryValueExW:_failed___ls__n
push str.int___cdecl_laGetUtcInfoClientName_struct__VBOXLACONTEXT__unsigned_short__unsigned_long_
push str._Rfn:__M
push 0
push 2
push eax
call fcn.012952b0
add esp, 0x1c
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01271180
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
cmp dword [ebp - 0x80c], esi
jb 0x128ac9b
push 2
call fcn.01294390
add esp, 4
test eax, eax
je 0x128ac38
lea ecx, [ebp - 0x804]
push ecx
push esi
push dword [ebp - 0x80c]
push str.buffer_overflow_reg__d__buffer__d____ls__n
push str.int___cdecl_laGetUtcInfoClientName_struct__VBOXLACONTEXT__unsigned_short__unsigned_long_
push str._Rfn:__M
push 0
push 2
push eax
call fcn.012952b0
add esp, 0x24
jmp 0x128ac38
cmp dword [ebp - 0x810], 1
je 0x128ace0
push 2
call fcn.01294390
add esp, 4
test eax, eax
je 0x128ac38
lea ecx, [ebp - 0x804]
push ecx
push dword [ebp - 0x810]
push str.wrong_type__d____ls__n
push str.int___cdecl_laGetUtcInfoClientName_struct__VBOXLACONTEXT__unsigned_short__unsigned_long_
push str._Rfn:__M
push 0
push 2
push eax
call fcn.012952b0
add esp, 0x20
jmp 0x128ac38
push esi
push 0
push edi
call sym.VBoxTray.exe_nocrt_memset
add esp, 0xc
lea eax, [ebp - 0x80c]
push eax
push edi
push 0
push 0
push str.UTCINFO_CLIENTNAME
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x808]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x128ac44
mov ecx, dword [ebp - 4]
lea eax, [esi + 1]
pop edi
xor ecx, ebp
pop esi
call fcn.01271180
mov esp, ebp
pop ebp
ret
Function at 0x128da60
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x12fdd84], 0
push esi
mov esi, 0x1c
jne 0x128dae1
push 0
push 1
push 0
push 1
push 0x12fdd84
call fcn.0129a8b0
mov esi, eax
add esp, 0x14
test esi, esi
js 0x128dae1
call fcn.01295b10
mov esi, eax
test esi, esi
js 0x128dac9
push str.main
push 8
push 0
push 4
call fcn.0128d2c0
mov esi, eax
add esp, 0x10
test esi, esi
js 0x128dac9
push 4
call fcn.0128fca0
mov esi, eax
add esp, 4
test esi, esi
js 0x128dac9
mov byte [0x12fdd78], 1
xor eax, eax
pop esi
ret
push dword [0x12fdd84]
call fcn.0129a9d0
add esp, 4
mov dword [0x12fdd84], 0
mov eax, esi
pop esi
ret
Function at 0x1295a10
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [0x12fceb8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1295a2d
mov eax, 0xffffffe8
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push dword [ebp + 8]
call fcn.012958e0
add esp, 8
xor eax, eax
pop ebp
ret

Function at 0x1295a50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x44]
cmp ecx, 0xffffffff
jae 0x1295ac6
test ecx, ecx
je 0x1295a79
lea eax, [ecx + 0xffff]
and eax, 0xffff0000
cmp eax, ecx
jne 0x1295a79
add ecx, 0x1000
lea eax, [ebp - 4]
mov dword [esi + 0x20], 0xffffffff
push eax
push 0
push esi
push 0x12955d0
push ecx
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1295ab2
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 4]
pop esi
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0128c1e0
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffe
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1295ba0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
rdtsc
push 0
mov esi, eax
mov edi, edx
call dword [sym.imp.KERNEL32.dll_Sleep]
rdtsc
sub eax, esi
sbb edx, edi
pop edi
mov dword [ebp - 4], edx
pop esi
jne 0x1295bd0
cmp eax, 0x5dc
ja 0x1295bd0
xor al, al
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x1296110
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push esi
mov esi, dword [ebp + 8]
push dword [ebp + 0x10]
push eax
mov dword [esi], 0xffffffff
call fcn.01295f80
add esp, 8
test eax, eax
js 0x12961cc
cmp byte [ebp + 0x10], 0
mov ecx, 0x40000003
push edi
mov edi, dword [ebp - 4]
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 0
je 0x1296175
mov eax, dword [0x12fe2a0]
cmp eax, 0x69
jge 0x1296170
cmp eax, 0x68
jne 0x1296175
cmp word [0x12fe3bc], 2
jb 0x1296175
mov ecx, 0x40080003
lea eax, [ebp - 0x10]
push eax
push 0x7530
push 0x1000
push 0x1000
push 0xff
push 0
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
je 0x12961b1
mov dword [esi], eax
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0128c1e0
add esp, 4
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x12967c0
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 0x1000]
cmp eax, 0x2000
jb 0x129697a
cmp dword [esi], 0x19600201
jne 0x129697a
mov eax, dword [ebp + 0xc]
add eax, 0x1000
cmp eax, 0x2000
jb 0x1296970
push ebx
lea ebx, [esi + 8]
push ebx
call fcn.01295cc0
add esp, 4
test eax, eax
js 0x129696a
push edi
lea eax, [esi + 0x28]
lock inc dword [eax]
cmp byte [esi + 0x2c], 0
jne 0x129693a
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push ebx
call fcn.01295e60
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esi + 0x38]
push eax
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov dword [ebp - 4], eax
test eax, eax
je 0x1296852
xor edi, edi
jmp 0x1296893
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
jne 0x1296893
push 0xffffffffffffffff
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x38]
push eax
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [ebp - 4], eax
test eax, eax
je 0x129688b
xor edi, edi
jmp 0x1296893
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebx
call fcn.01295cc0
add esp, 4
cmp byte [esi + 0x2c], 0
jne 0x12968fe
cmp dword [esi], 0x19600201
jne 0x12968fe
cmp dword [ebp - 4], 0
jne 0x12968c5
cmp edi, 0x217
je 0x12968c5
push edi
call fcn.0128c1e0
add esp, 4
mov edi, eax
jmp 0x129693f
push 0
lea eax, [esi + 0x4c]
push eax
lea eax, [ebp - 8]
push eax
call fcn.01296110
mov ecx, dword [esi + 0x30]
add esp, 0xc
mov edi, eax
push ecx
test edi, edi
js 0x12968f6
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
mov dword [esi + 0x30], eax
call fcn.01296380
add esp, 8
mov edi, eax
jmp 0x129693f
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
jmp 0x129693f
cmp dword [ebp - 4], 0
jne 0x1296931
cmp edi, 0x217
je 0x1296931
cmp edi, 0x3e5
jne 0x129693a
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0xc0000365
push eax
push dword [esi + 0x30]
mov dword [ebp - 8], 0xffffffd5
call dword [sym.imp.ntdll.dll_NtCancelIoFile]
jmp 0x129693a
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edi, 0xffffffba
or eax, 0xffffffff
lea ecx, [esi + 0x28]
lock xadd dword [ecx], eax
dec eax
jne 0x129695e
push esi
call fcn.012961e0
add esp, 4
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push ebx
call fcn.01295e60
add esp, 4
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffa
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffc
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1296a00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [ebp + 8]
lea eax, [edi + 0x1000]
cmp eax, 0x2000
jb 0x1296bf0
cmp dword [edi], 0x19530414
jne 0x1296bf0
mov eax, dword [ebp + 0xc]
add eax, 0x1000
cmp eax, 0x2000
jb 0x1296be6
lea eax, [edi + 4]
push esi
push eax
call fcn.01295cc0
mov esi, eax
add esp, 4
test esi, esi
js 0x1296bde
lock inc dword [edi + 0x24]
cmp dword [edi + 0x30], 0
jne 0x1296bd0
push ebx
call fcn.01295a00
mov ebx, dword [ebp + 0x10]
xor ecx, ecx
mov dword [edi + 0x30], eax
mov dword [ebp - 4], ecx
test ebx, ebx
je 0x1296b85
jmp 0x1296a80
cmp byte [edi + 0x29], 0
mov dword [ebp - 8], 0
jne 0x1296b80
cmp byte [edi + 0x28], 0
jne 0x1296b30
push dword [edi + 0x48]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea esi, [edi + 4]
push esi
call fcn.01295e60
add esp, 4
lea ecx, [edi + 0x38]
cmp ebx, 0xffffffff
ja 0x1296abc
mov eax, ebx
jmp 0x1296abf
or eax, 0xffffffff
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp + 0xc]
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1296ae0
push esi
call fcn.01295cc0
add esp, 4
jmp 0x1296b1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1296bba
push 0xffffffffffffffff
push dword [edi + 0x48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call fcn.01295cc0
add esp, 4
lea eax, [ebp - 8]
push 1
push eax
lea eax, [edi + 0x38]
push eax
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1296b77
mov eax, dword [ebp - 8]
sub ebx, eax
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], eax
add ecx, eax
mov dword [ebp - 4], ecx
xor esi, esi
jmp 0x1296b6d
lea eax, [edi + 4]
push eax
call fcn.01295e60
add esp, 4
push 0xea60
push dword [edi + 0x48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
lea eax, [edi + 4]
push eax
call fcn.01295cc0
push esi
push edi
call fcn.01296480
mov ecx, dword [ebp - 4]
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x1296b6d
cmp esi, 0xffffffd8
jne 0x1296b85
test ebx, ebx
jne 0x1296a80
jmp 0x1296b85
cmp byte [edi + 0x29], 0
je 0x1296bba
mov ecx, dword [ebp - 4]
mov esi, 0xffffffba
mov eax, dword [ebp + 0x14]
pop ebx
test eax, eax
je 0x1296ba2
mov dword [eax], ecx
test esi, esi
jns 0x1296ba2
test ecx, ecx
je 0x1296ba2
xor eax, eax
cmp esi, 0xfffffffa
setne al
dec eax
and esi, eax
push edi
mov dword [edi + 0x30], 0
call fcn.01296230
add esp, 4
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0128c1e0
mov ecx, dword [ebp - 4]
add esp, 4
mov esi, eax
jmp 0x1296b85
push edi
mov esi, 0xffffffea
call fcn.01296230
add esp, 4
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffa
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffc
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1296c00
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
mov edi, dword [ebp + 8]
lea eax, [edi + 0x1000]
cmp eax, 0x2000
jb 0x1296df6
cmp dword [edi], 0x19530414
jne 0x1296df6
push ebx
push esi
call fcn.0129c980
lea ebx, [edi + 4]
mov dword [ebp - 0x14], eax
push ebx
mov dword [ebp - 0x18], edx
call fcn.01295cc0
mov esi, eax
add esp, 4
test esi, esi
js 0x1296ded
lea eax, [edi + 0x24]
lock inc dword [eax]
cmp dword [edi + 0x30], 0
jne 0x1296d8f
call fcn.01295a00
mov dword [edi + 0x30], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp byte [edi + 0x29], al
jne 0x1296d7c
or ebx, 0xffffffff
cmp byte [edi + 0x28], 0
mov dword [ebp - 8], ebx
je 0x1296c87
mov ebx, dword [edi + 0x48]
mov dword [ebp - 8], ebx
jmp 0x1296d21
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x1296caa
cmp dword [ebp - 0xc], 0
jne 0x1296d83
cmp dword [ebp + 0xc], 0
je 0x1296ddd
push dword [edi + 0x48]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [edi + 0x38]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [edi + 0x68]
push eax
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1296cf0
mov eax, dword [ebp - 4]
xor esi, esi
cmp eax, 0xa
jbe 0x1296d21
call fcn.01295ba0
jmp 0x1296d1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1296d09
mov ebx, dword [edi + 0x48]
mov byte [edi + 0x28], 1
mov dword [ebp - 8], ebx
jmp 0x1296d1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0128c1e0
add esp, 4
mov esi, eax
test esi, esi
js 0x1296d85
mov eax, dword [ebp - 4]
cmp dword [ebp + 0xc], 0xffffffff
jne 0x1296d2c
or ebx, 0xffffffff
jmp 0x1296d65
cmp ebx, 0xffffffff
jne 0x1296d36
cmp eax, 0xa
jbe 0x1296d6b
call fcn.0129c980
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
sbb edx, dword [ebp - 0x18]
test edx, edx
ja 0x1296d57
jb 0x1296d4e
cmp eax, ecx
ja 0x1296d57
mov ebx, ecx
sub ebx, eax
mov eax, dword [ebp - 4]
jmp 0x1296d65
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1296ddd
xor ebx, ebx
test ecx, ecx
setne bl
cmp dword [ebp - 8], 0xffffffff
jne 0x1296dae
inc eax
cmp byte [edi + 0x29], 0
mov dword [ebp - 4], eax
je 0x1296c70
lea ebx, [edi + 4]
mov esi, 0xffffffba
jmp 0x1296d88
xor esi, esi
lea ebx, [edi + 4]
mov dword [edi + 0x30], 0
or eax, 0xffffffff
lea ecx, [edi + 0x24]
lock xadd dword [ecx], eax
dec eax
jne 0x1296de4
push edi
call fcn.01296270
add esp, 4
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
lea eax, [edi + 4]
push eax
call fcn.01295e60
add esp, 4
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ebx, [edi + 4]
mov esi, eax
push ebx
call fcn.01295cc0
push esi
push edi
call fcn.01296480
add esp, 0xc
mov esi, eax
jmp 0x1296d88
mov esi, 0xffffffd8
jmp 0x1296d85
push ebx
call fcn.01295e60
add esp, 4
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffc
pop edi
mov esp, ebp
pop ebp
ret