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], 0xebaceb86
mov dword [ebp - 0x16b4], 0xebb0eb82
xor ecx, ecx
mov dword [ebp - 0x16b0], 0xeb9beba8
mov dword [ebp - 0x16ac], 0xebbcebb2
mov dword [ebp - 0x16a8], 0xebaaeba2
mov dword [ebp - 0x16a4], 0xebbaeba3
mov dword [ebp - 0x16a0], 0xeba1ebaf
mov word [ebp - 0x169c], ax
mov byte [ebp - 0x169a], 1
nop
lea eax, [ecx - 0x143e]
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], 0xebe3ebe2
mov dword [ebp - 0x1694], 0x6061751c
xor ecx, ecx
mov dword [ebp - 0x1690], 0xb4929d28
mov dword [ebp - 0x168c], 0x14d2
mov byte [ebp - 0x1688], 1
nop
lea eax, [ecx - 0x143e]
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.0040dca0
lea esi, [edi + 0x2c]
push str.edit_dir
mov ecx, esi
call fcn.00414dd7
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], 0xebf9eb81
xor ecx, ecx
mov dword [ebp - 0x1708], 0xeb95eb98
mov dword [ebp - 0x1704], 0xeba8ebb4
mov dword [ebp - 0x1700], 0xebbbebaf
mov dword [ebp - 0x16fc], 0xeba6ebab
mov dword [ebp - 0x16f8], 0xeb8bebec
mov dword [ebp - 0x16f4], 0xeba3eba7
mov dword [ebp - 0x16f0], 0xeba2ebb5
mov dword [ebp - 0x16ec], 0xebfbebf2
mov dword [ebp - 0x16e8], 0xebedebac
mov dword [ebp - 0x16e4], 0xebfeebe0
mov dword [ebp - 0x16e0], 0xeb9deb84
mov dword [ebp - 0x16dc], 0xeb9debb5
mov dword [ebp - 0x16d8], 0xebb3eba9
mov dword [ebp - 0x16d4], 0xeba5eb82
mov dword [ebp - 0x16d0], 0xeb89eb95
mov dword [ebp - 0x16cc], 0xeb8ceb83
mov dword [ebp - 0x16c8], 0xeb84eb93
mov dword [ebp - 0x16c4], 0xeb88
mov byte [ebp - 0x16c0], 1
nop dword [eax]
lea eax, [ecx - 0x143e]
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], 0xeba7eba7
mov dword [ebp - 0x1694], 0xebb1ebad
xor ecx, ecx
mov dword [ebp - 0x1690], 0xeba3eb99
mov dword [ebp - 0x168c], 0xebbbeba1
mov word [ebp - 0x1688], ax
mov byte [ebp - 0x1686], 1
nop
lea eax, [ecx - 0x143e]
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.00414dd7
lea ecx, [ebp - 0x1668]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x3c]
xor eax, eax
mov dword [ebp - 0x16ac], 0xeba7eba7
mov dword [ebp - 0x16a8], 0xebb1ebad
xor edx, edx
mov dword [ebp - 0x16a4], 0xeba3eb99
mov dword [ebp - 0x16a0], 0xebbbeba1
mov word [ebp - 0x169c], ax
mov byte [ebp - 0x169a], 1
nop dword [eax]
nop dword [eax + eax]
lea eax, [edx - 0x143e]
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.00414dd7
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