joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004283
Capabilities:
Delete registry value
Persist via windows service
Set registry value

Disassembly:
push 0x1c
push 0x1009350
call fcn.010055cc
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
push dword [0x100a010]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
mov edi, eax
push dword [0x100a00c]
call esi
add edi, eax
push dword [ebp + 0xc]
call esi
lea eax, [eax + edi + 2]
mov dword [ebp - 0x20], eax
add eax, eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, ebx
jne 0x10042dd
push 0xe
pop esi
jmp 0x1004388
push dword [0x100a010]
push dword [ebp + 0xc]
push dword [0x100a00c]
push 0x10015c4
push dword [ebp - 0x20]
push esi
call fcn.01003ee9
add esp, 0x18
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x1c]
push eax
push 0x2001f
push ebx
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x1004344
cmp esi, ebx
jne 0x1004388
cmp dword [ebp + 0x10], ebx
je 0x1004370
mov dword [ebp - 0x20], 1
push 4
lea eax, [ebp - 0x20]
push eax
push 4
push ebx
push dword [0x100a014]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x1004388
push dword [0x100a014]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
cmp esi, 2
jne 0x1004388
xor esi, esi
cmp dword [ebp - 0x1c], ebx
je 0x100439c
cmp dword [ebp - 0x1c], 0xffffffff
je 0x100439c
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x24], ebx
je 0x10043b2
push dword [ebp - 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
call fcn.01005611
ret 0xc
Function at 0x10043c1
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 8], ebx
cmp dword [ebp + 8], ebx
je 0x1004570
cmp dword [ebp + 0xc], ebx
je 0x1004570
push dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
push 0x5c
push dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 4], esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x1004589
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1004487
cmp word [eax], 0x2e
je 0x1004487
push eax
call edi
test eax, eax
jbe 0x1004487
lea ecx, [eax + 2]
cmp eax, ecx
jae 0x1004487
add esi, ecx
cmp ecx, esi
jae 0x1004487
cmp dword [ebp - 4], esi
jae 0x1004487
push 2
mov eax, esi
pop ecx
mul ecx
mov eax, edx
sar eax, 0x1f
test edx, edx
jne 0x1004487
lea eax, [esi + esi]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x1004487
push dword [ebp + 0x10]
push esi
push ebx
call fcn.01003e55
push ebx
call edi
test eax, eax
jle 0x1004487
push ebx
call edi
cmp word [ebx + eax*2 - 2], 0x5c
je 0x100447e
push 0x10014ec
push esi
push ebx
call fcn.01003e8f
push dword [ebp + 0xc]
push esi
jmp 0x1004513
push dword [ebp + 8]
call edi
lea ecx, [eax + 8]
cmp eax, ecx
jae 0x100451b
mov eax, dword [ebp - 4]
lea edi, [ecx + eax]
cmp ecx, edi
jae 0x100451b
cmp eax, edi
jae 0x100451b
push 6
mov eax, edi
pop ecx
mul ecx
mov eax, edx
sar eax, 0x1f
test edx, edx
jne 0x100451b
mov eax, edi
imul eax, eax, 6
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x100451b
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
lea esi, [ebx + edi*2]
push edi
lea eax, [esi + edi*2]
push eax
push edi
push esi
push dword [ebp + 8]
mov dword [ebp + 0x10], eax
call sub.msvcrt.dll__wsplitpath_s
add esp, 0x24
cmp word [esi], 0
je 0x100451b
mov eax, dword [ebp + 0x10]
cmp word [eax], 0
je 0x100451b
push esi
push edi
push ebx
call fcn.01003e55
push dword [ebp + 0x10]
push edi
push ebx
call fcn.01003e8f
push dword [ebp + 0xc]
push edi
push ebx
call fcn.01003e8f
jmp 0x1004577
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
push 0
call esi
lea ecx, [eax + 1]
cmp eax, ecx
jae 0x1004577
mov eax, dword [ebp - 4]
lea edi, [ecx + eax]
cmp ecx, edi
jae 0x1004577
cmp eax, edi
jae 0x1004577
push 2
mov eax, edi
pop ecx
mul ecx
mov eax, edx
sar eax, 0x1f
test edx, edx
jne 0x1004577
lea eax, [edi + edi]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x1004589
push ebx
push edi
call esi
push 0x10014ec
jmp 0x1004508
mov dword [ebp - 8], 0x57
test ebx, ebx
jne 0x1004589
cmp dword [ebp - 8], ebx
je 0x1004589
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x100559d
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1009370
call fcn.010055cc
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x100aaec
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10053b2
cmp eax, esi
jne 0x10053a5
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x10053b5
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100538c
xor esi, esi
inc esi
mov eax, dword [0x100aae8]
cmp eax, esi
jne 0x10053c8
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1005403
mov eax, dword [0x100aae8]
test eax, eax
jne 0x10053fd
mov dword [0x100aae8], esi
push 0x10011bc
push 0x10011b0
call fcn.01005309
pop ecx
pop ecx
test eax, eax
je 0x1005403
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x10054cd
mov dword [0x100a78c], esi
mov eax, dword [0x100aae8]
cmp eax, esi
jne 0x1005427
push 0x10011ac
push 0x10011a4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100aae8], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1005434
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100aaf0], ebx
je 0x1005455
push 0x100aaf0
call fcn.01005789
pop ecx
test eax, eax
je 0x1005455
push ebx
push 2
push ebx
call dword [0x100aaf0]
push dword [0x100a774]
push dword [0x100a778]
push dword [0x100a770]
call fcn.01004ffb
add esp, 0xc
mov dword [0x100a788], eax
cmp dword [0x100a77c], ebx
jne 0x10054b3
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x100a78c], ebx
jne 0x10054c1
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100a788]
call fcn.01005611
ret
call fcn.010058d6
jmp 0x100536a
Function at 0x1005aec
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, 0xffffffff
je 0x1005b44
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
and eax, 0xffff7fff
cmp eax, 2
jne 0x1005b44
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
xor esi, esi
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1005b21
push esi
sub eax, edx
lea ecx, [ebp - 0x10]
push ecx
sar eax, 1
push eax
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x1005bd3
push ebx
push dword [ebp + 8]
call fcn.01005a5f
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor esi, esi
mov dword [ebp - 8], eax
cmp eax, esi
je 0x1005bbb
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push eax
push esi
push 1
call edi
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x1005bbb
push eax
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x1005bbb
push esi
push esi
push dword [ebp - 0xc]
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push esi
push 1
call edi
cmp eax, esi
je 0x1005bae
push esi
lea ecx, [ebp - 0x10]
push ecx
dec eax
push eax
push dword [ebp - 4]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 8]
cmp dword [ebp + 8], eax
je 0x1005bd2
cmp eax, esi
je 0x1005bd2
push eax
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x1007441
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x100a018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x430], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x434], eax
mov eax, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x420], edi
push 0x20a
lea eax, [ebp - 0x210]
push edi
push eax
mov dword [ebp - 0x424], 0x104
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x420]
push dword [ebp - 0x430]
call ebx
mov esi, eax
cmp esi, edi
jne 0x100759a
lea eax, [ebp - 0x42c]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x1007598
mov dword [ebp - 0x428], edi
push 0x20a
lea eax, [ebp - 0x41c]
push edi
push eax
mov dword [ebp - 0x424], 0x104
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
call ebx
mov esi, eax
cmp esi, edi
jne 0x1007557
push dword [ebp - 0x438]
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1007563
inc dword [ebp - 0x428]
cmp esi, edi
je 0x10074f9
jmp 0x100758a
push dword [ebp - 0x434]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
mov esi, eax
neg esi
sbb esi, esi
pop ecx
and esi, 0xffffff56
pop ecx
add esi, 0xb7
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100759a
xor esi, esi
inc dword [ebp - 0x420]
cmp esi, edi
je 0x1007482
cmp esi, 0x103
jne 0x10075b2
xor esi, esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.010055b7
leave
ret 0xc
Function at 0x10079fb
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x100a018]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
lea edx, [ebp - 0x218]
push edx
push 0x2000000
xor esi, esi
push esi
push ecx
push eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1007aec
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
push esi
push esi
push esi
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1007ace
push ebx
push edi
mov ebx, 0x20a
push ebx
lea eax, [ebp - 0x210]
push esi
push eax
call sub.msvcrt.dll_memset
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x1007aa9
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x218]
call fcn.010079fb
test eax, eax
jne 0x1007acc
push ebx
push eax
lea eax, [ebp - 0x210]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
dec dword [ebp - 0x214]
push edi
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
push dword [ebp - 0x218]
call esi
test eax, eax
je 0x1007a85
pop edi
pop ebx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.010055b7
leave
ret 8
Function at 0x4025c8
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes
Move file

Disassembly:
push 0x70
mov eax, 0x45549d
call fcn.00436bf5
mov edi, ecx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ebx, ebx
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [ebp - 4], ebx
mov dword [edi + 8], ebx
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push eax
push ebx
push ebx
push 0x459a80
mov dword [ebp - 0x74], ebx
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x4027ae
mov esi, dword [ebp - 0x74]
mov dword [ebp - 0x7c], esi
push esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.004059e5
push 0x467af4
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00407d34
push eax
lea ecx, [ebp - 0x40]
call fcn.004059b2
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
call fcn.00407c3e
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push ebx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40266f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40279b
push str.NvNode
lea ecx, [ebp - 0x40]
call fcn.00407d34
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push ebx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4026a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40279b
push str.launcher.log
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004090f8
mov byte [ebp - 4], 6
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
mov dword [esp], str..bak
call fcn.004090f8
mov dword [esp], str.67DF32C5_5AAE_4C02_BAA0_9DE41E8E9FE2
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [edi + 4]
mov dword [edi + 4], eax
test ecx, ecx
je 0x4026ef
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 4]
test eax, eax
je 0x40278b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402718
push 0x1388
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40274f
jmp 0x40278b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40274f
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
push 1
cmovae ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push 0x80
push 4
push ebx
push 3
push 0x100004
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [edi + 8]
mov dword [edi + 8], eax
test ecx, ecx
je 0x40278b
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x58]
call fcn.00407c3e
lea ecx, [ebp - 0x28]
call fcn.00407c3e
lea ecx, [ebp - 0x40]
call fcn.00407c3e
test esi, esi
je 0x4027ae
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
call fcn.00436b9f
ret
Function at 0x402891
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x4554d2
call fcn.00436bf5
mov edi, ecx
mov al, byte [ebp + 8]
mov esi, dword [ebp + 0xc]
mov byte [ebp - 0x60], al
lea eax, [ebp - 0x5c]
push dword [ebp - 0x60]
push eax
call fcn.004027b6
and dword [ebp - 4], 0
mov ecx, eax
push esi
call fcn.00405aa6
push eax
lea ecx, [ebp - 0x44]
call fcn.00405acc
push 2
push 0x467be0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00407f6c
push eax
lea ecx, [ebp - 0x2c]
call fcn.00405acc
lea ecx, [ebp - 0x44]
call fcn.00407dc4
lea ecx, [ebp - 0x5c]
call fcn.00407dc4
and dword [ebp - 0x60], 0
lea ecx, [ebp - 0x60]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push ecx
push dword [ebp - 0x1c]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x2c]
call fcn.00407dc4
call fcn.00436b9f
ret 8

Function at 0x402927
Capabilities:
Check if file exists

Disassembly:
push esi
push edi
push str.23FC14F6_CBB0_400C_AB0D_D94A864ED2B7
xor edi, edi
push edi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
test esi, esi
je 0x40296e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40298c
cmp eax, 0x102
je 0x402969
cmp eax, 0xffffffff
je 0x402961
mov edi, 0x8000ffff
jmp 0x40298c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402979
push 2
pop edi
jmp 0x40298c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x402989
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x40298c
xor edi, edi
inc edi
test esi, esi
je 0x402997
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x40299c
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x4554ff
call fcn.00436bc1
mov ebx, ecx
xor edi, edi
cmp dword [ebx + 8], edi
je 0x4029bd
push str.Shutdown_requested.
push 0x49
call fcn.00402891
mov dword [ebp - 0x10], edi
push str.Global1E6C4F0F_8ABF_4709_AAAD_0341CF2D44A7
push edi
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], edi
test esi, esi
je 0x402a28
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x402a20
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, 0x96
jb 0x4029c0
cmp dword [ebx + 8], edi
je 0x402a19
push str.Exiting_with_timeout
push 0x45
mov ecx, ebx
call fcn.00402891
mov eax, 0x800705b4
jmp 0x402a7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402a4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x10], eax
cmp eax, 2
je 0x402a5e
test ecx, ecx
je 0x402a4e
push str.Cannot_open_existing_event.
push 0x49
mov ecx, ebx
call fcn.00402891
mov eax, dword [ebp - 0x10]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x402a70
test ecx, ecx
je 0x402a70
push str.No_event_to_wait_for__exiting_with_S_OK
push 0x49
mov ecx, ebx
call fcn.00402891
test esi, esi
je 0x402a7b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.00436b8a
ret
Function at 0x402a83
Capabilities:
Enumerate processes

Disassembly:
push 0x46c
mov eax, 0x455530
call fcn.00436bf5
mov esi, edx
mov ebx, ecx
mov eax, dword [esi]
mov dword [esi + 4], eax
cmp dword [ebx + 0x10], 0
je 0x402ad4
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
test edi, edi
je 0x402ad4
lea eax, [ebp - 0x474]
mov dword [ebp - 0x474], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x402adc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
call fcn.00436b9f
ret
and dword [ebp - 0x238], 0
lea ecx, [ebp - 0x248]
and dword [ebp - 0x234], 0
push ebx
call fcn.00407d5b
and dword [ebp - 4], 0
lea ecx, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
lea edx, [ebp - 0x248]
mov eax, dword [ebp - 0x238]
cmovae ecx, dword [ebp - 0x248]
cmovae edx, dword [ebp - 0x248]
push edx
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x248]
cmovae ecx, dword [ebp - 0x248]
push eax
push ecx
lea ecx, [ebp - 0x478]
call fcn.00409180
add esp, 0xc
push dword [ebp - 0x46c]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x402c83
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00438580
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x402c83
and dword [ebp - 0x220], 0
lea ecx, [ebp - 0x230]
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x218]
push eax
call fcn.00407cbb
push 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
mov eax, dword [ebp - 0x220]
lea edx, [ebp - 0x230]
pop ebx
cmp dword [ebp - 0x21c], ebx
cmovae ecx, dword [ebp - 0x230]
cmovae edx, dword [ebp - 0x230]
push edx
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
push eax
push ecx
lea ecx, [ebp - 0x478]
call fcn.00409180
mov edx, dword [ebp - 0x238]
lea eax, [ebp - 0x230]
add esp, 0xc
lea ecx, [ebp - 0x248]
cmp dword [ebp - 0x21c], ebx
cmovae eax, dword [ebp - 0x230]
cmp dword [ebp - 0x234], ebx
cmovae ecx, dword [ebp - 0x248]
cmp edx, dword [ebp - 0x220]
jne 0x402c74
push edx
push eax
push ecx
call fcn.00401130
add esp, 0xc
test eax, eax
jne 0x402c74
mov ecx, dword [esi + 4]
cmp dword [esi + 8], ecx
je 0x402c65
mov eax, dword [ebp - 0x46c]
mov dword [ecx], eax
add dword [esi + 4], 4
jmp 0x402c74
lea eax, [ebp - 0x46c]
push eax
push ecx
mov ecx, esi
call fcn.004095f5
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.00407c3e
lea eax, [ebp - 0x474]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x402b42
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esi + 4]
lea ecx, [ebp - 0x248]
mov esi, dword [esi]
call fcn.00407c3e
sub edi, esi
cmp edi, 4
sbb al, al
inc al
jmp 0x402ad6
Function at 0x403c83
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xd8
mov eax, 0x45576a
call fcn.00436bf5
mov ebx, ecx
mov dword [ebp - 0xc4], ebx
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xc4], ebx
push eax
xor edi, edi
lea eax, [ebp - 0xc4]
push edi
push eax
push 0x10002
push str.version
push str.SoftwareNVIDIA_CorporationGlobalGFExperience
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xc8], edi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x403dfc
mov esi, dword [ebp - 0xc8]
mov eax, SysReAllocString
shr esi, 1
inc esi
mov dword [ebp - 0xd4], edi
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0xcc], edi
cmp esi, eax
ja 0x403e39
push esi
lea ecx, [ebp - 0xd4]
lfence
call fcn.004080e3
mov edi, eax
lea eax, [esi + esi]
push eax
push 0
push edi
lea esi, [eax + edi]
mov dword [ebp - 0xd4], edi
mov dword [ebp - 0xcc], esi
call fcn.00438580
add esp, 0xc
mov dword [ebp - 0xd0], esi
lea eax, [ebp - 0xc8]
mov dword [ebp - 4], 2
push eax
push edi
lea eax, [ebp - 0xc4]
push eax
push 0x10002
push str.version
push str.SoftwareNVIDIA_CorporationGlobalGFExperience
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x403dad
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.00401261
push eax
mov edx, str.RegGetValue_failed_with
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.004093ec
pop ecx
push eax
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 4
call fcn.004012c8
push 0x4745b0
lea eax, [ebp - 0xe4]
jmp 0x403e33
lea ecx, [ebp - 0xc0]
call fcn.0040543a
xor ecx, ecx
mov byte [ebp - 4], 5
mov eax, edi
cmp word [edi], cx
je 0x403dcd
add eax, 2
cmp word [eax], cx
jne 0x403dc5
push eax
push edi
push ebx
lea ecx, [ebp - 0xc0]
call fcn.004072b8
lea ecx, [ebp - 0xc0]
call fcn.00405418
sub esi, edi
and esi, 0xfffffffe
push esi
push edi
call fcn.00409d69
pop ecx
pop ecx
mov eax, ebx
call fcn.00436b9f
ret
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.00401261
push eax
mov edx, str.RegGetValue_failed_with
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x40]
call fcn.004093ec
pop ecx
push eax
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 1
call fcn.004012c8
push 0x4745b0
lea eax, [ebp - 0xd4]
push eax
call fcn.00437a05
call fcn.0040a0f2
int3