joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4158ea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call sub.MFC42.DLL_CSocket::CSocket
xor edi, edi
lea ecx, [esi + 0x20]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString
push 0xa
lea ecx, [esi + 0x34]
mov byte [esp + 0x18], 2
call sub.MFC42.DLL_CStringList::CStringList
lea ecx, [esi + 0x54]
mov byte [esp + 0x14], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x58]
mov byte [esp + 0x14], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x5c]
mov byte [esp + 0x14], 5
call sub.MFC42.DLL_CString::CString
push 0x421970
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 6
mov dword [esi], 0x41949c
mov dword [esi + 0x2c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x24], edi
call fcn.00414874
mov ecx, dword [esp + 0xc]
or eax, 0xffffffff
mov dword [esi + 0x1c], eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x404b66
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4158ea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call sub.MFC42.DLL_CSocket::CSocket
xor edi, edi
lea ecx, [esi + 0x20]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString
push 0xa
lea ecx, [esi + 0x34]
mov byte [esp + 0x18], 2
call sub.MFC42.DLL_CStringList::CStringList
lea ecx, [esi + 0x54]
mov byte [esp + 0x14], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x58]
mov byte [esp + 0x14], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x5c]
mov byte [esp + 0x14], 5
call sub.MFC42.DLL_CString::CString
push 0x421970
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 6
mov dword [esi], 0x41949c
mov dword [esi + 0x2c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x24], edi
call fcn.00414874
mov ecx, dword [esp + 0xc]
or eax, 0xffffffff
mov dword [esi + 0x1c], eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x405170
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x110
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x405192
pop edi
mov eax, 1
pop esi
add esp, 0x110
ret
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x1c]
push edi
push ecx
push edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 1
call sub.WSOCK32.dll_select
xor edx, edx
test eax, eax
setg dl
mov eax, edx
cmp eax, edi
je 0x405223
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
call sub.WSOCK32.dll___WSAFDIsSet
cmp eax, edi
je 0x405223
mov ecx, dword [esi + 4]
mov dl, byte [0x421970]
push 2
lea eax, [esp + 0xf]
push 1
push eax
push ecx
mov byte [esp + 0x1b], dl
call sub.WSOCK32.dll_recv
mov esi, eax
cmp esi, edi
jg 0x405223
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2744
je 0x40521e
cmp eax, 0x2745
je 0x40521e
cmp eax, 0x2746
je 0x40521e
cmp eax, 0x2726
je 0x40521e
cmp esi, edi
jne 0x405223
mov edi, 1
mov eax, edi
pop edi
pop esi
add esp, 0x110
ret
Function at 0x406ce0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x415c9e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call sub.MFC42.DLL_CAsyncSocket::CAsyncSocket
xor ebx, ebx
lea ecx, [esi + 8]
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CFile::CFile
lea edi, [esi + 0x30]
mov byte [esp + 0x18], 1
mov ecx, edi
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esi + 0x38], ecx
push 0x421970
mov ecx, edi
mov byte [esp + 0x1c], 2
mov dword [esi], 0x4195c4
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], ebx
call fcn.00414874
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4093e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419b48
push 0x41502a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0
push 0x80
push 4
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4094e7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x409449
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4094e7
push 0x40
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
jne 0x40946b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4094e7
push 0
lea ecx, [ebp - 0x1c]
push ecx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x28], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4094d9
cmp dword [ebp - 0x1c], edi
jne 0x4094d9
xor esi, esi
mov dword [ebp - 4], esi
call ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x4094b8
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a810
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x416169
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call dword [sym.imp.MSVCP60.dll_private:_static_class_std::locale::_Locimp____cdecl_std::locale::_Init_void_]
mov ebx, dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
lea ecx, [esp + 0x10]
mov dword [esi + 0x34], eax
call ebx
mov eax, dword [sym.imp.MSVCP60.dll_class_std::locale::_Locimp__std::locale::_Locimp::_Global]
lea ecx, [esp + 0xc]
mov edi, dword [eax]
call ebx
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x40a85f
inc eax
mov dword [edi + 4], eax
mov edi, dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
lea ecx, [esp + 0xc]
call edi
lea ecx, [esp + 0x10]
call edi
lea ecx, [esi + 4]
lea edx, [esi + 0x14]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x18]
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], ecx
lea eax, [esi + 8]
lea edx, [esi + 0x24]
lea ecx, [esi + 0x28]
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], ecx
mov dword [eax], 0
mov edx, dword [esi + 0x20]
mov dword [edx], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov ecx, dword [esi + 0xc]
mov dword [ecx], 0
mov edx, dword [esi + 0x1c]
mov dword [edx], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov ecx, dword [esp + 0x28]
push 0
push 0
push 0
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
mov dword [esi], 0x419e00
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::strstreambuf::_Init_int__char___char___int_]
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x40ba00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4163ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 4]
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esi + 0x18]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CStringArray::CStringArray
lea edi, [esi + 0x2c]
mov byte [esp + 0x18], 1
mov ecx, edi
call sub.MFC42.DLL_CString::CString
lea ebx, [esi + 0x30]
push 0
mov ecx, ebx
mov byte [esp + 0x1c], 2
call fcn.00414cac
mov dword [ebx], 0x4199e4
add ebx, 8
push ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
mov byte [esp + 0x1c], 3
mov dword [esi], 0x419fc0
call fcn.0040e1c0
add esp, 4
mov ecx, edi
push str.security.dat
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40bac0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x416421
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x419fc0
lea edi, [esi + 0x30]
mov dword [esp + 0x14], 2
lea eax, [edi + 8]
mov dword [edi], 0x4199e4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, edi
call sub.MFC42.DLL_CSyncObject::CSyncObject
lea ecx, [esi + 0x2c]
mov byte [esp + 0x14], 1
call fcn.0041486e
lea ecx, [esi + 0x18]
mov byte [esp + 0x14], 0
call fcn.00414dea
lea ecx, [esi + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00414dea
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40db40
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4167c5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push esi
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x234]
lea eax, [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x230], 1
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 8], eax
je 0x40dc2b
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
add esp, 4
mov esi, eax
push esi
push ecx
push edx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40dc1e
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
push ecx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40dc1e
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edx, dword [eax]
mov cx, word [eax]
shr edx, 0x10
push edx
push ecx
lea edx, [esp + 0x28]
push str.StringFileInfo_04x_04xPrivateBuild
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push eax
push ecx
push edx
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40dc1e
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
test esi, esi
je 0x40dc2b
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esi, dword [esp + 0x230]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x18], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x228], 0
call fcn.0041486e
mov ecx, dword [esp + 0x220]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x224
ret 8
Function at 0x40e260
Capabilities:
Create directory
Create shortcut via ishelllink

Disassembly:
sub esp, 0x314
call fcn.0040e220
test eax, eax
je 0x40e3c2
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 2
push 0
call eax
xor edx, edx
test eax, eax
setge dl
mov eax, edx
test eax, eax
je 0x40e3c2
push esi
push 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 8]
push eax
push 0x41b2a4
push 1
push 0
push 0x41b2b4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x40e3b2
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push 0x41b2c8
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x40e3a8
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x31c]
push edi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x324]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jl 0x40e39d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push 0x420768
push edx
call esi
mov eax, dword [esp + 0x328]
lea ecx, [esp + 0x10]
push eax
push ecx
call esi
lea edx, [esp + 0x10]
push 0x420768
push edx
call esi
lea eax, [esp + 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x10]
push edi
push ecx
call esi
lea edx, [esp + 0x10]
push str..lnk
push edx
call esi
lea eax, [esp + 0x114]
push 0x104
push eax
lea ecx, [esp + 0x18]
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 8]
lea ecx, [esp + 0x114]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov esi, eax
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop edi
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
add esp, 0x314
ret
mov eax, dword [esp]
add esp, 0x314
ret

Function at 0x40e3d0
Capabilities:
Delete file

Disassembly:
sub esp, 0x104
call fcn.0040e220
test eax, eax
je 0x40e450
lea ecx, [esp]
push ecx
push 0
push 0
push 2
push 0
call eax
xor edx, edx
test eax, eax
setge dl
mov eax, edx
test eax, eax
je 0x40e450
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 4]
push 0x420768
push eax
call esi
mov ecx, dword [esp + 0x110]
lea edx, [esp + 4]
push ecx
push edx
call esi
lea eax, [esp + 4]
push 0x420768
push eax
call esi
mov ecx, dword [esp + 0x10c]
lea edx, [esp + 4]
push ecx
push edx
call esi
lea eax, [esp + 4]
push str..lnk
push eax
call esi
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
add esp, 0x104
ret
Function at 0x412800
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x412815
xor eax, eax
ret 8
and eax, 0x10
cmp al, 0x10
jne 0x41282a
mov ecx, dword [esp + 8]
xor eax, eax
test ecx, ecx
setne al
ret 8
mov ecx, dword [esp + 8]
xor eax, eax
test ecx, ecx
sete al
ret 8

Function at 0x4134c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41708f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x18]
mov ebx, 1
push eax
mov dword [esp + 0x28], ebx
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, dword [eax]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x30]
push eax
mov edx, dword [ecx]
call dword [edx + 0x28]
push ecx
mov ecx, dword [esp + 0x10]
mov eax, esp
mov dword [esp + 0x34], esp
lea edx, [esp + 0x34]
mov dword [eax], ecx
lea eax, [esp + 0x1c]
push edx
push eax
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, eax
call fcn.00413610
mov ecx, dword [eax]
mov eax, 0xc22e4507
imul ecx
add edx, ecx
sar edx, 0x10
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, 0x164
jle 0x41357f
lea edx, [esp + 0x30]
push str.__b__d__Y
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::Format
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 2
call fcn.00414934
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x30]
jmp 0x4135d2
push 0
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CTime::GetLocalTm
mov esi, dword [eax + 4]
push 0
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 8]
lea eax, [esp + 0x30]
push str._b__d
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::Format
mov ecx, dword [eax]
push esi
push edi
push ecx
lea edx, [esp + 0x1c]
push str.__s__02d:_02d
push edx
mov byte [esp + 0x38], 3
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x30]
call fcn.0041486e
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call fcn.0041486e
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 8
Function at 0x401cc0
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea eax, [esi + 0xb0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebp, dword [sym.imp.WS2_32.dll_htons]
lea edi, [esi + 0x240]
lea ebx, [esi + 0xa0]
push 0xad9a
mov dword [edi], 1
mov dword [esi + 0xa4], 0
mov word [ebx], 2
call ebp
push 0xad9b
mov word [esi + 0xa2], ax
mov word [esi + 0x90], 2
mov dword [esi + 0x94], 0xffffffff
call ebp
mov ebp, dword [sym.imp.WS2_32.dll_WSASocketA]
push 1
push 0
push 0
push 0
push 2
push 2
mov word [esi + 0x92], ax
mov dword [esi + 0x244], 0x10
call ebp
push 1
push 0
push 0
push 0
push 2
push 2
mov dword [esi + 0x88], eax
call ebp
mov ecx, dword [esi + 0x88]
mov dword [esi + 0x8c], eax
cmp ecx, 0xffffffff
je 0x401dcd
cmp eax, 0xffffffff
je 0x401dcd
mov ebp, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
push edi
push 0x20
push 0xffff
push ecx
call ebp
mov ecx, dword [esi + 0x8c]
push 4
push edi
push 0x20
push 0xffff
push ecx
call ebp
mov edx, dword [esi + 0x8c]
push 0x10
push ebx
push edx
call dword [sym.imp.WS2_32.dll_bind]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x2740
je 0x401dcd
cmp eax, 0x2740
je 0x401dcd
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x4034ff
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
xor ebx, ebx
push 0x14
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.004035cb
add esp, 0xc
mov byte [ebp - 0x14], 0x47
mov byte [ebp - 0xf], 0x72
mov byte [ebp - 0xa], 0x45
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0xe], 0x73
mov byte [ebp - 9], 0x78
mov byte [ebp - 0x12], 0x74
mov byte [ebp - 0xd], 0x69
mov byte [ebp - 8], 0x41
mov byte [ebp - 0x11], 0x56
mov byte [ebp - 0xc], 0x6f
mov byte [ebp - 7], bl
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xb], 0x6e
mov dword [ebp - 0xa8], 0x94
call fcn.004035fa
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0xa8]
push ecx
call eax
test eax, eax
push 0x14
lea eax, [ebp - 0x14]
push ebx
push eax
jne 0x40358b
call fcn.004035cb
add esp, 0xc
xor eax, eax
jmp 0x4035c8
call fcn.004035cb
mov eax, dword [ebp - 0x98]
add esp, 0xc
sub eax, ebx
je 0x4035c5
dec eax
je 0x4035a5
dec eax
je 0x4035b7
jmp 0x403587
cmp dword [ebp - 0xa0], ebx
jne 0x4035b1
push 4
jmp 0x4035c7
jbe 0x4035b7
push 5
jmp 0x4035c7
cmp dword [ebp - 0xa4], 5
sbb eax, eax
add eax, 7
jmp 0x4035c8
push 3
pop eax
pop ebx
leave
ret
Function at 0x4035fa
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.004035cb
mov eax, dword [0x41316c]
and byte [ebp - 8], 0
add esp, 0xc
cmp eax, 1
mov byte [ebp - 0xc], 0x2e
mov byte [ebp - 0xb], 0x64
mov byte [ebp - 0xa], 0x6c
mov byte [ebp - 9], 0x6c
mov byte [ebp - 0x14], 0x6b
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x72
mov byte [ebp - 0x11], 0x6e
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xf], 0x6c
mov byte [ebp - 0xe], 0x33
mov byte [ebp - 0xd], 0x32
jne 0x40365d
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x41316c], eax
leave
ret

Function at 0x40365f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x1b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor esi, esi
stosd dword es:[edi], eax
push esi
push 0x4000000
push 1
push esi
stosw word es:[edi], ax
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
mov byte [ebp - 0x1c], 0x5c
mov byte [ebp - 0x1b], 0x5c
mov byte [ebp - 0x1a], 0x2e
mov byte [ebp - 0x19], 0x5c
mov byte [ebp - 0x18], 0x48
mov byte [ebp - 0x17], 0x4f
mov byte [ebp - 0x16], 0x53
mov byte [ebp - 0x15], 0x54
mov byte [ebp - 0x14], 0x39
mov byte [ebp - 0x13], 0x35
mov byte [ebp - 0x12], 0x2e
mov byte [ebp - 0x11], 0x56
mov byte [ebp - 0x10], 0x58
mov byte [ebp - 0xf], 0x44
call fcn.0040370b
mov edi, eax
add esp, 0x1c
cmp edi, 0xffffffff
jne 0x4036d0
mov eax, 0xc357
jmp 0x403707
push ebx
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0xc]
push 8
push eax
push esi
push esi
push 2
push edi
call fcn.00403796
push edi
mov ebx, eax
call fcn.00403834
add esp, 0x24
cmp ebx, esi
pop ebx
je 0x403702
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 8]
mov byte [eax], cl
xor eax, eax
jmp 0x403707
mov eax, 0xc358
pop edi
pop esi
leave
ret

Function at 0x40370b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.004035cb
and byte [ebp - 9], 0
add esp, 0xc
mov byte [ebp - 0x14], 0x43
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xa], 0x41
mov byte [ebp - 0x13], 0x72
mov byte [ebp - 0xe], 0x46
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0xd], 0x69
mov byte [ebp - 0x11], 0x61
mov byte [ebp - 0xc], 0x6c
mov byte [ebp - 0x10], 0x74
mov byte [ebp - 0xb], 0x65
call fcn.004035fa
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x403767
leave
ret
push esi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
mov esi, eax
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.004035cb
add esp, 0xc
mov eax, esi
pop esi
leave
ret