joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45db3f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0
je 0x45db53
cmp dword [ebp + 0xc], 0
jne 0x45db58
jmp 0x45dbf9
push 0
push 4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x34]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x300400
jne 0x45db95
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x18]
jne 0x45db93
push 5
push 0
push 0
push str.https:__lol.qq.com_news_detail.shtml_type6docid4323930665777827760
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x45dbf9
cmp dword [ebp - 4], 0x300200
jne 0x45dbdd
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x1c]
jne 0x45dbb3
mov ecx, dword [ebp - 8]
call fcn.0045dbfd
jmp 0x45dbdb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x20]
jne 0x45dbc8
mov ecx, dword [ebp - 8]
call fcn.0045dd6e
jmp 0x45dbdb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x14]
jne 0x45dbdb
mov ecx, dword [ebp - 8]
call fcn.0045dd7f
jmp 0x45dbf9
cmp dword [ebp - 4], 0x300100
jne 0x45dbf9
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x10]
jne 0x45dbf9
mov ecx, dword [ebp - 8]
call fcn.0045ddd7
leave
ret 8
Function at 0x45e510
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push ebx
push eax
push ecx
call fcn.0045dfe0
add esp, 0xc
test eax, eax
js 0x45e758
mov edx, dword [ebx + 0xf0]
add edx, edx
push esi
add edx, edx
xor esi, esi
push edi
test edx, edx
jle 0x45e58d
lea ecx, [ebx + edx*4 + 8]
lea eax, [ebx + 8]
push ebp
lea ebx, [ebx]
mov ebp, dword [ecx - 8]
mov edi, dword [eax - 8]
mov dword [eax - 8], ebp
mov ebp, dword [ecx - 4]
mov dword [ecx - 8], edi
mov edi, dword [eax - 4]
mov dword [eax - 4], ebp
mov ebp, dword [ecx]
mov dword [ecx - 4], edi
mov edi, dword [eax]
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [eax + 4], ebp
mov dword [ecx + 4], edi
add esi, 4
sub edx, 4
add eax, 0x10
sub ecx, 0x10
cmp esi, edx
jl 0x45e550
pop ebp
mov edx, 1
cmp dword [ebx + 0xf0], edx
jle 0x45e754
lea eax, [ebx + 2]
mov ecx, dword [eax + 0xe]
movzx edi, byte [eax + 0xf]
mov edi, dword [edi*4 + 0x5768f8]
add eax, 0x10
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x5768f8]
and esi, 0xff
mov esi, dword [esi*4 + 0x5774f8]
and edi, 0xff
xor esi, dword [edi*4 + 0x577cf8]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5768f8]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x5780f8]
movzx ecx, byte [eax]
mov ecx, dword [ecx*4 + 0x5768f8]
movzx edi, byte [eax + 3]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x5778f8]
mov ecx, dword [eax + 2]
mov dword [eax - 2], esi
mov edi, dword [edi*4 + 0x5768f8]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x5768f8]
and esi, 0xff
mov esi, dword [esi*4 + 0x5774f8]
and edi, 0xff
xor esi, dword [edi*4 + 0x577cf8]
movzx edi, byte [eax + 4]
mov edi, dword [edi*4 + 0x5768f8]
and edi, 0xff
xor esi, dword [edi*4 + 0x5778f8]
movzx edi, byte [eax + 7]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5768f8]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x5780f8]
mov ecx, dword [eax + 6]
mov dword [eax + 2], esi
mov edi, dword [edi*4 + 0x5768f8]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x5768f8]
and esi, 0xff
mov esi, dword [esi*4 + 0x5774f8]
and edi, 0xff
xor esi, dword [edi*4 + 0x577cf8]
movzx edi, byte [eax + 8]
mov edi, dword [edi*4 + 0x5768f8]
and edi, 0xff
xor esi, dword [edi*4 + 0x5778f8]
movzx edi, byte [eax + 0xb]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5768f8]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x5780f8]
mov ecx, dword [eax + 0xa]
mov dword [eax + 6], esi
mov edi, dword [edi*4 + 0x5768f8]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x5768f8]
and esi, 0xff
mov esi, dword [esi*4 + 0x5774f8]
and edi, 0xff
xor esi, dword [edi*4 + 0x577cf8]
movzx edi, byte [eax + 0xc]
mov edi, dword [edi*4 + 0x5768f8]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5768f8]
and edi, 0xff
xor esi, dword [edi*4 + 0x5778f8]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x5780f8]
inc edx
mov dword [eax + 0xa], esi
cmp edx, dword [ebx + 0xf0]
jl 0x45e5a1
pop edi
xor eax, eax
pop esi
pop ebx
ret
Function at 0x4608d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
mov eax, dword [0x5d6c64]
xor eax, esp
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x48], 1
mov eax, dword [esp + 0x40]
push ebx
push ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
push esi
mov esi, dword [esp + 0x44]
mov ebp, eax
push edi
mov edi, dword [esp + 0x54]
mov dword [esp + 0x18], ebp
jne 0x460a13
mov ebx, dword [esp + 0x44]
cmp eax, 0x10
jb 0x4609b3
shr eax, 4
mov dword [esp + 0x10], eax
jmp 0x460920
mov edx, edi
sub edx, ebx
mov dword [esp + 0x20], edx
mov edx, esi
sub edx, ebx
lea ebp, [edi + 3]
sub edi, esi
lea ecx, [esi + 1]
mov eax, ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], 4
mov edx, dword [esp + 0x20]
movzx edx, byte [edx + eax]
xor dl, byte [eax]
mov edi, dword [esp + 0x28]
mov byte [edi + eax], dl
mov edx, dword [esp + 0x24]
movzx edx, byte [edx + ecx]
xor dl, byte [eax + 1]
add eax, 4
mov byte [ecx], dl
movzx edx, byte [eax - 2]
xor dl, byte [ebp - 1]
add ecx, 4
mov byte [ecx - 3], dl
movzx edx, byte [eax - 1]
xor dl, byte [ebp]
add ebp, 4
dec dword [esp + 0x1c]
mov byte [ecx - 2], dl
jne 0x460946
mov eax, dword [esp + 0x14]
push eax
push esi
push esi
call fcn.0045e760
mov ebp, dword [esp + 0x24]
mov edi, esi
sub ebp, 0x10
add esp, 0xc
add ebx, 0x10
add esi, 0x10
dec dword [esp + 0x10]
mov dword [esp + 0x18], ebp
jne 0x460920
test ebp, ebp
je 0x460ac1
mov eax, edi
mov ecx, esi
sub eax, ebx
sub ecx, ebx
mov dword [esp + 0x10], ebp
mov dl, byte [ebx + eax]
xor dl, byte [ebx]
inc ebx
dec dword [esp + 0x10]
mov byte [ebx + ecx - 1], dl
jne 0x4609c7
cmp ebp, 0x10
jae 0x4609f1
mov ecx, 0x10
sub edi, esi
lea eax, [esi + ebp]
sub ecx, ebp
mov dl, byte [eax + edi]
mov byte [eax], dl
inc eax
dec ecx
jne 0x4609e8
mov eax, dword [esp + 0x14]
push eax
push esi
push esi
call fcn.0045e760
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004610a0
add esp, 0x30
ret
cmp eax, 0x10
jb 0x460a7e
shr eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x14]
push ecx
push esi
push eax
call fcn.0045f850
add esp, 0xc
lea ecx, [edi + 2]
mov eax, esi
sub edi, esi
mov edx, 4
mov edi, edi
movzx ebx, byte [eax + edi]
xor byte [eax], bl
movzx ebx, byte [ecx - 1]
xor byte [eax + 1], bl
movzx ebx, byte [ecx]
xor byte [eax + 2], bl
movzx ebx, byte [ecx + 1]
xor byte [eax + 3], bl
add eax, 4
add ecx, 4
dec edx
jne 0x460a40
mov eax, dword [esp + 0x44]
mov edi, eax
add eax, 0x10
sub ebp, 0x10
add esi, 0x10
dec dword [esp + 0x10]
mov dword [esp + 0x44], eax
jne 0x460a23
jmp 0x460a82
mov eax, dword [esp + 0x44]
test ebp, ebp
je 0x460ac1
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x30]
push ecx
push eax
call fcn.0045f850
add esp, 0xc
xor ecx, ecx
test ebp, ebp
je 0x460ac1
lea edx, [esp + 0x2c]
mov eax, edx
sub edi, edx
sub esi, eax
lea esp, [esp]
lea eax, [esp + ecx + 0x2c]
mov dl, byte [eax + edi]
xor dl, byte [eax]
inc ecx
mov byte [eax + esi], dl
cmp ecx, ebp
jb 0x460ab0
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004610a0
add esp, 0x30
ret
Function at 0x460ae0
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x460c93
mov edx, dword [esp + 8]
test edx, edx
je 0x460c93
mov dword [edx + 0xf0], 0xa
mov eax, dword [ebx]
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov dword [edx], ecx
mov eax, dword [ebx + 4]
push ebp
push esi
mov esi, eax
ror esi, 8
and esi, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or esi, eax
mov dword [edx + 4], esi
mov eax, dword [ebx + 8]
mov esi, eax
lea ecx, [edx + 4]
ror esi, 8
and esi, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or esi, eax
mov dword [edx + 8], esi
mov eax, dword [ebx + 0xc]
mov esi, eax
push edi
ror esi, 8
and esi, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or esi, eax
mov dword [edx + 0xc], esi
mov eax, esi
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x576cf8]
xor eax, 0x1000000
mov edi, esi
shr edi, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x5770f8]
and edi, 0xff0000
and eax, 0xff000000
xor eax, edi
mov edi, esi
shr edi, 0x18
movzx edi, byte [edi*4 + 0x5768f8]
xor eax, edi
mov edi, esi
and edi, 0xff
mov edi, dword [edi*4 + 0x5764f8]
and edi, 0xff00
xor eax, edi
xor eax, dword [edx]
mov edi, dword [ecx]
xor edi, eax
mov dword [edx + 0x10], eax
mov eax, dword [edx + 8]
xor eax, edi
mov dword [edx + 0x18], eax
xor eax, esi
mov dword [edx + 0x14], edi
mov dword [edx + 0x1c], eax
mov edi, 0x5785fc
lea esp, [esp]
mov esi, dword [ecx + 0x18]
add ecx, 0x10
mov eax, esi
shr eax, 8
mov ebp, esi
and eax, 0xff
mov eax, dword [eax*4 + 0x5770f8]
shr ebp, 0x10
and ebp, 0xff
mov ebp, dword [ebp*4 + 0x576cf8]
and eax, 0xff0000
and ebp, 0xff000000
xor eax, ebp
mov ebp, esi
and esi, 0xff
mov esi, dword [esi*4 + 0x5764f8]
shr ebp, 0x18
movzx ebp, byte [ebp*4 + 0x5768f8]
xor eax, ebp
and esi, 0xff00
xor eax, esi
xor eax, dword [ecx - 4]
add edi, 4
xor eax, dword [edi - 4]
mov dword [ecx + 0xc], eax
mov esi, dword [ecx]
xor esi, eax
mov dword [ecx + 0x10], esi
mov eax, dword [ecx + 4]
xor eax, esi
mov dword [ecx + 0x14], eax
mov esi, dword [ecx + 8]
xor esi, eax
mov dword [ecx + 0x18], esi
cmp edi, 0x578620
jne 0x460bf0
pop edi
pop esi
pop ebp
add edx, 0xf4
push edx
push 0x80
push ebx
call fcn.0045e510
add esp, 0xc
pop ebx
ret
or eax, 0xffffffff
pop ebx
ret

Function at 0x4610a0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5d6c64]
jne 0x4610aa
repz ret
jmp fcn.0046180f

Function at 0x461cd0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x5d6c64]
xor eax, esp
mov dword [esp + 0x190], eax
movzx ecx, byte [esp + 0x19c]
movzx edx, byte [esp + 0x198]
shl cx, 8
lea eax, [esp]
push eax
or cx, dx
movzx eax, cx
push eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004610a0
add esp, 0x194
ret

Function at 0x461d30
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
ret

Function at 0x461d40
Capabilities:
Create udp socket

Disassembly:
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
ret
Function at 0x461d80
Capabilities:
Get socket status

Disassembly:
sub esp, 0x214
mov eax, dword [0x5d6c64]
xor eax, esp
mov dword [esp + 0x210], eax
mov ecx, dword [esp + 0x21c]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp], eax
imul eax, eax, 0x3e8
mov edx, ecx
sub edx, eax
imul edx, edx, 0x3e8
push esi
mov esi, dword [esp + 0x21c]
mov dword [esp + 8], edx
mov dword [esp + 0x114], esi
mov dword [esp + 0x110], 1
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 1
cmp ecx, 0xffffffff
jne 0x461e05
push 0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x118]
push ecx
push 0
lea edx, [esi + 1]
push edx
jmp 0x461e1d
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x118]
push edx
push 0
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x461e40
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004610a0
add esp, 0x214
ret
jne 0x461e5d
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004610a0
add esp, 0x214
ret
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.WS2_32.dll___WSAFDIsSet
mov ecx, dword [esp + 0x214]
neg eax
sbb eax, eax
pop esi
xor ecx, esp
call fcn.004610a0
add esp, 0x214
ret

Function at 0x461e90
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push eax
push ecx
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x461ed9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2748
je 0x461ed9
cmp eax, 0x2733
je 0x461ec5
cmp eax, 0x2735
jne 0x461edd
mov edx, dword [esp + 0x14]
push edx
push esi
call fcn.00461d80
add esp, 8
neg eax
sbb eax, eax
pop esi
ret
xor eax, eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret
Function at 0x461f00
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x110
mov eax, dword [0x5d6c64]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov ebx, dword [esp + 0x11c]
push esi
mov esi, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x12c]
test edi, edi
je 0x461fa7
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
cmp edi, 0xffffffff
jne 0x461f49
xor ecx, ecx
jmp 0x461f72
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xc], eax
imul eax, eax, 0x3e8
mov edx, edi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x10], edx
push ecx
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esi + 1]
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x461fa5
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004610a0
add esp, 0x110
ret
je 0x462003
mov edx, dword [esp + 0x128]
push 0
push edx
push ebx
push esi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x46201d
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x461ff2
call esi
cmp eax, 0x2733
je 0x461ff2
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004610a0
add esp, 0x110
ret
test edi, edi
je 0x462003
push 0x30d40
call fcn.00462710
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004610a0
add esp, 0x110
ret
jne 0x462024
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004610a0
add esp, 0x110
ret
jmp 0x461f00
Function at 0x462040
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x110
mov eax, dword [0x5d6c64]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov ebx, dword [esp + 0x11c]
push esi
mov esi, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x12c]
test edi, edi
je 0x4620f7
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
cmp edi, 0xffffffff
jne 0x46208d
xor ecx, ecx
jmp 0x4620b6
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xc], eax
imul eax, eax, 0x3e8
mov edx, edi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x10], edx
push ecx
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esi + 1]
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x4620f5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2714
pop edi
neg eax
pop esi
sbb eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004610a0
add esp, 0x110
ret
je 0x462153
mov edx, dword [esp + 0x128]
push 0
push edx
push ebx
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jns 0x46216d
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x462142
call esi
cmp eax, 0x2733
je 0x462142
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004610a0
add esp, 0x110
ret
test edi, edi
je 0x462153
push 0x186a0
call fcn.00462710
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004610a0
add esp, 0x110
ret
jne 0x462174
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004610a0
add esp, 0x110
ret
jmp 0x462040
Function at 0x4621c0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x84
mov eax, dword [0x5d6c64]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
xor eax, eax
mov dword [ebp], eax
push esi
mov esi, dword [esp + 0x94]
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
push edi
mov dword [ebp + 0xc], eax
mov eax, 2
push 0x3a
push esi
mov word [ebp], ax
call fcn.0046163c
mov edi, eax
add esp, 8
test edi, edi
je 0x462245
mov ebx, edi
sub ebx, esi
cmp ebx, 0x80
jge 0x4622ba
push ebx
lea ecx, [esp + 0x14]
push esi
push ecx
call sub.MSVCR100.dll_memcpy
inc edi
add esp, 0xc
mov byte [esp + ebx + 0x10], 0
test edi, edi
je 0x462272
push edi
call sub.MSVCR100.dll_atoi
add esp, 4
movzx eax, ax
jmp 0x462274
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x462250
sub eax, edx
cmp eax, 0x80
jae 0x4622ba
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x462268
xor eax, eax
push eax
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 0x10]
push str.1234567890.
push edx
mov word [ebp + 2], ax
call sub.MSVCR100.dll_strspn
lea ecx, [esp + 0x18]
add esp, 8
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x462298
sub ecx, esi
cmp eax, ecx
jne 0x4622bf
add ebp, 4
lea eax, [esp + 0x10]
push ebp
push eax
call fcn.00461ca0
add esp, 8
test eax, eax
jne 0x4622d8
or eax, 0xffffffff
jmp 0x4622da
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4622ba
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp + 4], ecx
xor eax, eax
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004610a0
add esp, 0x84
ret
Function at 0x4626f0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x110
mov eax, dword [0x5d6c64]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov ebx, dword [esp + 0x11c]
push esi
mov esi, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x12c]
test edi, edi
je 0x461fa7
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
cmp edi, 0xffffffff
jne 0x461f49
xor ecx, ecx
jmp 0x461f72
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xc], eax
imul eax, eax, 0x3e8
mov edx, edi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x10], edx
push ecx
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esi + 1]
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x461fa5
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004610a0
add esp, 0x110
ret
je 0x462003
mov edx, dword [esp + 0x128]
push 0
push edx
push ebx
push esi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x46201d
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x461ff2
call esi
cmp eax, 0x2733
je 0x461ff2
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004610a0
add esp, 0x110
ret
test edi, edi
je 0x462003
push 0x30d40
call fcn.00462710
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004610a0
add esp, 0x110
ret
jne 0x462024
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004610a0
add esp, 0x110
ret
jmp 0x461f00
Function at 0x462700
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x110
mov eax, dword [0x5d6c64]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov ebx, dword [esp + 0x11c]
push esi
mov esi, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x12c]
test edi, edi
je 0x4620f7
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
cmp edi, 0xffffffff
jne 0x46208d
xor ecx, ecx
jmp 0x4620b6
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xc], eax
imul eax, eax, 0x3e8
mov edx, edi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x10], edx
push ecx
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esi + 1]
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x4620f5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2714
pop edi
neg eax
pop esi
sbb eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004610a0
add esp, 0x110
ret
je 0x462153
mov edx, dword [esp + 0x128]
push 0
push edx
push ebx
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jns 0x46216d
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x462142
call esi
cmp eax, 0x2733
je 0x462142
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004610a0
add esp, 0x110
ret
test edi, edi
je 0x462153
push 0x186a0
call fcn.00462710
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004610a0
add esp, 0x110
ret
jne 0x462174
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004610a0
add esp, 0x110
ret
jmp 0x462040
Function at 0x465c90
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x9eb4
call fcn.00461520
mov eax, dword [0x5d6c64]
xor eax, esp
mov dword [esp + 0x9eb0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
movzx ecx, cx
push ecx
push eax
push str.udp:___s:_d
mov ebx, edx
push 0xffffffffffffffff
lea edx, [esp + 0x4f08]
push 0x100
push edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
call sub.MSVCR100.dll__snprintf_s
lea eax, [esp + 0x4f10]
push 0
push eax
mov byte [esp + 0x5017], 0
call fcn.004625a0
mov edi, eax
add esp, 0x20
test edi, edi
js 0x465e56
mov dword [esp + 0x48], 0x64
mov dword [esp + 0x4c], 0x18
mov dword [esp + 0x20], 0
lea eax, [esp + 0x38]
push eax
push edi
mov edx, 3
mov ecx, ebx
call fcn.00465850
add esp, 8
test eax, eax
js 0x465e3b
lea ecx, [esp + 0x30]
push ecx
push 0
lea esi, [ebx + 0x2c]
push 0
mov dword [esi], 0
push esi
lea edx, [edi + 1]
mov dword [ebx + 0x30], edi
inc dword [esi]
push edx
mov dword [esp + 0x44], 2
mov dword [esp + 0x48], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x465e3b
push esi
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x465e3b
push 0
push 0x4ebc
lea eax, [esp + 0x5000]
push eax
push edi
call fcn.00462700
mov esi, eax
add esp, 0x10
test esi, esi
jle 0x465e3b
mov eax, dword [ebx]
lea ecx, [esp + 0x4ff8]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x38]
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], edx
push ecx
lea edx, [esp + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [eax + 4]
push edx
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], 0x4ebc
call fcn.00465650
add esp, 0x10
test eax, eax
js 0x465e56
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x4ff8]
push eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x20]
push edx
push ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], 0x4ebc
call fcn.00465650
add esp, 0x10
test eax, eax
js 0x465e56
mov edx, dword [ebx + 0x134]
cmp edx, dword [esp + 0x44]
jne 0x465e3b
mov eax, 4
cmp ax, word [esp + 0x3e]
je 0x465e6e
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, 3
jl 0x465d18
push edi
call fcn.00462590
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x9eb0]
xor ecx, esp
call fcn.004610a0
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
push ecx
lea ebx, [esp + 0x4c]
call fcn.004659c0
push edi
mov esi, eax
call fcn.00462590
mov ecx, dword [esp + 0x9ec4]
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004610a0
mov esp, ebp
pop ebp
ret