joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013f10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx + 4]
xorps xmm0, xmm0
push esi
push edi
push 0
push 0
or eax, 0x2001f
movq qword [ebp - 0xc], xmm0
push eax
push 0
push 0
push dword [ebp + 8]
mov dword [ebp - 4], 0
push dword [ecx]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.10012630
mov edi, dword [ebp - 0xc]
mov esi, eax
test esi, esi
jne 0x10013f9c
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x10013f6f
lea esi, [edx + 0xd]
jmp 0x10013f9c
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10013f74
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test edi, edi
je 0x10013fa7
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10013fc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x10013fd9
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10013fe5
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x10013fe0
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10014020
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x10014035
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10014040
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10014ff0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10091fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x1013c270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], 0xf
cmp byte [esi], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jne 0x1001503f
xor ecx, ecx
jmp 0x1001504d
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10015044
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10002cf0
push 0x5c
push 1
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.10006320
cmp byte [edi], 0
jne 0x10015073
xor ecx, ecx
jmp 0x10015081
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10015078
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.100025a0
push 0x38
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.1006cd80
add esp, 0xc
mov dword [ebp - 0x64], 0x3c
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x60], 0x440
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov esi, eax
test esi, esi
je 0x100150f4
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10015109
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10002c10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10054c42
mov esp, ebp
pop ebp
ret
Function at 0x10015500
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x1013c270]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.1006cd80
push 0x64
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.1006cd80
add esp, 0x18
lea eax, [ebp - 0xcc]
push 0x32
push eax
push 0x10094dbc
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 2
xorps xmm0, xmm0
mov dword [ebp - 0xd0], 0
push str.SoftWareMicrosoftWindowsCurrentVersionExplorerShellIconOverlayIdentifiers
movq qword [ebp - 0xd8], xmm0
lea ecx, [ebp - 0xd8]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 0
call fcn.10012e20
test eax, eax
jne 0x100155bb
push eax
lea eax, [ebp - 0x68]
push eax
push str.________.XYShellExt
lea ecx, [ebp - 0xd8]
call fcn.10013f10
push esi
push edi
push 2
xorps xmm0, xmm0
mov dword [ebp - 0xdc], 0
push str.SoftWareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
movq qword [ebp - 0xe4], xmm0
lea ecx, [ebp - 0xe4]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
call fcn.10012e20
mov esi, dword [ebp - 0xe4]
test eax, eax
jne 0x10015627
push 0x30
push str.xiaoyu_Shell_externsion
push 1
push 0
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0
mov ecx, 0x1013ea74
call fcn.10012820
mov edi, eax
test esi, esi
je 0x10015640
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xd8]
test ecx, ecx
je 0x10015651
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.10054c42
mov esp, ebp
pop ebp
ret
Function at 0x10015670
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x1013c270]
xor eax, ebp
mov dword [ebp - 4], eax
push 2
xorps xmm0, xmm0
mov dword [ebp - 0xd0], 0
push str.SoftWareMicrosoftWindowsCurrentVersionExplorerShellIconOverlayIdentifiers
movq qword [ebp - 0xd8], xmm0
lea ecx, [ebp - 0xd8]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 0
call fcn.10012e20
test eax, eax
jne 0x100156e1
push str.________.XYShellExt
lea ecx, [ebp - 0xd8]
call fcn.10012740
push esi
push edi
push 2
xorps xmm0, xmm0
mov dword [ebp - 0xdc], 0
push str.SoftWareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
movq qword [ebp - 0xe4], xmm0
lea ecx, [ebp - 0xe4]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
call fcn.10012e20
mov esi, dword [ebp - 0xe4]
test eax, eax
jne 0x10015787
push 0x64
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.1006cd80
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.1006cd80
add esp, 0x18
lea eax, [ebp - 0x68]
push 0x32
push eax
push 0x10094dbc
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0xcc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0
mov ecx, 0x1013ea74
call fcn.100128c0
mov edi, eax
test esi, esi
je 0x100157a0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xd8]
test ecx, ecx
je 0x100157b1
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.10054c42
mov esp, ebp
pop ebp
ret
Function at 0x10015eb0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009208e
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x1013c270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push 0
push 0x100aa313
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.10002cf0
push 0x2e
push str.http:__kyposition.dftoutiao.com_position_get02
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10002cf0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10010910
mov bl, al
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add esp, 8
cmp eax, 0x10
jb 0x10015f5d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10002c10
test bl, bl
je 0x1001608e
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.1000d070
add esp, 8
mov edi, eax
lea eax, [ebp - 0x40]
cmp eax, edi
je 0x10015fb6
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x10015f9b
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.10002c10
push edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.100023b0
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x10015fcf
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.10002c10
push 0xb
push 0x10094f00
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10002cf0
push dword [ebp - 0x18]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
mov byte [ebp - 4], 3
call fcn.1000b930
mov edi, eax
cmp edi, 0xffffffff
je 0x10016079
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x40]
push 1
add eax, edi
push eax
push 0x100abe80
call fcn.1000b930
mov ecx, eax
mov eax, dword [ebp - 0x18]
cmp ecx, 0xffffffff
cmove ecx, dword [ebp - 0x30]
sub ecx, eax
add eax, edi
sub ecx, edi
push ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.10003d50
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1001605b
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10002c10
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x100160b4
inc ecx
push ecx
jmp 0x100160a9
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1001608e
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10002c10
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x100160b4
inc eax
push eax
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.10002c10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10054c42
mov esp, ebp
pop ebp
ret 4
Function at 0x100207a0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x1013c270]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x100207f0
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x100207ea
shr eax, 8
cmp al, 2
jne 0x100207ea
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054c42
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.10054c42
mov esp, ebp
pop ebp
ret
Function at 0x10021ca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x10021ccc
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x10021cbd
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x10021d00
cmp dword [esi + 8], 0
jne 0x10021cf0
push 0x100966ac
push dword [eax + 8]
call fcn.10078f71
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x10021cf0
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.1007af53
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10021d22
mov eax, dword [esi + 8]
test eax, eax
je 0x10021d1c
push eax
call fcn.1007928e
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x100269d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x100269ee
cmp dword [esi + 0x48], 0
je 0x100269ee
push 2
push 3
push esi
call fcn.1003b8c0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.10033290
add esp, 4
test esi, esi
je 0x10026a0e
cmp dword [esi + 0x48], 0
je 0x10026a0e
push 3
push esi
call fcn.1003b900
add esp, 8
pop esi
pop ebp
ret
Function at 0x1002fbb0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x190]
call fcn.1002ff20
add esp, 8
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x1002fc34
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x1002fc0c
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0x51
xor eax, eax
pop ebp
ret
push esi
push edi
call fcn.1003be30
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.1002f820
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x4684], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x1b4]
mov ebx, dword [ecx + edx*4 + 0x190]
add esi, eax
mov eax, dword [ecx + 0x288]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x1002ffd6
cmp dword [ecx + edx*4 + 0x1a4], 0x1002fb00
jne 0x1002ffd6
cmp dword [esi], 0
je 0x1002ff6c
test edi, edi
je 0x1002ffd6
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.1002f1a0
add esp, 0x14
cmp eax, 0xffffffff
je 0x1002ffd6
test al, 1
je 0x1002ffd6
cmp dword [esi], 0
jne 0x1002ffbf
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x1013c210]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x1002ffbf
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1002ffd6
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1002ffe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x190]
test eax, eax
je 0x10030009
push dword [esi + 0x11c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x1003003f
push dword [esi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x100977a8
push 2
push eax
call fcn.100791c0
push dword [esi + 0x118]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.100791c0
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1d4], 0
je 0x10030113
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x190]
cmp eax, 0xffffffff
je 0x1003010f
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
pop ebp
ret
Function at 0x100307f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1013eed0]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x10030841
push 3
push 2
push eax
push 6
call fcn.1004eb20
add esp, 0x10
test al, al
je 0x10030835
mov dword [0x1013eed0], 2
mov esp, ebp
pop ebp
ret
mov dword [0x1013eed0], 1
jmp 0x10030846
cmp eax, 2
je 0x10030886
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1003086d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x10030886
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret

Function at 0x10030950
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [ebp + 0xc]
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10030998
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.1003be30
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.1002f8d0
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.1002f8d0
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x10030aa0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1013c270]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x8c], 2
mov ebx, dword [edi]
je 0x10030c7a
cmp byte [edi + 0x24e], 0
push esi
jne 0x10030c70
cmp byte [edi + 0x26a], 0
jne 0x10030c70
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x10030b38
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.1003be30
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.1002f820
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054c42
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.1006cd80
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10030ba1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.1003be30
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.1002f820
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054c42
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x130]
push eax
lea esi, [edi + 0x102]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.10031180
add esp, 0xc
test al, al
jne 0x10030bf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.1003be30
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.1002f820
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054c42
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [edi + 0x58], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x68], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0x78], xmm0
mov dword [edi + 0x80], eax
mov ax, word [esi + 0x2c]
mov word [edi + 0x84], ax
lea eax, [edi + 0x164]
push eax
lea eax, [edi + 0x134]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.10031180
add esp, 0xc
test al, al
jne 0x10030c70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.1003be30
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.1002f820
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054c42
mov esp, ebp
pop ebp
ret
push edi
call fcn.10030710
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10054c42
mov esp, ebp
pop ebp
ret
Function at 0x10031500
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1013c270]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0x48c], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1003155d
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.1002f8d0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054c42
mov esp, ebp
pop ebp
ret
push dword [esi + 0x490]
mov dword [ebp - 0x10], 1
call fcn.1003a9b0
push dword [esi + 0x494]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.1003a9b0
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x100315cd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.1002f8d0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10054c42
mov esp, ebp
pop ebp
ret