Function at 0x10016811
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x100548eb
call fcn.10053f54
sub esp, 0x3c
cmp byte [ebp + 0x48], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], edx
mov byte [ebp - 0x14], cl
je 0x10016971
cmp byte [ebp + 0x40], 0
je 0x10016847
push 0
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
jmp 0x10016b30
xor esi, esi
mov dword [ebp - 0x28], 0x5209
xor edi, edi
inc esi
cmp dword [ebp - 0x28], 0x5518
jle 0x100168e3
mov ebx, edi
mov dword [ebp - 0x24], ebx
mov ecx, edi
mov dword [ebp - 0x20], edi
mov eax, ebx
mov dword [ebp + 0x48], edi
cdq
idiv ecx
mov eax, edi
mov ecx, edx
mov dword [ebp - 0x1c], ecx
mov ebx, eax
mov dword [ebp - 0x18], 0x5888
mov eax, ecx
mov ecx, ebx
shl eax, cl
lea ecx, [ebp - 0x44]
cdq
push edx
push eax
call fcn.10001311
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1001689d
mov eax, dword [eax]
push eax
call fcn.1003bcd0
pop ecx
push edi
push esi
lea ecx, [ebp - 0x44]
call fcn.10001623
mov ecx, dword [ebp - 0x1c]
dec ebx
dec dword [ebp - 0x18]
jne 0x10016882
mov eax, dword [ebp + 0x48]
inc eax
mov dword [ebp + 0x48], eax
cmp eax, 0x731
jl 0x10016879
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
inc ecx
mov dword [ebp - 0x20], ecx
cmp ecx, 0x2833
jl 0x1001686a
inc ebx
mov dword [ebp - 0x24], ebx
cmp ebx, 0x35a8
jl 0x10016865
mov ebx, dword [ebp + 8]
xor edx, edx
mov eax, dword [ebx]
mov ecx, dword [ebx]
mov eax, dword [ebx]
add ecx, 0xf1e0c863
cmp ecx, eax
mov eax, dword [ebx]
setne dl
sub edx, eax
jne 0x10016901
mov eax, dword [ebx]
mov eax, dword [ebx]
xor edx, edx
imul ecx, eax, 0xfffd
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp ecx, eax
mov eax, dword [ebx]
setge dl
xor ecx, ecx
cmp edx, eax
mov edx, dword [ebp + 0x14]
setg cl
cmp ecx, dword [edx]
jg 0x10016927
mov eax, dword [edx]
cmp dword [edx], edi
je 0x1001692f
cmp dword [ebx], edi
jne 0x10016931
mov esi, edi
mov eax, dword [ebx]
xor ecx, ecx
test eax, eax
mov eax, dword [ebp + 0x2c]
sete cl
mov dword [eax], ecx
xor ecx, ecx
mov eax, dword [eax]
cmp eax, esi
mov eax, dword [ebp + 0x28]
setne cl
mov dword [eax], ecx
mov ecx, dword [eax]
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
cmp dword [ebp - 0x28], 0x50a1
jge 0x10016b30
push str.qfpviy_xgnc_odqmx_vhz_izopvr_xetiukpsz_swajg_zogr_ntiggc_njh_snt_pro_mse_wopfrevc
call fcn.1003bcd0
pop ecx
jmp 0x10016b30
test cl, cl
je 0x10016b15
mov dword [ebp - 0x20], 0x4fe3
xor edi, edi
cmp dword [ebp - 0x20], 0x531f
mov ebx, 0x1006d158
jle 0x100169d3
mov esi, edi
mov dword [ebp - 0x28], edi
mov ecx, edi
mov edi, dword [ebp - 0x28]
mov dword [ebp + 0x48], ecx
lea eax, [edi + esi]
xor eax, ecx
mov ecx, ebx
cdq
push edx
push eax
call fcn.100021b6
mov ecx, dword [ebp + 0x48]
inc ecx
mov dword [ebp + 0x48], ecx
cmp ecx, 0x10e9
jl 0x1001699d
inc edi
push 0
mov dword [ebp - 0x28], edi
cmp edi, 0x2c58
pop edi
jl 0x10016995
inc esi
cmp esi, 0x1c82
jl 0x10016992
mov dword [ebp - 0x24], 0x6c93
cmp dword [ebp - 0x24], 0x6f3d
jle 0x10016a27
mov esi, edi
mov dword [ebp - 0x28], edi
mov eax, edi
mov edi, dword [ebp - 0x28]
mov dword [ebp + 0x48], eax
lea ecx, [eax + edi]
mov eax, esi
shl eax, cl
mov ecx, ebx
cdq
push edx
push eax
call fcn.100021b6
mov eax, dword [ebp + 0x48]
inc eax
mov dword [ebp + 0x48], eax
cmp eax, 0x469d
jl 0x100169f0
inc edi
push 0
mov dword [ebp - 0x28], edi
cmp edi, 0x6e70
pop edi
jl 0x100169e8
inc esi
cmp esi, 0x2837
jl 0x100169e5
mov dword [ebp - 4], 2
cmp dword [ebp - 0x24], 0x6979
jge 0x10016a61
mov edx, str.okdmhpz_ynvcikd_vuotxjrah_yjv_mzooqda_jcsexmp_tlvfmux_jxcknix_eipbnyse_yhh_rycqxeyx_oyxa_wnil_giyjhi
mov ecx, ebx
call fcn.100037d8
jmp 0x10016a61
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], edi
jne 0x10016ab2
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov esi, dword [ebp + 0x38]
mov dword [eax], 0xabebf3b8
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax]
mov eax, dword [esi]
cmp eax, ecx
mov eax, dword [esi]
setl dl
xor ebx, ebx
cmp edx, 0x2daffa89
mov edx, dword [ebp + 0x34]
setg bl
xor ecx, ecx
cmp ebx, eax
setle cl
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx]
mov eax, dword [ecx]
cmp dword [edx], edi
jne 0x10016ab2
xor esi, esi
mov edx, edi
inc esi
jmp 0x10016ab7
xor esi, esi
inc esi
mov edx, esi
mov eax, dword [ecx]
sub edx, eax
mov eax, dword [ebp + 0x1c]
xor ecx, ecx
mov eax, dword [eax]
cmp edx, eax
setle cl
cmp ecx, 0xffffffff
jl 0x10016ad3
mov eax, dword [ebp + 0xc]
cmp dword [eax], edi
je 0x10016ad5
mov edi, esi
mov eax, dword [ebp + 0x24]
mov dword [eax], edi
mov dword [ebp - 4], 4
cmp dword [ebp - 0x20], 0x4fa3
jge 0x10016af9
mov edx, str.yurtd_nrlqvt_cmw_sfgo_gminkiw_nqodmlbn_pcgvu_qmrydtl_dviac_snminqpb_pebx_gblhdf
mov ecx, 0x1006d158
call fcn.100037d8
jmp 0x10016b30
mov ecx, dword [ebp + 0x44]
xor edx, edx
mov eax, dword [ecx]
mov eax, dword [ecx]
cmp eax, 3
mov eax, dword [ebp + 0x3c]
setl dl
mov ecx, dword [eax]
mov eax, dword [ebp + 0x20]
sub ecx, edx
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret