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

Disassembly:
push 0xffffffffffffffff
push 0x490c53
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 fcn.00792a4e
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x497a58
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], 0x4979a0
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 [fcn.004920dc]
push eax
mov ecx, edi
call fcn.0079809b
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.007995b7
test eax, eax
je 0x74be26
mov ecx, dword [esp + 0x3c]
call fcn.007980c8
mov ecx, dword [esi + 0x1c]
mov ebp, dword [int.00492510]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x74bdea
push edi
mov ecx, esi
call fcn.00795730
mov ecx, esi
call fcn.0074bfca
cmp dword [esp + 0x38], 1
jne 0x74be1f
or ecx, reloc.kernel32.dll_WaitForMultipleObjects
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 fcn.0079586b
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 0x74e01a
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x74e04d
push esi
call fcn.0075c3fa
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x74e046
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 0x74e0d3
mov eax, dword [esi + reloc.kernel32.dll_WaitForMultipleObjects]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x74e0bc
mov eax, dword [esi + 8]
test eax, eax
je 0x74e071
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + reloc.kernel32.dll_WaitForMultipleObjects]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x74e0b8
cmp eax, 2
je 0x74e0bc
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x74e064
cmp eax, 3
je 0x74e097
cmp eax, 1
jne 0x74e064
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 0x74e064
mov edx, dword [esi + reloc.kernel32.dll_WaitForMultipleObjects]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x74e064
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0074e0fa
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x74e0e2
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0074e0fa
add esp, 4
pop esi
ret

Function at 0x76bc7a
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4c9d38]
xor edx, edx
cmp eax, edx
jne 0x76bca0
xor eax, eax
mov byte [eax + 0x4c9c38], al
inc eax
cmp eax, 0x100
jl 0x76bc88
mov dword [0x4c9d38], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4c9c38
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x76bd31
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x76bd04
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x76bcd2
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x76bdaa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x76bdfd
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x76bde4
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x77277a
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49113e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0077309a
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x499b5c
call fcn.007911e0
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x77280d
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.007911e0
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x772806
push 0
mov ecx, eax
call fcn.007698aa
mov dword [esi + 0xc], eax
jmp 0x77280f
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x77280f
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0xb5cc88
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0xb5ccfc
mov byte [esp + 2], bh
dec ax
jg 0xb5cc72
mov ax, 0x97cd
jmp 0xb5cd00
mov eax, 0x4757cb37
mov ax, 0x2cd2
lea eax, [edx + 0x5b]
mov ax, bp
not eax
jmp 0xb5ccc0
mov ax, 0x97cd
lea esp, [esp + 4]
add dl, 0x85
mov eax, dword [esp]
jmp 0xb5ccd6
Function at 0xb5d86f
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov ax, word [esp + 0x16]
mov dword [esp + 8], edx
lea esp, [esp + 3]
jmp 0xb5d855

Function at 0xb79126
Capabilities:
Encode data using xor

Disassembly:
shl edx, cl
push sp
mov byte [esp], bh
call fcn.00b7908c
jmp 0xb790bb

Function at 0xb8c06e
Capabilities:
Hash data with md5

Disassembly:
push ax
lea esp, [esp + 2]
jmp 0xb8c093
lea esp, [esp + 4]
mov dword [eax + 8], 0x67452301
jmp 0xb8c0b9

Function at 0xde2874
Capabilities:
Access peb ldr_data

Disassembly:
call fcn.00de15e9
pop word [esp]
lea esp, [esp + 2]
mov dword [esp + 0x20], edi
lea esp, [esp + 0x20]
jmp 0xde2927
pop word [esp]
mov word [esp], cx
push word [esp + 1]
mov word [esp + 1], di
jmp 0xde285e
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0xde15e4
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0xde289e
Function at 0x4016f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40882f
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 0x40d610
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.00402850
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.0040851c
test eax, eax
mov dword [esi + 4], eax
jne 0x4017e9
cmp dword [esi], 0
je 0x4017e9
push 0x8007000e
call fcn.004083fa
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 0x4033e0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1410
call fcn.004081c0
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 0x403458
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 0x403463
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 0x4034b4
mov edx, esi
shr edx, 1
mov al, byte [esp + edx + 0x414]
test al, al
je 0x4034b4
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 0x403491
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
push esi
call fcn.00402ee0
mov ebx, 1
inc esi
add edi, 0x200
cmp esi, 8
jb 0x40346c
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 0x4035b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x408c0f
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 0x403b40
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x408dc5
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 [0x40d610]
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 0x403bef
mov esi, dword [esp + 0x23c]
push 0x40d610
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x14], ebp
jmp 0x403c6d
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 0x403c34
mov esi, dword [esp + 0x23c]
push 0x40d610
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
jmp 0x403c69
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 0x403ca0
Capabilities:
Get mac address on windows

Disassembly:
push 0xffffffffffffffff
push 0x408df7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push 0x40d610
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString_2
push 0x40d610
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 0x403d0f
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 0x403d85
cmp esi, ebx
je 0x403d6b
push edi
mov eax, dword [esi + 0x190]
xor edi, edi
cmp eax, ebx
jbe 0x403d64
xor eax, eax
lea ecx, [esp + 0x10]
mov al, byte [esi + edi + 0x194]
push eax
push 0x40d238
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x10]
lea ecx, [esp + 0xc]
push edx
call fcn.00407ef0
mov eax, dword [esi + 0x190]
inc edi
cmp edi, eax
jb 0x403d2f
mov esi, dword [esi]
cmp esi, ebx
jne 0x403d23
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 0x403d9d
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 0x403dd0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x408e35
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 0x405130
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
mov esi, ecx
push eax
push 0x202
mov dword [esi], 0x40a40c
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, esi
pop esi
add esp, 0x190
ret
Function at 0x405190
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 0x4051d1
cmp eax, 0xffffffff
je 0x4051d1
add esi, eax
sub edi, eax
cmp esi, dword [esp + 0x1c]
je 0x4051e1
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4051a6
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 0x4051f0
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 0x405214
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 0x405263
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 0x405a00
Capabilities:
Create process on windows
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x408fc1
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.00405b70
cmp eax, ebx
je 0x405b17
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 0x405b70
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x408fe0
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.00407f14
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 0x405bd8
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 0x405c0c
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