joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf2a1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00f2a140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00f2a140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00f2a140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00f2a140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xf2abfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xf2ac50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xf3c87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xf2ac43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xf2ac52
xor eax, eax
pop esi
leave
ret 4
Function at 0x405960
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4241d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x228
xor ebx, ebx
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.0040b160
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x4059e2
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4059e2
push edi
mov edi, dword [ebp + 8]
lea esp, [esp]
cmp dword [ebp - 0x228], edi
je 0x4059db
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4059c0
jmp 0x4059e1
mov ebx, dword [ebp - 0x218]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ad72
mov esp, ebp
pop ebp
ret

Function at 0x405c90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x80]
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
call fcn.00405fb0
mov edi, eax
test edi, edi
je 0x405d3c
lea eax, [ebp - 0x1c]
push eax
call fcn.00405710
movq xmm0, qword [ebp - 0x1c]
sub esp, 8
mov eax, dword [ebp - 0x14]
mov ecx, esp
push edi
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
call fcn.00406040
add esp, 0x10
test eax, eax
jne 0x405d3c
push 0x2001f
push str.SoftwareAskPartnerNetworkDeskBar
push SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call fcn.004070b0
mov edi, dword [ebp - 0x10]
test eax, eax
jne 0x405d23
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 4
push 0
push 0x41cdb0
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x405d2e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x74], 1
mov dword [esi + 0x5c], 1
push 0
call fcn.00409130
add esp, 4
mov ecx, esi
push dword [esi + 0x78]
call fcn.00401b10
push dword [esi + 0x74]
mov ecx, esi
call fcn.00401b50
push dword [esi + 0x7c]
mov ecx, esi
call fcn.00401db0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406750
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 4]
mov ecx, 3
mov word [ebp - 0x10], cx
sub esp, 0x10
mov ecx, dword [edi + 0x28]
mov dword [ebp - 8], eax
mov eax, esp
movdqu xmm0, xmmword [ebp - 0x10]
push ecx
mov edx, dword [ecx]
movdqu xmmword [eax], xmm0
call dword [edx + 0x2c]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [edi + 0x40]
mov ebx, dword [edi + 0x2c]
test eax, eax
jne 0x4067cb
xor esi, esi
mov eax, dword [ebx]
push esi
push ebx
call dword [eax + 0x20]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
jne 0x4067a2
push 0x8007000e
call fcn.00402150
int3
Function at 0x4067f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4241d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
lea eax, [ebx + 0x40]
push eax
call fcn.00408e10
test eax, eax
je 0x4069a5
push 0
push 0x1388
push 0xa
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
push 3
push 1
push 0xffffff
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
lea edi, [ebx + 0x30]
push edi
lea eax, [ebx + 0x34]
push eax
push 0x41d038
push 0x41cf7c
push str.browserhost.dll
push 0
call fcn.00405400
add esp, 0x18
test eax, eax
js 0x4069a5
lea esi, [ebx + 0x2c]
push esi
push 0x41d028
push 0x15
push 0
push 0x41c788
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4069a5
mov esi, dword [esi]
test esi, esi
je 0x4069a5
push dword [ebx + 0x40]
lea ecx, [ebp - 0x18]
call fcn.00403990
mov ecx, dword [esi]
lea edx, [ebx + 0x28]
push edx
push dword [eax]
push esi
call dword [ecx + 0x1c]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
js 0x4069a5
cmp dword [ebx + 0x28], 0
je 0x4069a5
push dword [edi]
mov esi, 3
mov dword [ebp - 0x20], 0
mov word [ebp - 0x28], si
lea ecx, [ebp - 0x14]
movdqu xmm0, xmmword [ebp - 0x28]
mov word [ebp - 0x38], si
mov dword [ebp - 0x30], 0
movdqu xmmword [ebp - 0x58], xmm0
movdqu xmm0, xmmword [ebp - 0x38]
movdqu xmmword [ebp - 0x68], xmm0
call fcn.004039c0
movdqu xmm1, xmmword [ebp - 0x58]
mov ecx, dword [ebx + 0x28]
sub esp, 0x10
movdqu xmm0, xmmword [eax]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x40], eax
mov eax, esp
sub esp, 0x10
mov word [ebp - 0x48], si
mov edx, dword [ecx]
movdqu xmmword [eax], xmm1
mov eax, esp
sub esp, 0x10
movdqu xmm1, xmmword [ebp - 0x68]
movdqu xmmword [eax], xmm1
mov eax, esp
sub esp, 0x10
movdqu xmmword [eax], xmm0
mov eax, esp
movdqu xmm0, xmmword [ebp - 0x48]
push ecx
movdqu xmmword [eax], xmm0
call dword [edx + 0x24]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edi, eax
lea eax, [ebp - 0x48]
push eax
call esi
lea eax, [ebp - 0x14]
push eax
call esi
lea eax, [ebp - 0x38]
push eax
call esi
lea eax, [ebp - 0x28]
push eax
call esi
test edi, edi
js 0x4069a5
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebx + 0x30]
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
mov ecx, ebx
call fcn.00409290
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ad72
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ad72
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407a70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407ae1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x407aaf
cmp eax, 2
jne 0x407acb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x407adb
test ecx, ecx
je 0x407ad6
test cl, 1
jne 0x407acb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x407adb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x407de0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4241d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x60
push 0
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x408], 0
call ebx
mov edi, eax
test edi, edi
jne 0x407e50
push 2
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x407e50
call fcn.00404b20
mov esi, eax
jmp 0x407f09
push dword [ebp - 0x410]
push dword [ebp - 0x40c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x407e73
call fcn.00404b20
jmp 0x407efc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x407e88
call fcn.00404b20
jmp 0x407efc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x407ea0
mov esi, 0x8007000e
jmp 0x407efe
push eax
lea ecx, [ebp - 0x408]
call fcn.004047d0
cmp dword [ebp - 0x408], 0
jne 0x407ebc
mov esi, 0x8007000e
jmp 0x407efe
push esi
push dword [ebp - 0x408]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x407edc
call fcn.00404b20
jmp 0x407efc
mov eax, dword [ebp - 0x408]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x418]
push dword [ebp - 0x408]
call fcn.00407c40
mov esi, eax
test edi, edi
je 0x407f09
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x407f22
lea ecx, [ebp - 0x408]
call fcn.00405670
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ad72
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4087e0
Capabilities:
Check mutex on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x4241d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push str.5F102263_B8AF_4585_B255_FFC1BF7DB68F
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x4089db
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
je 0x4089db
call edi
cmp eax, 5
je 0x4089db
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea ecx, [ebp - 0xd8]
call fcn.00403810
lea ecx, [ebp - 0xd8]
call fcn.00405280
test eax, eax
jne 0x408858
lea edi, [eax + 1]
jmp 0x4089bf
push ebx
lea ecx, [ebp - 0x134]
call fcn.004039f0
push 0
push ecx
mov eax, esp
xorps xmm0, xmm0
push 0
push 0
push 0x41d018
mov dword [eax], 0
push ecx
mov eax, esp
lea ecx, [ebp - 0x24]
movdqu xmmword [ebp - 0x24], xmm0
mov dword [eax], ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
lea ecx, [ebp - 0x134]
call fcn.00405140
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4088ad
lea edi, [eax + 1]
jmp 0x4089b4
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x134]
call fcn.00404e40
lea ecx, [ebp - 0xd8]
call fcn.00405d70
push dword [ebp - 0xd4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 5
push dword [ebp - 0xd4]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push dword [ebp - 0xd4]
movdqu xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebp - 0x54]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xd8]
call fcn.00401240
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
push 1
mov ebx, eax
call edi
push 8
push eax
mov eax, dword [ebp - 0x78]
push ebx
push 0
neg eax
push 0
sbb eax, eax
push eax
push dword [ebp - 0x130]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0xc
lea eax, [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 0x130]
call fcn.00402f70
push dword [ebp - 0x130]
lea ecx, [ebp - 0xd8]
call fcn.00404bf0
mov eax, dword [ebp - 0xd4]
lea ecx, [ebp - 0x16c]
mov dword [ebp - 0x110], eax
call fcn.00403ac0
lea eax, [ebp - 0x16c]
mov ecx, 0x425a28
push eax
call fcn.004042d0
lea ecx, [ebp - 0x16c]
call fcn.00408a00
push dword [ebp - 0xd4]
mov edi, eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, 0x425a28
call fcn.00408710
lea ecx, [ebp - 0x16c]
call fcn.00403c30
lea ecx, [ebp - 0x134]
call fcn.00403bb0
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xd8], vtable.CAppBar.0
test eax, eax
je 0x4089e0
push eax
call fcn.0040a83d
jmp 0x4089e0
mov edi, 1
test esi, esi
je 0x4089eb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ad72
mov esp, ebp
pop ebp
ret
Function at 0x408d20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
lea eax, [ebp - 0x1c]
push eax
call fcn.00405aa0
movq xmm0, qword [ebp - 0x1c]
sub esp, 0xc
mov eax, dword [ebp - 0x14]
mov ecx, esp
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea eax, [ebp - 4]
push eax
call fcn.00409780
add esp, 0x10
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0x2001f
push 0x41c798
push SysReAllocString
call fcn.004070b0
mov esi, dword [ebp - 4]
test eax, eax
je 0x408da7
push 0
push 0
push 0x2001f
push 0
push 0
push 0x41c798
push SysReAllocString
lea ecx, [ebp - 0x10]
call fcn.00405320
test eax, eax
jne 0x408ddd
test esi, esi
je 0x408ddd
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408db0
mov edi, dword [ebp - 0x10]
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push str.shutdowntime
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x408de0
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x408deb
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408e05
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408e10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push 0x2001f
push str.SoftwareAskPartnerNetworkDeskBar
push SysReAllocString
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call fcn.004070b0
test eax, eax
je 0x408e71
push 0
push 0
push 0x2001f
push 0
push 0
push str.SoftwareAskPartnerNetworkDeskBar
push SysReAllocString
lea ecx, [ebp - 0x14]
call fcn.00405320
test eax, eax
je 0x408e71
xor ebx, ebx
jmp 0x408f94
call fcn.00402550
mov ecx, eax
test ecx, ecx
je 0x408fab
mov eax, dword [ecx]
push esi
push edi
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
mov ecx, 1
mov dword [ebp - 4], 0x64
lea esi, [eax + 0x10]
mov eax, dword [edi]
mov dword [ebp - 8], esi
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x64
or ecx, eax
jge 0x408eb4
push 0x64
mov ecx, edi
call fcn.00402aa0
lea eax, [ebp - 4]
push eax
push dword [edi]
lea ecx, [ebp - 0x14]
push 0x41cf74
call fcn.00407a70
mov eax, dword [edi]
test eax, eax
jne 0x408ed1
xor ecx, ecx
jmp 0x408ee7
push dword [eax - 8]
push eax
call fcn.0040b5f9
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x408fb5
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x408fb5
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi]
mov word [eax + ecx*2], dx
mov edx, dword [edi]
cmp dword [edx - 0xc], 0
jne 0x408f1c
lea eax, [ebp - 8]
mov ecx, edi
push eax
call fcn.00403d30
mov eax, dword [edi]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
setne bl
jmp 0x408f78
cmp dword [esi - 0xc], 0
jne 0x408f73
test edx, edx
jne 0x408f34
mov eax, 0xd
xor ebx, ebx
test eax, eax
sete bl
jmp 0x408f78
mov ecx, edx
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408f40
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x41cf74
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
jmp 0x408f78
mov ebx, 1
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408f92
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x408fa2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00402150
push 0x80070057
call fcn.00402150
int3

Function at 0x408fc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x408fd9
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408fe5
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x408fe0
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4090e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4090f5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x409100
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409100
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x409290
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0
push 1
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x54], eax
test eax, eax
je 0x4092e6
push 0
mov dword [esi + 0x58], eax
call fcn.00402630
push 0
mov dword [esi + 0x50], eax
mov eax, dword [esi + 4]
push 0
mov dword [esi + 0x4c], eax
lea eax, [esi + 0x48]
push eax
push 0x40a270
push 0
push 0
call fcn.0040bafb
add esp, 0x1c
test eax, eax
je 0x4092e6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x40a160
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4241d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0x14]
push eax
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x14], xmm0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [esi + 0x5c], 0
je 0x40a21a
cmp dword [esi + 0x64], 0
je 0x40a25a
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
mov dword [ebp - 0x28], 0
call dword [sym.imp.USER32.dll_GetCursorPos]
push dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push dword [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x40a25a
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
cmp ecx, dword [esi + 0x38]
jne 0x40a1dc
cmp eax, dword [esi + 0x3c]
je 0x40a25a
push 4
push dword [esi + 4]
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push dword [esi + 0x8c]
push 4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
push str._nverifying_position__mouse_moved____reset_show_delay_timer
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ad72
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x90]
test eax, eax
je 0x40a25a
cmp dword [esi + 0xb0], 0
jne 0x40a25a
lea ecx, [ebp - 0x24]
xorps xmm0, xmm0
push ecx
push eax
movdqu xmmword [ebp - 0x24], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
je 0x40a25a
call fcn.0040bd53
mov ecx, esi
mov dword [esi + 0xb0], eax
call fcn.00402e90
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040ad72
mov esp, ebp
pop ebp
ret
Function at 0x40a480
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40a495
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40a4d4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40a4d0
lea ebx, [ebx]
cmp esi, edx
jae 0x40a4d4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x40a4c0
cmp esi, edx
jb 0x40a4d9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x413f3c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4241d0]
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.004106d8
mov dword [ebp - 0x14], eax
cmp dword [0x4269ec], esi
jne 0x41402f
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x413fbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41410f
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41410f
push 0x41e2b0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41410f
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4269ec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4269f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4269f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4269fc], eax
test eax, eax
je 0x41402c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4269f8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x414054
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x414047
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x414069
push 4
pop eax
jmp 0x414111
cmp dword [ebp - 0x14], esi
je 0x414069
push dword [0x4269ec]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41404e
mov eax, dword [0x4269f8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4140c7
cmp dword [0x4269fc], edi
je 0x4140c7
push eax
call ebx
push dword [0x4269fc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4140c7
test eax, eax
je 0x4140c7
call ecx
test eax, eax
je 0x4140bc
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 0x4140bc
test byte [ebp - 8], 1
jne 0x4140c7
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4140f7
mov eax, dword [0x4269f0]
cmp eax, edi
je 0x4140f4
push eax
call ebx
test eax, eax
je 0x4140f4
call eax
mov esi, eax
test esi, esi
je 0x4140f4
mov eax, dword [0x4269f4]
cmp eax, edi
je 0x4140f4
push eax
call ebx
test eax, eax
je 0x4140f4
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4269ec]
call ebx
test eax, eax
je 0x41410f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x414111
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ad72
mov esp, ebp
pop ebp
ret