joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f6920
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599def
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x615720]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x5f7f10
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.004e1200
lea eax, [ebp - 0x14]
mov dword [esi + 0x3c], 0
lea ebx, [edi + 0x10]
mov ecx, esi
push eax
mov dword [esi + 0x38], ebx
call fcn.004e11e0
push eax
mov dword [ebp - 4], 2
call fcn.004ee140
mov byte [ebp - 4], 1
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4f69ea
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4f69ea
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [ebp - 0x18]
push 0x20
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x4f6a0f
mov eax, dword [esi + 0xc]
mov ecx, esi
or eax, 4
push 0
push eax
call fcn.004e1100
mov dword [ebp - 4], 3
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, ebx
call fcn.004ecb00
lea eax, [ebx + 4]
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [ebx + 0xc], eax
lea ecx, [ebx + 8]
lea eax, [ebx + 0x14]
mov byte [ebx + 0x4c], 0
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov byte [ebx + 0x45], 0
mov dword [ebx + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov dword [ebx + 0x50], 0
mov eax, dword [0x61ed28]
mov dword [ebx + 0x48], eax
mov eax, edi
mov dword [ebx + 0x40], 0
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 0x4f6ad0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599e3f
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x615720]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x5f8b34
mov dword [edi + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.004e1200
lea eax, [ebp - 0x14]
mov dword [esi + 0x3c], 0
lea ebx, [edi + 4]
mov ecx, esi
push eax
mov dword [esi + 0x38], ebx
call fcn.004e11e0
push eax
mov dword [ebp - 4], 2
call fcn.004ee140
mov byte [ebp - 4], 1
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4f6b8c
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4f6b8c
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [ebp - 0x18]
push 0x20
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x4f6bb1
mov eax, dword [esi + 0xc]
mov ecx, esi
or eax, 4
push 0
push eax
call fcn.004e1100
mov dword [ebp - 4], 3
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, ebx
call fcn.004ecb00
lea eax, [ebx + 4]
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [ebx + 0xc], eax
lea ecx, [ebx + 8]
lea eax, [ebx + 0x14]
mov byte [ebx + 0x4c], 0
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov byte [ebx + 0x45], 0
mov dword [ebx + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov dword [ebx + 0x50], 0
mov eax, dword [0x61ed28]
mov dword [ebx + 0x48], eax
mov eax, edi
mov dword [ebx + 0x40], 0
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 0x50db70
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59bbb8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x615720]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.CTcpServer.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0x2710
call fcn.00515260
mov dword [esi + 0x10], eax
mov eax, dword [0x61ef94]
mov dword [esi + 0x14], bind
mov dword [esi + 0x18], 0x12c
test al, 1
jne 0x50dbf8
or eax, 1
mov dword [0x61ef94], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x30]
mov dword [0x61ef98], eax
jmp 0x50dbfd
mov eax, dword [0x61ef98]
mov dword [esi + 0x1c], eax
xor eax, eax
mov word [esi + 0x4c], ax
mov eax, dword [ebp + 8]
mov dword [esi + 0x20], 0x7530
mov dword [esi + 0x24], 0x258
mov dword [esi + 0x28], 0x4b0
mov dword [esi + 0x2c], 0x258
mov dword [esi + 0x30], 0x4b0
mov dword [esi + 0x34], 0xea60
mov dword [esi + 0x38], 0x4e20
mov dword [esi + 0x3c], 1
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], 0xffffffff
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 3
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
push 0
push 0
push 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [esi + 0x70], eax
sub esp, 0xc
lea ecx, [esi + 0x80]
call fcn.0050e490
push ecx
mov byte [ebp - 4], 3
lea ecx, [esi + 0x164]
mov dword [esi + 0x160], 0
call fcn.0050e600
mov dword [esi + 0x2a4], 0
mov eax, dword [esi + 0x2a4]
mov dword [esi + 0x2a0], 0
mov dword [esi + 0x2e4], 0
mov dword [esi + 0x324], 0
test eax, eax
je 0x50dd39
push eax
call fcn.0055eb32
mov dword [esi + 0x2a4], 0
add esp, 4
mov dword [esi + 0x2a0], 0
mov dword [esi + 0x2e4], 0
mov dword [esi + 0x324], 0
mov byte [ebp - 4], 5
mov dword [esi + 0x364], 0
mov dword [esi + 0x368], 0
push 8
mov dword [esi + 0x374], 0
call fcn.0055bcff
add esp, 4
test eax, eax
je 0x50dd78
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x50dd7a
xor eax, eax
mov dword [esi + 0x370], eax
mov dword [esi + 0x36c], eax
mov eax, esi
mov dword [esi + 0x378], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x510a50
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor edx, eax
movzx eax, byte [ebx + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [ebx + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [esi + 0x18], ecx
ja 0x510aa3
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov edx, dword [esi + 8]
mov esi, dword [esi]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov edi, dword [edx + ecx*4]
inc ecx
lea ecx, [edx + ecx*4]
mov dword [ebp + 0xc], ecx
cmp edi, esi
jne 0x510abf
mov ecx, esi
jmp 0x510ac3
mov ecx, dword [ecx]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x510b13
mov ecx, dword [eax + 8]
cmp ecx, dword [ebx]
je 0x510ad5
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
jmp 0x510ab7
mov ecx, dword [ebx]
mov edx, eax
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
nop
cmp edi, esi
jne 0x510ae8
mov ecx, esi
jmp 0x510aec
mov ecx, dword [ebx]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x510afc
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 8]
jne 0x510afc
mov eax, dword [eax]
jmp 0x510ae0
cmp edx, eax
je 0x510b13
mov ecx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [ecx + 4], eax
mov eax, ecx
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
mov dword [eax + 4], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x510c00
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi + 8]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 9]
xor edx, eax
movzx eax, byte [edi + 0xa]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 0xb]
imul ecx, edx, 0x1000193
mov edx, dword [ebx + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [ebx + 0x18], ecx
ja 0x510c53
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
lea edx, [ecx*8]
mov ecx, dword [ebx + 8]
add ecx, edx
cmp dword [ecx + 4], edi
jne 0x510c7f
cmp dword [ecx], edi
jne 0x510c77
mov eax, dword [ebx]
mov dword [ecx], eax
mov ecx, dword [ebx + 8]
mov eax, dword [ebx]
mov dword [ecx + edx + 4], eax
jmp 0x510c87
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x510c87
cmp dword [ecx], edi
jne 0x510c8a
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov esi, dword [edi]
push edi
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 4]
call fcn.0055bcd8
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x510ee0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [ebx + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [ebx + 0x18], ecx
ja 0x510f33
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov edx, dword [ebx + 8]
lea eax, [ecx*8]
mov esi, dword [ebx]
mov dword [ebp - 4], eax
add eax, edx
mov dword [ebp + 0xc], eax
mov eax, dword [eax]
cmp esi, eax
je 0x510f6d
mov esi, dword [ebp + 0xc]
mov esi, dword [esi + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x510f6d
mov eax, dword [edi]
jmp 0x510f60
mov esi, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x510fb0
cmp esi, dword [edx + ecx*8]
jne 0x510f60
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x510f97
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov ecx, dword [ebx + 8]
mov edx, dword [ebp - 4]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x510fe0
mov dword [ecx], edi
mov eax, dword [ebx + 8]
mov dword [eax + edx + 4], edi
jmp 0x511002
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 4]
call fcn.0055bcd8
mov eax, dword [ebp + 8]
add esp, 4
mov dword [eax], esi
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x510fe8
mov dword [ecx], edi
jmp 0x511002
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x511002
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.00511020
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5110e0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [ebx + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [ebx + 0x18], ecx
ja 0x511133
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov edx, dword [ebx + 8]
lea eax, [ecx*8]
mov esi, dword [ebx]
mov dword [ebp - 4], eax
add eax, edx
mov dword [ebp + 0xc], eax
mov eax, dword [eax]
cmp esi, eax
je 0x51116d
mov esi, dword [ebp + 0xc]
mov esi, dword [esi + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x51116d
mov eax, dword [edi]
jmp 0x511160
mov esi, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x5111b0
cmp esi, dword [edx + ecx*8]
jne 0x511160
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x511197
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov ecx, dword [ebx + 8]
mov edx, dword [ebp - 4]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x5111e0
mov dword [ecx], edi
mov eax, dword [ebx + 8]
mov dword [eax + edx + 4], edi
jmp 0x511202
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 4]
call fcn.0055bcd8
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
mov byte [eax + 4], 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x5111e8
mov dword [ecx], edi
jmp 0x511202
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x511202
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.00511020
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5117c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov ecx, dword [ebp + 8]
push edi
test ecx, ecx
je 0x5117e3
cmp word [ecx], bx
jne 0x5117e8
mov ecx, str.0.0.0.0
mov edx, dword [ebp + 0xc]
xor eax, eax
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x30]
push eax
call fcn.00514d10
add esp, 4
test eax, eax
je 0x51197e
mov ax, word [ebp - 0x30]
push 6
mov word [esi + 0x4c], ax
push 1
movzx eax, ax
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, eax
mov dword [esi + 0x54], ecx
cmp ecx, 0xffffffff
je 0x51197e
mov edx, dword [esi + 0x34]
test edx, edx
je 0x51183c
cmp dword [esi + 0x38], ebx
jbe 0x51183c
mov eax, 1
jmp 0x51183e
xor eax, eax
push 0
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x38]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], edx
push eax
push 0x98000004
push ecx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x511884
call edi
cmp eax, 0x2733
je 0x511884
test eax, eax
jne 0x5119a7
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0xfffffffffffffffb
push 0xffff
push dword [esi + 0x54]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x5119b1
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0x8004667e
push dword [esi + 0x54]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x5119bb
cmp word [ebp - 0x30], 2
mov ecx, 0x10
mov eax, 0x1c
cmove eax, ecx
push eax
lea eax, [ebp - 0x30]
push eax
push dword [esi + 0x54]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x51196b
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov ecx, esi
push dword [esi + 0x54]
call dword [eax + 0xe4]
cmp eax, 2
je 0x511955
push dword [esi + 0x14]
push dword [esi + 0x54]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x511942
mov ecx, dword [esi + 0x54]
call fcn.00514d90
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x40], eax
call fcn.00514e00
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x44], eax
call fcn.00514e70
mov dword [esi + 0x48], eax
mov ebx, 1
jmp 0x511992
call edi
push eax
push str.CTcpServer::CreateListenSocket
push 6
mov ecx, esi
call fcn.005114f0
jmp 0x511992
call fcn.00511260
push eax
push str.CTcpServer::CreateListenSocket
push 5
mov ecx, esi
call fcn.005114f0
jmp 0x511992
call edi
push eax
push str.CTcpServer::CreateListenSocket
push 4
mov ecx, esi
call fcn.005114f0
jmp 0x511992
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov dword [esi + 0x60], 3
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055e34d
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004e16e0
push 0x80004005
call fcn.004e16e0
push 0x80004005
call fcn.004e16e0
int3
Function at 0x5119d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 8], esi
cmp dword [esi + 0x10], ebx
jbe 0x511a96
push edi
lea esp, [esp]
push 0
push 0
push esi
push 0x512b70
push 0
push 0
call fcn.00565b28
mov edi, eax
add esp, 0x18
mov dword [ebp - 4], edi
test edi, edi
je 0x511a79
mov eax, dword [esi + 0x68]
lea ecx, [ebp - 4]
cmp ecx, eax
jae 0x511a49
mov ecx, dword [esi + 0x64]
lea edx, [ebp - 4]
cmp ecx, edx
ja 0x511a49
mov edi, edx
sub edi, ecx
sar edi, 2
cmp eax, dword [esi + 0x6c]
jne 0x511a38
push ecx
lea ecx, [esi + 0x64]
call fcn.00514390
mov ecx, dword [esi + 0x68]
test ecx, ecx
je 0x511a60
mov eax, dword [esi + 0x64]
mov eax, dword [eax + edi*4]
mov dword [ecx], eax
jmp 0x511a60
cmp eax, dword [esi + 0x6c]
jne 0x511a57
push ecx
lea ecx, [esi + 0x64]
call fcn.00514390
mov eax, dword [esi + 0x68]
test eax, eax
je 0x511a60
mov dword [eax], edi
add dword [esi + 0x68], 4
inc ebx
mov esi, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jb 0x5119f0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov dword [esi + 0x60], 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
mov dword [ebp - 4], 0x1c
mov word [ebp - 0x20], ax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ecx + 0x54]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x5121f0
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
lea edx, [ebp + 0x10]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push dword [ebp + 8]
call fcn.00514c30
add esp, 0xc
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ecx + 0x168]
test esi, esi
je 0x51229b
mov eax, dword [ebp + 8]
xor edx, edx
dec eax
div dword [ecx + 0x164]
mov ecx, dword [ecx + 0x1a8]
movzx ecx, byte [ecx + edx]
cmp eax, ecx
jne 0x51229b
mov ecx, dword [esi + edx*4]
mov eax, 0xf
cmp eax, ecx
sbb eax, eax
neg eax
cmp eax, 1
jne 0x51229b
test ecx, ecx
je 0x51229b
cmp dword [ecx + 0x30], 0
je 0x51229b
xor eax, eax
mov dword [ebp - 4], 0x1c
mov word [ebp - 0x20], ax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ecx + 0x8c]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x51229b
push dword [ebp + 0x14]
lea edx, [ebp + 8]
push dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
push dword [ebp + 0xc]
call fcn.00514c30
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x512a70
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov eax, dword [edi]
call dword [eax + 0x28]
test eax, eax
je 0x512b46
movzx eax, word [edi + 0x4c]
push 6
push 1
push eax
call dword [sym.imp.WS2_32.dll_socket]
lea ecx, [edi + 0x80]
mov dword [ebp - 4], eax
call fcn.00514000
mov ebx, eax
mov dword [ebp - 8], 0x10
mov eax, dword [edi + 0x1c]
push ebx
push 0
mov dword [ebx + 0x1c], eax
movzx ecx, word [edi + 0x4c]
mov edx, dword [edi + 0x54]
cmp ecx, 2
mov esi, dword [edi + 0x40]
mov eax, dword [ebp - 4]
mov dword [ebx + 0x34], eax
mov eax, 0x1c
cmove eax, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 0xc], ebx
push eax
push eax
push 0
push dword [ebx + 0x20]
mov dword [ebx + 0x18], 1
push dword [ebp - 4]
push edx
call esi
test eax, eax
jne 0x512afb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x512afd
xor eax, eax
xor ecx, ecx
cmp eax, 0x3e5
cmove eax, ecx
xor ebx, ebx
test eax, eax
sete bl
test ebx, ebx
jne 0x512b53
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
test eax, eax
jne 0x512b5c
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [ebp - 0xc]
lea ecx, [edi + 0x9c]
push esi
call fcn.00510420
test eax, eax
jne 0x512b46
push esi
push eax
mov eax, dword [esi + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [edi + 0x378]
or edx, 0xffffffff
lock xadd dword [ecx], edx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004e16e0
int3