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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d638
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5be1ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00414ac0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push edx
mov dword [ebp - 4], 0
mov dword [esi], vtable.Poco::BasicBufferedStreamBuf_char__struct_std::char_traits_char___class_Poco::BufferAllocator_char__.0
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
call fcn.00511cd3
mov ecx, dword [ebp + 0x10]
add esp, 4
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ecx
lea ecx, [eax + 4]
mov eax, dword [esi + 0xc]
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
sub ecx, ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x38]
add edx, ecx
mov dword [eax], ecx
sub edx, ecx
mov eax, dword [esi + 0x20]
mov dword [eax], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4ea170
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ca68
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5be1ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4ea1ec
push 0x22
push str.cannot_allocate_thread_context_key
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00407520
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x54]
call fcn.00452680
push 0x5b3724
lea eax, [ebp - 0x54]
push eax
call fcn.004ae11e
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.004951c6
mov esp, ebp
pop ebp
ret
Function at 0x4ea6c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d828
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5be1ec]
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
mov dword [ebp - 0x5c], ebx
cmp dword [ebx + 0x18], 0xffffffff
jne 0x4ea6fb
call fcn.004ea4d0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
lea ecx, [edi + 0x10]
add eax, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 0x58], ecx
cmp eax, 0xf
je 0x4ea74f
push 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00407d20
mov ecx, dword [ebp - 0x58]
test al, al
je 0x4ea74f
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x28]
mov byte [eax], 0
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x4ea75b
mov esi, dword [edi]
jmp 0x4ea75d
mov esi, edi
cmp eax, 0x10
jb 0x4ea764
mov edi, dword [edi]
mov eax, dword [ecx]
xor edx, edx
add eax, edi
xor edi, edi
mov ecx, eax
sub ecx, esi
cmp esi, eax
cmova ecx, edx
mov dword [ebp - 0x58], ecx
test ecx, ecx
je 0x4ea7ad
mov ebx, ecx
nop
mov al, byte [esi]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x58], al
cmp al, 0xa
jne 0x4ea79a
push 2
push 0x5488b8
call fcn.004076c0
jmp 0x4ea7a4
push dword [ebp - 0x58]
push 1
call fcn.00413550
inc edi
inc esi
cmp edi, ebx
jne 0x4ea780
mov ebx, dword [ebp - 0x5c]
push 2
push 0x5488b8
lea ecx, [ebp - 0x28]
call fcn.004076c0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x60]
push 0
push ecx
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4ea7f6
push eax
push ebx
lea ecx, [ebp - 0x54]
call fcn.00452900
push 0x5b3c30
lea eax, [ebp - 0x54]
push eax
call fcn.004ae11e
cmp byte [ebp + 0xc], 0
je 0x4ea821
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x4ea821
push eax
push ebx
lea ecx, [ebp - 0x54]
call fcn.00452900
push 0x5b3c30
lea eax, [ebp - 0x54]
push eax
call fcn.004ae11e
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4ea86b
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x4ea862
test cl, 0x1f
je 0x4ea83e
call fcn.004b948a
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4ea84a
call fcn.004b948a
sub ecx, eax
cmp ecx, 4
jae 0x4ea856
call fcn.004b948a
cmp ecx, 0x23
jbe 0x4ea860
call fcn.004b948a
mov ecx, eax
push ecx
call fcn.00495700
add esp, 4
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.004951c6
mov esp, ebp
pop ebp
ret 8
Function at 0x4eb620
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d879
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5be1ec]
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 esi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
push ebx
call fcn.004e8890
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
jne 0x4eb6b7
push eax
push ebx
lea ecx, [ebp - 0x54]
call fcn.00451b90
push 0x5b36a4
lea eax, [ebp - 0x54]
push eax
call fcn.004ae11e
xor ebx, ebx
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x5c], 1
test edi, edi
je 0x4eb6e8
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00511cd3
mov ebx, eax
add esp, 4
mov dword [ebp - 0x60], ebx
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push ebx
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x4eb726
mov eax, dword [esi]
jmp 0x4eb728
mov eax, esi
mov byte [eax], 0
push esi
lea eax, [edi - 1]
mov dword [ebp - 0x58], 1
push eax
push ebx
call fcn.004e89f0
push ebx
call fcn.0049523b
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp ecx, 8
jb 0x4eb75b
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00443990
mov eax, esi
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.004951c6
mov esp, ebp
pop ebp
ret

Function at 0x4eb780
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d8a8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5be1ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.004e8890
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp - 0x14]
test eax, eax
setne bl
cmp ecx, 8
jb 0x4eb800
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00443990
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004951c6
mov esp, ebp
pop ebp
ret
Function at 0x4eb840
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d8f1
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x5be1ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x7c], 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x78], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x4eb8d5
push 0x18
push str.Cannot_get_computer_name
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x48], al
call fcn.00407520
push 0
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x74]
call fcn.00452680
push 0x5b3724
lea eax, [ebp - 0x74]
push eax
call fcn.004ae11e
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x4eb8fb
mov eax, dword [esi]
jmp 0x4eb8fd
mov eax, esi
mov byte [eax], 0
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push esi
push eax
mov dword [ebp - 0x7c], 1
call fcn.004e89b0
add esp, 8
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.004951c6
mov esp, ebp
pop ebp
ret
Function at 0x4fe5a0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540bd8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5be1ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00500040
push 0xffffffffffffffff
lea ecx, [esi + 0x18]
mov dword [esi], vtable.Poco::Net::HTMLForm.0
mov dword [esi + 0x10], 0x64
mov dword [esi + 0x14], 0x40000
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x5c5b10
mov dword [ebp - 4], 0
mov byte [ecx], 0
call fcn.004075e0
mov dword [esi + 0x44], 0xf
mov eax, esi
mov dword [esi + 0x40], 0
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 0x503a50
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53fae6
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5be1ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x40]
lea ecx, [edi + 0x40]
push eax
mov dword [ebp - 4], 0
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.00504130
push dword [edi + 0x40]
call fcn.00495700
add esp, 4
lea ecx, [edi + 0x30]
call fcn.0050d790
mov eax, dword [edi + 0x2c]
lea esi, [edi + 0x18]
cmp eax, 0x10
jb 0x503ab9
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00407c40
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x503acf
mov esi, dword [esi]
mov byte [esi], 0
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x503ae5
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.00407c40
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x503b0f
mov eax, dword [edi]
mov byte [eax], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [edi], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5059a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d638
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5be1ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00414ac0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push edx
mov dword [ebp - 4], 0
mov dword [esi], vtable.Poco::BasicBufferedStreamBuf_char__struct_std::char_traits_char___class_Poco::Net::HTTPBufferAllocator_.0
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
call fcn.0050d6e0
mov ecx, dword [ebp + 0x10]
add esp, 8
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ecx
lea ecx, [eax + 4]
mov eax, dword [esi + 0xc]
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
sub ecx, ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x38]
add edx, ecx
mov dword [eax], ecx
sub edx, ecx
mov eax, dword [esi + 0x20]
mov dword [eax], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x509ab0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540618
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5be1ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], 0
cmp dword [eax + 0x10], 0
je 0x509b85
cmp dword [eax + 0x14], 0x10
xorps xmm0, xmm0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x58], 4
movups xmmword [ebp - 0x48], xmm0
jb 0x509b0e
mov eax, dword [eax]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x58]
push ecx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x509b85
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov edi, dword [eax + 0x18]
mov esi, dword [edi + 0x18]
call fcn.004ef2b0
mov dword [ebp - 0x2c], vtable.Poco::Net::Impl::IPv6AddressImpl.0
mov dword [ebp - 0x14], esi
movups xmm0, xmmword [edi + 8]
movups xmmword [ebp - 0x24], xmm0
push dword [ebp - 0x30]
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov esi, dword [ebp - 0x34]
mov ecx, esi
call fcn.004ef2b0
movups xmm0, xmmword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
mov dword [esi], vtable.Poco::Net::Impl::IPv6AddressImpl.0
mov dword [esi + 0x18], eax
movups xmmword [esi + 8], xmm0
mov dword [ebp - 0x2c], vtable.Poco::Net::Impl::IPAddressImpl.0
call fcn.004ef2e0
jmp 0x509ba0
mov ecx, esi
call fcn.004ef2b0
xorps xmm0, xmm0
mov dword [esi], vtable.Poco::Net::Impl::IPv6AddressImpl.0
mov dword [esi + 0x18], 0
movups xmmword [esi + 8], xmm0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004951c6
mov esp, ebp
pop ebp
ret
Function at 0x50ac10
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
movups xmmword [ebp - 0x28], xmm0
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 8], 0
movups xmmword [ebp - 0x18], xmm0
mov dword [ebp - 0x28], eax
jb 0x50ac40
mov eax, dword [esi]
jmp 0x50ac42
mov eax, esi
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x50ac72
push dword [ebp - 4]
mov ecx, edi
call fcn.0050a5b0
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push eax
call fcn.0050aa00
int3

Function at 0x50adf0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54080b
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x5be1ec]
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.004ef2b0
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.00406dc0
lea ecx, [esi + 0x18]
call fcn.00406dc0
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 0x50ae8b
mov eax, dword [ebp - 0x120]
cmp eax, 6
jb 0x50ae8b
jne 0x50ae87
cmp dword [ebp - 0x11c], 2
jb 0x50ae8b
xor al, al
jmp 0x50ae8d
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.004951c6
mov esp, ebp
pop ebp
ret 4

Function at 0x50aeb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54080b
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x5be1ec]
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.004ef2b0
lea ecx, [esi + 0x10]
mov dword [ebp - 4], 0
mov dword [esi], vtable.Poco::Net::SocketImpl.0
mov dword [esi + 8], 0xffffffff
call fcn.00406dc0
lea ecx, [esi + 0x18]
call fcn.00406dc0
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 0x50af4c
mov eax, dword [ebp - 0x120]
cmp eax, 6
jb 0x50af4c
jne 0x50af48
cmp dword [ebp - 0x11c], 2
jb 0x50af4c
xor al, al
jmp 0x50af4e
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.004951c6
mov esp, ebp
pop ebp
ret
Function at 0x50b110
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x5be1ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0xb8], 0
push esi
mov esi, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x50b1a2
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 0x50b183
push dword [ebp - 0xb4]
lea eax, [ebp - 0xb0]
mov ecx, esi
push eax
call fcn.00502240
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004951c6
mov esp, ebp
pop ebp
ret 4
call fcn.0050be90
mov ecx, esi
call fcn.00502340
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004951c6
mov esp, ebp
pop ebp
ret 4
push 0
lea ecx, [ebp - 0x30]
call fcn.00500cb0
push 0x5b9a40
lea eax, [ebp - 0x30]
push eax
call fcn.004ae11e
int3

Function at 0x50b1c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f088
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5be1ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0x4004667f
push dword [ecx + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x50b246
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
push ecx
push eax
call fcn.0050b8c0
mov eax, dword [ebp - 0x14]
add esp, 8
cmp eax, 0x10
jb 0x50b246
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407c40
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004951c6
mov esp, ebp
pop ebp
ret

Function at 0x50b500
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ccf8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5be1ec]
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 0x50b548
mov esi, dword [ebx]
mov ecx, edi
call fcn.00502550
push eax
mov ecx, ebx
call dword [esi + 0xa4]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
nop
mov ecx, edi
call fcn.005028f0
push eax
mov ecx, edi
call fcn.005024c0
push eax
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x50b5ab
call esi
cmp eax, 0x2714
je 0x50b550
call esi
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x28]
push eax
call fcn.00502b50
push eax
push esi
mov dword [ebp - 4], 0
call fcn.0050b8c0
mov eax, dword [ebp - 0x14]
add esp, 8
cmp eax, 0x10
jb 0x50b5ab
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407c40
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.004951c6
mov esp, ebp
pop ebp
ret 4
Function at 0x50b5d0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540918
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5be1ec]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
cmp dword [edi + 8], 0xffffffff
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], eax
jne 0x50b624
mov esi, dword [edi]
mov ecx, ebx
call fcn.00502550
push eax
mov ecx, edi
call dword [esi + 0xa4]
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x98]
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.005028f0
mov ecx, ebx
mov esi, eax
call fcn.005024c0
push esi
push eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x50b720
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2734
je 0x50b697
cmp esi, 0x2733
je 0x50b697
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.00502b50
push eax
push esi
mov byte [ebp - 4], 1
call fcn.0050b8c0
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00406e80
mov eax, dword [edi]
mov ecx, edi
push 7
push dword [ebp - 0x74]
mov eax, dword [eax + 0x64]
call eax
test al, al
jne 0x50b6e6
push str.connect_timed_out
lea ecx, [ebp - 0x2c]
call fcn.00406fc0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.00502b50
push 0
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x58]
call fcn.00452740
push 0x5b36e4
lea eax, [ebp - 0x58]
push eax
call fcn.004ae11e
mov eax, dword [edi]
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], 0
push ecx
push 0x1007
push 0xffff
mov ecx, edi
mov dword [ebp - 0x78], 4
call dword [eax + 0x94]
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x50b720
push eax
call fcn.0050b840
add esp, 4
mov eax, dword [edi]
mov ecx, edi
push 1
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x98]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004951c6
mov esp, ebp
pop ebp
ret 8
Function at 0x50b770
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ccf8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5be1ec]
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 edi, ecx
cmp dword [edi + 8], 0xffffffff
mov ebx, dword [ebp + 8]
jne 0x50b7b8
mov esi, dword [edi]
mov ecx, ebx
call fcn.00502550
push eax
mov ecx, edi
call dword [esi + 0xa4]
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x98]
mov ecx, ebx
call fcn.005028f0
push eax
mov ecx, ebx
call fcn.005024c0
push eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x50b81d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2734
je 0x50b81d
cmp esi, 0x2733
je 0x50b81d
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.00502b50
push eax
push esi
mov dword [ebp - 4], 0
call fcn.0050b8c0
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.00406e80
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.004951c6
mov esp, ebp
pop ebp
ret 4