joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4032a0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x2ac]
lea edi, [esi + 0x2ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40335a
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0
push str.Start
push str.START_KEY
call ebx
mov dword [esi + 0x294], eax
mov eax, dword [edi]
push eax
push 0
push str.Stop
push str.STOP_KEY
call ebx
mov dword [esi + 0x298], eax
mov eax, dword [edi]
push eax
push 0
push str.KeyComb
push str.START_KEY
call ebx
mov dword [esi + 0x29c], eax
mov eax, dword [edi]
push eax
push 0
push str.KeyComb
push str.STOP_KEY
call ebx
mov edi, dword [edi]
mov dword [esi + 0x2a0], eax
push edi
push 0
push str.StartSyncCheckBoxState_Val
push str.StartSyncCheckBoxState
call ebx
cmp eax, 1
mov dword [esi + 0x2b0], eax
jne 0x40334b
mov dword [esi + 0x214], eax
pop edi
pop esi
pop ebx
pop ecx
ret
mov dword [esi + 0x214], 0
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x9c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 1
push 0xf1
push eax
call ebx
mov dword [esi + 0x214], 1
mov ecx, dword [esi + 0xdc]
push 0
push 0x76
push 0x401
push ecx
call ebx
mov edx, dword [esi + 0x11c]
push 0
push 0x77
push 0x401
push edx
call ebx
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push edi
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.004034e0
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4043b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
push ebx
push ebp
mov ebp, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, dword [esp + 0x114]
stosb byte es:[edi], al
mov al, byte [esp + 0x120]
mov edi, dword [esp + 0x118]
test al, al
jne 0x40444d
mov eax, dword [ebp + 4]
push esi
push eax
lea ecx, [esp + 0x14]
push 0x104
push ecx
push str._none_value_
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, str._none_value_
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x404432
test cl, cl
je 0x40442e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x404432
add eax, 2
add esi, 2
test cl, cl
jne 0x40440e
xor eax, eax
jmp 0x404437
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop esi
jne 0x40444d
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret 0x10
mov eax, dword [ebp + 4]
push eax
mov eax, dword [esp + 0x120]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
je 0x404473
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebp
pop ebx
add esp, 0x104
ret 0x10

Function at 0x404490
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
push esi
mov edx, ecx
push edi
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0xd]
mov dword [esp + 8], eax
mov byte [esp + 0xc], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x11c]
push eax
mov eax, dword [esp + 0x11c]
lea ecx, [esp + 0x10]
push 0x104
push ecx
push 0x42b064
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [esp + 0x114]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov eax, esi
pop edi
pop esi
add esp, 0x108
ret 0xc

Function at 0x404500
Capabilities:
Read .ini file

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
push ecx
mov ecx, dword [esp + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret 0xc

Function at 0x404520
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fd98
push 0x406490
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x40458c
push 0xf003f
mov eax, dword [ebp + 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, ebx
je 0x40458c
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004045b4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4045d0
Capabilities:
Check for time delay via gettickcount
Create service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fda8
push 0x406490
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 0x10]
push esi
call fcn.00404520
add esp, 4
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x40472c
push edi
push edi
push edi
push edi
push edi
mov eax, dword [ebp + 8]
push eax
push edi
push 3
push 1
push 0xf01ff
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
mov dword [ebp - 0x54], edi
test edi, edi
jne 0x404677
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x40472c
push 0xf01ff
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
mov dword [ebp - 0x54], edi
test edi, edi
je 0x40472c
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x404697
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x40472c
lea ecx, [ebp - 0x48]
push ecx
push 0x24
lea edx, [ebp - 0x44]
push edx
push 0
push edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
call ebx
test eax, eax
je 0x404729
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp - 0x40], 2
jne 0x404722
mov eax, 0xcccccccd
mul dword [ebp - 0x2c]
shr edx, 3
mov dword [ebp - 0x50], edx
cmp edx, 0x3e8
jae 0x4046d9
mov edx, 0x3e8
jmp 0x4046e6
cmp edx, 0x2710
jbe 0x4046e9
mov edx, 0x2710
mov dword [ebp - 0x50], edx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x48]
push eax
push 0x24
lea ecx, [ebp - 0x44]
push ecx
push 0
push edi
call ebx
test eax, eax
je 0x404722
mov edx, dword [ebp - 0x4c]
cmp dword [ebp - 0x30], edx
jbe 0x404718
call esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x4c], eax
jmp 0x4046b6
call esi
sub eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x2c]
jbe 0x4046b6
mov dword [ebp - 0x58], 1
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.00404752
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404870
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4048dd
push edi
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 8], 0x128
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4048d5
mov edi, dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00404850
add esp, 4
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
call edi
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4048b2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0x128
ret

Function at 0x4048f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x41d0bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString_2
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x1c], 1
test ebp, ebp
jne 0x404962
mov eax, dword [esp + 0x28]
lea edi, [eax - 1]
cmp edi, 3
ja case.default.0x404938
jmp dword [edi*4 + 0x404a98]
mov esi, 0xa
jmp 0x404996
mov esi, 0x64
jmp 0x404996
mov esi, 0x3e8
jmp 0x404996
mov esi, 0x2710
jmp 0x404996
mov esi, 0x186a0
jmp 0x404996
mov ecx, dword [esp + 0x28]
lea edi, [ecx - 1]
cmp edi, 3
ja case.default.0x40496e
jmp dword [edi*4 + 0x404aa8]
mov esi, 0x10
jmp 0x404996
mov esi, 0x100
jmp 0x404996
mov esi, 0x1000
jmp 0x404996
mov esi, 0x10000
jmp 0x404996
mov esi, 0x100000
mov ecx, dword [0x4275fc]
push 0
inc ecx
mov dword [0x4275fc], ecx
call dword [sym.imp.MSVCRT.dll_time]
inc eax
imul eax, dword [0x4275fc]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 8
call dword [sym.imp.MSVCRT.dll_rand]
cdq
idiv esi
test ebp, ebp
jne 0x404a0d
cmp edi, 3
ja case.default.0x4049cf
jmp dword [edi*4 + 0x404ab8]
push edx
push str._01u
jmp 0x404a4e
push edx
lea eax, [esp + 0x10]
push str._02u
push eax
jmp 0x404a53
push edx
lea ecx, [esp + 0x10]
push str._03u
push ecx
jmp 0x404a53
push edx
push str._04u
jmp 0x404a4e
push edx
lea eax, [esp + 0x10]
push str._05u
push eax
jmp 0x404a53
cmp edi, 3
ja case.default.0x404a12
jmp dword [edi*4 + 0x404ac8]
push edx
lea ecx, [esp + 0x10]
push str._01X
push ecx
jmp 0x404a53
push edx
push str._02X
jmp 0x404a4e
push edx
lea eax, [esp + 0x10]
push str._03X
push eax
jmp 0x404a53
push edx
lea ecx, [esp + 0x10]
push str._04X
push ecx
jmp 0x404a53
push edx
push str._05X
lea edx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::Format
mov esi, dword [esp + 0x30]
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x404ae0
Capabilities:
Delete file

Disassembly:
sub esp, 0x20
push edi
xor edx, edx
mov ecx, 6
xor eax, eax
lea edi, [esp + 8]
mov dword [esp + 4], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 4]
push ecx
mov word [esp + 0x18], 0x50
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
pop edi
inc eax
add esp, 0x20
ret

Function at 0x404b80
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x41d0e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x380
push ebx
push ebp
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFileFind::CFileFind
mov ebp, dword [esp + 0x398]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push ebp
lea eax, [esp + 0x288]
push str._s.
push eax
mov dword [esp + 0x39c], 0
call ebx
add esp, 0xc
lea ecx, [esp + 0x284]
push 0
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x404cbf
push esi
push edi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x404cb1
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CFileFind::GetFileName
push 0xc8
mov ecx, eax
mov byte [esp + 0x39c], 1
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x398], 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x40]
test eax, eax
lea eax, [esp + 0x34]
push eax
push ebp
push str._s_s
je 0x404c97
lea ecx, [esp + 0x1d0]
push ecx
call ebx
lea edx, [esp + 0x1d4]
push edx
call fcn.00404b80
jmp 0x404cae
lea ecx, [esp + 0x108]
push ecx
call ebx
lea edx, [esp + 0x10c]
push edx
call fcn.00404ae0
add esp, 0x14
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x404bee
pop edi
pop esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFileFind::Close
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebp
pop ebx
test eax, eax
mov dword [esp + 0x388], 0xffffffff
lea ecx, [esp + 8]
jne 0x404d00
call fcn.0040639c
xor eax, eax
mov ecx, dword [esp + 0x380]
mov dword fs:[0], ecx
add esp, 0x38c
ret
call fcn.0040639c
mov ecx, dword [esp + 0x380]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x38c
ret
Function at 0x405090
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.ZwOpenMutant
mov esi, ecx
push str.ntdll.dll
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.ZwReleaseMutant
push str.ntdll.dll
mov dword [esi + 4], eax
call edi
push eax
call ebx
push str.RtlInitUnicodeString
push str.ntdll.dll
mov dword [esi + 8], eax
call edi
push eax
call ebx
push str.ZwQuerySystemInformation
push str.ntdll.dll
mov dword [esi + 0xc], eax
call edi
push eax
call ebx
push str.ZwQueryObject
push str.ntdll.dll
mov dword [esi + 0x10], eax
call edi
push eax
call ebx
push str.ZwDuplicateObject
push str.ntdll.dll
mov dword [esi + 0x14], eax
call edi
push eax
call ebx
push str.ZwQueryInformationFile
push str.ntdll.dll
mov dword [esi + 0x18], eax
call edi
push eax
call ebx
push str.ZwDeleteFile
push str.ntdll.dll
mov dword [esi + 0x1c], eax
call edi
push eax
call ebx
push str.RtlDosPathNameToNtPathName_U
push str.ntdll.dll
mov dword [esi + 0x20], eax
call edi
push eax
call ebx
mov dword [esi + 0x24], eax
pop edi
pop esi
pop ebx
ret

Function at 0x405a50
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
push edi
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
xor ebp, ebp
test edi, edi
je 0x405b4a
mov eax, dword [esp + 0x120]
mov ebx, dword [sym.imp.MSVCRT.dll__mbscmp]
add eax, 4
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x118]
test esi, esi
je 0x405ab9
lea ecx, [esp + 0x14]
push 0xff
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClassNameA]
lea edx, [esp + 0x14]
push esi
push edx
call ebx
mov esi, eax
add esp, 8
neg esi
sbb esi, esi
inc esi
jmp 0x405abe
mov esi, 1
mov eax, dword [esp + 0x11c]
test eax, eax
je 0x405af3
lea eax, [esp + 0x14]
push 0xff
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 0x11c]
lea edx, [esp + 0x14]
push ecx
push edx
call ebx
add esp, 8
neg eax
sbb eax, eax
inc eax
jmp 0x405af8
mov eax, 1
test esi, eax
je 0x405b0f
mov eax, dword [esp + 0x10]
inc ebp
mov dword [eax], edi
add eax, 4
cmp ebp, 0x1e
mov dword [esp + 0x10], eax
jae 0x405b36
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
jne 0x405a89
mov eax, dword [esp + 0x120]
pop edi
pop esi
mov dword [eax], ebp
pop ebp
pop ebx
add esp, 0x104
ret
mov ecx, dword [esp + 0x120]
pop edi
pop esi
mov dword [ecx], ebp
pop ebp
pop ebx
add esp, 0x104
ret
mov edx, dword [esp + 0x120]
pop edi
pop esi
mov dword [edx], ebp
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x405ba0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x200
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x208]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20c]
push eax
push ecx
push 0x1ff
push edx
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
add esp, 0x200
ret

Function at 0x405ec0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x40
push ebx
push ebp
push esi
xor esi, esi
cmp eax, esi
push edi
jne 0x405ee0
pop edi
pop esi
pop ebp
mov eax, 0xc0000001
pop ebx
add esp, 0x40
ret 0x10
push eax
lea eax, [esp + 0x20]
push str..PipeBkgndSrv_P_d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
jne 0x405f17
pop edi
pop esi
pop ebp
mov eax, 0xc0000002
pop ebx
add esp, 0x40
ret 0x10
push esi
push 0x80
push 3
push esi
push esi
lea edx, [esp + 0x30]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x405f47
pop edi
pop esi
pop ebp
mov eax, 0xc0000003
pop ebx
add esp, 0x40
ret 0x10
lea eax, [esp + 0x10]
push esi
push eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
add ecx, 8
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x54]
push esi
push edx
lea eax, [esp + 0x1c]
push 8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405f95
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xc0000004
pop ebx
add esp, 0x40
ret 0x10
cmp dword [esp + 0x18], esi
jl 0x405fde
mov edi, dword [esp + 0x14]
cmp edi, esi
je 0x405fde
mov ebp, dword [esp + 0x5c]
test ebp, ebp
je 0x40600d
cmp dword [esp + 0x60], edi
jb 0x40600d
test edi, edi
jbe 0x405fde
mov edx, edi
lea ecx, [esp + 0x54]
push 0
sub edx, esi
push ecx
lea eax, [esi + ebp]
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405ff3
mov eax, dword [esp + 0x54]
test eax, eax
je 0x405ff3
add esi, eax
cmp esi, edi
jb 0x405fb5
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x10
cmp esi, edi
jae 0x405fde
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xc0000007
pop ebx
add esp, 0x40
ret 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xc0000005
pop ebx
add esp, 0x40
ret 0x10
Function at 0x4090c0
Capabilities:
Accept command line arguments
Access peb ldr_data
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x41da68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
push str.UnSilent_ToolRunCommand:
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x4091fb
push esi
lea ecx, [esp + 0x14]
call fcn.0041c964
lea eax, [esp + 0x10]
mov byte [esp + 0x30], 1
push eax
call fcn.00409a80
add esp, 4
push str.ToolDelFile.key
lea ecx, [esp + 0xc]
push eax
push ecx
mov byte [esp + 0x3c], 2
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 4
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 8]
push 0
push 0
push edx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CStdioFile::Open
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4091b2
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 4]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x34], 5
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x40919b
mov ecx, dword [esp + 4]
push ecx
call esi
lea edx, [esp + 4]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
jne 0x409182
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStdioFile::Close
lea ecx, [esp + 4]
mov byte [esp + 0x30], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 8]
push eax
call esi
lea ecx, [esp + 8]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
pop esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
lea ecx, [esp + 8]
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 0x409310
Capabilities:
Access peb ldr_data
Get ntdll base address
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x41dab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0x18], 1
push eax
call fcn.00409a80
add esp, 4
lea ecx, [esp + 0x30]
lea edx, [esp + 8]
push ecx
push eax
push edx
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [esp + 8]
mov esi, eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString
test esi, esi
je 0x40940c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitDataForADPopup
push esi
call edi
push str.GetADWebInfo
push esi
mov dword [0x42b8e8], eax
call edi
push str.CreateAdWnd
push esi
mov dword [0x42b8fc], eax
call edi
push str.PopupQuitAD
push esi
mov dword [0x42b8f0], eax
call edi
push str.DestroyStartADDlg
push esi
mov dword [0x42b8f8], eax
call edi
push str.SetQuitADPopupTime
push esi
mov dword [0x42b8f4], eax
call edi
mov dword [0x42b8ec], eax
mov eax, dword [0x42b8e8]
test eax, eax
je 0x409401
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call sub.MFC42.DLL_CString::CString_1
call dword [0x42b8e8]
mov eax, dword [0x42b8fc]
test eax, eax
je 0x40940c
call eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret
Function at 0x409480
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41daf5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
xor ebx, ebx
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], ebx
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x134]
lea eax, [esp + 0x14]
mov ebp, 1
push eax
push 0xf003f
push ebx
push ecx
push edx
mov dword [esp + 0x13c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409564
push edi
mov ecx, 0x3f
lea edi, [esp + 0x25]
mov byte [esp + 0x24], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x144]
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push ebx
push eax
push ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call sub.MFC42.DLL_AfxGetEmptyString
mov esi, dword [esp + 0x134]
mov eax, dword [eax]
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
mov dword [esi], eax
call fcn.00406060
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], bl
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop edi
jmp 0x40958d
mov esi, dword [esp + 0x130]
push 0x42b064
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], ebp
mov byte [esp + 0x128], bl
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [esp + 0x120]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret