joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10cae14
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push edi
push 0x10cd276
lea eax, [ebp - 0x14]
xor edi, edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push 0x20001
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
mov ebx, eax
cmp ebx, edi
jge 0x10cae90
cmp ebx, 0xc0000017
je 0x10caf24
cmp ebx, 0xc000009a
je 0x10caf24
mov ebx, 0xc0000452
jmp 0x10caf24
push dword [ebp - 4]
call fcn.010cade8
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0xc], edi
call esi
mov esi, dword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov ebx, eax
cmp ebx, 0xc0000023
je 0x10caecd
cmp ebx, edi
jl 0x10caf24
mov ebx, 0xc0000001
jmp 0x10caf24
mov eax, dword fs:[0x18]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
add ecx, 2
push ecx
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x10caef5
mov ebx, 0xc000009a
jmp 0x10caf24
mov dword [ebp - 0x10], eax
mov ax, word [ebp - 0xc]
mov word [ebp - 0x12], ax
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov ebx, eax
cmp ebx, edi
jl 0x10caf24
movzx ecx, word [ebp - 0x14]
mov eax, dword [ebp - 8]
shr ecx, 1
xor edx, edx
mov word [eax + ecx*2], dx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp dword [ebp - 4], edi
je 0x10caf32
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
cmp ebx, edi
jge 0x10caf51
cmp dword [ebp - 8], edi
je 0x10caf51
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x10cb126
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword fs:[0x18]
push ebx
push esi
xor ebx, ebx
push 0x6a
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
mov byte [ebp - 1], bl
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
cmp eax, ebx
jne 0x10cb167
mov esi, 0xc0000017
jmp 0x10cb290
test byte [ebp + 0xc], 1
push edi
je 0x10cb185
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.010cb098
mov esi, eax
cmp esi, ebx
jge 0x10cb2d7
push ebx
push 0x18
lea eax, [ebp - 0x34]
push eax
push 7
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp esi, ebx
jl 0x10cb279
mov dword [ebp + 0xc], ebx
cmp dword [ebp - 0x34], ebx
jbe 0x10cb274
push ebx
push dword [ebp + 0xc]
push 0x10ccf32
push 0x35
push dword [ebp - 0x14]
call sub.msvcrt.dll_swprintf_s
add esp, 0x14
cmp dword [ebp - 8], ebx
je 0x10cb1de
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [ebp - 8], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
call fcn.010cb762
test eax, eax
jl 0x10cb260
mov eax, dword [ebp - 8]
cmp dword [eax], 1
jne 0x10cb260
mov dword [ebp - 0x1c], ebx
cmp dword [eax + 4], ebx
jbe 0x10cb260
add eax, 0x48
push 4
pop ecx
mov edi, 0x103035c
lea esi, [eax + 8]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x10cb226
cmp byte [ebp - 1], bl
jne 0x10cb23b
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax]
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], ecx
inc dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add eax, 0x90
cmp edx, dword [ecx + 4]
jb 0x10cb201
jmp 0x10cb260
lea eax, [ebp - 0x18]
push eax
call fcn.010cbc02
test eax, eax
jl 0x10cb2ce
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call fcn.010cb64a
test eax, eax
jl 0x10cb2ce
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x34]
jb 0x10cb1aa
cmp byte [ebp - 1], bl
jne 0x10cb2d5
mov esi, 0xc0000452
push dword [ebp - 0x14]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
cmp dword [ebp - 8], ebx
je 0x10cb2ab
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x18], ebx
je 0x10cb2c6
push dword [ebp - 0x18]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
mov esi, 0xc0000451
jmp 0x10cb279
xor esi, esi
cmp dword [ebp + 8], ebx
jne 0x10cb2df
mov dword [ebp - 0xc], ebx
push dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
push dword [ebp - 0x10]
push 0x10ccf32
push 0x35
push edi
call sub.msvcrt.dll_swprintf_s
mov eax, dword [ebp + 0x10]
add esp, 0x14
mov dword [eax], edi
jmp 0x10cb28f
Function at 0x10cb396
Capabilities:
Get process heap flags
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x18]
push ebx
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0x1c]
push edi
push dword [ebp + 0xc]
mov dword [eax], ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
cmp dword [ebp + 0x10], ebx
je 0x10cb3e4
lea eax, [ebp - 4]
push eax
push 0x20019
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.010cb31e
mov edi, eax
cmp edi, ebx
jl 0x10cb4a9
jmp 0x10cb3ea
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.ntdll.dll_NtQueryValueKey]
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov edi, eax
cmp edi, 0xc0000023
je 0x10cb41e
cmp edi, ebx
jl 0x10cb4a8
mov edi, 0xc0000001
jmp 0x10cb4a8
mov eax, dword fs:[0x18]
push dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
mov ebx, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
call ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x10cb489
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0xc]
push eax
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov edi, eax
test edi, edi
jl 0x10cb4a8
mov esi, dword [ebp - 8]
mov eax, dword [esi + 4]
cmp eax, dword [ebp + 0x14]
je 0x10cb468
mov edi, 0xc0000024
jmp 0x10cb4a8
sub dword [ebp + 0xc], 0xc
mov eax, dword fs:[0x18]
push dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
xor edi, edi
push edi
push dword [eax + 0x18]
call ebx
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
cmp eax, edi
jne 0x10cb490
mov edi, 0xc000009a
jmp 0x10cb4a8
push dword [ebp + 0xc]
add esi, 0xc
push esi
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add esp, 0xc
mov dword [ecx], eax
pop esi
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
je 0x10cb4b8
push eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp - 8], 0
je 0x10cb4d5
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop ebx
leave
ret 0x18
Function at 0x10cb4e2
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x18]
xor esi, esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call edi
mov ebx, dword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call ebx
cmp eax, esi
jl 0x10cb63d
push esi
lea eax, [ebp - 0x10]
push eax
call edi
xor edi, edi
mov dword [ebp - 8], esi
jmp 0x10cb589
cmp dword [ebp - 0xc], esi
je 0x10cb564
push dword [ebp - 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 8]
lea edi, [eax + 2]
mov word [ebp - 0xe], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x10cb602
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov dword [ebp + 8], eax
cmp eax, 0xc0000023
je 0x10cb549
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp + 8], esi
mov dword [ebp - 4], esi
jl 0x10cb61f
movzx eax, word [ebp - 0x10]
mov edx, dword [ebp - 0xc]
shr eax, 1
xor ecx, ecx
mov word [edx + eax*2], cx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp - 4]
push eax
mov word [ebp - 0xe], di
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call ebx
test eax, eax
jge 0x10cb589
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov dword [ebp + 8], esi
jmp 0x10cb609
mov dword [ebp + 8], 0xc000009a
cmp dword [ebp - 4], esi
je 0x10cb61a
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
jge 0x10cb63a
cmp dword [ebp - 0xc], esi
je 0x10cb63a
push dword [ebp - 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10029fd
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1002eb8
call fcn.01002be4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x100558c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1002812
cmp eax, esi
jne 0x1002805
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1002815
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10027ec
xor esi, esi
inc esi
mov eax, dword [0x1005588]
cmp eax, esi
jne 0x1002828
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1002863
mov eax, dword [0x1005588]
test eax, eax
jne 0x100285d
mov dword [0x1005588], esi
push 0x1001130
push 0x1001124
call fcn.01002769
pop ecx
pop ecx
test eax, eax
je 0x1002863
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x100292d
mov dword [0x1004244], esi
mov eax, dword [0x1005588]
cmp eax, esi
jne 0x1002887
push 0x1001120
push 0x1001118
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1005588], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1002894
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1005590], ebx
je 0x10028b5
push 0x1005590
call fcn.01002b59
pop ecx
test eax, eax
je 0x10028b5
push ebx
push 2
push ebx
call dword [0x1005590]
push dword [0x100422c]
push dword [0x1004230]
push dword [0x1004228]
call fcn.01001914
add esp, 0xc
mov dword [0x1004240], eax
cmp dword [0x1004234], ebx
jne 0x1002913
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1004244], ebx
jne 0x1002921
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1004240]
call fcn.01002c29
ret
call fcn.01002d31
jmp 0x10027ca
Function at 0x10047a30
Capabilities:
Encode data using xor

Disassembly:
mov bh, 0x12
pmaxub mm7, qword [esi - 0x33f99262]
movsd dword es:[edi], dword [esi]
loope 0x10047aa1
mov ebx, 0x342dc363
iretd
cmpsb byte [esi], byte es:[edi]
imul edx, dword [ebp + 0x2e], 0xf9acc0b5
sbb al, 0x1a
xchg ebp, eax
or al, 0
xlatb
mov eax, dword [0xeb4a6c6d]
push edi
sub ah, byte [esi + ecx*8]
retf 0xbcb1
sbb edi, ecx
iretd
aam 0x29
and dword cs:[ecx + ebp*2 - 0x2c324249], ecx
jge 0x10047a97
sar dword [ebp - 0xd], cl
cmp dword [edx + 0x6a5210ac], esi
jge 0x10047af9
add ebx, eax
das
cdq
push ebx
sub byte [ebp + edi - 0x68b9983d], ah
in al, 0x99
xchg ecx, eax
pop edi
test eax, 0xefea6aa5
sbb eax, 0xea099519
inc ecx
mov cl, 0xcd
movsd dword es:[edi], dword [esi]
push ebp
sub eax, 0xb959e16d
stosb byte es:[edi], al
bound esp, qword es:[eax + 0x3f]
pushal
aas
push cs
test al, 0x24
jg 0x10047a67
xor eax, 0x7eabdb75
aaa
jbe 0x10047ad4
enter 0x36e0, 0xffffffffffffffad
inc edi
cmp cl, byte [ebx + ecx*8]
dec ebx
xchg ebx, eax
xchg byte [esi - 0x1434e286], bl
jecxz 0x10047a98
pop es
jge 0x10047ad6
mov byte [0x2500f227], al
lds ebp, [ebp + 0x541b39b5]
call 0xfc945e16
daa
add byte [0x39b5adc5], ah
sbb edx, dword [eax + ebp*8 + 0xe]
jecxz 0x10047a96
in al, dx
ret 0x83a6
Function at 0x1000a6a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x24], ecx
push edi
mov edi, dword [ebp + 0x10]
mov ecx, dword [esi + 8]
mov dword [ebp - 8], edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edi
cmp ecx, 1
je 0x1000a6d4
mov eax, dword [esi]
jmp 0x1000a6eb
mov eax, dword [esi + 4]
xor edx, edx
mov dword [ebp - 0x14], 0x1ffff7
div dword [ebp - 0x14]
imul eax, edx, 0x3e8
add eax, dword [esi]
cmp eax, 0x40
jne 0x1000a747
mov ecx, dword [0x1007d080]
mov eax, dword [0x1007d084]
cmp ecx, 0x257edfd1
jne 0x1000a70a
cmp eax, 0xb2ab117a
je 0x1000a719
cmp ecx, 0x257edfd0
jne 0x1000a71d
cmp eax, 0xb2ab117a
jne 0x1000a71d
mov al, 1
jmp 0x1000a731
mov eax, dword [0x1007d078]
mov ecx, 0x1007d078
push 0x2745
mov eax, dword [eax + 0x18]
call eax
movzx ecx, al
mov dword [esi], 0x2745
add ecx, 2
mov dword [esi + 4], 0x1007d078
mov dword [esi + 8], ecx
test cl, 1
je 0x1000a75e
cmp ecx, 1
jne 0x1000a8bc
cmp dword [esi], 0
jne 0x1000a8bc
cmp dword [ebp - 0x1c], 0
je 0x1000a823
test edi, edi
je 0x1000a823
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], 0
push eax
mov eax, dword [ebp + 8]
push eax
push eax
push 0
push dword [ebp - 8]
call dword [sym.imp.MSWSOCK.dll_GetAcceptExSockaddrs]
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0xc]
cmp edi, dword [eax]
jbe 0x1000a80f
mov ecx, dword [0x1007d080]
mov eax, dword [0x1007d084]
cmp ecx, 0x257edfd1
jne 0x1000a7d0
cmp eax, 0xb2ab117a
je 0x1000a7df
cmp ecx, 0x257edfd0
jne 0x1000a7e3
cmp eax, 0xb2ab117a
jne 0x1000a7e3
mov al, 1
jmp 0x1000a7f7
mov eax, dword [0x1007d078]
mov ecx, 0x1007d078
push 0x2726
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [esi], 0x2726
add eax, 2
mov dword [esi + 4], 0x1007d078
mov dword [esi + 8], eax
jmp 0x1000a823
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov dword [eax], edi
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
cmp eax, 0xffffffff
jne 0x1000a899
mov ecx, dword [0x1007d080]
mov eax, dword [0x1007d084]
cmp ecx, 0x257edfd1
jne 0x1000a84b
cmp eax, 0xb2ab117a
je 0x1000a85a
cmp ecx, 0x257edfd0
jne 0x1000a85e
cmp eax, 0xb2ab117a
jne 0x1000a85e
mov al, 1
jmp 0x1000a872
mov eax, dword [0x1007d078]
mov ecx, 0x1007d078
push 0x2719
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [esi], 0x2719
add eax, 2
mov dword [esi + 4], 0x1007d078
pop edi
mov dword [esi + 8], eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c9d3
mov esp, ebp
pop ebp
ret
push 4
lea ecx, [ebp - 8]
push ecx
push 0x700b
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
mov ecx, esi
setne dl
call fcn.1000a620
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005c9d3
mov esp, ebp
pop ebp
ret
Function at 0x1000a8d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
cmp ebx, 0xffffffff
je 0x1000aa92
cmp byte [ebp + 8], 0
je 0x1000a932
mov al, byte [edx]
test al, 8
je 0x1000a932
or al, 8
xor ecx, ecx
push 4
mov byte [edx], al
lea eax, [ebp - 8]
push eax
push 0x80
push 0xffff
push ebx
mov dword [ebp - 8], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea ecx, [ebp - 0x18]
setne dl
call fcn.1000a620
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
mov ecx, esi
test ebx, ebx
setne dl
call fcn.1000a620
test ebx, ebx
je 0x1000aa80
mov esi, dword [0x1007d084]
push edi
mov edi, dword [0x1007d080]
cmp edi, 0x257edfd1
jne 0x1000a96c
cmp esi, 0xb2ab117a
je 0x1000a97c
cmp edi, 0x257edfd0
jne 0x1000a980
cmp esi, 0xb2ab117a
jne 0x1000a980
mov al, 1
jmp 0x1000a9a0
mov eax, dword [0x1007d078]
mov ecx, 0x1007d078
push 0x2733
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [0x1007d084]
mov edi, dword [0x1007d080]
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x18]
movzx eax, al
add eax, 2
mov dword [ebp - 0x18], 0x2733
mov dword [ebp - 0x14], 0x1007d078
mov dword [ebp - 0x10], eax
call fcn.100094d0
test al, al
jne 0x1000aa37
cmp edi, 0x257edfd1
jne 0x1000a9d6
cmp esi, 0xb2ab117a
je 0x1000a9e6
cmp edi, 0x257edfd0
jne 0x1000a9ea
cmp esi, 0xb2ab117a
jne 0x1000a9ea
mov al, 1
jmp 0x1000a9fe
mov eax, dword [0x1007d078]
mov ecx, 0x1007d078
push 0x4d5
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x18]
movzx eax, al
add eax, 2
mov dword [ebp - 0x18], 0x4d5
mov dword [ebp - 0x14], 0x1007d078
mov dword [ebp - 0x10], eax
call fcn.100094d0
test al, al
jne 0x1000aa37
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c9d3
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 8]
push eax
push 0x8004667e
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 0x20]
push esi
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0xc]
mov esi, eax
test esi, esi
setne dl
call fcn.1000a620
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c9d3
mov esp, ebp
pop ebp
ret
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c9d3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1005c9d3
mov esp, ebp
pop ebp
ret
Function at 0x1000ad10
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 8]
push edi
push 0
push 0
push 0
push eax
push 1
push edx
push ecx
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [0x1007d080]
mov edi, eax
mov ecx, dword [0x1007d084]
cmp edx, 0x257edfd1
jne 0x1000ad67
cmp ecx, 0xb2ab117a
je 0x1000ad77
cmp edx, 0x257edfd0
jne 0x1000ad7e
cmp ecx, 0xb2ab117a
jne 0x1000ad7e
test edi, edi
setne al
jmp 0x1000ad8e
mov eax, dword [0x1007d078]
mov ecx, 0x1007d078
push edi
mov eax, dword [eax + 0x18]
call eax
movzx ecx, al
mov dword [esi], edi
mov dword [esi + 4], 0x1007d078
mov dword [ebp - 0xc], 0x1ffff7
lea eax, [ecx + 2]
mov dword [esi + 8], eax
cmp ecx, 0xffffffff
je 0x1000adb5
mov eax, edi
mov edx, 0x1007d078
jmp 0x1000adca
xor edx, edx
mov eax, 0x1007d078
div dword [ebp - 0xc]
imul eax, edx, 0x3e8
mov edx, dword [esi + 4]
add eax, edi
cmp eax, 0x40
jne 0x1000ae21
mov ecx, dword [0x1007d080]
mov eax, dword [0x1007d084]
cmp ecx, 0x257edfd1
jne 0x1000ade9
cmp eax, 0xb2ab117a
je 0x1000adf8
cmp ecx, 0x257edfd0
jne 0x1000ae05
cmp eax, 0xb2ab117a
jne 0x1000ae05
mov al, 1
mov dword [esi], 0x2746
jmp 0x1000ae88
mov eax, dword [0x1007d078]
mov ecx, 0x1007d078
push 0x2746
mov eax, dword [eax + 0x18]
call eax
mov dword [esi], 0x2746
jmp 0x1000ae88
cmp ecx, 0xffffffff
jne 0x1000ae39
mov eax, edx
mov ecx, 0x1ffff7
xor edx, edx
div ecx
imul eax, edx, 0x3e8
add edi, eax
cmp edi, 0x4d2
jne 0x1000ae98
mov ecx, dword [0x1007d080]
mov eax, dword [0x1007d084]
cmp ecx, 0x257edfd1
jne 0x1000ae5b
cmp eax, 0xb2ab117a
je 0x1000ae6a
cmp ecx, 0x257edfd0
jne 0x1000ae6e
cmp eax, 0xb2ab117a
jne 0x1000ae6e
mov al, 1
jmp 0x1000ae82
mov eax, dword [0x1007d078]
mov ecx, 0x1007d078
push 0x274d
mov eax, dword [eax + 0x18]
call eax
mov dword [esi], 0x274d
movzx eax, al
add eax, 2
mov dword [esi + 4], 0x1007d078
mov dword [esi + 8], eax
test ebx, ebx
je 0x1000aeb0
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c9d3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xorps xmm0, xmm0
mov eax, dword [ebp - 8]
xor ecx, ebp
movq qword [esi], xmm0
pop edi
mov dword [esi + 8], 0
pop esi
pop ebx
call fcn.1005c9d3
mov esp, ebp
pop ebp
ret
Function at 0x1000be00
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005ef70
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1007d00c]
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, ecx
mov dword [ebp - 4], 0
cmp dword [esi + 0x60], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], vtable.boost::asio::detail::win_iocp_io_context.0
je 0x1000bec0
call fcn.1000c500
mov ebx, dword [esi + 0x60]
push 0xffffffffffffffff
push 0
mov eax, dword [ebx + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [ebx + 8]
call edi
xor eax, eax
mov ecx, 0x100821c0
lock xadd dword [ecx], eax
mov ecx, dword [ebx + 4]
push 0
push ecx
test eax, eax
je 0x1000be8c
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1000bea2
push method.boost::asio::detail::execution_context_service_base_class_boost::asio::detail::win_iocp_socket_service_class_boost::asio::ip::tcp__.virtual_8
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [esi + 0x60]
test ebx, ebx
je 0x1000beb9
push dword [ebx + 4]
call edi
push 0xc
push ebx
call fcn.1005ce33
add esp, 8
mov dword [esi + 0x60], 0
lea ecx, [esi + 0x54]
call fcn.1001bb70
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x1000bedc
push eax
call edi
mov ebx, dword [esi + 0x2c]
test ebx, ebx
je 0x1000bef3
push dword [ebx + 4]
call edi
push 0xc
push ebx
call fcn.1005ce33
add esp, 8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1000befd
push eax
call edi
test byte [ebp + 8], 1
mov dword [esi], vtable.boost::asio::execution_context::service.0
je 0x1000bf14
push 0x64
push esi
call fcn.1005ce33
add esp, 8
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.1005c9d3
mov esp, ebp
pop ebp
ret 4