Function at 0x10017dce
Capabilities:
Encode data using xor
Get common file path

Disassembly:
mov eax, 0x1005bff3
call fcn.1005b550
sub esp, 0x34
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, edx
mov byte [ebp - 0x14], cl
je 0x10017f8b
test cl, cl
je 0x10017ebb
mov eax, dword [ebp + 0x18]
cmp byte [eax], 0
je 0x10017e16
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_SetBkColor]
mov dword [ebp - 0x1c], 0x3ada
cmp dword [ebp - 0x1c], 0x3b27
jle 0x10017e9f
xor esi, esi
mov dword [ebp - 0x18], esi
xor edi, edi
mov dword [ebp + 8], edi
xor ebx, ebx
and dword [ebp - 0x24], 0
lea eax, [edi + esi]
mov esi, dword [ebp - 0x24]
mov edi, eax
mov dword [ebp - 0x20], eax
and edi, ebx
mov eax, edi
lea ecx, [ebp - 0x40]
or eax, esi
cdq
push edx
push eax
call fcn.10001af4
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10017e5c
mov eax, dword [eax]
push eax
call fcn.1004677c
pop ecx
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.1000f813
inc esi
cmp esi, 0xb36
jl 0x10017e43
mov esi, dword [ebp - 0x18]
inc ebx
mov edi, dword [ebp + 8]
cmp ebx, 0x3de0
jl 0x10017e32
inc edi
mov dword [ebp + 8], edi
cmp edi, 0x49be
jl 0x10017e30
inc esi
mov dword [ebp - 0x18], esi
cmp esi, 0x497d
jl 0x10017e2b
cmp dword [ebp - 0x1c], 0x37b9
jge 0x100180ab
push str.ieph_hph_nzqtkbz_gfpoq_uzuub_pedgb
call fcn.1004677c
jmp 0x100180aa
mov dword [ebp - 0x20], 0x621a
cmp dword [ebp - 0x20], 0x635c
jle 0x10017f25
xor esi, esi
mov dword [ebp - 0x1c], esi
xor edi, edi
mov dword [ebp + 8], edi
mov ecx, edi
mov dword [ebp - 0x24], esi
xor ebx, ebx
shl esi, cl
xor edi, edi
mov ecx, edi
mov eax, ebx
sar eax, cl
mov ecx, 0x10075c58
xor eax, esi
cdq
push edx
push eax
call fcn.1000ed7e
inc edi
cmp edi, 0x7072
jl 0x10017ee0
inc ebx
cmp ebx, 0x87
jl 0x10017ede
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x1c]
inc edi
mov dword [ebp + 8], edi
cmp edi, 0x7e83
jl 0x10017ed5
inc esi
mov dword [ebp - 0x1c], esi
cmp esi, 0x14d3
jl 0x10017ed0
mov byte [ebp + 0xb], 0
mov dword [ebp - 4], 2
cmp dword [ebp - 0x20], 0x5f83
jge 0x10017f48
mov edx, str.ajexmyei_mgicji_quaiwtex_zug_pzmapc_kurazka_kmdyovtek_vhsvvht_jlaxiejv_obypoh_mwg_qtmypxlw
mov ecx, 0x10075c58
call fcn.1001381a
or dword [ebp - 4], 0xffffffff
cmp byte [ebp + 0xb], 0
je 0x100180ab
push 0x6d1
push 0x38a8
xor dl, dl
mov ecx, 0x6a3c
call fcn.100189b7
jmp 0x100180a9
cmp byte [ebp + 0x14], 0
je 0x10018091
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], ebx
mov dword [esi], 0xfffffff1
cmp dword [esi], 5
jg 0x100180ab
mov dword [ebp - 0x20], 0x1bf3
cmp dword [ebp - 0x20], 0x1e23
jle 0x10017ff4
xor edi, edi
xor esi, esi
mov eax, esi
mov ecx, 0x10075c58
and eax, edi
cdq
push edx
push eax
call fcn.1000ed7e
inc esi
cmp esi, 0x347a
jl 0x10017fc1
inc edi
cmp edi, 0x4418
jl 0x10017fbf
push 0xa38
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, dword [ebp + 0xc]
mov dword [ebp + 8], 0
jmp 0x1001800b
mov eax, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x18], 0x22124f84
inc dword [ebp + 8]
cmp dword [ebp + 8], 1
jl 0x10017ffd
mov dword [ebp - 4], 4
cmp dword [ebp - 0x20], 0x1a02
jge 0x10018055
mov edx, str.ngpxa_ejnwcko_jzpsm_hepamgn_nrr_tdsw_xbx_qvwye_tdfepvnf_muawj_btwpxhwl_zsfvcobuu_hufwl_sngyft
mov ecx, 0x10075c58
call fcn.1001381a
jmp 0x10018055
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0
jmp 0x10018084
push esi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0xea2a
push eax
push ecx
push ecx
push ebx
push ecx
push 1
mov ecx, 0x72e1
call fcn.10018998
add esp, 0x1c
dec dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0xffffffe5
je 0x10018062
inc dword [esi]
jmp 0x10017fa4
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0
je 0x100180ab
push 1
push 0x3f12
xor dl, dl
mov cl, 1
call fcn.10017b5e
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret