joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f201
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x435a78]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x420]
xor esi, esi
push eax
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x41c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x40f245
mov esi, 0x80004005
jmp 0x40f300
mov ecx, dword [0x441258]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00408042
test eax, eax
jne 0x40f26a
mov esi, 0x80004003
jmp 0x40f300
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x420]
lea eax, [ebp - 0x414]
push str._d:_s
push 0xffffffffffffffff
push eax
call fcn.004085dc
add esp, 0x14
lea eax, [ebp - 0x418]
push eax
push dword [0x43e52c]
call sub.Mso20Win32Client.dll_Ordinal_144_1
test eax, eax
jne 0x40f23b
push esi
lea eax, [ebp - 0x41c]
push eax
push esi
push 2
push 1
push esi
push esi
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40f23b
mov ecx, 0x4411b0
call fcn.00403d1d
push 4
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x424]
push eax
push 3
push esi
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 0x80004005
cmovne esi, ecx
cmp dword [ebp - 0x418], 0
je 0x40f315
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x41c], 0
je 0x40f32a
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop esi
setns al
xor ecx, ebp
call fcn.004297cb
mov esp, ebp
pop ebp
ret

Function at 0x40f677
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x435a78]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x418], 0
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x40f725
mov ecx, dword [0x441258]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00408042
test eax, eax
je 0x40f710
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push str._d:_s
push 0xffffffffffffffff
push eax
call fcn.004085dc
add esp, 0x14
lea eax, [ebp - 0x418]
push eax
push dword [0x43e52c]
call sub.Mso20Win32Client.dll_Ordinal_1402
test eax, eax
jne 0x40f710
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x418], 0
je 0x40f725
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004297cb
mov esp, ebp
pop ebp
ret
Function at 0x411c10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x411c50
cmp dword [esi + 4], 0x100
jne 0x411c50
cmp dword [esi + 8], 0x75
jne 0x411c2e
xor eax, eax
jmp 0x411c53
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x411c50
mov eax, dword [esi + 8]
cmp eax, 9
je 0x411c2a
cmp eax, 0x4c
je 0x411c2a
add eax, 0xffffffb2
cmp eax, 1
jbe 0x411c2a
xor eax, eax
inc eax
pop esi
pop ebp
ret 0xc

Function at 0x411da8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.0042ab0c
mov eax, dword [0x435a78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 0x2010], ebx
call fcn.00411d40
push 1
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call sub.Mso20Win32Client.dll_Ordinal_474
mov esi, eax
cmp esi, 0xffffffff
je 0x411ef5
push 0
lea eax, [ebp - 0x2008]
mov edi, 0x2000
push eax
push 0x1fff
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2008], edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
je 0x411eef
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2008]
test eax, eax
je 0x411ef5
cmp eax, edi
jae 0x411f11
mov byte [ebp + eax - 0x2004], 0
lea edi, [ebp - 0x2004]
mov al, byte [edi]
cmp al, 0xa
je 0x411ee4
cmp al, 0xd
je 0x411ee4
cmp al, 0xef
je 0x411ee4
cmp al, 0xbb
je 0x411ee4
cmp al, 0xbf
je 0x411ee4
test al, al
je 0x411eea
mov esi, edi
cmp al, 0xd
je 0x411e91
test al, al
je 0x411e91
cmp dword [ebp + 0xc], 1
jne 0x411e87
cmp al, 0x3e
je 0x411e90
inc esi
mov al, byte [esi]
cmp al, 0xa
jne 0x411e75
jmp 0x411e91
inc esi
xor eax, eax
mov ebx, esi
cmp byte [esi], al
sete al
sub ebx, edi
inc ebx
mov dword [ebp - 0x2014], eax
push ebx
call fcn.004025fe
mov dword [ebp - 0x200c], eax
pop ecx
test eax, eax
je 0x411eea
push ebx
push eax
push edi
call fcn.00411f17
mov ebx, dword [ebp - 0x2010]
lea eax, [ebp - 0x200c]
push eax
push ebx
call sub.Mso20Win32Client.dll_Ordinal_552
cmp eax, 0xffffffff
je 0x411ef5
cmp dword [ebp - 0x2014], 0
jne 0x411eea
mov edi, esi
jmp 0x411e51
inc edi
jmp 0x411e51
xor eax, eax
inc eax
jmp 0x411efe
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call fcn.00411d40
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004297cb
mov esp, ebp
pop ebp
ret 8
call fcn.0042a806
int3

Function at 0x416185
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x3c], 0
je 0x4161a8
push 0
push dword [esi + 0x3c]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x3c]
call dword [sym.imp.USER32.dll_SetParent]
mov eax, dword [esi + 0x3c]
and dword [esi + 0x3c], 0
pop esi
pop ebp
ret 4
Function at 0x4184de
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x44]
cmp eax, edi
je 0x41859e
test eax, eax
je 0x418516
add eax, 0x44
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
je 0x418516
mov eax, dword [esi + 0x44]
add eax, 0x44
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
test edi, edi
je 0x41851f
lea edx, [edi + 0x44]
jmp 0x418521
xor edx, edx
mov eax, dword [esi + 0x44]
push ebx
test eax, eax
je 0x41852e
lea ebx, [eax + 0x44]
jmp 0x418530
xor ebx, ebx
mov eax, dword [esi + 0x48]
push edx
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esi]
mov dword [esi + 0x44], edi
push dword [edi + 4]
push esi
call dword [eax + 0x14]
push eax
call sub.Mso99LWin32Client.dll_Ordinal_911
pop ebx
test eax, eax
je 0x4185bc
mov eax, dword [esi + 0x44]
push dword [eax + 4]
call fcn.00417387
mov ecx, dword [esi + 0x188]
test ecx, ecx
je 0x418578
mov eax, dword [esi + 0x44]
push 0
push dword [eax + 4]
push 0
push 1
call fcn.00424990
mov eax, dword [esi + 0x44]
test eax, eax
je 0x41859e
add eax, 0x44
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
je 0x41859e
mov eax, dword [esi + 0x44]
add eax, 0x44
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [esi + 0x5c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [esi]
push 0
push esi
call dword [eax + 0x54]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
ret 4
push 2
call fcn.00426ab9
int3

Function at 0x424100
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x435a78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x120], eax
mov eax, dword [0x446f90]
inc ebx
push edi
xor edi, edi
test eax, eax
jne 0x4241ca
mov esi, 0x114
lea eax, [ebp - 0x118]
push esi
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x118], esi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jbe 0x42417e
mov dword [0x446f90], ebx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004297cb
mov esp, ebp
pop ebp
ret 4
jne 0x4241c2
cmp dword [ebp - 0x110], ebx
jb 0x4241ae
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x4241ba
cmp dword [ebp - 0x11c], edi
je 0x4241ba
mov dword [0x446f90], 2
jmp 0x4241cf
mov dword [0x446f90], ebx
jmp 0x424169
push 2
pop eax
mov dword [0x446f90], eax
cmp eax, 2
jne 0x424169
mov esi, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push edi
call esi
mov ebx, eax
push ebx
call esi
test ebx, ebx
je 0x4241f4
push dword [ebp - 0x120]
call ebx
mov edi, eax
test edi, edi
je 0x4241f4
cmp edi, 1
jne 0x4241fe
mov dword [0], 1
mov eax, edi
jmp 0x42416b
Function at 0x424990
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 4], eax
test esi, esi
je 0x4249a6
mov dword [esi], ebx
cmp dword [eax], ebx
jne 0x4249ae
xor al, al
jmp 0x424a1b
push edi
push dword [eax + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
test edi, edi
je 0x424a18
push 0x1f4
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x424a0a
mov eax, dword [ebp - 4]
push ebx
push ebx
push ebx
push 6
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
test ecx, ecx
je 0x424a0a
test esi, esi
je 0x4249ee
mov eax, dword [ecx]
mov dword [esi], eax
cmp byte [ebp + 8], bl
jne 0x4249fc
cmp byte [ebp + 0xc], bl
je 0x424a01
cmp dword [ecx], ebx
jne 0x424a01
mov eax, dword [ebp + 0x10]
mov dword [ecx], eax
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x42912d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x435a78]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push eax
push 0
push 2
push esi
push str.SoftwareMicrosoftOffice16.0CommonFilesPaths
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x429196
cmp dword [ebp - 0x210], 4
jb 0x429196
test edi, edi
lea eax, [ebp - 0x20c]
cmovne esi, edi
push esi
push eax
call fcn.00429250
jmp 0x429198
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004297cb
mov esp, ebp
pop ebp
ret 8

Function at 0x4291aa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x435a78]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push eax
push 0
push 2
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x42923d
mov ecx, dword [ebp - 0x210]
cmp ecx, 4
jb 0x42923d
shr ecx, 1
push 0xffffffffffffffff
cmp word [ebp + ecx*2 - 0x210], 0x5c
sete al
lea eax, [eax*2 + str.Microsoft_SharedOffice16_]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00429250
jmp 0x42923f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004297cb
mov esp, ebp
pop ebp
ret 4
Function at 0x4297d8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x435a78], eax
je 0x4297fa
cmp dword [0x435a78], ebx
jne 0x42988e
push edi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edi, dword [ebp - 8]
xor edi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor edi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x435a78
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
test edi, edi
push eax
push dword [ebp - 4]
cmovne ebx, edi
mov edi, 0x435a78
push 4
push edi
mov dword [0x435a78], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push edi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x435a78]
not eax
mov dword [0x43f2e0], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42994e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x447144], 0
je 0x429966
mov eax, dword [0x447148]
jmp 0x429a36
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwarePoliciesMicrosoftSecurity
push SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4299b5
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x447148
push esi
push esi
push dword [0x43f2e4]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4299b5
cmp dword [ebp - 8], 4
je 0x429a0f
mov eax, dword [ebp - 4]
mov dword [ebp - 4], esi
test eax, eax
je 0x4299c6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftSecurity
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x429a17
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x447148
push esi
push esi
push dword [0x43f2e4]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x429a17
cmp dword [ebp - 8], 4
jne 0x429a17
mov esi, dword [0x447148]
jmp 0x429a1d
mov dword [0x447148], esi
cmp dword [ebp - 4], 0
mov byte [0x447144], 1
je 0x429a33
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x429a3a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.CLSID
push SysReAllocString
mov dword [ebp - 8], ebx
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x429acc
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0x20019
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call edi
test eax, eax
jne 0x429ac2
push 4
pop edi
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push str.InsecureQI
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x429ac2
cmp dword [ebp + 8], edi
jne 0x429ac2
mov edi, dword [ebp - 0xc]
cmp edi, 3
ja 0x429ac2
cmp dword [ebp - 4], ebx
je 0x429ace
push dword [ebp - 4]
call esi
jmp 0x429ace
cmp dword [ebp - 4], ebx
je 0x429acc
push dword [ebp - 4]
call esi
mov edi, ebx
cmp dword [ebp - 8], ebx
je 0x429ad8
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42a221
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x43b308
call fcn.0042ab80
push 1
call fcn.0042a38b
pop ecx
test al, al
jne 0x42a0ca
push 7
call fcn.0042add5
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0042a356
mov byte [ebp - 0x24], al
mov eax, dword [0x44714c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x42a0c3
test eax, eax
jne 0x42a134
mov dword [0x44714c], ecx
push 0x42e2f0
push 0x42e2d8
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x42a117
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x42a21b
push 0x42e2d4
push 0x42e2ac
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x44714c], 2
jmp 0x42a139
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0042a4e8
pop ecx
call fcn.0042adc9
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x42a169
push esi
call fcn.0042a45b
pop ecx
test al, al
je 0x42a169
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0042b004
call esi
call fcn.0042adcf
mov esi, eax
cmp dword [esi], edi
je 0x42a187
push esi
call fcn.0042a45b
pop ecx
test al, al
je 0x42a187
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.0042aeea
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.0042af1d
test al, al
jne 0x42a1c0
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x42a1c9
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.0042a505
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x42a21b
call fcn.0042abc6
ret
call fcn.004297d8
jmp 0x42a0ab
Function at 0x42b40c
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x435a78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x208
push esi
push 0
push eax
mov dword [ebp - 0x214], 1
call sub.VCRUNTIME140.dll_memset
mov edx, 0x447510
mov dword [ebp - 0x210], esi
add esp, 0xc
mov eax, edx
xor ecx, ecx
cmp dword [eax], 0
je 0x42b46d
add eax, 0x14
inc ecx
cmp eax, 0x447538
jl 0x42b458
jmp 0x42b5c4
imul esi, ecx, 0x14
add esi, edx
je 0x42b5c4
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42b5a8
cmp dword [ebp - 0x214], 1
jne 0x42b5a8
cmp word [ebp - 0x20c], ax
je 0x42b5a8
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x42b5a8
shr eax, 1
mov dword [ebp - 0x210], eax
cmp eax, 0x104
jae 0x42b4ef
add eax, eax
cmp eax, 0x208
jae 0x42b5d7
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
jmp 0x42b4f5
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042b96d
mov dword [esi], eax
test eax, eax
je 0x42b5a8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._GetPerfhostHookVersion_0
push eax
call edi
test eax, eax
jne 0x42b522
mov eax, dword [ebp + 0x10]
jmp 0x42b524
call eax
mov dword [esi + 4], eax
cmp eax, 1
jne 0x42b548
push str._InitPerf_4
push dword [esi]
call edi
push str._PerfCodeMarker_12
push dword [esi]
mov dword [esi + 8], eax
call edi
push str._UnInitPerf_4
jmp 0x42b57c
cmp eax, 2
jne 0x42b55d
push str._InitPerf_4
push dword [esi]
call edi
push str._PerfCodeMarker_8
jmp 0x42b53a
cmp eax, 3
jne 0x42b586
push str._InitPerf_v3_4
push dword [esi]
call edi
push str._PerfCodeMarker_v3_8
push dword [esi]
mov dword [esi + 8], eax
call edi
push str._UnInitPerf_v3_4
push dword [esi]
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0xc], eax
cmp dword [esi + 8], 0
je 0x42b5a8
cmp dword [esi + 0x10], 0
je 0x42b5a8
cmp dword [esi + 0xc], 0
je 0x42b5a8
push dword [0x447540]
push esi
call fcn.0042b3d3
test eax, eax
jns 0x42b5c4
cmp dword [esi], 0
je 0x42b5b5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [esi], 0
and dword [esi + 8], 0
and dword [esi + 0xc], 0
and dword [esi + 0x10], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004297cb
mov esp, ebp
pop ebp
ret 0xc
call fcn.0042a806
int3
Function at 0x401005
Capabilities:
Access peb ldr_data

Disassembly:
push 0
push 2
push 0x403071
push 0x403053
call dword [sym.imp.Winmm.dll_mciSendStringA]
cmp eax, 0x107
je 0x401021
ret
mov edi, edi
mov esi, 0x402058
mov edi, esi
push 1
push 0x40308f
push 1
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateSemaphoreW]
mov edx, eax
pop ebx
mov ecx, 0x340
mov al, byte [esi]
sub al, bl
stosb byte es:[edi], al
inc esi
loop 0x401045
push dword fs:[0x30]
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
cmp word [eax], 0x5a4d
je 0x40106b
xor eax, eax
mov dword [0x4030a2], eax
add esp, 4
ret

Function at 0x49dc40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x95000]
push edi
or ebp, 0xffffffff
jmp 0x49dc62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x49dc69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49dc58
mov eax, 1
add ebx, ebx
jne 0x49dc7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x49dc70
jne 0x49dc8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x49dc70
xor ecx, ecx
sub eax, 3
jb 0x49dca0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x49dd12
mov ebp, eax
add ebx, ebx
jne 0x49dcab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x49dcb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x49dcdc
inc ecx
add ebx, ebx
jne 0x49dcc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x49dcbd
jne 0x49dcd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x49dcbd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x49dcfc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x49dced
jmp 0x49dc5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x49dcfc
add edi, ecx
jmp 0x49dc5e
pop esi
mov edi, esi
mov ecx, 0xab6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x49dd1a
cmp byte [edi], 6
jne 0x49dd1a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x49dd1f
lea edi, [esi + 0x9b000]
mov eax, dword [edi]
or eax, eax
je 0x49dd8e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9d0f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9d1ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x49dd4c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9d1b0]
or eax, eax
je 0x49dd88
mov dword [ebx], eax
add ebx, 4
jmp 0x49dd69
call dword [esi + 0x9d1b4]
popal
jmp 0x4134f8
Function at 0x401491
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x42e9b0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x401526
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014e3
cmp dword [ebp + 0x10], ebx
jne 0x40151a
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401491
test eax, eax
jne 0x4014f5
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014ca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.0040576e
cmp eax, ebx
je 0x40152d
push ebx
push dword [0x42e9b0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401526
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42e9b0], ebx
jne 0x401523
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401523
jmp 0x401526