joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100087b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 2
mov eax, dword [ebp + 8]
and eax, 0xffff
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
mov dword [ebp - 4], eax
push 2
mov ecx, dword [ebp + 8]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10008807
mov dword [ebp - 4], 0
push 2
mov eax, dword [ebp + 8]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10008811
xor eax, eax
jmp 0x1000887e
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1000882c
xor eax, eax
jmp 0x1000887e
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10008843
xor eax, eax
jmp 0x1000887e
mov edx, dword [ebp - 0x14]
push edx
call fcn.10008761
add esp, 4
mov word [ebp - 0xc], ax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0xc]
and ecx, 0xffff
cmp ecx, 0x10
je 0x1000886f
xor eax, eax
jmp 0x1000887e
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.MFC42.DLL_AfxLoadSysColorBitmap
mov esp, ebp
pop ebp
ret

Function at 0x10009f60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push esi
push edi
cmp dword [0x100518d8], 0
je 0x10009f7e
mov eax, dword [0x100518d4]
jmp 0x1000a082
mov dword [0x100518d8], 1
lea eax, [ebp - 0x11c]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftPlus_ThemesCurrent
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jne 0x1000a07d
mov dword [ebp - 4], 0x104
mov dword [ebp - 0x118], 1
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x118]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jne 0x1000a070
mov ecx, 5
mov esi, str.Windows_Classic.theme
lea edi, [ebp - 0x138]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [ebp - 0x13c], eax
jl 0x1000a070
lea ecx, [ebp - 0x138]
push ecx
lea edx, [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x13c]
sub ecx, eax
lea edx, [ebp + ecx - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1000a070
mov dword [0x100518d4], 1
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x100518d4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10010970
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042b9e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xa0
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xac
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x100471bc
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc8], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x18], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x24], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x28], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x2c], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x30], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x34], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x38], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x3c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x48], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x4c], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x50], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x54], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x5c], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x60], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x68], 0x4b
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x6c], 0x19
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x70], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x74], 0xffffc0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x78], 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x9c], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x7c], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x80], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x8c], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x84], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x88], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x90], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x94], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x98], 1
push 0x100518e4
mov ecx, dword [ebp - 0x10]
add ecx, 0xa0
call fcn.100411e6
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xa4], 1
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xa8], 0
push 0x100500a0
mov ecx, dword [ebp - 0x10]
add ecx, 0xac
call fcn.100411e6
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xb0], 8
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xb4], 0xf
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xb8], 2
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xbc], 2
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xcc], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xd0], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10014894
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call fcn.10041c95
push eax
lea ecx, [ebp - 0xc]
call sub.MFC42.DLL_AFX_MAINTAIN_STATE2::AFX_MAINTAIN_STATE2
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc4]
mov eax, dword [edx + 0x268]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp dword [ebp - 4], 0
je 0x10014901
mov edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x100148f3
push 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x10]
call dword [edx + 4]
mov dword [ebp - 0x18], eax
jmp 0x100148fa
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xc]
call fcn.100149f0
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042f48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x3c
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x100475d4
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1c], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x20], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x28], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x24], 0
push 0x1005027c
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.100411e6
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], 6
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x34], 0xc
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x38], 0xffffff
push 0x100519cc
mov ecx, dword [ebp - 0x10]
add ecx, 0x3c
call fcn.100411e6
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x10017350
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x264], 0
je 0x10017395
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x264]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x264], 0
mov ecx, dword [ebp - 4]
add ecx, 0x1d8
call sub.CTI.dll_CTIUnload
jmp 0x10017397
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10021c95
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10044242
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push esi
mov dword [ebp - 0x50], ecx
push str.ZXDT000115
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.1002b9d9
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x50]
add eax, 0x14
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.1000ab00
mov esi, eax
push 0x5c
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::ReverseFind
sub esi, eax
sub esi, 1
push esi
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Right
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x58]
push eax
lea ecx, [ebp - 0x14]
call fcn.1004126a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.100411da
mov ecx, dword [ebp - 0x50]
cmp dword [ecx + 0x288], 0
je 0x10021d84
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x34]
call fcn.1002be0d
test eax, eax
je 0x10021d84
mov dword [ebp - 0x44], 2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.100411da
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.1002ba26
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.100411da
mov eax, dword [ebp - 0x44]
jmp 0x10021e4c
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x34]
call fcn.1002be0d
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x3c], eax
push 0
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x50]
add ecx, 0x29c
call dword [sym.imp.MSVCP60.dll_public:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::empty_void_const]
and eax, 0xff
test eax, eax
je 0x10021dfe
mov dword [ebp - 0x48], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.100411da
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.1002ba26
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.100411da
mov eax, dword [ebp - 0x48]
jmp 0x10021e4c
mov ecx, dword [ebp - 0x50]
add ecx, 0x29c
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
mov dword [ebp - 0x4c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.100411da
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.1002ba26
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.100411da
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10022b00
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100443a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x38
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x2c]
call fcn.1002b9d9
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 1
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jle 0x10022c5e
push 0
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x268]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x10050b5c
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.1002be0d
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x14], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.100411da
cmp dword [ebp - 0x14], 0
je 0x10022bd5
push str.MJSY000711
lea ecx, [ebp - 0x18]
call fcn.100411e6
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x38]
add edx, 0x1d8
push edx
call sub.CTI.dll_ExeRemoteFunc
add esp, 0x10
jmp 0x10022c5e
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 4
push 0x10050b74
lea ecx, [ebp - 0x30]
call fcn.100411e6
lea ecx, [ebp - 0x30]
call fcn.10027650
mov dword [ebp - 0x48], eax
push str.c:wisefly.ini
mov eax, dword [ebp - 0x48]
push eax
push str.duanxian
push 0x10050b94
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x10051a9c
mov ecx, dword [ebp - 0x38]
add ecx, 0x29c
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push 0x10051aa0
mov ecx, dword [ebp - 0x38]
add ecx, 0x148
call fcn.100411e6
push 0
push 0
push 0x10050b9c
call sub.MFC42.DLL_AfxMessageBox
mov ecx, dword [ebp - 0x38]
call sym.GameLobby.dll_public:_int___thiscall_CLobbyTreaty::Disconnect_void_
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.100411da
jmp 0x10022c66
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.100411da
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.1002ba26
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1002ba4b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x560
mov dword [ebp - 0x560], ecx
lea eax, [ebp - 4]
push eax
push 0x10048c08
push 1
push 0
push 0x10048bf8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x1002bb92
lea ecx, [ebp - 0x14c]
push ecx
push 0x10048c28
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
push ecx
call dword [eax]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x1002bb86
push 0x104
lea edx, [ebp - 0x354]
push edx
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.10027650
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
lea eax, [ebp - 0x354]
push eax
mov ecx, dword [ebp - 0x14c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x14c]
push eax
call dword [edx + 0x14]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x1002bb74
push 3
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
call dword [edx + 0x4c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x1002bb74
push 1
lea ecx, [ebp - 0x148]
push ecx
push 0x104
lea edx, [ebp - 0x458]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
call dword [ecx + 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x1002bb74
lea eax, [ebp - 0x458]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.100411e6
push 0x25
mov ecx, dword [ebp + 0xc]
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x1002bb74
push 0x104
lea ecx, [ebp - 0x55c]
push ecx
lea edx, [ebp - 0x458]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x55c]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.100411e6
mov ecx, dword [ebp - 0x14c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x14c]
push eax
call dword [edx + 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
call dword [edx + 8]
xor eax, eax
cmp dword [ebp - 8], 0
setge al
mov esp, ebp
pop ebp
ret 8
Function at 0x1002ea2b
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov dword [ebp - 0x19c], ecx
mov eax, dword [ebp - 0x19c]
mov dword [eax + 0x1c], 1
mov ecx, dword [ebp - 0x19c]
mov dword [ecx + 4], 0
mov word [ebp - 0x194], 2
lea edx, [ebp - 0x190]
push edx
mov ax, word [ebp - 0x194]
push eax
call sub.WSOCK32.dll_WSAStartup
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 0
je 0x1002eab5
mov ecx, 1
test ecx, ecx
je 0x1002ea95
mov dword [ebp - 0x1a0], 0
jmp 0x1002eaa8
push str.Initilize_Error__n
call fcn.1002aa30
add esp, 4
mov dword [ebp - 0x1a0], eax
mov edx, dword [ebp - 0x19c]
mov dword [edx + 0x1c], 0
mov eax, dword [ebp - 0x198]
mov esp, ebp
pop ebp
ret

Function at 0x1002eabf
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x1c], 0
jne 0x1002eadb
mov eax, 1
jmp 0x1002ebd3
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 4], 0
je 0x1002eb0e
push 3
mov ecx, dword [ebp - 0x14]
call fcn.1002eff4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
push eax
call sub.WSOCK32.dll_closesocket
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], 0
mov eax, 1
jmp 0x1002ebd3
mov edx, dword [ebp - 0x14]
cmp dword [edx + 4], 0
jne 0x1002eb28
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x14]
mov word [edx + 8], 2
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1002eb4d
mov eax, 1
jmp 0x1002ebd3
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0xa]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x14]
add eax, 0xc
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov cx, word [ebp + 0xc]
push ecx
call sub.WSOCK32.dll_htons
mov edx, dword [ebp - 0x14]
mov word [edx + 0xa], ax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0x10
mov eax, dword [ebp - 0x14]
add eax, 8
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
push edx
call sub.WSOCK32.dll_connect
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 1
cmp dword [ebp - 0xc], 0xffffffff
jne 0x1002ebd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.1002eff4
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], 0
mov eax, 1
jmp 0x1002ebd3
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x1002ebd9
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100449f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.1000ab00
push eax
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::GetBuffer
mov dword [ebp - 0x14], eax
lea ecx, [ebp + 8]
call fcn.1000ab00
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0
jmp 0x1002ec2f
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
cmp dword [ebp - 0x18], eax
jge 0x1002eca6
push 0
push 0x400
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 4]
push eax
call sub.WSOCK32.dll_send
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x1002ec98
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x38]
call fcn.1002eff4
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100411da
mov eax, dword [ebp - 0x2c]
jmp 0x1002ed46
mov edx, dword [ebp - 0x14]
add edx, 0x400
mov dword [ebp - 0x14], edx
jmp 0x1002ec26
mov eax, dword [ebp - 0x10]
and eax, 0x800003ff
jns 0x1002ecb7
dec eax
or eax, 0xfffffc00
inc eax
test eax, eax
je 0x1002ed1c
push 0
mov ecx, dword [ebp - 0x10]
and ecx, 0x800003ff
jns 0x1002ecd0
dec ecx
or ecx, 0xfffffc00
inc ecx
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 4]
push ecx
call sub.WSOCK32.dll_send
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x1002ed1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x38]
call fcn.1002eff4
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100411da
mov eax, dword [ebp - 0x30]
jmp 0x1002ed46
mov dword [ebp - 0x14], 0x10051ae8
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100411da
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4