joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d0c20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69877c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x79b544]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0xc], 0
je 0x4d0c9e
mov dword [ecx], 0x6b7270
mov dword [ecx + 0x90], 0
mov dword [ecx + 0xb0], 0
mov dword [ecx + 0xb4], 0
mov dword [ecx + 0xb8], 0
mov dword [ecx + 0x88], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [ecx]
push 8
mov eax, dword [eax + 4]
mov dword [ecx + eax], vtable.Poco::FileIOS.0
lea eax, [ecx + 8]
mov dword [ebp + 0xc], eax
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00474bfc
mov esi, eax
add esp, 4
test esi, esi
je 0x4d0cdc
push 1
mov dword [ebp - 4], 1
call fcn.0049ea62
add esp, 4
mov dword [esi + 4], eax
jmp 0x4d0cde
xor esi, esi
mov eax, dword [ebp + 0xc]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ebx, dword [ebp + 0xc]
push 0x1000
mov dword [ebp - 4], 2
mov dword [ebx], vtable.Poco::BasicBufferedBidirectionalStreamBuf_char__struct_std::char_traits_char___class_Poco::BufferAllocator_char__.0
mov dword [ebx + 0x38], 0x1000
mov dword [ebx + 0x3c], 0
call fcn.00474c39
push dword [ebx + 0x38]
mov dword [ebx + 0x40], eax
call fcn.00474c39
mov ecx, dword [ebx + 0x40]
add esp, 8
mov dword [ebx + 0x44], eax
add ecx, 4
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x48], 3
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x44]
mov edx, dword [ebx + 0x38]
mov dword [eax], ecx
mov eax, dword [ebx + 0x20]
mov dword [eax], ecx
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov dword [ebx], vtable.Poco::FileStreamBuf.0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0xf
mov byte [ebx + 0x50], 0
mov dword [ebx + 0x68], 0xffffffff
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x74], 0
mov dword [ecx + 0x80], eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4d1570
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x68]
cmp eax, 0xffffffff
je 0x4d15d1
mov ecx, dword [esi + 0x48]
test cl, 1
je 0x4d15d1
test cl, 2
je 0x4d1596
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
mov eax, dword [esi + 0x68]
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d15c0
lea eax, [esi + 0x50]
push eax
call fcn.004cfe30
add esp, 4
mov eax, dword [ebp - 4]
add dword [esi + 0x70], eax
adc dword [esi + 0x74], 0
pop esi
mov esp, ebp
pop ebp
ret 0xc
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4d1880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 0x68]
cmp eax, 0xffffffff
je 0x4d1927
mov ecx, dword [esi + 0x48]
test cl, 2
je 0x4d1927
test cl, 8
je 0x4d18ec
push 2
lea ecx, [ebp - 8]
xorps xmm0, xmm0
push ecx
push 0
push eax
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, eax
mov dword [ebp - 0xc], ecx
cmp ecx, 0xffffffff
jne 0x4d18e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4d18dd
lea eax, [esi + 0x50]
push eax
call fcn.004cfe30
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x68]
mov dword [esi + 0x70], ecx
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4d1916
lea eax, [esi + 0x50]
push eax
call fcn.004cfe30
add esp, 4
mov eax, dword [ebp - 4]
add dword [esi + 0x70], eax
adc dword [esi + 0x74], 0
pop esi
mov esp, ebp
pop ebp
ret 0xc
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4d8170
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x698c0d
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x79b544]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.004df8c0
push 0x79bd7c
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
mov dword [esi], vtable.Poco::Net::HTMLForm.0
mov dword [esi + 0x10], 0x64
mov dword [esi + 0x14], 0x40000
call fcn.004511d6
mov dword [esi + 0x30], 0
mov eax, esi
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0xf
mov byte [esi + 0x30], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4e6240
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69a463
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x79b544]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [edi + 0x18], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 1
call fcn.004ebcd0
lea esi, [edi + 0x40]
mov byte [ebp - 4], 2
push 0x2c
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00474bfc
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4e9390
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69a949
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x79b544]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0x10], 0
je 0x4e9408
mov dword [ecx], 0x6bb404
mov dword [ecx + 0x60], 0
mov dword [ecx + 0x80], 0
mov dword [ecx + 0x84], 0
mov dword [ecx + 0x88], 0
mov dword [ecx + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [ecx]
push 8
mov eax, dword [eax + 4]
mov dword [ecx + eax], vtable.Poco::Net::HTTPHeaderIOS.0
lea eax, [ecx + 8]
mov dword [ebp + 0x10], eax
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00474bfc
mov esi, eax
add esp, 4
test esi, esi
je 0x4e9446
push 1
mov dword [ebp - 4], 1
call fcn.0049ea62
add esp, 4
mov dword [esi + 4], eax
jmp 0x4e9448
xor esi, esi
mov eax, dword [ebp + 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ebx, dword [ebp + 0x10]
push 0
push 0x1000
mov dword [ebp - 4], 2
mov dword [ebx], vtable.Poco::BasicBufferedStreamBuf_char__struct_std::char_traits_char___class_Poco::Net::HTTPBufferAllocator_.0
mov dword [ebx + 0x38], 0x1000
mov dword [ebx + 0x3c], 0
call fcn.004ef820
mov ecx, dword [ebp + 0xc]
add esp, 8
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], ecx
lea ecx, [eax + 4]
mov eax, dword [ebx + 0xc]
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x40]
mov dword [eax], ecx
mov eax, dword [ebx + 0x20]
mov dword [eax], ecx
mov eax, dword [ebx + 0x30]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx], vtable.Poco::Net::HTTPHeaderStreamBuf.0
mov byte [ebx + 0x4c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e9d10
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69a949
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x79b544]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0x10], 0
je 0x4e9d88
mov dword [ecx], 0x6bb5ac
mov dword [ecx + 0x60], 0
mov dword [ecx + 0x80], 0
mov dword [ecx + 0x84], 0
mov dword [ecx + 0x88], 0
mov dword [ecx + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [ecx]
push 8
mov eax, dword [eax + 4]
mov dword [ecx + eax], vtable.Poco::Net::HTTPIOS.0
lea eax, [ecx + 8]
mov dword [ebp + 0x10], eax
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00474bfc
mov esi, eax
add esp, 4
test esi, esi
je 0x4e9dc6
push 1
mov dword [ebp - 4], 1
call fcn.0049ea62
add esp, 4
mov dword [esi + 4], eax
jmp 0x4e9dc8
xor esi, esi
mov eax, dword [ebp + 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ebx, dword [ebp + 0x10]
push 0
push 0x1000
mov dword [ebp - 4], 2
mov dword [ebx], vtable.Poco::BasicBufferedStreamBuf_char__struct_std::char_traits_char___class_Poco::Net::HTTPBufferAllocator_.0
mov dword [ebx + 0x38], 0x1000
mov dword [ebx + 0x3c], 0
call fcn.004ef820
mov esi, dword [ebp + 0xc]
add esp, 8
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], esi
lea ecx, [eax + 4]
mov eax, dword [ebx + 0xc]
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x40]
mov dword [eax], ecx
mov eax, dword [ebx + 0x20]
mov dword [eax], ecx
mov eax, dword [ebx + 0x30]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx], vtable.Poco::Net::HTTPStreamBuf.0
mov dword [ebx + 0x4c], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4ea540
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69abe9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x79b544]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0x18], 0
je 0x4ea5b8
mov dword [ecx], 0x6bb6b8
mov dword [ecx + 0x70], 0
mov dword [ecx + 0x90], 0
mov dword [ecx + 0x94], 0
mov dword [ecx + 0x98], 0
mov dword [ecx + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [ecx]
push 8
mov eax, dword [eax + 4]
mov dword [ecx + eax], vtable.Poco::Net::HTTPFixedLengthIOS.0
lea eax, [ecx + 8]
mov dword [ebp + 0x18], eax
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00474bfc
mov esi, eax
add esp, 4
test esi, esi
je 0x4ea5f6
push 1
mov dword [ebp - 4], 1
call fcn.0049ea62
add esp, 4
mov dword [esi + 4], eax
jmp 0x4ea5f8
xor esi, esi
mov eax, dword [ebp + 0x18]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ebx, dword [ebp + 0x18]
push 0
push 0x1000
mov dword [ebp - 4], 2
mov dword [ebx], vtable.Poco::BasicBufferedStreamBuf_char__struct_std::char_traits_char___class_Poco::Net::HTTPBufferAllocator_.0
mov dword [ebx + 0x38], 0x1000
mov dword [ebx + 0x3c], 0
call fcn.004ef820
mov ecx, dword [ebp + 0x14]
add esp, 8
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], ecx
lea ecx, [eax + 4]
mov eax, dword [ebx + 0xc]
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x40]
mov edx, dword [ebx + 0x38]
mov dword [eax], ecx
mov eax, dword [ebx + 0x20]
mov dword [eax], ecx
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov dword [ebx + 0x48], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x50], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx], vtable.Poco::Net::HTTPFixedLengthStreamBuf.0
mov dword [ebx + 0x54], ecx
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4eadd0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69ad4c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x79b544]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0x14], 0
je 0x4eae4e
mov dword [ecx], 0x6bb7c8
mov dword [ecx + 0x88], 0
mov dword [ecx + 0xa8], 0
mov dword [ecx + 0xac], 0
mov dword [ecx + 0xb0], 0
mov dword [ecx + 0x80], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [ecx]
push 8
mov eax, dword [eax + 4]
mov dword [ecx + eax], vtable.Poco::Net::HTTPChunkedIOS.0
lea eax, [ecx + 8]
mov dword [ebp + 0x14], eax
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00474bfc
mov esi, eax
add esp, 4
test esi, esi
je 0x4eae8c
push 1
mov dword [ebp - 4], 1
call fcn.0049ea62
add esp, 4
mov dword [esi + 4], eax
jmp 0x4eae8e
xor esi, esi
mov eax, dword [ebp + 0x14]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ebx, dword [ebp + 0x14]
push 0
push 0x1000
mov dword [ebp - 4], 2
mov dword [ebx], vtable.Poco::BasicBufferedStreamBuf_char__struct_std::char_traits_char___class_Poco::Net::HTTPBufferAllocator_.0
mov dword [ebx + 0x38], 0x1000
mov dword [ebx + 0x3c], 0
call fcn.004ef820
mov esi, dword [ebp + 0xc]
add esp, 8
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], esi
lea ecx, [eax + 4]
mov eax, dword [ebx + 0xc]
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x40]
mov dword [eax], ecx
mov eax, dword [ebx + 0x20]
mov dword [eax], ecx
mov eax, dword [ebx + 0x30]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov dword [ebx + 0x48], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx], vtable.Poco::Net::HTTPChunkedStreamBuf.0
mov dword [ebx + 0x4c], esi
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], 0xf
mov byte [ebx + 0x58], 0
mov dword [ebx + 0x70], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4ecfe0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69aff0
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x79b544]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x12c], esi
call fcn.004d09a0
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x10]
mov dword [ebp - 4], 0
mov dword [esi], vtable.Poco::Net::SocketImpl.0
mov dword [esi + 8], eax
call fcn.004a0400
lea ecx, [esi + 0x18]
call fcn.004a0400
lea eax, [ebp - 0x124]
mov byte [esi + 0x20], 1
push eax
mov dword [ebp - 0x124], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4ed07b
mov eax, dword [ebp - 0x120]
cmp eax, 6
jb 0x4ed07b
jne 0x4ed077
cmp dword [ebp - 0x11c], 2
jb 0x4ed07b
xor al, al
jmp 0x4ed07d
mov al, 1
mov byte [esi + 0x21], al
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049b511
mov esp, ebp
pop ebp
ret 4

Function at 0x4ed0a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69aff0
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x79b544]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x12c], esi
call fcn.004d09a0
lea ecx, [esi + 0x10]
mov dword [ebp - 4], 0
mov dword [esi], vtable.Poco::Net::SocketImpl.0
mov dword [esi + 8], 0xffffffff
call fcn.004a0400
lea ecx, [esi + 0x18]
call fcn.004a0400
lea eax, [ebp - 0x124]
mov byte [esi + 0x20], 1
push eax
mov dword [ebp - 0x124], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4ed13c
mov eax, dword [ebp - 0x120]
cmp eax, 6
jb 0x4ed13c
jne 0x4ed138
cmp dword [ebp - 0x11c], 2
jb 0x4ed13c
xor al, al
jmp 0x4ed13e
mov al, 1
mov byte [esi + 0x21], al
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049b511
mov esp, ebp
pop ebp
ret

Function at 0x4ed300
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x79b544]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xb4], esi
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
je 0x4ed38e
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xb4], 0x80
push ecx
lea ecx, [ebp - 0xb0]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4ed36f
push dword [ebp - 0xb4]
lea eax, [ebp - 0xb0]
mov ecx, esi
push eax
call fcn.004e4b80
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b511
mov esp, ebp
pop ebp
ret 4
call fcn.004ee1e0
mov ecx, esi
call fcn.004e4c70
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0049b511
mov esp, ebp
pop ebp
ret 4
push 0
lea ecx, [ebp - 0x30]
call fcn.004d8840
push 0x78a774
lea eax, [ebp - 0x30]
push eax
call fcn.00506dca
int3
Function at 0x4ed3b0
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
mov dword [ebp - 0x10], ebx
push eax
push 0x4004667f
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x4ed3de
call fcn.004ee1e0
cmp dword [ebp - 4], 0
je 0x4ed4b9
mov eax, dword [ebx]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], 4
push ecx
push 0x1008
push 0xffff
mov ecx, ebx
call dword [eax + 0x98]
cmp dword [ebp - 0xc], 2
jne 0x4ed4b9
push esi
push edi
mov edi, dword [ebp - 4]
xor esi, esi
xor ebx, ebx
test edi, edi
je 0x4ed476
cmp edi, 0x7fffffff
ja 0x4ed4c6
cmp edi, 0x1000
jb 0x4ed459
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x4ed4cb
push eax
call fcn.00474bfc
add esp, 4
test eax, eax
je 0x4ed4c1
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x4ed464
push edi
call fcn.00474bfc
add esp, 4
mov esi, eax
push edi
push 0
push esi
call fcn.00506c70
lea ebx, [esi + edi]
add esp, 0xc
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push 0
push 0
push 2
push edi
push esi
push dword [eax + 8]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp - 4], eax
test esi, esi
je 0x4ed4b7
sub ebx, esi
cmp ebx, 0x1000
jb 0x4ed4ad
mov ecx, dword [esi - 4]
add ebx, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x4ed4c1
mov esi, ecx
push ebx
push esi
call fcn.0049ba50
add esp, 8
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.005122ef
call fcn.004bcf30
call fcn.004b5cf0
int3

Function at 0x4ed7c0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6977cd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x79b544]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 8], 0xffffffff
mov edi, dword [ebp + 8]
jne 0x4ed808
mov esi, dword [ebx]
mov ecx, edi
call fcn.004e4ef0
push eax
mov ecx, ebx
call dword [esi + 0xa8]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
nop
mov ecx, edi
call fcn.004e5300
push eax
mov ecx, edi
call fcn.004e4e60
push eax
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4ed886
call esi
cmp eax, 0x2714
je 0x4ed810
call esi
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x28]
push eax
call fcn.004e5540
push eax
push esi
mov dword [ebp - 4], 0
call fcn.004edc00
mov edx, dword [ebp - 0x14]
add esp, 8
cmp edx, 0x10
jb 0x4ed886
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4ed87c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ed8a4
push edx
push ecx
call fcn.0049ba50
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049b511
mov esp, ebp
pop ebp
ret 4
call fcn.005122ef
int3