joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409c50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540601
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x5a38c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 1
mov esi, ecx
call fcn.0042d35e
call fcn.00428115
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409ca3
push 0x80004005
call fcn.00401050
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x118], eax
mov dword [ebp - 4], 0
call fcn.00428115
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409cd6
push 0x80004005
call fcn.00401050
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x11c], eax
push 0x104
lea ecx, [ebp - 0x114]
push 0
push ecx
mov byte [ebp - 4], 1
call fcn.00527530
add esp, 0xc
lea edx, [ebp - 0x114]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x11c]
push str._s_d.gif
push ecx
call fcn.00401560
add esp, 0x10
lea edx, [ebp - 0x118]
push edx
push 0x49a
mov ecx, esi
call fcn.00430ba6
lea ecx, [ebp - 0x130]
call fcn.00438c87
mov esi, dword [ebp - 0x11c]
push 0
push 0x1001
push esi
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 2
call fcn.0043919c
test eax, eax
je 0x409e08
lea eax, [ebp - 0x11c]
push eax
mov ecx, edi
call fcn.00403f10
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.004389be
lea ecx, [ebp - 0x130]
call fcn.00438c22
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 1
call fcn.00438df5
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409dd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409e01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x409e62
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 1
call fcn.00438df5
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409e37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409e60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00527098
mov esp, ebp
pop ebp
ret 4
Function at 0x409eb0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540646
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x5a38c0]
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 dword [ebp - 0x114], ecx
call fcn.00428115
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x409f00
push 0x80004005
call fcn.00401050
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x11c], eax
push 0x100
lea ecx, [ebp - 0x110]
push ecx
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_gethostname]
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
cmp esi, edi
je 0x40a035
call fcn.00428115
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x40a012
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x118], eax
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_inet_ntoa]
test eax, eax
jne 0x409f7f
xor ecx, ecx
jmp 0x409f8d
mov ecx, eax
lea ebx, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x409f84
sub ecx, ebx
push ecx
push eax
lea ecx, [ebp - 0x118]
call fcn.004037a0
mov ebx, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x114]
mov edx, dword [ecx + 0xec]
push ebx
push 0
push 0x143
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax + 0xec]
push edi
push 0
push 0x151
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
movsx eax, word [esi + 0xa]
mov edx, dword [esi + 0xc]
add eax, dword [edx + edi*4]
or edx, 0xffffffff
mov byte [ebp - 4], 0
cmp eax, dword [esi]
jae 0x40a01c
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a004
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc edi
call fcn.00428115
test eax, eax
jne 0x409f52
push 0x80004005
call fcn.00401050
add ebx, 0xfffffff0
lea ecx, [ebx + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a035
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax + 0xec]
push 0
push 0
push 0x14e
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a07a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.00527098
mov esp, ebp
pop ebp
ret
Function at 0x40b670
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541bf8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5a38c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00428a97
push 0
push 0x14
push 1
lea ecx, [esi + 0x18c]
call fcn.00435d79
mov eax, dword [esi + 0x1ac]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 2
push 1
push 0x405
push eax
call ebx
mov ecx, dword [esi + 0x138]
push 0xf423f
push 1
push 0x46f
push ecx
call ebx
mov edx, dword [esi + 0xc4]
push 0x10064
push 0
push 0x465
push edx
call ebx
mov eax, dword [esi + 0x138]
push 0x64
push 0
push 0x467
push eax
call ebx
mov ecx, dword [esi + 0xc4]
push 0x1e
push 0
push 0x467
push ecx
call ebx
push 0
push 0x3f6
mov ecx, esi
mov dword [esi + 0x230], 1
call fcn.00431a67
mov ecx, eax
call fcn.00431cb4
call fcn.00428115
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b74d
push 0x80004005
call fcn.00401050
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x16
push 0x552bd4
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.004037a0
push esi
lea ecx, [esi + 0x234]
call fcn.0041b080
mov ecx, dword [ebp - 0x10]
push 0
push ecx
push 0x401
mov ecx, esi
call fcn.00431a67
push eax
lea ecx, [esi + 0x234]
call fcn.0041c0e0
push 0x18
push 0x552bb8
lea ecx, [ebp - 0x10]
call fcn.004037a0
mov edx, dword [ebp - 0x10]
push 0
push edx
push 0x3f9
mov ecx, esi
call fcn.00431a67
push eax
lea ecx, [esi + 0x234]
call fcn.0041c0e0
push 0x20
push 0x552b94
lea ecx, [ebp - 0x10]
call fcn.004037a0
push 0x1f
push 0x552b74
lea ecx, [ebp - 0x10]
call fcn.004036e0
mov eax, dword [ebp - 0x10]
push 0
push eax
push 0x3f2
mov ecx, esi
call fcn.00431a67
push eax
lea ecx, [esi + 0x234]
call fcn.0041c0e0
push 0x29
push 0x552b48
lea ecx, [ebp - 0x10]
call fcn.004037a0
mov ecx, dword [ebp - 0x10]
push 0
push ecx
push 0x3fa
mov ecx, esi
call fcn.00431a67
push eax
lea ecx, [esi + 0x234]
call fcn.0041c0e0
movzx edx, byte [esi + 0x22b]
push edx
lea eax, [esi + 0x22c]
push 0x552b3c
push eax
call fcn.00401560
add esp, 0xc
push 0x477
mov ecx, esi
call fcn.00431a67
mov ecx, dword [eax + 0x20]
push 0
push 1
push 0xf1
push ecx
call ebx
push 0x47b
mov ecx, esi
call fcn.00431a67
mov edx, dword [eax + 0x20]
push 0
push 1
push 0xf1
push edx
call ebx
push 0
push 0x419
mov ecx, esi
mov byte [esi + 0x21f], 2
mov byte [esi + 0x223], 7
call fcn.00431a67
mov ecx, eax
call fcn.00431cb4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b8cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d4d0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540646
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x5a38c0]
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 dword [ebp - 0x114], ecx
call fcn.00428115
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40d520
push 0x80004005
call fcn.00401050
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x11c], eax
push 0x100
lea ecx, [ebp - 0x110]
push ecx
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_gethostname]
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
cmp esi, edi
je 0x40d655
call fcn.00428115
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x40d632
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x118], eax
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_inet_ntoa]
test eax, eax
jne 0x40d59f
xor ecx, ecx
jmp 0x40d5ad
mov ecx, eax
lea ebx, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40d5a4
sub ecx, ebx
push ecx
push eax
lea ecx, [ebp - 0x118]
call fcn.004037a0
mov ebx, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x114]
mov edx, dword [ecx + 0xc4]
push ebx
push 0
push 0x143
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax + 0xc4]
push edi
push 0
push 0x151
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
movsx eax, word [esi + 0xa]
mov edx, dword [esi + 0xc]
add eax, dword [edx + edi*4]
or edx, 0xffffffff
mov byte [ebp - 4], 0
cmp eax, dword [esi]
jae 0x40d63c
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d624
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc edi
call fcn.00428115
test eax, eax
jne 0x40d572
push 0x80004005
call fcn.00401050
add ebx, 0xfffffff0
lea ecx, [ebx + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d655
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax + 0xc4]
push 0
push 0
push 0x14e
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d69a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.00527098
mov esp, ebp
pop ebp
ret
Function at 0x40e6b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540c8c
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x5a38c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0xa
lea ecx, [esi + 0x2c]
mov dword [ebp - 0x1a8], esi
mov dword [esi], vtable.CIOCPServer.0
call fcn.0040e3f0
xor ebx, ebx
push 0xa
lea ecx, [esi + 0x48]
mov dword [ebp - 4], ebx
call fcn.0040e3f0
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 1
call fcn.0040df30
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x5a4d74
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x70], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x6c], eax
mov dword [ebp - 0x1a8], 0x61524350
mov ecx, dword [ebp - 0x1a8]
mov al, 0x74
mov dword [esi + 0x26], ecx
mov byte [esi + 0x2a], al
mov dword [esi + 0x68], ebx
mov byte [esi + 0x78], bl
mov dword [esi + 0x64], ebx
mov dword [esi + 0x74], ebx
mov word [esi + 0x24], bx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], 0x2710
mov dword [esi + 0x88], 0x2bf20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00527098
mov esp, ebp
pop ebp
ret
Function at 0x40ebd0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540da8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5a38c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.RemoveStaleClient
lea ecx, [ebp - 0x10]
call fcn.00406eb0
mov dword [ebp - 4], 0
call fcn.00428115
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ec27
push 0x80004005
call fcn.00401050
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00403f10
push 0x5a4d74
mov dword [ebp - 0x1c], 0x5a4d74
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ec7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp + 8]
jne 0x40eca4
mov ecx, dword [esi]
push 4
lea eax, [ebp - 0x14]
push eax
push 0x80
push 0xffff
push ecx
mov dword [ebp - 0x14], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0
push esi
lea ecx, [edi + 0x2c]
call fcn.0040e520
test eax, eax
je 0x40ecdf
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 2
mov dword [esi], 0xffffffff
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push esi
push ecx
call edx
push esi
mov ecx, edi
call fcn.0040e920
push 0x5a4d74
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ed10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 0x18
mov edi, ecx
call fcn.00426bec
add esp, 4
test eax, eax
je 0x40ed61
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 1
jmp 0x40ed63
xor eax, eax
mov esi, dword [ebp + 8]
push 0
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [esi]
lea ecx, [ebp - 8]
push ecx
push 1
lea edx, [esi + 0x50]
push edx
push eax
mov dword [ebp - 4], 0x8000
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x40eda3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x40eda3
push 0
push esi
mov ecx, edi
call fcn.0040ebd0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40f1a0
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540e10
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5a38c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
test byte [0x5a4da0], 1
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], 0
jne 0x40f1f4
or dword [0x5a4da0], 1
call esi
mov dword [0x5a4d9c], eax
mov ebx, dword [ebp + 0xc]
add dword [0x5a4d98], ebx
call esi
sub eax, dword [0x5a4d9c]
cmp eax, 0x3e8
jb 0x40f22d
call esi
mov dword [0x5a4d9c], eax
mov eax, dword [0x5a4d98]
push eax
add edi, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [0x5a4d98], 0
mov esi, dword [ebp + 8]
push ebx
lea ecx, [esi + 4]
call fcn.0040ddd0
lea ecx, [esi + 4]
call fcn.0040dc00
test eax, eax
jne 0x40f270
lea ecx, [esi + 4]
call fcn.0040dda0
mov ecx, dword [esi + 0x2060]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x18
call fcn.00426bec
add esp, 4
test eax, eax
je 0x40f299
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 2
mov ebx, eax
jmp 0x40f29b
xor ebx, ebx
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
push 3
push esi
push edx
call eax
push 0
lea ecx, [esi + 4]
call fcn.0040ddc0
lea ecx, [esi + 4]
mov dword [esi + 0x205c], eax
call fcn.0040dc00
push 0
push ebx
push 0x8000
lea ecx, [esi + 0x2058]
push ecx
push 1
push ecx
mov dword [ecx], eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x40f2fc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x40f2fc
mov ecx, dword [ebp - 0x14]
push 0
push esi
call fcn.0040ebd0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40f560
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540ec0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5a38c0]
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 edi, ecx
cmp byte [edi + 0x78], 0
jne 0x40f713
cmp byte [edi + 0x25], 0
jne 0x40f713
mov edx, dword [edi + 0x68]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push edx
mov dword [ebp - 0x34], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40f5d2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40f713
mov ecx, edi
call fcn.0040ea60
mov esi, eax
test esi, esi
je 0x40f713
lea eax, [esi + 0x58]
mov dword [esi], ebx
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], 0x2000
mov ecx, dword [edi + 0x74]
push esi
push ecx
push ebx
mov ecx, edi
call fcn.0040e2e0
push 1
test eax, eax
jne 0x40f620
mov ecx, esi
call fcn.0040e360
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push ebx
call esi
mov edx, dword [edi + 0x68]
push edx
call esi
jmp 0x40f713
mov eax, dword [esi]
push 0x59d449
push 8
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [edi + 0x88]
xor ebx, ebx
push ebx
push ebx
push 0x59d449
push ebx
push ebx
push 0xc
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0x2710
mov eax, dword [esi]
push 0x98000004
push eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push str.OnAccept
lea ecx, [ebp - 0x30]
call fcn.00406eb0
lea ecx, [ebp - 0x30]
push ecx
push 0x5a4d74
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
call fcn.0040e890
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.0040ffb0
push esi
lea ecx, [edi + 0x2c]
call fcn.0040e7a0
push 0x18
call fcn.00426bec
add esp, 4
cmp eax, ebx
je 0x40f6c4
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ebx
jmp 0x40f6c6
xor eax, eax
mov edx, dword [edi + 0x74]
push eax
push esi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
cmp eax, ebx
jne 0x40f6f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40f6f0
push 1
push esi
mov ecx, edi
call fcn.0040ebd0
jmp 0x40f704
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push 1
push esi
push eax
call ecx
push esi
mov ecx, edi
call fcn.0040ed30
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040e860
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.00527098
mov esp, ebp
pop ebp
ret
Function at 0x40f990
Capabilities:
Create tcp socket
Create thread
Create udp socket
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
push 0
push 1
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x40f9c8
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x74], eax
test eax, eax
jne 0x40f9d0
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x14]
add eax, eax
lea ecx, [esi + 0x7c]
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], 0xa
mov dword [esi + 0x98], 0x4b
call fcn.0040df70
mov ebx, dword [ebp - 0x14]
xor edi, edi
add ebx, ebx
mov dword [esi + 0x20], edi
je 0x40fa4b
jmp 0x40fa20
lea ecx, [ebp - 4]
push ecx
push 0
push esi
push 0x40f730
push 0
push 0
call fcn.00529bd2
add esp, 0x18
test eax, eax
je 0x40fa54
inc dword [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, ebx
jb 0x40fa20
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40fa70
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5a38c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 1
push 0
push 0
push 0
mov esi, ecx
mov ecx, dword [ebp + 0x10]
push 1
push 2
mov dword [esi + 4], eax
mov dword [esi + 0x1c], ecx
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [esi + 0x68], eax
cmp eax, 0xffffffff
je 0x40fac0
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 0x64], eax
test eax, eax
jne 0x40fad3
mov edx, dword [esi + 0x68]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00527098
mov esp, ebp
pop ebp
ret 0x10
push 8
push eax
mov eax, dword [esi + 0x68]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x40faeb
mov ecx, dword [esi + 0x68]
push ecx
jmp 0x40faba
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0x68]
push 0x10
lea ecx, [ebp - 0x14]
mov word [ebp - 0x12], ax
push ecx
mov eax, 2
push edx
mov word [ebp - 0x14], ax
mov dword [ebp - 0x10], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x40fb24
mov eax, dword [esi + 0x68]
push eax
jmp 0x40faba
mov ecx, dword [esi + 0x68]
push SysReAllocString
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x40fab6
lea eax, [ebp - 0x18]
push eax
push 0
push esi
push 0x40f900
push 0
push 0
mov dword [ebp - 0x18], 0
call fcn.00529bd2
add esp, 0x18
mov dword [esi + 0x70], eax
cmp eax, 0xffffffff
je 0x40fac0
mov ecx, esi
call fcn.0040f990
mov ecx, dword [ebp - 4]
mov byte [esi + 0x24], 1
xor ecx, ebp
mov al, 1
pop esi
call fcn.00527098
mov esp, ebp
pop ebp
ret 0x10