joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c733
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x4bc
push ebx
push esi
push edi
xor ebx, ebx
mov esi, 0x206
push esi
lea eax, [ebp - 0x23a]
push ebx
push eax
mov dword [ebp + 0x74], ebx
mov word [ebp - 0x23c], bx
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x442]
push ebx
push eax
mov word [ebp - 0x444], bx
call sub.MSVCRT.dll_memset
mov esi, 0x4028f4
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x94
lea eax, [ebp - 0x28]
push ebx
push eax
movsd dword es:[edi], dword [esi]
call sub.MSVCRT.dll_memset
add esp, 0x24
lea eax, [ebp - 0x444]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
xor eax, eax
cmp word [ebp - 0x444], bx
lea edi, [ebp + 0x6e]
mov word [ebp + 0x6c], bx
stosd dword es:[edi], eax
mov word [ebp + 0x6e], 0x3a
lea esi, [ebp - 0x444]
je 0x40c878
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push esi
call fcn.0040466d
cmp eax, 5
pop ecx
jne 0x40c83c
mov ax, word [esi]
inc dword [ebp + 0x74]
mov word [ebp + 0x6c], ax
lea eax, [ebp + 0x6c]
push eax
push dword [ebp + 0x74]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x23c]
push 0x4028e4
push eax
call edi
push ebx
lea eax, [ebp - 0x23c]
push 1
push eax
call fcn.0040ba39
add esp, 0x20
cmp dword [ebp + 0x74], 1
jne 0x40c83c
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x23c]
push 0x40271c
push eax
call edi
push ebx
lea eax, [ebp - 0x23c]
push 1
push eax
call fcn.0040ba39
add esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x40c7cd
cmp dword [ebp + 0x74], ebx
je 0x40c878
push dword [ebp + 0x74]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x23c]
push 0x4028d4
push eax
call edi
push ebx
lea eax, [ebp - 0x23c]
push 1
push eax
call fcn.0040ba39
add esp, 0x1c
mov eax, dword [ebp + 0x74]
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret

Function at 0x40e3e6
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
push edi
call esi
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [0x423448]
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_SetProcessWorkingSetSize]
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
nop
call esi
sub eax, edi
cmp eax, dword [esp + 0xc]
jb 0x40e402
pop edi
pop esi
ret
Function at 0x40e664
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x510
push edi
xor edi, edi
push edi
push 0x3fc
lea eax, [ebp - 0x510]
push eax
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x40e736
push 0xf003f
push 1
push edi
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x40e736
push 0xfe
lea eax, [ebp - 0x112]
push edi
push eax
mov word [ebp - 0x114], di
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 4], edi
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], 0x400
push dword [ebp - 8]
mov dword [ebp - 0x10], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
cmp ebx, edi
jne 0x40e721
push 0x402a20
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x40e72c
inc dword [ebp - 4]
cmp ebx, 0x103
jne 0x40e6d4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
leave
ret
Function at 0x40ff37
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
xor edi, edi
cmp word [ebp - 0x208], di
lea esi, [ebp - 0x208]
je 0x40ffbd
push ebx
mov ebx, dword [ebp + 0xc]
add ebx, 0x10
push esi
call fcn.0040425b
cmp eax, ebx
pop ecx
jbe 0x40ffab
push esi
call fcn.0040466d
sub eax, 3
pop ecx
je 0x40ff9f
sub eax, 0xfffe
je 0x40ff9a
dec eax
jne 0x40ffab
movzx edi, word [esi]
jmp 0x40ffab
movzx eax, word [esi]
cmp ax, word [ebp + 8]
movzx edi, ax
jae 0x40ffbc
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x40ff79
pop ebx
mov ax, di
pop edi
pop esi
leave
ret
Function at 0x40ffc4
Capabilities:
Get disk information
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x648
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrW]
push 0x20
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x410024
and word [ebx], 0
inc ebx
inc ebx
push ebx
call fcn.00403b00
pop ecx
push 0x20
push ebx
mov dword [ebp - 0xc], eax
call edi
test eax, eax
je 0x410016
and word [eax], 0
add eax, 2
push eax
call fcn.00403b00
pop ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jae 0x410024
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
call fcn.0040aea9
cmp eax, dword [ebp - 4]
jae 0x4101b9
xor eax, eax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx eax, word [esi]
push eax
call fcn.00403ab0
push dword [ebp - 4]
mov word [ebp - 0x14], ax
mov word [ebp - 0x12], 0x3a
push dword [ebp - 0x14]
call fcn.0040ff37
add esp, 0xc
mov word [ebp - 0x14], ax
mov word [esi], ax
push 0x104
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryDosDeviceW]
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
add eax, eax
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0x1c]
add eax, 2
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x440]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
shl eax, 0x14
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
xor ebx, ebx
shl eax, 0x14
push 0x402b14
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
call fcn.0040e37e
push ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00405b1b
add esp, 0x14
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x4101b4
push 0x206
lea eax, [ebp - 0x236]
push ebx
push eax
mov dword [ebp - 8], 0x208
mov word [ebp - 0x238], bx
call sub.MSVCRT.dll_memset
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x402af0
push 0x4026a8
lea eax, [ebp - 0x238]
push 0x4025f8
push eax
call edi
add esp, 0x1c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x648]
push eax
push ebx
push 0x402ad8
lea eax, [ebp - 0x238]
push eax
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x410160
xor eax, eax
jmp 0x410166
mov eax, dword [ebp - 8]
shr eax, 1
dec eax
push dword [ebp - 4]
mov dword [ebp - 8], eax
push dword [ebp - 0xc]
lea eax, [ebp + eax*2 - 0x648]
push esi
push 0x402ac4
push eax
call edi
mov ecx, dword [ebp - 8]
lea eax, [ecx + eax + 1]
add esp, 0x14
mov dword [ebp - 8], eax
add eax, eax
and word [ebp + eax - 0x648], 0
push eax
lea eax, [ebp - 0x648]
push eax
push 7
push 0x402ad8
lea eax, [ebp - 0x238]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, dword [ebp - 0x20]
jmp 0x4101bb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4101c0
Capabilities:
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
push 0xf003f
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x410239
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp word [eax], 0x21
sete cl
cmp ecx, ebx
mov dword [ebp - 8], ecx
je 0x4101f5
inc eax
inc eax
push esi
push edi
push 0x30
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, ebx
je 0x410232
cmp dword [ebp - 8], ebx
je 0x410223
lea eax, [ebp - 0x28]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x41022c
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
mov dword [ebp - 4], eax
call edi
push dword [ebp - 0xc]
call edi
pop edi
pop esi
xor eax, eax
cmp dword [ebp - 4], ebx
pop ebx
sete al
leave
ret

Function at 0x410377
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp - 0x40e]
push edi
push eax
mov word [ebp - 0x410], di
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x206]
push edi
push eax
mov word [ebp - 0x208], di
call sub.MSVCRT.dll_memset
add esp, 0x18
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
cmp dword [ebp + 0xc], edi
je 0x4103dc
lea eax, [ebp - 0x208]
push eax
call fcn.0040aca0
pop ecx
mov esi, eax
jmp 0x4103e2
lea esi, [ebp - 0x208]
push 0x104
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
push 0x402bcc
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.00410278
pop ecx
pop ecx
pop edi
pop esi
leave
ret

Function at 0x4106d7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa08
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5c
jne 0x41077d
and word [ebp - 0x208], 0
push esi
push 0x206
lea eax, [ebp - 0x206]
push 0
inc edi
push eax
inc edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
cmp word [ebp - 0x208], 0
lea esi, [ebp - 0x208]
je 0x41077c
push edi
push esi
lea eax, [ebp - 0xa08]
push 0x4028b8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0xa08]
push eax
call fcn.00403cd5
add esp, 0x14
test eax, eax
jne 0x41076b
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x410731
jmp 0x41077c
lea eax, [ebp - 0xa08]
push eax
add edi, 0xfffffffe
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
pop esi
pop edi
leave
ret
Function at 0x410824
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x402b70
push 0x402c08
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4108a8
push 0x402bec
push 0x402bd8
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x4108a8
mov cl, byte [ebp + 0xc]
and cl, 1
movzx cx, cl
shl cx, 2
mov word [ebp - 0x18], cx
mov ecx, dword [ebp - 0xc]
mov edx, ecx
shr edx, 0x10
mov word [ebp - 0x1c], dx
movzx dx, byte [ebp - 0xe]
mov word [ebp - 0x12], cx
lea ecx, [ebp - 0x1c]
push ecx
mov word [ebp - 0xe], dx
call eax
mov al, 1
leave
ret
xor al, al
leave
ret
Function at 0x4108ac
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push edi
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push 0x402b70
push 0x402e14
mov edi, reloc.OLEAUT32.dll_SysReAllocString
xor ebx, ebx
push edi
mov dword [ebp - 0x18], ebx
call esi
test eax, eax
je 0x4108ee
mov dword [ebp - 0x18], ebx
push 0xf0000000
push 1
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x1c], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x41093f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x80090016
jne 0x41093f
push 8
push 1
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x41093f
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x410a5a
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call ebx
push 0
push 4
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x10]
call ebx
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
push eax
push 2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
mov ebx, 0x402b60
push ebx
push 0x402dd0
push edi
mov dword [ebp - 8], 3
mov dword [ebp - 4], 1
call esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x402d80
push edi
mov dword [ebp - 8], 3
mov dword [ebp - 4], 1
call esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x402dd0
mov ebx, SysReAllocString
push ebx
mov dword [ebp - 8], 3
mov dword [ebp - 4], 1
call esi
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], 3
push 0x402b48
push 0x402d20
push edi
call esi
and dword [ebp - 0xc], 0
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x402cec
push 0x402c80
push ebx
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410aa6
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x660]
push 0x402604
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov edi, eax
test edi, edi
je 0x410b9f
cmp edi, 0xffffffff
je 0x410b9f
push ebx
lea eax, [ebp - 0x458]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
and word [ebp - 0x208], 0
push 0x206
mov ebx, eax
lea eax, [ebp - 0x206]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x42c]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push 0x4025f8
push eax
call esi
add esp, 0x1c
test byte [ebp - 0x458], 0x10
je 0x410b7c
lea eax, [ebp - 0x42c]
push eax
call fcn.00409b9a
test eax, eax
pop ecx
jne 0x410b96
lea eax, [ebp - 0x208]
push eax
call fcn.00410aa6
lea eax, [ebp - 0x208]
push eax
call fcn.00410a8e
pop ecx
pop ecx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
jmp 0x410b96
lea eax, [ebp - 0x208]
push eax
call fcn.00410a8e
pop ecx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test ebx, ebx
jne 0x410af3
pop ebx
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
pop edi
pop esi
leave
ret
Function at 0x410bb3
Capabilities:
Copy file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x874]
push 0x402604
push eax
mov dword [ebp - 4], 1
call esi
add esp, 0xc
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x874]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
test eax, eax
mov dword [ebp - 8], eax
je 0x410d02
cmp eax, 0xffffffff
je 0x410d02
push ebx
push edi
mov ebx, 0x206
mov edi, 0x4025f8
lea eax, [ebp - 0x464]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
and word [ebp - 0x66c], 0
push ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x66a]
push 0
push eax
call sub.MSVCRT.dll_memset
and word [ebp - 0x214], 0
push ebx
lea eax, [ebp - 0x212]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x438]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x66c]
push edi
push eax
call esi
lea eax, [ebp - 0x438]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x214]
push edi
push eax
call esi
add esp, 0x38
test byte [ebp - 0x464], 0x10
je 0x410cbc
lea eax, [ebp - 0x438]
push eax
call fcn.00409b9a
test eax, eax
pop ecx
jne 0x410cf6
lea eax, [ebp - 0x214]
push eax
call fcn.00403d25
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x66c]
push eax
call fcn.00410bb3
add esp, 0xc
jmp 0x410cdf
lea eax, [ebp - 0x214]
push eax
call fcn.00403d25
pop ecx
push 1
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x66c]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
je 0x410cf2
cmp dword [ebp - 4], 0
je 0x410cf2
mov dword [ebp - 4], 1
jmp 0x410cf6
and dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
jne 0x410c12
pop edi
pop ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x4111ba
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
mov esi, 0x206
push esi
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebx], di
mov word [ebp - 0x210], di
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x208
lea eax, [ebp - 0x210]
push eax
push edi
push 9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x41128a
push esi
lea eax, [ebp - 0x416]
push edi
push eax
mov word [ebp - 0x418], di
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x210]
push eax
push 0x402e90
lea eax, [ebp - 0x418]
push 0x4028b8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 4]
push eax
push 0x402e68
lea eax, [ebp - 0x418]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 1
mov dword [ebp + 0x10], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x41128a
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x411edf
Capabilities:
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x74]
mov eax, dword [ebp + 0x7c]
sub esp, 0xa0
test eax, eax
push ebx
je 0x411f4f
cmp word [eax], 0
je 0x411f4f
push 0x3d
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov ebx, eax
test ebx, ebx
je 0x411f4f
push esi
push edi
mov esi, 0x402190
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
push 0x9a
lea eax, [ebp - 0x26]
push 0
push eax
movsw word es:[edi], word [esi]
call sub.MSVCRT.dll_memset
and word [ebx], 0
mov ax, word [ebx + 2]
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040466d
add esp, 0x10
pop edi
xor ecx, ecx
pop esi
cmp dword [ecx*8 + 0x402080], eax
je 0x411f58
inc ecx
cmp ecx, 0xc
jl 0x411f40
xor eax, eax
inc eax
pop ebx
add ebp, 0x74
leave
ret
push dword [ecx*8 + 0x402084]
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
jmp 0x411f52
Function at 0x411f88
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a4
push esi
push edi
push 0x2c
push 6
push dword [ebp + 8]
lea eax, [ebp - 0x94]
push eax
call fcn.0040ad20
add esp, 0x10
push 0x10
mov esi, eax
pop ecx
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
xor edi, edi
cmp esi, edi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esi
jne 0x411fcd
push 3
pop eax
jmp 0x412159
cmp dword [ebp - 0x48], edi
mov dword [ebp - 0x14], edi
je 0x411ff5
push 0x23
push edi
push dword [ebp - 0x48]
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp eax, edi
je 0x411ff5
mov word [eax], di
add eax, 2
push eax
call fcn.00403b00
pop ecx
mov dword [ebp - 0x14], eax
push ebx
push edi
lea eax, [ebp - 0x29c]
push eax
mov ebx, 0x104
push ebx
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_SearchPathW]
test eax, eax
je 0x412070
lea eax, [ebp - 0x29c]
mov dword [ebp - 0xc], eax
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 4]
push eax
push 0x4038b4
push 1
push edi
push 0x4038c4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, edi
jne 0x412150
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0x4038e4
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jne 0x412147
xor ecx, ecx
inc ecx
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp ax, 0x21
jne 0x412083
xor ecx, ecx
jmp 0x41208c
push esi
call fcn.00403cfd
test eax, eax
pop ecx
jne 0x41201a
push 3
pop eax
jmp 0x412158
cmp ax, 0x5f
jne 0x412092
push 6
pop ecx
add dword [ebp - 8], 2
jmp 0x412060
mov eax, dword [ebp - 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x3c]
mov eax, dword [ebp - 4]
push dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 4]
push dword [ebp - 0x4c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
push dword [ebp - 0x14]
mov eax, dword [ebp - 4]
push dword [ebp - 0x48]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
push dword [ebp - 0x44]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov esi, dword [ebp - 0x40]
cmp esi, edi
je 0x4120e9
cmp word [esi], di
je 0x4120e9
push esi
call fcn.00403cfd
test eax, eax
pop ecx
je 0x4120e9
push esi
jmp 0x4120fa
push dword [ebp - 0xc]
call fcn.00403cb6
cmp eax, dword [ebp - 0xc]
pop ecx
je 0x412103
push dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
push 0x4030a8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x4a4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
push dword [ebp - 8]
call fcn.00403d25
mov eax, dword [ebp - 0x10]
pop ecx
mov ecx, dword [eax]
push edi
lea edx, [ebp - 0x4a4]
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret