joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1394810
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x153bfc6
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x15a16ec]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x15a16ec]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
push 0x180
xor esi, esi
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], esi
call fcn.01395010
mov edi, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x38], esi
mov ebx, 0x40
or dword [edi + 0x28], ebx
cmp dword [edi + 0x20], esi
jne 0x13948a6
push 0x130
call fcn.014c8a50
add esp, 4
mov dword [esp + 0x28], eax
mov byte [esp + 0x38], 1
cmp eax, esi
je 0x139489c
push eax
call fcn.013b3050
jmp 0x139489e
xor eax, eax
mov byte [esp + 0x38], 0
mov dword [edi + 0x20], eax
mov esi, dword [edi + 0x20]
lea esi, [esi + 0x44]
call fcn.01393ff0
push 0xffffffffffffffff
push 0
push ebp
mov ecx, eax
call fcn.01389870
or dword [edi + 0x28], ebx
cmp dword [edi + 0x20], 0
jne 0x13948f2
push 0x130
call fcn.014c8a50
add esp, 4
mov dword [esp + 0x28], eax
mov byte [esp + 0x38], 2
test eax, eax
je 0x13948e8
push eax
call fcn.013b3050
jmp 0x13948ea
xor eax, eax
mov byte [esp + 0x38], 0
mov dword [edi + 0x20], eax
mov esi, dword [edi + 0x20]
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x6c]
cmp eax, ecx
jge 0x139490d
mov edx, dword [esi + 0x64]
mov ecx, dword [edx + eax*4]
inc eax
mov dword [esi + 0x68], eax
mov esi, ecx
jmp 0x1394939
mov eax, dword [esi + 0x70]
cmp ecx, eax
jne 0x139491e
inc eax
push eax
lea eax, [esi + 0x64]
call fcn.01441990
mov ebx, 1
add dword [esi + 0x6c], ebx
call fcn.01395520
mov ecx, dword [esi + 0x68]
mov edx, dword [esi + 0x64]
mov dword [edx + ecx*4], eax
add dword [esi + 0x68], ebx
mov esi, eax
mov ebx, dword [esp + 0x24]
cmp ebx, esi
je 0x1394953
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
mov edx, ebx
mov ecx, esi
call fcn.013a1130
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x20], 0
call fcn.01394f30
test eax, eax
jne 0x139496d
xor al, al
jmp 0x1394993
mov ecx, dword [eax + 0x20]
test ecx, ecx
jne 0x139497d
mov ecx, dword [0x15bd70c]
mov ecx, dword [ecx + 0x20]
mov edx, dword [ecx + 0x18]
mov bl, byte [edx]
mov byte [esp + 0x38], 0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.014c8a41
add esp, 0x28
ret 8
Function at 0x1394b10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x153e378
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x15a16ec]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
mov eax, dword [0x15a16ec]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x48], eax
fldz
fstp qword [esp + 0x24]
mov dword [esp + 0xc], vtable.ipc::proto::Variable.0
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], eax
mov byte [esp + 0x18], al
mov dword [esp + 0x2c], 0x15a5620
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x58], eax
or eax, 1
or eax, 4
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x60]
push edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x68]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], 2
mov dword [esp + 0x28], eax
call fcn.01394810
lea ecx, [esp + 0xc]
mov bl, al
mov dword [esp + 0x58], 0xffffffff
call fcn.013a0640
mov al, bl
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.014c8a41
add esp, 0x54
ret 8

Function at 0x1394be0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x153e348
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x15a16ec]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
fldz
xor eax, eax
fstp qword [esp + 0x1c]
mov dword [esp + 4], vtable.ipc::proto::Variable.0
mov dword [esp + 8], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0xc], eax
mov byte [esp + 0x10], al
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 0x15a5620
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 4]
push eax
call fcn.013949c0
test al, al
jne 0x1394c78
lea ecx, [esp + 4]
mov dword [esp + 0x48], 0xffffffff
call fcn.013a0640
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
add esp, 0x48
ret
cmp dword [esp + 0xc], 2
jne 0x1394c55
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
lea ecx, [esp + 4]
mov dword [esi + 4], edx
mov dword [esp + 0x48], 0xffffffff
call fcn.013a0640
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
add esp, 0x48
ret
Function at 0x1394cb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x153e318
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
mov eax, dword [0x15a16ec]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
fldz
xor ebx, ebx
fstp qword [esp + 0x24]
mov dword [esp + 0xc], vtable.ipc::proto::Variable.0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x18], bl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], 0x15a5620
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x58], ebx
call fcn.013949c0
test al, al
jne 0x1394d4c
lea ecx, [esp + 0xc]
mov dword [esp + 0x54], 0xffffffff
call fcn.013a0640
xor al, al
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x50
ret 4
cmp dword [esp + 0x14], 4
jne 0x1394d26
mov ecx, dword [esp + 0x2c]
push 0xffffffffffffffff
push ebx
push ecx
mov ecx, dword [esp + 0x68]
call fcn.01389870
lea ecx, [esp + 0xc]
mov dword [esp + 0x54], 0xffffffff
call fcn.013a0640
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x50
ret 4

Function at 0x1394d90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x153e2e8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x15a16ec]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
mov eax, dword [0x15a16ec]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x44], eax
fldz
fstp qword [esp + 0x24]
mov dword [esp + 0xc], vtable.ipc::proto::Variable.0
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], 0x15a5620
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x58], eax
or eax, 1
or eax, 2
push edx
mov dword [esp + 0x44], eax
mov al, byte [ebp + 8]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], 1
mov byte [esp + 0x20], al
call fcn.01394810
lea ecx, [esp + 0xc]
mov bl, al
mov dword [esp + 0x58], 0xffffffff
call fcn.013a0640
mov al, bl
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.014c8a41
mov esp, ebp
pop ebp
ret 4
Function at 0x1394e60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x153e2b8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x15a16ec]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
fldz
xor eax, eax
fstp qword [esp + 0x1c]
mov dword [esp + 4], vtable.ipc::proto::Variable.0
mov dword [esp + 8], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0xc], eax
mov byte [esp + 0x10], al
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 0x15a5620
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 4]
push eax
call fcn.013949c0
test al, al
jne 0x1394efa
lea ecx, [esp + 4]
mov dword [esp + 0x4c], 0xffffffff
call fcn.013a0640
xor al, al
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
add esp, 0x4c
ret 4
cmp dword [esp + 0xc], 1
jne 0x1394ed5
mov cl, byte [esp + 0x10]
mov edx, dword [esp + 0x54]
mov byte [edx], cl
lea ecx, [esp + 4]
mov dword [esp + 0x4c], 0xffffffff
call fcn.013a0640
mov al, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
add esp, 0x4c
ret 4

Function at 0x13958d0
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x1535f38
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x15a16ec]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x2c]
xor esi, esi
push esi
push esi
push esi
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esp + 0x18], eax
lea ebp, [edi + 0x18]
mov dword [esp + 0x24], esi
push ebp
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x2c
mov byte [esp + 0x28], 1
call fcn.014c8a50
add esp, 4
cmp eax, esi
je 0x139595b
mov dword [eax], vtable.ipc::proto::Message.0
mov dword [eax + 4], esi
mov dword [eax + 0x24], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], esi
mov dword [eax + 0x18], esi
mov dword [eax + 0x1c], esi
mov dword [eax + 0x20], esi
mov dword [eax + 0x28], esi
jmp 0x139595d
xor eax, eax
mov byte [esp + 0x24], 2
or dword [eax + 0x28], 1
mov dword [eax + 8], 0x8000
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
mov dword [esp + 0x10], esi
lea esi, [esp + 0x14]
push esi
push eax
mov eax, dword [edx + 4]
call eax
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 4
Function at 0x13959d0
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x1535f38
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x15a16ec]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x2c]
xor esi, esi
push esi
push esi
push esi
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esp + 0x18], eax
lea ebp, [edi + 0x18]
mov dword [esp + 0x24], esi
push ebp
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x2c
mov byte [esp + 0x28], 1
call fcn.014c8a50
add esp, 4
cmp eax, esi
je 0x1395a5b
mov dword [eax], vtable.ipc::proto::Message.0
mov dword [eax + 4], esi
mov dword [eax + 0x24], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], esi
mov dword [eax + 0x18], esi
mov dword [eax + 0x1c], esi
mov dword [eax + 0x20], esi
mov dword [eax + 0x28], esi
jmp 0x1395a5d
xor eax, eax
mov byte [esp + 0x24], 2
or dword [eax + 0x28], 1
mov dword [eax + 8], 0x8001
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
mov dword [esp + 0x10], esi
lea esi, [esp + 0x14]
push esi
push eax
mov eax, dword [edx + 4]
call eax
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 4
Function at 0x1395fa0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x1535f03
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x15a16ec]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esi + 4], vtable.ipc::MessageQueue::Handler.0
mov eax, dword [esp + 0x2c]
mov dword [esi], vtable.ipc::MultiComponentHost::Host.0
mov dword [esi + 4], vtable.ipc::MultiComponentHost::Host.1.0
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], vtable.ipc::proto::ComponentInfo.0
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov ecx, 4
mov dword [esi + 0x40], ecx
lea edx, [esi + 0x44]
mov dword [esi + 0x34], edx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ecx
lea eax, [esi + 0x60]
mov dword [esi + 0x54], eax
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ecx
mov eax, 0x15a5620
lea edx, [esi + 0x7c]
mov dword [esi + 0x70], edx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], eax
mov dword [esi + 0x94], ebx
mov byte [esp + 0x20], cl
push 0x18
mov dword [esi + 0xa0], ebx
call fcn.014c8a50
add esp, 4
cmp eax, ebx
je 0x1396119
mov dword [esi + 0x9c], eax
mov dword [eax], eax
mov eax, dword [esi + 0x9c]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x9c]
mov dword [eax + 8], eax
mov ecx, dword [esi + 0x9c]
mov al, 1
mov byte [ecx + 0x14], al
mov edx, dword [esi + 0x9c]
mov byte [edx + 0x15], al
mov byte [esp + 0x20], 6
mov dword [esi + 0xa8], ebx
lea edi, [esi + 0xac]
push 8
mov dword [edi], ebx
call fcn.014c8a50
add esp, 4
cmp eax, ebx
je 0x13960ff
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [edi]
mov dword [eax], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], ebx
mov byte [esi + 0xcc], bl
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], vtable.stdext::bad_alloc.0
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 7
call fcn.01384df0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], vtable.stdext::bad_alloc.0
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 5
call fcn.01384df0
int3
Function at 0x13a3ac0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1534890
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x15a16ec]
xor eax, esp
mov dword [esp + 4], eax
push esi
push edi
mov eax, dword [0x15a16ec]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor edi, edi
mov esi, ecx
mov dword [esp + 0xc], edi
test byte [esi + 0x30], 1
jne 0x13a3b02
xor al, al
jmp 0x13a3b20
cmp dword [esi + 0x10], edi
jle 0x13a3b1e
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test al, al
je 0x13a3afe
inc edi
cmp edi, dword [esi + 0x10]
jl 0x13a3b07
mov al, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.014c8a41
add esp, 0x14
ret

Function at 0x13a7390
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x153ff69
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x15a16ec]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esi], vtable.ipc::proto::CandidateList.0
mov dword [esi + 4], eax
lea ecx, [esi + 0x1c]
mov dword [esi + 0x10], ecx
mov ecx, 4
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
lea edx, [esi + 0x3c]
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ecx
mov byte [esp + 0x10], 3
mov ecx, 1
mov dword [esi + 0x74], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], ecx
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x5c], 0xa
mov dword [esi + 0x78], eax
mov eax, dword [esp + 0x1c]
push eax
mov ecx, esi
call fcn.013a8a30
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 8
Function at 0x13bbbe0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x1541920
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x15a16ec]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x15a16ec]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [esp + 0x48]
mov ebp, dword [esp + 0x4c]
mov esi, ecx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esi + 0xa4]
mov dword [esp + 0x28], eax
xor ebx, ebx
mov dword [esp + 0x2c], ebx
push edx
lea eax, [esp + 0x24]
mov dword [esp + 0x38], esi
mov dword [esp + 0x24], 0x24
call fcn.013986e0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
lea edi, [esp + 0x28]
mov dword [esp + 0x28], ebx
call fcn.01398b20
add esp, 0xc
cmp dword [esp + 0x1c], ebx
lea ebx, [esp + 0x1c]
lea eax, [esp + 0x20]
lea ecx, [ebp + 0xc]
setbe byte [esp + 0x1b]
mov dword [esp + 0x1c], esi
call fcn.013ce230
mov eax, dword [esp + 0x20]
cmp eax, dword [ebp + 0x10]
je 0x13bbc95
mov eax, dword [eax + 0x10]
mov dword [esp + 0x1c], eax
jmp 0x13bbc9d
mov dword [esp + 0x1c], 0
lea ebx, [esp + 0x20]
lea eax, [esp + 0x28]
lea ecx, [ebp + 0xc]
mov dword [esp + 0x20], esi
call fcn.013ce230
mov eax, dword [esp + 0x28]
cmp eax, dword [ebp + 0x10]
je 0x13bbcbf
mov al, byte [eax + 0x14]
jmp 0x13bbcc1
xor al, al
mov edi, dword [esp + 0x1c]
cmp edi, 3
je 0x13bbcf8
cmp edi, 4
je 0x13bbcf8
cmp edi, 5
je 0x13bbcf8
cmp byte [esp + 0x1b], 0
je 0x13bbce9
cmp byte [esp + 0x54], 0
jne 0x13bbcf8
xor eax, eax
jmp 0x13bbd91
xor ecx, ecx
cmp dword [esp + 0x50], 4
sete cl
inc ecx
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x24]
push edx
push esi
push ecx
mov ecx, ebp
call fcn.013bb5a0
test al, al
je 0x13bbce2
cmp byte [esp + 0x1b], 0
jne 0x13bbd8d
test edi, edi
jne 0x13bbd8d
mov eax, dword [ebp]
mov esi, dword [esi + 0x74]
push eax
push esi
push 0x24
call fcn.013bc010
mov edi, eax
or dword [edi + 0x28], 2
mov ebx, 1
add esp, 0xc
mov esi, edi
mov dword [edi + 0xc], ebx
call fcn.01391160
mov esi, eax
call fcn.0139bd70
mov edx, dword [ebp]
or dword [eax + 0x14], ebx
mov ecx, dword [eax + 0x14]
mov dword [eax + 8], edx
mov edx, dword [ebp + 4]
mov edx, dword [edx + 0x74]
or ecx, 2
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0xc], edx
test ecx, ecx
je 0x13bbd6f
lea eax, [ecx + 4]
jmp 0x13bbd71
xor eax, eax
mov edx, dword [ecx]
push edi
push eax
mov eax, dword [edx + 0xc]
call eax
test al, al
jne 0x13bbd8d
mov ecx, dword [esp + 0x30]
push ecx
push ebp
call fcn.013cc060
xor eax, eax
jmp 0x13bbd91
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.014c8a41
add esp, 0x30
ret 0x10
Function at 0x13be0d0
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x170
push ebx
push ebp
push esi
push edi
mov esi, ecx
push esi
mov dword [esp + 0x18], 0
call fcn.013be210
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x13be109
mov eax, dword [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [esi + 0x28]
push ecx
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebp, 0xffffffff
jne 0x13be12f
push esi
call fcn.013be210
mov ebp, eax
lea eax, [esi + 4]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
call ebx
cmp eax, 0x217
jne 0x13be197
mov edx, dword [esi + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x28], 0
push 2
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x13be1c4
cmp eax, 1
jne 0x13be1c2
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 0x48]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
or ebp, 0xffffffff
jmp 0x13be122
cmp eax, 0x3e5
je 0x13be14d
test byte [esp + 0x14], 2
je 0x13be1b3
and dword [esp + 0x14], 0xfffffffd
lea edi, [esp + 0x20]
call fcn.013862d0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or ebp, 0xffffffff
jmp 0x13be122
call ebx
cmp ebp, 0xffffffff
je 0x13be1fc
push ebp
call dword [sym.imp.KERNEL32.dll_CancelIo]
test eax, eax
jne 0x13be1f5
call ebx
cmp eax, 0x490
je 0x13be1f5
test byte [esp + 0x14], 1
je 0x13be1f5
and dword [esp + 0x14], 0xfffffffe
lea edi, [esp + 0xd0]
call fcn.013862d0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [esi + 0x24], 0
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x13be210
Capabilities:
Create pipe

Disassembly:
sub esp, 0x14
xor eax, eax
mov dword [esp + 4], 0
push esi
mov dword [esp + 0x14], eax
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x14], 0xc
call fcn.01399f60
add esp, 8
test al, al
jne 0x13be24e
or eax, 0xffffffff
pop esi
add esp, 0x14
ret 4
mov eax, dword [esp + 0x1c]
add eax, 0x2c
cmp dword [eax + 0x14], 8
jb 0x13be25d
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push ecx
push 0x3e8
push 0x1000
push 0x1000
push 0xff
push 0
push 0x40000003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x13be295
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, 0xffffffff
jne 0x13be2a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
pop esi
add esp, 0x14
ret 4