joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444c97
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x49c0b8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00444bd6
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00445850
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x444ce6
cmp dword [ebp - 0x1c], 5
jb 0x444cfe
jmp 0x444cfa
cmp dword [ebp - 0x10], 1
jne 0x444cfe
cmp dword [ebp - 0x1c], 4
ja 0x444cfa
jne 0x444cfe
cmp dword [ebp - 0x18], 0
jbe 0x444cfe
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x47e78c
call fcn.0040c665
test eax, eax
jge 0x444d1f
mov byte [0x49fc20], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00446679
add ebp, 0x78
leave
ret

Function at 0x445210
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x49eb18], 0
push esi
jne 0x445183
call fcn.004450ae
test eax, eax
je 0x4451c6
mov eax, dword [0x49eb18]
cmp eax, 1
jne 0x4451a4
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4451c6
pop esi
ret
push eax
call dword [0x49eb20]
test eax, eax
jne 0x44520e
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4451ca
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x49eb18]
call dword [0x49eb20]
mov edi, eax
test edi, edi
je 0x4451f1
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x44520d
lea edi, [esi + 0xff0]
push esi
push dword [0x49eb18]
call dword [0x49eb1c]
add esi, 0x10
cmp esi, edi
jb 0x4451f7
mov eax, esi
pop edi
pop esi
ret
jmp 0x445170

Function at 0x4461ec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x446219
call fcn.0044e104
mov dword [eax], esi
call fcn.0044e0f1
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00446cf7
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4461f5
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x446248
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0044e117
pop ecx
call fcn.0044e0f1
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x44626f
test al, 1
je 0x44626f
test byte [esp + 0xc], 2
je 0x44626f
call fcn.0044e104
mov dword [eax], 5
call fcn.0044e0f1
mov dword [eax], 0xd
jmp 0x44623f
xor eax, eax
pop esi
ret

Function at 0x446679
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49c0b8]
jne 0x446683
repz ret
jmp fcn.00450d0b
Function at 0x446e6e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x446eab
cmp dword [ebp + 0x14], edi
je 0x446eab
cmp ecx, edi
jne 0x446eb2
call fcn.0044e0f1
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00446cf7
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x446ec6
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x446ee7
cmp ebx, 0xffffffff
je 0x446ed6
push ebx
push edi
push ecx
call fcn.00445850
add esp, 0xc
cmp esi, edi
je 0x446e93
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x446e93
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x446f03
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x446f0a
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x446ffb
test word [esi + 0xc], 0x10c
je 0x446f5e
mov eax, dword [esi + 4]
test eax, eax
je 0x446f5e
jl 0x44705c
cmp ebx, eax
mov edi, ebx
jb 0x446f2f
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x447003
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0044629f
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x446ff3
cmp ebx, dword [ebp - 0xc]
jb 0x446fcb
cmp dword [ebp - 0xc], 0
je 0x446f88
mov ecx, bind
xor edx, edx
cmp ebx, ecx
jbe 0x446f7d
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x446f84
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x446f93
mov eax, bind
cmp ebx, eax
ja 0x446f93
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x44702f
push eax
push dword [ebp - 8]
push esi
call fcn.00452aaf
pop ecx
push eax
call fcn.004529b2
add esp, 0xc
test eax, eax
je 0x44706e
cmp eax, 0xffffffff
je 0x44705c
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x446ff3
push esi
call fcn.004522d1
cmp eax, 0xffffffff
pop ecx
je 0x447060
cmp dword [ebp - 4], 0
je 0x44702f
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x446f12
mov eax, dword [ebp + 0x14]
jmp 0x446ead
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x44701a
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00445850
add esp, 0xc
call fcn.0044e0f1
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x446ea3
cmp dword [ebp + 0xc], 0xffffffff
je 0x447045
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00445850
add esp, 0xc
call fcn.0044e0f1
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x446ea3
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x446ead
or dword [esi + 0xc], 0x10
jmp 0x447060
Function at 0x44d23e
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x49c0c8]
je 0x44d259
inc edi
cmp edi, 0x17
jb 0x44d24a
cmp edi, 0x17
jae 0x44d3d9
push ebp
push 3
call fcn.0045a540
cmp eax, 1
pop ecx
je 0x44d3a5
push 3
call fcn.0045a540
test eax, eax
pop ecx
jne 0x44d28d
cmp dword [0x49c0b4], 1
je 0x44d3a5
cmp ebx, 0xfc
je 0x44d3d8
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x49eb48
push ebp
call fcn.00450e7f
add esp, 0xc
test eax, eax
je 0x44d2c3
push esi
push esi
push esi
push esi
push esi
call fcn.00446bfb
add esp, 0x14
push 0x104
mov esi, 0x49eb61
push esi
push 0
mov byte [0x49ec65], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44d307
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00450e7f
add esp, 0xc
test eax, eax
je 0x44d307
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00446bfb
add esp, 0x14
push esi
call fcn.004457c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x44d34c
push esi
call fcn.004457c0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x49ee5c
push 0x47f05c
sub ecx, eax
push ecx
push eax
call fcn.00455956
add esp, 0x14
test eax, eax
je 0x44d34c
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00446bfb
add esp, 0x14
jmp 0x44d34e
xor esi, esi
push 0x47f058
push ebx
push ebp
call fcn.0045589a
add esp, 0xc
test eax, eax
je 0x44d36e
push esi
push esi
push esi
push esi
push esi
call fcn.00446bfb
add esp, 0x14
push dword [edi*8 + 0x49c0cc]
push ebx
push ebp
call fcn.0045589a
add esp, 0xc
test eax, eax
je 0x44d390
push esi
push esi
push esi
push esi
push esi
call fcn.00446bfb
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0045a383
add esp, 0xc
jmp 0x44d3d8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x44d3d8
cmp ebp, 0xffffffff
je 0x44d3d8
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x49c0cc]
push dword [esi]
call fcn.004457c0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x45a383
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0044d4f1
xor ebx, ebx
cmp dword [0x49f5e8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x45a459
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x45a539
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x45a539
push eax
call fcn.0044d483
mov dword [esp], 0x4804c0
push edi
mov dword [0x49f5e8], eax
call esi
push eax
call fcn.0044d483
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x49f5ec], eax
call esi
push eax
call fcn.0044d483
mov dword [0x49f5f0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0044de43
test eax, eax
pop ecx
pop ecx
je 0x45a427
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00446bfb
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x45a459
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0044d483
cmp eax, ebx
pop ecx
mov dword [0x49f5f8], eax
je 0x45a459
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044d483
pop ecx
mov dword [0x49f5f4], eax
mov eax, dword [0x49f5f4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x45a4de
cmp dword [0x49f5f8], ecx
je 0x45a4de
push eax
call fcn.0044d4fa
push dword [0x49f5f8]
mov esi, eax
call fcn.0044d4fa
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x45a4de
cmp edi, ebx
je 0x45a4de
call esi
cmp eax, ebx
je 0x45a4ab
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45a4ab
test byte [ebp - 0x18], 1
jne 0x45a4de
lea eax, [ebp - 0x10]
push eax
call fcn.0044de7a
test eax, eax
pop ecx
je 0x45a4c6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00446bfb
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x45a4d5
or dword [ebp + 0x10], 0x200000
jmp 0x45a519
or dword [ebp + 0x10], 0x40000
jmp 0x45a519
mov eax, dword [0x49f5ec]
cmp eax, dword [ebp - 8]
je 0x45a519
push eax
call fcn.0044d4fa
cmp eax, ebx
pop ecx
je 0x45a519
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x45a519
mov eax, dword [0x49f5f0]
cmp eax, dword [ebp - 8]
je 0x45a519
push eax
call fcn.0044d4fa
cmp eax, ebx
pop ecx
je 0x45a519
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49f5e8]
call fcn.0044d4fa
cmp eax, ebx
pop ecx
je 0x45a539
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45a53b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x461c90
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x49c0b8]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x461ce0
mov ax, word [esp]
cmp al, 2
jne 0x461cda
cmp ah, al
jne 0x461cda
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00446679
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.00446679
add esp, 0x194
ret
Function at 0x46b9f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x46ba22
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0x39
add eax, 0xffffffff
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x46bb80
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x140]
test ecx, ecx
je 0x46bb9b
mov edx, dword [esi + 0xe4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x46bbcf
cmp eax, 2
jg 0x46bbcf
mov ecx, dword [esi + 0xe0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x481e80]
push 2
push edx
call fcn.004478f8
mov eax, dword [esi + 0xe0]
push eax
push 1
push edi
push ebx
call fcn.004478f8
add esp, 0x20
xor eax, eax
ret

Function at 0x46be00
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [edi + eax*4 + 0xd4]
push esi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46be45
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x46be2b
xor eax, eax
pop esi
ret
push eax
push edi
call fcn.00476450
push eax
mov eax, dword [edi]
push str.Send_failure:__s
push eax
call fcn.0046bd60
add esp, 0x14
mov eax, esi
pop esi
ret
Function at 0x46c4b0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
movzx eax, byte [esi + 0x286]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x46c4f4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00476450
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0046bcd0
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0046bcd0
add esp, 8
pop esi
pop ecx
ret
Function at 0x46c940
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x458]
cmp eax, 0xffffffff
je 0x46c9a6
mov ecx, dword [ecx + 0x44c]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x46c9a6
mov ecx, dword [esp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x46c96c
mov dword [ecx], eax
mov ecx, dword [eax + 0xd4]
push esi
mov esi, dword [esp + 0xc]
mov dword [esi], ecx
cmp byte [eax + 0xdc], 0
jne 0x46c99c
mov eax, dword [eax + 0xd4]
push 2
push 1
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x46c9a2
mov dword [esi], 0xffffffff
pop esi
xor eax, eax
ret
mov ecx, dword [esp + 8]
mov dword [ecx], 0xffffffff
xor eax, eax
ret
Function at 0x46e400
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push ebx
push esi
push 1
push 0x24
call dword [0x49d580]
xor ebx, ebx
mov esi, eax
add esp, 8
cmp esi, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
jne 0x46e432
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
mov eax, dword [edi + 0x2bc]
push ebp
lea ebp, [edi + 0x2bc]
push eax
mov dword [esp + 0x10], ebp
call fcn.00462f20
mov ecx, dword [esp + 0x20]
push ecx
call dword [0x49d57c]
add esp, 8
cmp eax, ebx
mov dword [ebp], eax
jne 0x46e479
push esi
call dword [0x49d574]
add esp, 4
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
mov edx, dword [esp + 0x20]
push ebx
push 1
mov dword [edi + 0x2c0], edx
mov byte [edi + 0x2c8], bl
mov dword [edi + 0x2cc], ebx
mov dword [edi + 0x2c4], ebx
mov dword [edi + 0x2d0], esi
push ebx
mov dword [esi + 0xc], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x46e4b6
push ebp
jmp 0x46e509
mov ebp, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x46e504
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [esi + 0x1c], eax
jne 0x46e4e1
mov ecx, dword [esp + 0xc]
push ecx
jmp 0x46e509
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x20], eax
jne 0x46e4f6
mov edx, dword [esp + 0xc]
push edx
jmp 0x46e509
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x18], eax
jne 0x46e522
mov eax, dword [esp + 0xc]
push eax
call fcn.0046e320
add esp, 4
push 0xb
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
lea ecx, [esi + 4]
push ecx
push ebx
push edi
push 0x46e250
push ebx
push ebx
call fcn.0044aef9
add esp, 0x18
cmp eax, ebx
mov dword [esi], eax
jne 0x46e561
call fcn.0044e0f1
mov edx, dword [eax]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0xc]
push eax
call fcn.0046e320
add esp, 4
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0x18]
push edx
push 2
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push ebx
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
pop ebp
mov dword [esi + 0xc], eax
pop esi
mov al, 1
pop ebx
add esp, 0xc
ret
Function at 0x46e5a0
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ecx, dword [edi]
mov eax, dword [ecx + 0x174]
test eax, eax
mov esi, dword [edi + 0x2d0]
mov dword [esp + 0x14], ecx
jne 0x46e5cd
mov eax, dword [ecx + 0x170]
test eax, eax
jne 0x46e5cd
mov eax, 0x493e0
push eax
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x10]
push ecx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [esi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov eax, dword [esi + 0x14]
push eax
mov dword [esi + 0x10], 0
call ebx
test ebp, ebp
mov dword [esi + 0x14], 0
mov bl, 1
jne 0x46e629
mov ecx, dword [esi]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x46e67f
mov edx, dword [esi]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ebp, [esi + 8]
mov byte [edi + 0x2c8], bl
mov dword [ebp], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x46e649
mov edx, dword [edi + 0x2c4]
mov dword [eax], edx
xor esi, esi
cmp dword [edi + 0x2c4], esi
jne 0x46e730
mov ebp, dword [ebp]
cmp ebp, 0x1b
jne 0x46e69b
push ebp
mov esi, ebp
call fcn.00475b10
push eax
mov eax, dword [esp + 0x1c]
push str.Could_not_resolve_host:__s
push eax
call fcn.0046bd60
add esp, 0x10
jmp 0x46e730
mov eax, dword [edi + 0x2cc]
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esi]
lea ebp, [esi + 8]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
jmp 0x46e639
cmp byte [edi + 0x2c8], 0
je 0x46e701
cmp byte [edi + 0x12b], 0
mov ecx, dword [edi + 0x2cc]
push ecx
push edi
je 0x46e6db
call fcn.00476450
mov edx, dword [edi + 0xa0]
push eax
mov eax, dword [esp + 0x20]
push edx
push str.Could_not_resolve_proxy:__s___s
push eax
call fcn.0046bd60
add esp, 0x18
mov esi, 5
jmp 0x46e730
call fcn.00476450
mov edx, dword [edi + 0x8c]
push eax
mov eax, dword [esp + 0x20]
push edx
push str.Could_not_resolve_host:__s___s
push eax
call fcn.0046bd60
add esp, 0x18
mov esi, 6
jmp 0x46e730
cmp ebp, 0xffffffff
je 0x46e712
cmp dword [edi + 0x2cc], 0x2afc
jne 0x46e72b
mov ecx, dword [edi + 0x8c]
mov edx, dword [esp + 0x14]
push ecx
push str.Resolving_host_timed_out:__s
push edx
call fcn.0046bd60
add esp, 0xc
mov esi, 0x1c
lea eax, [edi + 0x2bc]
push eax
call fcn.0046e320
add esp, 4
cmp dword [edi + 0x2c4], 0
mov eax, esi
jne 0x46e750
mov byte [edi + 0x128], bl
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x46e800
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
mov ebx, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push esi
push 2
mov dword [eax], 0
call fcn.00476670
add esp, 0xc
test eax, eax
jle 0x46e844
mov edx, dword [esp + 0x18]
push edx
push esi
lea eax, [esp + 0x18]
push eax
push 2
call fcn.0046e070
add esp, 0x10
pop edi
pop esi
pop ebx
ret
push ebp
mov ebp, dword [esp + 0x1c]
push ebp
push esi
call fcn.0046e400
add esp, 8
test al, al
je 0x46e868
mov ecx, dword [esp + 0x20]
pop ebp
pop edi
pop esi
mov dword [ecx], 1
xor eax, eax
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call fcn.00476450
push eax
push esi
push str.init_resolve_thread___failed_for__s___s_n
push ebx
call fcn.0046bcd0
add esp, 0x18
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x46e8b5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00476450
push eax
push ebp
push esi
push str.gethostbyname_2__failed_for__s:_d___s_n
push ebx
call fcn.0046bcd0
add esp, 0x1c
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebp
push eax
call fcn.0046df40
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x471ac0
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x31c
push ebx
mov ebx, dword [esp + 0x324]
push ebp
mov ebp, dword [esp + 0x32c]
push esi
xor esi, esi
cmp ebx, 0xffffffff
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
jne 0x471b00
cmp ebp, ebx
jne 0x471b00
mov eax, dword [esp + 0x334]
call fcn.00471aa0
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
push edi
mov edi, dword [esp + 0x338]
cmp edi, esi
jle 0x471b1b
mov esi, edi
call fcn.00473280
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor eax, eax
xor ecx, ecx
or edx, 0xffffffff
cmp ebx, 0xffffffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x124], eax
je 0x471b4f
mov ecx, 1
mov dword [esp + 0x128], ebx
mov dword [esp + 0x124], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ecx
mov edx, ebx
cmp ebp, 0xffffffff
mov dword [esp + 0x228], eax
je 0x471b96
test ecx, ecx
mov dword [esp + 0x22c], ebp
mov dword [esp + 0x228], 1
jbe 0x471b7e
cmp dword [esp + eax*4 + 0x24], ebp
je 0x471b7e
add eax, 1
cmp eax, ecx
jb 0x471b71
cmp eax, ecx
jne 0x471b90
cmp ecx, 0x40
jae 0x471b90
mov dword [esp + eax*4 + 0x24], ebp
add dword [esp + 0x20], 1
cmp ebp, edx
jbe 0x471b96
mov edx, ebp
xor ebx, ebx
test edi, edi
setl bl
lea eax, [esp + 0x18]
lea ebp, [edx + 1]
sub ebx, 1
and ebx, eax
lea esp, [esp]
xor eax, eax
cmp edi, eax
jle 0x471be1
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
mov ecx, esi
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [esp + 0x1c], ecx
jmp 0x471beb
jne 0x471beb
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x130]
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x471c55
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x471c1e
cmp eax, 0x2714
jne 0x471c59
test edi, edi
jle 0x471bb0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.00473280
push edx
push eax
call fcn.004732b0
mov esi, edi
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x471bb0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
test eax, eax
jge 0x471c67
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
jne 0x471c76
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret
mov edi, dword [esp + 0x330]
xor esi, esi
cmp edi, 0xffffffff
je 0x471cad
lea ecx, [esp + 0x124]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x471c9b
mov esi, 1
lea edx, [esp + 0x20]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x471cad
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x471ce0
lea eax, [esp + 0x228]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x471cce
or esi, 2
lea ecx, [esp + 0x20]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x471ce0
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret