joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467580
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x238], eax
cmp dword [0x51c400], 0
push ebx
push esi
push edi
mov dword [esp + 0x10], str.getaddrinfo
mov dword [esp + 0x14], 0x466fe0
mov dword [esp + 0x18], str.getnameinfo
mov dword [esp + 0x1c], 0x4672d0
mov dword [esp + 0x20], str.freeaddrinfo
mov dword [esp + 0x24], fcn.00466f90
je 0x4675f8
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x50f30c]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.004a4a25
mov esp, ebp
pop ebp
ret 4
push 0x104
lea ecx, [esp + 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4676f3
lea edx, [esp + 0x138]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.004ab618
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.004acef1
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x46766d
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x4676bd
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.004ab618
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.004acef1
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x4676f3
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x4676bd
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4676f3
xor edi, edi
nop
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
mov dword [esp + edi*8 + 0x14], eax
test eax, eax
je 0x4676b4
inc edi
cmp edi, 3
jl 0x4676c0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x50f30c], edx
mov dword [0x50f314], eax
mov dword [fcn.00466f90], ecx
movzx edx, word [ebp + 8]
mov ecx, dword [esp + 0x244]
mov eax, dword [edx*8 + 0x50f30c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov dword [0x51c400], 1
call fcn.004a4a25
mov esp, ebp
pop ebp
ret 4
Function at 0x468bf0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, eax
mov dword [edi], ebp
mov byte [edi + 4], 0
test esi, esi
je 0x468c16
cmp dword [esi], 0
je 0x468c0e
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [edi]
mov dword [ecx], eax
mov edx, dword [edi]
mov eax, dword [edx]
cmp eax, 0xffffffff
je 0x468c9e
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x468c4d
mov byte [edi + 4], 1
mov ecx, dword [ebp]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0x10]
push eax
push 0x1005
push 0xffff
push ecx
mov dword [esp + 0x20], 0x1388
call ebx
mov eax, dword [ebp]
push 4
lea edx, [esp + 0x10]
push edx
push 0x1006
push 0xffff
push eax
call ebx
test esi, esi
je 0x468c9e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi]
mov dword [esi], 0
mov dword [esi + 4], eax
pop ebp
mov eax, edi
pop ebx
ret 4
Function at 0x469690
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, eax
push edi
mov dword [esi], 0
mov byte [esp + 0x18], 0
mov dword [esp + 0x10], 0
call fcn.0046e690
mov eax, dword [eax + 4]
mov ecx, dword [esi]
sub eax, ecx
push 0
push eax
mov eax, dword [ebp + 0x40]
add eax, ecx
mov ecx, dword [ebp + 0x34]
push eax
push ecx
call ebx
mov edi, eax
test edi, edi
jle 0x4696fc
add dword [esi], edi
cmp byte [ebp + 0x38], 0
mov eax, dword [esi]
jne 0x469721
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [ebp + 0x40]
push eax
call fcn.004698a0
add esp, 0xc
test al, al
je 0x4696fe
mov byte [esp + 0x18], 1
jmp 0x469705
jl 0x46973a
cmp byte [esp + 0x18], 0
je 0x469711
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esi]
je 0x4697ac
call fcn.0046e690
mov eax, dword [eax + 4]
cmp dword [esi], eax
jge 0x469785
test edi, edi
jg 0x4696b4
cmp dword [esi], 0
jne 0x4697ac
mov ecx, dword [esp + 0x1c]
call fcn.0042c990
push 0x4f82b0
jmp 0x469793
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [esi], 0
mov edi, eax
jle 0x46974f
cmp edi, 0x274c
je 0x469721
mov ecx, dword [esp + 0x1c]
call fcn.0042c990
mov esi, eax
push 0x4f827c
push 0x4f0ffc
mov edx, esi
call fcn.00430eb0
push edi
push 0x4eef9c
mov edx, esi
call fcn.00430eb0
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov ecx, dword [esp + 0x1c]
call fcn.0042c990
push 0x4f828c
push 0x4f0ffc
mov edx, eax
call fcn.00430eb0
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 8

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

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_recv]
push esi
mov ebx, eax
mov dword [edi], 0
call fcn.0046e690
mov eax, dword [eax + 4]
mov ecx, dword [edi]
sub eax, ecx
push 0
push eax
mov eax, dword [ebx + 0x40]
add eax, ecx
mov ecx, dword [ebx + 0x34]
push eax
push ecx
call ebp
mov esi, eax
test esi, esi
jle 0x469813
add dword [edi], esi
cmp byte [ebx + 0x38], 0
je 0x469821
cmp dword [edi], 0
jne 0x469895
mov ecx, dword [esp + 0x10]
call fcn.0042c990
push 0x4f82b0
jmp 0x46987e
jl 0x469827
call fcn.0046e690
mov eax, dword [eax + 4]
cmp dword [edi], eax
jge 0x469870
test esi, esi
jg 0x4697d1
jmp 0x4697fa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [edi], 0
mov ebx, eax
jle 0x46983c
cmp ebx, 0x274c
je 0x4697fa
mov ecx, dword [esp + 0x10]
call fcn.0042c990
mov esi, eax
push 0x4f827c
push 0x4f0ffc
mov edx, esi
call fcn.00430eb0
push ebx
push 0x4eef9c
mov edx, esi
call fcn.00430eb0
add esp, 0x10
pop esi
pop ebp
xor al, al
pop ebx
ret 4
mov ecx, dword [esp + 0x10]
call fcn.0042c990
push 0x4f828c
push 0x4f0ffc
mov edx, eax
call fcn.00430eb0
add esp, 8
pop esi
pop ebp
xor al, al
pop ebx
ret 4
pop esi
pop ebp
mov al, 1
pop ebx
ret 4
Function at 0x46e770
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x50d608], 0
je 0x46e7c5
mov eax, dword [0x50d610]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46e7c5
cmp dword [eax], 0x13
jbe 0x46e7c5
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x46e7c5
push 0
push 0x50f5e0
push 0x50ed44
push 0
push eax
call fcn.004ae5ec
add esp, 0x14
test eax, eax
je 0x46e7c5
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 4]
mov dword [ecx], eax
mov al, 1
ret
xor al, al
ret

Function at 0x46e7d0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x50d608], 0
push esi
push edi
mov esi, eax
je 0x46e819
mov eax, dword [0x50d610]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
test eax, eax
je 0x46e819
cmp dword [eax], 0x13
jbe 0x46e819
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + 0x4c]
test ecx, ecx
jne 0x46e846
push 8
call fcn.004a5359
add esp, 4
test eax, eax
je 0x46e81e
mov dword [eax + 4], esi
mov dword [eax], vtable.t_visualDataItemPtr_struct_t_globalDataSockHttp_.0
mov esi, eax
jmp 0x46e820
pop edi
xor al, al
pop esi
ret
xor esi, esi
cmp dword [0x50d608], 0
je 0x46e84e
mov edx, dword [0x50d610]
push edx
call edi
test eax, eax
je 0x46e84e
cmp dword [eax], 0x13
jbe 0x46e84e
mov eax, dword [eax + 8]
mov dword [eax + 0x4c], esi
pop edi
mov al, 1
pop esi
ret
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push esi
call eax
pop edi
mov al, 1
pop esi
ret
Function at 0x46f170
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cae8b
mov eax, dword fs:[0]
push eax
sub esp, 0x378
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x370], eax
push ebx
push esi
push edi
mov eax, dword [0x50a4c0]
xor eax, esp
push eax
lea eax, [esp + 0x388]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea esi, [esp + 0x1c]
mov dword [esp + 0x18], ecx
call fcn.00437080
xor esi, esi
mov dword [esp + 0x1c], vtable.t_fileRead.0
mov dword [esp + method.t_fileRead.1.virtual_0], vtable.t_fileRead.1.0
mov dword [esp + 0x374], esi
mov dword [esp + 0x378], esi
push esi
push ebx
mov eax, edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x398], esi
call fcn.004371d0
test al, al
je 0x46f255
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46f225
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x46f225
xor edi, edi
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x37c], edi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46f29b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x46f29b
xor eax, eax
jmp 0x46f29d
mov ecx, ebx
call fcn.0042c990
push 0x4f1274
push 0x4f0ffc
mov edx, eax
call fcn.00430eb0
mov dword [esp + 0x398], 0xffffffff
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.t_fileRead.0
mov dword [esp + method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
call fcn.00437100
xor al, al
jmp 0x46f2ef
mov eax, edi
mov esi, dword [esp + 0x18]
push eax
mov dword [esi + 8], eax
call fcn.004a4b5c
mov ecx, dword [esi + 8]
add esp, 4
push ecx
push eax
push ebx
lea ecx, [esp + 0x37c]
mov dword [esi + 4], eax
call fcn.0043c200
test al, al
je 0x46f255
mov dword [esp + 0x390], 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.t_fileRead.0
mov dword [esp + method.t_byteStreamRead.virtual_0], vtable.t_byteStreamRead.0
call fcn.00437100
mov al, 1
mov ecx, dword [esp + 0x388]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x370]
xor ecx, esp
call fcn.004a4a25
mov esp, ebp
pop ebp
ret 8
Function at 0x46faf0
Capabilities:
Encrypt or decrypt via wincrypt
Reference public rsa key

Disassembly:
sub esp, 0xc
push ebx
mov ebx, eax
push ebp
mov ebp, dword [esp + 0x20]
test ebx, ebx
je 0x46fc8b
cmp dword [esp + 0x18], 0xffffffff
je 0x46fc8b
push esi
push edi
xor esi, esi
call fcn.00421290
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
je 0x46fc7a
lea eax, [esp + 0x10]
push eax
push esi
push esi
push 0x94
push 0x4e69a8
push edi
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x46fc60
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push ecx
lea edx, [esp + 0x18]
push edx
push esi
push esi
push 1
push esi
push eax
mov dword [esp + 0x30], esi
call edi
test eax, eax
je 0x46fc37
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004a41a8
mov edx, dword [esp + 0x24]
push edx
mov esi, eax
push ebx
push esi
call fcn.004a7010
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add esp, 0x10
push eax
lea ecx, [esp + 0x24]
push ecx
push esi
push 0
push 1
push 0
push edx
call edi
test eax, eax
je 0x46fc04
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [eax], edi
xor eax, eax
test edi, 0xfffffffe
jbe 0x46fc3e
mov ecx, esi
mov bl, byte [ecx + edi - 1]
mov dl, byte [eax + esi]
mov byte [eax + esi], bl
mov edi, dword [esp + 0x20]
mov byte [ecx + edi - 1], dl
mov edi, dword [esp + 0x20]
mov edx, edi
inc eax
shr edx, 1
dec ecx
cmp eax, edx
jb 0x46fbc2
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edi, dword [esp + 0x18]
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push esi
mov dword [ebp], 0xfffffff5
call fcn.004a588e
mov eax, dword [esp + 0x14]
add esp, 4
push eax
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edi, dword [esp + 0x18]
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov dword [ebp], 0xfffffff4
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edi, dword [esp + 0x18]
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0
push edi
mov dword [ebp], 0xfffffff3
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop edi
mov eax, esi
pop esi
mov dword [ebp], 0xfffffff2
pop ebp
pop ebx
add esp, 0xc
ret
mov dword [ebp], 0xfffffff6
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x47af8f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x47afb4
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x47afcc
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x47affb
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x47b03a
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x47b10e
sub edx, 0x10000
js 0x47b10e
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x47b020
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x47b020
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x47b091
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x47b08e
add edx, 8
jne 0x47b075
jmp 0x47b0ff
add edx, 4
test eax, 0xffff
jne 0x47b09e
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x47b0ff
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x47b0d2
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x47b020
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x47b10e
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x47b020
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x47b11f
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x47b190
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x47b1e2
mov eax, dword [esp]
cmp al, 2
jne 0x47b1dc
shr eax, 8
cmp al, 2
jne 0x47b1dc
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004a4a25
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.004a4a25
add esp, 0x194
ret
Function at 0x484130
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x484162
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 0x4842b0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x16c]
test ecx, ecx
je 0x4842cb
mov edx, dword [esi + 0xfc]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x4842ff
cmp eax, 2
jg 0x4842ff
mov ecx, dword [esi + 0xf8]
push ecx
push 1
lea edx, [eax + eax*2 + 0x4de26c]
push 2
push edx
call fcn.004ac2dd
mov eax, dword [esi + 0xf8]
push eax
push 1
push edi
push ebx
call fcn.004ac2dd
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi + eax*4 + 0xc8]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x48467f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x48465f
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push eax
push edi
call fcn.0049b5d0
push eax
mov eax, dword [edi]
push str.Send_failure:__s
push eax
call fcn.00484490
add esp, 0x14
mov dword [ebx], 0x37
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x484da0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x108
mov eax, dword [0x50a4c0]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push ebp
mov ebp, dword [esp + 0x114]
cmp dword [ebp + 0x134], 0
mov ebx, dword [ebp]
jne 0x484eb1
push esi
mov esi, dword [esp + 0x11c]
push edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
mov edi, 0x80
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x484e0f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0049b5d0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
jmp 0x484ea6
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x98]
push eax
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x484e43
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0049b5d0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x484ea6
lea edi, [ebx + 0x86c4]
lea ecx, [ebx + 0x8694]
lea esi, [esp + 0x14]
call fcn.00484d50
test eax, eax
jne 0x484e74
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0049b5d0
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x484ea6
lea edi, [ebx + 0x86f8]
lea ecx, [ebx + 0x86c8]
lea esi, [esp + 0x94]
call fcn.00484d50
test eax, eax
jne 0x484eaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0049b5d0
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00484490
add esp, 0x18
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
pop ebp
pop ebx
xor ecx, esp
call fcn.004a4a25
add esp, 0x108
ret

Function at 0x484ed0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x308]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x484f13
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0049b5d0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00484400
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00484400
add esp, 8
pop esi
pop ecx
ret

Function at 0x484f30
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x1c], 0x4020
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x484f79
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x484f91
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret
Function at 0x4853b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x518]
cmp eax, 0xffffffff
je 0x485416
mov ecx, dword [ecx + 0x50c]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x485416
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
test ecx, ecx
je 0x4853dc
mov dword [ecx], eax
mov ecx, dword [eax + 0xc8]
push esi
mov esi, dword [esp + 0xc]
mov dword [esi], ecx
cmp dword [eax + 0xe0], 0
jne 0x48540c
mov eax, dword [eax + 0xc8]
push 2
push 1
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x485412
mov dword [esi], 0xffffffff
pop esi
xor eax, eax
ret
mov ecx, dword [esp + 8]
mov dword [ecx], 0xffffffff
xor eax, eax
ret

Function at 0x486c10
Capabilities:
Create udp socket

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x48
push 1
mov ebx, eax
mov edi, ecx
call dword [0x50a054]
mov esi, eax
xor eax, eax
add esp, 8
mov dword [esp + 0x10], 0xc
mov dword [edi + 0x330], esi
cmp esi, eax
je 0x486ccb
mov dword [edi + 0x320], ebx
mov dword [edi + 0x328], eax
mov dword [edi + 0x32c], eax
mov dword [edi + 0x324], eax
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [esi], eax
lea ebp, [esi + 0x10]
push ebx
mov eax, ebp
mov dword [esi + 4], 0xffffffff
call fcn.00486a90
add esp, 8
test eax, eax
je 0x486ccb
mov eax, dword [edi + 0x31c]
push eax
call fcn.0047b980
push ebx
call dword [0x50a050]
add esp, 8
mov dword [edi + 0x31c], eax
test eax, eax
je 0x486ccb
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x486ccb
push ebp
push 0x486b20
call fcn.0049c010
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x486ced
call fcn.004a98f9
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
add edi, 0x31c
push edi
call fcn.00486bb0
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x48b340
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x4de1d8
push ecx
call fcn.00484400
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.0048a510
test eax, eax
jne 0x48b370
mov eax, esi
jmp fcn.0048a9a0
ret