joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10259c10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x102dd418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov edx, dword [ebp + 0xc]
movq qword [ecx + 4], xmm0
mov word [ecx + 0xc], 0
push ebx
lea ebx, [ecx + 4]
movq qword [ebp - 0x10], xmm0
mov byte [ebx + 0xa], 0
movups xmmword [ecx + 0xf], xmm0
push edi
lea edi, [ecx + 0xf]
mov word [ebp - 8], 0
mov dword [edi + 0x10], 0
lea ecx, [ebp - 0x28]
mov byte [edi + 0x14], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
movq xmm0, qword [eax]
mov ax, word [eax + 8]
mov word [ebp - 8], ax
mov eax, dword [edx + 0x10]
xor byte [ebp - 8], 0xab
xor byte [ebp - 7], 0xfc
mov dword [ebp - 0x18], eax
mov eax, 1
sub eax, ecx
movq qword [ebp - 0x10], xmm0
movups xmm0, xmmword [edx]
xor byte [ebp - 0x10], 0xfc
xor byte [ebp - 0xf], 0xcf
xor byte [ebp - 0xe], 0xab
xor byte [ebp - 0xd], 0xfc
xor byte [ebp - 0xc], 0xcf
xor byte [ebp - 0xb], 0xab
xor byte [ebp - 0xa], 0xfc
xor byte [ebp - 9], 0xcf
mov dword [ebp - 0x30], eax
mov eax, 2
sub eax, ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x34], eax
xor edi, edi
mov eax, 3
mov dword [ebp - 0x40], ebx
mov ebx, dword [ebp - 0x30]
sub eax, ecx
mov dword [ebp - 0x38], eax
mov eax, 4
sub eax, ecx
mov byte [ebp - 6], 0
mov byte [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x2c], 0xcffc
mov byte [ebp - 0x2a], 0xab
mov dword [ebp - 0x3c], eax
push esi
mov eax, 0xaaaaaaab
lea esi, [ebp - 0x28]
mul edi
add esi, edi
mov ecx, edi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
movzx eax, byte [ebp + ecx - 0x2c]
lea ecx, [esi + ebx]
xor byte [esi], al
mov eax, 0xaaaaaaab
mul ecx
mov ecx, edi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
movzx eax, byte [ebp + ecx - 0x2b]
xor byte [esi + 1], al
mov eax, 0xaaaaaaab
mov ecx, dword [ebp - 0x34]
lea ecx, [esi + ecx]
mul ecx
mov ecx, edi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
movzx eax, byte [ebp + ecx - 0x2a]
xor byte [esi + 2], al
mov eax, 0xaaaaaaab
mov ecx, dword [ebp - 0x38]
lea ecx, [esi + ecx]
mul ecx
mov ecx, edi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
movzx eax, byte [ebp + ecx - 0x29]
xor byte [esi + 3], al
mov eax, 0xaaaaaaab
mov ecx, dword [ebp - 0x3c]
lea ecx, [esi + ecx]
mul ecx
mov ecx, edi
add edi, 5
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
movzx eax, byte [ebp + ecx - 0x28]
xor byte [esi + 4], al
cmp edi, 0x14
jl 0x10259cf4
mov ebx, dword [ebp - 0x40]
lea ecx, [ebp - 0x10]
mov edi, dword [ebp - 0x44]
mov eax, ecx
sub ebx, eax
pop esi
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ebx + ecx - 1], al
test al, al
jne 0x10259da0
lea eax, [ebp - 0x28]
mov ecx, eax
sub edi, ecx
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edi + eax - 1], cl
test cl, cl
jne 0x10259db4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1029971f
mov esp, ebp
pop ebp
ret 8
Function at 0x1025a3d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea eax, [ebp - 4]
mov edi, ecx
push eax
push 0x40
push 1
push edi
mov bl, dl
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
mov byte [edi], bl
push eax
push dword [ebp - 4]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1025a410
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, byte [ebp + 8]
cmp al, 0xff
je 0x1025a430
mov byte [esi], al
mov eax, dword [ebp + 0x10]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10261f60
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x1505
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 0xc]
jae 0x10261fb3
mov edx, dword [ebp - 8]
shl edx, 5
add edx, dword [ebp - 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov cl, byte [eax]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
push edx
call fcn.10272c90
add esp, 4
movsx eax, al
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
jmp 0x10261f76
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 0x3f
div ecx
mov eax, edx
mov esp, ebp
pop ebp
ret
Function at 0x1026e7d0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0x673], 0
je 0x1026e85c
cmp dword [esi + 0x19c], 0
je 0x1026e823
push esi
call fcn.1025d5e0
push 1
push esi
mov byte [esp + 0x14], al
call fcn.1025d870
push dword [esi + 0x14c]
mov eax, dword [esi + 0x19c]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call eax
push dword [esp + 0x28]
push esi
call fcn.1025d870
add esp, 0x28
pop esi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x1026e85c
push dword [esi + 0x148]
lea eax, [eax + eax*2]
push 1
add eax, 0x102c2c68
push 2
push eax
call fcn.102a2f35
push dword [esi + 0x148]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.102a2f35
add esp, 0x20
pop esi
ret

Function at 0x10270eb0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x102c30c8
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x10270eca
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x102c30e4
push esi
call fcn.102a8b80
add esp, 8
test eax, eax
je 0x10270f12
test ebp, ebp
je 0x10270f03
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x10270f38
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10270f38
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x10270fef
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10270f55
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10270fe5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10270fe5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10270f87
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10270fa0
sub ecx, edx
add ecx, ebx
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x10270fb0
test ebp, ebp
je 0x10270fdc
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x102dd004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x102dd004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x10276dd0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x10276def
cmp dword [esi + 0x84], 0
je 0x10276def
push 2
push 3
push esi
call fcn.102732b0
add esp, 0xc
push dword [esp + 0xc]
call fcn.10276830
add esp, 4
test esi, esi
je 0x10276e13
cmp dword [esi + 0x84], 0
je 0x10276e13
push 3
push esi
call fcn.102732f0
add esp, 8
pop esi
ret

Function at 0x10276f20
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x10276f60
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x104], 0
jne 0x10276f4f
push 0
call fcn.10276f20
add esp, 4
test al, al
mov eax, dword [esi + 0x7c]
setne cl
inc cl
mov byte [eax + 0x104], cl
mov ecx, dword [esi + 0x7c]
xor eax, eax
pop esi
cmp byte [ecx + 0x104], 2
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x10276f7d
xor esi, esi
xor eax, eax
cmp eax, esi
pop esi
sbb eax, eax
neg eax
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
cmp eax, esi
pop esi
sbb eax, eax
neg eax
ret
Function at 0x10280b10
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.10262a10
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.102b059f
push dword [esp + 0x40]
mov edi, eax
call fcn.102b059f
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x10280ba5
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.10262a10
movups xmm0, xmmword [esp + 0x14]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.10262ab0
add esp, 0x20
test edx, edx
ja 0x10280bc9
jb 0x10280b97
cmp eax, 0x3e8
ja 0x10280bc9
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x10280b60
test edi, edi
je 0x10280bb2
push edi
call fcn.102a29ed
add esp, 4
test esi, esi
je 0x10280bbf
push esi
call fcn.102a29ed
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x10280bd6
push edi
call fcn.102a29ed
add esp, 4
test esi, esi
je 0x10280be3
push esi
call fcn.102a29ed
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x102810d0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
push ebx
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [eax], ebx
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x10281261
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x1028124c
push ebp
push edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1028112e
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10281120
sub eax, edx
lea ecx, [eax + 1]
jmp 0x10281130
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [esp + 0x14], ecx
cmp eax, 2
jne 0x10281141
lea ebp, [eax + 0xe]
jmp 0x1028114d
cmp eax, 0x17
jne 0x102811ee
lea ebp, [eax + 5]
cmp dword [esi + 0x18], 0
je 0x102811ee
mov eax, dword [esi + 0x10]
test eax, eax
je 0x102811ee
cmp eax, ebp
jb 0x102811ee
lea eax, [ecx + 0x20]
add eax, ebp
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x1028123d
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ebp
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.1029c650
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x102811da
mov eax, dword [edi + 0x18]
add eax, ebp
push ecx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.1029c650
add esp, 0xc
mov eax, dword [esp + 0x18]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x102811ea
mov dword [eax + 0x1c], edi
mov dword [esp + 0x18], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x10281112
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop edi
pop ebp
test eax, eax
je 0x1028120e
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x10281248
test ebx, ebx
je 0x1028122d
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x102dd004]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x10281216
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x28]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
mov esi, 8
mov dword [esp + 0x10], esi
jmp 0x102811fd
test ebx, ebx
jne 0x10281258
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x102816f0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ecx, 0x2b
test edi, edi
je 0x1028179b
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
nop dword [eax]
mov ebx, 4
lea eax, [esp + 0x1c]
push 4
push eax
cmp edi, ebx
push ebp
cmovb ebx, edi
call fcn.10268190
add esp, 0xc
cmp eax, 4
jne 0x10281756
cmp byte [0x102def18], 0
jne 0x10281762
push 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x1028179d
mov eax, dword [esp + 0x1c]
jmp 0x1028177f
imul eax, dword [0x102def1c], 0x41c64e6d
add eax, 0x3039
mov dword [0x102def1c], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x10281793
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x10281783
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x10281710
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x102817b0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
sub ebx, 1
je 0x1028184f
mov esi, dword [esp + 0x14]
mov ebp, 0x3e
nop
push 4
lea eax, [esp + 0x20]
push eax
push esi
call fcn.10268190
add esp, 0xc
cmp eax, 4
jne 0x10281830
cmp byte [0x102def18], 0
jne 0x10281813
push 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
je 0x10281834
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
ret
imul eax, dword [0x102def1c], 0x41c64e6d
add eax, 0x3039
mov dword [0x102def1c], eax
rol eax, 0x10
mov dword [esp + 0x1c], eax
jmp 0x10281834
test eax, eax
jne 0x10281854
mov eax, dword [esp + 0x1c]
cmp eax, 0xfffffffc
jae 0x102817d0
xor edx, edx
div ebp
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789]
mov byte [edi], al
inc edi
sub ebx, 1
jne 0x102817d0
mov byte [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10281860
Capabilities:
Generate random numbers via winapi

Disassembly:
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call fcn.1029c3c0
add esp, 0xc
push 2
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
ret
Function at 0x10284880
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x102dd008]
mov edi, eax
add esp, 8
test edi, edi
je 0x10284857
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x1028486f
cmp esi, ebx
je 0x1028486f
cmp esi, 0x8000
ja 0x1028486f
cmp esi, ebx
jb 0x10284868
push esi
push edi
call dword [0x102dd008]
mov edi, eax
add esp, 8
test edi, edi
jne 0x10284820
push ebp
call dword [0x102dd004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x102dd004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
jmp 0x10284800

Function at 0x102898a0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x102def20]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x102898f1
push 3
push 2
push eax
push eax
push 6
call fcn.1028ec00
add esp, 0x14
test al, al
je 0x102898e5
mov dword [0x102def20], 2
add esp, 0xc
ret
mov dword [0x102def20], 1
jmp 0x102898f6
cmp eax, 2
je 0x1028993c
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x10289921
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x1028993c
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x1028a1f0
Capabilities:
Connect socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [ebx + 8]
push dword [edi + 0x14]
lea eax, [edi + 0x18]
push eax
push dword [edi + 0x98]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1028a22e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [edi + 0xbc]
push eax
push dword [esp + 0x18]
call fcn.1028a600
add esp, 0xc
pop edi
pop ebx
ret
push dword [esp + 0x10]
mov byte [edi + 0x15e], 1
push ebx
call fcn.1028a380
push dword [edi + 0xec]
cmp dword [edi], 5
lea eax, [edi + 0xbc]
push eax
push dword [edi + 0x120]
lea eax, [edi + 0xf0]
mov ecx, 0x102c8a48
push eax
push dword [edi + 0x98]
mov eax, str.QUIC
cmovne eax, ecx
push eax
push str._s_socket__d_connected:___s:_d_______s:_d_
push ebx
push dword [esp + 0x38]
call fcn.1026e9c0
push 1
push dword [edi + 0x98]
call fcn.102931b0
add esp, 0x34
xor eax, eax
pop edi
pop ebx
ret

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

Disassembly:
sub esp, 0x104
mov eax, dword [0x102dd418]
xor eax, esp
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x10c]
push esi
push edi
mov edi, dword [esp + 0x120]
mov eax, dword [ebx]
push 0
push dword [esp + 0x120]
mov eax, dword [eax + 8]
push ecx
mov dword [edi], 0
push dword [eax + 0x98]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1028a33f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x1028a30c
mov dword [edi], 0x51
jmp 0x1028a33c
push 0x100
lea eax, [esp + 0x10]
push eax
push esi
call fcn.1027f690
push eax
push str.Recv_failure:__s
push dword [ebx + 4]
call fcn.1026e860
mov eax, dword [ebx + 4]
add esp, 0x18
mov dword [eax + 0x8e4], esi
mov dword [edi], 0x38
or esi, 0xffffffff
push dword [edi]
push esi
push dword [esp + 0x124]
push str.nw_in_read_len_zu______d__err_d
push dword [ebx]
push dword [ebx + 4]
call fcn.1026e9c0
mov ecx, dword [esp + 0x124]
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1029971f
add esp, 0x104
ret
Function at 0x1028a380
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x102dd418]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push ebx
mov ebx, dword [esp + 0x194]
push esi
mov esi, dword [eax + 8]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x1c4]
test dword [eax + 0x44], 0x800
jne 0x1028a4ae
push 0x80
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0x80
push 0
push eax
call fcn.1029c3c0
add esp, 0xc
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1028a43a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x8c]
push 0x100
push eax
push esi
call fcn.1027f690
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.1026e860
add esp, 0x1c
mov eax, 2
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.1029971f
add esp, 0x188
ret
lea eax, [esi + 0x120]
push eax
lea eax, [esi + 0xf0]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
call fcn.1026fb10
add esp, 0x10
test al, al
jne 0x1028a4ae
push edi
call fcn.102a3675
mov esi, eax
call fcn.102a3675
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push dword [esi]
call fcn.1027f690
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.1026e860
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.1029971f
add esp, 0x188
ret
mov ecx, dword [esp + 0x18c]
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.1029971f
add esp, 0x188
ret

Function at 0x1028a730
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x102dd418]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
xor eax, eax
push edi
mov edi, dword [esp + 0x28]
push 4
cmp byte [esi + 0x67f], al
setne al
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1028a77f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d:_errno__d
jmp 0x1028a7ed
push dword [esi + 0x628]
mov dword [esp + 0x14], 1
call fcn.10270c90
push dword [esi + 0x62c]
imul eax, eax, 0x3e8
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
call fcn.10270c90
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x28]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1028a7f6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:_errno__d
push esi
call fcn.1026e930
add esp, 0x10
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.1029971f
add esp, 0x18
ret
Function at 0x1028a810
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x108
mov eax, dword [0x102dd418]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
lea eax, [esp + 4]
push 4
push eax
push 1
push 6
push dword [esp + 0x124]
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1028a875
push 0x100
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.1027f690
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.1026e930
add esp, 0x18
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.1029971f
add esp, 0x108
ret