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

Disassembly:
mov eax, 0x42c78b
call fcn.0040fd5c
sub esp, 0x258
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00429332
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x42e910
mov ecx, dword [ebp - 0x10]
add ecx, 0xd4
call fcn.0040aa8c
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x398
call fcn.00404aac
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x3ac
call fcn.00404b7c
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x3c0
call fcn.00404aac
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
and dword [eax + 0x388], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x360], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x378], 0
mov eax, dword [ebp - 0x10]
and dword [eax + 0x368], 0
mov al, byte [0x42e647]
mov byte [ebp - 0x210], al
push 0x7f
pop ecx
xor eax, eax
lea edi, [ebp - 0x20f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x394], 0xa
push 0x200
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4028a9
push 0
call fcn.004109ba
push 0x5c
lea eax, [ebp - 0x210]
push eax
call fcn.004104f0
pop ecx
pop ecx
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x210]
sub eax, ecx
inc eax
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
and byte [ebp + eax - 0x214], 0
push 0x950
call fcn.0041e9a8
pop ecx
mov dword [ebp - 0x260], eax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x260], 0
je 0x40291a
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x260]
call fcn.00406d88
mov dword [ebp - 0x264], eax
jmp 0x402921
and dword [ebp - 0x264], 0
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x25c]
mov dword [eax + 0xd0], ecx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402a14
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x368], 0
je 0x402a47
push 0
mov eax, dword [ebp - 4]
push dword [eax + 0x368]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 4]
and dword [eax + 0x368], 0
mov ecx, dword [ebp - 4]
add ecx, 0xd4
call fcn.0040add9
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40303a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x38c], ecx
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp - 4]
push 0x4030a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xc], eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x403074
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp - 4]
push 0x4031a5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xc], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40350d
Capabilities:
Shutdown system
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
cmp dword [0x43a0b8], 1
jne 0x403587
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403582
push 0x42ebfc
push dword [ebp - 4]
call dword [0x439ac8]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x403579
cmp dword [ebp + 8], 0
jne 0x40356d
push 0
push 0
push 0x12
push str.Program_Manager
push str.Progman
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 0
mov eax, dword [ebp + 8]
or eax, 4
push eax
call dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x403628
cmp dword [ebp + 8], 8
je 0x403599
cmp dword [ebp + 8], 2
je 0x403599
cmp dword [ebp + 8], 1
jne 0x403616
lea eax, [ebp - 0xc]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4035c4
push 0x40
push str._OpenProcessToken__Cannot_open_process_token
push str._OpenProcessToken__Cannot_open_process_token
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp - 0x18]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x403616
push 0x40
push str._AdjustTokenPrivileges__Cannot_enable_shutdown_privilege
push str._AdjustTokenPrivileges__Cannot_enable_shutdown_privilege
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x80000000
mov eax, dword [ebp + 8]
or eax, 4
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
call fcn.004109ba
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40389d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp - 4]
push 0x4038c9
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xc], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4061b4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4061d6
xor eax, eax
jmp 0x406251
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4061ec
xor eax, eax
jmp 0x406251
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x406234
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jae 0x406234
mov eax, dword [ebp - 4]
movzx eax, word [eax]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
jmp 0x40620d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x406240
xor eax, eax
jmp 0x406251
mov eax, dword [ebp - 4]
movzx eax, word [eax]
test eax, eax
jne 0x40624e
xor eax, eax
jmp 0x406251
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407026
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x130], 2
mov al, byte [0x42e647]
mov byte [ebp - 0x204], al
push 0x7f
pop ecx
xor eax, eax
lea edi, [ebp - 0x203]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 4]
add eax, 0x350
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.0040ff50
pop ecx
pop ecx
push 0x42e704
lea eax, [ebp - 0x204]
push eax
call fcn.0040ff50
pop ecx
pop ecx
push str.ipcBackupSet_
lea eax, [ebp - 0x204]
push eax
call fcn.0040ff50
pop ecx
pop ecx
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
call fcn.0040ff50
pop ecx
pop ecx
push 0x42e704
lea eax, [ebp - 0x204]
push eax
call fcn.0040ff50
pop ecx
pop ecx
push str.stop
lea eax, [ebp - 0x204]
push eax
call fcn.0040ff50
pop ecx
pop ecx
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x208], eax
mov byte [ebp - 0x20d], 0x20
push 0
lea eax, [ebp - 0x20c]
push eax
push 1
lea eax, [ebp - 0x20d]
push eax
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x407eb5
Capabilities:
Enumerate files on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov al, byte [0x42e647]
mov byte [ebp - 0x108], al
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 4]
add eax, 0x144
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040ff40
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call fcn.00410370
pop ecx
movsx eax, byte [ebp + eax - 0x109]
cmp eax, 0x5c
je 0x407f23
push 0x42e704
lea eax, [ebp - 0x108]
push eax
call fcn.0040ff50
pop ecx
pop ecx
push str.jvm_bin_
lea eax, [ebp - 0x108]
push eax
call fcn.0040ff50
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x407f6c
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call fcn.0040ff40
pop ecx
pop ecx
push str.javaw.exe
push dword [ebp + 8]
call fcn.0040ff50
pop ecx
pop ecx
jmp 0x408051
lea eax, [ebp - 0x248]
push eax
push str.JW.EXE
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0xffffffff
jne 0x407fb2
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call fcn.0040ff40
pop ecx
pop ecx
push str.javaw.exe
push dword [ebp + 8]
call fcn.0040ff50
pop ecx
pop ecx
jmp 0x408051
xor eax, eax
inc eax
test eax, eax
je 0x408045
push 0x42e70c
lea eax, [ebp - 0x21c]
push eax
call fcn.004100e0
pop ecx
pop ecx
test eax, eax
je 0x40801c
push 0x42e708
lea eax, [ebp - 0x21c]
push eax
call fcn.004100e0
pop ecx
pop ecx
test eax, eax
je 0x40801c
mov eax, dword [ebp - 0x248]
and eax, 0x10
test eax, eax
jne 0x40801c
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call fcn.0040ff40
pop ecx
pop ecx
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 8]
call fcn.0040ff50
pop ecx
pop ecx
jmp 0x408051
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408040
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x408040
jmp 0x408045
jmp 0x407fb2
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40847c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x130], 2
mov al, byte [0x42e647]
mov byte [ebp - 0x204], al
push 0x7f
pop ecx
xor eax, eax
lea edi, [ebp - 0x203]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push eax
call fcn.0040ff50
pop ecx
pop ecx
push 0x42e704
lea eax, [ebp - 0x204]
push eax
call fcn.0040ff50
pop ecx
pop ecx
push str.ipcBackupSet_
lea eax, [ebp - 0x204]
push eax
call fcn.0040ff50
pop ecx
pop ecx
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
call fcn.0040ff50
pop ecx
pop ecx
push 0x42e704
lea eax, [ebp - 0x204]
push eax
call fcn.0040ff50
pop ecx
pop ecx
push str.stop
lea eax, [ebp - 0x204]
push eax
call fcn.0040ff50
pop ecx
pop ecx
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x208], eax
mov byte [ebp - 0x20d], 0x20
push 0
lea eax, [ebp - 0x20c]
push eax
push 1
lea eax, [ebp - 0x20d]
push eax
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4087b4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [0x43c1fc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 6
jb 0x408833
push 0x3c
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.00410520
add esp, 0xc
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x40], 0x40
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
add eax, 0x144
mov dword [ebp - 0x2c], eax
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp dword [ebp + 0x10], 0
je 0x408825
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40891b
push 0x44
push 0
lea eax, [ebp - 0x88]
push eax
call fcn.00410520
add esp, 0xc
mov dword [ebp - 0x88], 0x44
push 0x10
push 0
lea eax, [ebp - 0x98]
push eax
call fcn.00410520
add esp, 0xc
push 0x5c
push dword [ebp + 8]
call fcn.004104f0
pop ecx
pop ecx
mov dword [ebp - 0x9c], eax
mov al, byte [0x42e647]
mov byte [ebp - 0x1a4], al
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x1a3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x9c]
inc eax
push eax
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040ff40
pop ecx
pop ecx
push 0x42f060
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040ff50
pop ecx
pop ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040ff50
pop ecx
pop ecx
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp - 4]
add eax, 0x144
push eax
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x1a4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp dword [ebp + 0x10], 0
je 0x40890f
push 0xffffffffffffffff
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40a68a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0xc]
push eax
push 0x20006
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40a6c2
xor eax, eax
inc eax
jmp 0x40a6ee
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x10]
push 0
push dword [ebp + 0x18]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 8], 0
setne al
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40a6f5
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0xc]
push eax
push 0x20006
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40a72d
xor eax, eax
inc eax
jmp 0x40a73e
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40d74b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40d786
or eax, 0xffffffff
jmp 0x40d7d3
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
call fcn.00410370
pop ecx
inc eax
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40d7b1
or eax, 0xffffffff
jmp 0x40d7d3
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40d7d0
xor eax, eax
jmp 0x40d7d3
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d82d
Capabilities:
Read file on windows
Read from mailslot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40d868
xor eax, eax
jmp 0x40d897
cmp dword [ebp - 4], 0xffffffff
jne 0x40d872
xor eax, eax
jmp 0x40d897
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40d894
xor eax, eax
jmp 0x40d897
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d89c
Capabilities:
Connect pipe
Create pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1058
call fcn.0040feb0
push ebx
push esi
push edi
mov esi, str.NO_REPLY
lea edi, [ebp - 0x1008]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x3fd
xor eax, eax
lea edi, [ebp - 0xfff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
push 0
push 0x1000
push 0x1000
push 0xff
push 6
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40d905
push str.CreatePipe_failed
call fcn.0041180d
pop ecx
jmp 0x40d9de
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40d9d5
xor eax, eax
inc eax
test eax, eax
je 0x40d9b8
push 0
lea eax, [ebp - 0x100c]
push eax
push 0x1000
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1018], eax
cmp dword [ebp - 0x1018], 0
je 0x40d95a
cmp dword [ebp - 0x100c], 0
jne 0x40d95c
jmp 0x40d9b8
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x1008]
push eax
push dword [ebp + 0xc]
call fcn.0040d9e3
add esp, 0xc
push 0
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x1010]
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x1018], eax
cmp dword [ebp - 0x1018], 0
je 0x40d9b1
mov eax, dword [ebp - 0x1010]
cmp eax, dword [ebp - 0x1014]
je 0x40d9b3
jmp 0x40d9b8
jmp 0x40d91d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40d9de
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40da0e
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1058
call fcn.0040feb0
push ebx
push esi
push edi
mov dword [ebp - 8], str.Default_message_from_client
cmp dword [ebp + 0xc], 0
je 0x40da31
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
xor eax, eax
inc eax
test eax, eax
je 0x40daa0
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40da5b
jmp 0x40daa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
je 0x40da7a
push str.Could_not_open_pipe
call fcn.0041180d
pop ecx
xor eax, eax
jmp 0x40db89
push 0x4e20
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
jne 0x40da9e
push str.Could_not_open_pipe
call fcn.0041180d
pop ecx
xor eax, eax
jmp 0x40db89
jmp 0x40da31
mov dword [ebp - 0x1018], 2
push 0
push 0
lea eax, [ebp - 0x1018]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov dword [ebp - 0x100c], eax
cmp dword [ebp - 0x100c], 0
jne 0x40dadf
push str.SetNamedPipeHandleState_failed
call fcn.0041180d
pop ecx
xor eax, eax
jmp 0x40db89
push 0
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x100c], eax
cmp dword [ebp - 0x100c], 0
jne 0x40db1d
push str.WriteFile_failed
call fcn.0041180d
pop ecx
xor eax, eax
jmp 0x40db89
push 0
lea eax, [ebp - 0x1010]
push eax
push 0x1000
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x100c], eax
cmp dword [ebp - 0x100c], 0
jne 0x40db59
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x40db59
jmp 0x40db7e
lea eax, [ebp - 0x1008]
push eax
push 0x42ffd8
call fcn.004100e0
pop ecx
pop ecx
test eax, eax
je 0x40db75
xor eax, eax
inc eax
jmp 0x40db89
cmp dword [ebp - 0x100c], 0
je 0x40db1d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4108e7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.004138a9
xor esi, esi
inc esi
cmp dword [0x43c230], esi
pop ecx
jne 0x41090f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x43c22c], esi
mov byte [0x43c228], al
jne 0x410975
mov ecx, dword [0x43daec]
test ecx, ecx
je 0x410956
mov eax, dword [0x43dae8]
sub eax, 4
cmp eax, ecx
jmp 0x41094f
mov eax, dword [eax]
test eax, eax
je 0x410941
call eax
mov eax, dword [0x43dae8]
sub eax, 4
cmp eax, dword [0x43daec]
mov dword [0x43dae8], eax
jae 0x410939
mov eax, 0x43807c
mov esi, 0x438084
cmp eax, esi
mov edi, eax
jae 0x410975
mov eax, dword [edi]
test eax, eax
je 0x41096e
call eax
add edi, 4
cmp edi, esi
jb 0x410966
mov eax, 0x438088
mov esi, 0x438090
cmp eax, esi
mov edi, eax
jae 0x410994
mov eax, dword [edi]
test eax, eax
je 0x41098d
call eax
add edi, 4
cmp edi, esi
jb 0x410985
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x4109a5
push 8
call fcn.00413815
jmp 0x4109b7
push dword [ebp + 8]
mov dword [0x43c230], 1
call fcn.00410840
pop ecx
pop ebp
ret