joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450740
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
lea ebx, [ebx]
mov ecx, dword [esi*8 + 0x5bbbe4]
mov eax, ebx
lea esp, [esp]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x450780
test dl, dl
je 0x45077c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x450780
add ecx, 2
add eax, 2
test dl, dl
jne 0x450760
xor eax, eax
jmp 0x450785
sbb eax, eax
or eax, 1
test eax, eax
je 0x45084a
inc esi
cmp esi, 0x55
jb 0x450750
push edi
xor edi, edi
xor esi, esi
jmp 0x4507a0
mov eax, dword [esi + 0x5bbe90]
mov ecx, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4507c8
test dl, dl
je 0x4507c4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4507c8
add eax, 2
add ecx, 2
test dl, dl
jne 0x4507a8
xor eax, eax
jmp 0x4507cd
sbb eax, eax
or eax, 1
test eax, eax
je 0x45083b
add esi, 0xc
inc edi
cmp esi, 0x21c
jb 0x4507a0
xor edi, edi
xor esi, esi
mov eax, dword [esi + 0x5bc0b0]
mov ecx, ebx
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x450810
test dl, dl
je 0x45080c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x450810
add eax, 2
add ecx, 2
test dl, dl
jne 0x4507f0
xor eax, eax
jmp 0x450815
sbb eax, eax
or eax, 1
test eax, eax
je 0x45082c
add esi, 0xc
inc edi
cmp esi, 0xcc
jb 0x4507e1
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
lea eax, [edi + edi*2]
mov eax, dword [eax*4 + 0x5bc0a8]
pop edi
pop esi
pop ebx
pop ebp
ret
lea eax, [edi + edi*2]
mov eax, dword [eax*4 + 0x5bbe88]
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi*8 + 0x5bbbe0]
pop esi
pop ebx
pop ebp
ret

Function at 0x450860
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
jmp 0x450870
cmp dword [eax*8 + 0x5bbbe0], ecx
je 0x4508d2
inc eax
cmp eax, 0x55
jb 0x450870
xor edx, edx
xor eax, eax
cmp dword [eax + 0x5bbe88], ecx
je 0x4508c6
add eax, 0xc
inc edx
cmp eax, 0x21c
jb 0x450883
xor edx, edx
xor eax, eax
lea ebx, [ebx]
cmp dword [eax + 0x5bc0a8], ecx
je 0x4508ba
add eax, 0xc
inc edx
cmp eax, 0xcc
jb 0x4508a0
mov eax, str.unknown
pop ebp
ret
lea eax, [edx + edx*2]
mov eax, dword [eax*4 + 0x5bc0b0]
pop ebp
ret
lea eax, [edx + edx*2]
mov eax, dword [eax*4 + 0x5bbe90]
pop ebp
ret
mov eax, dword [eax*8 + 0x5bbbe4]
pop ebp
ret
Function at 0x4508e0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push 8
push 1
xor esi, esi
call fcn.00580d1f
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x450902
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push edi
test al, 1
je 0x450963
push 0x2b0
push ebx
call fcn.00580d5f
mov edi, eax
add esp, 8
test edi, edi
je 0x450a2f
mov ecx, 0x5bbbe4
mov dword [ebp - 4], esi
sub ecx, edi
mov ebx, edi
mov dword [ebp - 8], ecx
mov eax, dword [ecx + edi - 4]
mov dword [edi], eax
push dword [ecx + edi]
call fcn.00580c20
add esp, 4
mov dword [edi + 4], eax
test eax, eax
je 0x450a2f
mov eax, dword [ebp - 4]
inc esi
mov ecx, dword [ebp - 8]
inc eax
add edi, 8
mov dword [ebp - 4], eax
cmp eax, 0x55
jb 0x450931
mov eax, dword [ebp + 8]
test al, 2
je 0x4509c1
lea eax, [esi*8 + 0x170]
push eax
push ebx
call fcn.00580d5f
mov ecx, eax
add esp, 8
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x450a2f
mov ebx, ecx
xor edi, edi
lea esp, [esp]
mov eax, dword [edi + 0x5bbe88]
mov dword [ecx + esi*8], eax
push dword [edi + 0x5bbe90]
call fcn.00580c20
mov ecx, dword [ebp - 8]
add esp, 4
mov dword [ecx + esi*8 + 4], eax
test eax, eax
je 0x450a2f
add edi, 0xc
inc esi
cmp edi, 0x21c
jb 0x450990
mov eax, dword [ebp + 8]
test al, 4
je 0x450a1e
lea eax, [esi*8 + 0x90]
push eax
push ebx
call fcn.00580d5f
mov ecx, eax
add esp, 8
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x450a2f
mov ebx, ecx
xor edi, edi
jmp 0x4509f0
mov eax, dword [edi + 0x5bc0a8]
mov dword [ecx + esi*8], eax
push dword [edi + 0x5bc0b0]
call fcn.00580c20
mov ecx, dword [ebp - 8]
add esp, 4
mov dword [ecx + esi*8 + 4], eax
test eax, eax
je 0x450a2f
add edi, 0xc
inc esi
cmp edi, 0xcc
jb 0x4509f0
xorps xmm0, xmm0
mov eax, ebx
pop edi
movq qword [ebx + esi*8], xmm0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x450a61
cmp dword [ebx], 0
je 0x450a58
lea esi, [ebx + 4]
jmp 0x450a40
mov eax, dword [esi]
test eax, eax
je 0x450a58
push eax
call fcn.00580204
add esi, 8
add esp, 4
cmp dword [esi - 4], 0
jne 0x450a40
push ebx
call fcn.00580204
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b560
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x45b570
xor eax, eax
pop edi
pop ebp
ret
push esi
push 0x128
push 1
call fcn.00580d1f
mov esi, eax
add esp, 8
test esi, esi
je 0x45b603
push edi
push esi
mov dword [esi], edi
call fcn.0045b840
add esp, 8
push 0
push 0
push edi
push 0x45b610
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x124], eax
test eax, eax
jne 0x45b609
push 4
push str.com.freerdp.core.message
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042f7e0
add esp, 8
test eax, eax
je 0x45b5fa
push str.Failed_to_create_proxy_thread
push str.update_message_proxy_new
push str.C:BuildFreeRDP_stable_1.1BuildFreeRDPlibfreerdpcoremessage.c
push 0xa86
push 4
push 0
push str.com.freerdp.core.message
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042fce0
add esp, 0x1c
push esi
call fcn.00580204
add esp, 4
pop esi
xor eax, eax
pop edi
pop ebp
ret
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x45fe50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x3c], 0
je 0x45fe96
push edi
mov edi, edi
push dword [esi]
mov edi, dword [esi + 0x3c]
push 1
push 0x10
push edi
call fcn.0058317c
add esp, 0x10
cmp eax, 1
jne 0x45fe88
push dword [esi]
push eax
push dword [edi + 0x14]
push dword [edi + 0x10]
call fcn.0058317c
add esp, 0x10
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + 0x18]
mov dword [esi + 0x3c], eax
test eax, eax
jne 0x45fe60
pop edi
mov eax, dword [esi]
pop esi
test eax, eax
je 0x45fea6
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00581780
pop ebp
ret

Function at 0x45ff00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax]
mov eax, dword [ebp + 0xc]
push 1
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.005829f0
dec eax
add esp, 0x10
neg eax
sbb eax, eax
inc eax
pop ebp
ret

Function at 0x45ff30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push dword [esi]
call fcn.00582bd3
mov ecx, dword [esi + 0x10]
add esp, 4
sub ecx, eax
mov eax, dword [esi + 0x14]
sbb eax, edx
test eax, eax
jg 0x45ff5b
jl 0x45ff56
cmp ecx, 0x10
ja 0x45ff5b
xor eax, eax
pop esi
pop ebp
ret
push dword [esi]
mov esi, dword [ebp + 0xc]
push 1
push 0x10
push esi
call fcn.005829f0
mov eax, dword [esi + 8]
add esp, 0x10
mov dword [esi + 0x14], eax
mov eax, 1
pop esi
pop ebp
ret
Function at 0x45ffc0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, 0x5b781c
test ebx, ebx
mov eax, 0x5b5f5c
push edi
cmove eax, ecx
push eax
push dword [ebp + 8]
call fcn.00582816
mov edi, eax
add esp, 8
test edi, edi
jne 0x460038
push 4
push str.com.freerdp.utils
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042f7e0
add esp, 8
test eax, eax
je 0x460032
push str.opening_pcap_dump
push 0x5c3f34
push str.C:BuildFreeRDP_stable_1.1BuildFreeRDPlibfreerdputilspcap.c
push 0xb2
push 4
push edi
push str.com.freerdp.utils
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042fce0
add esp, 0x1c
pop edi
xor eax, eax
pop ebx
pop ebp
ret
push esi
push 0x40
push 1
call fcn.00580d1f
mov esi, eax
add esp, 8
test esi, esi
je 0x4600f1
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov dword [esi + 0x18], 0
mov dword [esi], edi
test ebx, ebx
je 0x4600ab
push edi
push 1
lea eax, [esi + 0x1c]
mov dword [esi + 0x20], 0x40002
mov dword [eax], 0xa1b2c3d4
push 0x18
push eax
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0xffffffff
mov dword [esi + 0x30], 0
call fcn.0058317c
add esp, 0x10
cmp eax, 1
jne 0x4600e8
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
push 0
push 0
push edi
call fcn.00582a9c
push dword [esi]
call fcn.00582bd3
push 0
push 0
push 0
push dword [esi]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
call fcn.00582a9c
push dword [esi]
lea eax, [esi + 0x1c]
push 1
push 0x18
push eax
call fcn.005829f0
add esp, 0x34
cmp eax, 1
je 0x4600a4
push esi
call fcn.00580204
add esp, 4
push edi
call fcn.005826db
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x460110
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push dword [ebx]
push 1
push 0x10
push esi
call fcn.005829f0
add esp, 0x10
cmp eax, 1
je 0x460135
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push edi
mov edi, dword [esi + 8]
push edi
mov dword [esi + 0x14], edi
call fcn.0058023c
add esp, 4
mov dword [esi + 0x10], eax
test eax, eax
je 0x460171
push dword [ebx]
push 1
push edi
push eax
call fcn.005829f0
add esp, 0x10
cmp eax, 1
je 0x460178
push dword [esi + 0x10]
call fcn.00580204
add esp, 4
mov dword [esi + 0x10], 0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
Function at 0x4637a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0x100
push 1
call fcn.00580d1f
mov esi, eax
add esp, 8
test esi, esi
je 0x4637db
push 0x1c
push 1
call fcn.00580d1f
add esp, 8
mov dword [esi + 0xe8], eax
test eax, eax
jne 0x4637e2
push esi
call fcn.00580204
add esp, 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
xorps xmm0, xmm0
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov dword [esi + 0x24], ecx
mov eax, dword [ecx + 0x80]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x28], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x34], 6
movq qword [esi + 0xc0], xmm0
mov dword [esi + 0xc8], 0
movq qword [esi + 0x9c], xmm0
push edi
lea edi, [esi + 0xc0]
mov dword [esi + 0xa4], 0
movq qword [esi + 0xa8], xmm0
mov dword [esi + 0xb0], 0
movq qword [esi + 0xb4], xmm0
mov dword [esi + 0xbc], 0
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x14], 0xffffffff
mov eax, dword [ecx + 0x2278]
test eax, eax
je 0x46388f
push eax
call fcn.00580c20
add esp, 4
mov dword [esi + 0x20], eax
test eax, eax
je 0x463925
push 0x20
push edi
call fcn.0059fe10
add esp, 8
test eax, eax
je 0x463925
push 0x20
push dword [esi + 0xc8]
call fcn.0059c7b0
add esp, 8
test eax, eax
js 0x463925
cmp dword [esi], 0
je 0x4639a5
lea eax, [ebp - 4]
push eax
push 0x20119
push 0
push str.SoftwareFreeRDPFreeRDPServer
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4639a5
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push str.SspiModule
push dword [ebp - 4]
call edi
test eax, eax
jne 0x46399c
mov eax, dword [ebp - 8]
add eax, 2
push eax
call fcn.0058023c
add esp, 4
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x463936
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00463420
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.SspiModule
push dword [ebp - 4]
call edi
test eax, eax
jne 0x46399c
push 2
push str.com.freerdp.core.nla
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042f7e0
add esp, 8
test eax, eax
je 0x46399c
push dword [esi + 0x1c]
push str.Using_SSPI_Module:__s
push str.nla_new
push str.C:BuildFreeRDP_stable_1.1BuildFreeRDPlibfreerdpcore_nla.c
push 0x94d
push 2
push 0
push str.com.freerdp.core.nla
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042fce0
add esp, 0x20
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46a3b0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
test eax, eax
jne 0x46a42c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x46a42c
push esi
push 1
push dword [ebp - 4]
call fcn.00580d1f
mov esi, eax
add esp, 8
test esi, esi
je 0x46a408
lea eax, [ebp - 4]
push eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
test eax, eax
jne 0x46a40f
push esi
call fcn.00580204
add esp, 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 0xf
jbe 0x46a419
mov byte [esi + 0xf], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x3400], esi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x46a440
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0xc]
push eax
push 0x20119
push 0
push str.SoftwareFreeRDPFreeRDPServer
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46a53d
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.ExtSecurity
push dword [ebp - 0xc]
call edi
mov esi, dword [ebp + 8]
test eax, eax
jne 0x46a4a5
xor eax, eax
cmp dword [ebp - 8], eax
setne al
mov dword [esi + 0x2218], eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.NlaSecurity
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x46a4d4
cmp dword [ebp - 8], eax
setne al
mov dword [esi + 0x2208], eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.TlsSecurity
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x46a503
cmp dword [ebp - 8], eax
setne al
mov dword [esi + 0x2200], eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.RdpSecurity
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x46a532
cmp dword [ebp - 8], eax
setne al
mov dword [esi + 0x2210], eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48eae0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x63e758]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x140], ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.0048cd20
add esp, 8
test eax, eax
jne 0x48eb6f
push 4
push str.com.freerdp.core.license
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042f7e0
add esp, 8
test eax, eax
je 0x48eb5e
push str.loadCalFile:_unable_to_compute_hostname_hash
push str.loadCalFile
push str.C:BuildFreeRDP_stable_1.1BuildFreeRDPlibfreerdpcorelicense.c
push 0x105
push 4
push 0
push str.com.freerdp.core.license
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042fce0
add esp, 0x1c
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ce
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x30]
push eax
push str._s.cal
lea eax, [ebp - 0x134]
push 0x103
push eax
call fcn.00580ea1
push str.licenses
push dword [esi + 0x3808]
call fcn.00437b30
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x48ebb3
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ce
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x134]
push eax
push ebx
call fcn.00437b30
mov edi, eax
add esp, 8
test edi, edi
je 0x48ec54
push 0x5b781c
push edi
call fcn.00582816
mov esi, eax
add esp, 8
test esi, esi
je 0x48ec4b
push 2
push 0
push 0
push esi
call fcn.00582a9c
push esi
call fcn.00582bd3
push 0
push 0
push 0
push esi
mov dword [ebp - 0x138], eax
call fcn.00582a9c
push dword [ebp - 0x138]
call fcn.0058023c
add esp, 0x28
mov dword [ebp - 0x13c], eax
test eax, eax
je 0x48ec42
push esi
push 1
push dword [ebp - 0x138]
push eax
call fcn.005829f0
add esp, 0x10
test eax, eax
jg 0x48ec70
push dword [ebp - 0x13c]
call fcn.00580204
add esp, 4
push esi
call fcn.005826db
add esp, 4
push edi
call fcn.00580204
add esp, 4
push ebx
call fcn.00580204
add esp, 4
xor eax, eax
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ce
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x140]
mov eax, dword [ebp - 0x138]
push esi
mov dword [ecx], eax
call fcn.005826db
push edi
call fcn.00580204
push ebx
call fcn.00580204
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp - 0x13c]
xor ecx, ebp
pop edi
pop ebx
pop esi
call fcn.005802ce
mov esp, ebp
pop ebp
ret
Function at 0x493490
Capabilities:
Connect socket
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x18]
push ebx
push esi
xor esi, esi
mov dword [ebp - 4], esi
test eax, eax
jle 0x4934af
imul ebx, eax, 0x3e8
mov dword [ebp + 0x18], ebx
jmp 0x4934b6
mov dword [ebp + 0x18], 0xffffffff
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4934d1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
push 0x33
push eax
push edi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jns 0x49354a
push 4
push str.com.freerdp.core
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042f7e0
add esp, 8
test eax, eax
je 0x493642
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAEventSelect_failed_with__d
push str.freerdp_tcp_connect_timeout
push str.C:BuildFreeRDP_stable_1.1BuildFreeRDPlibfreerdpcore_tcp.c
push 0x33c
push 4
push 0
push str.com.freerdp.core
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042fce0
add esp, 0x20
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push edi
mov eax, dword [eax + 0x160]
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x493585
call ebx
cmp eax, 0x2733
jl 0x493642
cmp eax, 0x2734
jg 0x493642
push dword [ebp + 0x18]
lea eax, [ebp - 0xc]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x4935c5
cmp eax, 1
jne 0x493642
push 0x2000b
push dword [ebp + 8]
call sym.wfreerdp.exe_freerdp_set_last_error
add esp, 8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4935e0
call ebx
cmp eax, 0x2746
je 0x493642
push 0
push dword [ebp - 0xc]
push edi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jns 0x493628
push 4
push str.com.freerdp.core
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042f7e0
add esp, 8
test eax, eax
je 0x493642
call ebx
push eax
push str.WSAEventSelect_failed_with__d
push str.freerdp_tcp_connect_timeout
push str.C:BuildFreeRDP_stable_1.1BuildFreeRDPlibfreerdpcore_tcp.c
push 0x368
jmp 0x49351e
lea eax, [ebp - 4]
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
mov ecx, 1
cmove esi, ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x493660
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x63e758]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push eax
call fcn.00580b90
add esp, 0xc
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4936c8
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ce
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.00492cc0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop esi
call fcn.005802ce
mov esp, ebp
pop ebp
ret

Function at 0x493780
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 4]
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x24]
movq qword [ebp - 0x10], xmm0
push ecx
push 0
movdqu xmmword [ebp - 0x20], xmm0
push eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x24], 0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x4937dd
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x4937e4
mov eax, dword [ebp - 4]
test eax, eax
jne 0x493806
push esi
call sym.wfreerdp.exe_freerdp_get_last_error
add esp, 4
test eax, eax
jne 0x4937ff
push 0x20005
push esi
call sym.wfreerdp.exe_freerdp_set_last_error
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x493820
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x63e758]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xor ecx, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
movdqu xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], 1
push esi
mov esi, dword [ebp + 8]
test eax, eax
js 0x493877
push eax
push 0x5cbcc8
lea eax, [ebp - 0x14]
push 0xf
push eax
call fcn.00580ea1
add esp, 0x10
lea ecx, [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
push eax
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
pop esi
test eax, eax
je 0x4938a5
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ce
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
xor ecx, ebp
call fcn.005802ce
mov esp, ebp
pop ebp
ret
Function at 0x49a040
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test ebx, ebx
je 0x49a179
push esi
push ebx
push 1
call fcn.00580d1f
mov esi, eax
add esp, 8
test esi, esi
jne 0x49a0c1
push 4
push str.com.freerdp.core.proxy
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042f7e0
add esp, 8
test eax, eax
je 0x49a178
push str.Not_enough_memory
push str.proxy_read_environment
push str.C:BuildFreeRDP_stable_1.1BuildFreeRDPlibfreerdpcoreproxy.c
push 0x10d
push 4
push esi
push str.com.freerdp.core.proxy
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042fce0
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [ebx - 1]
cmp eax, ecx
jne 0x49a16f
push 9
push edi
push str.NO_PROXY
call fcn.005821d8
add esp, 0xc
push esi
test eax, eax
jne 0x49a164
mov ebx, dword [ebp + 8]
push ebx
call fcn.00499430
add esp, 8
test eax, eax
je 0x49a16f
push 2
push str.com.freerdp.core.proxy
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042f7e0
add esp, 8
test eax, eax
je 0x49a14c
push esi
push edi
push dword [ebx + 0xa0]
push str.deactivating_proxy:__s___s_s_
push str.proxy_read_environment
push str.C:BuildFreeRDP_stable_1.1BuildFreeRDPlibfreerdpcoreproxy.c
push 0x117
push 2
push 0
push str.com.freerdp.core.proxy
call fcn.0042f4e0
add esp, 4
push eax
call fcn.0042fce0
add esp, 0x28
push esi
mov dword [ebx + 0x3ef8], 0
call fcn.00580204
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [ebp + 8]
call fcn.00499d30
add esp, 8
push esi
call fcn.00580204
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret