joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f4710
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599d5e
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
test edi, edi
jne 0x4f474a
xor eax, eax
jmp 0x4f48ea
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x4f48e8
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x4f48e8
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], eax
call fcn.004f42e0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], esi
mov word [ebp - 0x28], ax
push edi
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 1
call fcn.004e98c0
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.004ee440
push str.__failed_Error:
push eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 3
push eax
call fcn.004ee340
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004ee980
mov edi, eax
add esp, 0x1c
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x4f4814
cmp dword [ebp - 0x14], 8
jb 0x4f47f7
push dword [ebp - 0x28]
call fcn.0055be79
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.004ebad0
cmp dword [ebp - 0x44], 8
jb 0x4f4825
push dword [ebp - 0x58]
call fcn.0055be79
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
cmp dword [ebp - 0x74], 8
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jb 0x4f484d
push dword [ebp - 0x88]
call fcn.0055be79
add esp, 4
xor eax, eax
mov dword [ebp - 0x74], 7
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
jb 0x4f4875
push dword [ebp - 0x70]
call fcn.0055be79
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
cmp dword [ebp - 0x8c], 8
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
jb 0x4f48a0
push dword [ebp - 0xa0]
call fcn.0055be79
add esp, 4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], 8
jb 0x4f48c3
push dword [ebp - 0x28]
call fcn.0055be79
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x4f48e8
push dword [ebp - 0x40]
call fcn.0055be79
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055e4ed
mov esp, ebp
pop ebp
ret
Function at 0x4f6960
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599f9f
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], 0x5f7f90
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 0x4f6a2a
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4f6a2a
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 0x4f6a4f
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 [0x61ece8]
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 0x4f6b10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599fef
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], 0x5f8c8c
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 0x4f6bcc
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4f6bcc
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 0x4f6bf1
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 [0x61ece8]
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 0x50dd30
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59bd68
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.00515420
mov dword [esi + 0x10], eax
mov eax, dword [0x61ef54]
mov dword [esi + 0x14], bind
mov dword [esi + 0x18], 0x12c
test al, 1
jne 0x50ddb8
or eax, 1
mov dword [0x61ef54], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x30]
mov dword [0x61ef58], eax
jmp 0x50ddbd
mov eax, dword [0x61ef58]
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.0050e650
push ecx
mov byte [ebp - 4], 3
lea ecx, [esi + 0x164]
mov dword [esi + 0x160], 0
call fcn.0050e7c0
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 0x50def9
push eax
call fcn.0055ecd2
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.0055bea0
add esp, 4
test eax, eax
je 0x50df38
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x50df3a
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 0x510c10
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 0x510c63
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 0x510c7f
mov ecx, esi
jmp 0x510c83
mov ecx, dword [ecx]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x510cd3
mov ecx, dword [eax + 8]
cmp ecx, dword [ebx]
je 0x510c95
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
jmp 0x510c77
mov ecx, dword [ebx]
mov edx, eax
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
nop
cmp edi, esi
jne 0x510ca8
mov ecx, esi
jmp 0x510cac
mov ecx, dword [ebx]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x510cbc
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 8]
jne 0x510cbc
mov eax, dword [eax]
jmp 0x510ca0
cmp edx, eax
je 0x510cd3
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 0x510dc0
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 0x510e13
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 0x510e3f
cmp dword [ecx], edi
jne 0x510e37
mov eax, dword [ebx]
mov dword [ecx], eax
mov ecx, dword [ebx + 8]
mov eax, dword [ebx]
mov dword [ecx + edx + 4], eax
jmp 0x510e47
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x510e47
cmp dword [ecx], edi
jne 0x510e4a
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.0055be79
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x5110a0
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 0x5110f3
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 0x51112d
mov esi, dword [ebp + 0xc]
mov esi, dword [esi + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x51112d
mov eax, dword [edi]
jmp 0x511120
mov esi, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x511170
cmp esi, dword [edx + ecx*8]
jne 0x511120
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x511157
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 0x5111a0
mov dword [ecx], edi
mov eax, dword [ebx + 8]
mov dword [eax + edx + 4], edi
jmp 0x5111c2
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.0055be79
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 0x5111a8
mov dword [ecx], edi
jmp 0x5111c2
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x5111c2
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.005111e0
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 0x5112a0
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 0x5112f3
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 0x51132d
mov esi, dword [ebp + 0xc]
mov esi, dword [esi + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x51132d
mov eax, dword [edi]
jmp 0x511320
mov esi, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x511370
cmp esi, dword [edx + ecx*8]
jne 0x511320
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x511357
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 0x5113a0
mov dword [ecx], edi
mov eax, dword [ebx + 8]
mov dword [eax + edx + 4], edi
jmp 0x5113c2
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.0055be79
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 0x5113a8
mov dword [ecx], edi
jmp 0x5113c2
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x5113c2
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.005111e0
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 0x511980
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 0x5119a3
cmp word [ecx], bx
jne 0x5119a8
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.00514ed0
add esp, 4
test eax, eax
je 0x511b3e
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 0x511b3e
mov edx, dword [esi + 0x34]
test edx, edx
je 0x5119fc
cmp dword [esi + 0x38], ebx
jbe 0x5119fc
mov eax, 1
jmp 0x5119fe
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 0x511a44
call edi
cmp eax, 0x2733
je 0x511a44
test eax, eax
jne 0x511b67
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 0x511b71
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 0x511b7b
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 0x511b2b
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 0x511b15
push dword [esi + 0x14]
push dword [esi + 0x54]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x511b02
mov ecx, dword [esi + 0x54]
call fcn.00514f50
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x40], eax
call fcn.00514fc0
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x44], eax
call fcn.00515030
mov dword [esi + 0x48], eax
mov ebx, 1
jmp 0x511b52
call edi
push eax
push str.CTcpServer::CreateListenSocket
push 6
mov ecx, esi
call fcn.005116b0
jmp 0x511b52
call fcn.00511420
push eax
push str.CTcpServer::CreateListenSocket
push 5
mov ecx, esi
call fcn.005116b0
jmp 0x511b52
call edi
push eax
push str.CTcpServer::CreateListenSocket
push 4
mov ecx, esi
call fcn.005116b0
jmp 0x511b52
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.0055e4ed
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 0x511b90
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 0x511c56
push edi
lea esp, [esp]
push 0
push 0
push esi
push 0x512d30
push 0
push 0
call fcn.00565cb8
mov edi, eax
add esp, 0x18
mov dword [ebp - 4], edi
test edi, edi
je 0x511c39
mov eax, dword [esi + 0x68]
lea ecx, [ebp - 4]
cmp ecx, eax
jae 0x511c09
mov ecx, dword [esi + 0x64]
lea edx, [ebp - 4]
cmp ecx, edx
ja 0x511c09
mov edi, edx
sub edi, ecx
sar edi, 2
cmp eax, dword [esi + 0x6c]
jne 0x511bf8
push ecx
lea ecx, [esi + 0x64]
call fcn.00514550
mov ecx, dword [esi + 0x68]
test ecx, ecx
je 0x511c20
mov eax, dword [esi + 0x64]
mov eax, dword [eax + edi*4]
mov dword [ecx], eax
jmp 0x511c20
cmp eax, dword [esi + 0x6c]
jne 0x511c17
push ecx
lea ecx, [esi + 0x64]
call fcn.00514550
mov eax, dword [esi + 0x68]
test eax, eax
je 0x511c20
mov dword [eax], edi
add dword [esi + 0x68], 4
inc ebx
mov esi, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jb 0x511bb0
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 0x512380
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 0x5123b0
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.00514df0
add esp, 0xc
mov esp, ebp
pop ebp
ret 0xc

Function at 0x5123d0
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 0x51245b
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 0x51245b
mov ecx, dword [esi + edx*4]
mov eax, 0xf
cmp eax, ecx
sbb eax, eax
neg eax
cmp eax, 1
jne 0x51245b
test ecx, ecx
je 0x51245b
cmp dword [ecx + 0x30], 0
je 0x51245b
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 0x51245b
push dword [ebp + 0x14]
lea edx, [ebp + 8]
push dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
push dword [ebp + 0xc]
call fcn.00514df0
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10