joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411e20
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x411e39
mov byte [ebp - 0xa], 0
jmp 0x411e3d
mov byte [ebp - 0xa], 1
mov edx, dword [ebp + 0x18]
test edx, edx
jne 0x411e4b
mov dword [ebp + 0x18], 0x1388
call fcn.00401270
mov dword [ebp - 8], eax
xor esi, esi
mov byte [ebp - 9], 0
xor ebx, ebx
mov eax, dword [ebp + 0x20]
mov edx, dword [eax]
test edx, edx
je 0x411e6b
mov ecx, dword [ebp + 0x20]
xor eax, eax
mov dword [ecx], eax
mov dl, byte [ebp - 9]
cmp dl, 1
je 0x411f32
lea ecx, [ebp - 4]
push ecx
push 0x4004667f
push edi
call sub.WSOCK32.dll_ioctlsocket
inc eax
jne 0x411e99
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x411f32
mov eax, dword [ebp - 4]
test eax, eax
je 0x411efc
push 0
mov edx, dword [ebp + 0x10]
sub edx, ebx
push edx
mov ecx, dword [ebp + 0xc]
add ecx, ebx
push ecx
push edi
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x411ec7
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x411f32
jmp 0x411efc
add esi, eax
add ebx, eax
mov dl, byte [ebp - 0xa]
test dl, dl
jne 0x411ed6
test esi, esi
jne 0x411f32
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x411ee4
mov edx, dword [ebp + 0x1c]
cmp esi, edx
jae 0x411f32
test eax, eax
jne 0x411efc
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x411f32
mov eax, dword [ebp + 0x20]
mov dword [eax], 1
jmp 0x411f32
push 0
push 0
call fcn.004013d8
add esp, 8
push 0
push 0
call fcn.004013d8
add esp, 8
call fcn.00401270
mov edx, dword [ebp - 8]
sub eax, edx
mov ecx, dword [ebp + 0x18]
cmp eax, ecx
jbe 0x411e6b
mov byte [ebp - 9], 1
jmp 0x411e6b
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411f8c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
call fcn.00401270
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0x18]
mov ecx, dword [edx]
test ecx, ecx
je 0x411fb8
mov eax, dword [ebp + 0x18]
xor edx, edx
mov dword [eax], edx
cmp edi, 0x1b58
jle 0x411fc7
mov esi, 0x1b58
jmp 0x411fc9
mov esi, edi
push 0
push esi
mov eax, dword [ebp - 4]
push eax
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x411fec
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x41203c
jmp 0x41202b
add ebx, eax
test eax, eax
jne 0x41200f
push 0
call sub.USER32.dll_MessageBeep
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
test eax, eax
je 0x41200b
mov edx, dword [ebp + 0x18]
mov dword [edx], 1
mov eax, ebx
jmp 0x41203e
cmp edi, ebx
jne 0x412017
mov eax, ebx
jmp 0x41203e
add dword [ebp - 4], eax
mov esi, edi
sub esi, ebx
cmp esi, 0x1b58
jle 0x41202b
mov esi, 0x1b58
call fcn.00401270
mov edx, dword [ebp - 8]
sub eax, edx
cmp eax, 0x3a98
jbe 0x411fc9
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4132ac
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
mov eax, 0x4de9d4
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x14]
call fcn.004d08c0
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 0x44], 0x19
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
xor eax, eax
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x3c], edx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x2f], eax
call fcn.00411814
test al, al
jne 0x413313
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x4133c7
cmp ebx, 4
jne 0x41332d
lea ecx, [ebp - 0x44]
push ecx
push 0x412c6c
call fcn.00401bdc
add esp, 8
mov ebx, eax
jmp 0x413367
lea eax, [ebp - 0x44]
push eax
push 0x412f10
call fcn.00401bdc
add esp, 8
mov ebx, eax
jmp 0x413367
push ebx
call fcn.00401c64
pop ecx
test al, al
je 0x41336e
call sub.KERNEL32.dll_GetTickCount
sub eax, esi
cmp eax, 0x2ee0
ja 0x41336e
push 0
push 0
call fcn.004013d8
add esp, 8
mov al, byte [ebp - 0x30]
test al, al
je 0x413342
mov edx, dword [ebp - 0x2f]
test edx, edx
jne 0x41337c
mov cl, byte [ebp - 0x30]
test cl, cl
jne 0x41338a
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x4133c7
mov al, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x4133c7
mov esp, ebp
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x48]
pop ebp
ret
Function at 0x41472c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
mov dword [ebp - 4], pe_nt_image_headers32
push eax
push ebx
call sub.KERNEL32.dll_GetComputerNameA
test eax, eax
je 0x41474d
mov al, 1
jmp 0x414789
call fcn.00411814
test al, al
je 0x414768
push pe_nt_image_headers32
push ebx
call sub.WSOCK32.dll_gethostname
inc eax
je 0x414768
mov al, 1
jmp 0x414789
push 1
push pe_nt_image_headers32
push ebx
push 0x5ccfa7
push 0x5ccf6c
push 0x80000002
call fcn.00406a20
add esp, 0x18
mov al, 1
pop ebx
pop ecx
pop ebp
ret

Function at 0x4147dc
Capabilities:
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
mov eax, 0x4dea1a
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
call fcn.004d08c0
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
call fcn.00411814
push 0x11
push 2
push 2
call sub.WSOCK32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x414828
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x41496e
test esi, esi
je 0x414836
mov cl, byte [esi]
test cl, cl
je 0x414836
xor edi, edi
jmp 0x41483b
mov edi, 1
push 0x10
push 0
lea eax, [ebp - 0x14c]
push eax
call fcn.004cde6c
add esp, 0xc
mov word [ebp - 0x14c], 2
push 0
call sub.WSOCK32.dll_htons
mov word [ebp - 0x14a], ax
xor edx, edx
mov dword [ebp - 0x148], edx
lea ecx, [ebp - 0x14c]
push 0x10
push ecx
push ebx
call sub.WSOCK32.dll_bind
inc eax
push 0x10
push 0
lea eax, [ebp - 0x13c]
push eax
call fcn.004cde6c
add esp, 0xc
mov word [ebp - 0x13c], 2
mov dx, word [ebp + 0xc]
push edx
call sub.WSOCK32.dll_htons
mov word [ebp - 0x13a], ax
dec edi
jne 0x4148d6
mov dword [ebp - 0x2c], 1
push 4
lea ecx, [ebp - 0x2c]
push ecx
push 0x20
push 0xffff
push ebx
call sub.WSOCK32.dll_setsockopt
push 0xffffffffffffffff
call sub.WSOCK32.dll_htonl
mov dword [ebp - 0x138], eax
jmp 0x4148f8
lea eax, [ebp - 0x12c]
push eax
push esi
call fcn.00414348
add esp, 8
lea edx, [ebp - 0x12c]
push edx
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 0x138], eax
push 0x10
lea ecx, [ebp - 0x13c]
push ecx
push 0
mov eax, dword [ebp + 0x14]
push eax
mov edx, dword [ebp + 0x10]
push edx
push ebx
call sub.WSOCK32.dll_sendto
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
inc ecx
jne 0x41492e
push ebx
call sub.WSOCK32.dll_closesocket
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x41496e
push ebx
call sub.WSOCK32.dll_closesocket
mov word [ebp - 0x14], 0
jmp 0x41495f
mov eax, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov esp, ebp
mov edi, dword [ebp - 0x158]
mov esi, dword [ebp - 0x154]
mov ebx, dword [ebp - 0x150]
pop ebp
ret
Function at 0x414984
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
mov eax, 0x4dea2e
push ebx
push esi
push edi
call fcn.004d08c0
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
call fcn.00411814
test al, al
jne 0x4149bf
mov eax, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x414a6c
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4149e5
mov eax, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x414a6c
push 0x10
push 0
lea ecx, [ebp - 0x38]
push ecx
call fcn.004cde6c
add esp, 0xc
mov word [ebp - 0x38], 2
mov ax, word [ebp + 8]
push eax
call sub.WSOCK32.dll_htons
mov word [ebp - 0x36], ax
lea edx, [ebp - 0x38]
push 0x10
push edx
push ebx
call sub.WSOCK32.dll_bind
inc eax
jne 0x414a2f
push ebx
call sub.WSOCK32.dll_closesocket
mov eax, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x414a6c
push ebx
call sub.WSOCK32.dll_closesocket
mov word [ebp - 0x14], 0
jmp 0x414a60
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov esp, ebp
mov edi, dword [ebp - 0x44]
mov esi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x3c]
pop ebp
ret

Function at 0x415200
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
lea eax, [ebp - 8]
mov ebx, 0xa
push eax
push 0x8004667e
push esi
call sub.WSOCK32.dll_ioctlsocket
lea edx, [ebp - 4]
push edx
push 0x4004667f
push esi
call sub.WSOCK32.dll_ioctlsocket
inc eax
jne 0x41524d
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x41524d
xor eax, eax
jmp 0x41527e
mov edx, dword [ebp - 4]
test edx, edx
jne 0x41527b
dec ebx
test ebx, ebx
je 0x41527b
push 0
push 0
call fcn.004013d8
add esp, 8
push 1
call fcn.004d9f54
pop ecx
push 0
push 0
call fcn.004013d8
add esp, 8
jmp 0x41522b
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x415478
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
mov eax, 0x4deb93
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
call fcn.004d08c0
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
mov word [ebp - 0x14], 8
mov esi, 0x7918
call fcn.00401270
mov dword [ebp - 0x34], eax
call fcn.00401270
mov edx, dword [ebp - 0x34]
sub eax, edx
cmp esi, eax
jae 0x4154ce
xor eax, eax
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
jmp 0x415602
xor eax, eax
mov dword [ebp - 0x138], eax
xor eax, eax
lea edx, [ebp - 0x134]
jmp 0x4154ea
mov ecx, dword [edx]
cmp ebx, ecx
je 0x4154f4
inc eax
add edx, 4
mov ecx, dword [ebp - 0x138]
cmp eax, ecx
jb 0x4154e0
mov edx, dword [ebp - 0x138]
cmp eax, edx
jne 0x415510
cmp edx, 0x40
jae 0x415510
mov dword [ebp + eax*4 - 0x134], ebx
inc dword [ebp - 0x138]
xor eax, eax
lea edx, [ebp - 0x138]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], 1
push eax
push 0
push edx
push 0
push 0
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
jne 0x415567
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x415554
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x415602
push 0
call sub.KERNEL32.dll_Sleep
push 0xa
call sub.KERNEL32.dll_Sleep
jmp 0x4154af
dec eax
je 0x41557d
push 0
call sub.KERNEL32.dll_Sleep
push 0xa
call sub.KERNEL32.dll_Sleep
jmp 0x4154af
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x4155bf
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4155ac
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x415602
push 0
call sub.KERNEL32.dll_Sleep
push 0xa
call sub.KERNEL32.dll_Sleep
jmp 0x4154af
test eax, eax
je 0x4154af
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
jmp 0x415602
mov esp, ebp
mov edi, dword [ebp - 0x144]
mov esi, dword [ebp - 0x140]
mov ebx, dword [ebp - 0x13c]
pop ebp
ret
Function at 0x415618
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
mov eax, 0x4deba7
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
call fcn.004d08c0
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
mov word [ebp - 0x14], 8
mov esi, 0x3e80
call fcn.00401270
mov dword [ebp - 0x34], eax
call fcn.00401270
mov edx, dword [ebp - 0x34]
sub eax, edx
cmp esi, eax
jae 0x41566e
xor eax, eax
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
jmp 0x41579c
xor eax, eax
mov dword [ebp - 0x138], eax
xor eax, eax
lea edx, [ebp - 0x134]
jmp 0x41568a
mov ecx, dword [edx]
cmp ebx, ecx
je 0x415694
inc eax
add edx, 4
mov ecx, dword [ebp - 0x138]
cmp eax, ecx
jb 0x415680
mov edx, dword [ebp - 0x138]
cmp eax, edx
jne 0x4156b0
cmp edx, 0x40
jae 0x4156b0
mov dword [ebp + eax*4 - 0x134], ebx
inc dword [ebp - 0x138]
xor eax, eax
lea edx, [ebp - 0x138]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], 1
push eax
push 0
push 0
push edx
push 0
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
jne 0x415705
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4156f4
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x41579c
push 0
push 0
call fcn.004013d8
add esp, 8
jmp 0x41564f
dec eax
je 0x415719
push 0
push 0
call fcn.004013d8
add esp, 8
jmp 0x41564f
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x415759
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x415748
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x41579c
push 0
push 0
call fcn.004013d8
add esp, 8
jmp 0x41564f
test eax, eax
je 0x41564f
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
jmp 0x41579c
mov esp, ebp
mov edi, dword [ebp - 0x144]
mov esi, dword [ebp - 0x140]
mov ebx, dword [ebp - 0x13c]
pop ebp
ret
Function at 0x41591c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, 0x4debe3
call fcn.004d08c0
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
call fcn.00411814
push esi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x41597a
push esi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x41596e
mov eax, 0x1ce9
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x415a21
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax]
mov dword [ebp - 0x34], edx
jmp 0x41597d
mov dword [ebp - 0x34], eax
mov word [ebp - 0x38], 2
mov cx, word [ebp + 0x10]
push ecx
call sub.WSOCK32.dll_htons
mov word [ebp - 0x36], ax
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
mov dword [ebx], esi
cmp esi, 0xffffffff
jne 0x4159b6
mov eax, 0x1cea
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x415a21
push 0x10
lea ecx, [ebp - 0x38]
push ecx
mov eax, dword [ebx]
push eax
call sub.WSOCK32.dll_connect
test eax, eax
je 0x4159e1
mov edx, dword [ebx]
push edx
call sub.WSOCK32.dll_closesocket
mov eax, 0x1ceb
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x415a21
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x415a21
mov esp, ebp
mov edi, dword [ebp - 0x44]
mov esi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x3c]
pop ebp
ret
Function at 0x415a50
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc8
mov eax, 0x4debf7
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
call fcn.004d08c0
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
xor ecx, ecx
mov dword [ebp - 0x134], ecx
xor eax, eax
lea edx, [ebp - 0x130]
jmp 0x415a96
mov ecx, dword [edx]
cmp ebx, ecx
je 0x415aa0
inc eax
add edx, 4
mov ecx, dword [ebp - 0x134]
cmp eax, ecx
jb 0x415a8c
mov edx, dword [ebp - 0x134]
cmp eax, edx
jne 0x415abc
cmp edx, 0x40
jae 0x415abc
mov dword [ebp + eax*4 - 0x130], ebx
inc dword [ebp - 0x134]
xor eax, eax
mov dword [ebp - 0x238], eax
xor eax, eax
lea edx, [ebp - 0x234]
jmp 0x415ad8
mov ecx, dword [edx]
cmp ebx, ecx
je 0x415ae2
inc eax
add edx, 4
mov ecx, dword [ebp - 0x238]
cmp eax, ecx
jb 0x415ace
mov edx, dword [ebp - 0x238]
cmp eax, edx
jne 0x415afe
cmp edx, 0x40
jae 0x415afe
mov dword [ebp + eax*4 - 0x234], ebx
inc dword [ebp - 0x238]
xor eax, eax
test esi, esi
mov dword [ebp - 0x30], eax
jne 0x415b0c
mov esi, 1
mov eax, esi
shl eax, 3
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
mov dword [ebp - 0x2c], eax
xor eax, eax
cmp edi, 1
jne 0x415b41
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x238]
push edx
push ecx
lea eax, [ebp - 0x134]
push 0
push eax
lea edx, [ebx + 1]
push edx
call sub.WSOCK32.dll_select
cmp edi, 2
jne 0x415b63
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x238]
push ecx
push eax
lea edx, [ebp - 0x134]
lea ecx, [ebx + 1]
push edx
push 0
push ecx
call sub.WSOCK32.dll_select
test eax, eax
jne 0x415b78
mov eax, 0x1c85
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x415bee
inc eax
jne 0x415b8c
mov eax, 0x1c86
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x415bee
lea ecx, [ebp - 0x238]
push ecx
push ebx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x415bae
mov eax, 0x1c86
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x415bee
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x415bee
mov esp, ebp
mov edi, dword [ebp - 0x244]
mov esi, dword [ebp - 0x240]
mov ebx, dword [ebp - 0x23c]
pop ebp
ret
Function at 0x415c04
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
mov eax, 0x4dec20
push ebx
push esi
push edi
call fcn.004d08c0
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
mov esi, 0x4dec0c
lea edi, [ebp - 0x3c]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
mov word [ebp - 0x14], 8
call fcn.00401270
mov eax, dword [ebp + 0x10]
mov edi, dword [eax]
xor esi, esi
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [eax], edx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x415c57
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x415c65
mov dword [ebp + 0x14], 0x2ee0
mov ecx, dword [ebp + 0x14]
push ecx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00415a50
add esp, 0xc
cmp eax, 0x1c85
jne 0x415c92
mov eax, 0x1c21
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x415d71
cmp eax, 0x1c86
jne 0x415cad
mov eax, 0x1c22
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x415d71
push 0
mov ecx, edi
sub ecx, esi
push ecx
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_recv
mov ebx, eax
test ebx, ebx
jg 0x415cf9
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x415cea
push 0
call sub.USER32.dll_MessageBeep
push 0
push 0
call fcn.004013d8
add esp, 8
jmp 0x415cad
test ebx, ebx
jne 0x415cf5
mov ebx, 0x1c24
jmp 0x415d21
mov ebx, eax
jmp 0x415d21
add esi, ebx
xor ebx, ebx
cmp edi, esi
jbe 0x415d21
mov eax, dword [ebp + 0x14]
push eax
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00415a50
add esp, 0xc
cmp eax, 0x1c85
je 0x415d21
cmp eax, 0x1c86
jne 0x415cad
test esi, esi
jne 0x415d2c
mov ecx, dword [ebp + 0xc]
mov byte [ecx + esi], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, ebx
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x415d71
mov esp, ebp
mov edi, dword [ebp - 0x48]
mov esi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x40]
pop ebp
ret
Function at 0x415d80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
mov eax, 0x4dec48
push ebx
push esi
push edi
call fcn.004d08c0
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
mov esi, 0x4dec34
lea edi, [ebp - 0x3c]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
mov word [ebp - 0x14], 8
call fcn.00401270
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
test edx, edx
mov eax, dword [eax]
mov edi, eax
jne 0x415dcd
mov dword [ebp + 0x14], 0x2ee0
test eax, eax
jne 0x415de2
xor eax, eax
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
jmp 0x415ee1
mov eax, dword [ebp + 0x14]
push eax
push 2
mov edx, dword [ebp + 8]
push edx
call fcn.00415a50
add esp, 0xc
cmp eax, 0x1c85
jne 0x415e0f
mov eax, 0x1bbd
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x415ee1
cmp eax, 0x1c86
jne 0x415e2a
mov eax, 0x1bbe
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x415ee1
xor esi, esi
push 0
mov eax, edi
sub eax, esi
push eax
mov edx, dword [ebp + 0xc]
add edx, esi
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.WSOCK32.dll_send
mov ebx, eax
test ebx, ebx
jg 0x415e78
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x415e69
push 0
call sub.USER32.dll_MessageBeep
push 0
push 0
call fcn.004013d8
add esp, 8
jmp 0x415e2c
test ebx, ebx
jne 0x415e74
mov ebx, 0x1bc0
jmp 0x415e9c
mov ebx, eax
jmp 0x415e9c
add esi, ebx
xor ebx, ebx
cmp edi, esi
jbe 0x415e9c
mov eax, dword [ebp + 0x14]
push eax
push 2
mov edx, dword [ebp + 8]
push edx
call fcn.00415a50
add esp, 0xc
mov ebx, eax
cmp ebx, 0x1c86
jmp 0x415e2c
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, ebx
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x415ee1
mov esp, ebp
mov edi, dword [ebp - 0x48]
mov esi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x40]
pop ebp
ret
Function at 0x4167ec
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 3
add esp, 0xfffff004
push eax
dec eax
jne 0x4167f5
add esp, 0xfffff7d0
mov eax, dword [ebp - 4]
mov eax, 0x4deca0
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
call fcn.004d08c0
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
test ebx, ebx
jne 0x416836
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
jmp 0x416978
mov eax, dword [ebx]
cmp eax, 0x114
je 0x41684e
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x416978
test byte [ebx + 0xc], 4
je 0x416863
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
jmp 0x416978
test byte [ebx + 0xc], 0x10
je 0x416877
mov eax, dword [ebp - 0x24]
mov dword fs:[0], eax
jmp 0x416978
mov esi, dword [ebx + 4]
xor eax, eax
mov dword [ebx + 4], eax
lea edx, [ebp - 0x2c]
or dword [ebx + 0xc], 0x20
push 0
push edx
lea ecx, [ebp - 0x1c30]
push 0x1c00
push ecx
push esi
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x416931
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x416931
mov edx, dword [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x1c30]
push ecx
call fcn.004166c8
add esp, 8
test eax, eax
je 0x416931
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x416931
lea edx, [ebp - 0x3834]
push edx
lea ecx, [ebp - 0x1c30]
push ecx
push ebx
call dword [ebx + 0x10]
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, 0xfffe
jne 0x4168f4
or dword [ebx + 0xc], 0x10
jmp 0x416931
mov edx, dword [ebp - 0x2c]
cmp edx, 0x1c00
jbe 0x416906
mov dword [ebp - 0x2c], 0x1c00
mov ecx, dword [ebp - 0x2c]
push ecx
lea eax, [ebp - 0x3834]
push eax
call fcn.00416584
add esp, 8
test eax, eax
je 0x416931
push 0
lea edx, [ebp - 0x2c]
push edx
push eax
lea ecx, [ebp - 0x3834]
push ecx
push esi
call sub.KERNEL32.dll_WriteFile
push esi
call sub.KERNEL32.dll_FlushFileBuffers
push esi
call sub.KERNEL32.dll_DisconnectNamedPipe
push esi
call sub.KERNEL32.dll_CloseHandle
mov word [ebp - 0x14], 0
jmp 0x41696e
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
mov esp, ebp
mov edi, dword [ebp - 0x3840]
mov esi, dword [ebp - 0x383c]
mov ebx, dword [ebp - 0x3838]
pop ebp
ret