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

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xa4
mov eax, dword [0x561be8]
push ebx
xor ebx, ebx
cmp dword [ebp + 0x74], ebx
push esi
mov dword [ebp + 0x68], eax
push edi
je 0x449b54
mov edi, dword [ebp + 0x78]
cmp edi, ebx
je 0x449b54
cmp dword [ebp + 0x7c], ebx
je 0x449b54
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.unknown_Windows_version
push dword [ebp + 0x74]
call esi
lea eax, [ebp - 0x2c]
push eax
mov dword [edi], ebx
mov dword [ebp - 0x2c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x449b54
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x24]
and ebx, 0xffff
push ebx
push eax
push ecx
push str._u._u._u
push dword [ebp + 0x7c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
cmp dword [ebp - 0x38], 1
jne 0x449a9e
cmp dword [ebp - 0x34], 4
jne 0x449b4f
cmp dword [ebp - 0x30], 0xa
jae 0x449a1f
mov eax, 0x3b6
cmp ebx, eax
jne 0x4499df
push str.Windows_95
push dword [ebp + 0x74]
call esi
mov dword [edi], 1
jmp 0x449b4f
jbe 0x4499fe
cmp ebx, 0x438
ja 0x449a06
push str.Windows_95_SP1
push dword [ebp + 0x74]
call esi
mov dword [edi], 2
jmp 0x449b4f
cmp ebx, 0x438
jbe 0x449a1b
push str.Windows_95_OSR2
push dword [ebp + 0x74]
call esi
mov dword [edi], 3
jmp 0x449b4f
cmp dword [ebp - 0x30], 0xa
jne 0x449a7f
mov eax, 0x7ce
cmp ebx, eax
jne 0x449a3f
push str.Windows_98
push dword [ebp + 0x74]
call esi
mov dword [edi], 4
jmp 0x449b4f
jbe 0x449a5e
cmp ebx, 0x887
jae 0x449a6a
push str.Windows_98_SP1
push dword [ebp + 0x74]
call esi
mov dword [edi], 5
jmp 0x449b4f
cmp ebx, 0x887
jb 0x449b4f
push str.Windows_98_SE
push dword [ebp + 0x74]
call esi
mov dword [edi], 6
jmp 0x449b4f
cmp dword [ebp - 0x30], 0x5a
jne 0x449b4f
push str.Windows_ME
push dword [ebp + 0x74]
call esi
mov dword [edi], 7
jmp 0x449b4f
cmp dword [ebp - 0x38], 2
jne 0x449b39
cmp dword [ebp - 0x34], 3
jne 0x449acd
cmp dword [ebp - 0x30], 0x33
jne 0x449b4f
push str.Windows_NT_3.51
push dword [ebp + 0x74]
call esi
mov dword [edi], 0x65
jmp 0x449b4f
cmp dword [ebp - 0x34], 4
jne 0x449aeb
cmp dword [ebp - 0x30], 0
jne 0x449b4f
push str.Windows_NT_4
push dword [ebp + 0x74]
call esi
mov dword [edi], 0x66
jmp 0x449b4f
cmp dword [ebp - 0x34], 5
jne 0x449b4f
cmp dword [ebp - 0x30], 0
jne 0x449b09
push str.Windows_2000
push dword [ebp + 0x74]
call esi
mov dword [edi], 0x67
jmp 0x449b4f
cmp dword [ebp - 0x30], 1
jne 0x449b21
push str.Windows_XP
push dword [ebp + 0x74]
call esi
mov dword [edi], 0x68
jmp 0x449b4f
cmp dword [ebp - 0x30], 2
jne 0x449b4f
push str.Windows_2003_Server
push dword [ebp + 0x74]
call esi
mov dword [edi], 0x69
jmp 0x449b4f
cmp dword [ebp - 0x38], 3
jne 0x449b4f
push str.Windows_CE
push dword [ebp + 0x74]
call esi
mov dword [edi], 0xc9
xor eax, eax
inc eax
jmp 0x449b56
xor eax, eax
mov ecx, dword [ebp + 0x68]
pop edi
pop esi
pop ebx
call fcn.004a2d97
add ebp, 0x6c
leave
ret
Function at 0x449d5e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 4]
lea eax, [esi + 0x28]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x449e58
push ebx
lea ebx, [edi + 1]
push ebx
call fcn.00507edd
push ebx
push 0
push eax
mov dword [esi], eax
call fcn.004a2db0
add esp, 0x10
push dword [esi]
lea eax, [esi + 0x28]
push edi
push dword [ebp - 4]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
pop ebx
je 0x449e58
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
call fcn.00449c70
test eax, eax
je 0x449e58
mov eax, dword [ebp - 0x30]
mov ecx, eax
shr ecx, 0x10
mov word [esi + 0xa], ax
mov eax, dword [ebp - 0x2c]
mov word [esi + 8], cx
mov ecx, eax
mov word [esi + 0xe], ax
mov eax, dword [ebp - 0x28]
shr ecx, 0x10
mov word [esi + 0xc], cx
mov ecx, eax
mov word [esi + 0x12], ax
mov eax, dword [ebp - 0x24]
shr ecx, 0x10
mov word [esi + 0x16], ax
mov word [esi + 0x10], cx
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x24], eax
shr ecx, 0x10
lea eax, [esi + 0x230]
push eax
mov word [esi + 0x14], cx
push 0x530bdc
mov ecx, esi
call fcn.00449cb0
lea eax, [esi + 0x640]
push eax
push 0x530bcc
mov ecx, esi
call fcn.00449cb0
lea eax, [esi + 0x438]
push eax
push 0x530bc0
mov ecx, esi
call fcn.00449cb0
xor eax, eax
inc eax
jmp 0x449e5a
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x44a0b3
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1ec]
sub esp, 0x26c
mov eax, dword [0x561be8]
push esi
push edi
mov edi, dword [ebp + 0x1f4]
xor esi, esi
cmp dword [edi + 0x14], esi
mov dword [ebp + 0x1e8], eax
je 0x44a1e5
push ebx
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20]
push 0x5c
push eax
call fcn.004a5c52
cmp eax, esi
pop ecx
pop ecx
je 0x44a106
mov word [eax + 2], si
push ebx
lea eax, [ebp - 0x20]
push str.DebugMessage.exe
push eax
call fcn.004a5c15
add esp, 0xc
cmp dword [edi + 0x18], 0x10
lea eax, [edi + 4]
mov word [ebp + 0x1e6], si
mov dword [ebp - 0x28], eax
jb 0x44a12d
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push esi
push 0xffffffffffffffff
push eax
push esi
mov ebx, 0xfde9
push ebx
call edi
cmp eax, esi
mov dword [ebp - 0x2c], eax
je 0x44a1e4
add eax, eax
push eax
call fcn.00507edd
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x1f4]
cmp dword [eax + 0x18], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
jb 0x44a169
mov eax, dword [eax]
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
push 0xffffffffffffffff
push eax
push esi
push ebx
call edi
test eax, eax
je 0x44a1db
push 0x44
pop edi
push edi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.004a2db0
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x80], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x44a1ca
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x3c]
call esi
jmp 0x44a1db
push 0x10
push str.Fatal_error
push dword [ebp - 0x24]
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x24]
call fcn.00507ed8
pop ecx
pop ebx
mov ecx, dword [ebp + 0x1e8]
pop edi
pop esi
call fcn.004a2d97
add ebp, 0x1ec
leave
ret

Function at 0x44a682
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x566db4]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x44a69b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x566db4], ebx
mov eax, dword [esp + 0x10]
mov dword [0x566ca4], eax
mov eax, dword [esp + 0xc]
cmp eax, 1
mov dword [0x566ca8], eax
je 0x44a706
push esi
push 0x104
push dword [esp + 0x10]
mov esi, 0x566cb0
push esi
call fcn.004a4287
add esp, 0xc
cmp dword [esp + 0x18], ebx
mov byte [0x566db3], bl
jne 0x44a6dd
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [0x566ca4], ebx
pop esi
jne 0x44a6ec
pop ebx
jmp fcn.0044a5b4
cmp byte [0x566dc0], bl
jne 0x44a706
push 0x566c88
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [0x566dc0], 1
pop ebx
ret
Function at 0x450700
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x450734
mov ax, word [esp]
cmp al, 2
jne 0x45072e
cmp ah, al
jne 0x45072e
xor eax, eax
add esp, 0x190
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
add esp, 0x190
ret

Function at 0x45af00
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 0x45af32
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

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

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x12c]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebx], 0
jne 0x45b5f1
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x45b5c4
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.00469d70
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.0045b2d0
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x854c], ebp
pop ebp
mov eax, edi
pop edi
pop esi
mov dword [ebx], 0x37
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x45bd70
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x108
push ebx
push ebp
mov ebp, dword [esp + 0x114]
mov eax, dword [ebp + 0x198]
test eax, eax
push esi
push edi
mov edi, dword [ebp]
mov dword [esp + 0x14], edi
jne 0x45bebc
mov esi, dword [esp + 0x120]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x45bde5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00469d70
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.0045b2d0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x9c]
push eax
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x45be2b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00469d70
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.0045b2d0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
lea ebx, [ebp + 0xc8]
lea edi, [ebp + 0x9a]
lea esi, [esp + 0x18]
call fcn.0045bd20
test eax, eax
jne 0x45be72
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00469d70
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.0045b2d0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
lea ebx, [ebp + 0xfc]
lea edi, [ebp + 0xcc]
lea esi, [esp + 0x98]
call fcn.0045bd20
test eax, eax
jne 0x45bebc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00469d70
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.0045b2d0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
push ebp
call fcn.0045bcc0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x45bed0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x2f8]
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 0x45bf13
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00469d70
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0045b210
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0045b210
add esp, 8
pop esi
pop ecx
ret
Function at 0x45bf30
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x1c], 0x4020
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x45bf79
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x45bf91
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret
Function at 0x45da80
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x20]
mov dword [esi], 0
push eax
mov byte [ebx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x20], ecx
je 0x45db26
cmp word [ecx + 8], 2
push ebp
push edi
jne 0x45daf9
cmp word [ecx + 0xa], 4
jne 0x45daf9
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x45daf9
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov ecx, dword [eax]
mov edx, dword [esp + 0x20]
push ecx
push edx
push ebx
push ebp
call fcn.0045da10
test eax, eax
mov dword [esi], eax
je 0x45db1a
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x45dad0
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov eax, dword [ecx]
push 0x400
push eax
push ebx
call fcn.004a4320
add esp, 0xc
pop edi
pop ebp
pop esi
mov byte [ebx + 0x400], 0
xor eax, eax
pop ebx
ret 0x18
pop edi
pop ebp
pop esi
mov eax, 8
pop ebx
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x45db36.11001
jmp dword [eax*4 + 0x45db5c]
pop esi
mov eax, 0x2af9
pop ebx
ret 0x18
pop esi
mov eax, 0x2afa
pop ebx
ret 0x18
pop esi
mov eax, 0x2afb
pop ebx
ret 0x18
Function at 0x45e2f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x22c
mov eax, dword [0x566ef0]
test eax, eax
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x45ddc0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x45e0b0
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.0045dd70
jne 0x45e442
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x45e438
xor eax, eax
nop
mov cl, byte [esp + eax + 0x124]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x45e350
push edi
lea edi, [esp + 0x1c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x45e366
mov edx, dword [str.ws2_32]
mov eax, dword [0x5325a0]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
lea ecx, [esp + 0x28]
mov dword [edi], edx
push ecx
mov dword [edi + 4], eax
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x45e3ad
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x45e3ff
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
nop
mov cl, byte [esp + eax + 0x134]
mov byte [esp + eax + 0x28], cl
inc eax
test cl, cl
jne 0x45e3b0
lea edi, [esp + 0x28]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x45e3c5
mov edx, dword [str.wship6]
mov eax, dword [0x532598]
lea ecx, [esp + 0x28]
mov dword [edi], edx
push ecx
mov dword [edi + 4], eax
call ebp
mov esi, eax
test esi, esi
je 0x45e434
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x45e3ff
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x45e434
xor edi, edi
mov edx, dword [esp + edi*8 + 0x10]
push edx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x45e3f6
inc edi
cmp edi, 3
jl 0x45e401
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov dword [0x5605f8], eax
mov dword [0x560600], ecx
mov dword [fcn.0045dd70], edx
pop esi
pop ebp
pop ebx
pop edi
mov dword [0x566ef0], 1
movzx eax, word [esp + 0x230]
mov eax, dword [eax*8 + 0x5605f8]
add esp, 0x22c
ret 4
Function at 0x45ea70
Capabilities:
Create udp socket

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x48
push 1
mov esi, eax
mov ebx, ecx
call dword [0x5605b8]
mov edi, eax
xor eax, eax
add esp, 8
cmp edi, eax
mov dword [esp + 0x10], 0xc
mov dword [ebx + 0x3ac], edi
je 0x45eb2f
mov dword [ebx + 0x39c], esi
mov dword [ebx + 0x3a4], eax
mov dword [ebx + 0x3a8], eax
mov dword [ebx + 0x3a0], eax
mov dword [edi], eax
mov eax, dword [esp + 0x18]
push esi
lea ebp, [edi + 0x10]
push eax
mov esi, ebp
mov dword [edi + 4], 0xffffffff
call fcn.0045e900
add esp, 8
test eax, eax
je 0x45eb2f
mov ecx, dword [ebx + 0x398]
push ecx
call fcn.00452350
mov edx, dword [esp + 0x1c]
push edx
call dword [0x5605b4]
add esp, 8
test eax, eax
mov dword [ebx + 0x398], eax
je 0x45eb2f
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x45eb2f
push ebp
push 0x45e9a0
call fcn.0046a640
add esp, 8
test eax, eax
mov dword [edi], eax
jne 0x45eb51
call fcn.004a2ce1
mov eax, dword [eax]
mov dword [esp + 0x10], eax
add ebx, 0x398
push ebx
call fcn.0045ea10
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x465960
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x320
push ebp
mov ebp, dword [esp + 0x328]
push esi
xor esi, esi
cmp ebp, 0xffffffff
push edi
mov edi, dword [esp + 0x334]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
jne 0x4659c2
cmp edi, ebp
jne 0x4659c2
mov eax, dword [esp + 0x338]
cmp eax, esi
je 0x4659b6
jge 0x4659af
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x320
ret
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x320
ret
push ebx
mov ebx, dword [esp + 0x33c]
cmp ebx, esi
jle 0x4659dd
mov esi, ebx
call fcn.00467320
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor ecx, ecx
xor eax, eax
or edx, 0xffffffff
cmp ebp, 0xffffffff
mov dword [esp + 0x24], ecx
mov dword [esp + 0x128], eax
je 0x465a11
mov ecx, 1
mov dword [esp + 0x12c], ebp
mov dword [esp + 0x128], ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ecx
mov edx, ebp
cmp edi, 0xffffffff
mov dword [esp + 0x22c], eax
je 0x465a57
test ecx, ecx
mov dword [esp + 0x230], edi
mov dword [esp + 0x22c], 1
jbe 0x465a3e
cmp dword [esp + eax*4 + 0x28], edi
je 0x465a3e
inc eax
cmp eax, ecx
jb 0x465a33
cmp eax, ecx
jne 0x465a4f
cmp ecx, 0x40
jae 0x465a4f
mov dword [esp + eax*4 + 0x28], edi
inc dword [esp + 0x24]
xor eax, eax
cmp edi, edx
jbe 0x465a57
mov edx, edi
xor ecx, ecx
cmp ebx, eax
setl cl
lea edi, [esp + 0x18]
dec ecx
and ecx, edi
inc edx
mov ebp, ecx
mov dword [esp + 0x20], edx
jmp 0x465a70
xor eax, eax
cmp ebx, eax
jle 0x465a8a
mov eax, esi
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [esp + 0x1c], edx
jmp 0x465a90
jne 0x465a94
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
push ebp
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x134]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
cmp edi, 0xffffffff
jne 0x465af6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x465acd
cmp eax, 0x2714
jne 0x465af6
test ebx, ebx
jle 0x465a6e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.00467320
push edx
push eax
call fcn.00467340
mov esi, ebx
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x465a6e
test edi, edi
pop ebx
jl 0x4659a2
je 0x4659b6
mov edi, dword [esp + 0x330]
xor esi, esi
cmp edi, 0xffffffff
je 0x465b3c
lea edx, [esp + 0x124]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x465b2a
mov esi, 1
lea eax, [esp + 0x20]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x465b3c
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x465b6f
lea ecx, [esp + 0x228]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x465b5d
or esi, 2
lea edx, [esp + 0x20]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x465b6f
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x320
ret
Function at 0x4666c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [eax], 0
call fcn.00467320
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x128]
push ecx
mov ecx, dword [esi + 0x124]
push ecx
push edx
push eax
call fcn.00467340
mov ebx, dword [esp + 0x40]
add esp, 0x10
cmp eax, ebx
jg 0x466780
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
lea ebx, [ebx]
mov edx, ebx
sub edx, eax
mov eax, dword [esp + 0x20]
push edx
push 0xffffffffffffffff
push eax
call fcn.00465960
add esp, 0xc
test eax, eax
jle 0x4667a3
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
push edx
call fcn.0045af00
add esp, 0x10
cmp eax, 0x51
je 0x46675f
test eax, eax
jne 0x4667a6
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x46678d
test eax, eax
je 0x4667a3
mov ecx, dword [esp + 0x10]
sub edi, eax
add ebp, eax
add ecx, eax
mov dword [esp + 0x10], ecx
call fcn.00467320
mov ecx, dword [esi + 0x128]
push ecx
mov ecx, dword [esi + 0x124]
push ecx
push edx
push eax
call fcn.00467340
add esp, 0x10
cmp eax, ebx
jle 0x466710
pop edi
pop esi
pop ebp
mov eax, 0x1c
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
add eax, edx
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 8
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x468060
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x46806f
jmp dword [ecx*4 + 0x4680c4]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret

Function at 0x468240
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
mov eax, dword [esp + 0x108]
push eax
call fcn.004a7403
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x46828a
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov al, byte [esp]
test al, al
je 0x46828a
lea edx, [esp]
push edx
call dword [0x5605b4]
add esp, 4
add esp, 0x104
ret
xor eax, eax
add esp, 0x104
ret