joyce8/EMBER2024-capa huggingface dataset:
Function at 0x630e54
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1007bbd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x1007d3dc]
push 0
lea ecx, [esp + 0x20]
call 0x659e08
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.006307f4
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call 0x659d36
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call 0x6565e0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call 0x6565e0
push 1
push 0
push 0
mov ecx, esi
call 0x656588
push 1
push 0
push 1
mov ecx, esi
call 0x656588
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call 0x659e7a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x630fd4
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1007bbf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call 0x659e08
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.006307f4
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call 0x659d36
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x1007d3dc]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x631098
cmp dword [esp + 0x40], 1
jne 0x631096
cmp ecx, eax
jge 0x631098
mov eax, ecx
cmp eax, 0xc8
jge 0x6310a4
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00630e54
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x1007d3e0]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call 0x659e7a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x631814
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1007bc63
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call 0x654a00
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x100a8c08
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x100a7788
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x1007d0b8]
push eax
mov ecx, edi
call 0x65a0b0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call 0x65b5cc
test eax, eax
je 0x631930
mov ecx, dword [esp + 0x3c]
call 0x65a0dd
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x1007d3bc]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x6318f4
push edi
mov ecx, esi
call 0x657730
mov ecx, esi
call fcn.00631a94
cmp dword [esp + 0x38], 1
jne 0x631929
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call 0x65786b
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x634344
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x634377
push esi
call fcn.00637444
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x634370
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x6343fd
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x6343e6
mov eax, dword [esi + 8]
test eax, eax
je 0x63439b
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x6343e2
cmp eax, 2
je 0x6343e6
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x63438e
cmp eax, 3
je 0x6343c1
cmp eax, 1
jne 0x63438e
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x63438e
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x63438e
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00634424
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x63440c
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00634424
add esp, 4
pop esi
ret
Function at 0x4016f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x408c0f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov edi, 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString_1
mov ebp, dword [esp + 0x30]
mov byte [esp + 0x24], 3
test ebp, ebp
jne 0x401777
mov esi, dword [esp + 0x2c]
push 0x40d6f0
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x10], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
lea eax, [esp + 0x18]
mov ecx, ebp
push eax
call fcn.00402890
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x401795
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x18]
mov esi, dword [esi]
test eax, eax
mov dword [esp + 0x14], esi
je 0x4017c0
mov edi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4017c0
test edi, edi
je 0x4017c0
push 1
mov ecx, edi
call fcn.00401880
test esi, esi
je 0x4017ee
mov eax, dword [esi + 4]
test eax, eax
jne 0x4017e9
mov ecx, dword [esi]
push ecx
call fcn.004088fc
test eax, eax
mov dword [esi + 4], eax
jne 0x4017e9
cmp dword [esi], 0
je 0x4017e9
push 0x8007000e
call fcn.004087da
mov eax, dword [esi + 4]
jmp 0x4017f0
xor eax, eax
push eax
lea edx, [esp + 0x10]
push 0x40d050
push edx
call sub.MFC42.DLL_CString::Format
mov edi, dword [esp + 0x38]
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, edi
push eax
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 1
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString
test esi, esi
mov byte [esp + 0x24], 1
je 0x401850
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x401850
mov ecx, esi
call fcn.004018c0
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edx, dword [ebp]
push ebp
mov byte [esp + 0x28], 0
call dword [edx + 8]
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x403420
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1410
call fcn.004085a0
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ebp, ecx
push 0x100
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push ebx
push 0x4000000
push ebx
push ebx
mov ecx, 0x403
xor eax, eax
lea edi, [esp + 0x424]
push ebx
push ebx
push str..IDE21201.VXD
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403498
lea eax, [esp + 0x10]
push ebx
push eax
lea ecx, [esp + 0x41c]
push 4
push ecx
push ebx
push ebx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4034a3
push str.ERROR:_Could_not_open_IDE21201.VXD_file
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor esi, esi
lea edi, [esp + 0x420]
mov al, byte [esp + esi + 0x418]
test al, al
je 0x4034f4
mov edx, esi
shr edx, 1
mov al, byte [esp + edx + 0x414]
test al, al
je 0x4034f4
lea ecx, [esp + 0x14]
mov eax, edi
mov edx, 0x100
xor ebx, ebx
add ecx, 4
mov bx, word [eax]
add eax, 2
mov dword [ecx - 4], ebx
dec edx
jne 0x4034d1
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
push esi
call fcn.00402f20
mov ebx, 1
inc esi
add edi, 0x200
cmp esi, 8
jb 0x4034ac
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x1410
ret

Function at 0x4035f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x408fef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
lea eax, [esp + 0xc]
push esi
push eax
mov dword [esp + 0x10], 0
call sub.HID.DLL_HidD_GetHidGuid
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x10], 0
call dword [sym.imp.RPCRT4.dll_UuidToStringA]
mov eax, dword [esp + 8]
lea ecx, [esp + 4]
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 4]
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CString::MakeUpper
mov esi, dword [esp + 0x30]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0xc], 1
lea ecx, [esp + 4]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x403b80
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4091a5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebx
push ebp
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebx
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0xa
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersion
lea edi, [esp + 0x128]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x36
lea edi, [esp + 0x152]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov al, byte [0x40d6f0]
mov ecx, 0x40
mov byte [esp + 0x24], al
xor eax, eax
lea edi, [esp + 0x25]
lea edx, [esp + 0x128]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
mov ebp, 1
stosw word es:[edi], ax
push ecx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x240], ebp
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
je 0x403c2f
mov esi, dword [esp + 0x23c]
push 0x40d6f0
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x14], ebp
jmp 0x403cad
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push ecx
push edx
push ebx
push str.ProductId
push eax
mov dword [esp + 0x34], 0x104
mov dword [esp + 0x38], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x403c74
mov esi, dword [esp + 0x23c]
push 0x40d6f0
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
jmp 0x403ca9
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x24]
lea eax, [esp + 0x10]
push edx
push 0x40d050
push eax
call sub.MFC42.DLL_CString::Format
mov esi, dword [esp + 0x248]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x234], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x228
ret 4
Function at 0x403ce0
Capabilities:
Get mac address on windows

Disassembly:
push 0xffffffffffffffff
push 0x4091d7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push 0x40d6f0
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString_2
push 0x40d6f0
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x10]
mov byte [esp + 0x20], 2
push eax
push ebx
xor esi, esi
mov dword [esp + 0x18], ebx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x403d4f
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov esi, eax
lea edx, [esp + 0x10]
push edx
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, ebx
jne 0x403dc5
cmp esi, ebx
je 0x403dab
push edi
mov eax, dword [esi + 0x190]
xor edi, edi
cmp eax, ebx
jbe 0x403da4
xor eax, eax
lea ecx, [esp + 0x10]
mov al, byte [esi + edi + 0x194]
push eax
push 0x40d248
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x10]
lea ecx, [esp + 0xc]
push edx
call fcn.004082c0
mov eax, dword [esi + 0x190]
inc edi
cmp edi, eax
jb 0x403d6f
mov esi, dword [esi]
cmp esi, ebx
jne 0x403d63
pop edi
mov esi, dword [esp + 0x28]
lea eax, [esp + 8]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x14], 1
jmp 0x403ddd
mov esi, dword [esp + 0x28]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x14], 1
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4

Function at 0x403e10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x409215
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push esi
lea eax, [esp + 0xc]
push 0x104
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
mov esi, dword [esp + 0x120]
lea edx, [esp + 4]
push edx
mov ecx, esi
mov dword [esp + 0x11c], 1
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x118], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret

Function at 0x405170
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
mov esi, ecx
push eax
push 0x202
mov dword [esi], 0x40a41c
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, esi
pop esi
add esp, 0x190
ret
Function at 0x4051d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x1c]
xor esi, esi
mov dword [esp + 0x1c], edi
push 0
lea eax, [esi + ebp]
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
je 0x405211
cmp eax, 0xffffffff
je 0x405211
add esi, eax
sub edi, eax
cmp esi, dword [esp + 0x1c]
je 0x405221
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4051e6
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc

Function at 0x405230
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Print debug messages

Disassembly:
sub esp, 0x10
push esi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x405254
xor eax, eax
pop esi
add esp, 0x10
ret 0xc
mov eax, dword [esp + 0x20]
mov word [esp + 4], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0x1c]
mov word [esp + 6], ax
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 8], eax
mov eax, dword [esi]
lea edx, [esp + 4]
push 0x10
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4052a3
push str.NotifyServicStop__::connect::
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop esi
add esp, 0x10
ret 0xc
mov eax, 1
pop esi
add esp, 0x10
ret 0xc
Function at 0x405920
Capabilities:
Create process on windows
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x409381
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x410
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
xor ebx, ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x424], ebx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x424], 1
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov byte [esp + 0x424], 2
stosb byte es:[edi], al
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
lea ecx, [esp + 0x1c]
push 0x400
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push str.__s_
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x28]
add esp, 0xc
rep stosd dword es:[edi], eax
push ebx
lea ecx, [esp + 0x20]
push 0x22
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edx, [esp + 0x1c]
lea eax, [esp + 0xc]
push edx
push str._sCLENT_UNINSTALL.exe
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::MakeLower
push str.temp
push str.history
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Replace
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
call fcn.00405a90
cmp eax, ebx
je 0x405a37
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ebx
push ebx
push eax
push ecx
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x424], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x424], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x424], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x41c
ret
Function at 0x405a90
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4093a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], ebx
call fcn.004082e4
mov eax, dword [esp + 0x2c]
push ebx
push 0x1001
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x405af8
push str.UNINSTALL
push 0x81
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
jne 0x405b2c
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFile::Flush
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x406060
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x409468
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x1c], 0x40a65c
mov dword [esp + 0x38], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
push ecx
lea eax, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
mov byte [esp + 0x40], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x14]
call fcn.00401000
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 2
push ecx
lea ecx, [esp + 0x14]
call fcn.004018f0
test eax, eax
jne 0x406139
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
call fcn.004010a0
mov dword [esp + 0x1c], 0x40a65c
mov eax, dword [esp + 0x20]
mov byte [esp + 0x38], 3
cmp eax, edi
je 0x40610a
mov edx, dword [esp + 0x24]
push edx
push eax
call sub.MFC42.DLL_DestructElements
mov eax, dword [esp + 0x20]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x40]
mov dword [esp + 0x1c], 0x40a400
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x30
ret 4
lea ecx, [esp + 0x10]
call fcn.004025b0
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x24]
xor esi, esi
cmp eax, edi
jle 0x406185
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0xc]
push esi
push ecx
lea ecx, [esp + 0x24]
call fcn.00406200
mov edx, dword [esp + 0xc]
push edx
call ebp
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
jl 0x40615d
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
call fcn.004010a0
mov dword [esp + 0x1c], 0x40a65c
mov eax, dword [esp + 0x20]
mov byte [esp + 0x38], 4
cmp eax, edi
je 0x4061c0
mov ecx, dword [esp + 0x24]
push ecx
push eax
call sub.MFC42.DLL_DestructElements
mov edx, dword [esp + 0x20]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x40]
mov dword [esp + 0x1c], 0x40a400
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebp
add esp, 0x30
ret 4