joyce8/EMBER2024-capa huggingface dataset:
Function at 0x68d0d2
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push str.kernel32.dll
mov dword [esi + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.IsWow64Process2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
test edi, edi
je 0x68d168
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x68d168
mov eax, dword [ebp + 8]
mov ecx, 0x14c
cmp ax, cx
jne 0x68d131
mov dword [esi + 0x1c], 1
jmp 0x68d168
mov ecx, 0x8664
cmp ax, cx
jne 0x68d144
mov dword [esi + 0x1c], 2
jmp 0x68d168
mov ecx, 0x1c4
cmp ax, cx
jne 0x68d157
mov dword [esi + 0x1c], 3
jmp 0x68d168
mov ecx, 0xaa64
cmp ax, cx
jne 0x68d168
mov dword [esi + 0x1c], 4
cmp dword [esi + 0x1c], ebx
jne 0x68d1b4
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x28]
test ax, ax
jne 0x68d189
mov dword [esi + 0x1c], 1
jmp 0x68d1b4
cmp ax, 9
jne 0x68d198
mov dword [esi + 0x1c], 2
jmp 0x68d1b4
cmp ax, 5
jne 0x68d1a7
mov dword [esi + 0x1c], 3
jmp 0x68d1b4
cmp ax, 0xc
jne 0x68d1b4
mov dword [esi + 0x1c], 4
push dword [esi + 0x1c]
call fcn.0068d398
lea edi, [esi + 0x10]
mov dword [esi + 0x18], eax
mov edx, dword [edi + 4]
pop ecx
mov ecx, dword [edi]
mov eax, ecx
or eax, edx
jne 0x68d1e2
push edi
lea eax, [esi + 0x6b]
push 0x40
push eax
call fcn.0068ca1e
mov ecx, dword [edi]
add esp, 0xc
mov edx, dword [edi + 4]
or ecx, edx
jne 0x68d1ed
push edi
call fcn.0068cb0a
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x68de7d
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x68de9a
mov eax, dword [0x84ba54]
pop ebp
ret
test eax, eax
jne 0x68dea5
mov eax, 0x2726
pop ebp
ret
pop ebp
jmp dword [sym.imp.WS2_32.dll_WSAGetLastError]

Function at 0x68deac
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x68dec9
mov eax, dword [0x84ba54]
pop ebp
ret
test eax, eax
jne 0x68ded4
mov eax, 0x2726
pop ebp
ret
pop ebp
jmp dword [sym.imp.WS2_32.dll_WSAGetLastError]
Function at 0x68def9
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 0x68df4c
push dword [esi]
call fcn.0068e0d5
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 + 0x84ba10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 8]
mov dword [ebp - 8], edi
mov eax, dword [eax*4 + 0x84ba18]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xc]
mov eax, dword [eax*4 + 0x84ba24]
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.0068ddfb
pop ecx
pop ecx
test al, al
je 0x68dfa1
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
mov dword [esi + 0xc], eax
cmp dword [esi + 4], edi
je 0x68df91
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 [0x84ba54]
jmp 0x68dfa7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
leave
ret

Function at 0x68e142
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x8d5f40]
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, 0x9335e8
lock xadd dword [edi], eax
test eax, eax
jne 0x68e1bc
test ecx, ecx
je 0x68e17c
push esi
push edx
call ecx
pop ecx
pop ecx
jmp 0x68e1c1
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x68e1c1
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x68e1a3
shr eax, 8
cmp al, 2
je 0x68e1bc
call dword [sym.imp.WS2_32.dll_WSACleanup]
test eax, eax
je 0x68e1b5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x68e1c1
mov eax, 0x276c
jmp 0x68e1c1
mov eax, dword [0x84ba54]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.006fedff
leave
ret
Function at 0x6940aa
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x8d5f40]
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.0069453b
add esp, 0xc
lea esi, [eax + 1]
lea eax, [esi + esi]
call fcn.00700070
mov eax, esp
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 0x1c], eax
call fcn.0069453b
push ebx
push ebx
push dword [ebp + 0xc]
call fcn.00694646
push ebx
push ebx
push dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
push dword [ebp + 0x14]
call fcn.006944a6
push ebx
push ebx
push dword [ebp + 0x10]
mov esi, eax
mov dword [ebp - 8], esi
call fcn.00694646
mov ebx, eax
xor eax, eax
push eax
push eax
push edi
call fcn.00694646
add esp, 0x40
mov edi, eax
mov ecx, 0x7b6c78
test esi, esi
mov eax, 0x7d1da0
cmove eax, ecx
xor ecx, ecx
push ecx
push ecx
push eax
mov dword [ebp - 0x10], eax
call fcn.00694646
mov esi, eax
test ebx, ebx
mov ecx, 0x7b6c78
mov eax, 0x7d1da0
cmove eax, ecx
xor ecx, ecx
push ecx
push ecx
push eax
mov dword [ebp - 0x14], eax
call fcn.00694646
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.00700070
mov ebx, esp
push edi
push ebx
push dword [ebp + 0xc]
call fcn.00694646
mov esi, eax
mov ecx, edi
sub ecx, esi
push ecx
lea ecx, [ebx + esi*2]
push ecx
push dword [ebp - 0x10]
call fcn.00694646
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.006944a6
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.00694646
add esi, eax
mov eax, edi
sub eax, esi
push eax
lea eax, [ebx + esi*2]
push eax
push dword [ebp + 0x10]
call fcn.00694646
add esp, 0x40
add esi, eax
sub edi, esi
push edi
lea eax, [ebx + esi*2]
push eax
push dword [ebp - 0x18]
call fcn.00694646
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 0x694224
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp - 0x20], 0
jne 0x694234
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x694236
mov al, 1
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006fedff
leave
ret
Function at 0x6946a0
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 [0x8d5f40]
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 0x6946ee
xor al, al
jmp 0x694745
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 0x694717
mov eax, dword [esi]
jmp 0x69471d
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 0x694743
test al, 0x10
jne 0x694743
mov bl, 1
mov al, bl
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.006fedff
leave
ret
Function at 0x694cab
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 0x694e28
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x694e28
cmp dword [esi + 0x18], eax
jne 0x694e28
cmp dword [esi + 0x1c], 0xffffffff
jne 0x694e28
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
je 0x694e28
push eax
call fcn.0068ac89
pop ecx
mov ecx, eax
mov dword [ebp + 8], eax
or ecx, edx
je 0x694e28
mov ebx, dword [ebp + 0x20]
cmp ebx, edx
ja 0x694e28
mov edi, dword [ebp + 0x1c]
jb 0x694d15
cmp edi, eax
ja 0x694e28
mov ecx, eax
mov eax, edx
sub ecx, edi
sbb eax, ebx
cmp dword [ebp + 0x18], eax
ja 0x694e28
mov eax, dword [ebp + 0x14]
jb 0x694d33
cmp eax, ecx
ja 0x694e28
mov ecx, dword [ebp + 8]
cmp eax, ecx
jne 0x694d43
cmp dword [ebp + 0x18], edx
je 0x694e28
mov eax, edi
or eax, ebx
jne 0x694d53
mov edi, ecx
mov ebx, edx
sub edi, dword [ebp + 0x14]
sbb ebx, dword [ebp + 0x18]
call fcn.00694e5a
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 0x694dbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x694e30
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 0x694dfc
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 0x694db4
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 [0x84ba54]
jmp 0x694e30
push 2
call fcn.00694ef8
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x696007
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x8d5f40]
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 0x69601d
sub edi, ecx
mov eax, 0x3ff
cmp edi, eax
cmovg edi, eax
lea eax, [edi*2 + 2]
call fcn.00700070
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.006fedff
leave
ret
Function at 0x699cda
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00699ce3

Function at 0x699f94
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 + 0x84f4d0]
sub edx, 1
jne 0x699f9d
pop ebp
ret

Function at 0x6a34b9
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 0x6a3520
push esi
call fcn.006a3798
pop ecx
test al, al
jne 0x6a3520
push ebx
push edi
lea eax, [ebp + 8]
push eax
push esi
call fcn.006a3739
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 0x6a3519
mov al, byte [esi]
push eax
call fcn.006aecb6
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 0x6a34fc
pop edi
movzx eax, bl
pop ebx
jmp 0x6a3522
xor eax, eax
pop esi
pop ebp
ret
Function at 0x6ac03c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x8d5f40]
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.006ac3e9
add esp, 0xc
test eax, eax
je 0x6ac088
mov dword [esi], 0x1b
or eax, 0xffffffff
jmp 0x6ac0f6
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 0x6ac0f4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x108], eax
cmp eax, 0x2733
jne 0x6ac0c1
xor edi, edi
mov dword [esi], 0x51
jmp 0x6ac0f4
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push eax
call fcn.006a1591
push eax
push str.Send_failure:__s
push ebx
call fcn.006abd54
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.006fedff
leave
ret

Function at 0x6ac3e9
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 0x6ac49e
cmp dword [ecx + edx*4 + 0x170], 0x6abf79
jne 0x6ac49e
xor eax, eax
cmp dword [esi], eax
je 0x6ac42a
test edi, edi
je 0x6ac49e
mov ebx, dword [ecx + edx*4 + 0x158]
push eax
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.006b7cd6
add esp, 0x14
cmp eax, 0xffffffff
je 0x6ac49e
test al, 1
je 0x6ac49e
mov ecx, dword [esi]
test ecx, ecx
jne 0x6ac481
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4d8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x8d5e5c]
pop ecx
mov ecx, eax
mov dword [esi], ecx
test ecx, ecx
jne 0x6ac472
push 0x1b
pop eax
jmp 0x6ac4a0
and dword [esi + 8], 0
and dword [esi + 0xc], 0
mov edi, dword [esi + 4]
test ecx, ecx
je 0x6ac49a
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 0x6ac49e
add dword [esi + 8], eax
jmp 0x6ac49e
and dword [esi + 4], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x6ac768
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x8d5f40]
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.00718210
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 0x6ac7e2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.006a1591
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x6ac825
push edi
push esi
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
call fcn.006ac4a5
add esp, 0x10
test al, al
jne 0x6ac82e
call fcn.00727de3
mov esi, dword [eax]
call fcn.00727de3
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.006a1591
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.006abd54
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006fedff
leave
ret

Function at 0x6aceec
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
mov eax, dword [0x935834]
mov dword [ebp - 8], 0x40020
mov dword [ebp - 0xc], 4
push esi
push 2
pop esi
test eax, eax
jne 0x6acf33
push 3
push esi
push eax
push 6
call fcn.006c386e
add esp, 0x10
test al, al
je 0x6acf2b
mov dword [0x935834], esi
jmp 0x6acf73
xor eax, eax
inc eax
mov dword [0x935834], eax
cmp eax, esi
je 0x6acf73
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 0x6acf61
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x6acf72
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 0x6adaf5
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x8d5f40]
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 0x6adb44
push dword [ebp + 0xc]
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.006abe00
add esp, 0xc
jmp 0x6adbb5
push dword [esi + 0x69c]
mov dword [ebp - 0x10], 1
call fcn.006add00
push dword [esi + 0x6a0]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.006add00
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 0x6adbb5
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.006abe00
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.006fedff
leave
ret

Function at 0x6adbc2
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x8d5f40]
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 0x6adc22
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.006a1591
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.006abe00
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.006fedff
leave
ret
Function at 0x6adeff
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 0x6ae032
push ebx
push edi
push 0x8545f0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [ebp + 8]
mov ebx, eax
push 0x854600
push edi
mov dword [ebp - 8], ebx
call fcn.00736355
pop ecx
pop ecx
test eax, eax
je 0x6adf55
test ebx, ebx
je 0x6adf4c
push 8
jmp 0x6adf70
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x6adf74
test ebx, ebx
je 0x6adf7b
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x6adf7b
push 0x800
push esi
push edi
call ebx
mov esi, eax
jmp 0x6ae02e
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x6ae02e
mov ecx, edi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x6adf95
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x8d5e5c]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x6ae026
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x6ae026
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x6adfcf
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 0x6adfea
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 0x6adfff
mov eax, dword [ebp - 8]
test eax, eax
je 0x6ae01d
push 8
push esi
push ebx
call eax
jmp 0x6ae024
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push ebx
call dword [0x8d5e60]
pop ecx
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret

Function at 0x6ae06a
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x6ae0b7
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x6ae09e
push 2
pop eax
jmp 0x6ae117
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x6ae0af
shr eax, 8
cmp al, 2
je 0x6ae0b7
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x6ae099
call fcn.006c4575
test eax, eax
jne 0x6ae117
push str.iphlpapi.dll
call fcn.006adeff
mov dword [0x93583c], eax
pop ecx
test eax, eax
je 0x6ae0f1
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x935838]
test eax, eax
cmovne ecx, eax
mov dword [0x935838], ecx
push 3
push 2
push 0
push 6
call fcn.006c386e
add esp, 0x10
test al, al
setne byte [0x938230]
push 0x938238
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006fedff
leave
ret
Function at 0x6aff05
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x6aff26
cmp dword [esi + 0x84], 0
je 0x6aff26
push 2
push 3
push esi
call fcn.006af74f
add esp, 0xc
push dword [ebp + 0xc]
call fcn.006afadb
pop ecx
test esi, esi
je 0x6aff46
cmp dword [esi + 0x84], 0
je 0x6aff46
push 3
push esi
call fcn.006af78b
pop ecx
pop ecx
pop esi
pop ebp
ret