joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413389
Capabilities:
Check os version

Disassembly:
mov eax, 0x4cc854
call fcn.0046fad0
sub esp, 0x9c
push esi
push edi
mov esi, 0x9c
xor edi, edi
push esi
lea eax, [ebp - 0xa8]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
cmp eax, edi
jne 0x4133e7
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], 0x94
push eax
call esi
test eax, eax
je 0x413576
mov esi, dword [ebp + 8]
mov ecx, esi
call sub.MFC42.DLL_CString::Empty
mov eax, dword [ebp - 0x98]
sub eax, edi
je 0x4134c0
dec eax
je 0x41344e
dec eax
jne 0x4134cc
cmp dword [ebp - 0xa4], 4
ja 0x41341c
push str.Microsoft_Windows_NT
jmp 0x4134c5
cmp dword [ebp - 0xa4], 5
jne 0x413447
cmp dword [ebp - 0xa0], edi
jne 0x413437
push str.Microsoft_Windows_2000
jmp 0x4134c5
cmp dword [ebp - 0xa0], 1
jne 0x413447
push str.Microsoft_Windows_XP
jmp 0x4134c5
push str.Microsoft_Windows_XP_later
jmp 0x4134c5
cmp dword [ebp - 0xa4], 4
jne 0x4134b9
cmp dword [ebp - 0xa0], edi
jne 0x413484
push str.Microsoft_Windows_95
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
cmp byte [ebp - 0x93], 0x43
je 0x41347d
cmp byte [ebp - 0x93], 0x42
jne 0x4134cc
push str.OSR2
jmp 0x4134c5
cmp dword [ebp - 0xa0], 0xa
jne 0x4134a9
push str.Microsoft_Windows_98
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
cmp byte [ebp - 0x93], 0x41
jne 0x4134cc
push 0x528e78
jmp 0x4134c5
cmp dword [ebp - 0xa0], 0x5a
jne 0x4134b9
push str.Microsoft_Windows_Me
jmp 0x4134c5
push str.Microsoft_Windows_Me_later
jmp 0x4134c5
push str.Microsoft_Win32s
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
cmp dword [ebp - 0xa4], 4
ja 0x41351d
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 4], edi
and eax, 0xffff
push eax
lea eax, [ebp + 8]
push dword [ebp - 0xa0]
push dword [ebp - 0xa4]
push str._Build__d._d._d__n
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea eax, [ebp + 8]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::operator
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
jmp 0x41356e
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 4], 1
and eax, 0xffff
push eax
lea eax, [ebp - 0x94]
push dword [ebp - 0xa0]
push dword [ebp - 0xa4]
push eax
lea eax, [ebp + 8]
push str._s__Build__d._d._d__n
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x18
lea eax, [ebp + 8]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::operator
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4239a3
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x4ce8dc
call fcn.0046fad0
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xbc], ebx
je 0x423aae
push edi
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.BasicCtrlDll.dll_void___cdecl_CreateQQData_struct_IQQData___]
mov eax, dword [ebp - 0x14]
pop ecx
push 0x62
push 0x4e8480
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0xd]
push edx
mov byte [ebp - 0xd], bl
mov ecx, dword [eax]
push ebx
push 0x4e848c
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x14]
push ebx
push 0x4e8848
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov edi, dword [esi + 0xbc]
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x7c]
push 0x4e5870
mov ebx, dword [edi]
mov dword [ebp - 0x1c], eax
call sub.MFC42.DLL_CCmdTarget::GetInterface
push eax
push dword [ebp - 0x1c]
push edi
call dword [ebx + 0x24]
push 0xba6
push esi
call fcn.00423cfa
pop ecx
xor ebx, ebx
pop ecx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 1
call sub.MFC42.DLL_AfxGetAppModuleState
mov eax, dword [eax + 4]
lea edx, [ebp - 0x18]
push edx
push 0x4e7010
mov eax, dword [eax + 0xd4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
je 0x423a7d
mov edi, dword [eax]
mov dword [ebp - 0x1c], eax
call esi
push eax
push ebx
push 7
push dword [ebp - 0x1c]
call dword [edi + 0x14]
call esi
push eax
push 0x5297a8
call fcn.00401f9c
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
cmp eax, ebx
mov byte [ebp - 4], bl
pop edi
je 0x423a9d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x423aae
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x424aff
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4cea7c
call fcn.0046fad0
sub esp, 0x1cc
push ebx
push edi
mov edi, ecx
call sub.MFC42.DLL_AfxGetAppModuleState
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x1d8]
push 0x104
push ecx
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xac]
xor ebx, ebx
push 0x44
lea eax, [ebp - 0x70]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 0x70], 0x44
call sub.MSVCRT.dll_memset
add esp, 0x18
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_AfxGetAppModuleState
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x10]
push ecx
mov eax, dword [eax + 0xd4]
push eax
call dword [sym.imp.BasicCtrlDll.dll_void___cdecl_GetCurrentSysTempData_struct_IQQCore___struct_IQQData___]
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
lea edx, [ebp - 0x1c]
mov ecx, dword [eax]
push edx
push str.QQMAINFRAME_PARENT
push eax
call dword [ecx + 0x34]
push dword [ebp - 0x1c]
lea eax, [ebp - 0xd4]
push 1
push str._SessionType:_d__EMB_HWND:_ld
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xd4]
push ebx
push eax
lea eax, [ebp - 0x1d8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
jne 0x424be3
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x424bdc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004005
jmp 0x424c31
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00424cb8
cmp dword [ebp - 0x18], ebx
je 0x424c0e
lea ecx, [ebp - 0x18]
call fcn.00424cb8
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x424c1e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x424c2f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x429321
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x4cf501
call fcn.0046fad0
sub esp, 0x14
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0xac], ebx
jne 0x429365
cmp dword [esi + 0x60], ebx
jne 0x42936c
push 0x529b68
call fcn.0041205e
mov dword [esp], 0xb90
push esi
call fcn.0042b5dc
pop ecx
mov dword [esi + 0xac], 1
pop ecx
xor eax, eax
jmp 0x42949a
push 1
lea ecx, [ebp - 0x10]
pop edi
mov dword [esi + 0xbc], edi
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esi + 0x5c]
lea ecx, [ebp - 0x10]
add eax, 0xc
mov dword [ebp - 4], ebx
push eax
call fcn.0046f498
mov eax, dword [esi + 0xc0]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jne 0x42948c
cmp dword [ebp - 0x14], edi
je 0x4293ce
cmp dword [ebp - 0x14], 4
je 0x4293ce
push dword [ebp - 0x10]
call sub.WSOCK32.dll_inet_addr
mov edi, eax
inc edi
neg edi
sbb edi, edi
inc edi
jmp 0x4293d0
xor edi, edi
mov eax, dword [esi + 0x5c]
push dword [eax + 0x10]
push dword [ebp - 0x10]
push 0x529b1c
call fcn.0041205e
add esp, 0xc
cmp edi, ebx
je 0x429451
push dword [ebp - 0x10]
push 0x529ad4
call fcn.0041205e
mov eax, dword [esi + 0x5c]
pop ecx
pop ecx
push dword [eax + 0x10]
push dword [ebp - 0x10]
push 0xb91
push esi
call fcn.0042b5dc
push 0x484
call sub.MFC42.DLL_operatornew
add esp, 0x14
mov dword [ebp - 0x1c], eax
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x42944c
push ebx
push 1
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [ebp - 0x1c]
push 0xb53
push dword [esi + 0x20]
mov byte [ebp - 4], 1
call dword [sym.imp.BasicCtrlDll.dll_public:_void___thiscall_CAsyncGetHostByName::constructor_struct_HWND_____unsigned_int__class_CString__int__int_]
mov byte [ebp - 4], bl
jmp 0x429489
mov eax, dword [esi + 0x5c]
push dword [eax + 0x10]
push dword [ebp - 0x10]
push 0xb92
push esi
call fcn.0042b5dc
mov eax, dword [esi + 0x5c]
add esp, 0x10
push dword [eax + 0x10]
lea eax, [ebp - 0x10]
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_3
push 1
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.004299b0
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x439084
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi]
call sub.WSOCK32.dll_ntohl
push dword [esi + 4]
mov edi, eax
call sub.WSOCK32.dll_ntohl
mov ebx, eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
lea esi, [ebp - 0x10]
sub eax, ecx
mov dword [ebp + 8], 4
mov dword [ebp + 0xc], eax
jmp 0x4390bd
mov eax, dword [ebp + 0xc]
push dword [eax + esi]
call sub.WSOCK32.dll_ntohl
mov dword [esi], eax
add esi, 4
dec dword [ebp + 8]
jne 0x4390ba
push 0xd
xor eax, eax
pop ecx
mov edx, ebx
mov esi, ebx
shr edx, 5
add edx, dword [ebp - 0xc]
sub eax, 0x61c88647
shl esi, 4
add esi, dword [ebp - 0x10]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add edi, edx
mov edx, edi
mov esi, edi
shr edx, 5
add edx, dword [ebp - 4]
shl esi, 4
add esi, dword [ebp - 8]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add ebx, edx
dec ecx
jne 0x4390d4
push edi
call sub.WSOCK32.dll_htonl
mov esi, dword [ebp + 0x10]
push ebx
mov dword [esi], eax
call sub.WSOCK32.dll_htonl
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4394e6
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [ecx]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
bswap eax
mov edx, eax
mov eax, dword [ecx + 4]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
bswap eax
mov edi, dword [ebp + 0xc]
mov esi, eax
lea eax, [ebp - 0x10]
push 4
lea ecx, [ebp - 0x10]
sub edi, eax
pop ebx
mov eax, dword [edi + ecx]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
bswap eax
mov dword [ecx], eax
add ecx, 4
dec ebx
jne 0x439519
push 0x10
xor eax, eax
pop ecx
mov edi, esi
mov ebx, esi
shr edi, 5
add edi, dword [ebp - 0xc]
sub eax, 0x61c88647
shl ebx, 4
add ebx, dword [ebp - 0x10]
xor edi, ebx
lea ebx, [eax + esi]
xor edi, ebx
add edx, edi
mov edi, edx
mov ebx, edx
shr edi, 5
add edi, dword [ebp - 4]
shl ebx, 4
add ebx, dword [ebp - 8]
xor edi, ebx
lea ebx, [eax + edx]
xor edi, ebx
add esi, edi
dec ecx
jne 0x439531
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
bswap eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
bswap eax
pop edi
pop esi
mov dword [ecx + 4], eax
pop ebx
leave
ret
Function at 0x439588
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [ecx]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
bswap eax
mov esi, eax
mov eax, dword [ecx + 4]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
bswap eax
mov edi, dword [ebp + 0xc]
mov edx, eax
lea eax, [ebp - 0x10]
push 4
lea ecx, [ebp - 0x10]
sub edi, eax
pop ebx
mov eax, dword [edi + ecx]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
bswap eax
mov dword [ecx], eax
add ecx, 4
dec ebx
jne 0x4395bb
push 0x10
mov eax, 0xe3779b90
pop ecx
mov edi, esi
mov ebx, esi
shr edi, 5
add edi, dword [ebp - 4]
shl ebx, 4
add ebx, dword [ebp - 8]
xor edi, ebx
lea ebx, [eax + esi]
xor edi, ebx
sub edx, edi
mov edi, edx
mov ebx, edx
shr edi, 5
add edi, dword [ebp - 0xc]
shl ebx, 4
add ebx, dword [ebp - 0x10]
xor edi, ebx
lea ebx, [eax + edx]
xor edi, ebx
add eax, 0x61c88647
sub esi, edi
dec ecx
jne 0x4395d6
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 8]
bswap eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
bswap eax
pop edi
pop esi
mov dword [ecx + 4], eax
pop ebx
leave
ret
Function at 0x43962d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 8
add eax, 0xa
pop ebx
cdq
mov ecx, ebx
idiv ecx
test edx, edx
mov dword [ebp - 4], edx
je 0x439652
mov eax, ebx
sub eax, edx
mov dword [ebp - 4], eax
mov esi, dword [sym.imp.MSVCRT.dll_rand]
call esi
mov ecx, eax
mov eax, dword [ebp - 4]
and cl, 0xf8
push 1
or cl, al
pop edi
mov byte [ebp - 0xc], cl
mov ecx, eax
dec eax
test ecx, ecx
je 0x439681
inc eax
mov dword [ebp - 4], eax
call esi
mov byte [ebp + edi - 0xc], al
inc edi
dec dword [ebp - 4]
jne 0x439675
push ebx
lea eax, [ebp - 0x14]
push 0
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [ebp + 0x18]
lea eax, [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 4], eax
and dword [esi], 0
mov dword [ebp + 0x18], 1
cmp edi, ebx
jge 0x4396b7
call dword [sym.imp.MSVCRT.dll_rand]
mov byte [ebp + edi - 0xc], al
inc edi
inc dword [ebp + 0x18]
cmp edi, ebx
jne 0x4396f0
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0xc]
xor edi, edi
sub ecx, eax
lea eax, [ebp + edi - 0xc]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc edi
cmp edi, ebx
jl 0x4396c3
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push dword [ebp + 0x10]
push eax
call fcn.004394e6
mov eax, dword [ebp + 0x14]
add dword [esi], ebx
add esp, 0xc
xor edi, edi
add dword [ebp + 0x14], ebx
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 2
jle 0x4396a3
cmp dword [ebp + 0xc], 0
je 0x43974d
cmp edi, ebx
jge 0x439712
mov eax, dword [ebp + 8]
inc edi
inc dword [ebp + 8]
dec dword [ebp + 0xc]
mov al, byte [eax]
cmp edi, ebx
mov byte [ebp + edi - 0xd], al
jne 0x4396f6
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0xc]
xor edi, edi
sub ecx, eax
lea eax, [ebp + edi - 0xc]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc edi
cmp edi, ebx
jl 0x43971e
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push dword [ebp + 0x10]
push eax
call fcn.004394e6
mov eax, dword [ebp + 0x14]
add dword [esi], ebx
add esp, 0xc
xor edi, edi
add dword [ebp + 0x14], ebx
mov dword [ebp - 4], eax
jmp 0x4396f6
mov dword [ebp + 0x18], 1
cmp edi, ebx
jge 0x439763
and byte [ebp + edi - 0xc], 0
inc edi
inc dword [ebp + 0x18]
cmp edi, ebx
jne 0x43979c
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0xc]
xor edi, edi
sub ecx, eax
lea eax, [ebp + edi - 0xc]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc edi
cmp edi, ebx
jl 0x43976f
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push dword [ebp + 0x10]
push eax
call fcn.004394e6
mov eax, dword [ebp + 0x14]
add dword [esi], ebx
add esp, 0xc
xor edi, edi
add dword [ebp + 0x14], ebx
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 7
jle 0x439754
pop edi
pop esi
pop ebx
leave
ret
Function at 0x439b83
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x5c
push 0
push esi
call sub.MSVCRT.dll_memset
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
add esp, 0xc
and dword [esi + 0x58], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
pop ebp
ret
Function at 0x43b7ee
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 0x10]
call sub.MSVCRT.dll_strlen
mov esi, dword [ebp + 8]
pop ecx
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push 1
push eax
mov ecx, esi
call fcn.0043b779
lea eax, [ebp - 4]
push 2
push eax
mov ecx, esi
call fcn.0043b779
movzx eax, word [ebp - 4]
push eax
mov ecx, esi
push dword [ebp + 0x10]
call fcn.0043b779
movzx edi, word [ebp - 4]
mov eax, dword [esi]
xor ecx, ecx
mov cl, byte [ebp - 3]
sub eax, edi
add eax, dword [esi + 4]
xor cl, byte [ebp - 4]
xor edx, edx
test edi, edi
jle 0x43b85a
mov bl, byte [edx + eax]
not bl
xor bl, cl
mov byte [edx + eax], bl
inc edx
movzx edi, word [ebp - 4]
cmp edx, edi
jl 0x43b847
movzx eax, byte [ebp + 0xc]
dec eax
cmp eax, 9
ja case.0x43b868.8
jmp dword [eax*4 + 0x43b9af]
push 4
lea ecx, [ebp + 0x14]
pop eax
push eax
push ecx
mov dword [ebp + 0x10], eax
push eax
lea eax, [ebp + 0x10]
jmp 0x43b8c4
push 1
pop eax
mov dword [ebp + 0x10], eax
push eax
lea eax, [ebp + 0x14]
push eax
push 4
lea eax, [ebp + 0x10]
jmp 0x43b8c4
push 2
pop eax
mov dword [ebp + 0x10], eax
push eax
lea eax, [ebp + 0x14]
push eax
push 4
lea eax, [ebp + 0x10]
jmp 0x43b8c4
push 4
lea ecx, [ebp + 0x14]
pop eax
push eax
push ecx
mov dword [ebp + 0x10], eax
push eax
lea eax, [ebp + 0x10]
jmp 0x43b8c4
push 4
lea ecx, [ebp + 0x14]
pop eax
push eax
push ecx
mov dword [ebp + 0x10], eax
push eax
lea eax, [ebp + 0x10]
push eax
mov ecx, esi
call fcn.0043b779
mov ecx, eax
call fcn.0043b779
jmp case.0x43b868.8
mov eax, dword [ebp + 0x14]
push 4
mov ecx, esi
mov ebx, dword [eax - 8]
lea eax, [ebp + 0x10]
push eax
mov dword [ebp + 0x10], ebx
call fcn.0043b779
mov edx, dword [ebp + 0x14]
mov ecx, eax
push dword [edx - 8]
push edx
call fcn.0043b779
mov eax, dword [esi]
xor ecx, ecx
sub eax, ebx
mov cl, bh
add eax, dword [esi + 4]
xor cl, bl
xor esi, esi
test ebx, ebx
jle case.0x43b868.8
mov dl, byte [esi + eax]
not dl
xor dl, cl
mov byte [esi + eax], dl
inc esi
cmp esi, ebx
jl 0x43b913
jmp case.0x43b868.8
mov eax, dword [ebp + 0x14]
and dword [ebp + 8], 0
and dword [ebp + 0x10], 0
lea edx, [ebp + 8]
mov ecx, dword [eax]
push edx
lea edx, [ebp + 0x10]
push edx
push eax
call dword [ecx + 0x74]
mov eax, dword [ebp + 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.0043b779
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 8]
call fcn.0043b779
push dword [ebp + 8]
jmp 0x43b9a4
mov eax, dword [ebp + 0x14]
and dword [ebp + 8], 0
and dword [ebp + 0x10], 0
lea edx, [ebp + 8]
mov ecx, dword [eax]
push edx
lea edx, [ebp + 0x10]
push edx
push eax
call dword [ecx + 0xb8]
mov eax, dword [ebp + 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.0043b779
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 8]
call fcn.0043b779
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x445fe4
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x4d30fd
call fcn.0046fad0
mov eax, 0x2008
call fcn.0046fb40
push ebx
push edi
push dword [ebp + 0x14]
mov edi, ecx
lea ecx, [ebp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp + 0xc]
xor ebx, ebx
add eax, 0xa
mov dword [ebp - 4], ebx
cmp eax, 0x2000
jle 0x44604d
push 8
call sub.MFC42.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp + 0x10], ecx
cmp ecx, ebx
mov byte [ebp - 4], 1
je 0x446037
push 1
call sub.MFC42.DLL_CException::CException_1
jmp 0x446039
xor eax, eax
mov byte [ebp - 4], bl
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push 0x509050
push eax
call sub.MSVCRT.dll__CxxThrowException
push esi
mov byte [ebp - 0x2014], bl
push dword [ebp + 0x14]
mov byte [ebp - 0x2013], bl
mov byte [ebp - 0x2012], bl
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x446099
mov eax, dword [ebp + 0x14]
mov byte [ebp - 0x2011], 3
mov ebx, dword [eax - 8]
push ebx
push eax
lea eax, [ebp - 0x200f]
mov byte [ebp - 0x2010], bl
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea esi, [ebx + 5]
jmp 0x4460b8
lea eax, [ebp - 0x14]
push 4
push eax
lea eax, [ebp - 0x2010]
push eax
mov byte [ebp - 0x2011], 1
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 8
pop esi
push dword [ebp + 0x10]
call sub.WSOCK32.dll_htons
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 2
push eax
lea eax, [ebp + esi - 0x2014]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp + 0xc]
inc esi
inc esi
push dword [ebp + 8]
lea eax, [ebp + esi - 0x2014]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [edi + 0x58]
add esp, 0x18
add esi, dword [ebp + 0xc]
mov ecx, edi
push dword [ebp + 0x18]
push eax
lea eax, [ebp - 0x2014]
push dword [edi + 0x5c]
push esi
push eax
call sub.MFC42.DLL_CAsyncSocket::SendTo
cmp eax, esi
pop esi
je 0x44611f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x44612e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x449365
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
push 0x40
lea edi, [esi + 0x1c]
push ebx
push edi
call sub.MSVCRT.dll_memset
lea eax, [esi + 0x9c]
push 0x40
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [esi + 0x5c]
push 0x40
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x10]
add esp, 0x24
cmp eax, ebx
mov word [esi + 0xdc], bx
mov dword [esi + 0xe0], ebx
je 0x4493be
cmp byte [eax], bl
je 0x4493be
push 0x3f
push eax
push edi
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x4493dc
cmp byte [eax], bl
je 0x4493dc
push 0x3f
push eax
lea eax, [esi + 0x9c]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x4493f7
cmp byte [eax], bl
je 0x4493f7
push 0x3f
push eax
lea eax, [esi + 0x5c]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x449468
cmp byte [edi], bl
je 0x449468
push edi
call sub.MSVCRT.dll_strlen
pop ecx
xor ecx, ecx
cmp eax, ebx
jle 0x449426
mov dl, byte [ecx + edi]
cmp dl, 0x39
jg 0x44941c
cmp dl, 0x30
jge 0x449421
cmp dl, 0x2e
jne 0x449434
inc ecx
cmp ecx, eax
jl 0x44940f
push edi
call sub.WSOCK32.dll_inet_addr
mov dword [esi + 0xe0], eax
jmp 0x449454
push edi
call sub.WSOCK32.dll_gethostbyname
cmp eax, ebx
je 0x449468
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [esi + 0xe0]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp + 0xc]
call sub.WSOCK32.dll_htons
push 1
mov word [esi + 0xdc], ax
pop eax
jmp 0x44946a
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14