joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449b18
Capabilities:
Read file on windows

Disassembly:
call fcn.0044b580
mov eax, dword [esp + 4]
lea ecx, [eax + 1]
cmp ecx, 3
ja case.default.0x449b11
jmp dword [ecx*4 + 0x449b68]
xor eax, eax
jmp case.default.0x449b11
push 0xfffffffffffffff6
jmp 0x449b26
push 0xfffffffffffffff5
jmp 0x449b26
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push esi
push 0
lea ecx, [esp + 0xc]
push ecx
push dword [esp + 0x18]
push dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor esi, esi
test eax, eax
push 0
cmovne esi, dword [esp + 0xc]
xor ecx, ecx
test eax, eax
setne cl
push ecx
call fcn.004541f0
add esp, 8
call fcn.0044b580
mov eax, esi
pop esi
ret

Function at 0x449b1c
Capabilities:
Read file on windows

Disassembly:
call fcn.0044b580
mov eax, dword [esp + 4]
lea ecx, [eax + 1]
cmp ecx, 3
ja case.default.0x449b11
jmp dword [ecx*4 + 0x449b68]
xor eax, eax
jmp case.default.0x449b11
push 0xfffffffffffffff6
jmp 0x449b26
push 0xfffffffffffffff5
jmp 0x449b26
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push esi
push 0
lea ecx, [esp + 0xc]
push ecx
push dword [esp + 0x18]
push dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor esi, esi
test eax, eax
push 0
cmovne esi, dword [esp + 0xc]
xor ecx, ecx
test eax, eax
setne cl
push ecx
call fcn.004541f0
add esp, 8
call fcn.0044b580
mov eax, esi
pop esi
ret

Function at 0x449b20
Capabilities:
Read file on windows

Disassembly:
call fcn.0044b580
mov eax, dword [esp + 4]
lea ecx, [eax + 1]
cmp ecx, 3
ja case.default.0x449b11
jmp dword [ecx*4 + 0x449b68]
xor eax, eax
jmp case.default.0x449b11
push 0xfffffffffffffff6
jmp 0x449b26
push 0xfffffffffffffff5
jmp 0x449b26
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push esi
push 0
lea ecx, [esp + 0xc]
push ecx
push dword [esp + 0x18]
push dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor esi, esi
test eax, eax
push 0
cmovne esi, dword [esp + 0xc]
xor ecx, ecx
test eax, eax
setne cl
push ecx
call fcn.004541f0
add esp, 8
call fcn.0044b580
mov eax, esi
pop esi
ret

Function at 0x449b24
Capabilities:
Read file on windows

Disassembly:
call fcn.0044b580
mov eax, dword [esp + 4]
lea ecx, [eax + 1]
cmp ecx, 3
ja case.default.0x449b11
jmp dword [ecx*4 + 0x449b68]
xor eax, eax
jmp case.default.0x449b11
push 0xfffffffffffffff6
jmp 0x449b26
push 0xfffffffffffffff5
jmp 0x449b26
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push esi
push 0
lea ecx, [esp + 0xc]
push ecx
push dword [esp + 0x18]
push dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor esi, esi
test eax, eax
push 0
cmovne esi, dword [esp + 0xc]
xor ecx, ecx
test eax, eax
setne cl
push ecx
call fcn.004541f0
add esp, 8
call fcn.0044b580
mov eax, esi
pop esi
ret
Function at 0x449b80
Capabilities:
Move file

Disassembly:
push ebx
push esi
push edi
push dword [esp + 0x10]
call fcn.004495b0
push dword [esp + 0x18]
mov ebx, eax
call fcn.004495b0
add esp, 8
mov edi, eax
call fcn.0044b580
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
neg eax
push 0
sbb esi, esi
neg esi
push esi
call fcn.004541f0
add esp, 8
call fcn.0044b580
test ebx, ebx
je 0x449bcc
push ebx
call fcn.0047f840
add esp, 4
test edi, edi
je 0x449bd9
push edi
call fcn.0047f840
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x449be0
Capabilities:
Delete directory

Disassembly:
push esi
push edi
push dword [esp + 0xc]
call fcn.004495b0
add esp, 4
mov edi, eax
call fcn.0044b580
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
push 0
sbb esi, esi
neg esi
push esi
call fcn.004541f0
add esp, 8
call fcn.0044b580
test edi, edi
je 0x449c1f
push edi
call fcn.0047f840
add esp, 4
pop edi
mov eax, esi
pop esi
ret

Function at 0x449db0
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
call fcn.0044b580
push dword [esp + 0x10]
call fcn.004495b0
mov ebx, dword [esp + 0x18]
add esp, 4
mov edx, ebx
mov ecx, ebx
and edx, 1
mov edi, eax
mov esi, edx
mov eax, ebx
or esi, 2
and cl, 2
cmove esi, edx
mov ecx, esi
or ecx, 4
and al, 4
cmove ecx, esi
mov eax, ecx
or eax, 0x20
and bl, 0x20
cmove eax, ecx
mov ecx, 0x80
test eax, eax
cmove eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
neg eax
push 0
sbb esi, esi
neg esi
push esi
call fcn.004541f0
add esp, 8
test edi, edi
je 0x449e23
push edi
call fcn.0047f840
add esp, 4
call fcn.0044b580
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x449e50
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x40
mov eax, dword [0x7e4788]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x14]
push edi
mov edi, dword [esp + 0x58]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call fcn.004ea0b0
mov ebp, dword [esp + 0x6c]
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x38]
push eax
push ebp
call fcn.004ea6f0
call fcn.0044b580
push 0
push 0x42
push esi
call fcn.00449880
mov esi, eax
xor ebx, ebx
add esp, 0x30
cmp esi, 0xffffffff
setne bl
je 0x449f83
test edi, edi
jle 0x449ed1
test ebp, ebp
js 0x449ed1
xorps xmm0, xmm0
movups xmmword [esp + 0x3c], xmm0
jmp 0x449edc
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
test edi, edi
jle 0x449efe
movzx eax, word [esp + 0x10]
mov word [esp + 0x3c], ax
movzx eax, word [esp + 0x14]
mov word [esp + 0x3e], ax
movzx eax, word [esp + 0x18]
mov word [esp + 0x42], ax
test ebp, ebp
js 0x449f2a
movzx eax, word [esp + 0x1c]
mov word [esp + 0x44], ax
movzx eax, word [esp + 0x20]
mov word [esp + 0x46], ax
movzx eax, word [esp + 0x24]
mov word [esp + 0x48], ax
movzx eax, word [esp + 0x28]
mov word [esp + 0x4a], ax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x449f70
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [esp + 0x2c]
push eax
push eax
push 0
push esi
call fcn.00448530
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov ebx, eax
neg ebx
sbb ebx, ebx
neg ebx
jmp 0x449f72
xor ebx, ebx
push 0
push ebx
call fcn.004541f0
push esi
call fcn.00448810
add esp, 0xc
call fcn.0044b580
mov ecx, dword [esp + 0x4c]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00529c8c
add esp, 0x40
ret
Function at 0x44a080
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
call fcn.0044b580
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
lea edi, [esi + 1]
call fcn.004ebee0
test eax, eax
je 0x44a101
mov dword [esp + 0x10], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
cmp edi, 3
ja case.default.0x44a0ca
jmp dword [edi*4 + 0x44a1bc]
xor esi, esi
jmp case.default.0x44a0ca
push 0xfffffffffffffff6
jmp 0x44a0df
push 0xfffffffffffffff5
jmp 0x44a0df
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x44]
push dword [esp + 0x44]
push esi
jmp 0x44a193
mov dword [esp + 0x14], ebx
cmp edi, 3
ja case.default.0x44a10a
jmp dword [edi*4 + 0x44a1cc]
xor eax, eax
jmp 0x44a135
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x44a135
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x44a135
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x44a135
mov eax, esi
push 0
lea ecx, [esp + 0x18]
push ecx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x44a170
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x44a170
push 0
push 0
call fcn.004541f0
add esp, 8
xor esi, esi
call fcn.0044b580
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push 0
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push dword [esp + 0x44]
push dword [esp + 0x44]
push esi
call fcn.00448530
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
neg eax
push eax
call fcn.004541f0
mov esi, dword [esp + 0x18]
add esp, 8
call fcn.0044b580
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x44a1e0
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ecx
push esi
xor esi, esi
call fcn.0044b580
mov eax, dword [esp + 0xc]
lea ecx, [eax + 1]
cmp dword [esp + 0x14], esi
je 0x44a251
cmp ecx, 3
ja case.default.0x44a1fb
jmp dword [ecx*4 + 0x44a294]
xor eax, eax
jmp case.default.0x44a1fb
push 0xfffffffffffffff6
jmp 0x44a210
push 0xfffffffffffffff5
jmp 0x44a210
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
lea ecx, [esp + 8]
push ecx
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
test ecx, ecx
push 0
cmovne esi, dword [esp + 8]
xor eax, eax
test ecx, ecx
setne al
push eax
call fcn.004541f0
add esp, 8
call fcn.0044b580
mov eax, esi
pop esi
pop ecx
ret
cmp ecx, 3
ja case.default.0x44a256
jmp dword [ecx*4 + 0x44a2a4]
xor eax, eax
jmp case.default.0x44a256
push 0xfffffffffffffff6
jmp 0x44a26b
push 0xfffffffffffffff5
jmp 0x44a26b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
push eax
call fcn.004541f0
add esp, 8
call fcn.0044b580
mov eax, esi
pop esi
pop ecx
ret
Function at 0x4565d0
Capabilities:
Connect socket

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call fcn.0044b580
cmp dword [esp + 0x28], 0
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
jg 0x4565f3
jl 0x4565ef
test ebp, ebp
jae 0x4565f3
xor edi, edi
jmp 0x456630
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
mov edi, eax
cmp edi, 0xffffffff
je 0x456617
xor eax, eax
jmp 0x45661d
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
call fcn.004573a0
add esp, 4
mov eax, 1
test edi, edi
cmove edi, eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push ebx
call dword [sym.imp.WSOCK32.dll_connect]
mov esi, eax
test esi, esi
jne 0x456649
xor ebx, ebx
jmp 0x456651
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebx, eax
push ebx
call fcn.004573a0
add esp, 4
test esi, esi
je 0x4566ba
mov eax, dword [esp + 0x28]
test eax, eax
jl 0x4566ba
jg 0x45666c
test ebp, ebp
jb 0x4566ba
cmp ebx, 0x2733
jne 0x4566ba
push eax
push ebp
mov ebp, dword [esp + 0x20]
push ebp
call fcn.00457080
mov esi, eax
add esp, 0xc
test esi, esi
jle 0x4566a0
call fcn.00473af0
xor esi, esi
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
jmp 0x4566be
jne 0x4566be
call fcn.00473af0
or esi, 0xffffffff
mov dword [eax + 0xc], 2
mov dword [eax + 0x10], 0
jmp 0x4566be
mov ebp, dword [esp + 0x18]
test edi, edi
jle 0x456734
call fcn.00473af0
mov edi, dword [eax + 0x10]
test edi, edi
je 0x4566d2
xor ebx, ebx
jmp 0x4566da
call fcn.00473af0
mov ebx, dword [eax + 0xc]
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0x8004667e
push ebp
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x4566fc
xor eax, eax
jmp 0x456702
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
call fcn.004573a0
add esp, 4
test edi, edi
je 0x456725
push edi
call fcn.004573a0
add esp, 4
call fcn.0044b580
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
call fcn.00473af0
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], 0
call fcn.0044b580
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4567a0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x48
mov eax, dword [0x7e4788]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
mov esi, dword [esp + 0x50]
mov dword [esp + 4], 0
call fcn.0044b580
mov eax, dword [esp + 0x54]
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x14], eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
movups xmmword [esp + 0x30], xmm0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
push esi
call fcn.004573a0
add esp, 4
call fcn.0044b580
test esi, esi
jne 0x456983
mov edx, dword [esp + 4]
xor ecx, ecx
mov eax, edx
test eax, eax
je 0x456968
mov eax, dword [eax + 0x1c]
inc ecx
test eax, eax
jne 0x456810
test ecx, ecx
je 0x456968
push ebp
push ecx
call fcn.00467740
mov ecx, dword [esp + 0xc]
mov esi, eax
mov eax, ecx
mov dword [esp + 0x10], esi
add esp, 4
mov dword [esp + 0x10], eax
xor ebp, ebp
test eax, eax
je 0x456940
push ebx
push edi
mov edx, dword [ecx + 0x10]
xor ebx, ebx
mov ecx, dword [ecx + 0x18]
test ecx, ecx
je 0x45685b
test edx, edx
je 0x45685b
movzx eax, word [ecx]
jmp 0x45685e
or eax, 0xffffffff
sub eax, 2
jne 0x456889
cmp edx, 0x10
jb 0x456889
push 0x16
lea eax, [esp + 0x40]
push eax
lea eax, [ecx + 4]
push eax
push 2
call sub.WS2_32.dll_inet_ntop
test eax, eax
je 0x456889
push eax
call fcn.004e96e0
add esp, 4
mov ebx, eax
call fcn.00473af0
xor edx, edx
mov ecx, 4
test ebx, ebx
cmovne ecx, edx
mov dword [eax + 0x10], edx
mov dword [eax + 0xc], ecx
je 0x45691a
lea edi, [edx + 1]
cmp ebp, edi
jl 0x4568f2
nop dword [eax]
push edi
push dword [esp + 0x18]
mov esi, ebx
call fcn.00460e00
add esp, 8
nop
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x4568e0
test cl, cl
je 0x4568dc
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x4568e0
add eax, 2
add esi, 2
test cl, cl
jne 0x4568c0
xor eax, eax
jmp 0x4568e5
sbb eax, eax
or eax, 1
test eax, eax
je 0x456932
inc edi
cmp edi, ebp
jle 0x4568b0
mov esi, dword [esp + 0x14]
mov ecx, ebx
inc ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4568f8
sub ecx, edx
push ecx
push ebx
push ebp
push esi
call fcn.004619a0
add esp, 0x10
test eax, eax
jne 0x45691a
push ebx
call fcn.0047f840
add esp, 4
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x18], eax
test eax, eax
je 0x45693e
mov ecx, dword [esp + 0x10]
jmp 0x456846
push ebx
call fcn.0047f840
mov esi, dword [esp + 0x18]
jmp 0x456917
pop edi
pop ebx
push ebp
push esi
call fcn.00461d50
mov edx, dword [esp + 0x10]
add esp, 8
pop ebp
push edx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00529c8c
add esp, 0x48
ret
push edx
xor esi, esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00529c8c
add esp, 0x48
ret
mov ecx, dword [esp + 0x48]
xor eax, eax
pop esi
xor ecx, esp
call fcn.00529c8c
add esp, 0x48
ret
Function at 0x456a60
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x14
mov eax, dword [0x7e4788]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov ebx, dword [esp + 0x20]
xorps xmm0, xmm0
push esi
mov esi, dword [esp + 0x28]
mov eax, 2
push edi
push dword [esp + 0x30]
mov edi, dword [esp + 0x28]
movups xmmword [esp + 0x10], xmm0
mov word [esp + 0x10], ax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0xe], ax
test esi, esi
je 0x456aec
cmp byte [esi], 0
je 0x456aec
lea eax, [esp + 0x10]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x456af8
call fcn.00473af0
mov dword [eax + 0xc], 3
mov dword [eax + 0x10], 0
xor eax, eax
mov dword [edi], 0
pop edi
pop esi
mov dword [ebx], 0
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00529c8c
add esp, 0x14
ret
push 0
call dword [sym.imp.WSOCK32.dll_htonl]
mov dword [esp + 0x10], eax
push 0x11
call fcn.0047f870
movups xmm0, xmmword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add esp, 4
movups xmmword [eax], xmm0
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
mov dword [ebx], 0x10
pop ebx
xor ecx, esp
call fcn.00529c8c
add esp, 0x14
ret

Function at 0x456b30
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x7e4788]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
push 0x7eb9e8
xor esi, esi
call fcn.0044b580
mov eax, dword [0x7eba04]
add esp, 4
inc eax
mov dword [0x7eba04], eax
cmp eax, 1
jne 0x456b76
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov esi, eax
push 0x7eb9e8
call fcn.0044b580
mov ecx, dword [esp + 0x198]
add esp, 4
mov eax, esi
pop esi
xor ecx, esp
call fcn.00529c8c
add esp, 0x194
ret

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

Disassembly:
push ebp
push esi
call fcn.0044b580
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0xc]
test eax, eax
jl 0x456c2c
mov ecx, dword [esp + 0x1c]
jg 0x456bfd
test ecx, ecx
jb 0x456c2c
push eax
push ecx
push ebp
call fcn.00456db0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x456c2a
call fcn.00473af0
mov dword [eax + 0x10], esi
or esi, 0xffffffff
mov dword [eax + 0xc], 2
call fcn.0044b580
mov eax, esi
pop esi
pop ebp
ret
js 0x456ca4
mov eax, dword [esp + 0x18]
push ebx
xor ebx, ebx
push edi
test eax, eax
je 0x456c60
mov ecx, eax
and ecx, 1
mov edx, ecx
or edx, 2
and al, 2
cmove edx, ecx
mov ecx, dword [esp + 0x20]
mov ebx, edx
mov eax, ecx
or ebx, 4
and al, 4
cmove ebx, edx
test cl, 8
je 0x456c60
or ebx, 8
nop
push ebx
push dword [esp + 0x20]
push dword [esp + 0x20]
push ebp
call dword [sym.imp.WSOCK32.dll_recv]
mov esi, eax
test esi, esi
jle 0x456c7a
xor edi, edi
jmp 0x456c82
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov edi, eax
push edi
call fcn.004573a0
add esp, 4
cmp esi, 0xffffffff
jne 0x456ca2
cmp edi, 0x2714
jne 0x456ca2
call fcn.0047edc0
test ax, ax
je 0x456c60
pop edi
pop ebx
call fcn.0044b580
mov eax, esi
pop esi
pop ebp
ret
Function at 0x456cb0
Capabilities:
Convert ip address from string
Resolve dns

Disassembly:
sub esp, 0x44
mov eax, dword [0x7e4788]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov esi, dword [esp + 0x50]
xor ebx, ebx
push edi
xor edi, edi
test esi, esi
je 0x456d9a
cmp byte [esi], bl
je 0x456d9a
push ebp
mov ebp, dword [esp + 0x5c]
cmp ebp, 2
jne 0x456d26
lea eax, [esp + 0x14]
push eax
push esi
push ebp
call dword [sym.imp.WS2_32.dll_inet_pton]
xor ecx, ecx
test eax, eax
setg cl
mov dword [esp + 0x10], ecx
test eax, eax
jle 0x456d22
push 0x16
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x1c]
push eax
push ebp
call sub.WS2_32.dll_inet_ntop
mov esi, eax
push esi
call fcn.004e96e0
mov ecx, dword [esp + 0x14]
add esp, 4
mov edi, eax
test ecx, ecx
jne 0x456d7c
mov dword [esp + 0x10], ebx
call fcn.0044b580
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
lea eax, [esp + 0x1c]
push eax
push 0
movups xmmword [esp + 0x24], xmm0
push esi
movups xmmword [esp + 0x38], xmm0
mov dword [esp + 0x2c], ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test ebx, ebx
jne 0x456d77
mov ecx, dword [esp + 0x10]
push dword [ecx + 0x10]
push dword [ecx + 0x18]
call fcn.004564e0
add esp, 8
mov edi, eax
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
call fcn.0044b580
push ebx
call fcn.004573a0
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00529c8c
add esp, 0x44
ret
mov ecx, dword [esp + 0x4c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00529c8c
add esp, 0x44
ret
Function at 0x456db0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x118
mov eax, dword [0x7e4788]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
mov ebx, dword [esp + 0x124]
push ebp
mov ebp, dword [esp + 0x12c]
push esi
push edi
push ebp
push ebx
call fcn.004eb430
mov esi, dword [esp + 0x134]
add esp, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
lea edi, [esi + 1]
test ebp, ebp
jg 0x456e0e
jl 0x456dfc
test ebx, ebx
jae 0x456e0e
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0
jmp 0x456e34
push 0
push 0x3e8
push ebp
push ebx
call fcn.0052a1f0
mov dword [esp + 0x10], eax
mov ecx, ebx
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x24], esi
push eax
push 0
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 1
push eax
push edi
call dword [sym.imp.WSOCK32.dll_select]
mov esi, eax
test esi, esi
js 0x456e5f
xor edi, edi
jmp 0x456e67
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov edi, eax
push edi
call fcn.004573a0
add esp, 4
cmp esi, 0xffffffff
jne 0x456e7f
cmp edi, 0x2714
jne 0x456ed1
jmp 0x456e83
test esi, esi
jne 0x456ecf
lea eax, [esp + 0x18]
push eax
push ebp
push ebx
call fcn.004eb480
mov ebx, eax
mov ebp, edx
mov ecx, ebx
add esp, 0xc
or ecx, ebp
je 0x456eb4
call fcn.0047edc0
mov esi, dword [esp + 0x12c]
lea edi, [esi + 1]
test ax, ax
je 0x456df2
xor eax, eax
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00529c8c
add esp, 0x118
ret
jns 0x456ed6
or eax, 0xffffffff
jmp 0x456eb6
test esi, esi
jle 0x456eb4
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x130]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x456eb4
mov eax, 1
jmp 0x456eb6
Function at 0x456f30
Capabilities:
Get socket status

Disassembly:
sub esp, 0x118
mov eax, dword [0x7e4788]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
mov ebx, dword [esp + 0x124]
push ebp
mov ebp, dword [esp + 0x12c]
push esi
push edi
push ebp
push ebx
call fcn.004eb430
mov esi, dword [esp + 0x134]
add esp, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
lea edi, [esi + 1]
test ebp, ebp
jg 0x456f8e
jl 0x456f7c
test ebx, ebx
jae 0x456f8e
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0
jmp 0x456fb4
push 0
push 0x3e8
push ebp
push ebx
call fcn.0052a1f0
mov dword [esp + 0x10], eax
mov ecx, ebx
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x24], esi
push eax
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 1
push eax
push 0
push edi
call dword [sym.imp.WSOCK32.dll_select]
mov esi, eax
test esi, esi
js 0x456fdf
xor edi, edi
jmp 0x456fe7
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov edi, eax
push edi
call fcn.004573a0
add esp, 4
cmp esi, 0xffffffff
jne 0x456fff
cmp edi, 0x2714
jne 0x457051
jmp 0x457003
test esi, esi
jne 0x45704f
lea eax, [esp + 0x18]
push eax
push ebp
push ebx
call fcn.004eb480
mov ebx, eax
mov ebp, edx
mov ecx, ebx
add esp, 0xc
or ecx, ebp
je 0x457034
call fcn.0047edc0
mov esi, dword [esp + 0x12c]
lea edi, [esi + 1]
test ax, ax
je 0x456f72
xor eax, eax
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00529c8c
add esp, 0x118
ret
jns 0x457056
or eax, 0xffffffff
jmp 0x457036
test esi, esi
jle 0x457034
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x130]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x457034
mov eax, 1
jmp 0x457036