joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ea80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x414707
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x6c], ebx
call fcn.00412f62
lea ecx, [esp + 0xc]
mov byte [esp + 0x6c], 1
call fcn.00412f62
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 2
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x50]
mov byte [esp + 0x6c], 3
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 4
call sub.MFC42.DLL_CStringArray::CStringArray
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x50]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
push ecx
lea eax, [esp + 0x84]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov byte [esp + 0x80], 5
call sub.MFC42.DLL_CString::CString_2
call fcn.0040ec80
add esp, 0x10
lea ecx, [esp + 0x24]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push ecx
lea eax, [esp + 0x8c]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call sub.MFC42.DLL_CString::CString_2
call fcn.0040f000
mov eax, dword [esp + 0x48]
add esp, 0x18
xor esi, esi
test eax, eax
jle 0x40ec0f
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push edx
mov eax, dword [ecx + esi*4]
push eax
call edi
add esp, 8
test eax, eax
jne 0x40ebe7
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40eb86
lea eax, [esp + 0xc]
jmp 0x40eba0
push 0x41a894
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_1
or ebx, 1
mov dword [esp + 0x18], ebx
mov byte [esp + 0x6c], 6
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax]
push edx
mov edx, dword [esp + 0x18]
mov ecx, dword [ecx + esi*4]
push 0
push edx
push eax
push ecx
call fcn.0040f4b0
add esp, 0x14
mov dword [esp + 0x6c], 5
test bl, 1
je 0x40ebdc
and ebx, 0xfffffffe
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString
push esi
call fcn.0040f670
add esp, 4
jmp 0x40ec02
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0
mov eax, dword [eax + esi*4]
push 0x41a894
push eax
call fcn.0040f4b0
add esp, 0x14
mov eax, dword [esp + 0x30]
inc esi
cmp esi, eax
jl 0x40eb62
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 4
call fcn.00413238
lea ecx, [esp + 0x50]
mov byte [esp + 0x6c], 3
call fcn.00413238
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 2
call fcn.00413238
lea ecx, [esp + 0xc]
mov byte [esp + 0x6c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x6c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x64]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x64
ret
Function at 0x40f2b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x414838
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 2
call fcn.00412f62
lea eax, [esp + 0x34]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::operator
push str._sys.bin
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esp + 0x38]
mov dword [esp + 8], 0
lea edx, [esp + 4]
mov eax, dword [ecx - 8]
lea ecx, [esp + 8]
inc eax
push edx
push ecx
push eax
push eax
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x20]
call fcn.00402010
mov edx, dword [esp + 0xc]
push 0x1001
push edx
lea ecx, [esp + 0x1c]
call fcn.004131a8
lea eax, [esp + 4]
push 4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_CFile::Write
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
push ecx
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
mov eax, dword [eax - 8]
push edx
inc eax
lea ecx, [esp + 0x44]
push eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x20]
call fcn.00402010
lea eax, [esp + 4]
push 4
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
push ecx
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
mov eax, dword [esp + 0x40]
push 1
neg eax
sbb al, al
lea ecx, [esp + 7]
and al, 0xe
add al, 0x46
mov byte [esp + 7], al
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
mov edx, dword [esp + 0x44]
lea eax, [esp + 3]
neg edx
sbb dl, dl
push 1
and dl, 0xe
push eax
add dl, 0x46
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb], dl
call sub.MFC42.DLL_CFile::Write
mov ecx, dword [esp + 0x48]
lea edx, [esp + 3]
neg ecx
sbb cl, cl
push 1
and cl, 0xe
push edx
add cl, 0x46
mov byte [esp + 0xb], cl
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
mov eax, dword [esp + 8]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x30
ret

Function at 0x40f490
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
jle 0x40f4ad
mov ecx, dword [esp + 4]
push ebx
mov bl, byte [eax + ecx]
xor bl, al
mov byte [eax + ecx], bl
inc eax
cmp eax, edx
jl 0x40f49f
pop ebx
ret
Function at 0x40f4b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x18c
lea eax, [esp]
push ebx
push eax
xor ebx, ebx
push str.SoftwarePig3
push closesocket
mov dword [esp + 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp eax, ebx
jne 0x40f667
push ebp
push esi
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea ecx, [esp + 0x20]
push str.PigID_d
push ecx
mov dword [esp + 0x24], 3
mov dword [esp + 0x20], ebx
stosb byte es:[edi], al
xor esi, esi
call ebp
mov ecx, 0x57
xor eax, eax
lea edi, [esp + 0x4c]
add esp, 0xc
mov dword [esp + 0x3c], ebx
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push ebx
push edx
push eax
mov dword [esp + 0x2c], 0x160
call edi
test eax, eax
jne 0x40f585
inc esi
lea ecx, [esp + 0x1c]
push esi
push str.PigID_d
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x14]
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push ebx
push edx
push eax
call edi
test eax, eax
je 0x40f554
mov edx, dword [esp + 0x1ac]
mov ecx, 0x58
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1b0]
mov ecx, dword [esp + 0x1a8]
cmp eax, ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
je 0x40f5bb
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x1a0]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x4c]
push eax
push ecx
call esi
cmp dword [esp + 0x3c], ebx
je 0x40f5e5
mov edx, dword [esp + 0x1a4]
lea eax, [esp + 0x6c]
push edx
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x4c]
push ecx
call esi
lea edx, [esp + 0x4c]
push eax
push edx
call fcn.0040f490
add esp, 8
lea eax, [esp + 0x6c]
push eax
call esi
lea ecx, [esp + 0x6c]
push eax
push ecx
call fcn.0040f490
add esp, 8
lea edx, [esp + 0x98]
push 0x104
push str.PigIM.zhongsou.com
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x3c]
push 0x160
push eax
push 3
lea ecx, [esp + 0x28]
push ebx
push ecx
push edx
mov dword [esp + 0xac], 0x1466
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18c
ret

Function at 0x40f670
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push str.SoftwarePig3
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40f6bd
mov edx, dword [esp]
push esi
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push eax
push str.LastUser
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
Function at 0x40f8a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x14]
pop edi
sub eax, 0
je 0x40f9e7
dec eax
je 0x40f96b
dec eax
jne 0x40f9f1
mov eax, dword [esp + 4]
cmp eax, 4
ja 0x40f90d
mov ecx, dword [esp + 0x98]
mov dword [0x419fe0], 1
push ecx
call fcn.0040fb80
add esp, 4
add esp, 0x94
ret
cmp eax, 5
jne 0x40f94a
mov eax, dword [esp + 8]
test eax, eax
jne 0x40f93b
mov ecx, dword [esp + 0x98]
mov dword [0x419fe0], 2
push ecx
call fcn.0040fb80
add esp, 4
add esp, 0x94
ret
cmp eax, 1
mov dword [0x419fe0], 3
je 0x40f954
mov dword [0x419fe0], 8
mov ecx, dword [esp + 0x98]
push ecx
call fcn.0040fb80
add esp, 4
add esp, 0x94
ret
cmp dword [esp + 4], 4
jne 0x40f9d0
mov eax, dword [esp + 8]
test eax, eax
jne 0x40f99b
mov edx, dword [esp + 0x98]
mov dword [0x419fe0], 5
push edx
call fcn.0040fa00
add esp, 4
add esp, 0x94
ret
cmp eax, 0xa
jne 0x40f9c1
mov edx, dword [esp + 0x98]
mov dword [0x419fe0], 6
push edx
call fcn.0040fa00
add esp, 4
add esp, 0x94
ret
cmp eax, 0x5a
jne 0x40f9d0
mov dword [0x419fe0], 7
mov edx, dword [esp + 0x98]
push edx
call fcn.0040fa00
add esp, 4
add esp, 0x94
ret
mov dword [0x419fe0], 4
xor eax, eax
add esp, 0x94
ret
Function at 0x410070
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x50c
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
lea esi, [ebx + 0x138]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi]
push 0x5c
mov ecx, esi
mov edi, dword [eax - 8]
call sub.MFC42.DLL_CString::ReverseFind
dec edi
cmp eax, edi
jne 0x4100b9
mov ecx, dword [esi]
lea edx, [esp + 0x18]
push ecx
push 0x4199bc
push edx
jmp 0x4100c6
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push eax
push str._s_uninstall
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x18]
push 0x419928
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
xor edx, edx
add esp, 8
cmp esi, edx
jne 0x4100f8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x50c
ret
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x11d]
mov byte [esp + 0x11c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
stosb byte es:[edi], al
test byte [esi + 0xc], 0x10
jne 0x4101a7
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x11c]
push esi
rep stosd dword es:[edi], eax
push 1
lea eax, [esp + 0x1c]
push 4
push eax
call ebp
mov eax, dword [esp + 0x24]
add esp, 0x10
cmp eax, 0x400
jg 0x4101be
test eax, eax
jl 0x4101be
push esi
push eax
lea ecx, [esp + 0x124]
push 1
push ecx
call ebp
push esi
push 1
lea edx, [esp + 0x28]
push 4
push edx
call ebp
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x20
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4101a1
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x11c]
push eax
push ecx
lea ecx, [ebx + 0x6a8]
call fcn.00412530
test byte [esi + 0xc], 0x10
je 0x41012b
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50c
ret
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50c
ret

Function at 0x4112b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4112d4
xor eax, eax
add esp, 0xc
ret 4
mov edx, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.ProgramFilesDir
push ecx
mov dword [esp + 0x1c], 0x514
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x411314
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0xc
ret 4
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0xc
ret 4
Function at 0x411470
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x4149c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 0x6c]
push 0x5c
mov ecx, esi
call sub.MFC42.DLL_CString::Find_1
push eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::Left
mov edi, dword [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x34], 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x419264
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, 0xa
call fcn.004134c0
mov esi, eax
lea ecx, [ebx + 0x68]
push esi
push 0x41a788
push ecx
call sub.MFC42.DLL_CString::Format
lea eax, [esi - 0x2800]
add esp, 0xc
cdq
mov dword [ebx + 0x80], eax
mov eax, edx
test eax, eax
mov dword [ebx + 0x84], edx
jg 0x41157a
jl 0x411566
mov eax, dword [ebx + 0x80]
test eax, eax
jae 0x41157a
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0
mov edx, dword [ebx + 0x84]
mov eax, dword [ebx + 0x80]
push edx
push eax
lea ecx, [ebx + 0x64]
push 0x41a788
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [ebx + 0x80]
mov eax, dword [ebx + 0x84]
add esp, 0x10
or edx, eax
mov dword [esp + 0x34], 0xffffffff
lea ecx, [esp + 0xc]
pop edi
pop esi
pop ebx
jne 0x4115ce
call sub.MFC42.DLL_CString::CString
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x411840
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
mov ecx, 0x64
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
pop edi
je 0x41187c
push eax
call fcn.00411820
add esp, 4
or eax, 0xffffffff
add esp, 0x190
ret
mov ax, word [esp]
cmp al, 2
jne 0x411896
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x411896
xor eax, eax
add esp, 0x190
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0x276c
call fcn.00411820
add esp, 4
or eax, 0xffffffff
add esp, 0x190
ret
Function at 0x4118d0
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push 4
push eax
push 4
push 0xffff
push ecx
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x41190b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00411820
add esp, 4
or eax, 0xffffffff
pop ecx
ret
xor eax, eax
pop ecx
ret

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

Disassembly:
sub esp, 0x10
mov edx, dword [esp + 0x1c]
xor ecx, ecx
xor eax, eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 8], edx
push eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
push eax
lea edx, [esp + 0xc]
lea eax, [esp + 8]
mov dword [esp + 0x14], ecx
push edx
mov edx, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push 1
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x411a81
mov eax, dword [esp]
add esp, 0x10
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
add esp, 0x10
ret

Function at 0x411ba0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
xor eax, eax
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 4], ecx
push eax
push eax
mov dword [esp + 0x10], eax
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push 1
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x411beb
mov eax, dword [esp]
add esp, 0xc
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
add esp, 0xc
ret
Function at 0x411d80
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 0x14]
sub esp, 0x2c
test eax, eax
push ebx
push ebp
jne 0x411da5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411820
add esp, 4
or eax, 0xffffffff
pop ebp
pop ebx
add esp, 0x2c
ret
mov ebx, dword [esp + 0x38]
mov ebp, dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x10
push eax
push ebx
call ebp
cmp eax, 0xffffffff
jne 0x411dd2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00411820
add esp, 4
or eax, 0xffffffff
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push esi
push edi
push 0
push 0
push 0
push 0
push eax
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_WSAConnect]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call edi
cmp esi, 0xffffffff
jne 0x411ea8
cmp eax, 0x2733
jne 0x411ea8
mov edx, dword [esp + 0x4c]
push 1
push edx
lea eax, [esp + 0x58]
push 1
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
test eax, eax
je 0x411e46
call edi
push eax
call fcn.00411820
mov eax, dword [esp + 0x54]
add esp, 4
or esi, esi
push 0
push eax
push ebx
call ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x10]
push ecx
push edx
push ebx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp eax, 0xffffffff
jne 0x411e7e
call edi
push eax
call fcn.00411820
mov eax, dword [esp + 0x54]
add esp, 4
or esi, 0xffffffff
push 0
push eax
push ebx
call ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x24]
test eax, eax
je 0x411ea6
push eax
call fcn.00411820
mov eax, dword [esp + 0x54]
add esp, 4
or esi, 0xffffffff
push 0
push eax
push ebx
call ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
xor esi, esi
mov eax, dword [esp + 0x50]
push 0
push eax
push ebx
call ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x411ef0
Capabilities:
Create thread
Resolve dns

Disassembly:
sub esp, 0x9c
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
push esi
push edi
mov edi, dword [esp + 0xac]
push edi
call ebx
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x411fc1
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x411f98
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x411f98
cmp dword [esp + 0x24], 2
jne 0x411f98
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push 0
push edi
push 0x411ec0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x411f98
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
push esi
je 0x411f92
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x9c
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x411fb0
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x9c
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call ebx
pop edi
pop esi
pop ebx
add esp, 0x9c
ret

Function at 0x412710
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push 0x419924
mov esi, ecx
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x412735
pop esi
or eax, 0xffffffff
pop ebx
ret 4
mov esi, dword [esi + 4]
test esi, esi
je 0x412784
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fwrite]
push edi
mov edi, dword [esi]
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
push 4
push ecx
call ebp
mov edx, dword [esp + 0x24]
mov eax, dword [esi]
push ebx
push 1
push edx
push eax
call ebp
push ebx
push 1
lea ecx, [esi + 4]
push 4
push ecx
call ebp
mov esi, dword [esi + 8]
add esp, 0x30
test esi, esi
jne 0x412744
pop edi
pop ebp
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop esi
pop ebx
ret 4
Function at 0x402ba4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404084
test esi, esi
jne 0x402bdb
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404174
jmp 0x402bfc
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402a40
mov dword [esp], eax
test esi, esi
je 0x402bfc
cmp dword [ebx], 0
je 0x402bfc
dec esi
jmp 0x402be3
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x40359c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40e018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403634
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403614
xor eax, eax
push ebp
push 0x40360d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403650
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403614
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40e018]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40e018], ax
mov esp, ebp
pop ebp
ret

Function at 0x403f00
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40f044], 0
je 0x403f61
cmp word [0x40f218], 0xd7b2
jne 0x403f29
cmp dword [0x40f220], 0
jbe 0x403f29
mov eax, 0x40f214
call dword [0x40f230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40e064
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403f88
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40e024], 0
jne 0x403f7d
push 0
push 0x40e05c
push 0x40e064
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret