Function at 0x407330
Capabilities:
Encode data using xor
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f681b
mov eax, dword fs:[0]
push eax
mov eax, 0x1700
call fcn.0055f310
mov eax, dword [0x6817dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x16bc], edi
push 0x1450
lea eax, [ebp - 0x1668]
push 0
push eax
call fcn.005c9930
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005c9930
add esp, 0x18
lea eax, [ebp - 0x1684]
push eax
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x407662
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x1684]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0x1684]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4073d4
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 0x510]
call fcn.00405d50
xor eax, eax
mov dword [ebp - 0x16b8], 0xa1e1a1c9
mov dword [ebp - 0x16b4], 0xa1e5a1c9
xor ecx, ecx
mov dword [ebp - 0x16b0], 0xa1cea1ff
mov dword [ebp - 0x16ac], 0xa1e1a1e9
mov dword [ebp - 0x16a8], 0xa1f7a1fd
mov dword [ebp - 0x16a4], 0xa1efa1f8
mov dword [ebp - 0x16a0], 0xa1f4a1f8
mov word [ebp - 0x169c], ax
mov byte [ebp - 0x169a], 1
nop
lea eax, [ecx - 0x5e73]
xor word [ebp + ecx*2 - 0x16b8], ax
inc ecx
cmp ecx, 0xe
jb 0x407450
lea eax, [ebp - 0x16b8]
mov byte [ebp - 0x169a], 0
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1668]
push 0x664eb8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0x1698], 0xa1aea1ad
mov dword [ebp - 0x1694], 0x2a343f57
xor ecx, ecx
mov dword [ebp - 0x1690], 0xfec7d77f
mov dword [ebp - 0x168c], 0x5e89
mov byte [ebp - 0x1688], 1
nop
lea eax, [ecx - 0x5e73]
xor word [ebp + ecx*2 - 0x1698], ax
inc ecx
cmp ecx, 7
jb 0x4074c0
xor eax, eax
mov byte [ebp - 0x1688], 0
lea ecx, [ebp - 0x1698]
mov dword [ebp - 0x1670], 0
mov dword [ebp - 0x166c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x1680], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407501
sub ecx, edx
lea eax, [ebp - 0x1698]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1680]
call fcn.00405d50
lea ecx, [ebp - 0x1668]
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407533
mov ebx, dword [ebp - 0x166c]
sub ecx, edx
mov edx, dword [ebp - 0x1670]
mov eax, ebx
sar ecx, 1
sub eax, edx
cmp ecx, eax
ja 0x407594
cmp ebx, 8
lea eax, [ecx + ecx]
push eax
lea esi, [ebp - 0x1680]
cmovae esi, dword [ebp - 0x1680]
lea eax, [ebp - 0x1668]
push eax
lea edi, [edx + ecx]
mov dword [ebp - 0x1670], edi
lea eax, [esi + edx*2]
push eax
call fcn.005c9d10
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov edi, dword [ebp - 0x16bc]
jmp 0x4075b5
push ecx
lea eax, [ebp - 0x1668]
mov byte [ebp - 0x16bc], 0
push eax
push dword [ebp - 0x16bc]
push ecx
lea ecx, [ebp - 0x1680]
call fcn.0040dcd0
lea esi, [edi + 0x2c]
push str.edit_dir
mov ecx, esi
call fcn.00414e05
cmp dword [ebp - 0x166c], 8
lea ecx, [ebp - 0x1680]
cmovae ecx, dword [ebp - 0x1680]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x3c]
lea ecx, [ebp - 0x1668]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4075f0
sub ecx, edx
lea eax, [ebp - 0x1668]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 0x4b8]
call fcn.00405d50
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x166c]
cmp edx, 8
jb 0x40780a
mov ecx, dword [ebp - 0x1680]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407653
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4078a1
push edx
push ecx
call fcn.0055e71a
add esp, 8
jmp 0x40780a
mov dword [ebp - 0x170c], 0xa1b4a1ce
xor ecx, ecx
mov dword [ebp - 0x1708], 0xa1c0a1d3
mov dword [ebp - 0x1704], 0xa1fda1e3
mov dword [ebp - 0x1700], 0xa1e6a1f4
mov dword [ebp - 0x16fc], 0xa1fba1f4
mov dword [ebp - 0x16f8], 0xa1dea1b7
mov dword [ebp - 0x16f4], 0xa1f6a1f0
mov dword [ebp - 0x16f0], 0xa1efa1fe
mov dword [ebp - 0x16ec], 0xa1b6a1bd
mov dword [ebp - 0x16e8], 0xa198a1e7
mov dword [ebp - 0x16e4], 0xa18ba197
mov dword [ebp - 0x16e0], 0xa1e0a1ff
mov dword [ebp - 0x16dc], 0xa1e0a1ca
mov dword [ebp - 0x16d8], 0xa1c6a1d2
mov dword [ebp - 0x16d4], 0xa1d0a1f5
mov dword [ebp - 0x16d0], 0xa1c4a1de
mov dword [ebp - 0x16cc], 0xa1c1a1cc
mov dword [ebp - 0x16c8], 0xa1d1a1d8
mov dword [ebp - 0x16c4], 0xa1df
mov byte [ebp - 0x16c0], 1
nop dword [eax]
lea eax, [ecx - 0x5e73]
xor word [ebp + ecx*2 - 0x170c], ax
inc ecx
cmp ecx, 0x25
jb 0x407730
lea eax, [ebp - 0x218]
mov byte [ebp - 0x16c0], 0
push eax
lea eax, [ebp - 0x170c]
push eax
lea eax, [ebp - 0x1668]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x1668]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407772
sub ecx, edx
lea eax, [ebp - 0x1668]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 0x4b8]
call fcn.00405d50
xor eax, eax
mov dword [ebp - 0x1698], 0xa1eaa1e8
mov dword [ebp - 0x1694], 0xa1e4a1e6
xor ecx, ecx
mov dword [ebp - 0x1690], 0xa1f6a1ce
mov dword [ebp - 0x168c], 0xa1e6a1fa
mov word [ebp - 0x1688], ax
mov byte [ebp - 0x1686], 1
nop
lea eax, [ecx - 0x5e73]
xor word [ebp + ecx*2 - 0x1698], ax
inc ecx
cmp ecx, 8
jb 0x4077d0
lea eax, [ebp - 0x1698]
mov byte [ebp - 0x1686], 0
lea esi, [edi + 0x2c]
push eax
mov ecx, esi
call fcn.00414e05
lea ecx, [ebp - 0x1668]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x3c]
xor eax, eax
mov dword [ebp - 0x16ac], 0xa1eaa1e8
mov dword [ebp - 0x16a8], 0xa1e4a1e6
xor edx, edx
mov dword [ebp - 0x16a4], 0xa1f6a1ce
mov dword [ebp - 0x16a0], 0xa1e6a1fa
mov word [ebp - 0x169c], ax
mov byte [ebp - 0x169a], 1
nop dword [eax]
nop dword [eax + eax]
lea eax, [edx - 0x5e73]
xor word [ebp + edx*2 - 0x16ac], ax
inc edx
cmp edx, 8
jb 0x407850
lea eax, [ebp - 0x16ac]
mov byte [ebp - 0x169a], 0
push eax
mov ecx, esi
call fcn.00414e05
push 0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xec]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055e6d4
mov esp, ebp
pop ebp
ret
call fcn.005ce7a3
int3