joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001a44
Capabilities:
Hide graphical window

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x74
push 2
pop eax
cmp eax, 0x64
ja 0x10001a5c
add eax, 2
mov dword [esp + 0x4c], eax
jmp 0x10001a4e
push 4
pop ebx
mov edi, str._CRYPTIFY_KEY
mov ebp, esp
push ebx
push edi
push ebp
call sym.kso.dll_cryptify::decrypt_string::h5ccb735144f7f999
add esp, 0xc
mov edx, dword [ebp + 4]
lea esi, [esp + 0x18]
mov ecx, esi
push dword [ebp + 8]
call fcn.10001a15
pop eax
lea ecx, [esp + 0x4c]
mov eax, dword [esi + 4]
and dword [ecx], 0
mov dword [ecx + 4], 0x10001986
and dword [ecx + 0xc], 0
and dword [ecx + 8], 0
and dword [ecx + 0x14], 0
and dword [ecx + 0x10], 0
and dword [ecx + 0x1c], 0
and dword [ecx + 0x18], 0
and dword [ecx + 0x20], 0
mov dword [ecx + 0x24], eax
push ecx
call sub.USER32.dll_RegisterClassW
lea ebp, [esp + 0xc]
push ebx
push edi
push ebp
call sym.kso.dll_cryptify::decrypt_string::h5ccb735144f7f999
add esp, 0xc
mov edx, dword [ebp + 4]
lea edi, [esp + 0x24]
mov ecx, edi
push dword [ebp + 8]
call fcn.10001a15
pop eax
xor ebp, ebp
inc ebp
push 0
push 0
push 0
push 0
push ebp
push ebp
push 0
push 0
push 0xcf0000
push 0
push dword [edi + 4]
push 0x80
call sub.USER32.dll_CreateWindowExW
mov ebx, eax
push ebp
push eax
call sub.USER32.dll_ShowWindow
push ebx
call sub.USER32.dll_UpdateWindow
push 0xc
pop eax
lea ecx, [eax - 3]
cmp ecx, 0x64
ja 0x10001b22
mov dword [esp + 0x30], eax
add eax, 3
jmp 0x10001b11
lea ebx, [esp + 0x30]
push 0
push 0
push 0
push ebx
call sub.USER32.dll_GetMessageW
test eax, eax
je 0x10001b44
push ebx
call sub.USER32.dll_TranslateMessage
push ebx
call sub.USER32.dll_DispatchMessageW
jmp 0x10001b26
push edi
call sym.kso.dll___alloc::raw_vec::RawVec_T_A__as_core::ops::drop::Drop_::drop::he3fec03525b21edf
pop eax
lea ecx, [esp + 0xc]
call fcn.10001318
push esi
call sym.kso.dll___alloc::raw_vec::RawVec_T_A__as_core::ops::drop::Drop_::drop::he3fec03525b21edf
pop eax
mov ecx, esp
call fcn.10001318
add esp, 0x74
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000bd90
Capabilities:
Get system information on windows

Disassembly:
push esi
sub esp, 0x24
mov esi, dword [esp + 0x2c]
xorps xmm0, xmm0
mov eax, esp
mov dword [esp + 0x20], 0
movups xmmword [esp + 0x10], xmm0
movups xmmword [esp], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1000bdca
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
add esp, 0x24
pop esi
ret
mov byte [esi], 2
mov dword [esi + 4], 0x100813a4
mov eax, esi
add esp, 0x24
pop esi
ret
Function at 0x1000d330
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x438
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x1003c3d0
mov esi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 2
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x2c], 0
cmp esi, 0x201
jae 0x1000d3c0
jmp 0x1000d3ae
jbe 0x1000d446
cmp esi, 0x201
jae 0x1000d3c0
mov dword [ebp - 0x28], 0x200
lea ebx, [ebp - 0x444]
mov edi, esi
jmp 0x1000d3f1
mov edi, dword [ebp - 0x20]
sub esi, edi
je 0x1000d3e5
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x34]
mov edx, edi
push esi
call fcn.1007b250
add esp, 4
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x1000d415
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1000d4a9
cmp esi, edi
jne 0x1000d3a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000d4c8
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x1000d3ae
jmp 0x1000d3c0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0
cmp esi, eax
ja 0x1000d4e5
lea eax, [ebp - 0x44]
push esi
push ebx
push eax
call sym.kso.dll___std::ffi::os_str::OsString_as_std::os::windows::ffi::OsStringExt_::from_wide::hd1f87d65064ecb80
add esp, 0xc
movsd xmm0, qword [ebp - 0x44]
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x3c]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1000d493
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call sym.kso.dll___rust_dealloc
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x438
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], closesocket
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x1000d483
jmp 0x1000d493
mov dword [ebp - 0x10], 0
push 0x100815a8
push 0x28
push str.internal_error:_entered_unreachable_codel
call sym.kso.dll_core::panicking::panic::hd53872080d8d36e0
add esp, 0xc
jmp 0x1000d4f4
push 0x10081598
push eax
push esi
call sym.kso.dll_core::slice::index::slice_end_index_len_fail::h3099cda8f6e1d372
add esp, 0xc
ud2
Function at 0x1000d540
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x1003c3e0
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x1000d58b
mov ecx, dword [ebp - 0x18]
mov edx, eax
mov dword fs:[0], ecx
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x44], 0x10080cbc
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], sym.kso.dll___std::io::error::Error_as_core::fmt::Display_::fmt::hc311fd6605f5ab1e
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 1
lea eax, [ebp - 0x44]
push 0x10080cc4
push eax
call sym.kso.dll_core::panicking::panic_fmt::h502dc0a95427940e
add esp, 8
ud2
Function at 0x1000def0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x64
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x1003c410
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x18]
mov dword fs:[0], ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], edi
push eax
call fcn.10038170
add esp, 4
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
cmp ecx, 0x80000000
jne 0x1000df63
mov edi, dword [ebp - 0x40]
mov ebx, eax
mov edx, eax
shrd ebx, edi, 8
shr edi, 8
jmp 0x1000dffa
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x48]
mov edx, esi
push edi
call fcn.10038170
add esp, 4
mov esi, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x44]
cmp esi, 0x80000000
jne 0x1000dfb6
mov edi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov edx, ebx
shrd ebx, edi, 8
shr edi, 8
test ecx, ecx
je 0x1000dffa
add ecx, ecx
push 2
push ecx
push eax
mov esi, edx
call sym.kso.dll___rust_dealloc
mov edx, esi
add esp, 0xc
jmp 0x1000dffa
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x1000e010
mov dl, 4
test esi, esi
je 0x1000dfdc
add esi, esi
push 2
push esi
push ebx
mov esi, edx
call sym.kso.dll___rust_dealloc
mov edx, esi
add esp, 0xc
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1000dff7
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
mov esi, edx
call sym.kso.dll___rust_dealloc
mov edx, esi
add esp, 0xc
mov ebx, dword [ebp - 0x28]
cmp dl, 4
jne 0x1000e029
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
shl eax, 0x18
xor edx, edx
shr edi, 8
mov dword [ebp - 0x28], eax
test esi, esi
jne 0x1000dfca
jmp 0x1000dfdc
shld edi, ebx, 8
shl ebx, 8
movzx eax, dl
mov dword [ebp - 0x70], 0x1007e900
mov dword [ebp - 0x6c], 3
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x10], 1
or eax, ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x44], sym.kso.dll___std::path::Display_as_core::fmt::Debug_::fmt::hef71e90172f725c9
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x3c], sym.kso.dll___std::path::Display_as_core::fmt::Debug_::fmt::hef71e90172f725c9
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x34], sym.kso.dll___std::io::error::Error_as_core::fmt::Display_::fmt::hc311fd6605f5ab1e
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 3
lea eax, [ebp - 0x70]
push 0x1007e918
push eax
call sym.kso.dll_core::panicking::panic_fmt::h502dc0a95427940e
add esp, 8
ud2
Function at 0x1000e120
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x1003c420
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
mov dword fs:[0], ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push eax
call fcn.10038170
add esp, 4
mov esi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x38]
cmp esi, 0x80000000
jne 0x1000e184
mov edi, dword [ebp - 0x34]
mov eax, ebx
mov ecx, ebx
shrd eax, edi, 8
shr edi, 8
jmp 0x1000e1ad
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x1000e1c3
mov cl, 4
test esi, esi
je 0x1000e1ad
add esi, esi
push 2
push esi
push ebx
mov esi, eax
mov ebx, ecx
call sym.kso.dll___rust_dealloc
mov ecx, ebx
mov eax, esi
add esp, 0xc
cmp cl, 4
jne 0x1000e1d9
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
shl eax, 0x18
xor ecx, ecx
shr edi, 8
test esi, esi
jne 0x1000e197
jmp 0x1000e1ad
shld edi, eax, 8
shl eax, 8
movzx ecx, cl
mov dword [ebp - 0x3c], 0x1007e950
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x10], 0
or ecx, eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x50], sym.kso.dll___std::path::Display_as_core::fmt::Debug_::fmt::hef71e90172f725c9
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x48], sym.kso.dll___std::io::error::Error_as_core::fmt::Display_::fmt::hc311fd6605f5ab1e
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 2
push 0x1007e960
lea eax, [ebp - 0x3c]
push eax
call sym.kso.dll_core::panicking::panic_fmt::h502dc0a95427940e
add esp, 8
ud2
Function at 0x1000fa40
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x1000fb83
js 0x1000fbbe
movzx eax, byte [sym.kso.dll___rust_no_alloc_shim_is_unstable]
push 1
push ebx
call sym.kso.dll___rust_alloc
add esp, 8
test eax, eax
je 0x1000fbc3
mov esi, eax
mov edi, eax
push ebx
push dword [esp + 0x18]
push esi
call fcn.1006f830
add esp, 0xc
cmp ebx, 8
mov ecx, esi
jb 0x1000fb8e
xor eax, eax
cmp ebx, 0x20
jb 0x1000fb22
movdqa xmm0, xmmword [0x1007d550]
movdqa xmm1, xmmword [0x1007d500]
movdqa xmm2, xmmword [0x1007d510]
mov eax, ebx
xor ecx, ecx
and eax, 0xffffffe0
nop word cs:[eax + eax]
movdqu xmm4, xmmword [edi + ecx]
movdqu xmm3, xmmword [edi + ecx + 0x10]
movdqa xmm5, xmm4
movdqa xmm6, xmm3
paddb xmm5, xmm0
paddb xmm6, xmm0
movdqa xmm7, xmm5
pminub xmm7, xmm1
pcmpeqb xmm7, xmm5
movdqa xmm5, xmm6
pminub xmm5, xmm1
pand xmm7, xmm2
pcmpeqb xmm5, xmm6
pxor xmm7, xmm4
pand xmm5, xmm2
movdqu xmmword [edi + ecx], xmm7
pxor xmm5, xmm3
movdqu xmmword [edi + ecx + 0x10], xmm5
add ecx, 0x20
cmp eax, ecx
jne 0x1000fac0
cmp eax, ebx
je 0x1000fbaa
test bl, 0x18
je 0x1000fb8a
movdqa xmm0, xmmword [0x1007d560]
movdqa xmm1, xmmword [0x1007d530]
movdqa xmm2, xmmword [0x1007d540]
mov edx, ebx
and edx, 0xfffffff8
lea ecx, [esi + edx]
nop word cs:[eax + eax]
nop dword [eax]
movq xmm3, qword [edi + eax]
movdqa xmm4, xmm3
paddb xmm4, xmm0
movdqa xmm5, xmm4
pmaxub xmm5, xmm1
pcmpeqb xmm5, xmm4
pandn xmm5, xmm2
pxor xmm5, xmm3
movq qword [edi + eax], xmm5
add eax, 8
cmp edx, eax
jne 0x1000fb50
cmp edx, ebx
jne 0x1000fb8e
jmp 0x1000fbaa
mov edi, 1
jmp 0x1000fbaa
add eax, esi
mov ecx, eax
add esi, ebx
movzx eax, byte [ecx]
mov edx, eax
add dl, 0x9f
cmp dl, 0x1a
setb dl
shl dl, 5
xor dl, al
mov byte [ecx], dl
inc ecx
cmp ecx, esi
jne 0x1000fb90
mov eax, dword [esp + 0x10]
mov dword [eax], ebx
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov byte [eax + 0xc], 0
pop esi
pop edi
pop ebx
ret
call sym.kso.dll_alloc::raw_vec::capacity_overflow::hb4380fcd4c99d9cf
push ebx
push 1
call sym.kso.dll_alloc::alloc::handle_alloc_error::h0f7631ec9b341a7f
int3
Function at 0x100186a0
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x40
xorps xmm0, xmm0
mov esi, ecx
lea edi, [esp + 0x20]
mov eax, esp
mov dword [esp], 0
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x1c], eax
movups xmmword [esp + 0x30], xmm0
movups xmmword [esp + 0x20], xmm0
lea eax, [esp + 0xc]
push 0x1002fea0
push eax
push 0x20
push edi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x1001871a
mov ebx, dword [sym.imp.KERNEL32.dll_SleepEx]
nop word [eax + eax]
push 1
push 0xffffffffffffffff
call ebx
cmp dword [esp], 0
je 0x100186f0
mov ebx, dword [esp + 4]
test ebx, ebx
je 0x10018738
mov ecx, ebx
call fcn.10037aa0
cmp al, 0xb
jne 0x1001872d
mov ecx, dword [esp + 0x54]
xor ebp, ebp
mov ebx, dword [ecx + 8]
jmp 0x10018750
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, ebx
call fcn.10037aa0
cmp al, 0xb
je 0x1001870f
mov dword [esi], 0
mov dword [esi + 4], ebx
jmp 0x1001876d
mov ebp, dword [esp + 8]
cmp ebp, 0x21
jae 0x10018789
mov ecx, dword [esp + 0x54]
mov eax, dword [ecx]
mov ebx, dword [ecx + 8]
sub eax, ebx
cmp eax, ebp
jb 0x10018775
mov eax, dword [ecx + 4]
add eax, ebx
push ebp
push edi
push eax
mov edi, ecx
call fcn.1006f830
add esp, 0xc
add ebx, ebp
mov dword [esi + 4], ebp
mov byte [esi], 4
mov dword [edi + 8], ebx
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, ebx
push ebp
call fcn.1007b110
mov ecx, dword [esp + 0x58]
add esp, 4
mov ebx, dword [ecx + 8]
jmp 0x10018750
push 0x1007f220
push 0x20
push ebp
call sym.kso.dll_core::slice::index::slice_end_index_len_fail::h3099cda8f6e1d372
int3

Function at 0x1001a880
Capabilities:
Set socket configuration

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
xor ebp, ebp
mov ecx, dword [eax]
cmp edi, 0x3b9aca00
je 0x1001a8de
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov ebx, 0x3e8
mov dword [esp], ecx
mul ebx
mov ebp, eax
mov eax, esi
seto cl
mul ebx
mov ebx, edx
mov esi, eax
add ebx, ebp
mov ebp, 0xffffffff
setb al
or al, cl
jne 0x1001a8db
mov ecx, 0x431bde83
mov eax, edi
mul ecx
shr edx, 0x12
add esi, edx
adc ebx, 0
jae 0x1001a926
mov ecx, dword [esp]
mov dword [esp + 4], ebp
lea eax, [esp + 4]
push 4
push eax
push 0x1006
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, dword [esp + 0x1c]
mov cl, 4
cmp eax, 0xffffffff
jne 0x1001a91a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
imul eax, edx, 0xf4240
xor ecx, ecx
sub edi, eax
setne cl
add esi, ecx
mov ecx, dword [esp]
adc ebx, 0
jb 0x1001a8de
xor ebp, ebp
neg ebx
sbb ebp, ebp
or ebp, esi
jne 0x1001a8de
mov esi, dword [esp + 0x1c]
mov byte [esi], 2
mov dword [esi + 4], 0x10080b40
jmp 0x1001a91c
Function at 0x1001a960
Capabilities:
Set socket configuration

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
xor ebp, ebp
mov ecx, dword [eax]
cmp edi, 0x3b9aca00
je 0x1001a9be
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov ebx, 0x3e8
mov dword [esp], ecx
mul ebx
mov ebp, eax
mov eax, esi
seto cl
mul ebx
mov ebx, edx
mov esi, eax
add ebx, ebp
mov ebp, 0xffffffff
setb al
or al, cl
jne 0x1001a9bb
mov ecx, 0x431bde83
mov eax, edi
mul ecx
shr edx, 0x12
add esi, edx
adc ebx, 0
jae 0x1001aa06
mov ecx, dword [esp]
mov dword [esp + 4], ebp
lea eax, [esp + 4]
push 4
push eax
push 0x1005
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, dword [esp + 0x1c]
mov cl, 4
cmp eax, 0xffffffff
jne 0x1001a9fa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
imul eax, edx, 0xf4240
xor ecx, ecx
sub edi, eax
setne cl
add esi, ecx
mov ecx, dword [esp]
adc ebx, 0
jb 0x1001a9be
xor ebp, ebp
neg ebx
sbb ebp, ebp
or ebp, esi
jne 0x1001a9be
mov esi, dword [esp + 0x1c]
mov byte [esi], 2
mov dword [esi + 4], 0x10080b40
jmp 0x1001a9fc

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

Disassembly:
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, closesocket
cmp eax, 0x7fffffff
cmovb edx, eax
push 2
push edx
push dword [esp + 0x18]
push dword [ecx]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x1001abe0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
xor eax, eax
cmp ecx, 0x274a
jne 0x1001abea
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
ret
mov byte [esi], 0
mov dword [esi + 4], ecx
mov eax, esi
pop esi
ret

Function at 0x1001ac00
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
xor edx, edx
cmp dword [esp + 0x20], 0x3b9aca00
mov esi, dword [esp + 0x10]
mov eax, dword [eax]
setne bl
je 0x1001ac22
mov ecx, dword [esp + 0x18]
mov dl, bl
mov word [esp], dx
mov word [esp + 2], cx
mov ecx, esp
push 4
push ecx
push 0x80
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x1001ac5f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
mov eax, esi
add esp, 4
pop esi
pop ebx
ret

Function at 0x1001ad00
Capabilities:
Set socket configuration

Disassembly:
push esi
push eax
mov eax, dword [esp + 0x10]
movzx ecx, byte [esp + 0x14]
mov esi, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp], ecx
mov ecx, esp
push 4
push ecx
push 1
push 6
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x1001ad40
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
mov eax, esi
add esp, 4
pop esi
ret
Function at 0x1001adb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push edi
push esi
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 4]
mov ebx, dword [edi + 8]
mov ecx, eax
sub ecx, ebx
jb 0x1001ae1e
cmp ecx, 0x7fffffff
mov edx, closesocket
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmovb edx, ecx
mov ecx, dword [edi]
add ecx, ebx
push 0
push edx
push ecx
push dword [eax]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1001ae00
add eax, ebx
mov dword [edi + 8], eax
mov ecx, dword [edi + 0xc]
cmp ecx, eax
cmova eax, ecx
mov dword [edi + 0xc], eax
jmp 0x1001ae0d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x1001ae16
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
ret
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x1001ae10
push 0x1007d78c
push eax
push ebx
call sym.kso.dll_core::slice::index::slice_start_index_len_fail::h148b5e412c56b9cc
int3

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

Disassembly:
push ebx
push edi
push esi
sub esp, 8
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp], 0
mov dword [esp + 4], 0
lea edi, [esp + 4]
mov ebx, esp
mov ecx, dword [ecx]
push 0
push 0
push edi
push ebx
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x1001ae86
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x1001ae91
mov dword [esi + 4], 0
jmp 0x1001ae8c
mov eax, dword [esp]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x1001ae97
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
ret

Function at 0x1001aea0
Capabilities:
Send data
Send data on socket

Disassembly:
push edi
push esi
push eax
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp], 0
mov edi, esp
mov ecx, dword [ecx]
push 0
push 0
push 0
push edi
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
je 0x1001aede
mov eax, dword [esp]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x1001aeed
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 4
pop esi
pop edi
ret

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

Disassembly:
push esi
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 8]
mov edx, closesocket
mov ecx, dword [ecx]
cmp eax, 0x7fffffff
cmovb edx, eax
push 0
push edx
push dword [esp + 0x18]
push dword [ecx]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x1001af42
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
xor eax, eax
cmp ecx, 0x274a
jne 0x1001af4c
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
ret
mov byte [esi], 0
mov dword [esi + 4], ecx
mov eax, esi
pop esi
ret