joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423670
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x24]
cmp eax, 0xffff
jg case.default.0x42369e
je 0x423743
cmp eax, 7
ja case.default.0x42369e
jmp dword [eax*4 + 0x423818]
lea ecx, [esi + 0x98]
push ecx
mov edx, str.PROCESSOR_ARCHITECTURE_INTEL
call fcn.00401640
jmp 0x42375e
lea edx, [esi + 0x98]
push edx
mov edx, str.PROCESSOR_ARCHITECTURE_MIPS
call fcn.00401640
jmp 0x42375e
lea eax, [esi + 0x98]
push eax
mov edx, str.PROCESSOR_ARCHITECTURE_ALPHA
call fcn.00401640
jmp 0x42375e
lea ecx, [esi + 0x98]
push ecx
mov edx, str.PROCESSOR_ARCHITECTURE_PPC
call fcn.00401640
jmp 0x42375e
lea edx, [esi + 0x98]
push edx
mov edx, str.PROCESSOR_ARCHITECTURE_SHX
call fcn.00401640
jmp 0x42375e
lea eax, [esi + 0x98]
push eax
mov edx, str.PROCESSOR_ARCHITECTURE_ARM
call fcn.00401640
jmp 0x42375e
lea ecx, [esi + 0x98]
push ecx
mov edx, str.PROCESSOR_ARCHITECTURE_IA64
call fcn.00401640
jmp 0x42375e
lea edx, [esi + 0x98]
push edx
mov edx, str.PROCESSOR_ARCHITECTURE_ALPHA64
call fcn.00401640
jmp 0x42375e
push 0x1e
push str.PROCESSOR_ARCHITECTURE_UNKNOWN
jmp 0x423753
push 7
push str.Unknown
lea ecx, [esi + 0x98]
call fcn.004054e0
xor eax, eax
cmp ax, word [ebp - 0x24]
jne 0x4237cd
movzx eax, word [ebp - 4]
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x423776
jmp dword [eax*4 + 0x423838]
push 0xb
push str.Intel_80386
lea ecx, [esi + 0xb4]
call fcn.004054e0
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0xd0], ecx
mov esp, ebp
pop ebp
ret
push 0xb
push str.Intel_80486
lea ecx, [esi + 0xb4]
call fcn.004054e0
mov edx, dword [ebp - 0x10]
mov dword [esi + 0xd0], edx
mov esp, ebp
pop ebp
ret
push 0xd
push str.Intel_Pentium
lea ecx, [esi + 0xb4]
call fcn.004054e0
mov eax, dword [ebp - 0x10]
mov dword [esi + 0xd0], eax
mov esp, ebp
pop ebp
ret
push 0x1f
push str.Intel_Pentium_Pro_or_Pentium_II
lea ecx, [esi + 0xb4]
call fcn.004054e0
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0xd0], ecx
mov esp, ebp
pop ebp
ret
push 7
push str.Unknown
lea ecx, [esi + 0xb4]
call fcn.004054e0
mov edx, dword [ebp - 0x10]
mov dword [esi + 0xd0], edx
mov esp, ebp
pop ebp
ret

Function at 0x424980
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 1
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4249a5
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push 0
push edx
push eax
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4249df
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xfffffffe
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x425100
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x48873c
push str.c:_afsync.rs
mov dword [ebp - 8], ecx
call fcn.0042d99d
push 2
mov esi, eax
push 0
push esi
call fcn.004304d9
push esi
call fcn.004306e9
push 0
push 0
push esi
mov edi, eax
call fcn.004304d9
push edi
call fcn.0042d673
push esi
push edi
mov ebx, eax
push 1
push ebx
call fcn.0042dbfe
push esi
call fcn.0042dc88
mov edx, dword [ebp - 8]
add esp, 0x3c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [edx + 0x34]
lea ecx, [ebp - 4]
push ecx
push edi
push ebx
mov dword [ebp - 4], 0
mov ecx, dword [eax + 0x18]
push 0x58f43d4e
call fcn.0042a120
push ebx
call fcn.0042efdd
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x425190
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov dl, 0xdd
test edi, edi
jle 0x4251b2
push ebx
lea esp, [esp]
mov cl, byte [eax + esi]
mov bl, cl
xor bl, dl
mov byte [eax + esi], bl
inc eax
mov dl, cl
cmp eax, edi
jl 0x4251a0
pop ebx
ret
Function at 0x4266f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x496684]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x414], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov dword [eax], 0
xor eax, eax
push edi
push 0x100000
mov ebx, ecx
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x408], eax
mov dword [ebp - 0x41c], 0x100000
call fcn.0042d673
push 0x48873c
push esi
mov edi, eax
call fcn.0042d99d
mov esi, eax
mov eax, dword [ebp + 0x1c]
add esp, 0xc
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x410], 0
test eax, eax
je 0x42677f
mov ecx, dword [ebp + 0x18]
push 0
push ecx
push esi
mov dword [ebp - 0x418], eax
call fcn.004304d9
add esp, 0xc
jmp 0x4267a2
push 2
push 0
push esi
call fcn.004304d9
push esi
call fcn.004306e9
push 0
push 0
push esi
mov dword [ebp - 0x418], eax
call fcn.004304d9
add esp, 0x1c
mov edx, dword [ebp - 0x414]
mov ecx, dword [ebx + 0x10]
push str._PublicStaging
push edx
call fcn.0042b160
lea eax, [ebp - 0x404]
push 0x47cb50
push eax
call fcn.0042d78e
mov eax, dword [ebp - 0x414]
add esp, 8
lea ecx, [ebp - 0x40c]
push ecx
mov ecx, dword [ebx + 0x10]
push 0
push 3
lea edx, [ebp - 0x404]
push edx
push eax
call fcn.0042b0b0
jmp 0x4267f6
mov esi, dword [ebp - 0x420]
mov eax, dword [ebp - 0x418]
sub eax, dword [ebp - 0x410]
cmp eax, dword [ebp - 0x41c]
jge 0x426810
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x41c]
push esi
push ecx
push 1
push edi
call fcn.0042dbfe
mov edx, dword [ebp - 0x40c]
mov ecx, dword [ebx + 0x10]
add esp, 0x10
mov esi, eax
mov eax, dword [ebp - 0x414]
add dword [ebp - 0x410], esi
push esi
push edi
push 0
push edx
push eax
call fcn.0042b130
test eax, eax
je 0x42684c
or eax, 0xffffffff
cmp dword [ebx + 0x40], 0
je 0x426873
fild dword [ebp - 0x410]
push eax
push 0x64
fmul qword [0x47cb48]
fidiv dword [ebp - 0x418]
call fcn.00431c80
push eax
call dword [ebx + 0x40]
add esp, 0xc
test esi, esi
je 0x426889
mov ecx, dword [ebp - 0x410]
cmp dword [ebp - 0x418], ecx
jne 0x4267f0
mov edx, dword [ebp - 0x420]
push edx
call fcn.0042dc88
mov eax, dword [ebp - 0x40c]
mov ecx, dword [ebp - 0x414]
add esp, 4
push 0
push eax
push ecx
mov ecx, dword [ebx + 0x10]
call fcn.0042b110
push edi
call fcn.0042efdd
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0042ca72
mov esp, ebp
pop ebp
ret 0x18

Function at 0x4270e0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.00426ae0
test eax, eax
je 0x4270f1
or eax, 0xffffffff
pop esi
ret
lea eax, [esi + 0x48]
push eax
push 0
push esi
push 0x426d90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x44], eax
xor eax, eax
pop esi
ret
Function at 0x42a1c0
Capabilities:
Check http status code
Connect to http server
Create http request
Get http content length
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
push str.MapbarAppServer
mov dword [ebp - 4], esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
mov ebx, eax
push 4
lea eax, [ebp - 8]
push eax
push 6
push ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 0x7530
call edi
push 4
lea ecx, [ebp - 8]
push ecx
push 5
push ebx
call edi
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push esi
push 3
push esi
push esi
push edx
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ecx, dword [ebp + 0x10]
push esi
push esi
push esi
push esi
push esi
push ecx
push str.POST
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edx, dword [ebp + 0x18]
push edx
mov edi, eax
mov eax, dword [ebp + 0x14]
push eax
push 0x2f
push str.Content_Type:_application_x_www_form_urlencoded
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x42a2d8
push esi
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
push 0x20000013
mov dword [ebp + 8], esi
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push edi
mov dword [ebp + 0xc], 4
call esi
cmp dword [ebp + 8], 0xc8
jne 0x42a2d8
push 0
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x20000005
push edi
mov dword [ebp + 0xc], 4
call esi
mov ebx, dword [ebp - 4]
push ebx
call fcn.0042d673
mov edx, dword [ebp + 0x1c]
add esp, 4
xor esi, esi
mov dword [edx], eax
test ebx, ebx
je 0x42a2d5
lea esp, [esp]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
lea eax, [ebp + 0xc]
push eax
push ebx
add edx, esi
push edx
push edi
mov dword [ebp + 0xc], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
add esi, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
cmp esi, ebx
jb 0x42a2b0
mov ebx, dword [ebp - 0xc]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
mov eax, dword [ebp - 0x10]
push eax
call esi
push ebx
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x42a3b0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret
Function at 0x42b450
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
push str.AirTrafficHost.dll
mov dword [esi], vtable.AirTrafficHostHelper.0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x24], eax
test eax, eax
je 0x42b4e0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ATHostConnectionCreateWithLibrary
push eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi + 0x24]
push str.ATHostConnectionSendPowerAssertion
push eax
call edi
mov ecx, dword [esi + 0x24]
push str.ATHostConnectionReadMessage
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 0x24]
push str.ATHostConnectionSendSyncRequest
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x24]
push str.ATHostConnectionSendMetadataSyncFinished
push eax
call edi
mov ecx, dword [esi + 0x24]
push str.ATHostConnectionGetGrappaSessionId
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 0x24]
push str.ATHostConnectionInvalidate
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x24]
push str.ATHostConnectionRelease
push eax
call edi
mov dword [esi + 0x20], eax
pop edi
mov eax, esi
pop esi
ret
Function at 0x42ca72
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x496684]
jne 0x42ca7c
repz ret
jmp fcn.0043447b

Function at 0x442e51
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x496684]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00436a83
and dword [ebp - 0x14], 0
cmp dword [0x499724], 0
mov dword [ebp - 0x18], eax
jne 0x442f04
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x442fac
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x48133c
push ebx
call edi
test eax, eax
je 0x442fac
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x499724], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x499728], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x49972c], eax
call edi
push eax
call esi
mov dword [0x499734], eax
test eax, eax
je 0x442f04
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x499730], eax
mov eax, dword [0x499730]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x442f5d
cmp dword [0x499734], ecx
je 0x442f5d
push eax
call esi
push dword [0x499734]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x442f5d
test ebx, ebx
je 0x442f5d
call edi
test eax, eax
je 0x442f54
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x442f54
test byte [ebp - 8], 1
jne 0x442f5d
or dword [ebp + 0x10], 0x200000
jmp 0x442f90
mov eax, dword [0x499728]
cmp eax, dword [ebp - 0x18]
je 0x442f90
push eax
call esi
test eax, eax
je 0x442f90
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x442f90
mov eax, dword [0x49972c]
cmp eax, dword [ebp - 0x18]
je 0x442f90
push eax
call esi
test eax, eax
je 0x442f90
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x499724]
call esi
test eax, eax
je 0x442fac
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x442fae
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ca72
leave
ret

Function at 0x447640
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x496684]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x447690
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x44768a
shr eax, 8
cmp al, 2
jne 0x44768a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca72
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.0042ca72
mov esp, ebp
pop ebp
ret
Function at 0x447870
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
cmp ebx, esi
jne 0x447890
lea eax, [esi + 0x2b]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x40], esi
je 0x4478ae
push 0x481574
push ebx
call fcn.00452b90
add esp, 8
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebx + 0x44]
cmp edi, esi
jne 0x4478d7
push 3
push 1
call fcn.004480c0
mov edi, eax
add esp, 8
cmp edi, esi
jne 0x4478d4
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x44], edi
mov eax, dword [ebx + 0x454]
push eax
push 6
push edi
call sym.ipa2exe.exe_curl_multi_setopt
push ebx
push edi
call sym.ipa2exe.exe_curl_multi_add_handle
mov esi, eax
add esp, 0x14
test esi, esi
je 0x447913
push edi
call sym.ipa2exe.exe_curl_multi_cleanup
add esp, 4
lea eax, [esi - 3]
neg eax
sbb eax, eax
pop edi
and eax, 0xffffffe7
pop esi
add eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x40], edi
jmp 0x447923
mov ebx, dword [ebp + 8]
test esi, esi
jne 0x4479f8
call fcn.00452710
lea ecx, [ebp - 0xc]
push ecx
push 0x3e8
push esi
push esi
push edi
mov ebx, eax
mov dword [ebp - 0x18], edx
call sym.ipa2exe.exe_curl_multi_wait
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x447920
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x4479ee
cmp eax, esi
jne 0x4479ae
call fcn.00452710
mov ecx, dword [ebp - 0x18]
push ecx
push ebx
push edx
push eax
call fcn.00452740
add esp, 0x10
cmp eax, 0xa
jg 0x4479ae
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, 2
jle 0x4479b1
cmp eax, 0xa
jge 0x44799e
lea ecx, [eax - 1]
mov eax, 1
shl eax, cl
push eax
call fcn.0044b120
add esp, 4
jmp 0x4479b1
mov eax, 0x3e8
push eax
call fcn.0044b120
add esp, 4
jmp 0x4479b1
mov dword [ebp - 4], esi
lea edx, [ebp - 0x10]
push edx
push edi
call sym.ipa2exe.exe_curl_multi_perform
mov esi, eax
add esp, 8
test esi, esi
jne 0x447920
cmp dword [ebp - 0x10], eax
jne 0x447920
lea eax, [ebp - 0x14]
push eax
push edi
call sym.ipa2exe.exe_curl_multi_info_read
add esp, 8
test eax, eax
je 0x447920
mov ecx, dword [eax + 8]
mov dword [ebp - 8], ecx
jmp 0x4479f5
mov dword [ebp - 8], 0x38
mov ebx, dword [ebp + 8]
push ebx
push edi
call sym.ipa2exe.exe_curl_multi_remove_handle
mov eax, dword [ebp - 8]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452860
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x452893
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x4529d0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a0]
test ecx, ecx
je 0x4529eb
mov edx, dword [esi + 0x12c]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
js 0x452a1f
cmp eax, 2
jg 0x452a1f
mov ecx, dword [esi + 0x128]
push ecx
push 1
lea edx, [eax + eax*2 + 0x482f28]
push 2
push edx
call fcn.0042f6d0
mov eax, dword [esi + 0x128]
push eax
push 1
push edi
push ebx
call fcn.0042f6d0
add esp, 0x20
xor eax, eax
ret

Function at 0x452d00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x134]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x452d7c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x452d51
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push eax
push esi
call fcn.0044b040
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.00452b90
mov ecx, dword [esi]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x85cc], edx
add esp, 0x14
mov dword [ebx], 0x37
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4549b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x496684]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [esi + 0x448], eax
push 4
lea ecx, [ebp - 0x14]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x454a03
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00452b10
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca72
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x44c]
push edx
mov dword [ebp - 0x10], 1
call fcn.00458810
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x450]
push eax
call fcn.00458810
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0xc
lea edx, [ebp - 0x10]
push edx
push 0x98000004
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x454a75
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.00452b10
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca72
mov esp, ebp
pop ebp
ret
Function at 0x4550e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x496684]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x1a8], 0
mov ebx, dword [esi]
push edi
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x110], ebx
jne 0x455277
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push edi
mov dword [ebp - 0x10c], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x45516a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.0044b040
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00452b90
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca72
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x84]
push eax
push edi
mov dword [ebp - 0x10c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4551bd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.0044b040
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00452b90
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca72
mov esp, ebp
pop ebp
ret
lea ebx, [esi + 0xcc]
lea edi, [esi + 0x9e]
lea esi, [ebp - 0x104]
call fcn.004550a0
test eax, eax
jne 0x455214
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x108]
mov esi, eax
push esi
push ecx
call fcn.0044b040
mov edx, dword [ebp - 0x110]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.00452b90
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca72
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x108]
lea ebx, [eax + 0x100]
lea edi, [eax + 0xd0]
lea esi, [ebp - 0x84]
call fcn.004550a0
test eax, eax
jne 0x455271
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x108]
push esi
push eax
call fcn.0044b040
mov ecx, dword [ebp - 0x110]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.00452b90
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca72
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x108]
push esi
call fcn.00455040
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ca72
mov esp, ebp
pop ebp
ret

Function at 0x4552a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x34c]
push 4
lea ecx, [ebp - 4]
push ecx
push 1
push 6
push edx
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4552e6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0044b040
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00452b10
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00452b10
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret