joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d7ba
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
xor ecx, ecx
lea eax, [ebp - 4]
push ecx
push eax
push ecx
push 3
push ecx
push ecx
push ecx
push 0x4017c0
push SysReAllocStringLen
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40d7fb
push 0x4018e0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x40d7ff
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov edi, ecx
test eax, eax
je 0x40d8ba
test ebx, ebx
je 0x40d8ba
test edi, edi
je 0x40d8ba
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x210], esi
push ecx
push 0x20019
push esi
push eax
push SysReAllocStringLen
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x218], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d8ba
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d8a1
cmp dword [ebp - 0x214], 1
jne 0x40d8a1
inc esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40d8ba
lea eax, [ebp - 0x20c]
push eax
jmp 0x40d8bf
push 0x4019f0
mov edx, 0x104
mov ecx, edi
call fcn.0040c010
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret 8

Function at 0x40d8de
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov ebx, edx
test esi, esi
jne 0x40d904
xor eax, eax
jmp 0x40d980
push 0x104
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x40d97e
test ebx, ebx
je 0x40d92a
mov eax, 0x401a00
mov ecx, 0x40333c
jmp 0x40d934
mov eax, 0x401a24
mov ecx, 0x403290
push ecx
lea ecx, [ebp - 0x418]
push ecx
push eax
lea eax, [ebp - 0x210]
push 0x208
push eax
call fcn.0040c0f9
add esp, 0x14
test eax, eax
js 0x40d97e
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d97e
test al, 0x10
jne 0x40d97e
xor edi, edi
lea ecx, [ebp - 0x210]
inc edi
call fcn.004205d3
mov dword [esi], eax
mov dword [esi + 4], edx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret
Function at 0x40e211
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
mov dword [ebp - 0x10], edx
push eax
push 2
xor edi, edi
mov dword [ebp - 0xc], ecx
push edi
push 0x4017c0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e2b1
push esi
push 4
pop esi
cmp dword [ebp - 0xc], edi
je 0x40e292
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], edi
push eax
push esi
push edi
push 0x401aec
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
lea eax, [ebp - 8]
push eax
push esi
push edi
push 0x401b14
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push esi
push edi
push 0x401b44
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push edi
push 0x401b6c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40e329
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x444f3c], 0
push esi
push edi
mov edi, ecx
mov esi, 0x80004005
jne 0x40e3ae
push 0x54
call fcn.0044180c
pop ecx
test eax, eax
je 0x40e365
mov ecx, eax
call fcn.0041c84e
jmp 0x40e367
xor eax, eax
mov dword [0x444f3c], eax
test eax, eax
je 0x40e3b1
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40e3b1
mov ecx, dword [0x444f3c]
mov eax, dword [0x443a4c]
push ecx
mov dword [ecx + 0x48], eax
mov eax, dword [0x443514]
mov dword [ecx + 0x40], eax
lea eax, [ebp - 0x210]
push eax
push edi
call fcn.0041d5aa
xor esi, esi
jmp 0x40e3b1
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00441b90
mov esp, ebp
pop ebp
ret
Function at 0x40e623
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
mov dword [ebp - 8], 1
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.0043fdcb
push 4
pop edi
or word [ebp - 0xc], di
lea ecx, [ebp - 0x14]
call fcn.00419aff
mov ebx, 0x401b9c
test eax, eax
js 0x40e690
lea eax, [ebp - 4]
push eax
push 2
push esi
push dword [ebp - 0x14]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e690
push edi
lea eax, [ebp - 8]
push eax
push edi
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 2
push esi
push esi
push esi
push 0x401680
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40e6c9
push edi
lea eax, [ebp - 8]
push eax
push edi
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14]
call fcn.00440156
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e6d8
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor esi, esi
call fcn.0041f47f
test eax, eax
je 0x40e797
push esi
push 0x8000080
push 3
push esi
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x40e724
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e797
push edi
mov edi, 0x104
lea ecx, [ebp - 0x20c]
mov edx, edi
call fcn.0040c010
test eax, eax
js 0x40e797
lea ecx, [ebp - 0x20c]
call fcn.0041ed3c
lea eax, [ebp - 0x20c]
push eax
push 0x401bd0
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.0040c0b5
add esp, 0x10
test eax, eax
js 0x40e797
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40e794
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x40e797
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00441b90
mov esp, ebp
pop ebp
ret
Function at 0x40e81b
Capabilities:
Find taskbar

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push 0x401be8
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x40e884
push edi
push 0x401c04
push edi
push eax
call dword [sym.imp.USER32.dll_FindWindowExW]
mov esi, eax
test esi, esi
je 0x40e884
push edi
push 0x401c20
push edi
push esi
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x40e872
xor eax, eax
inc eax
jmp 0x40e947
push edi
push 0x401c38
push edi
push esi
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
jne 0x40e86a
xor edx, edx
lea ecx, [ebp - 0x20c]
call fcn.0041fda0
mov esi, 0x104
test eax, eax
je 0x40e8e5
push ecx
lea eax, [ebp - 0x210]
mov edx, esi
push eax
lea ecx, [ebp - 0x20c]
call fcn.0040c131
test eax, eax
js 0x40e8e5
mov eax, dword [ebp - 0x210]
mov edx, esi
push ecx
push 0x401c54
push ecx
lea ecx, [ebp - 0x20c]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.0040c197
test eax, eax
js 0x40e8e5
lea ecx, [ebp - 0x20c]
call fcn.0040e6d8
test eax, eax
jne 0x40e86a
xor edx, edx
lea ecx, [ebp - 0x20c]
call fcn.0041fda0
test eax, eax
je 0x40e945
push ecx
lea eax, [ebp - 0x210]
mov edx, esi
push eax
lea ecx, [ebp - 0x20c]
call fcn.0040c131
test eax, eax
js 0x40e945
mov eax, dword [ebp - 0x210]
sub esi, eax
push ecx
push 0x401c70
push ecx
lea ecx, [ebp - 0x20c]
mov edx, esi
lea ecx, [ecx + eax*2]
call fcn.0040c197
test eax, eax
js 0x40e945
lea ecx, [ebp - 0x20c]
call fcn.0040e6d8
test eax, eax
jne 0x40e86a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00441b90
mov esp, ebp
pop ebp
ret

Function at 0x40eade
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x210]
mov edi, 0x105
push eax
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40eb4c
push 0x401ce8
lea eax, [ebp - 0x210]
push eax
push 0x401d00
lea eax, [ebp - 0x41c]
push edi
push eax
call fcn.0040c0b5
add esp, 0x14
test eax, eax
js 0x40eb4c
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40eb49
test al, 0x10
je 0x40eb4c
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00441b90
mov esp, ebp
pop ebp
ret
Function at 0x40ec68
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
xor esi, esi
test edi, edi
je 0x40ecce
mov dword [ebp - 4], esi
lea eax, [ebp - 4]
push esi
push eax
push esi
push 2
push esi
push esi
push esi
test edx, edx
je 0x40ec91
push 0x401d20
jmp 0x40ec96
push 0x401d88
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40ecce
cmp dword [ebp - 4], esi
je 0x40ecce
push 2
push 0x4015c0
push 1
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40ecc5
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ecd6
Capabilities:
Delete registry key
Delete registry value
Get installed programs
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x418]
xor ebx, ebx
push eax
push 0x2001f
push ebx
push 0x401d20
mov esi, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x418], ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40edf4
push edi
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x420]
mov edi, ebx
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
jmp 0x40edc9
lea eax, [ebp - 0x20c]
inc edi
push eax
push 0x401df8
push 0x401d00
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040c0b5
add esp, 0x14
test eax, eax
js 0x40edb6
mov dword [ebp - 0x41c], ebx
mov esi, 0x2001f
call fcn.0042d9f9
test eax, eax
je 0x40ed79
mov esi, 0x2011f
lea eax, [ebp - 0x41c]
push eax
push esi
push ebx
lea eax, [ebp - 0x414]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40edb6
push 0x401e60
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x418]
mov dword [ebp - 0x420], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40ed36
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push 0x401d20
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret
Function at 0x40ee10
Capabilities:
Delete registry key
Delete registry value
Get installed programs
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x418]
xor ebx, ebx
push eax
push 0x2001f
push ebx
push 0x401d88
mov esi, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x418], ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ef2e
push edi
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x420]
mov edi, ebx
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
jmp 0x40ef03
lea eax, [ebp - 0x20c]
inc edi
push eax
push 0x401df8
push 0x401d00
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040c0b5
add esp, 0x14
test eax, eax
js 0x40eef0
mov dword [ebp - 0x41c], ebx
mov esi, 0x2001f
call fcn.0042d9f9
test eax, eax
je 0x40eeb3
mov esi, 0x2011f
lea eax, [ebp - 0x41c]
push eax
push esi
push ebx
lea eax, [ebp - 0x414]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40eef0
push 0x401e60
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x418]
mov dword [ebp - 0x420], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40ee70
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push 0x401d88
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret
Function at 0x40ef4a
Capabilities:
Get installed programs
Query or enumerate registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
mov dword [ebp - 0x630], edx
test ecx, ecx
je 0x40f10f
push ecx
push 0x401e80
push 0x401d00
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040c0b5
add esp, 0x14
test eax, eax
js 0x40f10f
and dword [ebp - 0x620], edi
push esi
mov esi, 0x20019
call fcn.0042d9f9
test eax, eax
je 0x40efb1
mov esi, 0x20119
lea eax, [ebp - 0x620]
push eax
push esi
xor esi, esi
lea eax, [ebp - 0x414]
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f10e
push ebx
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x628]
mov ebx, esi
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
jmp 0x40f0e3
lea eax, [ebp - 0x20c]
inc ebx
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
cmp word [ebp - 0x20c], 0x6b
pop ecx
jne 0x40f0d0
cmp word [ebp - 0x20a], 0x62
jne 0x40f0d0
lea eax, [ebp - 0x20c]
mov edi, esi
push eax
push 0x401df8
push 0x401d00
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.0040c0b5
add esp, 0x14
test eax, eax
js 0x40f0d0
mov dword [ebp - 0x624], esi
mov esi, 0x2001f
call fcn.0042d9f9
test eax, eax
je 0x40f064
mov esi, 0x2011f
lea eax, [ebp - 0x624]
push eax
push esi
xor esi, esi
lea eax, [ebp - 0x61c]
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f0d0
push 4
lea eax, [ebp - 0x62c]
mov dword [ebp - 0x62c], 1
push eax
push 4
push esi
push 0x401e60
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40f0c4
mov edx, dword [ebp - 0x630]
lea ecx, [ebp - 0x20c]
xor edi, edi
inc edi
call fcn.0040ec68
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x620]
mov dword [ebp - 0x628], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40eff1
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.00441b90
mov esp, ebp
pop ebp
ret
Function at 0x40f255
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x210]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
call fcn.00410fed
test eax, eax
je 0x40f333
lea ecx, [ebp - 0x210]
call fcn.0042020e
test eax, eax
jne 0x40f333
call fcn.00420179
test eax, eax
jne 0x40f333
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
push eax
mov edi, 0x2001f
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push edi
push esi
push 0x401fb8
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f2f7
push 0x402054
push dword [ebp - 0x214]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
push eax
push edi
push esi
push 0x402080
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f333
push 0x402150
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret

Function at 0x40f344
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
je 0x40f44a
lea ecx, [ebp - 0x218]
xor esi, esi
push ecx
push eax
mov dword [ebp - 0x218], esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
mov dword [ebp - 0x214], edi
test edi, edi
je 0x40f44a
cmp dword [ebp - 0x218], esi
jle 0x40f44a
push 0x40216c
push dword [edi + esi*4]
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x40f43d
push 0x3a
push dword [edi + esi*4]
call dword [sym.imp.msvcrt.dll_wcschr]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40f437
inc edi
add edi, 1
je 0x40f437
mov ecx, edi
call fcn.0041f47f
test eax, eax
je 0x40f437
push ecx
push ecx
mov ecx, edi
call fcn.00422f85
mov edi, eax
cmp edi, 0xffffffff
je 0x40f437
lea eax, [ebp - 0x228]
mov edx, 0x40218c
push eax
push 0x404250
mov ecx, edi
call fcn.00422ff3
test eax, eax
je 0x40f430
push 0xffffffffffffffff
push ecx
lea eax, [ebp - 0x210]
mov ecx, edi
push eax
lea edx, [ebp - 0x228]
call fcn.004335f1
mov ebx, eax
test ebx, ebx
js 0x40f430
push ecx
lea edx, [ebp - 0x210]
call fcn.00433407
push edi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov edi, dword [ebp - 0x214]
inc esi
cmp esi, dword [ebp - 0x218]
jl 0x40f39f
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret
Function at 0x40f45d
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 0x4021ac
push ecx
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x40f500
push esi
push 0x3a
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40f4ff
push edi
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x4021d0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40f4fe
inc esi
add esi, 1
je 0x40f4f5
push 0x4015c0
push esi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x40f4f5
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x40f4d0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push edi
push 0x402220
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41073c
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x443abc]
mov dword [ebp - 0x41c], ecx
test edx, edx
je 0x410771
push ecx
mov ecx, edx
call fcn.0040fe6e
xor edx, edx
mov dword [0x443abc], edx
cmp dword [0x444f3c], 0
je 0x410967
call fcn.0041c967
test eax, eax
je 0x410967
push ebx
push esi
call fcn.0041c967
mov ebx, 0x4015c0
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x4107a0
mov esi, ebx
push edi
mov edi, 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x41095e
push ecx
lea eax, [ebp - 0x418]
mov edx, edi
push eax
lea ecx, [ebp - 0x20c]
call fcn.0040c131
test eax, eax
js 0x41085c
mov eax, dword [ebp - 0x418]
mov edx, edi
push ecx
push 0x40258c
push ecx
lea ecx, [ebp - 0x20c]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.0040c197
test eax, eax
js 0x41085c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x410812
test al, 0x10
je 0x41085c
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41085c
push ecx
lea eax, [ebp - 0x418]
mov edx, edi
push eax
lea ecx, [ebp - 0x20c]
call fcn.0041fb3c
test eax, eax
js 0x41085c
mov eax, dword [ebp - 0x418]
sub edi, eax
push ecx
push 0x40258c
push ecx
lea ecx, [ebp - 0x20c]
mov edx, edi
lea ecx, [ecx + eax*2]
call fcn.0040c197
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41095e
test al, 0x10
jne 0x41095e
test esi, esi
je 0x41095e
push ebx
push esi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x41095e
mov ecx, esi
call fcn.0041f47f
test eax, eax
je 0x41095e
push 0xff
lea eax, [ebp - 0x414]
push eax
push 0xaa
push dword [0x443af0]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x41095e
imul ecx, dword [0x443aa8], 0x2c
mov eax, dword [str.6ij]
mov edi, dword [ebp - 0x41c]
mov ebx, dword [ecx + eax + 0x28]
push ebx
push edi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x402
push edi
mov dword [ebp - 0x418], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
jne 0x41091f
push 0x402
push dword [ebp - 0x41c]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
push 0x28
call fcn.0044180c
pop ecx
test eax, eax
je 0x410954
push ecx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x20c]
push ebx
push esi
push ecx
lea ecx, [ebp - 0x414]
push ecx
push edi
push 0x402
push ecx
mov ecx, eax
call fcn.0041bff8
mov edx, eax
jmp 0x410956
xor edx, edx
mov dword [0x443abc], edx
jmp 0x410964
mov edx, dword [0x443abc]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
neg edx
sbb edx, edx
xor ecx, ebp
and edx, 1
mov eax, edx
call fcn.00441b90
mov esp, ebp
pop ebp
ret