joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a30
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x158
push ebx
push ebp
push esi
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x1f]
mov byte [esp + 0x18], 0xe0
mov byte [esp + 0x19], 0xed
mov byte [esp + 0x1a], 0xe6
mov byte [esp + 0x1b], 0xe2
mov byte [esp + 0x1c], 0xf2
mov byte [esp + 0x1d], 0xf5
mov byte [esp + 0x1e], 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov al, 0xd8
mov ecx, 0xe
mov byte [esp + 0x5a], al
mov byte [esp + 0x5b], al
xor eax, eax
lea edi, [esp + 0x5f]
mov byte [esp + 0x58], 0xda
mov byte [esp + 0x59], 0xd3
mov byte [esp + 0x5c], 0xc8
mov byte [esp + 0x5d], 0xc3
mov byte [esp + 0x5e], 0
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [0x4237c8]
lea ecx, [esp + 0x98]
push eax
push 0x40
push ecx
mov ebx, 6
push str.User0
push str.USER
mov dword [esp + 0x24], ebx
call ebp
test eax, eax
je 0x401b02
xor eax, eax
mov dword [esp + 0x10], eax
mov cl, byte [esp + eax + 0x98]
test cl, cl
je 0x401ae2
inc eax
cmp eax, 0x40
jb 0x401ad1
lea ecx, [eax + 1]
lea esi, [esp + 0x98]
mov edx, ecx
lea edi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x10], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x4237c8]
lea ecx, [esp + 0x98]
push eax
push 0x40
push ecx
push str.Pass0
push str.USER
call ebp
test eax, eax
je 0x401b51
xor ebx, ebx
mov al, byte [esp + ebx + 0x98]
test al, al
je 0x401b35
inc ebx
cmp ebx, 0x40
jb 0x401b24
lea ecx, [ebx + 1]
lea esi, [esp + 0x98]
mov edx, ecx
lea edi, [esp + 0x58]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x170]
lea ecx, [esp + 0xdc]
push eax
call fcn.00401810
mov ebp, dword [esp + 0x16c]
mov dword [esp + 0x14], 0
mov eax, dword [0x4237c4]
lea ecx, [esp + 0xdc]
push ecx
push 0x4017c0
push ebp
push 0x90
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
jne 0x401c42
lea edi, [esp + 0xe4]
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jne 0x401c30
lea edx, [esp + 0x98]
lea eax, [esp + 0xe4]
push edx
push eax
call fcn.00401990
add esp, 8
mov ecx, esi
lea edi, [esp + 0x18]
lea esi, [esp + 0x98]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401be5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401c30
lea edi, [esp + 0x124]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebx, ecx
jne 0x401c30
lea ecx, [esp + 0x98]
lea edx, [esp + 0x124]
push ecx
push edx
call fcn.004019e0
add esp, 8
mov ecx, ebx
lea edi, [esp + 0x58]
lea esi, [esp + 0x98]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x401c2c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401c5b
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 3
mov dword [esp + 0x14], eax
jl 0x401b74
lea ecx, [esp + 0xdc]
call fcn.00401850
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x158
ret
lea ecx, [esp + 0xdc]
call fcn.00401850
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x158
ret
Function at 0x402ee0
Capabilities:
Encode data using xor
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc0
mov eax, dword [0x4237cc]
push ebx
push ebp
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push accept
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4030b1
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov eax, 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0xb0], eax
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x54]
lea edx, [esp + 0x78]
push 0x3f1
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x48], ecx
mov dword [esp + 0xc4], edx
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp edi, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], esi
jbe 0x4030a9
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x402f8b
xor esi, esi
mov ecx, dword [esp + 0x10]
push esi
push esi
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x1c]
mov esi, 4
push 0
push edx
lea eax, [esp + 0x20]
push esi
push eax
push ebp
lea edi, [esp + 0x2c]
call ebx
test eax, eax
je 0x402fd6
mov eax, dword [esp + 0x1c]
cmp esi, eax
je 0x402fdc
test eax, eax
je 0x402fdc
lea ecx, [esp + 0x1c]
sub esi, eax
push 0
add edi, eax
push ecx
push esi
push edi
push ebp
call ebx
test eax, eax
jne 0x402fb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x24]
mov esi, 0x54
push 0
push edx
lea eax, [esp + 0x5c]
push esi
push eax
push ebp
lea edi, [esp + 0x68]
call ebx
test eax, eax
je 0x403019
mov eax, dword [esp + 0x24]
cmp esi, eax
je 0x40301f
test eax, eax
je 0x40301f
lea ecx, [esp + 0x24]
sub esi, eax
push 0
add edi, eax
push ecx
push esi
push edi
push ebp
call ebx
test eax, eax
jne 0x402ff9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov cl, byte [esp + 0x54]
mov dl, 0x7a
test cl, cl
lea eax, [esp + 0x54]
je 0x40303b
xor cl, dl
inc dl
mov byte [eax], cl
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40302d
mov cl, byte [esp + 0x78]
lea eax, [esp + 0x78]
test cl, cl
je 0x403052
mov byte [eax], 0x2a
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403047
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0x2c]
push edx
push 0
push 0x1007
push eax
mov dword [esp + 0x40], esi
call edi
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xa8]
push ecx
push esi
push 0x102e
push edx
call edi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
inc esi
lea eax, [ecx + eax + 4]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
jb 0x402f89
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret
Function at 0x405a30
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x414
push ebx
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push str.LogLog.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405b72
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x9c4000
jbe 0x405a78
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x405a85
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push esi
lea eax, [esp + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1e]
mov eax, dword [esp + 0x1c]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x1e]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x1e]
push eax
mov eax, dword [esp + 0x20]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0x3c]
push str._d__2d__2d__2d:_2d:_2d
push ecx
call fcn.004151c1
mov eax, dword [esp + 0x448]
lea edx, [esp + 0x44c]
push edx
push eax
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [esp + ecx + 0x4c]
push ecx
call fcn.004158c2
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x2c
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x10]
push eax
mov byte [esp + ecx + 0x28], 0xd
inc ecx
push edx
lea eax, [esp + 0x2c]
lea esi, [ecx + 1]
mov byte [esp + ecx + 0x2c], 0xa
push esi
push eax
push ebx
lea edi, [esp + 0x38]
call ebp
test eax, eax
je 0x405b62
mov eax, dword [esp + 0x10]
cmp esi, eax
je 0x405b68
lea ecx, [esp + 0x10]
sub esi, eax
push 0
add edi, eax
push ecx
push esi
push edi
push ebx
call ebp
test eax, eax
jne 0x405b46
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x414
ret
Function at 0x405e00
Capabilities:
Read .ini file
Shutdown system

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41c35b
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
test eax, eax
je 0x405f3b
mov eax, dword [esp + 0x20]
mov ecx, eax
and ecx, 0xffff
sub ecx, 0
je 0x405ec6
dec ecx
je 0x405e59
dec ecx
jne 0x405f3b
call fcn.00405cb0
push 0
push 0xc
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x405f3b
mov ecx, dword [esi + 0x14]
call fcn.0040b010
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x405e6e
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [0x4237c8]
push ecx
push 0x1965
push str.ServerPort
push 0x4202f4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x1c
mov edi, eax
call fcn.004150af
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x18], 0
je 0x405eaf
mov ecx, eax
call fcn.0040af20
jmp 0x405eb1
xor eax, eax
push edi
mov ecx, eax
mov dword [esp + 0x1c], 0xffffffff
mov dword [esi + 0x14], eax
call fcn.0040b0d0
jmp 0x405f3b
mov edx, dword [esi + 8]
shr eax, 0x10
mov edi, eax
mov ecx, dword [edx + edi*4]
lea eax, [edx + edi*4]
test ecx, ecx
mov dword [eax], 0
je 0x405eee
mov eax, dword [ecx + 0xbe8]
mov edx, dword [ecx]
mov dword [esp + 0x20], eax
call dword [edx]
jmp 0x405ef6
mov dword [esp + 0x20], 0xff
mov eax, dword [0x4237c8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 1
push str.Protocol
push 0x4202f4
call ebx
mov ecx, dword [0x4237c8]
mov ebp, eax
push ecx
push 0x1965
push str.ServerPort
push 0x4202f4
call ebx
mov edx, dword [esp + 0x20]
mov ecx, esi
push edx
push eax
push ebp
push 1
push edi
call fcn.00406430
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8
Function at 0x408420
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
push ebx
mov ebx, dword [esp + 0x214]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov eax, dword [ebx + 8]
mov dword [esp + 8], ecx
mov ecx, dword [0x4237c8]
push esi
push edi
push ecx
push 0
push str.HostNum
push 0x4202f4
mov dword [esp + 0x24], eax
call ebp
xor edi, edi
mov dword [esp + 0x18], eax
test eax, eax
jbe 0x4085ca
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp dword [ebx], 0
je 0x4084fa
push edi
lea edx, [esp + 0x20]
push str.PORT_d
push edx
call fcn.004151c1
mov eax, dword [0x4237c8]
add esp, 0xc
lea ecx, [esp + 0x1c]
push eax
push 0x1965
push ecx
push str.HOST
call ebp
cmp eax, dword [ebx + 4]
jne 0x4084f6
push edi
lea edx, [esp + 0x20]
push str.IP_d
push edx
call fcn.004151c1
mov eax, dword [0x4237c8]
add esp, 0xc
lea ecx, [esp + 0x11c]
lea edx, [esp + 0x1c]
push eax
push pe_nt_image_headers32
push ecx
push 0x4237d4
push edx
push str.HOST
call esi
cmp eax, 1
jb 0x4084f6
mov eax, dword [ebx]
lea ecx, [esp + 0x11c]
push eax
push ecx
call fcn.0041be80
add esp, 8
test eax, eax
je 0x408510
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
jb 0x40846b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret 4
push edi
lea edx, [esp + 0x20]
push str.StartPort_d
push edx
call fcn.004151c1
mov eax, dword [0x4237c8]
add esp, 0xc
lea ecx, [esp + 0x1c]
push eax
push 1
push ecx
push str.HOST
call ebp
push edi
lea edx, [esp + 0x20]
push str.EndPort_d
push edx
mov esi, eax
call fcn.004151c1
mov eax, dword [0x4237c8]
add esp, 0xc
lea ecx, [esp + 0x1c]
push eax
push 0
push ecx
push str.HOST
call ebp
mov edx, dword [ebx + 0xc]
mov edi, eax
inc edi
lea eax, [edx + esi]
mov ebp, edi
cmp edi, eax
jb 0x408571
mov ebp, eax
cmp esi, ebp
jae 0x4085a5
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x40859e
mov ecx, dword [eax + 0x4c]
mov edx, dword [esp + 0x14]
mov cl, byte [edx + ecx]
mov byte [eax + 0xa0], cl
mov edx, dword [ebx + 0xc]
mov ecx, dword [edx + esi*4]
mov eax, dword [ecx]
call dword [eax + 0x20]
inc esi
cmp esi, ebp
jb 0x408575
jmp 0x4085a9
mov ebx, dword [esp + 0x10]
cmp esi, edi
jae 0x4085ca
mov ecx, dword [ebx + 0xc]
mov ecx, dword [ecx + esi*4]
test ecx, ecx
je 0x4085c5
mov edx, dword [ecx]
call dword [edx]
mov eax, dword [ebx + 0xc]
mov dword [eax + esi*4], 0
inc esi
cmp esi, edi
jb 0x4085ad
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret 4
Function at 0x4086c0
Capabilities:
Create thread
Read .ini file

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea eax, [esi + 0xbd0]
mov dword [esi], 0x41d34c
push eax
mov dword [esi + 0xbc4], ebx
mov dword [esi + 0xbc8], ebx
mov byte [esi + 4], 2
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edi, dword [sym.imp.WS2_32.dll_WSACreateEvent]
call edi
mov dword [esi + 0xc14], eax
call edi
mov dword [esi + 0xc18], eax
call edi
or edi, 0xffffffff
mov dword [esi + 0xc30], eax
mov byte [esi + 0xbf8], 1
mov dword [esi + 0xc00], edi
mov ecx, dword [0x4237c8]
push ecx
push 0xff
push str.nMultiUserNum
push 0x4202f4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi + 0xbec], eax
shl eax, 4
push eax
call fcn.004150af
mov ecx, dword [esi + 0xbec]
mov dword [esi + 0xbf0], eax
add esp, 4
xor eax, eax
cmp ecx, ebx
mov dword [esi + 0xbf4], ebx
jle 0x408779
xor ecx, ecx
mov edx, dword [esi + 0xbf0]
inc eax
mov dword [edx + ecx + 4], edi
mov edx, dword [esi + 0xbec]
add ecx, 0x10
cmp eax, edx
jl 0x408761
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebx
push eax
push ebx
push esi
push 0x408670
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xbfc], eax
mov word [esi + 0xbcc], bx
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x408890
Capabilities:
Check for time delay via gettickcount
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x158
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 0x82020476
mov dword [esp + 0x10], edi
mov word [esp + 0x24], 0x6a
mov al, byte [edi + 8]
mov ecx, dword [edi + 0xbf4]
mov byte [esp + 0x28], al
xor eax, eax
cmp ecx, eax
mov word [esp + 0x26], 9
mov dword [esp + 0xc], eax
jle 0x408a24
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_send]
mov dword [esp + 0x10], eax
mov ecx, dword [edi + 0xbf0]
add eax, ecx
cmp dword [eax + 4], 0xffffffff
je 0x408a00
mov edx, dword [eax + 0xc]
mov dword [esp + 0x24], 0
mov dword [esp + 0x31], edx
mov ecx, dword [eax + 8]
mov esi, dword [esp + 0x2e]
mov dword [esp + 0x35], ecx
mov ebx, dword [eax + 4]
mov eax, 1
lea edx, [esp + 0x20]
mov dword [esp + 0x64], eax
mov dword [esp + 0x20], eax
push edx
lea eax, [esp + 0x68]
push 0
push eax
and esi, 0xffff
push 0
push 0
add esi, 8
mov dword [esp + 0x7c], ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x4089d8
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
lea ecx, [esp + 0x2c]
push esi
push ecx
push ebx
mov dword [esp + 0x2c], eax
call ebp
cmp eax, 0xffffffff
je 0x4089d4
add edi, eax
cmp edi, esi
jge 0x4089d4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x1c]
cmp eax, 0x1388
jae 0x4089d4
push 1
push 0
push 0
lea edx, [esp + 0x54]
push 0
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4089b8
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea edx, [esp + 0x54]
push 0
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x40898b
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
push 0
sub eax, edi
lea ecx, [esp + edi + 0x2c]
push eax
push ecx
push ebx
call ebp
cmp eax, 0xffffffff
jne 0x40895d
mov edi, dword [esp + 0x18]
mov edx, dword [edi + 0xbf0]
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov dword [eax + edx + 8], ecx
mov edx, dword [edi + 0xbf0]
mov dword [eax + edx + 0xc], ecx
mov ecx, dword [edi + 0xbf0]
mov dword [eax + ecx + 4], 0xffffffff
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [edi + 0xbf4]
inc ecx
add eax, 0x10
cmp ecx, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jl 0x4088db
pop ebp
pop ebx
mov eax, dword [edi + 0xc00]
or esi, 0xffffffff
cmp eax, esi
je 0x408a38
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0xc00], esi
pop edi
pop esi
add esp, 0x158
ret
Function at 0x4094f0
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
mov esi, ecx
push edi
xor ebp, ebp
lea eax, [esi + 0xbd0]
mov dword [esi], 0x41d378
push eax
mov dword [esi + 0xbc4], ebp
mov dword [esi + 0xbc8], ebp
mov byte [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edi, dword [sym.imp.WS2_32.dll_WSACreateEvent]
call edi
mov dword [esi + 0x37cc], eax
call edi
mov dword [esi + 0x37d0], eax
mov dword [esi + 0xbec], 1
lea eax, [esi + 0xc04]
mov ecx, 0xff
or edx, 0xffffffff
mov dword [eax - 4], edx
mov dword [eax], edx
add eax, 0x2c
dec ecx
jne 0x409549
lea ecx, [esp + 0xc]
mov dword [esi + 0x37c8], ebp
push ecx
push ebp
push esi
push 0x4094b0
push ebp
push ebp
mov dword [esi + 0x37d4], 0x82020476
mov word [esi + 0x37d8], 0x8d
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xbf0], eax
mov word [esi + 0xbcc], bp
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x409670
Capabilities:
Check for time delay via gettickcount
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x158
mov eax, dword [ecx + 8]
push edi
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x37c8]
xor edi, edi
mov dword [esp + 0xc], ecx
test eax, eax
mov dword [esp + 0x1c], 0x82020476
mov word [esp + 0x20], 0x6a
mov word [esp + 0x22], 0xc
mov dword [esp + 8], edi
jle 0x4097f2
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_send]
push esi
lea esi, [ecx + 0xc00]
mov dword [esp + 0x10], esi
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4096cd
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, dword [esi + 4]
mov dword [esi], 0xffffffff
cmp ebx, 0xffffffff
je 0x4097d1
mov esi, dword [esp + 0x2e]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x68]
push 0
push edx
and esi, 0xffff
mov eax, 1
push 0
mov dword [esp + 0x44], 0
push 0
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x4c], edi
add esi, 8
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x78], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x4097cd
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x1c], eax
push edi
lea eax, [esp + 0x2c]
push esi
push eax
push ebx
call ebp
cmp eax, 0xffffffff
je 0x4097c9
add edi, eax
cmp edi, esi
jge 0x4097c9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x1c]
cmp eax, 0x1388
jae 0x4097c9
push 1
push 0
push 0
lea ecx, [esp + 0x54]
push 0
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4097ad
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea ecx, [esp + 0x54]
push 0
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x409780
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, esi
push 0
sub edx, edi
lea eax, [esp + edi + 0x2c]
push edx
push eax
push ebx
call ebp
cmp eax, 0xffffffff
jne 0x409752
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
inc edi
add esi, 0x2c
mov dword [esp + 0x14], edi
mov eax, dword [ecx + 0x37c8]
mov dword [esp + 0x10], esi
cmp edi, eax
jl 0x4096bf
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x158
ret
Function at 0x40a0d0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea eax, [esi + 0xbd0]
mov dword [esi], 0x41d3a4
push eax
mov dword [esi + 0xbc4], ebx
mov dword [esi + 0xbc8], ebx
mov byte [esi + 4], bl
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edi, dword [sym.imp.WS2_32.dll_WSACreateEvent]
call edi
mov dword [esi + 0x43c4], eax
call edi
mov dword [esi + 0x43c8], eax
call edi
or edx, 0xffffffff
mov dword [esi + 0x43cc], eax
mov dword [esi + 0xbec], edx
mov dword [esi + 0xbf4], 1
lea eax, [esi + 0xbfc]
mov ecx, 0xff
mov dword [eax + 0x10], edx
mov dword [eax], ebx
add eax, 0x38
dec ecx
jne 0x40a136
lea ecx, [esp + 0xc]
mov dword [esi + 0x43c0], ebx
push ecx
push ebx
push esi
push 0x40a080
push ebx
push ebx
mov dword [esi + 0x43d0], 0x82020476
mov word [esi + 0x43d4], 0x8d
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xbf0], eax
mov word [esi + 0xbcc], bx
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40a5b0
Capabilities:
Check for time delay via gettickcount
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x158
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov eax, dword [esi + 8]
mov dword [esp + 0xc], esi
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x43c0]
test eax, eax
mov dword [esp + 0x20], 0x82020476
mov word [esp + 0x24], 0x6a
mov word [esp + 0x26], 0xc
mov dword [esp + 8], ecx
jle 0x40a71e
push ebx
lea edi, [esi + 0xbfc]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_send]
mov dword [esp + 0x18], edi
mov eax, dword [edi]
test eax, eax
je 0x40a6fe
mov esi, dword [esp + 0x2e]
mov ebx, dword [edi + 0x10]
mov dword [esp + 0x38], eax
mov eax, 1
lea edx, [esp + 0x20]
mov dword [esp + 0x64], eax
mov dword [esp + 0x20], eax
push edx
lea eax, [esp + 0x68]
push 0
mov word [esp + 0x3c], cx
mov cx, word [edi - 2]
push eax
and esi, 0xffff
push 0
push 0
mov word [esp + 0x4a], cx
add esi, 8
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x38], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x40a6fa
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
lea ecx, [esp + 0x2c]
push esi
push ecx
push ebx
mov dword [esp + 0x2c], eax
call ebp
cmp eax, 0xffffffff
je 0x40a6f6
add edi, eax
cmp edi, esi
jge 0x40a6f6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x1c]
cmp eax, 0x1388
jae 0x40a6f6
push 1
push 0
push 0
lea edx, [esp + 0x54]
push 0
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40a6da
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea edx, [esp + 0x54]
push 0
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x40a6ad
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
push 0
sub eax, edi
lea ecx, [esp + edi + 0x2c]
push eax
push ecx
push ebx
call ebp
cmp eax, 0xffffffff
jne 0x40a67f
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x43c0]
inc ecx
add edi, 0x38
cmp ecx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edi
jl 0x40a601
pop ebp
pop ebx
mov eax, dword [esi + 0xbec]
or edi, 0xffffffff
cmp eax, edi
je 0x40a732
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0xbec], edi
pop edi
pop esi
add esp, 0x158
ret