joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006b12d
Capabilities:
Suspend thread

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov dword [esp + 8], edx
xor esi, esi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.1006b00e
test eax, eax
jne 0x1006b14e
push 9
pop esi
jmp 0x1006b195
cmp dword [edi], esi
je 0x1006b195
push ebx
mov ebx, esi
cmp dword [edi + 8], esi
jbe 0x1006b194
push ebp
mov eax, dword [edi]
push dword [eax + ebx*4]
push esi
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebp, eax
test ebp, ebp
je 0x1006b18d
push ebp
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, ebp
call fcn.1006aeb7
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [edi + 8]
jb 0x1006b15b
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
pop ecx
ret

Function at 0x1006b19b
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x1006b1e9
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1006b1d9
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1006b1d0
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1006b1ad
mov eax, dword [esi]
pop ebx
push eax
push 0
push dword [0x10090e44]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
ret

Function at 0x1006b1eb
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x10
mov eax, dword [0x1008c00c]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push ebp
imul ebp, ecx, 0x2c
push esi
push edi
mov esi, edx
mov dword [esp + 0x14], esi
add ebp, dword [0x100923c0]
mov eax, dword [ebp]
mov cl, byte [ebp + 0x14]
and cl, 1
lea ebx, [eax - 5]
cmove ebx, eax
movzx eax, cl
lea edi, [eax*2 + 5]
lea eax, [esp + 0x18]
mov dword [esp + 0x10], edi
push eax
push 0x40
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1006b244
push 0xa
pop eax
jmp 0x1006b2c5
test esi, esi
je 0x1006b266
mov byte [ebx], 0xe9
mov eax, dword [ebp + 4]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
test byte [ebp + 0x14], 1
je 0x1006b286
mov eax, dword [ebp]
mov word [eax], 0xf9eb
jmp 0x1006b286
test byte [ebp + 0x14], 1
je 0x1006b27b
mov edi, ebx
lea esi, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
jmp 0x1006b286
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
mov al, byte [ebp + 0x10]
mov byte [ebx + 4], al
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [esp + 0x14]
mov al, byte [ebp + 0x14]
and dl, 1
mov cl, dl
and al, 0xfd
add cl, cl
shl dl, 2
or cl, al
and cl, 0xfb
or cl, dl
xor eax, eax
mov byte [ebp + 0x14], cl
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1006dac1
add esp, 0x10
ret
Function at 0x1006b930
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [ebp + 0xc], esi
jne 0x1006b96c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
mov dword [0x10090f7c], esi
push eax
push eax
push dword [ebp + 8]
push 0x1006b984
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1006b97d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1006b97d
cmp dword [ebp + 0xc], 0
jne 0x1006b97d
cmp dword [ebp + 0x10], 0
jne 0x1006b97d
call fcn.1006baa2
mov eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x1006baa2
Capabilities:
Hide graphical window

Disassembly:
call fcn.1006d795
call fcn.1006b3ae
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x10
cmp byte [0x10090cc8], 0
je 0x1006bae7
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x1006baed
call dword [sym.imp.KERNEL32.dll_FreeConsole]
xor eax, eax
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x5b556f10
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x4d120e4a
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x40abb1
Capabilities:
Check for vm using instruction vpcext

Disassembly:
add byte [esi - 0x77], ah
xor byte [ebx + 0x4589b3c0], al
adc byte [ebx + 0x208b0c7d], cl
test eax, eax
mov dword [ebp - 8], eax
invalid
Function at 0x100033c0
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x1001a548
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x244]
push edi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x1fc]
xor ebp, ebp
cmp eax, 0xffffffff
mov dword [esp + 0x3c], ebp
je 0x1000358e
lea ecx, [esp + 0xc]
push 4
push ecx
push 0x80
push 0xffff
push eax
mov word [esp + 0x20], 1
mov word [esp + 0x22], bp
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x100034c1
call edi
lea edx, [esp + 0x24]
push eax
push edx
call fcn.10006280
push eax
lea eax, [esp + 0x20]
push str.CSocketClient::setsockopt__SO_LINGER____
push eax
mov byte [esp + 0x50], 1
call fcn.100025a0
add esp, 0x14
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esp + 0x40], 2
call dword [edx + 0x2c]
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x1000348d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x10003484
cmp al, 0xff
je 0x10003484
dec al
mov byte [ecx], al
jmp 0x1000348d
push ecx
call fcn.1000bdaa
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], ebp
cmp ecx, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov byte [esp + 0x3c], 0
je 0x100034c1
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x100034b8
cmp al, 0xff
je 0x100034b8
dec al
mov byte [ecx], al
jmp 0x100034c1
push ecx
call fcn.1000bdaa
add esp, 4
lea ecx, [esi + 0x23c]
call fcn.1000a430
lea ecx, [esi + 0x200]
call fcn.10009ef0
mov eax, dword [esi + 0x1fc]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x10003579
call edi
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.10006280
push eax
lea edx, [esp + 0x20]
push str.CSocketClient::StopAcceptingConnections_____closesocket__
push edx
mov byte [esp + 0x50], 3
call fcn.100025a0
add esp, 0x14
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esp + 0x40], 4
call dword [edx + 0x2c]
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x10003543
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x1000353a
cmp al, 0xff
je 0x1000353a
dec al
mov byte [ecx], al
jmp 0x10003543
push ecx
call fcn.1000bdaa
add esp, 4
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], ebp
cmp eax, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov byte [esp + 0x3c], 0
je 0x10003579
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x10003570
cmp al, 0xff
je 0x10003570
dec al
mov byte [ecx], al
jmp 0x10003579
push ecx
call fcn.1000bdaa
add esp, 4
mov eax, dword [esi]
mov ecx, esi
mov dword [esi + 0x1fc], 0xffffffff
call dword [eax + 0x10]
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x100035b0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1001a570
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
xor ebx, ebx
push esi
push ebx
push ebx
push ebx
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
jne 0x10003668
mov al, byte [esp + 0x68]
push ebp
push edi
mov byte [esp + 0x14], al
mov edi, str.CSocket::CreateListeningSocket__
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x1c], ebx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.10002370
test al, al
je 0x1000363e
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, str.CSocket::CreateListeningSocket__
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], bl
mov dword [esp + 0x64], ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.1000b170
lea edx, [esp + 0x34]
push 0x1001e260
push edx
call fcn.1000c35d
pop edi
pop ebp
push eax
lea ecx, [esp + 0xc]
call fcn.1000a6e0
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push eax
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x64], 1
call fcn.1000b0e0
lea edx, [esp + 0x1c]
lea ecx, [esp + 8]
push edx
call fcn.1000af10
lea ecx, [esp + 8]
call fcn.1000aa00
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x5c], 0xffffffff
call fcn.1000a990
mov ecx, dword [esp + 0x54]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 8
Function at 0x10003eb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x1001a620
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [esp + 0x40]
push edi
mov edi, ecx
xor ebx, ebx
mov ecx, dword [esi + 0x40]
mov dword [esp + 0xc], ebx
cmp ecx, ebx
mov dword [esp + 0x10], ebx
jne 0x10003ef2
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x30], eax
lea eax, [esi + 0x2c]
mov dword [eax], ecx
jmp 0x10003f04
mov edx, dword [esi + 0x44]
lea eax, [esi + 0x2c]
add edx, ecx
mov dword [esi + 0x30], edx
mov edx, dword [esi + 0x3c]
sub edx, ecx
mov dword [eax], edx
push ebx
lea ecx, [esp + 0x14]
push ebx
lea edx, [esp + 0x14]
push ecx
push edx
push 1
push eax
mov eax, dword [edi + 0x1fc]
push eax
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x10004000
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x3e5
je 0x10004014
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.10006280
lea edx, [esp + 0x1c]
lea eax, [esp + 0x2c]
push edx
push str.CSocketClient::OnRead_____WSARecv:
push eax
mov dword [esp + 0x50], ebx
call fcn.100025a0
push eax
mov byte [esp + 0x54], 1
call fcn.10006260
mov eax, dword [esp + 0x40]
add esp, 0x18
cmp eax, ebx
mov byte [esp + 0x3c], bl
je 0x10003f97
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x10003f8e
cmp al, 0xff
je 0x10003f8e
dec al
mov byte [ecx], al
jmp 0x10003f97
push ecx
call fcn.1000bdaa
add esp, 4
cmp esi, 0x2745
je 0x10003faf
cmp esi, 0x2746
je 0x10003faf
cmp esi, 0x2775
jne 0x10003fb6
mov ecx, edi
call fcn.100033c0
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x10004014
mov al, byte [ecx - 1]
cmp al, bl
je 0x10003fe2
cmp al, 0xff
je 0x10003fe2
dec al
pop edi
pop esi
mov byte [ecx - 1], al
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 4
dec ecx
push ecx
call fcn.1000bdaa
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 4
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x40]
add edx, ecx
push esi
mov dword [esi + 0x40], edx
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x24]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 4
Function at 0x10004360
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x1001a6a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x50]
xor esi, esi
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x1fc]
mov dword [esp + 0x24], 0x3e8
mov dword [esp + 0x28], esi
lea eax, [esp + 0x24]
lea ecx, [esp + 0x4c]
push eax
push 0
push 0
push ecx
push 0
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x10004534
mov edx, 0x22
push 0
sub edx, esi
lea eax, [esi + ebp + 0x1d9]
push edx
push eax
push edi
call ebx
test eax, eax
jle 0x10004534
add esi, eax
cmp esi, 0x22
jne 0x100043a8
cmp byte [ebp + 0x1db], 0x20
jne 0x100043a8
mov al, byte [ebp + 0x1dc]
test al, al
je 0x1000454f
mov cl, byte [esp + 0x13]
or ebx, 0xffffffff
mov byte [esp + 0x14], cl
mov edi, str.Server_send_cliper_mode_error_
mov ecx, ebx
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], esi
push ecx
push str.Server_send_cliper_mode_error_
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call fcn.10004580
lea edx, [esp + 0x14]
mov dword [esp + 0x158], esi
push edx
call fcn.10006260
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, esi
mov dword [esp + 0x158], ebx
je 0x10004483
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x1000447a
cmp al, 0xff
je 0x1000447a
dec al
mov byte [ecx], al
jmp 0x10004483
push ecx
call fcn.1000bdaa
add esp, 4
mov eax, dword [ebp + 0x1fc]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x1000452e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.10006280
push eax
lea edx, [esp + 0x38]
push str.CSocketClient::StopAcceptingConnections_____closesocket__
push edx
mov dword [esp + 0x16c], 1
call fcn.100025a0
add esp, 0x14
mov edx, dword [ebp]
push eax
mov ecx, ebp
mov byte [esp + 0x15c], 2
call dword [edx + 0x2c]
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x100044fd
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x100044f4
cmp al, 0xff
je 0x100044f4
dec al
mov byte [ecx], al
jmp 0x100044fd
push ecx
call fcn.1000bdaa
add esp, 4
mov eax, dword [esp + 0x40]
mov dword [esp + 0x30], esi
cmp eax, esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
je 0x1000452e
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x10004525
cmp al, 0xff
je 0x10004525
dec al
mov byte [ecx], al
jmp 0x1000452e
push ecx
call fcn.1000bdaa
add esp, 4
mov dword [ebp + 0x1fc], ebx
xor al, al
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14c
ret
mov dword [ebp + 0x1cc], 0
mov eax, dword [ebp + 0x1e3]
not eax
mov dword [ebp + 0x1d0], eax
mov ecx, dword [ebp + 0x1e7]
not ecx
mov dword [ebp + 0x1d4], ecx
mov al, 1
jmp 0x10004536
Function at 0x10009800
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1001ab3b
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 4], ebx
jne 0x100098ad
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
push ebx
push esi
push 0x10009ba0
push ebx
push ebx
call fcn.1000cf60
add esp, 0x18
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x10009992
mov cl, byte [esp + 0xf]
mov edi, str.CThread::Start______beginthreadex
mov byte [esp + 0x34], cl
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x38], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x3c], ebx
push ecx
push str.CThread::Start______beginthreadex
lea ecx, [esp + 0x3c]
mov dword [esp + 0x48], ebx
call fcn.10004580
mov dword [esp + 0x98], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x34]
push eax
push edx
lea ecx, [esp + 0x70]
call fcn.1000b170
lea eax, [esp + 0x68]
push 0x1001e260
push eax
call fcn.1000c35d
mov cl, byte [esp + 0xf]
push ebp
mov byte [esp + 0x28], cl
push ebx
lea ecx, [esp + 0x2c]
call fcn.10002300
mov edi, str.Thread_already_running___you_can_only_call_Start___once_
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x2c]
push ebp
call fcn.10002370
test al, al
je 0x10009905
mov edi, dword [esp + 0x2c]
mov ecx, ebp
mov edx, ecx
mov esi, str.Thread_already_running___you_can_only_call_Start___once_
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], ebp
mov byte [eax + ebp], bl
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x1c], cl
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa0], 1
call fcn.10002300
mov edi, str.CThread::Start__
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
call fcn.10002370
test al, al
je 0x10009967
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
mov esi, str.CThread::Start__
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [eax + ebp], bl
lea ecx, [esp + 0x28]
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x50]
mov byte [esp + 0xa4], 2
call fcn.1000b230
lea eax, [esp + 0x48]
push 0x1001e4c8
push eax
call fcn.1000c35d
pop ebp
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret
Function at 0x10009cd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov ecx, eax
mov edx, dword [esi]
shr eax, 2
je 0x10009cf5
mov ebx, dword [edi]
add edi, 4
xor ebx, edx
dec eax
mov dword [edi - 4], ebx
jne 0x10009ce8
and ecx, 3
mov eax, edx
je 0x10009d0a
mov bl, byte [edi]
inc edi
xor bl, al
shr eax, 8
mov byte [edi - 1], bl
dec ecx
jne 0x10009cfc
mov eax, edx
shl edx, 5
sub edx, eax
add edx, 0x8088405
mov dword [esi], edx
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10009f40
Capabilities:
Initialize winsock library

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1001abc8
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push esi
mov esi, ecx
push esi
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10009ff8
mov al, byte [esp + 7]
push ebx
push ebp
push edi
mov byte [esp + 0x14], al
mov edi, str.CUsesWinsock::CUsesWinsock__
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x1c], ebx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.10002370
test al, al
je 0x10009fcd
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, str.CUsesWinsock::CUsesWinsock__
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], bl
mov dword [esp + 0x54], ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.1000b170
lea edx, [esp + 0x24]
push 0x1001e260
push edx
call fcn.1000c35d
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x48
ret
Function at 0x1000aae0
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x1001ad18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
mov esi, ecx
lea eax, [esp + 0xc]
push 4
push eax
mov ecx, dword [esi]
push 0x80
xor ebx, ebx
push 0xffff
push ecx
mov word [esp + 0x20], 1
mov word [esp + 0x22], bx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1000abb1
push ebp
push edi
or ecx, eax
mov edi, str.CSocket::AbortiveClose__
xor eax, eax
mov dl, byte [esp + 0x13]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
mov byte [esp + 0x20], dl
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.10002370
test al, al
je 0x1000ab87
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov eax, ecx
mov esi, str.CSocket::AbortiveClose__
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [ecx + ebp], bl
mov dword [esp + 0x58], ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [esp + 0x18]
push eax
push edx
lea ecx, [esp + 0x30]
call fcn.1000b120
lea eax, [esp + 0x28]
push 0x1001ec50
push eax
call fcn.1000c35d
pop edi
pop ebp
mov ecx, esi
call fcn.1000aa10
mov ecx, dword [esp + 0x48]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret

Function at 0x1000af10
Capabilities:
Connect socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1001adb8
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
mov ecx, dword [ecx]
sub esp, 0x38
push 0x10
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1000afcb
push ebx
push ebp
push edi
or ecx, eax
mov edi, str.CSocket::Connect__
xor eax, eax
xor ebx, ebx
mov dl, byte [esp + 0x54]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x10]
push ebp
mov byte [esp + 0x14], dl
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.10002370
test al, al
je 0x1000afa0
mov edi, dword [esp + 0x10]
mov ecx, ebp
mov eax, ecx
push esi
mov esi, str.CSocket::Connect__
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
pop esi
mov byte [ecx + ebp], bl
mov dword [esp + 0x4c], ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [esp + 0xc]
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.1000b120
lea eax, [esp + 0x1c]
push 0x1001ec50
push eax
call fcn.1000c35d
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret 4