joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4946d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b623
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5bf094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov esi, 0x104
push esi
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], ebx
call fcn.00404000
mov edi, dword [ebp - 0x88]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
jb 0x494765
cmp eax, ebx
je 0x4947ae
add esi, esi
push esi
lea ecx, [ebp - 0x88]
call fcn.00404000
mov edi, dword [ebp - 0x88]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
jae 0x494741
mov esi, dword [ebp - 0x78]
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], cx
push edi
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00404090
cmp edi, ebx
je 0x494790
push edi
call fcn.004b8946
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b92b7
mov esp, ebp
pop ebp
ret
push 1
push str.mailru::path::tmp
push str.Path.cpp
push 0x1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x74]
call fcn.00403e00
push 0x5a15c8
lea edx, [ebp - 0x74]
push edx
call fcn.004b9346
int3

Function at 0x494910
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b69f
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5bf094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x208
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
call fcn.00404000
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x84]
xor eax, eax
cmp byte [ebp + 0x10], bl
mov dword [ebp - 4], ebx
setne al
push eax
push ecx
push edi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4949b8
push 1
push str.mailru::path::special
push str.Path.cpp
push 0x42
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x74]
call fcn.00403e00
push 0x5a15c8
lea edx, [ebp - 0x74]
push edx
call fcn.004b9346
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
push edi
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00404090
cmp edi, ebx
je 0x4949e0
push edi
call fcn.004b8946
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b92b7
mov esp, ebp
pop ebp
ret
Function at 0x494d00
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b7be
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5bf094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x78], esi
mov ebx, 7
xor eax, eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], esi
call fcn.00404090
mov dword [ebp - 4], 1
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
push 0x20019
push reloc.WS2_32.dll_accept
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.00404ef0
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], 4
jb 0x494d97
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b8946
add esp, 4
xor ecx, ecx
push 0xd
xor eax, eax
mov word [ebp - 0x48], cx
push 0x580f94
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esi
call fcn.00403510
xor edx, edx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], dx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 6
call fcn.00404b10
xor ecx, ecx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], esi
mov word [edi], cx
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 8
jb 0x494df9
mov eax, dword [eax]
push eax
mov ecx, edi
call fcn.00404090
cmp dword [ebp - 0x50], 8
jb 0x494e13
mov edx, dword [ebp - 0x64]
push edx
call fcn.004b8946
add esp, 4
xor eax, eax
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], esi
mov word [ebp - 0x64], ax
jb 0x494e31
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b8946
add esp, 4
cmp dword [ebp - 0x34], 8
jb 0x494e43
mov edx, dword [ebp - 0x48]
push edx
call fcn.004b8946
add esp, 4
xor eax, eax
mov word [ebp - 0x48], ax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esi
cmp eax, esi
je 0x494e5d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b92b7
mov esp, ebp
pop ebp
ret
Function at 0x494e80
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b823
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5bf094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x78], esi
mov ebx, 7
xor eax, eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], esi
call fcn.00404090
mov dword [ebp - 4], 1
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
push 0x20019
push reloc.WS2_32.dll_accept
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.00404ef0
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], 4
jb 0x494f17
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b8946
add esp, 4
xor ecx, ecx
push ebx
xor eax, eax
mov word [ebp - 0x48], cx
push str.AppData
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esi
call fcn.00403510
xor edx, edx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], dx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 6
call fcn.00404b10
xor ecx, ecx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], esi
mov word [edi], cx
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 8
jb 0x494f78
mov eax, dword [eax]
push eax
mov ecx, edi
call fcn.00404090
cmp dword [ebp - 0x50], 8
jb 0x494f92
mov edx, dword [ebp - 0x64]
push edx
call fcn.004b8946
add esp, 4
xor eax, eax
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], esi
mov word [ebp - 0x64], ax
jb 0x494fb0
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b8946
add esp, 4
cmp dword [ebp - 0x34], 8
jb 0x494fc2
mov edx, dword [ebp - 0x48]
push edx
call fcn.004b8946
add esp, 4
xor eax, eax
mov word [ebp - 0x48], ax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esi
cmp eax, esi
je 0x494fdc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b92b7
mov esp, ebp
pop ebp
ret
Function at 0x4967e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56bb15
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x5bf094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push ecx
push eax
mov eax, dword [esi]
push eax
mov dword [ebp - 0x84], edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x49685d
push 1
push str.mailru::resource::read
push str.Resource.cpp
push 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x74]
call fcn.00403e00
push 0x5a15c8
lea ecx, [ebp - 0x74]
push ecx
call fcn.004b9346
mov edx, dword [esi]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x80], eax
cmp eax, ebx
jne 0x496899
push 1
push str.mailru::resource::read
push str.Resource.cpp
push 0x1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x74]
call fcn.00403e00
push 0x5a15c8
lea eax, [ebp - 0x74]
push eax
call fcn.004b9346
lea ecx, [ebp - 0x80]
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x9c], edx
mov eax, dword [esi]
push edi
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, ebx
jne 0x4968e6
push 1
push str.mailru::resource::read
push str.Resource.cpp
push 0x24
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x74]
call fcn.00403e00
push 0x5a15c8
lea ecx, [ebp - 0x74]
push ecx
call fcn.004b9346
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x78], eax
cmp eax, ebx
jne 0x496922
push 1
push str.mailru::resource::read
push str.Resource.cpp
push 0x29
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x74]
call fcn.00403e00
push 0x5a15c8
lea eax, [ebp - 0x74]
push eax
call fcn.004b9346
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x98], ecx
push esi
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
call fcn.00412010
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x94]
push esi
push edx
push eax
mov byte [ebp - 4], 1
call fcn.004b89c0
add esp, 0xc
lea ecx, [ebp - 0x94]
push ecx
mov ecx, dword [ebp - 0x84]
call fcn.004973b0
lea ecx, [ebp - 0x94]
call fcn.004026b0
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b92b7
mov esp, ebp
pop ebp
ret 0xc
Function at 0x499da0
Capabilities:
Hash data with crc32

Disassembly:
xor edx, edx
add ecx, 0x24
mov eax, edx
shr eax, 1
test dl, 1
je 0x499db3
xor eax, 0xedb88320
test al, 1
je 0x499dc0
shr eax, 1
xor eax, 0xedb88320
jmp 0x499dc2
shr eax, 1
test al, 1
je 0x499dcf
shr eax, 1
xor eax, 0xedb88320
jmp 0x499dd1
shr eax, 1
test al, 1
je 0x499dde
shr eax, 1
xor eax, 0xedb88320
jmp 0x499de0
shr eax, 1
test al, 1
je 0x499ded
shr eax, 1
xor eax, 0xedb88320
jmp 0x499def
shr eax, 1
test al, 1
je 0x499dfc
shr eax, 1
xor eax, 0xedb88320
jmp 0x499dfe
shr eax, 1
test al, 1
je 0x499e0b
shr eax, 1
xor eax, 0xedb88320
jmp 0x499e0d
shr eax, 1
test al, 1
je 0x499e1a
shr eax, 1
xor eax, 0xedb88320
jmp 0x499e1c
shr eax, 1
mov dword [ecx], eax
inc edx
add ecx, 4
cmp edx, 0x100
jb 0x499da5
ret

Function at 0x49c5b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
or eax, 0xffffffff
push esi
mov esi, dword [ebp + 0xc]
test edx, edx
je 0x49c5d8
push ebx
push edi
movzx edi, byte [esi]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [ecx + edi*4 + 0x24]
inc esi
dec edx
jne 0x49c5c3
pop edi
pop ebx
not eax
xor ecx, ecx
cmp eax, dword [ebp + 8]
pop esi
sete cl
mov eax, ecx
pop ebp
ret 0xc
Function at 0x4a3e80
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0xffffffffffffffff
push 0
mov esi, ecx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
lea edx, [ebp - 8]
push edx
push 2
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x5c2788
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
test eax, eax
je 0x4a3ed1
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
push edx
push method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_56
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a4020
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x4a4044
mov esi, 0x2719
call fcn.0046ab70
mov ecx, dword [ebp + 0x14]
mov dword [ecx], esi
mov dword [ecx + 4], eax
or eax, 0xffffffff
pop esi
pop ebp
ret
push ebx
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
call fcn.0046ab70
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [ebp + 0x14]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebx, ebx
jne 0x4a4084
xor edi, edi
call fcn.0046ab70
mov dword [esi], edi
mov dword [esi + 4], eax
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
push 0
push 0
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call fcn.0046ab70
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [ebp + 0x18]
mov dword [esi], eax
mov dword [esi + 4], edi
cmp eax, 0x40
jne 0x4a415f
mov edi, 0x2746
jmp 0x4a416b
cmp eax, 0x4d2
jne 0x4a4175
mov edi, 0x274d
call fcn.0046ab70
mov dword [esi + 4], eax
mov dword [esi], edi
test ebx, ebx
je 0x4a4183
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
call fcn.0046ab70
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a4340
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
test edx, edx
jne 0x4a43a8
test edi, edi
jne 0x4a43a8
test esi, esi
jne 0x4a43a8
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4a43c9
mov eax, 0x10624dd3
imul dword [ecx + 4]
mov ecx, dword [ecx]
imul ecx, ecx, 0x3e8
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
jne 0x4a438c
mov eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
call fcn.0046ab70
mov ecx, dword [ebp + 0x1c]
pop edi
mov dword [ecx], esi
mov dword [ecx + 4], eax
xor eax, eax
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4a43c9
cmp dword [ecx], 0
jne 0x4a43c9
mov eax, dword [ecx + 4]
test eax, eax
jle 0x4a43c9
cmp eax, 0x3e8
jge 0x4a43c9
mov dword [ecx + 4], 0x3e8
push ebx
push ecx
push esi
push edi
push edx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.0046ab70
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [ebp + 0x1c]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebx, ebx
js 0x4a43ff
xor edi, edi
call fcn.0046ab70
mov dword [esi], edi
mov dword [esi + 4], eax
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x4a4410
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5bf094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
jne 0x4a4457
mov edi, 0x2719
call fcn.0046ab70
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b92b7
mov esp, ebp
pop ebp
ret
xor eax, eax
push eax
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x108], 1
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
and bl, 1
movzx eax, bl
neg eax
sbb eax, eax
lea ecx, [ebp - 0x110]
and eax, ecx
push eax
push 0
push 0
lea edx, [ebp - 0x108]
push edx
push edi
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x114], eax
call fcn.0046ab70
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 4], edi
mov edi, dword [ebp - 0x114]
mov dword [esi], eax
test edi, edi
jne 0x4a4538
test bl, bl
je 0x4a4500
mov ebx, 0x2733
call fcn.0046ab70
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], ebx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, edi
pop edi
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b92b7
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x118], 0
call fcn.0046ab70
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x118]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, edi
pop edi
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b92b7
mov esp, ebp
pop ebp
ret
jle 0x4a4546
xor ebx, ebx
call fcn.0046ab70
mov dword [esi], ebx
mov dword [esi + 4], eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b92b7
mov esp, ebp
pop ebp
ret
Function at 0x4a4560
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5bf094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
jne 0x4a45a7
mov edi, 0x2719
call fcn.0046ab70
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b92b7
mov esp, ebp
pop ebp
ret
xor eax, eax
push eax
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x108], 1
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
and bl, 1
movzx eax, bl
neg eax
sbb eax, eax
lea ecx, [ebp - 0x110]
and eax, ecx
push eax
push 0
lea edx, [ebp - 0x108]
push edx
push 0
push edi
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x114], eax
call fcn.0046ab70
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 4], edi
mov edi, dword [ebp - 0x114]
mov dword [esi], eax
test edi, edi
jne 0x4a4688
test bl, bl
je 0x4a4650
mov ebx, 0x2733
call fcn.0046ab70
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], ebx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, edi
pop edi
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b92b7
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x118], 0
call fcn.0046ab70
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x118]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, edi
pop edi
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b92b7
mov esp, ebp
pop ebp
ret
jle 0x4a4696
xor ebx, ebx
call fcn.0046ab70
mov dword [esi], ebx
mov dword [esi + 4], eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b92b7
mov esp, ebp
pop ebp
ret

Function at 0x4a46b0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5bf094]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
jne 0x4a46f2
mov edi, 0x2719
call fcn.0046ab70
mov dword [esi], edi
mov dword [esi + 4], eax
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b92b7
mov esp, ebp
pop ebp
ret
push ebx
mov eax, 1
push 0
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x108], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 0
push edi
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.0046ab70
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebx, ebx
js 0x4a4755
xor edi, edi
call fcn.0046ab70
mov dword [esi], edi
mov dword [esi + 4], eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004b92b7
mov esp, ebp
pop ebp
ret
Function at 0x4a48b0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4a48c4
cmp byte [edi], 0
jne 0x4a48c6
xor edi, edi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4a48d2
cmp byte [esi], 0
jne 0x4a48d4
xor esi, esi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push eax
push ecx
push esi
push edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
push eax
lea edx, [ebp - 8]
push edx
call fcn.004a4770
mov edx, dword [eax]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 4]
add esp, 8
pop edi
mov dword [ecx + 4], eax
mov dword [ecx], edx
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x5bf094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x404]
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x41c], 0x400
mov dword [ebp - 0x414], ebx
call fcn.0046ab70
lea ecx, [ebp - 0x414]
push ecx
push ebx
push 1
lea edx, [ebp - 0x41c]
mov dword [ebp - 0x410], eax
mov eax, dword [edi]
push edx
push eax
call fcn.004a4100
add esp, 0x14
cmp eax, ebx
setg cl
mov byte [ebp - 0x405], cl
cmp eax, 0x400
jne 0x4a4a12
push esi
mov esi, dword [edi]
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push ebx
lea ecx, [ebp - 0x410]
push ecx
lea edx, [ebp - 0x40c]
push edx
push 1
lea eax, [ebp - 0x41c]
push eax
push esi
mov dword [ebp - 0x40c], ebx
mov dword [ebp - 0x410], ebx
call dword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call fcn.0046ab70
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x4a49e1
cmp eax, 0x4d2
jne 0x4a49e6
call fcn.0046ab70
cmp esi, ebx
jne 0x4a49fb
call fcn.0046ab70
cmp dword [ebp - 0x40c], 0x400
je 0x4a4993
mov al, byte [ebp - 0x405]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b92b7
mov esp, ebp
pop ebp
ret
mov al, cl
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004b92b7
mov esp, ebp
pop ebp
ret