joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428a4d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44db90]
jne 0x428a57
repz ret
jmp fcn.0042fd35

Function at 0x439b0c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44db90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00430ca2
and dword [ebp - 0x14], 0
cmp dword [0x4505c8], 0
mov dword [ebp - 0x18], eax
jne 0x439bbf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x439c67
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x444a04
push ebx
call edi
test eax, eax
je 0x439c67
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4505c8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4505cc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4505d0], eax
call edi
push eax
call esi
mov dword [0x4505d8], eax
test eax, eax
je 0x439bbf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4505d4], eax
mov eax, dword [0x4505d4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x439c18
cmp dword [0x4505d8], ecx
je 0x439c18
push eax
call esi
push dword [0x4505d8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x439c18
test ebx, ebx
je 0x439c18
call edi
test eax, eax
je 0x439c0f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x439c0f
test byte [ebp - 8], 1
jne 0x439c18
or dword [ebp + 0x10], 0x200000
jmp 0x439c4b
mov eax, dword [0x4505cc]
cmp eax, dword [ebp - 0x18]
je 0x439c4b
push eax
call esi
test eax, eax
je 0x439c4b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x439c4b
mov eax, dword [0x4505d0]
cmp eax, dword [ebp - 0x18]
je 0x439c4b
push eax
call esi
test eax, eax
je 0x439c4b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4505c8]
call esi
test eax, eax
je 0x439c67
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x439c69
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428a4d
leave
ret
Function at 0x50001457
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
sub esp, 0x30
mov dword [esp + 0x28], edx
mov dword [esp], ecx
or al, 0x24

Function at 0x50001570
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov ecx, dword [0x5009f0c9]
call fcn.500012c7
mov dword [esp], eax
push dword [0x5009f0b1]
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov edi, eax
mov edx, dword [0x5009f0b1]
mov ecx, eax
call fcn.50001187
push 0x104
push edi
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
xor ecx, ecx
dec ecx
mov eax, dword [str.urticaria.yml]
cmp word [edi + ecx*2 + 2], 0
lea ecx, [ecx + 1]
jne 0x500015b8
cmp word [edi + ecx*2 - 2], 0x5c

Function at 0x500015e0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov word [edi + ecx*2], 0
lea edx, [ecx - 1]
cmp word [edi + ecx*2 - 4], 0x5c
mov ecx, edx
jne 0x500015cf
mov cl, byte [eax]
test cl, cl
je 0x500015fd
lea edx, [edi + edx*2]
xor esi, esi
movsx ecx, cl
mov word [edx + esi*2], cx
mov cl, byte [eax + esi + 1]
inc esi
test cl, cl
jne 0x500015ed
xor esi, esi
xor eax, eax
inc eax
push esi
push 0x80
push 3
push esi
push eax
push eax
push edi
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x50001780
mov edi, eax
push esi
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebp, eax
push 4
push 0x1000
push dword [0x5009f0d5]
push esi
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov ebx, eax
lea eax, [esp + 0x14]
mov dword [eax], esi
push esi
push eax
push ebp
push ebx
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x50001780
mov ebp, dword [esp + 0x14]
add ebp, ebx
mov edx, dword [0x5009f0a5]
lea esi, [ebx + edx]
mov eax, dword [ebx + edx]
test eax, eax
je 0x5000167e
mov ecx, dword [ebx + edx + 4]
lea edx, [edx + ebx + 8]
add dword [edx], ecx
add edx, 4
dec eax
jne 0x50001676
mov ebx, dword [0x5009f0a1]
lea edx, [esi + ebx + 1]
mov ecx, dword [esp]
call fcn.50001457
test eax, eax
je 0x50001780
mov edi, eax
add esi, ebx
movsx ebx, byte [esi]
lea edx, [esi + ebx + 1]
mov ecx, dword [esp]
call fcn.50001457
mov dword [esp], eax
test eax, eax

Function at 0x50001798
Capabilities:
Get file size
Move file
Read file on windows

Disassembly:
adc byte [ebx + eax*2 + 0x6c], dl
popal
jae 0x50001812
dec eax
insb byte es:[edi], dx
jo 0x50001809
jb 0x500017e8
popal
jae 0x5000180e
lea eax, [eax]
mov al, 0x17
add byte [eax + 7], dl
pop es
Function at 0x500017b0
Capabilities:
Get file size
Move file

Disassembly:
pop es
adc byte [ebx + eax*2 + 0x6c], dl
popal
jae 0x5000182b
dec eax
insb byte es:[edi], dx
jo 0x50001822
jb 0x50001801
popal
jae 0x50001827
cwde
pop ss
add byte [eax + 0x44], dl
adc eax, 0x5000
push es
push ebx
jns 0x50001843
je 0x50001837
insd dword es:[edi], dx
add byte [eax], al
lea eax, [eax]
fcom qword [edi]
add byte [eax + 1], dl
add dword [eax], ecx
push ebp
inc ebx
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ebx], al
add byte [eax], al
add al, bl
pop ss
push ebx
je 0x50001897
imul ebp, dword [esi + 0x67], 0xc08bfde9
xor byte [eax], bl
sal byte [eax], 0x18
add byte [eax + 0xa], dl
or eax, 0x42776152
je 0x5000189e
push ebx
outsb dx, byte [esi]
imul edx, dword [ebx + 0x74], 0x61

Function at 0x500017f4
Capabilities:
Get file size
Move file

Disassembly:
adc dword [edx], ecx
push ebp
inc ebx
push ebx
xor al, 0x53
je 0x5000186f
imul ebp, dword [esi + 0x67], 4
add byte [eax], al
add byte [eax], al
add eax, dword [eax]
add byte [eax], al
fcom dword [edi]
add byte [eax + 6], dl
push ebx
jns 0x50001887
je 0x5000187b
insd dword es:[edi], dx
nop
sbb al, 0x18
add byte [eax + 0xa], dl
or cl, byte [edx]
push ebp
push esp
push eax
add dword [eax + 0x4500018], eax
add eax, 0x74614454

Function at 0x50001830
Capabilities:
Get file size
Move file

Disassembly:
or cl, byte [0x42776152]
jns 0x500018ac
push ebx
je 0x500018ae
imul ebp, dword [esi + 0x67], 0x408dffff
add byte [eax + 0x18], cl
add byte [eax + 0x11], dl
adc dword [ebx], ecx
push esp
inc edx
outsd dx, dword [esi]
add byte [eax], al
add byte [eax + ebx + 0x630d5000], dl
jae 0x5000190c
outsb dx, byte [esi]

Function at 0x50001848
Capabilities:
Get file size
Move file

Disassembly:
adc dword [ebx], ecx
push esp
inc edx
outsd dx, dword [esi]
jne 0x500018bd
inc ecx
jb 0x500018c5
popal
jns 0x5000185a
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ebx], al
add byte [eax], al
add byte [eax + edx + 0x53065000], al
jns 0x500018dc
je 0x500018d0
insd dword es:[edi], dx
jo 0x50001886
add byte [eax + 4], dl
or dword [esp + eax*2 + 0x61], edx
add dword gs:[eax + ebx + 0x5045000], ecx
popal
je 0x50001925
or esp, dword fs:[ebx + 0x73]

Function at 0x50001870
Capabilities:
Get file size
Move file

Disassembly:
add al, 9
push esp
inc esp
popal
je 0x500018dc
push esp
imul ebp, dword [ebp + 0x65], 0x188001
push eax

Function at 0x50001880
Capabilities:
Get file size
Move file

Disassembly:
add al, 5
push esp
inc esp
popal
je 0x500018ec
add dword [eax + ebx + 0x5045000], ecx

Function at 0x5000188c
Capabilities:
Get file size
Move file

Disassembly:
add al, 5
push esp
push esp
imul ebp, dword [ebp + 0x65], 0x189801
push eax
Function at 0x5000472c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call sym.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
test esi, esi
jne 0x50004764
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call sym.rtl120.bpl__System__UStrFromPWCharLen_qqrr20System_UnicodeStringpbi
jmp 0x50004782
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.50004610
mov edi, eax
test esi, esi
je 0x50004782
cmp dword [ebx], 0
je 0x50004782
dec esi
jmp 0x5000476b
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x5000480c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + sym.rtl120.bpl__System_RandSeed], 0x8088405
inc edx
mov dword [ebx + sym.rtl120.bpl__System_RandSeed], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x50004828
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + sym.rtl120.bpl__System_RandSeed], 0x8088405
inc edx
mov dword [ebx + sym.rtl120.bpl__System_RandSeed], edx
fld qword [ebx + 0x5009c7d8]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x50005c08
Capabilities:
Clear file content

Disassembly:
movzx edx, word [eax + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x50005c26
push dword [eax]
call sub.kernel32.dll_SetEndOfFile
dec eax
je 0x50005c30
jmp fcn.50004244
mov eax, 0x67
jmp sym.rtl120.bpl__System_SetInOutRes_qqri
ret

Function at 0x50005d18
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x50005d4b
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x50005d52
cmp edx, dword [ebx + 8]
je 0x50005d5c
mov eax, 0x65
jmp 0x50005d57
mov eax, 5
jmp 0x50005d57
call sub.kernel32.dll_GetLastError
call sym.rtl120.bpl__System_SetInOutRes_qqri
mov eax, ebx
pop ebx
ret

Function at 0x500069b4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [sym.rtl120.bpl__System_Default8087CW]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x50006a4c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x50006a2c
xor eax, eax
push ebp
push 0x50006a25
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x50006a84
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50006a2c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [sym.rtl120.bpl__System_Default8087CW]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [sym.rtl120.bpl__System_Default8087CW], ax
mov esp, ebp
pop ebp
ret
Function at 0x414569
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x439604
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00439483

Function at 0x43da0b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043d379

Function at 0x43da16
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043d5b4
Function at 0x449910
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f19c
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x46a084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], 0
xor ecx, ecx
mov eax, 0x105
mov dword [ebp - 0x34], edi
mov edx, 2
mov dword [ebp - 0x2c], 0
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00411f06
add esp, 4
mov esi, eax
xor eax, eax
push esi
push 0x105
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [esi], ax
jne 0x4499ac
xor ecx, ecx
jmp 0x4499c0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4499b1
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00403120
mov dword [ebp - 4], 1
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.0044a390
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4499fb
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004039b0
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00411f01
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411793
mov esp, ebp
pop ebp
ret
Function at 0x44a4f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f441
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x46a084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x6c], edi
push 0x105
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x5c], 0
call fcn.0040c300
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x64]
mov esi, dword [ebp - 0x68]
sub eax, esi
sar eax, 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x44a5c1
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [esi], ax
jne 0x44a57f
xor ecx, ecx
jmp 0x44a593
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44a584
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00403120
mov byte [ebp - 4], 2
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x5c], 1
call fcn.0044a390
mov dword [ebp - 4], 3
mov ebx, 3
jmp 0x44a5ff
push 0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0
push 0x460077
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00403340
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 4
mov ebx, 4
push eax
mov ecx, edi
mov dword [ebp - 0x5c], ebx
call fcn.00402f10
or ebx, 8
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 4], 3
test bl, 4
je 0x44a62a
and ebx, 0xfffffffb
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x5c], ebx
call fcn.00402e70
mov dword [ebp - 4], 2
test bl, 2
je 0x44a644
and ebx, 0xfffffffd
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x5c], ebx
call fcn.00402e70
mov dword [ebp - 4], 1
test bl, 1
je 0x44a67f
and ebx, 0xfffffffe
mov dword [ebp - 0x5c], ebx
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x44a66b
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004039b0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.0040c600
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411793
mov esp, ebp
pop ebp
ret
Function at 0x44b2e0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f56c
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x46a084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
lea ecx, [ebp - 0x28]
push 0xffffffffffffffff
call fcn.00449b70
add esp, 4
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x44b327
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x44b34c
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004039b0
xor eax, eax
mov dword [ebp - 0x14], 7
cmp esi, 0xffffffff
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], 0
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411793
mov esp, ebp
pop ebp
ret
Function at 0x44b3b0
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f5b0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x46a084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x28], 0
jne 0x44b5bc
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x44b48b
cmp dword [esi + 0x24], 0xffffffff
je 0x44b48b
push eax
push eax
push 1
vpxor xmm0, xmm0, xmm0
push eax
vmovdqu xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x44b46a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x44b466
cmp eax, 0x3e5
jne 0x44b46a
push 0x4e20
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x44b466
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
setne al
mov byte [esi + 0x28], al
mov byte [esi + 0x28], 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 0x28], 0
jne 0x44b5bc
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_CancelIo]
jmp 0x44b5bc
cmp eax, 1
jne 0x44b5bc
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop word [eax + eax]
push 9
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0
push str..pipe_
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00403340
mov dword [ebp - 4], 0
lea eax, [esi + 4]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
call fcn.004036a0
push 0xffffffffffffffff
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00449b70
add esp, 4
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x20]
mov eax, ecx
and eax, 1
shl eax, 0x1f
push 0
mov edx, eax
push 0
or edx, 0x40000000
and cl, 2
push 3
cmove edx, eax
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push 0
cmovae eax, dword [ebp - 0x28]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x24], eax
cmp eax, 0xffffffff
jne 0x44b59d
call edi
cmp eax, 0xe7
jne 0x44b5a1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x4e20
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x44b5a1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x44b575
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004039b0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402e70
jmp 0x44b4a0
mov byte [esi + 0x28], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00402d50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402e70
mov al, byte [esi + 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411793
mov esp, ebp
pop ebp
ret
Function at 0x44b5f0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f5e5
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x46a084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
je 0x44b63a
cmp byte [esi + 0x28], 0
je 0x44b631
push eax
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 9
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
push 0x460588
mov dword [esi + 0x24], 0xffffffff
mov byte [esi + 0x28], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00403340
mov dword [ebp - 4], 0
lea eax, [esi + 4]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.004036a0
mov ecx, dword [esi + 0x20]
mov eax, ecx
and eax, 1
mov edi, eax
or edi, 2
and cl, 2
cmove edi, eax
cmp dword [esi + 0x1c], 0
jne 0x44b713
push 0xffffffffffffffff
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.00449b70
add esp, 4
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x44b6c0
mov eax, dword [eax]
push 0
push 0
push 0x8000
push 0x8000
push 0xff
push 0
or edi, 0x40000000
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x44b6ff
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004039b0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402e70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411793
mov esp, ebp
pop ebp
ret