joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ad80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013ace2
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x1019ca20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x438], 0
push eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push 0x1018bf60
mov ecx, esi
mov dword [ebp - 0x43c], esi
mov word [esi], ax
call fcn.1000fdc0
mov dword [ebp - 4], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x438], 1
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0x104
call fcn.1011b6d0
add esp, 0xc
lea eax, [ebp - 0x434]
push eax
push 0x20019
push 0
push str.wegameDefaultIcon
push connect
mov dword [ebp - 0x42c], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000af8e
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0
push 0x1018bf60
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000af8e
cmp word [ebp - 0x218], ax
jne 0x1000ae96
xor ecx, ecx
jmp 0x1000aeaf
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000aea0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.1000fdc0
xor eax, eax
cmp dword [esi + 0x10], eax
setne al
test eax, eax
jne 0x1000af8e
push 0x206
push eax
mov dword [ebp - 0x434], eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
mov dword [ebp - 0x428], 0x104
call fcn.1011b6d0
add esp, 0xc
lea eax, [ebp - 0x434]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsWegame.exe
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x424], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000af8e
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x424]
push eax
push 0
push str.ExeFile
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000af8e
cmp word [ebp - 0x420], ax
jne 0x1000af5f
xor ecx, ecx
jmp 0x1000af7f
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
jmp 0x1000af70
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000af70
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
mov ecx, esi
call fcn.1000fdc0
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x1000af9f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10118be7
mov esp, ebp
pop ebp
ret 4
Function at 0x1000afc0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013ac98
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x1019ca20]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x258], 0
push eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push 0x1018bf60
mov ecx, esi
mov dword [ebp - 0x25c], esi
mov word [esi], ax
call fcn.1000fdc0
mov dword [ebp - 4], 0
push 0x14
xor eax, eax
push str.SOFTWARETencentLOL
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x258], 1
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], 0
mov word [ebp - 0x250], ax
call fcn.1000fdc0
mov dword [ebp - 4], 1
push 5
xor eax, eax
push str.setup
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
call fcn.1000fdc0
lea ecx, [ebp - 0x254]
push ecx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x23c], 8
push 0xf003f
lea eax, [ebp - 0x250]
cmovae eax, dword [ebp - 0x250]
push 8
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000b15e
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
push 0
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push 0
push eax
push dword [ebp - 0x254]
mov dword [ebp - 0x220], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000b15e
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000b15e
cmp word [ebp - 0x21c], 0
jne 0x1000b136
xor ecx, ecx
jmp 0x1000b14f
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b140
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
mov ecx, esi
call fcn.1000fdc0
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x1000b16f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x224], 8
jb 0x1000b186
push dword [ebp - 0x238]
call fcn.10119469
add esp, 4
xor eax, eax
cmp dword [ebp - 0x23c], 8
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
jb 0x1000b1ba
push dword [ebp - 0x250]
call fcn.10119469
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10118be7
mov esp, ebp
pop ebp
ret 4
Function at 0x1000b1e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x1019ca20]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x44
xorps xmm0, xmm0
lea eax, [ebp - 0x50]
push 0
push eax
mov esi, ecx
movq qword [ebp - 0x60], xmm0
movq qword [ebp - 0x58], xmm0
call fcn.1011b6d0
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
mov edi, 1
push 0
mov dword [ebp - 0x50], 0x44
mov dword [ebp - 0x24], 1
mov word [ebp - 0x20], di
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1000b26b
push dword [ebp - 0x5c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x60]
call esi
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10118be7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.10118be7
mov esp, ebp
pop ebp
ret
Function at 0x1000b9a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x1019ca20]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
test eax, eax
push ebx
push esi
mov esi, ecx
mov ecx, eax
mov eax, dword [ebp + 8]
mov edx, 8
cmove ecx, edx
mov dword [esi + 0xdc], ecx
test eax, eax
mov ecx, eax
mov edx, 0xb4
cmovle ecx, edx
cmp dword [ebp + 0x10], 1
mov word [esi + 0x155], 0x100
mov dword [esi + 0x7c], ecx
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x80]
mov dword [esi + 0x84], eax
sete al
cmp dword [esi + 0x134], 0
push edi
mov byte [esi + 0x157], al
jne 0x1000ba28
push str.wait_login_success
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x134], eax
cmp dword [esi + 0xf4], 0
jne 0x1000ba4b
push 0
push 0
push esi
push 0x1000bb60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xf4], eax
cmp dword [esi + 0x130], 0
jne 0x1000ba69
push str.destroy_hook_window
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov dword [esi + 0x130], eax
mov eax, dword [esi + 0x7c]
push 0xffffffffffffffff
cdq
push 0xff676980
push edx
push eax
call fcn.1011d400
mov dword [esp + 0x28], eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x38]
push eax
push dword [esi + 0x130]
mov dword [esp + 0x44], edx
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
push str.League_of_Legends
push str.RCLIENT
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
push 0x10
xor eax, eax
push str.LeagueClient.exe
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
call fcn.1000fdc0
lea ecx, [esp + 0xc]
call fcn.100100a0
cmp dword [esp + 0x20], 8
mov ebx, eax
jb 0x1000baf3
push dword [esp + 0xc]
call fcn.10119469
add esp, 4
test ebx, ebx
jne 0x1000bb2d
test edi, edi
jne 0x1000bb2d
sub esp, 0x18
mov ecx, esp
push 0x1a
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], edi
push str.Lorder_Not_Enter_lol_lobby
mov byte [ecx], 0
call fcn.100018c0
push 1
push 1
mov ecx, esi
call fcn.1000e8a0
mov byte [esi + 0x154], 0
jmp 0x1000bb39
push dword [esi + 0x134]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0xf8]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10118be7
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100100a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1019ca20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
mov ebx, ecx
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0x22c
call fcn.1011b6d0
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x10010148
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10010148
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x10010110
mov ecx, ebx
call fcn.1000f8d0
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.1011aab7
add esp, 8
test eax, eax
je 0x1001013b
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x10010110
jmp 0x10010147
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x234], eax
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x234]
pop esi
xor ecx, ebp
pop ebx
call fcn.10118be7
mov esp, ebp
pop ebp
ret

Function at 0x10010170
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10190d00
push 0x10120190
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1019ca20]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
lea eax, [ebp - 0x38]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100101fe
lea eax, [ebp - 0x24]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x10010202
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x100101f7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x1001026b
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x1001026b
mov dword [ebp - 0x34], 1
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 2
push 0
push 0
push 0x10
lea eax, [ebp - 0x34]
push eax
push 0
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x10010269
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1001025e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x1001026b
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x1001026b
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10118be7
mov esp, ebp
pop ebp
ret
Function at 0x10010290
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1019ca20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
je 0x1001034d
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10010346
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
je 0x10010345
jmp 0x100102f0
mov eax, str.LeagueClientUx.exe
lea ecx, [ebp - 0x20c]
jmp 0x10010300
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x10010326
test dx, dx
je 0x10010322
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x10010326
add ecx, 4
add eax, 4
test dx, dx
jne 0x10010300
xor eax, eax
jmp 0x1001032b
sbb eax, eax
or eax, 1
test eax, eax
je 0x1001033f
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x100102f0
jmp 0x10010345
mov ebx, dword [ebp - 0x228]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.10118be7
mov esp, ebp
pop ebp
ret

Function at 0x10011bc0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x1019ca20]
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 0x10011c10
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x10011c0a
shr eax, 8
cmp al, 2
jne 0x10011c0a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10118be7
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.10118be7
mov esp, ebp
pop ebp
ret
Function at 0x1001f9b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x1001f9e3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x1001fb20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x1e0]
push edi
xor edi, edi
test ecx, ecx
je 0x1001fb46
mov edx, dword [esi + 0x16c]
push edx
mov edx, dword [ebp + 8]
push ebx
push edx
push eax
push esi
call ecx
add esp, 0x14
pop edi
pop ebp
ret
test eax, eax
js 0x1001fb7d
cmp eax, 2
jg 0x1001fb7d
mov ecx, dword [esi + 0x168]
push ecx
push 1
lea edx, [eax + eax*2 + 0x1013e550]
push 2
push edx
call fcn.1011a719
mov eax, dword [esi + 0x168]
mov ecx, dword [ebp + 8]
push eax
push 1
push ebx
push ecx
call fcn.1011a719
add esp, 0x20
mov eax, edi
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebx + 0x340]
mov ecx, dword [ebx + eax*4 + 0x1a8]
push esi
lea esi, [eax + 0x1d]
shl esi, 4
add esi, ebx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x40], 3
mov dword [ebp - 4], ecx
je 0x1002019e
cmp dword [ebx + eax*4 + 0x1c0], 0x1001fe90
jne 0x1002019e
cmp dword [esi], 0
je 0x10020134
test edi, edi
je 0x1002019e
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
call fcn.100120f0
add esp, 0x14
cmp eax, 0xffffffff
je 0x1002019e
test al, 1
je 0x1002019e
cmp dword [esi], 0
jne 0x1002017b
mov eax, dword [ebx]
mov eax, dword [eax + 0x4f8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
mov edi, dword [esi + 4]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
cmp eax, ecx
je 0x1002019b
mov ecx, dword [esi]
add ecx, dword [esi + 8]
mov edx, dword [ebp - 4]
push 0
push edi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1002019e
add dword [esi + 8], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 4], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100201b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + eax*4 + 0x1a8]
push edi
call fcn.100200f0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push 0
push eax
push ecx
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
mov esi, eax
mov dword [edi], 0
cmp esi, 0xffffffff
jne 0x10020231
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x10020206
mov dword [edi], 0x51
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push eax
push ebx
call fcn.10025310
mov edx, dword [ebx]
push eax
push str.Send_failure:__s
push edx
call fcn.1001fcf0
mov eax, dword [ebx]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x4954], ecx
add esp, 0x14
mov dword [edi], 0x37
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10021b40
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1019ca20]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [esi + 0x6e0], eax
push 4
lea ecx, [ebp - 0x14]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10021b93
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.1001fc70
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10118be7
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x6e4]
push edx
mov dword [ebp - 0x10], 1
call fcn.1002ae00
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x6e8]
push eax
call fcn.1002ae00
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0xc
lea edx, [ebp - 0x10]
push edx
push 0x98000004
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x10021c05
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.1001fc70
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10118be7
mov esp, ebp
pop ebp
ret
Function at 0x10022320
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1019ca20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x94], 2
mov ebx, dword [esi]
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x110], ebx
je 0x1002251d
cmp dword [esi + 0x298], 0
push edi
jne 0x10022513
cmp dword [esi + 0x308], 0
jne 0x10022513
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push edi
mov dword [ebp - 0x10c], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x100223c4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.10025310
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.1001fcf0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10118be7
mov esp, ebp
pop ebp
ret
push 0x80
lea edx, [ebp - 0x84]
push 0
push edx
mov dword [ebp - 0x10c], 0x80
call fcn.1011b6d0
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x84]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1002242d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.10025310
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.1001fcf0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10118be7
mov esp, ebp
pop ebp
ret
lea edi, [esi + 0x10a]
lea ebx, [esi + 0x138]
lea esi, [ebp - 0x104]
mov dword [ebp - 0x114], edi
call fcn.100222d0
test eax, eax
jne 0x10022494
call fcn.1011b794
mov esi, eax
call fcn.1011b794
mov edx, dword [esi]
mov edi, eax
mov eax, dword [ebp - 0x108]
push edx
push eax
call fcn.10025310
mov ecx, dword [edi]
mov edx, dword [ebp - 0x110]
push eax
push ecx
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.1001fcf0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10118be7
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x108]
mov esi, dword [ebp - 0x114]
lea edi, [eax + 0x60]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [eax + 0x16c]
lea edi, [eax + 0x13c]
lea esi, [ebp - 0x84]
call fcn.100222d0
test eax, eax
jne 0x1002250d
call fcn.1011b794
mov esi, eax
call fcn.1011b794
mov ecx, dword [ebp - 0x108]
mov edi, eax
mov eax, dword [esi]
push eax
push ecx
call fcn.10025310
mov edx, dword [edi]
push eax
mov eax, dword [ebp - 0x110]
push edx
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.1001fcf0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10118be7
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x108]
push esi
call fcn.10022250
add esp, 4
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10118be7
mov esp, ebp
pop ebp
ret
Function at 0x10022530
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi]
push 4
lea eax, [ebp + 8]
push eax
push 1
push 6
push ecx
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10022579
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.10025310
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.1001fc70
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.1001fc70
add esp, 8
pop edi
pop esi
pop ebp
ret

Function at 0x10022590
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1019eab0]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x100225e1
push 3
push 2
push eax
push 6
call fcn.10047200
add esp, 0x10
test eax, eax
je 0x100225d5
mov dword [0x1019eab0], 2
mov esp, ebp
pop ebp
ret
mov dword [0x1019eab0], 1
jmp 0x100225e6
cmp eax, 2
je 0x10022627
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1002260f
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jg 0x10022626
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1f0], 0
je 0x10022650
push eax
call fcn.10013b40
add esp, 4
test eax, eax
jne 0x10022670
xor eax, eax
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x1002264c
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x10022670
pop ebp
ret
mov eax, 1
pop ebp
ret