joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4617ce
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55ef51
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x5b31c8]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x5b31c8]
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.0051efa2
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0xec], ebx
call fcn.0043ef78
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
call fcn.0043efa8
push ebx
push 4
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
call fcn.0051eb1e
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.0043ef78
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
call fcn.0043ef90
mov ecx, dword [edi + 0x24]
call fcn.0044d5a6
cmp dword [esp + 0x10], eax
jne 0x461909
push ebx
lea ecx, [esp + 0x50]
call fcn.00455cf3
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 eax, dword [esi + 0x18]
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0xc]
add eax, ecx
push eax
lea eax, [ecx + 0xd]
push eax
lea ecx, [esp + 0x9c]
call fcn.00452b31
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.0044d2b8
jmp 0x46192d
sub esp, 0xc
mov ecx, dword [edi + 0x24]
push dword [esi + 0xc]
push dword [esi + 8]
push ebx
push ebx
push dword [esp + 0x34]
push dword [esp + 0x34]
push dword [esp + 0x40]
push 0x70000002
call fcn.0044ec89
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.0054e63c
mov esp, ebp
pop ebp
ret 4
Function at 0x466b9a
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5b31c8]
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 0x466bde
cmp dword [ebx + 4], 0
je 0x466bde
cmp dword [ebp + 0xc], 0
je 0x466bde
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 0x466bf3
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.0054e63c
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 0x466c82
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
je 0x466c82
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 0x466bde
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 0x466be0

Function at 0x466caa
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 0x46726e
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov byte [esi], bl
call fcn.004673d0
test al, al
je 0x46729e
push ebx
push ebx
push esi
push 0x4672e6
push ebx
push ebx
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x46729e
mov dword [esi + 4], eax
mov al, 1
jmp 0x4672a0
xor al, al
pop esi
pop ebx
pop ecx
ret
Function at 0x4673d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5b31c8]
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 0x467406
xor al, al
jmp 0x46749b
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 0x467440
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
je 0x467437
cmp eax, 0x2726
jne 0x4674ac
cmp ebx, 0xffff
jge 0x4674ac
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 0x467423
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 0x4673ff
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.0054e63c
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4673ff
Function at 0x467dca
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55fb5d
mov eax, dword fs:[0]
push eax
sub esp, 0x878
mov eax, dword [0x5b31c8]
xor eax, esp
mov dword [esp + 0x870], eax
push ebx
push esi
push edi
mov eax, dword [0x5b31c8]
xor eax, esp
push eax
lea eax, [esp + 0x888]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x24]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x80]
push 0x800
push eax
mov dword [esp + 0x2c], esi
call fcn.0051ef51
push ebx
push 2
lea eax, [esp + 0x20]
mov dword [esp + 0x898], ebx
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], 0x34
call fcn.0051eb7a
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x467e5e
mov eax, dword [eax]
push ebx
push 0x10
push eax
lea ecx, [esp + 0x30]
call fcn.0051eb7a
mov ecx, dword [edi]
call fcn.0044d5a6
push ebx
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x28]
push 4
lea eax, [esp + 0x20]
push eax
call fcn.0051eb7a
push ebx
mov byte [esp + 0x18], bl
lea eax, [esp + 0x18]
xor ebx, ebx
lea ecx, [esp + 0x28]
inc ebx
push ebx
push eax
call fcn.0051eb7a
push 0
push ebx
lea eax, [esp + 0x1c]
mov byte [esp + 0x1c], bl
push eax
lea ecx, [esp + 0x30]
call fcn.0051eb7a
push 0
push 4
lea eax, [esp + 0x20]
mov dword [esp + 0x20], esi
push eax
lea ecx, [esp + 0x30]
call fcn.0051eb7a
push dword [esp + 0x1c]
mov ecx, edi
call fcn.00468682
mov esi, eax
test esi, esi
je 0x467f96
lea eax, [esp + 0x64]
push eax
lea ecx, [esi + 4]
call fcn.00448272
mov byte [esp + 0x890], bl
cmp dword [eax + 0x14], 8
jb 0x467efa
mov eax, dword [eax]
push dword [esi + 0x24]
push dword [esp + 0x24]
push dword [esi + 0xc]
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0x60]
push str._peerID:_d_peerAddr:_ls:_d_blockID:_d_timeoutCount:_d_
push str.RequestBlock
push eax
call fcn.00467669
add esp, 0x20
mov byte [esp + 0x890], 2
cmp dword [eax + 0x14], 8
jb 0x467f30
mov eax, dword [eax]
push eax
push ecx
mov ecx, edi
call fcn.00468ba4
push 0
push ebx
lea ecx, [esp + 0x54]
call fcn.00401c9b
push 0
push ebx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x898], 0
call fcn.00401c9b
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x467f6c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x34], eax
jmp 0x467f7d
mov eax, dword [edi + 0x58]
dec eax
cmp ecx, eax
jne 0x467f7d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x38], eax
push dword [esp + 0x3c]
lea eax, [esp + 0x80]
push eax
push ecx
push esi
mov ecx, edi
call fcn.004689b3
test al, al
jne 0x467f98
xor bl, bl
mov al, bl
mov ecx, dword [esp + 0x888]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x870]
xor ecx, esp
call fcn.0054e63c
mov esp, ebp
pop ebp
ret 8
Function at 0x46800f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55fb93
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5b31c8]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x5b31c8]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 0xc], 0
je 0x4681bf
push dword [ebp + 0xc]
lea ecx, [esp + 0x28]
push dword [ebp + 8]
call fcn.0051efa2
xor ebx, ebx
lea eax, [esp + 0x20]
push ebx
push 2
pop edi
push edi
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x8c], ebx
call fcn.0051eb1e
push ebx
push 0x10
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x30]
call fcn.0051eb1e
lea edx, [esi + 4]
cmp dword [edx + 0x14], 0x10
jb 0x468099
mov edx, dword [edx]
lea eax, [esp + 0x60]
mov ecx, ebx
mov eax, dword [eax + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x4681a7
inc ecx
lea eax, [esp + 0x60]
cmp ecx, 4
jne 0x46809f
push ebx
push edi
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x91
push eax
lea ecx, [esp + 0x30]
call fcn.0051eb1e
mov eax, 0x90
cmp word [esp + 0x18], ax
jne 0x4681a7
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
push 1
push ebx
push ebx
call dword [eax + 0x10]
cmp edx, dword [esp + 0x40]
jg 0x4681a7
jge 0x46819d
push ebx
push 4
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
call fcn.0051eb1e
mov ecx, dword [esp + 0x1c]
test ecx, ecx
js 0x4681a7
xor eax, eax
lea edi, [esp + 0x54]
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x5c]
pop edi
push ebx
push 4
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x2c]
push eax
mov word [esp + 0x60], di
call fcn.0051eb1e
push ebx
push edi
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x30]
call fcn.0051eb1e
push ebx
push 1
lea eax, [esp + 0x1f]
push eax
lea ecx, [esp + 0x30]
call fcn.0051eb1e
mov al, byte [esp + 0x17]
mov ecx, esi
mov byte [esp + 0x5e], al
movzx eax, al
push eax
movzx eax, word [esp + 0x60]
push eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x5c]
call fcn.00467ba3
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
push 1
push ebx
push ebx
call dword [eax + 0x10]
cmp edx, dword [esp + 0x40]
jl 0x4680fc
jg 0x4681a7
cmp eax, dword [esp + 0x3c]
jb 0x4680fc
or dword [esp + 0x80], 0xffffffff
mov dword [esp + 0x24], 0x57eb00
mov dword [esp + 0x24], 0x57eae4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0054e63c
mov esp, ebp
pop ebp
ret 8
Function at 0x468475
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55fc43
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x5b31c8]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x5b31c8]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0x10]
lea ecx, [esp + 0x24]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push esi
push ebx
mov dword [esp + 0x28], eax
call fcn.0051efa2
and dword [esp + 0xb0], 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
call fcn.0043ef78
push 0
push 0x10
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x30]
call fcn.0051eb1e
push 0
push 4
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
call fcn.0051eb1e
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
call fcn.0043efa8
push 0
push 4
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
call fcn.0051eb1e
push 0
push 2
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
call fcn.0051eb1e
cmp byte [esp + 0x20], 0
je 0x468589
lea eax, [esi - 0x1d]
push eax
lea eax, [ebx + 0x1d]
push eax
lea ecx, [esp + 0x54]
call fcn.0051efa2
xor ebx, ebx
mov byte [esp + 0xb0], 1
push ebx
push 4
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x58]
call fcn.0051eb1e
push ebx
push 2
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x58]
call fcn.0051eb1e
mov byte [esp + 0xb0], bl
push dword [esp + 0x1c]
mov ecx, edi
call fcn.00468682
mov esi, eax
test esi, esi
je 0x46865c
mov ecx, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
test ecx, ecx
jne 0x4685bc
call ebx
sub eax, dword [esi + 0x34]
mov dword [esi + 0x34], eax
mov byte [esi + 0x2c], 1
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x58]
dec eax
cmp ecx, eax
jne 0x4685d0
call ebx
sub eax, dword [esi + 0x38]
mov dword [esi + 0x38], eax
mov byte [esi + 0x2d], 1
lea eax, [esp + 0x4c]
xor ebx, ebx
push eax
lea ecx, [esi + 4]
mov byte [edi + 0x60], bl
call fcn.00448272
mov ecx, eax
mov byte [esp + 0xb0], 2
cmp dword [ecx + 0x14], 8
jb 0x4685f4
mov ecx, dword [ecx]
mov eax, dword [esp + 0x20]
movzx eax, al
push eax
movzx eax, word [esp + 0x14]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x84]
push dword [esi + 0xc]
push ecx
push dword [esp + 0x30]
push str._peerID:_d_peerAddr:_ls:_d_blockID:_d_blockSize:_d_useHttp:_d_
push str.BlockFromSource
push eax
call fcn.00467669
add esp, 0x24
mov byte [esp + 0xb0], 3
cmp dword [eax + 0x14], 8
jb 0x468638
mov eax, dword [eax]
push eax
push ecx
mov ecx, edi
call fcn.00468ba4
push ebx
push 1
lea ecx, [esp + 0x80]
call fcn.00401c9b
push ebx
push 1
lea ecx, [esp + 0x54]
call fcn.00401c9b
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0054e63c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x468dee
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x55fd33
call fcn.0054f7b0
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x10]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 4], eax
lea eax, [ebp + 0xc]
push eax
call fcn.004025d1
push ebx
push ebx
push esi
push 0x468e4f
push ebx
push ebx
mov byte [esi], bl
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x468e31
mov dword [esi + 8], eax
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040265d
lea ecx, [ebp + 0xc]
call fcn.0040265d
mov al, bl
call fcn.0054f77e
ret 0x1c

Function at 0x46939f
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 0x4693ce
mov edx, dword [edi + 0xc]
push 1
push esi
push dword [edx]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x4693c7
mov dword [edi + 8], esi
jmp 0x4693ce
push esi
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
xor ecx, ecx
push ecx
push ecx
push edi
push 0x469438
push ecx
push ecx
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x4693ee
mov dword [edi + 4], eax
mov al, 1
jmp 0x4693f0
xor al, al
pop edi
pop esi
ret

Function at 0x469457
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5b31c8]
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 0x469534
lea ebx, [esi + 8]
cmp dword [ebx], ecx
je 0x4694bd
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 0x469532
cmp edi, 0xc0
je 0x469532
cmp edi, 0xffffffff
je 0x469532
push dword [ebx]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
test edi, edi
jne 0x469526
jmp 0x46951f
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 0x469526
test eax, eax
jle 0x469526
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 0x469526
mov ecx, esi
call fcn.00469553
cmp byte [esi], 0
push 0
pop ecx
je 0x46947e
xor ecx, ecx
xor eax, eax
mov dword [esi + 0xc], ecx
cmp byte [esi], al
je 0x469541
mov byte [esi], cl
jmp 0x469542
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054e63c
mov esp, ebp
pop ebp
ret
Function at 0x46957d
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5b31c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
push 0
push 0
push 0x11
push 2
pop eax
push eax
push eax
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4695b3
xor al, al
jmp 0x469687
push 1
lea eax, [ebp - 0x15]
mov byte [ebp - 0x15], 1
push eax
push 0xfffffffffffffffb
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, dword [esi + 4]
jmp 0x4695f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2740
je 0x4695e8
cmp eax, 0x2726
jne 0x469698
cmp ebx, 0xffff
jge 0x469698
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 edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4695d0
push 4
lea eax, [ebp - 0x1c]
mov dword [esi + 4], ebx
push eax
push 0x1001
mov ebx, 0xffff
mov dword [esi], edi
push ebx
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x1c], 0x8000
call edi
cmp eax, 0xffffffff
je 0x46965f
push 4
lea eax, [ebp - 0x1c]
push eax
push 0x1002
push ebx
push dword [esi]
call edi
xor ecx, ecx
lea eax, [ebp - 0x24]
push ecx
push ecx
push eax
push ecx
push ecx
push 4
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ecx
push eax
push 0x9800000c
push dword [esi]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
xor eax, eax
cmp dword [esi], 0xffffffff
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054e63c
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4695ac

Function at 0x469729
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5b31c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0x10
push eax
push dword [ecx]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x469761
xor al, al
jmp 0x469787
mov ecx, dword [ebp - 0x10]
and dword [ebp - 0x1c], 0
push 2
pop eax
push dword [ebp - 0x12]
mov word [ebp - 0x20], ax
mov eax, dword [ebp - 0x20]
mov dword [esi], eax
mov dword [esi + 4], ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [edi], eax
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0054e63c
mov esp, ebp
pop ebp
ret 8
Function at 0x469799
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x201c
call fcn.0054f020
mov eax, dword [0x5b31c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x2018], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x201c], ecx
lea ebx, [edi + 0xa]
cmp ebx, 0x2000
jle 0x4697d9
xor al, al
jmp 0x46985f
mov eax, dword [eax + 4]
push dword [ebp + 0xc]
mov dword [ebp - 0x2004], 0x1000000
mov dword [ebp - 0x2000], eax
call dword [sym.imp.WS2_32.dll_htons]
push edi
push dword [ebp - 0x201c]
mov word [ebp - 0x1ffc], ax
lea eax, [ebp - 0x1ffa]
push eax
call sub.MSVCR120.dll_memcpy
mov edi, dword [ebp - 0x2018]
add esp, 0xc
mov ax, word [edi + 8]
mov word [ebp - 0x2014], ax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x2010], eax
movzx eax, word [edi + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
mov word [ebp - 0x2012], ax
lea eax, [ebp - 0x2014]
push eax
push 0
push ebx
lea eax, [ebp - 0x2004]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
setne al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0054e63c
mov esp, ebp
pop ebp
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.0054f020
mov eax, dword [0x5b31c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x2018], eax
lea eax, [ebp - 0x201c]
push eax
lea eax, [ebp - 0x2014]
mov dword [ebp - 0x201c], 0x10
push eax
push 0
push 0x2000
lea eax, [ebp - 0x2004]
push eax
push dword [ecx]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
test esi, esi
jle 0x469953
cmp esi, 0xa
jl 0x469953
cmp byte [ebp - 0x2004], 0
jne 0x469953
cmp byte [ebp - 0x2003], 0
jne 0x469953
cmp byte [ebp - 0x2002], 0
jne 0x469953
cmp byte [ebp - 0x2001], 1
jne 0x469953
mov ecx, dword [ebp - 0x2000]
and dword [ebp - 0x2020], 0
push 2
pop eax
push dword [ebp - 0x1ffc]
mov word [ebp - 0x2024], ax
mov eax, dword [ebp - 0x2024]
mov dword [edi], eax
mov dword [edi + 4], ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
add esi, 0xfffffff6
mov dword [edi + 8], eax
lea eax, [ebp - 0x1ffa]
cmp esi, dword [ebx]
cmovg esi, dword [ebx]
push esi
push eax
push dword [ebp - 0x2018]
call sub.MSVCR120.dll_memcpy
add esp, 0xc
mov dword [ebx], esi
mov al, 1
jmp 0x469955
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054e63c
mov esp, ebp
pop ebp
ret 0xc