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, 0x1708
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]
mov dword [ebp - 0x16c0], 0x9c05
mov dword [ebp - 0x16c4], 0x9c1d
test eax, eax
jne 0x407682
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]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4073f0
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], 0x9c009c2a
mov dword [ebp - 0x16b4], 0x9c049c36
xor ecx, ecx
mov dword [ebp - 0x16b0], 0x9c2f9c1c
mov dword [ebp - 0x16ac], 0x9c009c0e
mov dword [ebp - 0x16a8], 0x9c169c1e
mov dword [ebp - 0x16a4], 0x9c0e9c17
mov dword [ebp - 0x16a0], 0x9c159c1b
mov word [ebp - 0x169c], ax
mov byte [ebp - 0x169a], 1
nop word [eax + eax]
lea eax, [ecx - 0x6392]
xor word [ebp + ecx*2 - 0x16b8], ax
inc ecx
cmp ecx, 0xe
jb 0x407470
lea eax, [ebp - 0x16b8]
mov byte [ebp - 0x169a], 0
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1668]
push 0x664ec0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0x1698], 0x9c4f9c4e
mov dword [ebp - 0x1694], 0x17d502a8
xor ecx, ecx
mov dword [ebp - 0x1690], 0xc326ea9c
mov dword [ebp - 0x168c], 0x636e
mov byte [ebp - 0x1688], 1
nop
lea eax, [ecx - 0x6392]
xor word [ebp + ecx*2 - 0x1698], ax
inc ecx
cmp ecx, 7
jb 0x4074e0
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 0x407521
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 0x407553
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 0x4075b4
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 0x4075d5
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.0040dcf0
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 0x407610
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 0x40783b
mov ecx, dword [ebp - 0x1680]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407673
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4078e1
push edx
push ecx
call fcn.0055e71a
add esp, 8
jmp 0x40783b
mov dword [ebp - 0x1714], 0x9c559c2d
xor ecx, ecx
mov dword [ebp - 0x1710], 0x9c219c2c
mov dword [ebp - 0x170c], 0x9c1c9c00
mov dword [ebp - 0x1708], 0x9c079c13
mov dword [ebp - 0x1704], 0x9c1a9c17
mov dword [ebp - 0x1700], 0x9c3f9c58
mov dword [ebp - 0x16fc], 0x9c179c13
mov dword [ebp - 0x16f8], 0x9c0e9c19
mov dword [ebp - 0x16f4], 0x9c579c5e
mov dword [ebp - 0x16f0], 0x9cb99cf8
mov dword [ebp - 0x16ec], 0x9caa9cb4
mov dword [ebp - 0x16e8], 0x9cc19cd8
mov dword [ebp - 0x16e4], 0x9cc19ce9
mov dword [ebp - 0x16e0], 0x9ce79cfd
mov dword [ebp - 0x16dc], 0x9cf19cd6
mov dword [ebp - 0x16d8], 0x9ce59cf9
mov dword [ebp - 0x16d4], 0x9ce09cef
mov dword [ebp - 0x16d0], 0x9cf09ce7
mov dword [ebp - 0x16cc], 0x9cfc
mov byte [ebp - 0x16c8], 1
nop dword [eax]
lea eax, [ecx - 0x6392]
xor word [ebp + ecx*2 - 0x1714], ax
inc ecx
cmp ecx, 0x25
jb 0x407750
lea eax, [ebp - 0x218]
mov byte [ebp - 0x16c8], 0
push eax
lea eax, [ebp - 0x1714]
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 0x407792
sub ecx, edx
lea eax, [ebp - 0x1668]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 0x4b8]
call fcn.00405d50
mov eax, 0x9c19
mov dword [ebp - 0x1698], 0x9c0b9c0b
mov word [ebp - 0x1694], ax
xor ecx, ecx
mov eax, dword [ebp - 0x16c0]
mov word [ebp - 0x1692], ax
mov eax, dword [ebp - 0x16c4]
mov dword [ebp - 0x1690], 0x9c179c2d
mov word [ebp - 0x168c], ax
mov dword [ebp - 0x168a], 0x9c07
mov byte [ebp - 0x1686], 1
lea eax, [ecx - 0x6392]
xor word [ebp + ecx*2 - 0x1698], ax
inc ecx
cmp ecx, 8
jb 0x407801
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]
mov eax, 0x9c19
mov dword [ebp - 0x16ac], 0x9c0b9c0b
mov word [ebp - 0x16a8], ax
xor edx, edx
mov eax, dword [ebp - 0x16c0]
mov word [ebp - 0x16a6], ax
mov eax, dword [ebp - 0x16c4]
mov dword [ebp - 0x16a4], 0x9c179c2d
mov word [ebp - 0x16a0], ax
mov dword [ebp - 0x169e], 0x9c07
mov byte [ebp - 0x169a], 1
nop dword [eax + eax]
lea eax, [edx - 0x6392]
xor word [ebp + edx*2 - 0x16ac], ax
inc edx
cmp edx, 8
jb 0x407890
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