joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456aac
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x465be0]
cmp dword [eax + 0x30], 0
je 0x456b56
cmp dword [ebx + 0x94], 0
jne 0x456b50
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x456a3c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x456b50
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x456b16
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x456b50
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00419100
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x456b25
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4576b4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4576e9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004045e0
jmp 0x4576f6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404544
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x458808
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x458849
mov eax, esi
call fcn.0043ee34
test al, al
je 0x458849
mov eax, dword [ebx + 0x84]
call fcn.0043eb5c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x458849
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043eb5c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45952c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x416348]
call fcn.00404eec
xor eax, eax
push ebp
push 0x459670
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x463eb0], 0
jne 0x45957f
mov ecx, dword [0x463fdc]
mov dl, 1
mov eax, dword [0x40793c]
call fcn.0040c1dc
call fcn.00403f04
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.0040316c
mov eax, ebx
call fcn.00404d58
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x459680
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406064
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404d68
test eax, eax
jle 0x459617
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x459610
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404778
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404760
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004087cc
test eax, eax
jne 0x459610
mov ebx, 0x15
jmp 0x45961c
mov ebx, 0x10
jmp 0x45961c
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x463eb0]
call fcn.00459484
mov eax, dword [ebp - 8]
call fcn.00459484
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.0040607c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459677
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404514
lea eax, [ebp - 0x10]
mov edx, dword [0x416348]
call fcn.00404fbc
ret
Function at 0x401bb0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407048
call sym._EnterCriticalSection_4
mov ebx, dword [0x407040]
sub esp, 4
test ebx, ebx
je 0x401bfb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401bf4
test esi, esi
je 0x401bf4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401bd0
mov dword [esp], 0x407048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401de0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401e30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401f08
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401e6e
cmp eax, 4
jne 0x401e90
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401e7e
cmp edx, 4
je 0x401e7e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401de0
Function at 0x4016f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x408abf
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.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.004087ac
test eax, eax
mov dword [esi + 4], eax
jne 0x4017e9
cmp dword [esi], 0
je 0x4017e9
push 0x8007000e
call fcn.0040868a
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.00408450
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 0x408e9f
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 0x409055
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 0x403bef
mov esi, dword [esp + 0x23c]
push 0x40d6f0
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 0x40d6f0
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 0x409087
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 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.00408180
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 0x4090c5
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], 0x40a41c
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, esi
pop esi
add esp, 0x190
ret
Function at 0x4058e0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x409231
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.00405a50
cmp eax, ebx
je 0x4059f7
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 0x405a50
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x409250
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.004081a4
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 0x405ab8
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 0x405aec
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 0x406020
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x409318
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 0x4060f9
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 0x4060ca
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.00402570
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x24]
xor esi, esi
cmp eax, edi
jle 0x406145
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0xc]
push esi
push ecx
lea ecx, [esp + 0x24]
call fcn.004061c0
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 0x40611d
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 0x406180
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
Function at 0x406430
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x409358
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x458
push esi
push edi
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x470]
lea ecx, [esp + 0x60]
push eax
push str.regsvr32__u__s___s_
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x20], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
xor esi, esi
push eax
push ecx
push esi
push esi
push esi
push 1
push esi
lea edx, [esp + 0x7c]
push esi
push edx
push esi
mov word [esp + 0x74], si
mov dword [esp + 0x70], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, esi
jne 0x4064e0
lea ecx, [esp + 0x470]
mov dword [esp + 0x468], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40653c
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
push edx
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x470]
mov dword [esp + 0x468], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x460]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x464
ret 4