joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e150
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x488
mov eax, dword [0x4f5568]
xor eax, esp
mov dword [esp + 0x484], eax
mov eax, dword [ebp + 8]
push esi
mov dword [esp + 0x4c], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x50], eax
lea eax, [esi + 0x324]
push edi
push eax
mov dword [esp + 0x50], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x78]
test eax, eax
jne 0x46e2db
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x46e1ce
push str.vncserver.cpp_:_Failed_rootdc__n
push eax
push 0x4f6c50
call fcn.00414f90
xor edi, edi
add esp, 0xc
mov dword [esp + 0x20], edi
xor cl, cl
jmp 0x46e308
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push eax
call esi
push 0xa
push dword [esp + 0x1c]
mov di, ax
mov word [esp + 0x28], di
call esi
mov esi, dword [esp + 0x18]
movzx ecx, ax
push ecx
movzx ecx, di
push ecx
push esi
mov word [esp + 0x2e], ax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x46e220
xor edi, edi
mov byte [esp + 0x14], al
push esi
push edi
mov dword [esp + 0x28], edi
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x46e304
push 0x430
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.004b67a0
add esp, 0xc
mov dword [esp + 0x5c], 0x28
xor eax, eax
mov word [esp + 0x6a], ax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x46e25e
xor edi, edi
mov byte [esp + 0x14], al
mov dword [esp + 0x20], edi
jmp 0x46e2c6
push 0
lea ecx, [esp + 0x60]
push ecx
push 0
push 1
push 0
push dword [esp + 0x2c]
push eax
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x46e299
push 0
lea eax, [esp + 0x60]
push eax
push 0
push 1
push 0
push dword [esp + 0x2c]
push dword [esp + 0x34]
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x46e2a6
xor edi, edi
mov byte [esp + 0x14], 0
mov dword [esp + 0x20], edi
jmp 0x46e2bc
cmp byte [esp + 0x6a], 0x18
mov edx, 0x20
movzx ecx, byte [esp + 0x6a]
cmove ecx, edx
mov dword [esp + 0x14], ecx
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x46e304
movdqu xmm0, xmmword [eax + 0xe070]
movdqu xmmword [esp + 0x20], xmm0
mov di, word [esp + 0x20]
movq xmm0, qword [eax + 0xe080]
mov al, byte [esp + 0x24]
movq qword [esp + 0x30], xmm0
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x50]
push dword [esp + 0x4c]
movzx eax, di
mov dword [edx], eax
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x24]
shr eax, 0x10
mov dword [edx], eax
movzx eax, cl
mov ecx, dword [esp + 0x58]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x48c]
pop edi
pop esi
xor ecx, esp
call fcn.004aca59
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46fbd0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
mov eax, dword [0x4f5568]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push esi
push edi
xor ebx, ebx
push str.kernel32.dll
mov dword [0x501494], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x46fc35
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTSGetActiveConsoleSessionId
push edi
call esi
push str.ProcessIdToSessionId
push edi
mov dword [esp + 0x1c], eax
call esi
mov dword [0x501494], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46fc35
call eax
mov dword [esp + 0x10], eax
jmp 0x46fc39
mov dword [esp + 0x10], ebx
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x46fc72
cmp dword [0x501494], ebx
je 0x46fc72
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0xffffffff
push ecx
push eax
call dword [0x501494]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x46fca2
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x46fcc4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x46fcad
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x3c]
push str.explorer.exe
push eax
call fcn.004aeec7
add esp, 8
test eax, eax
jne 0x46fd31
mov dword [esp + 0x14], eax
mov eax, dword [0x501494]
test eax, eax
je 0x46fd2d
lea ecx, [esp + 0x14]
push ecx
push dword [esp + 0x24]
call eax
test eax, eax
je 0x46fd31
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jne 0x46fd31
mov ebx, dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x46fd16
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x144]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x46fcc4
jmp 0x46fd04
Function at 0x46fe60
Capabilities:
Check for sandbox username or hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x501490]
push ebx
push esi
mov esi, ecx
mov ebx, 1
mov ecx, dword [0x501498]
test ecx, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmovne eax, ebx
mov dword [0x501490], eax
mov eax, dword [0x4fd48c]
cmp eax, 2
jne 0x46ff32
test ecx, ecx
je 0x46ff32
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
test eax, eax
jne 0x46feb3
push str.vncservice.cpp_:_______________GetCurrentUser___ERROR_:_No_window_station__n
jmp 0x46ffc9
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 4
push eax
call dword [sym.imp.USER32.dll_GetUserObjectInformationA]
call edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 4], 0
jne 0x46ff04
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push str.vncservice.cpp_:_______________GetCurrentUser___Error:_Usersize_0_n
push 0
push 0x4f6c50
mov dword [0x501490], 0
mov byte [esi], 0
call fcn.00414f90
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x501490], 0
jne 0x46ff2d
push str.vncservice.cpp_:_______________GetCurrentUser___Error:_NOT_impersonating_user__n
push 0
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
mov byte [esi], 0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4fd48c]
dec eax
cmp eax, 1
ja 0x46ffc4
mov ecx, esi
mov dword [ebp - 4], 0x101
call fcn.0046fd50
test al, al
jne 0x46ffa6
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x46ffa6
call edi
cmp eax, 0x4dd
jne 0x46ff86
push str.vncservice.cpp_:_______________GetCurrentUser___Error:_No_user_logged_on__n
push 0
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
mov byte [esi], 0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call edi
push eax
push str.vncservice.cpp_:_getusername_error__d_n
push 0
push 0x4f6c50
call fcn.00414f90
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push str.vncservice.cpp_:_______________GetCurrentUser___UserNAme_found:__s__n
push 0
push 0x4f6c50
call fcn.00414f90
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.vncservice.cpp_:_______________GetCurrentUser___Error:_Unknown_OS__n
push 0
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x470cd0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ecx + 0x42c], 0
je 0x470d2b
lea eax, [ebp - 8]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x470d14
mov eax, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 4], 4
jne 0x470d0b
cmp dword [ebp - 8], 4
mov eax, dword [ebp - 0xc]
cmovne eax, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ecx + 0x430]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x470d50
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x42c], 0
je 0x470de0
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 0
push edi
push dword [ebp + 8]
mov dword [ebp - 8], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x470dd6
cmp dword [ebp - 4], 3
jne 0x470dd6
push 0x100
mov dword [ebp - 8], 0x100
call fcn.004aca50
mov esi, eax
add esp, 4
test esi, esi
je 0x470dd6
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x470dcd
cmp dword [ebp - 4], 3
je 0x470e0f
push esi
call fcn.004ad334
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x96
call fcn.004aca50
add esp, 4
lea ecx, [edi + 0x430]
mov esi, eax
push ecx
push 0x96
push esi
push 0x4d9f42
push dword [ebp + 0xc]
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x470e20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
cmp dword [edi + 0x42c], 0
je 0x470e67
push 4
lea ecx, [ebp + 0x10]
push ecx
push 4
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push 0x4e1254
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [edi + 0x430]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004aca59
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4715d0
Capabilities:
Read .ini file

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x430]
mov ecx, edi
call fcn.0041e390
push edi
push 0
push str.UseRegistry
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
dec eax
mov dword [esi + 0x100], 0
neg eax
mov dword [esi + 0x104], 0
mov ecx, esi
mov dword [esi + 0x108], 0
sbb eax, eax
mov dword [esi + 0x10c], 0
inc eax
mov dword [esi + 0x11c], 0
mov dword [esi + 0x42c], eax
mov dword [esi + 0x120], 0
mov dword [esi + 0x124], 0
call fcn.00470f70
mov ecx, esi
mov dword [esi + 0x110], eax
call fcn.004710b0
mov ecx, esi
mov dword [esi + 0x114], eax
call fcn.004711f0
push dword [esi + 0x11c]
mov ecx, esi
mov dword [esi + 0x118], eax
call fcn.00471270
push dword [esi + 0x120]
mov ecx, esi
mov dword [esi + 0x11c], eax
call fcn.00471390
push dword [esi + 0x124]
mov ecx, esi
mov dword [esi + 0x120], eax
call fcn.004714b0
mov edx, dword [esi + 0x110]
mov dword [esi + 0x124], eax
test edx, edx
je 0x4716d4
lea ecx, [esi + 0x128]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4716b6
push dword [esi + 0x110]
call fcn.004ad334
add esp, 4
jmp 0x4716db
mov byte [esi + 0x128], 0
mov ecx, dword [esi + 0x114]
test ecx, ecx
je 0x47170e
lea edx, [esi + 0x228]
jmp 0x4716f0
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x4716f0
push dword [esi + 0x114]
call fcn.004ad334
add esp, 4
jmp 0x471715
mov byte [esi + 0x228], 0
mov ecx, dword [esi + 0x118]
test ecx, ecx
je 0x471746
lea edx, [esi + 0x328]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x471725
push dword [esi + 0x118]
call fcn.004ad334
add esp, 4
mov eax, esi
pop edi
pop esi
ret
pop edi
mov byte [esi + 0x328], 0
mov eax, esi
pop esi
ret
Function at 0x472000
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d001b
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4f5568]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
lea esi, [edi + 4]
mov dword [edi + 0x23cc], eax
cmp dword [esi + 8], 0
mov dword [ebp + 0xc], 1
jl 0x472047
mov ecx, esi
call fcn.004726a0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
test eax, eax
js 0x472105
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x472105
mov ecx, esi
call fcn.00472990
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x168]
push eax
push dword [edi + 0x23cc]
mov ecx, esi
call fcn.00472700
test eax, eax
je 0x472105
mov eax, dword [esi + 8]
test eax, eax
js 0x472105
push 5
push eax
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
js 0x472105
push 0x6c
call fcn.004ad3ab
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4720d7
mov ecx, eax
call fcn.00472120
mov ecx, eax
jmp 0x4720d9
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x23d0], ecx
test ecx, ecx
je 0x472105
mov eax, dword [ecx]
push ebx
push esi
call dword [eax + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x472370
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x198]
mov esi, ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4723b0
mov dword [esi], 0
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
mov ax, word [ebp - 0x198]
mov ecx, dword [ebp - 4]
mov word [0x50149c], ax
xor ecx, ebp
mov dword [esi], 0xffffffff
mov eax, esi
pop esi
call fcn.004aca59
mov esp, ebp
pop ebp
ret

Function at 0x472640
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 1
cmp dword [esi + 8], 0
jl 0x472659
call fcn.004726a0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
test eax, eax
jns 0x472673
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x47266c
mov ecx, esi
call fcn.00472990
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x472790
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
mov eax, dword [0x4f5568]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 8], 0
jge 0x4727c6
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004aca59
mov esp, ebp
pop ebp
ret 8
xorps xmm0, xmm0
mov eax, 2
movdqa xmmword [esp + 0x10], xmm0
push edi
mov word [esp + 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x472803
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4727b1
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x4727b1
mov eax, dword [eax]
mov dword [esp + 0x14], eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
lea eax, [esp + 0x10]
push 0x10
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x4727b1
mov ecx, esi
call fcn.00472990
mov ecx, dword [esp + 0x2c]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.004aca59
mov esp, ebp
pop ebp
ret 8

Function at 0x472850
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
test eax, eax
js 0x4728f9
lea ecx, [ebp - 4]
mov dword [ebp - 4], 4
push ecx
lea ecx, [ebp - 8]
push ecx
push 0x1001
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_getsockopt]
push dword [ebp - 4]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x8000
push eax
push 0x1001
push 0xffff
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0
push 0
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
test edi, edi
js 0x4728f9
push 0x23c8
call fcn.004ad3ab
add esp, 4
test eax, eax
je 0x4728e9
mov ecx, eax
call fcn.004723e0
mov esi, eax
test esi, esi
je 0x4728e9
mov ecx, esi
mov dword [esi + 8], edi
call fcn.00472990
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x472960
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, ecx
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x472989
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x472987
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x472987
mov eax, dword [eax]
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x472990
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x2c]
push edi
push 4
push eax
mov edi, ecx
mov dword [ebp - 0x2c], 1
push 1
push 6
or ebx, 0xffffffff
push dword [edi + 8]
call esi
xor ecx, ecx
test eax, eax
push 4
lea eax, [ebp - 0x2c]
cmovne ebx, ecx
push eax
push 8
push 0xffff
push dword [edi + 8]
call esi
test eax, eax
je 0x4729e5
xor ebx, ebx
jmp 0x472a45
push 0
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
push eax
push 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], 0
push eax
push 0xc
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0x3e8
push 0x98000004
push dword [edi + 8]
movq qword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0x2710
call dword [sym.imp.WS2_32.dll_WSAIoctl]
xor ecx, ecx
test eax, eax
cmovne ebx, ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x10
push eax
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push dword [edi + 8]
movdqu xmmword [ebp - 0x14], xmm0
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, dword [ebp - 0x10]
lea esi, [edi + 0x23ac]
mov dword [edi + 0x23b0], eax
movzx eax, word [ebp - 0x12]
mov dword [edi + 0x23b4], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
mov dword [esi], 5
push eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_getpeername]
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x23b8], eax
movzx eax, word [ebp - 0x12]
mov dword [edi + 0x23bc], eax
mov eax, dword [edi + 0x23a8]
mov byte [ebp - 0x21], 1
test eax, eax
je 0x472ae3
push 0
push 1
push 0
lea ecx, [ebp - 0x21]
push ecx
push 2
push esi
call eax
test eax, eax
mov byte [edi + 0x23c0], 0
mov eax, ebx
je 0x472ae5
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
mov eax, ebx
mov ecx, dword [ebp - 4]
mov byte [edi + 0x23c0], 1
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004aca59
mov esp, ebp
pop ebp
ret

Function at 0x472b00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x50149c], 2
push esi
mov esi, ecx
jae 0x472b16
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [ebp + 8]
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x1006
push 0xffff
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x472b0f
push 4
lea eax, [ebp + 8]
push eax
push 0x1005
push 0xffff
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
inc eax
neg eax
pop esi
sbb eax, eax
pop ebp
ret 4
Function at 0x472b60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x50149c], 2
push esi
mov esi, ecx
jae 0x472b76
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [ebp + 8]
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x1006
push 0xffff
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x472b6f
push 4
lea eax, [ebp + 8]
push eax
push 0x1005
push 0xffff
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
inc eax
neg eax
pop esi
sbb eax, eax
pop ebp
ret 4

Function at 0x472bc0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x50149c], 2
push esi
mov esi, ecx
jae 0x472bd6
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [ebp + 8]
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x1006
push 0xffff
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x472bcf
push 4
lea eax, [ebp + 8]
push eax
push 0x1005
push 0xffff
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
inc eax
neg eax
pop esi
sbb eax, eax
pop ebp
ret 4

Function at 0x472d30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x239c]
add eax, edi
cmp eax, dword [esi + 0x23c4]
jb 0x472def
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x239c]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x23c4]
sub eax, ecx
push eax
lea eax, [esi + 0x74]
add eax, ecx
push ebx
push eax
call fcn.004b6150
mov ecx, dword [esi + 8]
lea edx, [esi + 0x74]
add esp, 8
push dword [esi + 0x23c4]
call fcn.004735c0
add esp, 8
test al, al
jne 0x472da0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0x23c4]
mov eax, ecx
mov edi, dword [esi + 0x239c]
sub eax, edi
sub edi, ecx
mov dword [esi + 0x239c], 0
add edi, dword [ebp + 0xc]
add ebx, eax
cmp edi, ecx
jb 0x472def
push ecx
push ecx
mov ecx, dword [esi + 8]
mov edx, ebx
call fcn.004735c0
add esp, 8
test al, al
je 0x472d95
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x23c4]
add ebx, ecx
sub edi, ecx
mov dword [esi + 0xc], eax
cmp edi, ecx
jae 0x472dc5
mov ecx, dword [esi + 0x239c]
push edi
add ecx, 0x74
add ecx, esi
push ebx
push ecx
call fcn.004b6150
mov eax, dword [ebp + 0xc]
add esp, 0xc
add dword [esi + 0x239c], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
cmp dword [ebx + 8], 0xffffffff
jne 0x473044
or eax, 0xffffffff
pop ebx
pop ebp
ret 8
push esi
push edi
xor esi, esi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
jne 0x47307e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274c
jne 0x47307e
push 0x3e8
inc esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 2
jl 0x473048
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8