joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49a9c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0xa4
mov eax, dword [0x617560]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xac]
push ebx
push ebp
push esi
push edi
push ecx
mov dword [esp + 0x1c], eax
call fcn.0049af40
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x49aa4b
mov eax, 0xf
push 0x608f10
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], vtable.CUDTException.0
mov dword [esp + 0x28], 5
mov dword [esp + 0x2c], 4
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov dword [esp + 0x30], ebx
call fcn.004eb93b
cmp dword [edi], 1
je 0x49aaa3
mov eax, 0xf
mov dword [esp + 0x44], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x7c], eax
push 0x608f10
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], vtable.CUDTException.0
mov dword [esp + 0x28], 5
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov dword [esp + 0x30], ebx
call fcn.004eb93b
cmp dword [edi + 0x10], 2
jne 0x49aaba
mov dword [esp + 0x14], 0x10
lea ebp, [esp + 0x80]
jmp 0x49aac9
mov dword [esp + 0x14], 0x1c
lea ebp, [esp + 0x90]
mov edx, dword [esp + 0xb8]
lea ecx, [esp + 0x14]
push ecx
push ebp
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x49ab3c
mov eax, 0xf
mov dword [esp + 0x1c], vtable.CUDTException.0
mov dword [esp + 0x20], 5
mov dword [esp + 0x24], 3
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x28], eax
push 0x608f10
lea eax, [esp + 0x20]
push eax
call fcn.004eb93b
mov esi, dword [edi + 0x2c]
call fcn.0049fc70
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0xbc]
push edx
push ebp
mov ecx, edi
call fcn.0049c3a0
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x2c]
mov dword [edi], 2
mov edx, dword [ecx + 0x208]
push eax
mov eax, dword [edx + 8]
call fcn.004a9420
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004e3dc3
add esp, 0xa4
ret 8
Function at 0x49bc20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c0468
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push edi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esi + 0x28]
lea edi, [esi + 0x28]
push 0xffffffffffffffff
push eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], 0
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49bc82
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x10], eax
lea eax, [esi + 0x1c]
lea ebx, [esp + 0x10]
call fcn.0049d680
cmp dword [esp + 0x18], 0xffffffff
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
je 0x49bcbb
mov edx, dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x49ebd0
Capabilities:
Resolve dns

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, eax
mov eax, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x49ec64
cmp word [ebx + 8], 2
push edi
jne 0x49ec35
cmp word [ebx + 0xa], 4
jne 0x49ec35
mov edi, dword [ebx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x49ec35
jmp 0x49ec10
mov edx, dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push ebp
push eax
push ecx
call fcn.0049eb60
test eax, eax
mov dword [esi], eax
je 0x49ec58
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x49ec10
mov edx, dword [ebx]
mov eax, dword [esp + 0x20]
push 0x400
push edx
push 0x401
push eax
call fcn.004e6893
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
ret 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x49ec74.11001
jmp dword [eax*4 + 0x49ec9c]
pop esi
pop ebp
mov eax, 0x2af9
pop ebx
ret 0x10
pop esi
pop ebp
mov eax, 0x2afa
pop ebx
ret 0x10
pop esi
pop ebp
mov eax, 0x2afb
pop ebx
ret 0x10
Function at 0x49f4c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x238
mov eax, dword [0x617560]
xor eax, esp
mov dword [esp + 0x234], eax
cmp dword [0x637b38], 0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], str.getaddrinfo
mov dword [esp + 0x14], 0x49ef20
mov dword [esp + 0x18], str.getnameinfo
mov dword [esp + 0x1c], 0x49f200
mov dword [esp + 0x20], str.freeaddrinfo
mov dword [esp + 0x24], fcn.0049eed0
je 0x49f525
movzx eax, word [esp + 0x24c]
mov eax, dword [eax*8 + 0x61b9dc]
jmp 0x49f63e
push 0x104
lea ecx, [esp + 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x49f625
lea edx, [esp + 0x138]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.004e937d
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.004e93e2
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x49f59c
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x49f5e8
push esi
call ebp
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.004e937d
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.004e93e2
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x49f625
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x49f5e8
push esi
call ebp
jmp 0x49f625
xor edi, edi
lea ebx, [ebx]
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x49f5e3
add edi, 1
cmp edi, 3
jl 0x49f5f0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x61b9dc], edx
mov dword [0x61b9e4], eax
mov dword [fcn.0049eed0], ecx
movzx edx, word [esp + 0x24c]
mov eax, dword [edx*8 + 0x61b9dc]
mov dword [0x637b38], 1
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e3dc3
add esp, 0x238
ret 4
Function at 0x4a46c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5c0298
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0xc]
lea edi, [esi + 0xc]
or ebx, 0xffffffff
push ebx
push eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], 0
cmp dword [esi + 8], ebx
jne 0x4a471e
cmp eax, ebx
je 0x4a47bd
mov ecx, dword [edi]
push ecx
jmp 0x4a47b7
mov edx, dword [esi]
mov eax, dword [edx]
mov edi, dword [eax]
mov eax, edi
mov ecx, esi
call fcn.004a4870
mov cl, byte [edi + 0x5d]
test cl, cl
je 0x4a47aa
mov dl, byte [edi + 0x60]
test dl, dl
jne 0x4a47aa
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.004a3040
test eax, eax
jle 0x4a47aa
mov eax, dword [edi + 0x210]
mov ecx, dword [esp + 0x40]
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
test eax, eax
mov ecx, dword [esp + 0x1c]
ja 0x4a476a
test ecx, ecx
jbe 0x4a477d
mov dword [esp + 0x28], eax
mov eax, edi
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ecx
call fcn.004a47e0
cmp dword [esp + 0x18], ebx
je 0x4a4790
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 8
cmp dword [esp + 0x18], ebx
je 0x4a47bd
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 8
Function at 0x4a49a0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x5bf61b
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov eax, dword [esp + 0x84]
push 0x1c
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
call fcn.004c51db
add esp, 4
mov dword [esp + 0x84], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x7c], ebx
je 0x4a49f6
mov esi, eax
call fcn.004a45b0
jmp 0x4a49f8
xor eax, eax
mov dword [esp + 0x7c], 0xffffffff
mov dword [edi + 4], eax
lea edx, [edi + 0x10]
mov dword [eax + 0x10], edx
mov ecx, dword [edi + 4]
lea eax, [edi + 0x14]
mov dword [ecx + 0x14], eax
mov edx, dword [edi + 4]
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0xc]
push ecx
push ebx
push edi
push 0x4a4ab0
push ebx
push ebx
mov dword [edx + 0x18], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [edi], eax
jne 0x4a4a8f
mov eax, 0xf
mov dword [esp + 0x10], vtable.CUDTException.0
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], 1
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x608f10
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x24], eax
call fcn.004eb93b
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x74
ret 4
Function at 0x4a5160
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5c1c66
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov byte [esi + 0x38], bl
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov byte [esp + 0x1c], 1
mov dword [esi + 0x5c], ebx
call fcn.004a6b80
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x64], eax
mov byte [eax + 0x15], 1
mov eax, dword [esi + 0x64]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x64]
mov dword [eax], eax
mov eax, dword [esi + 0x64]
push ebx
mov dword [eax + 8], eax
push ebx
mov dword [esi + 0x68], ebx
push ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x6c], eax
call ebp
push ebx
push ebx
push ebx
mov dword [esi + 0x70], eax
call edi
push ebx
push ebx
push ebx
mov dword [esi + 0x40], eax
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x5c], eax
call ebp
mov dword [esi + 0x3c], eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x4a53d0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x5c665b
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [esp + 0x98]
mov ebp, dword [esp + 0x90]
mov ecx, dword [eax]
push edx
push eax
lea eax, [ebp + 4]
mov dword [ebp + 0x34], ecx
mov ecx, dword [esp + 0x9c]
push eax
call fcn.004a41a0
push 8
call fcn.004c51db
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x4a5436
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x4a5438
xor eax, eax
mov esi, dword [esp + 0x9c]
mov edi, eax
mov dword [ebp + 0x28], eax
call fcn.004a4d30
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
push 8
mov dword [ebp + 0x2c], ecx
mov dword [ebp + 0x30], edx
call fcn.004c51db
add esp, 4
cmp eax, ebx
je 0x4a5472
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x4a5474
xor eax, eax
push 0x14
mov dword [ebp + 0x24], eax
call fcn.004c51db
add esp, 4
mov esi, eax
cmp esi, ebx
je 0x4a54a1
push ebx
push ebx
push ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x10], eax
jmp 0x4a54a3
xor esi, esi
lea eax, [esp + 0x98]
push eax
push ebx
push ebp
push 0x4a5550
push ebx
mov dword [esp + 0x9c], 0xffffffff
push ebx
mov dword [ebp + 0x48], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [ebp], eax
jne 0x4a5529
mov eax, 0xf
mov dword [esp + 0x1c], vtable.CUDTException.0
mov dword [esp + 0x20], 3
mov dword [esp + 0x24], 1
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x608f10
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x30], eax
call fcn.004eb93b
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 0x18

Function at 0x4a8eb0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x617560]
xor eax, esp
mov dword [esp + 0x5c], eax
push esi
mov eax, edx
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0x67452301
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 0x18], 0x98badcfe
mov dword [esp + 0x1c], 0x10325476
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4a8ef7
sub eax, esi
mov ecx, eax
test ecx, ecx
jle 0x4a8f1f
push 0
push ecx
lea esi, [esp + 0x10]
lea eax, [ecx*8]
push esi
call fcn.004abba0
add esp, 0xc
lea esi, [esp + 8]
call fcn.004abc50
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
call fcn.004e3dc3
add esp, 0x64
ret
Function at 0x4a9140
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x90
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov esi, ecx
mov edi, eax
mov eax, dword [esi + 8]
push 2
push eax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x4a91ce
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
mov ecx, 0xf
mov dword [esp + 0x34], vtable.CUDTException.0
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
mov dword [esp + 0x94], ecx
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
jne 0x4a91bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x608f10
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x48], eax
call fcn.004eb93b
cmp edi, ebx
je 0x4a921b
mov ecx, dword [esi + 8]
sub ecx, 2
neg ecx
sbb ecx, ecx
and ecx, 0xc
add ecx, 0x10
push ecx
push edi
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4a930d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, 3
mov eax, 1
lea esi, [esp + 0x34]
call fcn.004a88a0
push 0x608f10
mov edx, esi
push edx
call fcn.004eb93b
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x18], eax
mov eax, dword [0x637b40]
cmp eax, ebx
mov dword [esp + 0x14], 1
mov dword [esp + 0x1c], 2
jne 0x4a9268
push ebx
call fcn.0049f4c0
mov dword [0x637b40], eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push str.0123456789_:
push ebx
call eax
mov edi, eax
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp edi, ebx
je 0x4a92af
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, 3
mov eax, 1
lea esi, [esp + 0x34]
call fcn.004a88a0
push 0x608f10
mov eax, esi
push eax
call fcn.004eb93b
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x18]
mov eax, dword [esi + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4a92f1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, 3
mov eax, 1
lea esi, [esp + 0x34]
call fcn.004a88a0
push 0x608f10
mov ecx, esi
push ecx
call fcn.004eb93b
mov eax, dword [0x637b44]
cmp eax, ebx
mov edi, dword [esp + 0x10]
jne 0x4a930a
push 2
call fcn.0049f4c0
mov dword [0x637b44], eax
push edi
call eax
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x90
jmp fcn.004a9320
Function at 0x4a9320
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x68
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
mov ecx, dword [esi + 0xc]
push 4
lea eax, [esi + 0x14]
push eax
push 0x1002
push 0xffff
push ecx
call edi
test eax, eax
jne 0x4a93b0
mov eax, dword [esi + 0xc]
push 4
lea edx, [esi + 0x10]
push edx
push 0x1001
push 0xffff
push eax
call edi
test eax, eax
jne 0x4a93b0
mov edx, dword [esi + 0xc]
push 4
lea ecx, [esp + 0xc]
push ecx
push 0x1006
push 0xffff
push edx
mov dword [esp + 0x1c], 1
call edi
test eax, eax
je 0x4a9417
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, 3
mov eax, 1
lea esi, [esp + 0xc]
call fcn.004a88a0
push 0x608f10
mov eax, esi
push eax
call fcn.004eb93b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
cmp eax, 0xffffffff
mov edx, 0xf
mov dword [esp + 0xc], vtable.CUDTException.0
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 3
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ecx
mov byte [esp + 0x20], cl
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], ecx
mov byte [esp + 0x3c], cl
mov dword [esp + 0x6c], edx
mov dword [esp + 0x68], ecx
mov byte [esp + 0x58], cl
jne 0x4a9404
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x608f10
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x20], eax
call fcn.004eb93b
pop edi
pop esi
add esp, 0x68
ret

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

Disassembly:
push ecx
mov ecx, dword [eax + 8]
sub ecx, 2
neg ecx
sbb ecx, ecx
and ecx, 0xc
add ecx, 0x10
lea edx, [esp]
push edx
mov edx, dword [eax + 0xc]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xc]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
pop ecx
ret 4
Function at 0x4a9450
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
test dword [esi + 0x14], 0x80000000
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_htonl]
push edi
je 0x4a9491
mov eax, dword [esi + 0x2c]
cdq
and edx, 3
add eax, edx
mov ebx, eax
sar ebx, 2
xor edi, edi
test ebx, ebx
jle 0x4a9491
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + edi*4]
push edx
call ebp
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov dword [edx + edi*4], eax
add edi, 1
cmp edi, ebx
jl 0x4a9477
lea edi, [esi + 0x14]
mov ebx, 4
lea esp, [esp]
mov eax, dword [edi]
push eax
call ebp
mov dword [edi], eax
add edi, 4
sub ebx, 1
jne 0x4a94a0
mov ecx, dword [esi + 0x2c]
mov edx, dword [esp + 0x18]
add ecx, 0x10
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 8]
sub eax, 2
neg eax
push 0
sbb eax, eax
push 0
and eax, 0xc
add eax, 0x10
push eax
push edx
push 0
lea eax, [esp + 0x20]
push eax
mov eax, dword [ecx + 0xc]
push 2
lea edx, [esi + 0x24]
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSASendTo]
test eax, eax
jne 0x4a94fc
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], ecx
jmp 0x4a9504
mov dword [esp + 0x14], 0xffffffff
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
lea edi, [esi + 0x14]
mov ebx, 4
mov edx, dword [edi]
push edx
call ebp
mov dword [edi], eax
add edi, 4
sub ebx, 1
jne 0x4a9512
test dword [esi + 0x14], 0x80000000
je 0x4a955a
mov eax, dword [esi + 0x2c]
cdq
and edx, 3
add eax, edx
mov ebx, eax
sar ebx, 2
xor edi, edi
test ebx, ebx
jle 0x4a955a
mov edi, edi
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + edi*4]
push edx
call ebp
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov dword [edx + edi*4], eax
add edi, 1
cmp edi, ebx
jl 0x4a9540
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x4a9570
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x66c
mov eax, dword [0x617560]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push ebp
push edi
mov edi, ecx
mov ebx, edx
jmp 0x4a9590
mov ecx, dword [edi + 8]
mov eax, dword [esi + 0x2c]
sub ecx, 2
push 0
add eax, 0x10
neg ecx
push 0
sbb ecx, ecx
and ecx, 0xc
lea edx, [esp + 0x18]
push edx
mov edx, dword [edi + 0xc]
push ebx
add ecx, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
push 2
lea ebp, [esi + 0x24]
push ebp
push edx
mov dword [esp + 0x38], 0
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
test eax, eax
jne 0x4a9671
mov eax, dword [esp + 0xc]
test eax, eax
jle 0x4a9671
mov ecx, dword [esi + 0xc]
cmp dword [ecx], 0xfed8d0e6
jne 0x4a968f
cmp eax, 0x10
jb 0x4a968f
mov edx, dword [edi + 0xc]
mov eax, dword [ebx]
mov ebp, dword [ebp]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x18], edx
mov edx, dword [ebx + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x28], edx
mov edx, dword [esi + 0x28]
push ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x28], ecx
call fcn.004f0e70
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x30]
push ecx
push edx
lea eax, [esp + ebp + 0x48]
push eax
call fcn.004f0e70
mov ecx, dword [esp + 0x24]
mov edx, dword [edi + 4]
push edx
lea eax, [esp + 0x34]
mov dword [esp + 0x4c], ecx
mov ecx, dword [edi]
push eax
call ecx
add esp, 0x20
jmp 0x4a9590
pop edi
or eax, 0xffffffff
pop ebp
mov dword [esi + 0x2c], eax
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.004e3dc3
add esp, 0x66c
ret
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
add eax, 0xfffffff0
mov dword [esi + 0x2c], eax
lea edi, [esi + 0x14]
mov ebx, 4
mov edx, dword [edi]
push edx
call ebp
mov dword [edi], eax
add edi, 4
sub ebx, 1
jne 0x4a96a3
test dword [esi + 0x14], 0x80000000
je 0x4a96ea
mov eax, dword [esi + 0x2c]
cdq
and edx, 3
add eax, edx
mov ebx, eax
sar ebx, 2
xor edi, edi
test ebx, ebx
jle 0x4a96ea
nop
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + edi*4]
push edx
call ebp
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov dword [edx + edi*4], eax
add edi, 1
cmp edi, ebx
jl 0x4a96d0
mov ecx, dword [esp + 0x674]
mov eax, dword [esi + 0x2c]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e3dc3
add esp, 0x66c
ret