joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d1290
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5634e0]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [ebp + 8]
push esi
push dword [ebp + 0x18]
mov esi, ecx
sub esp, 0x10
mov eax, esp
movdqu xmmword [eax], xmm0
call fcn.0049e040
mov ecx, dword [esi + 0x800]
test ecx, ecx
je 0x4d1329
lea eax, [ebp - 0x14]
push eax
call fcn.004d0ae0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x4d12ff
mov ecx, dword [esi + 0x800]
push 0
call fcn.0048c310
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d5413
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x800]
push 0
call fcn.0048c310
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004d5413
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4d4df0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
push eax
push esi
mov ebx, ecx
mov dword [ebp - 4], 0
call fcn.0048f600
mov edi, eax
add esp, 8
test edi, edi
jne 0x4d4e94
push eax
push 0x80
push 3
push eax
push 1
push accept
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4d4e89
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
test eax, eax
je 0x4d4e89
push eax
mov dword [ebp + 8], edi
call fcn.0048a3a9
add esp, 4
mov edi, eax
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp - 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
cmp dword [ebp + 8], eax
je 0x4d4e85
push edi
call fcn.004d72d3
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test edi, edi
jne 0x4d4e97
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push edi
mov ecx, ebx
call fcn.004d4ec0
push edi
mov esi, eax
call fcn.004d72d3
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4dbd35
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x5008b5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5634e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004e1e45
mov dword [ebp - 0x14], eax
cmp dword [0x56c7dc], esi
jne 0x5009a8
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x500935
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x500a88
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x500a88
push 0x5391d8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x500a88
push eax
call ebx
push 0x5391e4
push edi
mov dword [0x56c7dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x56c7e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x56c7e4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x56c7ec], eax
test eax, eax
je 0x5009a5
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x56c7e8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5009cd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5009c0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x5009e2
push 4
pop eax
jmp 0x500a8a
cmp dword [ebp - 0x14], esi
je 0x5009e2
push dword [0x56c7dc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5009c7
mov eax, dword [0x56c7e8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x500a40
cmp dword [0x56c7ec], edi
je 0x500a40
push eax
call ebx
push dword [0x56c7ec]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x500a40
test eax, eax
je 0x500a40
call ecx
test eax, eax
je 0x500a35
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x500a35
test byte [ebp - 8], 1
jne 0x500a40
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x500a70
mov eax, dword [0x56c7e0]
cmp eax, edi
je 0x500a6d
push eax
call ebx
test eax, eax
je 0x500a6d
call eax
mov esi, eax
test esi, esi
je 0x500a6d
mov eax, dword [0x56c7e4]
cmp eax, edi
je 0x500a6d
push eax
call ebx
test eax, eax
je 0x500a6d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x56c7dc]
call ebx
test eax, eax
je 0x500a88
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x500a8a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d5413
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x40631b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push edi
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
rep stosd dword es:[edi], eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 8], edi
jne 0x40105c
xor eax, eax
pop edi
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
add esp, 0x13c
ret
push ebp
lea eax, [esp + 0x10]
push esi
push eax
push edi
mov dword [esp + 0x1c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401127
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov ecx, dword [esp + 0x1c]
push ecx
push 0
push 0x1f0fff
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4010f1
test esi, esi
je 0x4010f1
push esi
call ebp
lea edx, [esp + 0x38]
lea ecx, [esp + 0xc]
push edx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0xc]
mov dword [esp + 0x144], 0
call sub.MFC42.DLL_CString::MakeLower
push str.ebookutil2.exe
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jg 0x401109
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x144], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x401123
jmp 0x401085
lea ecx, [esp + 0xc]
mov dword [esp + 0x144], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x10]
jmp 0x401129
mov edi, dword [esp + 0x10]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x13c]
mov eax, esi
pop esi
pop ebp
pop edi
mov dword fs:[0], ecx
add esp, 0x13c
ret
Function at 0x401150
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push 0xffffffffffffffff
push 0x40633b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], ebx
push ebx
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
jne 0x40119b
xor eax, eax
jmp 0x4012bf
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x128
push eax
push esi
mov dword [esp + 0x1c], ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401296
mov edi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esp + 0x24]
push ecx
push ebx
push 0x1f0fff
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x40127a
cmp esi, ebx
je 0x40127a
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
lea edx, [esp + 0x40]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov dword [esp + 0x14c], ebx
call sub.MFC42.DLL_CString::MakeLower
push str.setup.exe
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jle 0x40122a
mov eax, dword [esp + 0x154]
mov dword [eax], esi
jmp 0x40125b
push str.ikernel.exe
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jle 0x401248
mov ecx, dword [esp + 0x158]
mov dword [ecx], esi
jmp 0x40125b
push str.08nov03.exe
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jle 0x40125f
push ebx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x14c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4011c7
mov esi, dword [esp + 0x14]
pop ebp
mov ecx, dword [esp + 0x150]
cmp dword [ecx], ebx
jne 0x4012ac
mov edx, dword [esp + 0x154]
cmp dword [edx], ebx
je 0x4012b4
mov dword [esp + 0x14], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x140
ret
Function at 0x401fd0
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push esi
call fcn.00401000
mov esi, eax
test esi, esi
je 0x401fef
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00403c30
test eax, eax
pop esi
je 0x40201b
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00401150
add esp, 8
add esp, 8
ret

Function at 0x402370
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x406625
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov esi, ecx
push sub.MFC42.DLL_CString::CString
push sub.MFC42.DLL_CString::CString_3
push 3
lea ebp, [esi + 4]
push 4
push ebp
mov dword [esp + 0x2c], esi
call fcn.00404934
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push 0x104
push eax
mov dword [esp + 0x130], 0
mov dword [esi], 0x4072bc
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x14]
push str._system_
lea eax, [esp + 0x14]
mov bl, 1
push edx
push eax
mov byte [esp + 0x134], bl
call sub.MFC42.DLL_operator_3
push eax
mov ecx, ebp
mov byte [esp + 0x12c], 2
call fcn.004046fa
lea ecx, [esp + 0x10]
mov byte [esp + 0x128], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
push str._system32_
lea edx, [esp + 0x14]
push ecx
push edx
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esi + 8]
mov byte [esp + 0x12c], 3
call fcn.004046fa
lea ecx, [esp + 0x10]
mov byte [esp + 0x128], bl
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x14]
push 0x4832b4
lea ecx, [esp + 0x14]
push eax
push ecx
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esi + 0xc]
mov byte [esp + 0x12c], 4
call fcn.004046fa
lea ecx, [esp + 0x10]
mov byte [esp + 0x128], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 0
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop edi
mov ecx, dword [esp + 0x11c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x402750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x406690
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
xor eax, eax
push esi
lea edx, [esp + 0x18]
push edi
xor esi, esi
mov dword [esp + 0x20], eax
push edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], eax
call fcn.004025b0
mov eax, dword [str.132153049151145133083168026067029175238204190207152139042040058171181117255022152]
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
push ecx
call fcn.00402020
mov edx, dword [str.198137055145155154093164020071089171225200186208143142045045047188180123245028154]
add esp, 4
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
mov dword [esp + 0x38], esi
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x14]
push eax
call fcn.00402020
add esp, 8
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString_3
mov esi, dword [esp + 0x38]
lea edi, [esp + 0x1c]
mov byte [esp + 0x30], 2
sub edi, esi
mov ebp, 3
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402a50
push eax
mov eax, dword [edi + esi]
push ecx
lea eax, [eax + eax*4]
mov ecx, esp
mov dword [esp + 0x24], esp
lea edx, [eax + eax*4]
mov eax, str.vvyscjczc
sub eax, edx
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x44]
push ecx
call fcn.004022f0
add esp, 0x10
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 3
call fcn.004046fa
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0xc]
mov ecx, esi
push edx
call fcn.004046fa
add esi, 4
dec ebp
jne 0x4027e9
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x28
ret 4

Function at 0x402ad0
Capabilities:
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x406700
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push 1
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 8], esp
push eax
mov dword [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [esp + 0x24], 3
mov ecx, esp
mov dword [esp + 0x18], esp
push str.SoftwareMicrosoftWindowsCurrentVersionRun
call sub.MFC42.DLL_CString::CString_2
push 0x80000001
mov byte [esp + 0x28], 1
call fcn.00403100
add esp, 0x14
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x402b70
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 8]
mov edx, dword [esp]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
pop ecx
ret
Function at 0x403100
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4067a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push esi
mov ecx, dword [esp + 0x124]
mov esi, dword [esp + 0x120]
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
push 0xf003f
push ebx
push ecx
push esi
mov dword [esp + 0x12c], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403171
mov ecx, dword [esp + 0x124]
lea edx, [esp + 8]
lea eax, [esp + 0xc]
push edx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [esp + 0x130]
cmp eax, 1
jne 0x4031d2
push edi
mov edi, dword [esp + 0x130]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x12c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
push ecx
lea ecx, [esp + 0x18]
push ecx
push 1
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
jmp 0x403204
cmp eax, 3
jne 0x403204
mov edx, dword [esp + 0x128]
lea ecx, [esp + 8]
push 4
push ecx
push eax
mov eax, dword [esp + 0x18]
push ebx
push edx
push eax
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], 1
mov byte [esp + 0x23], bl
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x124]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x128]
mov byte [esp + 0x118], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x12c]
mov dword [esp + 0x118], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x110]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x403260
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4067b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push ebp
push esi
mov ebp, dword [esp + 0x9c]
lea ecx, [esp + 0x18]
lea eax, [esp + 0x1c]
push ecx
push ebp
mov dword [esp + 0x9c], 0
mov dword [esp + 0x14], eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x403369
push edi
push ebx
call sub.MFC42.DLL_operatornew
mov ecx, ebx
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
test esi, esi
pop edi
je 0x403369
push esi
push ebx
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x403360
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x403360
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xa8]
push edx
xor edx, edx
mov ecx, dword [eax]
mov dx, word [eax]
shr ecx, 0x10
push ecx
push edx
lea eax, [esp + 0x48]
push str.StringFileInfo_04X_04X_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
lea eax, [esp + 0x3c]
push ecx
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x403360
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0xa0]
dec ecx
push ecx
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0xa8]
mov dword [esp + 0x94], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x8c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x8c
ret
Function at 0x4034a0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x40680b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push edi
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
rep stosd dword es:[edi], eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 8], edi
jne 0x4034fc
xor eax, eax
pop edi
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
add esp, 0x13c
ret
push ebp
lea eax, [esp + 0x10]
push esi
push eax
push edi
mov dword [esp + 0x1c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4035d1
mov edi, dword [esp + 0x14c]
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esp + 0x1c]
push ecx
push 0
push 0x1f0fff
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x40359b
test esi, esi
je 0x40359b
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov ecx, edi
call sub.MFC42.DLL_CString::MakeLower
lea edx, [esp + 0x38]
lea ecx, [esp + 0xc]
push edx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0xc]
mov dword [esp + 0x144], 0
call sub.MFC42.DLL_CString::MakeLower
mov eax, dword [esp + 0xc]
mov ecx, edi
push eax
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jg 0x4035b3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x144], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4035cd
jmp 0x403526
lea ecx, [esp + 0xc]
mov dword [esp + 0x144], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x10]
jmp 0x4035d3
mov edi, dword [esp + 0x10]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x13c]
mov eax, esi
pop esi
pop ebp
pop edi
mov dword fs:[0], ecx
add esp, 0x13c
ret
Function at 0x403600
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x40683e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], ebx
push ebx
rep stosd dword es:[edi], eax
push 2
mov dword [esp + 0x154], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
jne 0x403665
lea ecx, [esp + 0x154]
mov dword [esp + 0x14c], eax
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4037bc
lea eax, [esp + 0x1c]
push ebp
push eax
push esi
mov dword [esp + 0x28], 0x128
mov dword [esp + 0x24], ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x403799
mov edi, dword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
mov ecx, dword [esp + 0x28]
push ecx
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x40374d
cmp esi, ebx
je 0x40374d
push esi
call edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
push 0x104
push 0x104
lea ecx, [esp + 0x1c]
mov byte [esp + 0x158], 1
call sub.MFC42.DLL_CString::GetBufferSetLength
push eax
push ebx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x150], 2
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [esp + 0x158]
call sub.MFC42.DLL_CString::MakeLower
mov eax, dword [esp + 0x158]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
je 0x403765
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov byte [esp + 0x150], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x150], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x403795
jmp 0x403691
push esi
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov byte [esp + 0x150], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x150], bl
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x158]
mov dword [esp + 0x150], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
pop ebp
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x144
ret