joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46dbf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x5c
push ebx
mov ebx, dword [esp + 0x64]
push ebp
push esi
mov eax, dword [ebx]
push edi
push ebx
call dword [eax + 0x10]
mov ecx, dword [esp + 0x78]
mov esi, eax
xor ebp, ebp
mov dword [esp + 0x10], esi
test esi, esi
mov dword [esp + 0x34], 0x38
mov dword [ecx], 0
jle 0x46dcd3
mov edx, dword [ebx]
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push 7
push eax
push ebp
push ebx
mov dword [esp + 0x44], 0x38
call dword [edx + 0x18]
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x68]
cmp eax, ecx
jne 0x46dcca
mov ecx, 4
lea edi, [esp + 0x3c]
mov esi, 0x596ae8
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x46dcdd
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x70]
push edx
push 0x5be350
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x46dcd3
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x14]
mov esi, 2
push edx
lea edx, [esp + 0x24]
mov word [esp + 0x24], si
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x34], 0x10
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x46dcd3
cmp word [esp + 0x20], si
je 0x46dcf1
mov esi, dword [esp + 0x10]
inc ebp
cmp ebp, esi
jl 0x46dc23
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c
ret
mov eax, dword [esp + 0x78]
pop edi
pop esi
pop ebp
mov dword [eax], 1
xor eax, eax
pop ebx
add esp, 0x5c
ret
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
Function at 0x471fb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x57d5a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
xor esi, esi
push edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x593e00
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], esi
call fcn.00572dba
mov edi, dword [esp + 0x34]
mov byte [esp + 0x2c], 1
cmp edi, esi
jne 0x47202d
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CClientDC::CClientDC
mov dword [esp + 8], 0x5916f4
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
call ebp
mov ebx, eax
mov esi, dword [ebx + 0x20]
test esi, esi
jne 0x47204b
mov cl, byte [ebx + 0xe]
mov esi, 1
shl esi, cl
push edi
call ebp
mov edi, eax
cmp word [edi + 0xe], 8
jbe 0x472075
mov ecx, dword [edi + 0x10]
xor eax, eax
cmp ecx, 3
mov ecx, dword [edi + 0x20]
setne al
dec eax
and eax, 3
add eax, ecx
lea ecx, [edi + eax*4 + 0x28]
mov dword [esp + 0x3c], ecx
jmp 0x47207d
lea edx, [edi + esi*4 + 0x28]
mov dword [esp + 0x3c], edx
cmp esi, 0x100
jg 0x472118
mov eax, dword [esp + 0x20]
push 0x26
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test ah, 1
je 0x472118
lea eax, [esi*4 + 8]
push eax
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
test esi, esi
mov word [ebp], 0x300
mov word [ebp + 2], si
jle 0x4720df
lea eax, [ebp + 5]
lea ecx, [edi + 0x29]
mov dl, byte [ecx + 1]
add ecx, 4
mov byte [eax - 1], dl
mov dl, byte [ecx - 4]
mov byte [eax], dl
mov dl, byte [ecx - 5]
mov byte [eax + 1], dl
mov byte [eax + 2], 0
add eax, 4
dec esi
jne 0x4720c1
push ebp
call dword [sym.imp.GDI32.dll_CreatePalette]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push 0
push eax
call sub.MFC42.DLL_CDC::SelectPalette
mov ecx, dword [esp + 0x1c]
mov edi, eax
push ecx
call dword [sym.imp.GDI32.dll_RealizePalette]
jmp 0x47211c
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push 0
neg eax
sbb eax, eax
push ebx
push edx
and eax, ebp
push 4
push ebx
push eax
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
lea eax, [esp + 0x10]
pop ebp
pop ebx
test eax, eax
je 0x47215c
mov eax, dword [esp + 0xc]
test eax, eax
je 0x47215c
push 0
push edi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CDC::SelectPalette
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CClientDC::CClientDC
mov dword [esp + 8], 0x5916f4
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x476410
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x57e562
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
mov eax, dword [esi]
mov dword [esp + 0x14], 1
call dword [eax + 0x7c]
mov edi, eax
mov eax, dword [esi + 0x120]
test eax, eax
je 0x476452
mov ecx, dword [eax + 0x20]
test ecx, ecx
jne 0x4764f8
test eax, eax
jne 0x476484
push 0x20a8
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x476477
push 0
mov ecx, eax
call fcn.004c2c30
jmp 0x476479
xor eax, eax
mov byte [esp + 0x14], 1
mov dword [esi + 0x120], eax
mov edx, dword [esi + 0x120]
lea ecx, [edi + 0x1f0]
mov dword [edx + 0x60], ecx
mov eax, dword [esi + 0x120]
mov ecx, dword [edi + 0x25c]
mov dword [eax + 0x1760], ecx
mov edx, dword [esi + 0x120]
mov eax, dword [edi + 0x268]
mov dword [edx + 0x1764], eax
mov ecx, dword [esi + 0x120]
mov edx, dword [edi + 0x260]
mov dword [ecx + 0x1768], edx
mov eax, dword [esi + 0x120]
mov ecx, dword [edi + 0x264]
mov dword [eax + 0x176c], ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov ecx, dword [esi + 0x120]
push eax
push 0x9b
call sub.MFC42.DLL_CDialog::Create
mov edx, dword [esi + 0x120]
mov eax, dword [edi + 0x268]
lea ecx, [edi + 0x1f0]
push 5
mov dword [edx + 0x1764], eax
mov edx, dword [esi + 0x120]
mov dword [edx + 0x60], ecx
mov eax, dword [esi + 0x120]
mov ecx, dword [edi + 0x25c]
mov dword [eax + 0x1760], ecx
mov edx, dword [esi + 0x120]
mov eax, dword [edi + 0x268]
mov dword [edx + 0x1764], eax
mov ecx, dword [esi + 0x120]
mov edx, dword [edi + 0x260]
mov dword [ecx + 0x1768], edx
mov eax, dword [esi + 0x120]
mov ecx, dword [edi + 0x264]
mov dword [eax + 0x176c], ecx
mov ecx, dword [esi + 0x120]
call sub.MFC42.DLL_CWnd::ShowWindow
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0xc], esp
push edx
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x24]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x120]
push eax
push 1
mov byte [esp + 0x28], 1
call fcn.004c6a50
mov ecx, dword [esi + 0x120]
push 1
call fcn.004c4430
mov esi, dword [esi + 0x120]
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret 0x10
Function at 0x477310
Capabilities:
Create thread

Disassembly:
sub esp, 8
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x150]
test eax, eax
je 0x4773d6
mov eax, dword [0x5f3cf8]
mov edx, dword [ebp + 0x150]
push ebx
lea ebx, [ebp + 0x148]
push esi
mov esi, eax
add eax, edx
push 0xffffffffffffffff
push eax
mov ecx, 0x5f3cf0
call fcn.004838e0
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
lea eax, [esi + esi*8]
mov esi, dword [0x5f3cf4]
shl eax, 5
add eax, esi
mov esi, ecx
dec ecx
test esi, esi
je 0x47738b
inc ecx
push edi
mov dword [esp + 0x10], ecx
mov ecx, 0x48
mov esi, edx
mov edi, eax
add eax, 0x120
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
add edx, 0x120
dec ecx
mov dword [esp + 0x10], ecx
jne 0x477369
pop edi
lea esi, [ebp + 0x15c]
mov ecx, 0x5f3cd8
push esi
call sub.MFC42.DLL_CStringArray::Append
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.004838e0
push 0xffffffffffffffff
push 0
mov ecx, esi
call sub.MFC42.DLL_CStringArray::SetSize
mov edx, dword [ebp]
lea eax, [esp + 0x10]
push eax
push 0
mov ecx, ebp
call dword [edx + 0x7c]
mov eax, dword [eax + 0x20]
push eax
push 0x4773e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
pop ebx
pop ebp
add esp, 8
ret
Function at 0x478c50
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x57e7e5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
lea eax, [esp + 0xc]
mov dword [esp + 8], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esp]
mov dword [esp + 0x118], 1
cmp dword [edx - 8], 1
jle 0x478ce2
push ebx
lea eax, [esp + 8]
push 1
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x5e2e34
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 8]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
pop ebx
je 0x478ce2
push str._feiqwebaccess.html
jmp 0x478ce7
push str.feiqwebaccess.html
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::operator_1
push esi
mov esi, dword [esp + 0x124]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_4
mov dword [esp + 0xc], 1
lea ecx, [esp + 4]
mov byte [esp + 0x11c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x114]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret 4
Function at 0x47f8a0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x57f313
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 8]
mov dword [esi + 4], 0
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esi + 0xc]
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esi + 0x10]
mov byte [esp + 0x10], 1
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esi + 0x14]
mov byte [esp + 0x10], 2
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 3
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 4
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 5
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 6
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 7
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 8
call sub.MFC42.DLL_CString::CString_5
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x482466
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x57f64b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x597948
mov ecx, 0x5f3d08
mov dword [esp + 0x10], 0
mov dword [esi + 4], 1
call fcn.0047ccb0
lea ecx, [esi + 0x34]
mov dword [esp + 0x10], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x14]
mov byte [esp + 0x10], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x10]
mov byte [esp + 0x10], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 8]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x482676
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x57f6ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x5979cc
mov ecx, 0x5f3d08
mov dword [esp + 0x10], 0
mov dword [esi + 4], 1
call fcn.0047ccb0
add esi, 8
mov dword [esp + 4], esi
lea ecx, [esi + 0x34]
mov dword [esp + 0x10], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x14]
mov byte [esp + 0x10], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x10]
mov byte [esp + 0x10], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 8]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x48d3a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5804e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, 0x593718
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], 0
push 0x185
push 4
push 0x185
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadMenuA]
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CMenu::Attach
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.USER32.dll_GetSubMenu]
push 0
push eax
call edi
push eax
call sub.MFC42.DLL_CMenu::FromHandle
test eax, eax
je 0x48d425
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CMenu::Attach
mov ecx, dword [esp + 0x10]
push 0
push ecx
call edi
push eax
call sub.MFC42.DLL_CMenu::FromHandle
push eax
push 9
call fcn.004a1110
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
add esp, 8
lea ecx, [esp + 0x14]
push 0
push esi
push edx
push eax
push 0
call sub.MFC42.DLL_CMenu::TrackPopupMenu
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CMenu::Detach
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CMenu::DestroyMenu
mov dword [esp + 0xc], 0x5916e0
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 3
call sub.MFC42.DLL_CMenu::DestroyMenu
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8

Function at 0x48d6a0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
lea eax, [esp]
push eax
push 0x5be340
push 1
push 0
push 0x5be330
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x48d6ce
xor eax, eax
add esp, 0x210
ret 8
mov eax, dword [esp]
mov edx, dword [esp + 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp]
push 0x352
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esp]
lea ecx, [esp + 4]
push ecx
push 0x5be3b0
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jge 0x48d711
xor eax, eax
add esp, 0x210
ret 8
mov eax, dword [esp + 0x218]
lea edx, [esp + 8]
push 0x104
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push 2
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, 1
add esp, 0x210
ret 8
Function at 0x48fe74
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x268]
test eax, eax
je 0x48ff5e
lea eax, [esp + 0xc]
push ebx
push eax
mov dword [esp + 0x14], 8
call dword [sym.imp.USER32.dll_GetLastInputInfo]
mov eax, dword [esi + 0x276c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
je 0x48fef8
call ebx
mov edx, dword [esi + 0x268]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub ecx, eax
mov eax, dword [edx + 0x4e6c]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 5
cmp ecx, eax
jae 0x48fef8
mov ecx, dword [esi + 0x20]
push 0
push 0x8166
push 0x111
push ecx
call ebp
mov dword [esi + 0x276c], 0
mov edi, dword [esi + 0x268]
call ebx
mov edx, eax
mov eax, dword [esp + 0x14]
sub edx, eax
mov eax, dword [edi + 0x4e6c]
pop ebx
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 5
cmp edx, eax
jb 0x48ff5e
mov eax, dword [esi + 0x276c]
test eax, eax
jne 0x48ff5e
mov edi, dword [edi + 0x4e70]
test edi, edi
jl 0x48ff5e
lea eax, [edi + 0x8167]
cmp eax, 0x816f
jg 0x48ff5e
mov ecx, dword [esi + 0x20]
push 0
push eax
push 0x111
push ecx
call ebp
mov dword [esi + 0x276c], 1
pop edi
pop esi
pop ebp
add esp, 8
ret

Function at 0x49b9a0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x49b9c7
push esi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x49b9c9
push esi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x49b9c7
mov eax, dword [eax + 0xc]
pop esi
mov ecx, dword [eax]
mov eax, dword [ecx]
ret
xor eax, eax
pop esi
ret
Function at 0x49d1b0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
xor eax, eax
push ebx
mov dword [esp + 4], eax
mov ebx, dword [esp + 0x20]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
push esi
mov esi, ecx
mov dword [esp + 0x14], eax
mov cx, word [esp + 0x20]
push edi
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0xc]
push 0x10
push eax
mov word [esp + 0x16], cx
mov ecx, dword [esi + 8]
push 0
push edi
push ebx
push ecx
mov word [esp + 0x24], 2
mov dword [esp + 0x28], edx
call sub.WSOCK32.dll_sendto
cmp eax, 0xffffffff
jne 0x49d29c
call sub.WSOCK32.dll_WSAGetLastError
sub eax, 0x2742
je 0x49d242
sub eax, 0xf
je 0x49d224
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10
mov eax, dword [0x5f3fb8]
test eax, eax
jne 0x49d237
mov dword [0x5f3fb8], 1
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10
mov ecx, esi
call fcn.0049c460
cmp eax, 1
je 0x49d259
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x49d278
push eax
mov ecx, esi
call fcn.0049c610
cmp eax, 1
je 0x49d278
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10
mov eax, dword [esi + 8]
lea edx, [esp + 0xc]
push 0x10
push edx
push 0
push edi
push ebx
push eax
call sub.WSOCK32.dll_sendto
cmp eax, 0xffffffff
jne 0x49d29c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret 0x10
Function at 0x49d3e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x20]
push edi
push 0
push 1
mov edi, ecx
push 2
mov dword [esi + 0x14], 0
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 8], eax
je 0x49d502
lea ecx, [esp + 8]
mov dword [esp + 8], 1
push ecx
push 0x8004667e
push eax
call sub.WSOCK32.dll_ioctlsocket
test eax, eax
jne 0x49d502
mov eax, dword [esi + 8]
lea edx, [esp + 8]
push 4
push edx
push 1
push 0xffff
push eax
call sub.WSOCK32.dll_setsockopt
mov ecx, dword [edi + 0x18]
mov eax, dword [ecx + 0x566c]
test eax, eax
mov dword [esp + 0x24], eax
jle 0x49d480
mov eax, dword [esi + 8]
lea edx, [esp + 0x24]
push 4
push edx
push 0x1002
push 0xffff
push eax
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x49d480
mov eax, dword [esp + 0x24]
cdq
sub eax, edx
sar eax, 1
test eax, eax
mov dword [esp + 0x24], eax
jg 0x49d451
mov ecx, dword [esp + 0x20]
push esi
push ecx
mov ecx, edi
call fcn.0049d510
test eax, eax
je 0x49d4f9
mov ax, word [esi + 0x10]
xor edx, edx
mov dword [esp + 0xc], edx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x10], edx
mov word [esp + 0xe], ax
mov eax, dword [esi + 8]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
lea edx, [esp + 0xc]
push 0x10
push edx
push eax
mov word [esp + 0x18], 2
mov dword [esp + 0x1c], ecx
call sub.WSOCK32.dll_connect
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
jne 0x49d4e0
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x49d4f9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], eax
pop edi
mov eax, 1
pop esi
add esp, 0x14
ret 8
mov ecx, dword [esi + 8]
push ecx
call sub.WSOCK32.dll_closesocket
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret 8

Function at 0x49d590
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [ecx + 0xa8]
sub esp, 8
test eax, eax
je 0x49d5a6
mov eax, 1
add esp, 8
ret
mov eax, dword [ecx + 0xa4]
lea edx, [esp]
push 8
mov dword [esp + 4], eax
mov eax, dword [ecx + 8]
push edx
push 5
push 0
push eax
mov dword [ecx + 0xa8], 1
mov dword [esp + 0x18], 0
call sub.WSOCK32.dll_setsockopt
add esp, 8
ret

Function at 0x49d5e0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
mov edx, dword [ecx + 0xa4]
push 8
mov dword [esp + 4], edx
lea edx, [esp + 4]
xor eax, eax
push edx
push 6
mov dword [ecx + 0xa8], eax
mov dword [esp + 0x10], eax
push eax
mov eax, dword [ecx + 8]
push eax
call sub.WSOCK32.dll_setsockopt
add esp, 8
ret