joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ce38
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419408]
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.004078cb
mov dword [ebp - 0x14], eax
cmp dword [0x4ad538], esi
jne 0x40cf2b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40ceb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d00b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d00b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d00b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4ad538], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4ad53c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4ad540], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ad548], eax
test eax, eax
je 0x40cf28
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ad544], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40cf50
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40cf43
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40cf65
push 4
pop eax
jmp 0x40d00d
cmp dword [ebp - 0x14], esi
je 0x40cf65
push dword [0x4ad538]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40cf4a
mov eax, dword [0x4ad544]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40cfc3
cmp dword [0x4ad548], edi
je 0x40cfc3
push eax
call ebx
push dword [0x4ad548]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40cfc3
test eax, eax
je 0x40cfc3
call ecx
test eax, eax
je 0x40cfb8
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 0x40cfb8
test byte [ebp - 8], 1
jne 0x40cfc3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40cff3
mov eax, dword [0x4ad53c]
cmp eax, edi
je 0x40cff0
push eax
call ebx
test eax, eax
je 0x40cff0
call eax
mov esi, eax
test esi, esi
je 0x40cff0
mov eax, dword [0x4ad540]
cmp eax, edi
je 0x40cff0
push eax
call ebx
test eax, eax
je 0x40cff0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4ad538]
call ebx
test eax, eax
je 0x40d00b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d00d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004041de
mov esp, ebp
pop ebp
ret
Function at 0x4028cd
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x556b7d
call fcn.004e6194
push ecx
mov eax, dword [0x62f4f8]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x20]
mov dword [ecx], eax
mov eax, dword [0x62f4f8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x30], eax
mov eax, dword [0x62f4f8]
mov dword [esi + 0x34], eax
push 4
mov edi, 0x6372dc
pop eax
mov byte [ebp - 4], 2
push edi
mov dword [esi], 0x569a5c
mov dword [esi + 4], 1
mov dword [esi + 8], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
call fcn.0054187e
push edi
lea ecx, [esi + 0x30]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.0054187e
push edi
lea ecx, [esi + 0x34]
call fcn.0054187e
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x38], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40f74c
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [ecx]
push dword [esp + 4]
call dword [eax + 0xc8]
mov eax, dword [eax + 0x40]
xor ecx, ecx
cmp dword [eax - 8], ecx
jne 0x40f767
or eax, 0xffffffff
jmp 0x40f77a
push 1
push ecx
push ecx
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
ret 4

Function at 0x40fa2a
Capabilities:
Create process on windows

Disassembly:
xor eax, eax
push 1
push eax
push eax
push dword [esp + 0x10]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
ret 4

Function at 0x410e59
Capabilities:
Resume thread

Disassembly:
mov eax, 0x5576ad
call fcn.004e6194
push ecx
push ebx
push esi
push edi
mov edi, ecx
push 0x74
call fcn.0053df39
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor ebx, ebx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x410e8a
push dword [edi]
call fcn.00410d17
mov esi, eax
jmp 0x410e8c
xor esi, esi
or eax, 0xffffffff
cmp esi, ebx
mov dword [ebp - 4], eax
je 0x410eda
push ebx
push ebx
push 4
mov ecx, esi
call fcn.0053d3e9
test eax, eax
jne 0x410eb3
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
or eax, 0xffffffff
jmp 0x410eda
mov ecx, dword [0x637bf4]
push ebx
push ebx
push 1
call fcn.0040e7c7
push ebx
mov dword [edi + 4], esi
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x411041
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x557761
call fcn.004e6194
push ecx
mov eax, dword [0x62f4f8]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
mov dword [ecx], eax
mov eax, dword [0x62f4f8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 8], eax
mov eax, dword [0x62f4f8]
mov dword [esi + 0x14], eax
mov eax, dword [0x62f4f8]
mov dword [esi + 0x34], eax
mov eax, dword [0x62f4f8]
mov dword [esi + 0x38], eax
mov eax, dword [0x62f4f8]
mov dword [esi + 0x3c], eax
mov eax, dword [0x62f4f8]
mov dword [esi + 0x40], eax
mov edi, 0x6372dc
mov byte [ebp - 4], 6
push edi
mov dword [esi], ebx
call fcn.0054187e
push edi
lea ecx, [esi + 8]
call fcn.0054187e
push edi
lea ecx, [esi + 0x14]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call fcn.0054187e
push edi
lea ecx, [esi + 0x34]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], 0x14
call fcn.0054187e
push edi
lea ecx, [esi + 0x38]
call fcn.0054187e
push edi
lea ecx, [esi + 0x3c]
call fcn.0054187e
push edi
lea ecx, [esi + 0x40]
call fcn.0054187e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x411581
Capabilities:
Resume thread

Disassembly:
mov eax, 0x5578a9
call fcn.004e6194
push ecx
push ebx
push esi
push edi
mov esi, ecx
push 2
call fcn.00411669
lea ebx, [esi + 0x32c]
xor edi, edi
mov ecx, ebx
mov dword [esi + 0x2e0], edi
mov dword [esi + 0x2e4], edi
call fcn.00411259
push 0x84
call fcn.0053df39
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
cmp ecx, edi
mov dword [ebp - 4], edi
je 0x4115da
push esi
lea eax, [esi + 0x2e8]
push ebx
push eax
call fcn.00410ae2
jmp 0x4115dc
xor eax, eax
or dword [ebp - 4], 0xffffffff
cmp eax, edi
mov dword [esi + 0x370], eax
je 0x411610
push edi
push edi
push 4
mov ecx, eax
call fcn.0053d3e9
test eax, eax
jne 0x411615
mov ecx, dword [esi + 0x370]
cmp ecx, edi
je 0x41160a
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x370], edi
or eax, 0xffffffff
jmp 0x41165a
push 1
pop ebx
push edi
push edi
push 0x1009
mov dword [esi + 0x36c], ebx
push dword [esi + 0x204]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x370]
push edi
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi + 0x370]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
mov ecx, esi
call fcn.004118c7
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41b501
Capabilities:
Check os version

Disassembly:
mov eax, 0x5583db
call fcn.004e6194
sub esp, 0x118
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0x1c]
mov esi, ecx
mov dword [ebp - 0x10], esi
push ebx
call fcn.005420c5
mov eax, dword [0x62f4f8]
mov dword [ebp - 4], ebx
mov dword [esi + 0x64], eax
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
mov dword [esi], 0x56eab8
jne 0x41b587
mov edi, 0x114
lea eax, [ebp - 0x124]
push edi
push ebx
push eax
call fcn.004e62a0
add esp, 0xc
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 2
jne 0x41b580
cmp dword [ebp - 0x120], 5
mov dword [ebp + 0x20], 0x58
jae 0x41b587
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.004e6dbe
cmp eax, ebx
pop ecx
mov dword [esi + 0x5c], eax
jne 0x41b59c
call fcn.0053adf9
push dword [ebp + 0x20]
mov ecx, esi
push ebx
call fcn.0041b761
push eax
call fcn.004e62a0
push 0x200002
call fcn.0053df39
mov dword [esi + 0xe8], eax
mov word [eax], bx
mov eax, dword [ebp + 8]
add esp, 0x10
mov dword [esi + 0x60], eax
lea edi, [esi + 0x68]
neg eax
sbb eax, eax
mov ecx, esi
add eax, 0x7005
mov word [edi], bx
mov dword [esi + 0xec], ebx
mov dword [esi + 0x3c], eax
call fcn.0041b761
mov ecx, dword [ebp + 0x20]
mov dword [eax], ecx
mov ecx, esi
call fcn.0041b761
mov ecx, dword [esi + 0xe8]
mov dword [eax + 0x1c], ecx
mov ecx, esi
call fcn.0041b761
mov ecx, esi
mov dword [eax + 0x20], 0x100000
call fcn.0041b761
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x3c], ecx
mov ecx, esi
call fcn.0041b761
mov ecx, esi
mov dword [eax + 0x24], edi
call fcn.0041b761
mov ecx, esi
mov dword [eax + 0x28], 0x40
call fcn.0041b761
mov ecx, dword [ebp + 0x14]
add eax, 0x34
or ecx, 0x880020
or dword [eax], ecx
test byte [ebp + 0x14], 0x40
je 0x41b659
mov ecx, esi
call fcn.0041b761
add eax, 0x34
and byte [eax + 2], 0x7f
call fcn.00552a36
mov edi, dword [eax + 0xc]
mov ecx, esi
call fcn.0041b761
mov ecx, esi
mov dword [eax + 8], edi
call fcn.0041b761
cmp dword [ebp + 0x10], ebx
mov dword [eax + 0x44], 0x41b38a
je 0x41b692
push 0x100000
push dword [ebp + 0x10]
push dword [esi + 0xe8]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x18], ebx
je 0x41b6d1
push dword [ebp + 0x18]
lea edi, [esi + 0x64]
mov ecx, edi
call fcn.0054187e
push ebx
mov ecx, edi
call fcn.00541b2c
push 0x7c
push eax
call fcn.004e6d95
pop ecx
cmp eax, ebx
pop ecx
je 0x41b6c4
mov word [eax], bx
push 0x7c
add eax, 2
jmp 0x41b6ae
mov edi, dword [esi + 0x64]
mov ecx, esi
call fcn.0041b761
mov dword [eax + 0xc], edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c
Function at 0x41cf23
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x558598
call fcn.004e6194
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0054175b
mov eax, dword [ebp - 0x18]
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [eax - 8], edi
jne 0x41cf55
or ebx, 0xffffffff
jmp 0x41cfe5
mov edx, dword [esi]
push eax
push edi
mov ecx, esi
call dword [edx + 0xe0]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41cfc5
mov eax, dword [esi]
or dword [ebp - 0x10], 0xffffffff
or dword [ebp - 0x14], 0xffffffff
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push ebx
mov ecx, esi
call dword [eax + 0xd4]
push ebx
mov ecx, esi
call fcn.0053bff5
cmp dword [ebp - 0x10], edi
jge 0x41cfaf
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41cfaf
push 1
push dword [ebp + 8]
call fcn.0041f7dc
pop ecx
mov dword [ebp - 0x10], eax
pop ecx
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x10]
push dword [ebp + 8]
push edi
call dword [eax + 0xd8]
jmp 0x41cfd3
push dword [ebp - 0x18]
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0xf0]
mov ebx, eax
push edi
push ebx
push 0x14e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.005416e7
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x41df7e
Capabilities:
Find taskbar

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push edi
xor edi, edi
push edi
push str.Shell_TrayWnd
push edi
push edi
call esi
cmp eax, edi
jne 0x41df9a
xor eax, eax
jmp 0x41dfa4
push edi
push str.TrayNotifyWnd
push edi
push eax
call esi
pop edi
pop esi
ret

Function at 0x41e075
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41e0a5
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x41e09f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x41e0a9
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x41e0d8
mov ecx, dword [ebp + 8]
push eax
call fcn.0054187e
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [ebp + 0x10], 0
je 0x41e0d5
mov ecx, dword [ebp + 8]
call fcn.0053a62b
mov ecx, dword [ebp + 8]
call fcn.0053a59f
push 1
pop eax
pop esi
pop ebp
ret
Function at 0x41e182
Capabilities:
Copy file

Disassembly:
mov eax, 0x558730
call fcn.004e6194
mov eax, 0x1024
call fcn.004e6fb0
push ebx
lea ecx, [ebp - 0x10]
push dword [ebp + 0xc]
call fcn.0054175b
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
mov dword [ebp - 4], ebx
jne 0x41e1d2
push dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
call fcn.0041efad
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0054182e
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], bl
call fcn.005416e7
push dword [ebp - 0x10]
call fcn.0041f228
cmp eax, 0xffffffff
pop ecx
jne 0x41e1e7
push 0xfffffffffffffffe
jmp 0x41e2ad
push esi
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x830]
push dword [ebp + 8]
push eax
call fcn.004e646e
lea eax, [ebp - 0x830]
push eax
call fcn.004e660e
mov word [ebp + eax*2 - 0x82e], bx
lea eax, [ebp - 0x830]
push 0x7c
push eax
call fcn.004e6d95
add esp, 0x18
cmp eax, ebx
je 0x41e238
mov word [eax], bx
add eax, 2
push 0x7c
push eax
call fcn.004e6d95
pop ecx
pop ecx
jmp 0x41e222
push esi
lea eax, [ebp - 0x1030]
push dword [ebp + 0xc]
push eax
call fcn.004e646e
lea eax, [ebp - 0x1030]
push eax
call fcn.004e660e
mov word [ebp + eax*2 - 0x102e], bx
push 0x1e
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.004e62a0
mov eax, dword [ebp + 0x18]
add esp, 0x1c
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x830]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x1030]
mov dword [ebp - 0x24], eax
mov ax, word [ebp + 0x14]
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x2c], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
pop esi
je 0x41e2a6
or ebx, 0xffffffff
jmp 0x41e2ae
cmp dword [ebp - 0x1e], ebx
je 0x41e2ae
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.005416e7
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41e37b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x3ff
lea eax, [ebp - 0x820]
push dword [ebp + 8]
push eax
call fcn.004e646e
lea eax, [ebp - 0x820]
push eax
call fcn.004e660e
and word [ebp + eax*2 - 0x81e], 0
push 0x1e
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.004e62a0
mov eax, dword [ebp + 0x10]
add esp, 0x1c
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x41e3ee
or eax, 0xffffffff
leave
ret
xor eax, eax
cmp dword [ebp - 0xe], eax
setne al
leave
ret
Function at 0x41ec7a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0
push esi
jne 0x41eca8
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
neg eax
sbb eax, eax
inc eax
jmp 0x41ecf7
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x41ecf5
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push 0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x41ecf5
test esi, esi
jne 0x41ecf5
push 1
pop eax
jmp 0x41ecf7
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x41ecfc
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
push edi
push dword [ebp + 0xc]
call fcn.004e662b
pop ecx
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
test eax, eax
je 0x41ed78
and word [eax], 0
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41ed78
lea eax, [ebp - 0x20c]
xor edi, edi
push 0x105
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x41ed55
push 1
pop edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x41ed78
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x5c
push esi
call fcn.004e6ef8
pop ecx
pop ecx
jmp 0x41ed1c
push esi
call fcn.004e689d
pop ecx
push 1
pop eax
pop edi
pop esi
leave
ret 8
Function at 0x41eda9
Capabilities:
Get file version info

Disassembly:
mov eax, 0x5588c0
call fcn.004e6194
sub esp, 0x50
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
xor edi, edi
push dword [ebp + 8]
mov dword [ebp - 0x10], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
cmp ebx, edi
je 0x41ee4b
mov esi, 0x56f8b8
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
jbe 0x41edf0
push ebx
lea ecx, [ebp - 0x28]
call fcn.0041eeba
push dword [ebp - 0x20]
push ebx
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41ee37
push 0x34
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.004e62a0
add esp, 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
push eax
lea eax, [ebp - 0x18]
push eax
push 0x5a3750
push dword [ebp - 0x20]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41ee61
cmp dword [ebp - 0x14], 0x34
je 0x41ee50
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x24], edi
mov dword [ebp - 0x28], esi
je 0x41ee4b
lea ecx, [ebp - 0x28]
call fcn.0041eef8
or eax, 0xffffffff
jmp 0x41ee99
push 0x34
lea eax, [ebp - 0x5c]
push dword [ebp - 0x18]
push eax
call fcn.004e6a60
add esp, 0xc
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp + 0xc]
shr ecx, 0x10
mov dword [eax], ecx
or dword [ebp - 4], 0xffffffff
movzx ecx, word [ebp - 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x50]
shr ecx, 0x10
cmp dword [ebp - 0x24], edi
mov dword [eax + 8], ecx
movzx ecx, word [ebp - 0x50]
mov dword [eax + 0xc], ecx
mov dword [ebp - 0x28], esi
je 0x41ee97
lea ecx, [ebp - 0x28]
call fcn.0041eef8
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41f459
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x55898b
call fcn.004e6194
sub esp, 0x10
and dword [ebp - 0x1c], 0
push ebx
push esi
push edi
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
call fcn.0054175b
push 1
lea ecx, [ebp - 0x14]
pop ebx
push 0x2e
mov dword [ebp - 4], ebx
call fcn.0053a5e8
push dword [ebp + 0x10]
lea ecx, [ebp + 0x14]
call fcn.0054175b
mov eax, dword [0x62f4f8]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x14]
mov edi, str._s_s._s
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
push eax
call fcn.0053a4f9
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x14
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x41f4da
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
call fcn.00541454
mov dword [ebp - 0x1c], ebx
jmp 0x41f530
push ebx
mov dword [ebp - 0x18], ebx
push dword [ebp + 0x10]
mov ebx, str._s___d_
lea eax, [ebp + 0x14]
push ebx
push eax
call fcn.0053a4f9
add esp, 0x10
lea eax, [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
push eax
call fcn.0053a4f9
add esp, 0x14
push dword [ebp - 0x10]
call esi
test eax, eax
je 0x41f51d
inc dword [ebp - 0x18]
push dword [ebp - 0x18]
push dword [ebp + 0x10]
jmp 0x41f4e6
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
call fcn.00541454
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.005416e7
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 1
call fcn.005416e7
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.005416e7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41f566
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x5589c7
call fcn.004e6194
sub esp, 0x10
and dword [ebp - 0x1c], 0
push ebx
push esi
push edi
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
call fcn.0054175b
push 1
lea ecx, [ebp - 0x14]
pop ebx
push 0x2e
mov dword [ebp - 4], ebx
call fcn.0053a5e8
push dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
call fcn.0054175b
mov eax, dword [0x62f4f8]
mov dword [ebp + 0x14], eax
push dword [ebp - 0x14]
mov edi, str._s_s._s
lea eax, [ebp + 0x14]
mov byte [ebp - 4], 3
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.0053a4f9
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x14
push dword [ebp + 0x14]
call esi
test eax, eax
jne 0x41f5e7
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
call fcn.00541454
mov dword [ebp - 0x1c], ebx
jmp 0x41f63d
push ebx
mov dword [ebp - 0x18], ebx
push dword [ebp + 0x10]
mov ebx, str._s___d_
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.0053a4f9
add esp, 0x10
lea eax, [ebp + 0x14]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.0053a4f9
add esp, 0x14
push dword [ebp + 0x14]
call esi
test eax, eax
je 0x41f62a
inc dword [ebp - 0x18]
push dword [ebp - 0x18]
push dword [ebp + 0x10]
jmp 0x41f5f3
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
call fcn.00541454
mov dword [ebp - 0x1c], 1
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 2
call fcn.005416e7
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.005416e7
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.005416e7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41f728
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b4
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov edi, 0x2b4
mov esi, ecx
push edi
push 0
push eax
call fcn.004e62a0
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
add esp, 0xc
lea eax, [esp + 0x10]
mov ebp, 0x5a4a28
push 0x4001
push edi
push eax
push 0
push ebp
call ebx
mov dword [esi + 4], eax
push 0x4000
lea eax, [esp + 0x14]
push edi
push eax
push 0
push ebp
call ebx
mov ecx, dword [esi + 4]
mov dword [esi + 8], eax
test ecx, ecx
je 0x41f7b1
test eax, eax
je 0x41f7b1
push ecx
lea ecx, [esi + 0xc]
call fcn.0053b6ea
mov edi, dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
push 0xffffffffffffffff
push dword [esi + 0x10]
call edi
push dword [esi + 8]
lea ecx, [esi + 0x14]
call fcn.0053b6ea
push 0xffffffffffffffff
push dword [esi + 0x18]
call edi
xor eax, eax
jmp 0x41f7b4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2b4
ret