joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4382e9
Capabilities:
Reference sql statements
Reference wmi statements

Disassembly:
push 0x48
mov eax, 0x4b1588
call fcn.0040c6d8
mov ebx, ecx
xor esi, esi
cmp dword [ebx + 0x124], esi
jne 0x438309
push 3
pop eax
jmp 0x438429
push str.SELECT__FROM_Win32_DiskDrive_WHERE__SerialNumber_IS_NOT_NULL__AND__MediaType_LIKE_Fixed_hard_disk__
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], esi
call fcn.0043753b
mov edi, eax
push 0x4b68d4
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], esi
call fcn.0043753b
mov ecx, dword [edi]
mov byte [ebp - 4], 1
cmp ecx, esi
je 0x43833c
mov ecx, dword [ecx]
mov dword [ebp - 0x3c], ecx
jmp 0x43833f
mov dword [ebp - 0x3c], esi
mov eax, dword [eax]
cmp eax, esi
je 0x438349
mov edx, dword [eax]
jmp 0x43834b
xor edx, edx
mov eax, dword [ebx + 0x120]
mov ecx, dword [eax]
lea edi, [ebp - 0x30]
push edi
push esi
push 0x30
push dword [ebp - 0x3c]
push edx
push eax
call dword [ecx + 0x50]
mov ecx, dword [ebp - 0x38]
mov edi, eax
cmp ecx, esi
je 0x438373
call fcn.00437741
mov dword [ebp - 0x38], esi
mov ecx, dword [ebp - 0x44]
or dword [ebp - 4], 0xffffffff
cmp ecx, esi
je 0x438383
call fcn.00437741
cmp edi, esi
jge 0x43838f
or eax, 0xffffffff
jmp 0x438429
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x40], esi
jmp 0x43840d
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x34]
push ecx
push 1
push 0xffffffffffffffff
push dword [ebp - 0x30]
call dword [eax + 0x10]
mov edi, eax
cmp dword [ebp - 0x40], esi
je 0x43841d
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
push esi
push esi
lea edx, [ebp - 0x54]
push edx
push esi
push str.SerialNumber
push eax
call dword [ecx + 0x10]
mov edi, eax
cmp edi, esi
jl 0x438414
push dword [ebp - 0x4c]
call fcn.004a43d0
push eax
lea ecx, [ebp - 0x2c]
call fcn.004026b3
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebx + 0x10]
mov dword [ebp - 4], 2
call fcn.00401dbc
or dword [ebp - 4], 0xffffffff
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401296
cmp dword [ebp - 0x30], esi
jne 0x4383a1
jmp 0x43841d
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, edi
call fcn.0040c75b
ret
Function at 0x438e7e
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5108
call fcn.00429220
mov eax, dword [0x4d4430]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x5108]
push eax
lea eax, [ebp - 0x5104]
push eax
mov dword [ebp - 0x5108], 0x5100
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x438ec6
xor eax, eax
inc eax
jmp 0x438f81
push ebx
xor ebx, ebx
mov dword [esi], ebx
lea eax, [ebp - 0x5104]
mov ecx, dword [eax + 0x1a0]
cmp ecx, 6
je 0x438ee1
cmp ecx, 0x47
jne 0x438ee3
inc dword [esi]
mov eax, dword [eax]
cmp eax, ebx
jne 0x438ed1
mov eax, dword [esi]
cmp eax, ebx
je 0x438f7e
imul eax, eax, 0x18
push eax
call fcn.0040ca29
pop ecx
mov dword [edi], eax
lea esi, [ebp - 0x5104]
mov eax, dword [esi + 0x1a0]
cmp eax, 6
je 0x438f15
cmp eax, 0x47
jne 0x438f78
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
mov eax, dword [edi]
push str._.2X__.2X__.2X__.2X__.2X__.2X
add eax, ebx
push 0x14
push eax
call fcn.0040c819
add esp, 0x24
test eax, eax
mov eax, dword [edi]
jg 0x438f66
and dword [ebx + eax + 0x14], 0
jmp 0x438f75
add eax, ebx
push eax
call fcn.0040b990
pop ecx
mov ecx, dword [edi]
mov dword [ebx + ecx + 0x14], eax
add ebx, 0x18
mov esi, dword [esi]
test esi, esi
jne 0x438f05
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040c660
leave
ret
Function at 0x43973a
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4d4430]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xe
pop ecx
stosw word es:[edi], ax
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0
push ecx
mov eax, 0x6103
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov word [ebp - 0xc], ax
mov eax, dword [esi + 0xc]
push ecx
push eax
mov ebx, 0x40000000
mov dword [ebp - 0x1c], 0xa
mov dword [ebp - 0x14], 0x8eb69af7
mov dword [ebp - 0xa], eax
call edi
cmp eax, 0xffffffff
jne 0x439808
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
push eax
push str.first_send_heartbeat_failed__d_
mov dword [ebp - 0x18], eax
call fcn.004026e0
pop ecx
pop ecx
jmp 0x4397e6
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0xc]
call edi
cmp eax, 0xffffffff
jne 0x4397fc
call ebx
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
push str.__d_send_heartbeat_send_failed__d_
call fcn.004026e0
add esp, 0xc
dec dword [ebp - 0x1c]
je 0x439803
cmp dword [ebp - 0x18], 0x8c
je 0x4397b0
cmp dword [ebp - 0x18], 0x7e
je 0x4397b0
mov ebx, 0x4101200d
jmp 0x439808
mov eax, 0x40000000
jmp 0x43980a
mov ebx, 0x4101200b
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c660
leave
ret

Function at 0x43993f
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4d4430]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor eax, eax
mov word [ebp - 0x14], ax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ecx
stosw word es:[edi], ax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x439996
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x439996
movsx eax, word [eax + 0xa]
push eax
push dword [ecx]
lea eax, [ebp - 0x10]
push eax
call fcn.0040ba20
push esi
push dword [ebp - 0x10]
call fcn.00439916
add esp, 0x14
jmp 0x4399a3
push str.211.151.172.90
push esi
call fcn.0040d8f0
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040c660
leave
ret
Function at 0x4399b1
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x4d4430]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.0040c970
add esp, 0xc
lea eax, [ebp - 0x298]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, eax
cmp edi, ebx
je 0x439a07
mov eax, 0x41012003
jmp 0x439b17
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0047a86b
pop ecx
pop ecx
test eax, eax
je 0x439a1d
mov byte [ebp - 5], bl
push ebx
lea eax, [ebp - 0x108]
push ebx
push eax
push eax
call fcn.0047af14
lea eax, [ebp - 0x108]
push str.sssynccfg.ini
push eax
call fcn.0040d900
push 0x4c
push 1
call fcn.00411855
add esp, 0x20
mov dword [0x4e1d48], eax
cmp eax, ebx
je 0x439b0f
mov esi, str.sds.senseyun.com
push esi
push eax
call fcn.0040d8f0
mov eax, dword [0x4e1d48]
mov ebx, 0x69aa
mov dword [eax + 0x40], ebx
mov eax, dword [0x4e1d48]
mov edi, 0xe10
mov dword [eax + 0x44], edi
mov eax, dword [0x4e1d48]
mov dword [eax + 0x48], 0xf
lea eax, [ebp - 0x108]
push eax
call fcn.00492282
add esp, 0xc
test eax, eax
je 0x439b08
push esi
push 0x40
push dword [0x4e1d48]
mov esi, str.Cloud
push str.SrvHost
push esi
call fcn.004924c7
mov eax, dword [0x4e1d48]
push eax
push eax
call fcn.0043993f
push ebx
push str.SrvPort
push esi
call fcn.00492524
mov ecx, dword [0x4e1d48]
push edi
push str.SendInterval
push esi
mov dword [ecx + 0x40], eax
call fcn.00492524
mov ecx, dword [0x4e1d48]
push 0xf
push str.Heartbeat
push esi
mov dword [ecx + 0x44], eax
call fcn.00492524
mov ecx, dword [0x4e1d48]
add esp, 0x40
mov dword [ecx + 0x48], eax
call fcn.00492263
mov edi, 0x40000000
jmp 0x439b15
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c660
leave
ret
Function at 0x439d49
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x40000000
mov dword [esp + 0x14], 0xa
test edi, edi
je 0x439e48
cmp dword [esp + 0x20], 0
je 0x439e48
mov ebp, dword [esp + 0x24]
cmp ebp, 1
jl 0x439e48
mov ebx, dword [sym.imp.WS2_32.dll_send]
push 0
push ebp
push dword [esp + 0x28]
push dword [edi + 0xc]
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x439e28
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push str.first_async_send_failed__d_
call fcn.004026e0
pop ecx
pop ecx
jmp 0x439df0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push ebp
push dword [esp + 0x28]
push dword [edi + 0xc]
call ebx
cmp eax, 0xffffffff
jne 0x439e07
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push dword [esp + 0x18]
push str.__d_async_send_failed__d_
call fcn.004026e0
add esp, 0xc
dec dword [esp + 0x14]
je 0x439e20
cmp esi, 0x8c
je 0x439db7
cmp esi, 0x7e
je 0x439db7
mov dword [esp + 0x10], 0x4101200d
jmp 0x439e28
push eax
push dword [esp + 0x18]
push str.__d__async_send_success__d_
call fcn.004026e0
add esp, 0xc
mov eax, 0x40000000
jmp 0x439e4d
mov dword [esp + 0x10], 0x4101200b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
push dword [esp + 0x18]
push ebp
push str._dss_cli_async__send_len___d_error_code__0x_08X__ret___d__LastError___d
call fcn.004026e0
mov eax, dword [esp + 0x24]
add esp, 0x14
jmp 0x439e4d
mov eax, 0x41012001
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0xc
Function at 0x43d358
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov ecx, edx
mov eax, edx
xor eax, dword [esp + 0xc]
shr ecx, 5
inc ecx
cmp edx, ecx
jb 0x43d38f
push esi
push edi
mov esi, dword [esp + 0xc]
movzx esi, byte [esi + edx - 1]
mov edi, eax
shl edi, 5
add esi, edi
mov edi, eax
shr edi, 2
add esi, edi
sub edx, ecx
xor eax, esi
cmp edx, ecx
jae 0x43d36e
pop edi
pop esi
ret

Function at 0x440284
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
and byte [esi + 5], 0xfc
movzx eax, byte [esi + 4]
push edi
mov edi, dword [ebp + 8]
jmp 0x4402fa
je 0x44032e
sub eax, 4
je 0x44031e
dec eax
je 0x440316
dec eax
je 0x44030e
dec eax
jne 0x440344
mov eax, dword [esi + 8]
test eax, eax
je 0x4402ca
test byte [eax + 5], 3
je 0x4402ca
push eax
push edi
call fcn.00440284
pop ecx
pop ecx
mov eax, dword [esi + 0xc]
or byte [esi + 5], 4
add eax, 0x18
add dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
movzx eax, byte [esi + 6]
test al, 0x40
je 0x440344
mov al, byte [ecx + 5]
test al, 3
je 0x440344
and al, 0xfc
mov byte [ecx + 5], al
movzx eax, byte [ecx + 4]
mov esi, ecx
cmp eax, 8
jle 0x44029c
cmp eax, 9
je 0x44033b
cmp eax, 0x14
je 0x440336
cmp eax, 0x26
jne 0x440344
mov eax, dword [edi + 0x4c]
mov dword [esi + 8], eax
jmp 0x440341
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x1c], eax
jmp 0x440341
movzx eax, byte [esi + 7]
or byte [esi + 5], 4
add eax, 0x11
add dword [edi + 0x10], eax
jmp 0x440344
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x28], eax
jmp 0x440341
mov eax, dword [esi + 0xc]
jmp 0x440322
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x4c], eax
mov dword [edi + 0x4c], esi
pop edi
pop esi
leave
ret

Function at 0x44a6e2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.00429220
mov eax, dword [0x4d4430]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
lea ecx, [ebp - 0x2014]
push ecx
push eax
call fcn.0043c4f2
pop ecx
pop ecx
mov esi, 0x2000
lea eax, [ebp - 0x2014]
push esi
push eax
call fcn.0043c37c
push edi
push esi
push 1
push eax
call fcn.0040dec2
add dword [ebp - 0x200c], eax
add esp, 0x18
cmp eax, esi
je 0x44a711
lea eax, [ebp - 0x2014]
push eax
call fcn.0043c43d
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040c660
leave
ret

Function at 0x44a74f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.00429220
mov eax, dword [0x4d4430]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
lea ecx, [ebp - 0x2014]
push ecx
push eax
call fcn.0043c4f2
lea eax, [ebp - 0x2014]
push esi
push eax
call fcn.0043c37c
push edi
push esi
push 1
push eax
call fcn.0040dec2
mov esi, eax
add dword [ebp - 0x200c], esi
lea eax, [ebp - 0x2014]
push eax
call fcn.0043c43d
mov ecx, dword [ebp - 4]
xor eax, eax
add esp, 0x24
cmp eax, esi
sbb eax, eax
xor ecx, ebp
neg eax
pop esi
call fcn.0040c660
leave
ret
Function at 0x44aa10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push ebx
mov edi, eax
call fcn.0043a87a
mov esi, eax
sub esi, edi
pop ecx
mov dword [ebp - 4], 1
je 0x44aa9b
push edi
push ebx
dec esi
call fcn.0043a9be
pop ecx
pop ecx
cmp eax, 3
jne 0x44aaa0
push edi
push ebx
call fcn.0043aa0e
pop ecx
pop ecx
push 0
push edi
push ebx
test eax, eax
je 0x44aa66
call fcn.0043abd9
push edx
push eax
push str._lld
push dword [ebp + 8]
call fcn.004a5a65
add esp, 0x1c
jmp 0x44aa81
call fcn.0043ab97
fstp qword [esp + 4]
mov dword [esp], str._.14g
push dword [ebp + 8]
call fcn.004a5a65
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x44aa8b
test eax, eax
jg 0x44aaca
and dword [ebp - 4], 0
inc edi
test esi, esi
jne 0x44aa2d
xor eax, eax
cmp dword [ebp - 4], eax
je 0x44aad3
xor eax, eax
inc eax
jmp 0x44aade
lea eax, [ebp - 8]
push eax
push edi
push ebx
call fcn.0043d10f
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x44aa8b
push dword [ebp + 8]
push dword [ebp - 8]
push 1
push eax
call fcn.0040d45c
add esp, 0x10
cmp eax, dword [ebp - 8]
jne 0x44aa8b
mov dword [ebp - 4], 1
jmp 0x44aa8f
push eax
push eax
push ebx
call fcn.0043c0c5
add esp, 0xc
pop edi
pop esi
leave
ret

Function at 0x451046
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4d4430]
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 0x45108f
cmp byte [ebp - 0x194], 2
jne 0x451089
mov eax, dword [ebp - 0x194]
shr eax, 8
cmp al, 2
jne 0x451089
xor eax, eax
jmp 0x451092
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c660
leave
ret

Function at 0x452322
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi]
cmp dword [eax + 4], 2
push edi
jne 0x452347
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x452336
xor eax, eax
pop edi
ret
push dword [eax + 8]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call ecx
jmp 0x45237a
cmp dword [esi + 8], 0
jne 0x452368
push 0x4b29e8
push dword [eax + 8]
call fcn.0040d891
pop ecx
pop ecx
mov dword [esi + 8], eax
test eax, eax
jne 0x452368
or eax, 0xffffffff
pop edi
ret
push dword [esi + 8]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0040dec2
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x45239a
mov eax, dword [esi + 8]
test eax, eax
je 0x452394
push eax
call fcn.0040d0ab
and dword [esi + 8], edi
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
ret
Function at 0x45ac14
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
xor ebx, ebx
call fcn.0045ae36
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 8], ebx
je 0x45ac5d
push dword [ebp + 0x14]
push edi
call fcn.0045ab1c
mov esi, eax
pop ecx
pop ecx
cmp esi, 1
je 0x45adac
mov ebx, dword [edi + 4]
jmp 0x45ac54
push edi
call fcn.00459c63
mov ebx, dword [ebx]
pop ecx
test ebx, ebx
jne 0x45ac4b
jmp 0x45adac
cmp dword [ebp + 0xc], 0xffffffff
je 0x45ad35
push 4
lea eax, [ebp + 0xc]
push eax
push dword [edi + 0x28]
call fcn.0045febc
add esp, 0xc
test eax, eax
je 0x45ad45
mov ebx, dword [eax]
cmp dword [ebx + 0x879c], 0xc0dedbad
je 0x45ac96
push 4
pop eax
jmp 0x45adae
mov eax, dword [ebx + 8]
test eax, eax
je 0x45accd
test byte [ebp + 0x10], 2
je 0x45acb5
mov ecx, dword [eax + 0x288]
test ecx, ecx
je 0x45acb5
cmp dword [ecx], esi
je 0x45acb5
mov eax, dword [ecx]
jmp 0x45accb
test byte [ebp + 0x10], 1
je 0x45accd
mov eax, dword [eax + 0x28c]
test eax, eax
je 0x45accd
cmp dword [eax], esi
je 0x45accd
mov eax, dword [eax]
mov ebx, dword [eax]
mov eax, dword [ebx + 8]
test eax, eax
je 0x45ace9
mov ecx, dword [eax + 0x240]
test byte [ecx + 0x40], 8
jne 0x45ace9
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x4d0], ecx
push dword [ebp - 8]
mov esi, ebx
push dword [ebp - 0xc]
push edi
call fcn.0045a01c
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x45ace9
mov eax, dword [ebx + 8]
test eax, eax
je 0x45ad1b
mov ecx, dword [eax + 0x240]
test byte [ecx + 0x40], 8
jne 0x45ad1b
and dword [eax + 0x4d0], 0
test esi, esi
jg 0x45ad26
push edi
call fcn.00459c63
pop ecx
xor ebx, ebx
call fcn.0045ae36
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
jmp 0x45ad45
push 8
lea eax, [edi + 0x60]
push 0
push eax
call fcn.0040c970
add esp, 0xc
test ebx, ebx
je 0x45ad6c
push dword [ebp - 8]
mov esi, ebx
push dword [ebp - 0xc]
push edi
call fcn.0045a01c
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x45ad49
test esi, esi
jg 0x45ad6c
push edi
call fcn.00459c63
pop ecx
lea eax, [ebp - 4]
push eax
push dword [edi + 0x24]
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.004767aa
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 4]
add esp, 0x10
test eax, eax
je 0x45ada4
mov ebx, dword [eax + 0x14]
push ebx
push edi
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.004593ae
add esp, 0x10
cmp dword [ebp - 4], 0
jne 0x45ad45
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x45af45
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x45af74
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret
Function at 0x45b084
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x45b0a4
push dword [esi + 0x134]
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
js 0x45b0dd
cmp eax, 2
jg 0x45b0dd
push dword [esi + 0x130]
imul eax, eax, 3
push 1
add eax, 0x4bae70
push 2
push eax
call fcn.0040d45c
push dword [esi + 0x130]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.0040d45c
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x154]
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
and dword [edi], 0
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x45b3a5
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x45b37f
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x45b3a4
push ebx
push esi
call fcn.0045f9f4
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.0045b1fe
mov eax, dword [esi]
mov dword [eax + 0x85e4], ebx
add esp, 0x14
mov dword [edi], 0x37
pop ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret

Function at 0x45cbba
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4d4430]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
xor edi, edi
cmp dword [esi + 0x454], edi
push 4
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x45cc04
push ebx
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0045b194
add esp, 0xc
jmp 0x45cc6f
push dword [esi + 0x458]
mov dword [ebp - 0x10], 1
call fcn.004730a8
imul eax, eax, 0x3e8
push dword [esi + 0x45c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.004730a8
imul eax, eax, 0x3e8
pop ecx
pop ecx
push edi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push ebx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x45cc6f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ebx
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.0045b194
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040c660
leave
ret
Function at 0x45d158
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4d4430]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
mov esi, dword [ebp + 0x98]
cmp dword [esi + 0x8c], 2
mov ebx, dword [esi]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], ebx
je 0x45d296
cmp dword [esi + 0x1d0], 0
push edi
jne 0x45d28e
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x9c]
mov edi, 0x80
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x45d1d6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.0045f9f4
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
jmp 0x45d207
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x9c]
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x45d20a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.0045f9f4
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
jmp 0x45d281
lea ebx, [esi + 0xb8]
lea edi, [esi + 0xe8]
lea esi, [ebp - 0x74]
call fcn.0045d11f
test eax, eax
jne 0x45d23c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.0045f9f4
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x45d27e
mov esi, dword [ebp - 0x78]
push 0x2e
lea eax, [esi + 0x58]
push ebx
push eax
call fcn.0040ba20
lea edi, [esi + 0x11c]
lea ebx, [esi + 0xec]
add esp, 0xc
lea esi, [ebp + 0xc]
call fcn.0045d11f
test eax, eax
jne 0x45d28b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.0045f9f4
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x80]
call fcn.0045b1fe
add esp, 0x18
jmp 0x45d295
mov esi, dword [ebp - 0x78]
push esi
call fcn.0045d0cd
pop ecx
pop edi
mov ecx, dword [ebp + 0x8c]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c660
add ebp, 0x90
leave
ret

Function at 0x45d2ad
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x354]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x45d2f2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0045f9f4
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0045b194
add esp, 0x14
jmp 0x45d2ff
push str.TCP_NODELAY_set_n
push esi
call fcn.0045b194
pop ecx
pop ecx
pop esi
leave
ret