joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6aeec5
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
test esi, esi
je 0x6aef18
push dword [esi]
call fcn.006af0a1
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 4]
pop ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], edi
movzx eax, word [eax*2 + 0x8760a8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 8]
mov dword [ebp - 8], edi
mov eax, dword [eax*4 + 0x8760b0]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xc]
mov eax, dword [eax*4 + 0x8760bc]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], edi
push eax
xor ecx, ecx
lea eax, [ebp - 0x24]
test esi, esi
cmove eax, ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.006aedc7
pop ecx
pop ecx
test al, al
je 0x6aef6d
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
mov dword [esi + 0xc], eax
cmp dword [esi + 4], edi
je 0x6aef5d
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, dword [0x8760ec]
jmp 0x6aef73
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
leave
ret

Function at 0x6af10e
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
inc eax
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, 0x963c38
lock xadd dword [edi], eax
test eax, eax
jne 0x6af188
test ecx, ecx
je 0x6af148
push esi
push edx
call ecx
pop ecx
pop ecx
jmp 0x6af18d
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x6af18d
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x6af16f
shr eax, 8
cmp al, 2
je 0x6af188
call dword [sym.imp.WS2_32.dll_WSACleanup]
test eax, eax
je 0x6af181
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x6af18d
mov eax, 0x276c
jmp 0x6af18d
mov eax, dword [0x8760ec]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.007207bc
leave
ret
Function at 0x6b523b
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi], 0
jne 0x6b53b8
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x6b53b8
cmp dword [esi + 0x18], eax
jne 0x6b53b8
cmp dword [esi + 0x1c], 0xffffffff
jne 0x6b53b8
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
je 0x6b53b8
push eax
call fcn.006abbf5
pop ecx
mov ecx, eax
mov dword [ebp + 8], eax
or ecx, edx
je 0x6b53b8
mov ebx, dword [ebp + 0x20]
cmp ebx, edx
ja 0x6b53b8
mov edi, dword [ebp + 0x1c]
jb 0x6b52a5
cmp edi, eax
ja 0x6b53b8
mov ecx, eax
mov eax, edx
sub ecx, edi
sbb eax, ebx
cmp dword [ebp + 0x18], eax
ja 0x6b53b8
mov eax, dword [ebp + 0x14]
jb 0x6b52c3
cmp eax, ecx
ja 0x6b53b8
mov ecx, dword [ebp + 8]
cmp eax, ecx
jne 0x6b52d3
cmp dword [ebp + 0x18], edx
je 0x6b53b8
mov eax, edi
or eax, ebx
jne 0x6b52e3
mov edi, ecx
mov ebx, edx
sub edi, dword [ebp + 0x14]
sbb ebx, dword [ebp + 0x18]
call fcn.006b5fbf
mov ecx, dword [ebp + 0x18]
mov edx, eax
xor eax, eax
mov dword [esi + 8], edi
add edx, 0xffffffff
mov dword [esi + 0xc], ebx
not edx
adc eax, 0xffffffff
not eax
mov dword [ebp + 8], eax
and dword [ebp + 8], ecx
mov eax, dword [ebp + 0x14]
and edx, eax
sub eax, edx
mov dword [ebp - 4], edx
push 0
sbb ecx, dword [ebp + 8]
add edi, eax
push edi
adc ebx, ecx
mov dword [esi + 0x10], eax
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push 4
pop eax
push 2
mov dword [esi + 0x14], ecx
pop ecx
cmove eax, ecx
push eax
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, eax
mov dword [esi + 0x18], ecx
test ecx, ecx
jne 0x6b534c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x6b53c0
cmp dword [ebp + 0x10], 0
push edi
push dword [ebp - 4]
push dword [ebp + 8]
push 2
pop eax
push 4
pop edx
cmove eax, edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov dword [esi], ecx
test ecx, ecx
jne 0x6b538c
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [esi + 0x18], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
jmp 0x6b5344
mov eax, dword [esi + 0x10]
push 2
add eax, ecx
push 0
mov dword [esi], eax
lea eax, [esi + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push eax
call esi
push eax
push dword [ebx]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [0x8760ec]
jmp 0x6b53c0
push 2
call fcn.006b60c9
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6b551d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
mov dword [ebp - 0x20], eax
mov ecx, str._n_nPress_OK_to_exit_nPress_Cancel_to_ignore
mov edi, str._n_nPress_OK_to_exit_nPress_Cancel_to_break_to_debugger
cmove edi, ecx
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x18], edi
call fcn.006b59ae
add esp, 0xc
lea esi, [eax + 1]
lea eax, [esi + esi]
call fcn.00721a30
mov eax, esp
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 0x1c], eax
call fcn.006b59ae
push ebx
push ebx
push dword [ebp + 0xc]
call fcn.006b5ab9
push ebx
push ebx
push dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
push dword [ebp + 0x14]
call fcn.006b5919
push ebx
push ebx
push dword [ebp + 0x10]
mov esi, eax
mov dword [ebp - 8], esi
call fcn.006b5ab9
mov ebx, eax
xor eax, eax
push eax
push eax
push edi
call fcn.006b5ab9
add esp, 0x40
mov edi, eax
mov ecx, 0x7dbcd8
test esi, esi
mov eax, 0x7f92bc
cmove eax, ecx
xor ecx, ecx
push ecx
push ecx
push eax
mov dword [ebp - 0x10], eax
call fcn.006b5ab9
mov esi, eax
test ebx, ebx
mov ecx, 0x7dbcd8
mov eax, 0x7f92bc
cmove eax, ecx
xor ecx, ecx
push ecx
push ecx
push eax
mov dword [ebp - 0x14], eax
call fcn.006b5ab9
add eax, esi
add esp, 0x18
add eax, edi
mov edi, dword [ebp - 0xc]
add eax, ebx
inc edi
add eax, dword [ebp - 8]
add edi, eax
lea eax, [edi + edi]
call fcn.00721a30
mov ebx, esp
push edi
push ebx
push dword [ebp + 0xc]
call fcn.006b5ab9
mov esi, eax
mov ecx, edi
sub ecx, esi
push ecx
lea ecx, [ebx + esi*2]
push ecx
push dword [ebp - 0x10]
call fcn.006b5ab9
add esi, eax
mov eax, edi
sub eax, esi
push eax
lea eax, [ebx + esi*2]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.006b5919
add esi, eax
mov eax, edi
sub eax, esi
push eax
lea eax, [ebx + esi*2]
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.006b5ab9
add esi, eax
mov eax, edi
sub eax, esi
push eax
lea eax, [ebx + esi*2]
push eax
push dword [ebp + 0x10]
call fcn.006b5ab9
add esp, 0x40
add esi, eax
sub edi, esi
push edi
lea eax, [ebx + esi*2]
push eax
push dword [ebp - 0x18]
call fcn.006b5ab9
add esp, 0xc
xor ecx, ecx
push 0x11
push dword [ebp - 0x1c]
push ebx
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
jne 0x6b5697
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp - 0x20], 0
jne 0x6b56a7
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x6b56a9
mov al, 1
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.007207bc
leave
ret
Function at 0x6b5b13
Capabilities:
Accept command line arguments
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x208
push eax
lea eax, [ebp - 0x20c]
xor ebx, ebx
push eax
push ebx
push 2
push str.Debugger
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionAeDebug
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x6b5b61
xor al, al
jmp 0x6b5bb8
push esi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], ebx
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
cmp dword [ebp - 0x210], ebx
jle 0x6b5b8a
mov eax, dword [esi]
jmp 0x6b5b90
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov dword [ebp - 0x218], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x218]
pop esi
cmp eax, 0xffffffff
je 0x6b5bb6
test al, 0x10
jne 0x6b5bb6
mov bl, 1
mov al, bl
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.007207bc
leave
ret

Function at 0x6b71bb
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x6b71d1
sub edi, ecx
mov eax, 0x3ff
cmp edi, eax
cmovg edi, eax
lea eax, [edi*2 + 2]
call fcn.00721a30
mov esi, esp
push edi
push esi
push edi
push dword [ebp + 8]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea esp, [ebp - 0xc]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.007207bc
leave
ret
Function at 0x6bae98
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.006baea1

Function at 0x6bb152
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 4
pop edx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x879b68]
sub edx, 1
jne 0x6bb15b
pop ebp
ret

Function at 0x6c467b
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x6c46e2
push esi
call fcn.006c495a
pop ecx
test al, al
jne 0x6c46e2
push ebx
push edi
lea eax, [ebp + 8]
push eax
push esi
call fcn.006c48fb
pop ecx
mov esi, eax
mov ebx, 0x1505
pop ecx
mov ecx, dword [ebp + 8]
xor eax, eax
and dword [ebp + 8], 0
add ecx, esi
mov edi, ecx
sub edi, esi
cmp esi, ecx
cmova edi, eax
test edi, edi
je 0x6c46db
mov al, byte [esi]
push eax
call fcn.006d0089
imul ebx, ebx, 0x21
pop ecx
movsx ecx, al
mov eax, dword [ebp + 8]
xor ebx, ecx
inc esi
inc eax
mov dword [ebp + 8], eax
cmp eax, edi
jb 0x6c46be
pop edi
movzx eax, bl
pop ebx
jmp 0x6c46e4
xor eax, eax
pop esi
pop ebp
ret
Function at 0x6cd2ed
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov eax, dword [ebx + 0xc]
mov edi, dword [ebp + 0x10]
push ecx
push eax
mov edx, dword [eax + ecx*4 + 0x158]
push ebx
mov dword [ebp - 0x108], edx
call fcn.006cd69a
add esp, 0xc
test eax, eax
je 0x6cd339
mov dword [esi], 0x1b
or eax, 0xffffffff
jmp 0x6cd3a7
push 0
push dword [ebp + 0x14]
push edi
push dword [ebp - 0x108]
call dword [sym.imp.WS2_32.dll_send]
and dword [esi], 0
mov edi, eax
cmp edi, 0xffffffff
jne 0x6cd3a5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x108], eax
cmp eax, 0x2733
jne 0x6cd372
xor edi, edi
mov dword [esi], 0x51
jmp 0x6cd3a5
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push eax
call fcn.006c2751
push eax
push str.Send_failure:__s
push ebx
call fcn.006cd005
mov eax, dword [ebp - 0x108]
add esp, 0x18
mov dword [ebx + 0x948], eax
mov dword [esi], 0x37
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.007207bc
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
lea esi, [edx + 0x18]
mov eax, dword [ecx + 0x298]
shl esi, 4
add esi, ecx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x6cd74f
cmp dword [ecx + edx*4 + 0x170], 0x6cd22a
jne 0x6cd74f
xor eax, eax
cmp dword [esi], eax
je 0x6cd6db
test edi, edi
je 0x6cd74f
mov ebx, dword [ecx + edx*4 + 0x158]
push eax
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.006d913f
add esp, 0x14
cmp eax, 0xffffffff
je 0x6cd74f
test al, 1
je 0x6cd74f
mov ecx, dword [esi]
test ecx, ecx
jne 0x6cd732
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4d8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x904f04]
pop ecx
mov ecx, eax
mov dword [esi], ecx
test ecx, ecx
jne 0x6cd723
push 0x1b
pop eax
jmp 0x6cd751
and dword [esi + 8], 0
and dword [esi + 0xc], 0
mov edi, dword [esi + 4]
test ecx, ecx
je 0x6cd74b
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x6cd74f
add dword [esi + 8], eax
jmp 0x6cd74f
and dword [esi + 4], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x6cda3b
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0x80
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push eax
mov dword [ebp - 0x188], eax
lea eax, [ebp - 0x184]
push 0
push eax
call fcn.00739c90
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x6cdab5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.006c2751
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x6cdaf8
push edi
push esi
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
call fcn.006cd756
add esp, 0x10
test al, al
jne 0x6cdb01
call fcn.00749863
mov esi, dword [eax]
call fcn.00749863
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.006c2751
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.006cd005
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.007207bc
leave
ret

Function at 0x6ce1cf
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
mov eax, dword [0x965e74]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 0xc], 4
push esi
push 2
pop esi
test eax, eax
jne 0x6ce216
push 3
push esi
push eax
push 6
call fcn.006e52d4
add esp, 0x10
test al, al
je 0x6ce20e
mov dword [0x965e74], esi
jmp 0x6ce256
xor eax, eax
inc eax
mov dword [0x965e74], eax
cmp eax, esi
je 0x6ce256
push ebx
lea eax, [ebp - 0xc]
mov esi, 0x1001
push eax
lea eax, [ebp - 4]
mov ebx, 0xffff
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x6ce244
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x6ce255
push 4
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
pop ebx
pop esi
leave
ret
Function at 0x6ceec7
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 4
cmp byte [esi + 0x6ff], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x6cef16
push dword [ebp + 0xc]
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.006cd0b1
add esp, 0xc
jmp 0x6cef87
push dword [esi + 0x69c]
mov dword [ebp - 0x10], 1
call fcn.006cf0d2
push dword [esi + 0x6a0]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.006cf0d2
pop ecx
pop ecx
imul eax, eax, 0x3e8
xor ecx, ecx
push ecx
push ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push ecx
push ecx
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x6cef87
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp + 0xc]
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.006cd0b1
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.007207bc
leave
ret

Function at 0x6cef94
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 4
xor ecx, ecx
push eax
inc ecx
push ecx
push 6
push dword [ebp + 0xc]
mov dword [ebp - 0x108], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x6ceff4
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.006c2751
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.006cd0b1
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.007207bc
leave
ret
Function at 0x6cf2d1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push str.kernel32
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
je 0x6cf404
push ebx
push edi
push 0x87eca0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [ebp + 8]
mov ebx, eax
push 0x87ecb0
push edi
mov dword [ebp - 8], ebx
call fcn.00757d66
pop ecx
pop ecx
test eax, eax
je 0x6cf327
test ebx, ebx
je 0x6cf31e
push 8
jmp 0x6cf342
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x6cf346
test ebx, ebx
je 0x6cf34d
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x6cf34d
push 0x800
push esi
push edi
call ebx
mov esi, eax
jmp 0x6cf400
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x6cf400
mov ecx, edi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x6cf367
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x904f04]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x6cf3f8
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x6cf3f8
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x6cf3a1
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x6cf3bc
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, edi
add ecx, ebx
movzx eax, word [edi]
mov word [ecx + edi], ax
lea edi, [edi + 2]
test ax, ax
jne 0x6cf3d1
mov eax, dword [ebp - 8]
test eax, eax
je 0x6cf3ef
push 8
push esi
push ebx
call eax
jmp 0x6cf3f6
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push ebx
call dword [0x904f08]
pop ecx
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret

Function at 0x6cf43c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x6cf489
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x6cf470
push 2
pop eax
jmp 0x6cf4e9
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x6cf481
shr eax, 8
cmp al, 2
je 0x6cf489
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x6cf46b
call fcn.006e5efe
test eax, eax
jne 0x6cf4e9
push str.iphlpapi.dll
call fcn.006cf2d1
mov dword [0x965e7c], eax
pop ecx
test eax, eax
je 0x6cf4c3
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x965e78]
test eax, eax
cmovne ecx, eax
mov dword [0x965e78], ecx
push 3
push 2
push 0
push 6
call fcn.006e52d4
add esp, 0x10
test al, al
setne byte [0x968870]
push 0x968878
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.007207bc
leave
ret
Function at 0x6d132c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x6d134d
cmp dword [esi + 0x84], 0
je 0x6d134d
push 2
push 3
push esi
call fcn.006d0b22
add esp, 0xc
push dword [ebp + 0xc]
call fcn.006d0eae
pop ecx
test esi, esi
je 0x6d136d
cmp dword [esi + 0x84], 0
je 0x6d136d
push 3
push esi
call fcn.006d0b5e
pop ecx
pop ecx
pop esi
pop ebp
ret
Function at 0x6d6235
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
xor eax, eax
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_socket]
inc eax
push 6
push eax
push 2
mov dword [ebp - 0x30], eax
pop eax
push eax
mov dword [ebp - 0x34], 0x10
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x6d63b0
push 2
pop eax
xorps xmm0, xmm0
mov word [ebp - 0x2c], ax
push 0x7f000001
movlpd qword [ebp - 0x24], xmm0
call dword [sym.imp.WS2_32.dll_htonl]
or dword [ebx + 4], 0xffffffff
or dword [ebx], 0xffffffff
mov dword [ebp - 0x28], eax
xor eax, eax
push 4
mov word [ebp - 0x2a], ax
lea eax, [ebp - 0x30]
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x6d639e
push 0x10
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x6d639e
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x6d639e
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x6d639e
push 0
push 1
push 2
pop eax
push eax
call edi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x6d639e
push 0x10
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x6d639e
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x6d639e
push ebx
push 0x7dc420
lea eax, [ebp - 0x1c]
push 0xc
push eax
call fcn.006db195
lea edi, [ebp - 0x1c]
add esp, 0x10
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x6d634d
push 0
sub edi, ecx
lea eax, [ebp - 0x1c]
push edi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, edi
jne 0x6d639e
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, edi
jne 0x6d639e
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00738138
add esp, 0xc
test eax, eax
jne 0x6d639e
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x6d63b3
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.007207bc
leave
ret