joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c104
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x24
mov eax, 0x56f951
call fcn.0056361b
mov ebx, ecx
mov dword [ebp - 0x24], ebx
xor eax, eax
mov dword [ebp - 0x2c], ebx
and dword [ebp - 0x1c], eax
and dword [ebp - 0x18], eax
mov word [ebp - 0x20], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov ecx, esi
mov dword [ebp - 0x28], esi
sub ecx, dword [ebx + 0x2c]
cmp ecx, 0x7d0
jbe 0x45c2bf
mov ecx, ebx
mov dword [ebx + 0x2c], esi
call fcn.0045d3cb
test al, al
jne 0x45c225
cmp byte [ebx + 0x1c], al
jne 0x45c22b
mov eax, esi
sub eax, dword [ebx + 0x14]
cmp eax, dword [ebx + 0x94]
jbe 0x45c225
inc dword [ebx + 0x20]
mov ecx, ebx
push 2
pop edi
cmp dword [ebx + 0x20], edi
jl 0x45c218
lea eax, [ebp - 0x20]
push eax
call fcn.0045d32f
test al, al
je 0x45c20f
lea esi, [ebx + 0x30]
mov ecx, esi
mov dword [ebp - 0x30], esi
call fcn.0053a750
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
cmp byte [ebx + 0x90], 0
je 0x45c1ff
cmp byte [ebx + 0x1c], 0
jne 0x45c1ff
mov eax, dword [ebp - 0x20]
add ebx, 8
mov dword [ebx], eax
mov eax, dword [ebp - 0x1c]
mov word [ebx], di
mov edi, dword [ebp - 0x24]
add edi, 0x10
mov dword [ebx + 4], eax
mov ax, word [ebp - 0x18]
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x24]
push edi
push ebx
mov ebx, ecx
and dword [ecx + 0x20], 0
mov dword [ecx + 0x14], eax
mov byte [ecx + 0x1c], 0
call fcn.0045c71c
mov byte [ebx + 0x54], 1
jmp 0x45c1ff
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0053a760
mov esi, dword [ebp - 0x28]
jmp 0x45c225
mov ecx, ebx
call fcn.0045d162
jmp 0x45c225
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 8]
push eax
call fcn.0045c71c
cmp byte [ebx + 0x1c], 0
je 0x45c287
mov eax, esi
sub eax, dword [ebx + 0x18]
cmp eax, 0x2710
jbe 0x45c287
mov ecx, dword [ebx + 0x24]
lea edi, [ebp - 0x1f]
xor eax, eax
mov byte [ebx + 0x1c], 0
stosd dword es:[edi], eax
mov dword [ebx + 0x14], esi
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, 0x131
mov word [ebp - 0x20], ax
mov byte [ebp - 0x1e], 0x68
test ecx, ecx
je 0x45c287
call fcn.004476bb
mov dword [ebp - 0x1d], eax
xor eax, eax
push eax
push ecx
push ecx
push 7
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebx + 0x24]
push eax
push eax
movzx eax, word [ebx + 0x10]
push eax
push dword [ebx + 0xc]
push dword [ebx + 8]
push 0x70000002
call fcn.00448ba5
mov ecx, ebx
call fcn.0045d3cb
test al, al
je 0x45c2c7
mov eax, dword [ebx + 0x68]
jmp 0x45c2b8
mov ecx, esi
sub ecx, dword [eax + 0x14]
cmp ecx, 0x3a98
jbe 0x45c2b5
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebx + 0x68]
call fcn.0045d8ba
mov eax, dword [eax]
jmp 0x45c2b8
add eax, 0x20
cmp eax, dword [ebx + 0x6c]
jne 0x45c297
jmp 0x45c2c7
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0056356d
ret
Function at 0x45c71c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x5ca1c8]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebx + 0xc0]
cmp dword [edi + 0x14], 2
jne 0x45c755
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0x10]
add dword [edi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 1
xor eax, eax
mov ecx, dword [ebx + 0x24]
lea edi, [esp + 9]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, 0x131
mov word [esp + 8], ax
mov byte [esp + 0xa], 0x64
test ecx, ecx
je 0x45c7ae
call fcn.004476bb
xor ecx, ecx
mov dword [esp + 0xb], eax
push ecx
push ecx
push ecx
push 7
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push ecx
mov ecx, dword [ebx + 0x24]
movzx eax, word [eax]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
push dword [eax]
push 0x70000002
call fcn.00448ba5
mov ecx, dword [esp + 0x14]
pop edi
pop ebx
xor ecx, esp
call fcn.0055fedc
mov esp, ebp
pop ebp
ret 8

Function at 0x45c877
Capabilities:
Create thread

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
push 0x45c0dd
push 0x131
mov ecx, dword [edi + 0x24]
call fcn.00448a7e
xor ebx, ebx
cmp dword [edi + 0x28], ebx
jne 0x45c8cb
push esi
push 0xc
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
pop ecx
test esi, esi
je 0x45c8c5
push ebx
push ebx
push esi
push 0x45d75b
push ebx
mov dword [esi], edi
mov dword [esi + 4], ebx
push ebx
mov byte [esi + 8], bl
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
jmp 0x45c8c7
mov esi, ebx
mov dword [edi + 0x28], esi
pop esi
pop edi
pop ebx
ret
Function at 0x45d162
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x40
mov eax, 0x56fb4d
call fcn.005635e5
mov ebx, ecx
mov dword [ebp - 0x18], ebx
xor edi, edi
xor eax, eax
mov word [ebp - 0x4c], ax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 1
mov eax, dword [ebx + 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [ebx + 0x74]
jl 0x45d1ba
call esi
sub eax, dword [ebx + 0x4c]
cmp eax, 0xea60
jbe 0x45d1ba
mov dword [ebx + 0x48], edi
mov eax, dword [ebx + 0x48]
cmp eax, dword [ebx + 0x74]
jge 0x45d311
mov edi, dword [ebx + 0xc0]
cmp dword [edi + 0x14], 1
jne 0x45d1df
call esi
sub eax, dword [edi + 0x10]
add dword [edi + 8], eax
call esi
mov dword [edi + 0x10], eax
and dword [edi + 0x14], 0
call esi
mov ecx, dword [ebx + 0x24]
mov dword [ebx + 0x4c], eax
mov eax, dword [ecx + 0xf0]
mov word [ebp - 0x4c], ax
call fcn.004476bb
push 3
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x48], eax
call fcn.0045d7df
mov edi, dword [sym.imp.MSVCR120.dll_rand]
call edi
push 0x64
cdq
pop ecx
idiv ecx
mov esi, dword [ebp - 0x44]
mov byte [esi], dl
call edi
push 0x64
cdq
pop ecx
idiv ecx
mov byte [esi + 1], dl
call edi
push 0x64
pop ecx
cdq
idiv ecx
lea eax, [ebp - 0x38]
mov ecx, ebx
push eax
lea eax, [ebp - 0x4c]
mov byte [esi + 2], dl
push eax
call fcn.0045ccad
mov ecx, dword [ebp - 0x2c]
mov eax, ecx
sub eax, dword [ebp - 0x30]
push 0xc
pop esi
cdq
idiv esi
cmp dword [ebp - 0x38], 0
mov edi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
jle 0x45d30e
cmp dword [ebp - 0x30], ecx
je 0x45d30e
add ebx, 0x30
mov byte [ebp - 4], 2
mov ecx, ebx
mov dword [ebp - 0x24], ebx
call fcn.0053a750
mov byte [ebp - 4], 3
xor esi, esi
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
cmp esi, edi
jae 0x45d2d5
lea edi, [ecx + 0x7c]
mov eax, dword [edi + 4]
sub eax, dword [edi]
cdq
idiv dword [ebp - 0x1c]
cmp eax, dword [ecx + 0x78]
jae 0x45d2d5
mov eax, dword [edi + 4]
sub eax, dword [edi]
push 0xc
pop ecx
cdq
idiv ecx
mov ecx, edi
inc eax
push eax
call fcn.0045d825
mov eax, dword [edi + 4]
sub eax, dword [edi]
push 0xc
pop ecx
cdq
idiv ecx
mov edi, dword [edi]
imul esi, esi, 0xc
add edi, 0xfffffff4
imul ecx, eax, 0xc
add esi, dword [ebp - 0x30]
add edi, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
inc esi
jmp 0x45d27f
mov esi, dword [ecx + 0xc0]
cmp dword [esi + 0x14], 0
jne 0x45d2fb
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [esi + 0x10]
add dword [esi + 4], eax
call edi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 1
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.0053a760
jmp 0x45d311
inc dword [ebx + 0x48]
lea ecx, [ebp - 0x30]
call fcn.00408df6
lea ecx, [ebp - 0x44]
call fcn.00408df6
call fcn.0056354a
ret
Function at 0x45d3e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0xc0]
call ebx
sub eax, dword [esi]
mov esi, dword [edi + 0xc0]
mov dword [edi + 0xb0], eax
cmp dword [esi + 0x14], 0
jne 0x45d41a
call ebx
sub eax, dword [esi + 0x10]
add dword [esi + 4], eax
call ebx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
mov esi, dword [edi + 0xc0]
mov dword [edi + 0xb4], eax
cmp dword [esi + 0x14], 1
jne 0x45d43c
call ebx
sub eax, dword [esi + 0x10]
add dword [esi + 8], eax
call ebx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
mov esi, dword [edi + 0xc0]
mov dword [edi + 0xb8], eax
cmp dword [esi + 0x14], 2
jne 0x45d45e
call ebx
sub eax, dword [esi + 0x10]
add dword [esi + 0xc], eax
call ebx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
lea edx, [edi + 0x98]
push 0xa
mov dword [edi + 0xbc], eax
mov esi, edx
mov edi, dword [ebp + 8]
xor eax, eax
pop ecx
rep movsd dword es:[edi], dword [esi]
push 0xa
pop ecx
push 0xa
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
pop ecx
lea esi, [ebp - 0x28]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x45d494
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56fba1
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x5ca1c8]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x5ca1c8]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x24]
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.00533f37
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0xec], ebx
call fcn.00440d5a
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
call fcn.00440d8a
push ebx
push 4
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
call fcn.00533ae5
push 2
pop eax
mov word [esp + 0x1c], ax
lea ecx, [esp + 0x24]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ebx
push eax
call fcn.00440d5a
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
call fcn.00440d72
mov ecx, dword [edi + 0x24]
call fcn.004476bb
push ebx
cmp dword [esp + 0x14], eax
jne 0x45d5d1
lea ecx, [esp + 0x50]
call fcn.00450b1f
mov byte [esp + 0xe8], 1
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x60], eax
mov ax, word [esi + 0x18]
mov word [esp + 0x64], ax
mov eax, dword [esi + 0xc]
add eax, ecx
push eax
lea eax, [ecx + 0xd]
push eax
lea ecx, [esp + 0x9c]
call fcn.0044e63e
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x98]
sub eax, ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
lea eax, [esp + 0x4c]
push eax
push dword [edi + 0x88]
mov byte [esp + 0x70], 0x65
call dword [edi + 0x8c]
pop ecx
pop ecx
lea ecx, [esp + 0x4c]
call fcn.00447409
jmp 0x45d5f4
push ecx
push ecx
push dword [esi + 0xc]
mov ecx, dword [edi + 0x24]
push dword [esi + 8]
push ebx
push ebx
push dword [esp + 0x34]
push dword [esp + 0x34]
push dword [esp + 0x40]
push 0x70000002
call fcn.00448ba5
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0055fedc
mov esp, ebp
pop ebp
ret 4

Function at 0x45fcf7
Capabilities:
Get common file path

Disassembly:
push 0x22c
mov eax, 0x5701f2
call fcn.005635af
mov dword [ebp - 0x234], edx
mov ebx, ecx
and dword [ebp - 0x238], 0
lea eax, [ebp - 0x1f0]
push 0xa
pop ecx
push 0x1e0
mov esi, 0x593854
lea edi, [ebp - 0x218]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040763f
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x45fd99
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0x5c
cmovae eax, dword [ebp - 0x230]
pop edx
cmp word [eax + ecx*2 - 2], dx
je 0x45fd99
push edx
push 1
lea ecx, [ebp - 0x230]
call fcn.00409742
push dword [ebp - 0x234]
lea edx, [ebp - 0x230]
mov ecx, ebx
call fcn.00409fe6
pop ecx
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.00401d04
mov eax, ebx
call fcn.0056355e
ret
Function at 0x45fe23
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x570266
call fcn.0056357c
mov esi, ecx
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x3c], 0
jne 0x45fea0
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 8]
call fcn.0040265f
lea edi, [esi + 0x20]
lea eax, [ebp + 0x20]
cmp edi, eax
je 0x45fe79
mov ecx, edi
call fcn.004026eb
mov ecx, dword [ebp + 0x30]
test ecx, ecx
jne 0x45fe66
and dword [edi + 0x10], ecx
jmp 0x45fe79
lea eax, [ebp + 0x20]
cmp ecx, eax
mov eax, dword [ecx]
jne 0x45fe72
push edi
jmp 0x45fe74
push 0
call dword [eax]
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 0x38]
mov dword [esi + 0x40], eax
xor eax, eax
push eax
push eax
push esi
push 0x45fefb
push eax
push eax
mov byte [esi + 0x38], al
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x45fea0
mov dword [esi + 0x3c], eax
jmp 0x45fea2
xor bl, bl
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.004026eb
lea ecx, [ebp + 8]
call fcn.004026eb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.004026eb
lea ecx, [ebp + 0x20]
call fcn.004026eb
mov al, bl
call fcn.0056354a
ret 0x34
Function at 0x4620e8
Capabilities:
Read file on windows

Disassembly:
push 0x45c
mov eax, 0x5707fa
call fcn.005635af
mov ebx, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x468]
mov edx, dword [ebp + 8]
or dword [ebp - 0x468], 0xffffffff
or dword [ebp - 0x464], 0xffffffff
push eax
push edx
call fcn.00534d59
test al, al
je 0x462292
push dword [ebp - 0x468]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x430], 0xf
mov dword [ebp - 0x434], ecx
mov byte [ebp - 0x444], cl
mov dword [ebp - 4], ecx
xor eax, eax
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], ecx
mov word [ebp - 0x42c], ax
push 0x3ff
mov byte [ebp - 4], 1
mov byte [ebp - 0x414], cl
push ecx
jmp 0x4621bb
cmp dword [ebp - 0x460], 0
je 0x4621ef
push dword [ebp - 0x460]
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x444]
call fcn.0040ecc4
push 0x3ff
mov byte [ebp - 0x414], 0
push 0
lea eax, [ebp - 0x413]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x460]
push 0
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46218c
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
lea edx, [ebp - 0x444]
lea ecx, [ebp - 0x45c]
call fcn.00453682
pop ecx
push eax
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 2
call fcn.00407694
push 0
push 1
lea ecx, [ebp - 0x45c]
mov byte [ebp - 4], 1
call fcn.00401d04
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebx + 0x4c]
call fcn.004098e4
cmp dword [ebp - 0x418], 8
lea eax, [ebp - 0x42c]
lea ecx, [ebx + 8]
cmovae eax, dword [ebp - 0x42c]
push eax
push 1
call fcn.00462776
xor ebx, ebx
lea ecx, [ebp - 0x42c]
push ebx
push 1
mov byte [ebp - 4], bl
call fcn.00401d04
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x444]
push ebx
push 1
call fcn.00401cbf
mov al, 1
jmp 0x462294
xor al, al
call fcn.0056355e
ret 8
Function at 0x465c18
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5ca1c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
cmp dword [esi], 0xffffffff
jne 0x465c5c
cmp dword [ebx + 4], 0
je 0x465c5c
cmp dword [ebp + 0xc], 0
je 0x465c5c
xor eax, eax
push 6
inc eax
push eax
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x465c71
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055fedc
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ax, word [ebx]
push dword [ebp + 0xc]
mov word [ebp - 0x14], ax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
xor eax, eax
push eax
push eax
push eax
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
jne 0x465d00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
je 0x465d00
xor eax, eax
inc eax
mov word [ebp - 0x18], ax
xor eax, eax
push 4
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x18]
push eax
push 0x80
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x465c5c
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 8], eax
mov ecx, dword [ebx]
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebx + 4]
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [esi + 0x10], ecx
inc eax
mov byte [esi + 0x18], 0
jmp 0x465c5e

Function at 0x465d28
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi], eax
mov byte [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 8], eax
mov dword [ebp + 8], 1
mov eax, dword [edx]
mov dword [esi + 0xc], eax
mov eax, dword [edx + 4]
mov dword [esi + 0x14], ecx
lea ecx, [ebp + 8]
push ecx
push 0x8004667e
push dword [esi]
mov dword [esi + 0x10], eax
mov byte [esi + 0x18], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov al, 1
pop esi
pop ebp
ret 0xc

Function at 0x4662ec
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov byte [esi], bl
call fcn.0046644e
test al, al
je 0x46631c
push ebx
push ebx
push esi
push 0x466364
push ebx
push ebx
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x46631c
mov dword [esi + 4], eax
mov al, 1
jmp 0x46631e
xor al, al
pop esi
pop ebx
pop ecx
ret
Function at 0x46644e
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5ca1c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
xor eax, eax
mov edi, ecx
push eax
push eax
push eax
push 1
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x466484
xor al, al
jmp 0x466519
push 1
lea eax, [ebp - 0x15]
mov byte [ebp - 0x15], 1
push eax
push 0xfffffffffffffffb
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, dword [edi + 0xc]
jmp 0x4664be
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
je 0x4664b5
cmp eax, 0x2726
jne 0x46652a
cmp ebx, 0xffff
jge 0x46652a
inc ebx
push 2
pop eax
push 0
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4664a1
push 8
push dword [edi + 8]
mov dword [edi + 0xc], ebx
push esi
mov dword [edi + 0x10], esi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x46647d
push 5
push dword [edi + 0x10]
call dword [sym.imp.WS2_32.dll_listen]
neg eax
sbb al, al
inc al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055fedc
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x46647d

Function at 0x466755
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, ecx
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov esi, eax
test esi, esi
je 0x466784
mov edx, dword [edi + 0xc]
push 1
push esi
push dword [edx]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x46677d
mov dword [edi + 8], esi
jmp 0x466784
push esi
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
xor ecx, ecx
push ecx
push ecx
push edi
push 0x4667ee
push ecx
push ecx
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x4667a4
mov dword [edi + 4], eax
mov al, 1
jmp 0x4667a6
xor al, al
pop edi
pop esi
ret
Function at 0x46680d
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5ca1c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
push 0
pop ecx
cmp byte [esi], 0
jne 0x4668ea
lea ebx, [esi + 8]
cmp dword [ebx], ecx
je 0x466873
push ecx
push 0xffffffffffffffff
push ecx
push ebx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp byte [esi], 0
mov edi, eax
jne 0x4668e8
cmp edi, 0xc0
je 0x4668e8
cmp edi, 0xffffffff
je 0x4668e8
push dword [ebx]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
test edi, edi
jne 0x4668dc
jmp 0x4668d5
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x114], 0x64
mov eax, dword [eax]
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x118]
push eax
push ecx
push ecx
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 1
push eax
push 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x4668dc
test eax, eax
jle 0x4668dc
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x110]
push ecx
push dword [eax]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x4668dc
mov ecx, esi
call fcn.00466909
cmp byte [esi], 0
push 0
pop ecx
je 0x466834
xor ecx, ecx
xor eax, eax
mov dword [esi + 0xc], ecx
cmp byte [esi], al
je 0x4668f7
mov byte [esi], cl
jmp 0x4668f8
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055fedc
mov esp, ebp
pop ebp
ret