joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a1c
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x27], 0xef
test dl, dl
je 0x405a28
or byte [eax + 0x27], 0x10
mov ecx, dword [eax + 0x1c]
jecxz 0x405a41
push eax
je 0x405a42
call dword [0x409100]
pop eax
push 5
push dword [eax + 0x1c]
call sub.user32.dll_ShowWindow
ret
and byte [eax + 0x37], 0xfe
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x409100]
ret

Function at 0x406498
Capabilities:
Get file attributes

Disassembly:
call fcn.00403fcc
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x4064ac
dec eax
and al, 0x10
sete al
ret

Function at 0x4076a4
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x58
call fcn.00402998
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret
Function at 0x4042d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
cmc
fcmovb st(0), st(6)
inc ebp
neg dl

Function at 0x404300
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cmc
fcmovb st(0), st(6)
inc ebp
neg dl
mov byte [ebp - 9], 0xbf
call fcn.00403f72
push eax
push esi
push dword [ebp + 8]
call fcn.00403f27
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00403f72
push eax
push esi
push dword [ebp + 8]
call fcn.00403f27
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
inc ebp
fsub dword [edi - 0x3a]
inc ebp
fld dword [esi + eax*8 + 0x45]
fimul dword [edx - 0x3a]
inc ebp
fisttp dword [edi - 0x3a]
inc ebp
fsub qword [edi - 0x3a]
inc ebp
fld qword [edx - 0x3a]
inc ebp
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x4043fd
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00403f72
push eax
push esi
push dword [ebp + 8]
call fcn.00403f27
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00403f62
mov dl, 0x2c
mov gs, ebx
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.00403f62
sub eax, 0x8df0cc7c
test dword [edi + edi*8 - 1], edi
call dword [eax - 0x18]
sbb al, 0xfb
invalid
Function at 0x404390
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cmc
fcmovb st(0), st(6)
inc ebp
neg dl
mov byte [ebp - 9], 0xbf
call fcn.00403f72
push eax
push esi
push dword [ebp + 8]
call fcn.00403f27
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00403f72
push eax
push esi
push dword [ebp + 8]
call fcn.00403f27
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
inc ebp
fsub dword [edi - 0x3a]
inc ebp
fld dword [esi + eax*8 + 0x45]
fimul dword [edx - 0x3a]
inc ebp
fisttp dword [edi - 0x3a]
inc ebp
fsub qword [edi - 0x3a]
inc ebp
fld qword [edx - 0x3a]
inc ebp
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x4043fd
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00403f72
push eax
push esi
push dword [ebp + 8]
call fcn.00403f27
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00403f62
mov dl, 0x2c
mov gs, ebx
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.00403f62
sub eax, 0x8df0cc7c
test dword [edi + edi*8 - 1], edi
call dword [eax - 0x18]
sbb al, 0xfb
invalid
Function at 0x404c60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
lea eax, [ebp - 0x6b8]
push eax
call fcn.00403f72
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00403f27
add esp, 0xc
mov dword [ebp - 0x690], eax
mov byte [ebp - 0x6a0], 0x8b
or byte [ebp - 0x69f], 0xff
mov byte [ebp - 0x69e], 0x55
mov byte [ebp - 0x69d], 0x8b
mov byte [ebp - 0x69c], 0xec
lea eax, [ebp - 0x694]
push eax
push 5
lea eax, [ebp - 0x6a0]
push eax
push dword [ebp - 0x33c]
push 0xffffffffffffffff
call dword [ebp - 0x690]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6bc], eax
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x698], eax
invalid
stc
invalid

Function at 0x404e60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
invalid

Function at 0x404ea0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.00403f72
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00403f27
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.00403f62
in eax, 0xb
mov edi, 0x1046866
add byte [eax], al
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.00403f62
iretd
Function at 0x4013e0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10004
call fcn.00402300
mov eax, dword [0x413100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4141f8]
push esi
mov esi, dword [ebp + 8]
test al, 1
jne 0x40142d
push str.AddDllDirectory
or eax, 1
push str.kernel32.dll
mov dword [0x4141f8], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4141f4], eax
mov eax, dword [0x4141f8]
test al, 2
jne 0x401455
push str.SetDefaultDllDirectories
or eax, 2
push str.kernel32.dll
mov dword [0x4141f8], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4141fc], eax
call fcn.004014f0
test al, al
je 0x40147f
push esi
call dword [0x4141f4]
push 0xc00
call dword [0x4141fc]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004022e3
mov esp, ebp
pop ebp
ret
push 0x7fff
lea eax, [ebp - 0x10004]
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0x40e2b0
lea eax, [ebp - 0x10004]
push 0x7fff
push eax
call fcn.0040225b
push esi
lea eax, [ebp - 0x10004]
push 0x7fff
push eax
call fcn.0040225b
add esp, 0x18
lea eax, [ebp - 0x10004]
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004022e3
mov esp, ebp
pop ebp
ret
Function at 0x40860a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x413100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [section..data]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00404007
mov dword [ebp - 0x14], eax
cmp dword [0x414f50], esi
jne 0x4086fd
push 0x800
push esi
push 0x40f97c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40868a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4087dd
push esi
push esi
push 0x40f97c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4087dd
push 0x40f994
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4087dd
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x414f50], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x414f54], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x414f58], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x414f60], eax
test eax, eax
je 0x4086fa
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x414f5c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x408722
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x408715
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x408737
push 4
pop eax
jmp 0x4087df
cmp dword [ebp - 0x14], esi
je 0x408737
push dword [0x414f50]
call dword [0x413004]
push 3
jmp 0x40871c
mov eax, dword [0x414f5c]
mov ebx, dword [0x413004]
cmp eax, edi
je 0x408795
cmp dword [0x414f60], edi
je 0x408795
push eax
call ebx
push dword [0x414f60]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x408795
test eax, eax
je 0x408795
call ecx
test eax, eax
je 0x40878a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40878a
test byte [ebp - 8], 1
jne 0x408795
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4087c5
mov eax, dword [0x414f54]
cmp eax, edi
je 0x4087c2
push eax
call ebx
test eax, eax
je 0x4087c2
call eax
mov esi, eax
test esi, esi
je 0x4087c2
mov eax, dword [0x414f58]
cmp eax, edi
je 0x4087c2
push eax
call ebx
test eax, eax
je 0x4087c2
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x414f50]
call ebx
test eax, eax
je 0x4087dd
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4087df
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004022e3
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call fcn.00401066
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
movzx eax, byte [eax]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408f6c
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x99b0e8d
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
nop
nop
mov dword [eax - 0x3ed66f70], edx
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x4d020176
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x409130
push dword [ebp + 0xc]
mov esi, eax
call fcn.004019ed
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x40103a
push dword [ebp + 0xc]
push str.LogServ
push str._s:_cant_open_file__s_n
call fcn.0040192b
add esp, 0xc
or eax, 0xffffffff
jmp 0x4010c7
lea eax, [esi + 0x18]
push edi
push eax
call fcn.004018a0
mov edi, 0xe8
sub edi, eax
test byte [ebx + 0xc], 0x10
pop ecx
jne 0x4010bb
lea eax, [eax + esi + 0x18]
mov dword [ebp - 4], eax
push ebx
push edi
push dword [ebp - 4]
call fcn.00401818
add esp, 0xc
test eax, eax
je 0x4010af
lea eax, [esi + 0x18]
push eax
call fcn.004018a0
lea eax, [eax + esi + 0x17]
cmp byte [eax], 0xa
pop ecx
jne 0x401080
mov byte [eax], 0
push 0
push 0x40c064
push 8
lea eax, [esi + 0x18]
push 0x40c080
push eax
call fcn.004018a0
pop ecx
add eax, 0x19
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
jne 0x4010b5
or esi, 0xffffffff
jmp 0x4010bd
test byte [ebx + 0xc], 0x20
jne 0x4010aa
test byte [ebx + 0xc], 0x10
je 0x401059
xor esi, esi
push ebx
call fcn.004017c7
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4011c3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x40b040]
mov dword [ebp - 4], eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push eax
call fcn.00401bc7
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x401203
lea eax, [ebp - 0x404]
push eax
push str.ERROR:__s_n_n
call fcn.0040192b
pop ecx
pop ecx
cmp dword [ebp + 8], 0
je 0x401211
push dword [ebp + 8]
call fcn.00401b87
mov ecx, dword [ebp - 4]
call fcn.00401c4f
leave
ret
Function at 0x40155f
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x18]
push 0xffffffffffffffff
push str.No_originating_module_specified
push str.module
push edi
push ebp
push 0x40
pop ebx
mov esi, 0x40c2a4
call fcn.0040121b
add esp, 0xc
push eax
call fcn.00401196
push str.topic
push edi
push ebp
push 0x10
pop ebx
mov esi, 0x40c2e4
call fcn.0040121b
add esp, 0x18
push 0xffffffffffffffff
push str.No_output_message_specified
push str.msg
push edi
push ebp
mov ebx, 0xc0
mov esi, 0x40c2f8
call fcn.0040121b
add esp, 0xc
push eax
call fcn.00401196
push str.comp
push edi
push ebp
push 0x10
pop ebx
mov esi, 0x40c280
call fcn.0040121b
add esp, 0x18
test eax, eax
jne 0x4015f4
push 0x409564
push esi
call fcn.00401f20
pop ecx
pop ecx
push str.flg
push edi
push ebp
push 4
pop ebx
mov esi, 0x40c290
call fcn.0040121b
add esp, 0xc
test eax, eax
mov ebx, 0x409558
jne 0x40161d
push ebx
push esi
call fcn.00401f20
pop ecx
pop ecx
push 0x409554
push esi
call fcn.0040888e
test eax, eax
pop ecx
pop ecx
jne 0x40163d
mov dword [0x40c2f4], 1
jmp 0x4016c2
push 0x409550
push esi
call fcn.0040888e
test eax, eax
pop ecx
pop ecx
jne 0x40165a
mov dword [0x40c2f4], 2
jmp 0x4016c2
push 0x40954c
push esi
call fcn.0040888e
test eax, eax
pop ecx
pop ecx
jne 0x401677
mov dword [0x40c2f4], 4
jmp 0x4016c2
push ebx
push esi
call fcn.0040888e
test eax, eax
pop ecx
pop ecx
jne 0x401690
mov dword [0x40c2f4], 8
jmp 0x4016c2
push 0x409548
push esi
call fcn.0040888e
test eax, eax
pop ecx
pop ecx
jne 0x4016ad
mov dword [0x40c2f4], 0x10
jmp 0x4016c2
call fcn.004010cb
push esi
push str.Illegal_flag___s__specified
push 0xffffffffffffffff
call fcn.004011c3
add esp, 0xc
push str.always
push edi
push ebp
call fcn.00401284
add esp, 0xc
test eax, eax
je 0x4016dc
or byte [0x40c2f6], 1
push 0x40c280
push str._spipeMrsMessageReporterIPC
mov esi, 0x40c180
push esi
mov word [0x40c2a0], 0x40
mov word [0x40c2a2], 0x21
call fcn.00402018
add esp, 0xc
push 0x3e8
push 0x40c064
push 8
push 0x40c080
push 0x40c2f8
call fcn.004018a0
pop ecx
add eax, 0x59
push eax
push 0x40c2a0
push esi
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x401ac4
Capabilities:
Terminate process

Disassembly:
push 8
push 0x409678
call fcn.00402700
push 8
call fcn.004036d2
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x40bc04], esi
jne 0x401af8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x40bc00], esi
mov al, byte [ebp + 0x10]
mov byte [0x40bbfc], al
cmp dword [ebp + 0xc], edi
jne 0x401b42
cmp dword [0x40d850], edi
je 0x401b32
mov eax, dword [0x40d84c]
sub eax, 4
mov dword [0x40d84c], eax
cmp eax, dword [0x40d850]
jb 0x401b32
mov eax, dword [eax]
cmp eax, edi
je 0x401b13
call eax
jmp 0x401b13
push 0x40b028
mov eax, 0x40b020
call fcn.00401a42
pop ecx
push 0x40b030
mov eax, 0x40b02c
call fcn.00401a42
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x401b73
cmp dword [ebp + 0x10], edi
jne 0x401b81
mov dword [0x40bc04], esi
push dword [ebp + 8]
call fcn.00401a00
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x401b80
push 8
call fcn.0040361d
pop ecx
ret
call fcn.0040273b
ret
Function at 0x4020b9
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x409698
call fcn.00402700
mov edi, 0x94
mov eax, edi
call fcn.00404790
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40bbc4], ecx
mov eax, dword [esi + 4]
mov dword [0x40bbd0], eax
mov edx, dword [esi + 8]
mov dword [0x40bbd4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40bbc8], esi
cmp ecx, 2
je 0x402119
or esi, 0x8000
mov dword [0x40bbc8], esi
shl eax, 8
add eax, edx
mov dword [0x40bbcc], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x402152
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402152
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40216a
cmp eax, 0x20b
je 0x402157
mov dword [ebp - 0x1c], edi
jmp 0x40217e
cmp dword [ecx + 0x84], 0xe
jbe 0x402152
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x402178
cmp dword [ecx + 0x74], 0xe
jbe 0x402152
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00404734
pop ecx
test eax, eax
jne 0x402192
push 0x1c
call fcn.00402095
pop ecx
call fcn.0040462b
test eax, eax
jne 0x4021a3
push 0x10
call fcn.00402095
pop ecx
call fcn.004037f5
mov dword [ebp - 4], edi
call fcn.0040424f
test eax, eax
jge 0x4021bc
push 0x1b
call fcn.00402070
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40d844], eax
call fcn.0040412d
mov dword [0x40bc08], eax
call fcn.0040408b
test eax, eax
jge 0x4021e2
push 8
call fcn.00402070
pop ecx
call fcn.00403e58
test eax, eax
jge 0x4021f3
push 9
call fcn.00402070
pop ecx
push 1
call fcn.00401a5a
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x402209
push eax
call fcn.00402070
pop ecx
mov eax, dword [0x40bbe4]
mov dword [0x40bbe8], eax
push eax
push dword [0x40bbdc]
push dword [0x40bbd8]
call fcn.00401739
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x402238
push esi
call fcn.00401b87
call fcn.00401ba9
jmp 0x40226a
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.0040273b
ret
Function at 0x403b44
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40b040]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40b568]
je 0x403b79
inc eax
cmp eax, 0x13
jb 0x403b6a
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40b568]
jne 0x403c9f
mov eax, dword [0x40bc10]
cmp eax, 1
je 0x403c77
cmp eax, edx
jne 0x403ba9
cmp dword [0x40b054], 1
je 0x403c77
cmp ecx, 0xfc
je 0x403c9f
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403bdf
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00401f20
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004018a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x403c13
mov eax, edi
push eax
call fcn.004018a0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4097dc
push edi
call fcn.00401c60
add esp, 0x10
push edi
call fcn.004018a0
push dword [esi + 0x40b56c]
mov ebx, eax
call fcn.004018a0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00404790
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00401f20
push edi
push ebx
call fcn.00401f30
push 0x4097d8
push ebx
call fcn.00401f30
push dword [esi + 0x40b56c]
push ebx
call fcn.00401f30
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004069fe
add esp, 0x2c
jmp 0x403c9f
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40b56c]
push dword [esi]
call fcn.004018a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00401c4f
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret