joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475184
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00474d68
test al, al
je 0x475204
xor eax, eax
push ebp
push 0x4751fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00474d1c
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.004263cc
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4751e7
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475204
mov eax, dword [ebp - 4]
call fcn.00474d38
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47520c
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00474d68
test al, al
je 0x47528c
xor eax, eax
push ebp
push 0x475285
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00474d1c
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x47526f
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47528c
mov eax, dword [ebp - 4]
call fcn.00474d38
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4752e0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.00474d68
test al, al
je 0x475334
xor eax, eax
push ebp
push 0x47532d
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475334
mov eax, dword [ebp - 4]
call fcn.00474d38
ret
mov eax, dword [ebp - 8]
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x47533c
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.00474d68
test al, al
je 0x47539c
xor eax, eax
push ebp
push 0x475395
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00474d1c
push esi
movzx eax, bx
push eax
call sub.user32.dll_SetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47539c
mov eax, dword [ebp - 4]
call fcn.00474d38
ret
mov eax, dword [ebp - 8]
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x47841c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x47844a
mov eax, ebx
call fcn.00478ed4
cmp dword [ebx + 0x3c], 0
je 0x478443
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4784bb
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x4784ad
cmp dword [ebx + 8], 0
je 0x47846c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x47847e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4784ad
cmp dword [ebx + 8], 0
je 0x47845f
cmp eax, 3
je 0x478491
dec eax
jne 0x47845f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47845f
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x47845f
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4784d9
cmp dword [ebx + 0x10], 0xcc
je 0x4784d9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004784e4
pop ebx
ret

Function at 0x488884
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x413a8c]
call fcn.00405200
xor eax, eax
push ebp
push 0x4889c8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4f6a2c], 0
jne 0x4888d7
mov ecx, dword [0x531118]
mov dl, 1
mov eax, dword [0x408090]
call fcn.0040c568
call fcn.00403f1c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.0040303c
mov eax, ebx
call fcn.00404e28
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4889d8
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.0040667c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404e38
test eax, eax
jle 0x48896f
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x488968
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004047dc
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004047c4
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408f3c
test eax, eax
jne 0x488968
mov ebx, 0x15
jmp 0x488974
mov ebx, 0x10
jmp 0x488974
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4f6a2c]
call fcn.004887dc
mov eax, dword [ebp - 8]
call fcn.004887dc
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406694
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4889cf
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404580
lea eax, [ebp - 0x10]
mov edx, dword [0x413a8c]
call fcn.004052d0
ret
Function at 0x489970
Capabilities:
Inspect section memory permissions

Disassembly:
xor edx, edx
test eax, 0x4000000
je 0x48997f
or edx, 0x200
test eax, 0x20000000
je 0x4899b3
test eax, 0x40000000
je 0x48999e
test eax, 0x80000000
je 0x489999
or edx, 0x40
jmp 0x4899da
or edx, 0x20
jmp 0x4899da
test eax, 0x80000000
je 0x4899ad
or edx, 0x80
jmp 0x4899da
or edx, 0x10
mov eax, edx
ret
test eax, 0x40000000
je 0x4899cb
test eax, 0x80000000
je 0x4899c6
or edx, 4
jmp 0x4899da
or edx, 2
jmp 0x4899da
test eax, 0x80000000
je 0x4899d7
or edx, 8
jmp 0x4899da
or edx, 1
mov eax, edx
ret
Function at 0x48bc58
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x48bca9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x48bc90
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x48bc80
jmp 0x48bca9
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x48bc91
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x499168
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
call fcn.004171c8
mov esi, eax
xor eax, eax
push ebp
push 0x4991e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [esi + 8]
dec ebx
cmp ebx, 0
jl 0x4991c6
mov edx, ebx
mov eax, esi
call fcn.00416d5c
test byte [eax + 0x48], 1
je 0x4991c0
push 0
mov edx, ebx
mov eax, esi
call fcn.00416d5c
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov edx, ebx
mov eax, esi
call fcn.00416c4c
dec ebx
cmp ebx, 0xffffffff
jne 0x499194
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4991e9
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
call fcn.0041722c
ret

Function at 0x49a524
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x49a5ad
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x532d50
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x49a597
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040bc4c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x49a5c4
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x531828]
mov dl, 1
mov eax, dword [0x4995a4]
call fcn.0040c5a4
call fcn.00403f1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a5b4
lea eax, [ebp - 0x1c]
call fcn.0040455c
ret

Function at 0x49ac90
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0049abb4
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.0040394c
cmp byte [ebx + 4], 0
jne 0x49acb8
mov word [ebx + 0x1c], 2
jmp 0x49acbe
mov word [ebx + 0x1c], 0x17
push 0x1c
lea eax, [ebx + 0x1c]
push eax
mov eax, dword [ebx + 8]
push eax
call sub.wsock32.dll_connect
mov edx, 0x49ad08
call fcn.0049a46c
mov byte [ebx + 0x39], 0
test byte [ebx + 0x38], 0x10
jne 0x49acfa
cmp dword [ebx + 8], 0xffffffff
setne al
mov byte [ebx + 0xc], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.0040394c
pop esi
pop ebx
ret
Function at 0x49ad2c
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0049aa34
xor eax, eax
push ebp
push 0x49adce
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040455c
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0xffffffff
jne 0x49ad65
call fcn.00403fc8
jmp 0x49add5
mov dword [ebp - 8], 0x1c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.wsock32.dll_getsockname
test eax, eax
jne 0x49adb8
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
jne 0x49ad9c
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x20]
push eax
call sub.Ntdll.dll_RtlIpv4AddressToStringA
jmp 0x49ada9
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.Ntdll.dll_RtlIpv6AddressToStringA
mov eax, ebx
lea edx, [ebp - 0x54]
mov ecx, 0x30
call fcn.004047c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49add5
mov eax, dword [ebp - 4]
call fcn.0049aa40
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49af74
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x49afa4
mov ecx, dword [0x531a0c]
mov dl, 1
mov eax, dword [0x4995a4]
call fcn.0040c568
call fcn.00403f1c
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
jne 0x49afc0
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
jmp 0x49afd1
push 0
push 1
push 0x17
call sub.wsock32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0xffffffff
jne 0x49aff1
mov ecx, dword [0x5315b0]
mov dl, 1
mov eax, dword [0x4995a4]
call fcn.0040c568
call fcn.00403f1c
xor eax, eax
push ebp
push 0x49b073
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.0040394c
cmp byte [ebp + 8], 0
je 0x49b04e
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0049aea4
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x20]
lea edi, [eax + 0x1c]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0049ac10
jmp 0x49b069
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, edi
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0049a764
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49b090
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x49b09c
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x49b0cc
mov ecx, dword [0x531668]
mov dl, 1
mov eax, dword [0x4995a4]
call fcn.0040c568
call fcn.00403f1c
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
jne 0x49b0e8
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
jmp 0x49b0f9
push 0
push 1
push 0x17
call sub.wsock32.dll_socket
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0xffffffff
jne 0x49b119
mov ecx, dword [0x5315b0]
mov dl, 1
mov eax, dword [0x4995a4]
call fcn.0040c568
call fcn.00403f1c
xor eax, eax
push ebp
push 0x49b196
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.0040394c
cmp byte [ebp + 8], 0
je 0x49b173
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0049aea4
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x20]
lea edi, [eax + 0x1c]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0049ac90
jmp 0x49b18c
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, edi
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0049a764
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49b1b3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49b378
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0049aa34
xor eax, eax
push ebp
push 0x49b4ea
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x49b4d4
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0xffffffff
je 0x49b3c3
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
jne 0x49b3cd
call fcn.00403fc8
jmp 0x49b4f1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00419594
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 8]
mov ebx, eax
test ebx, ebx
jle 0x49b4c9
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.wsock32.dll_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x49b47b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x49b468
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.0040394c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0049b330
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x49b4fc]
cmp dl, byte [eax + 0x38]
je 0x49b4d0
call fcn.0040c444
jmp 0x49b4d0
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004195b4
jmp 0x49b4d0
cmp ecx, ebx
jge 0x49b497
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004195b4
jmp 0x49b3cd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00419594
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004195c8
cmp edx, dword [esp + 4]
jne 0x49b4b8
cmp eax, dword [esp]
pop edx
pop eax
jne 0x49b3cd
push ebp
call fcn.0049b330
pop ecx
jmp 0x49b4d0
push ebp
call fcn.0049b330
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b4f1
mov eax, dword [ebp - 4]
call fcn.0049aa40
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49b500
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49b622
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0049aa34
xor eax, eax
push ebp
push 0x49b605
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
jne 0x49b550
call fcn.00403fc8
jmp 0x49b60c
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x49b5ef
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x49b5ef
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.0040394c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x49b5ef
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040bc4c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x49b63c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x531828]
mov dl, 1
mov eax, dword [0x4995a4]
call fcn.0040c5a4
call fcn.00403f1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b60c
mov eax, dword [ebp - 4]
call fcn.0049aa40
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b629
lea eax, [ebp - 0x28]
call fcn.0040455c
ret
Function at 0x49b688
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49b7d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0049aa34
xor eax, eax
push ebp
push 0x49b7b5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x49b6ed
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x49b6ed
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x49b79f
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
jne 0x49b700
call fcn.00403fc8
jmp 0x49b7bc
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x49b79f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x49b79f
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.0040394c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x49b79f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040bc4c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x49b7ec
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x531828]
mov dl, 1
mov eax, dword [0x4995a4]
call fcn.0040c5a4
call fcn.00403f1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b7bc
mov eax, dword [ebp - 4]
call fcn.0049aa40
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b7d9
lea eax, [ebp - 0x28]
call fcn.0040455c
ret
Function at 0x49d230
Capabilities:
Create pipe

Disassembly:
push ebx
add esp, 0xffffffe8
mov ebx, eax
mov eax, ebx
call fcn.0049d3d4
mov dword [esp + 0xc], 0xc
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0xffffffff
push 0
lea eax, [esp + 0x10]
push eax
lea eax, [ebx + 0x40]
push eax
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
jne 0x49d271
call fcn.0040da94
push 0
lea eax, [esp + 0x10]
push eax
lea eax, [ebx + 0x3c]
push eax
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
jne 0x49d28f
call fcn.0040da94
push 0
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [ebx + 0x44]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
jne 0x49d2ad
call fcn.0040da94
push 2
push 0
push 0
lea eax, [ebx + 0x34]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
jne 0x49d2d6
call fcn.0040da94
push 2
push 0
push 0
lea eax, [ebx + 0x30]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
mov eax, dword [esp + 0x18]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
jne 0x49d2ff
call fcn.0040da94
push 2
push 0
push 0
lea eax, [ebx + 0x38]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
jne 0x49d328
call fcn.0040da94
mov eax, dword [esp]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_CloseHandle_1
mov dl, 1
mov eax, dword [0x414d94]
call fcn.00403720
mov dword [ebx + 0x70], eax
mov dl, 1
mov eax, dword [0x414d94]
call fcn.00403720
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x78], eax
xor eax, eax
mov dword [ebx + 0x7c], eax
mov eax, dword [ebx + 0x68]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebx + 0x64]
mov edx, dword [eax]
call dword [edx + 0x44]
add esp, 0x18
pop ebx
ret