Function at 0x10022187
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x100647d4
call fcn.10063468
sub esp, 0x68
cmp byte [ebp + 0x1c], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], ecx
je 0x10022225
cmp byte [ebp + 8], 0
je 0x100221f9
mov ebx, dword [ebp + 0x20]
mov edi, dword [ebp + 0x34]
cmp dword [ebx], 0
je 0x100221e7
mov eax, dword [ebx]
xor ecx, ecx
mov eax, dword [ebx]
mov eax, dword [ebp + 0x18]
mov esi, dword [edi]
mov edx, dword [eax]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp dword [edx + esi*4], eax
setne cl
cmp ecx, 0x36d0
jl 0x100221d9
mov eax, dword [edi]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [edi]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov eax, dword [edi]
mov eax, dword [edi]
imul ecx, dword [ebx], 0xa1dd
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
jmp 0x100224f8
mov edx, dword [ebp + 0x2c]
mov dword [edx], 0
cmp dword [edx], 1
jge 0x100224f8
mov esi, dword [ebp + 0x38]
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [eax + ecx*4], 0x25a80e35
inc dword [edx]
cmp dword [edx], 1
jl 0x1002220e
jmp 0x100224f8
mov dword [ebp - 0x24], 0x35ca
xor ebx, ebx
cmp dword [ebp - 0x24], 0x3665
jle 0x1002225e
mov esi, ebx
mov edi, ebx
mov eax, edi
mov ecx, 0x10080838
xor eax, esi
cdq
push edx
push eax
call fcn.10010b40
inc edi
cmp edi, 0x5472
jl 0x1002223b
inc esi
cmp esi, 0x17d0
jl 0x10022239
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x24], 0x33be
jge 0x10022279
mov edx, str.kqfkwnxfm_wmxgawxq_aeqirbexm_oxwdk_qgrbwa_gxqciiq_ufrjmp_dhw_daazvwo_tjjauwvfr_cgv
mov ecx, 0x10080838
call fcn.10013913
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0x7977
cmp dword [ebp - 0x14], 0x7ba7
jle 0x100222e6
mov esi, ebx
mov dword [ebp - 0x20], ebx
mov edi, ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 0x6fb9
mov eax, esi
lea ecx, [ebp - 0x74]
cdq
push edx
push eax
call fcn.10002a87
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x100222b5
mov eax, dword [eax]
push eax
call fcn.1004e245
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.10011503
add esi, edi
dec dword [ebp - 0x24]
jne 0x1002229e
mov esi, dword [ebp - 0x20]
inc edi
cmp edi, 0x60c
jl 0x10022294
inc esi
mov dword [ebp - 0x20], esi
cmp esi, 0x28c1
jl 0x10022292
cmp byte [ebp + 0x24], 0
je 0x100224da
push dword [ebp - 0x30]
lea ecx, [ebp - 0x5c]
call fcn.10010c55
push 2
pop edi
sub esp, 0xc
mov dword [ebp - 4], edi
call fcn.10021642
mov esi, dword [ebp - 0x34]
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0x5c]
call fcn.10025fd1
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x1002239c
mov dword [ebp - 0x14], ebx
jmp 0x10022357
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x1c], 0xffffffff
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 1
jl 0x10022349
mov dword [ebp - 0x1c], ebx
jmp 0x10022377
push 0x634a
mov edx, 0x2e5
xor cl, cl
call fcn.10021b60
inc dword [ebp - 0x1c]
pop ecx
cmp dword [ebp - 0x1c], 4
jge 0x10022362
push 0xeaf
lea eax, [ebp - 0x5c]
mov ecx, 0x46be
push eax
push 0x5bfb
push ebx
lea edx, [ebp - 0x28]
call fcn.10025a60
add esp, 0x10
push ecx
push esi
lea ecx, [ebp - 0x5c]
call fcn.10025f4d
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x5c]
push eax
call fcn.100217cd
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x24], 0x5f40e13f
pop ecx
mov dword [ebp - 0x2c], ebx
pop ecx
mov dword [ebp - 0x14], ebx
jmp 0x100223dc
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x44], 0xfffffffe
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 3
jl 0x100223ce
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x14], ebx
jl 0x10022467
lea eax, [ebp + 0x1f]
mov dword [ebp - 0x20], 0x46df37d4
push 0x4577
mov byte [ebp + 0x1f], bl
xor dl, dl
push eax
mov ecx, 0x589
call fcn.100226b5
pop ecx
pop ecx
mov dword [ebp - 0x20], ebx
jmp 0x1002245d
mov dword [ebp - 0x24], 0x5664dc9e
mov dword [ebp - 0x24], edi
cmp dword [ebp - 0x24], ebx
jl 0x1002245a
mov dword [ebp - 0x18], 8
lea ecx, [ebp - 0x18]
call fcn.1002162c
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0x18], ebx
jl 0x10022455
mov dword [ebp - 0x38], 0x45fe46c2
lea edx, [ebp - 0x38]
push ecx
call fcn.10021f5c
mov eax, dword [ebp - 0x18]
pop ecx
cmp dword [ebp + eax*4 - 0x44], ebx
jne 0x10022455
dec dword [ebp - 0x18]
jns 0x10022436
dec dword [ebp - 0x24]
jns 0x1002241f
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], edi
jle 0x10022410
dec dword [ebp - 0x14]
jns 0x100223ea
mov eax, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x3c]
neg edx
sbb edx, edx
xor ecx, ecx
neg edx
cmp edx, eax
mov eax, dword [ebp - 0x3c]
setg cl
add eax, ecx
je 0x100224a3
cmp dword [ebp - 0x14], ebx
je 0x100224a3
xor eax, eax
inc eax
jmp 0x100224a5
mov eax, ebx
xor ecx, ecx
test eax, eax
setle cl
xor eax, eax
cmp ecx, 0x7ae9f903
mov ecx, dword [ebp + 0x30]
setl al
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x5c]
cmp ecx, eax
je 0x100224cd
push 0xffffffffffffffff
push ebx
push eax
call fcn.100116ef
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.10011831
jmp 0x100224f8
mov eax, dword [ebp + 0x28]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x3c]
mov dword [eax], ecx
cmp dword [ebp - 0x14], 0x7687
jge 0x100224f8
push str.phnwaehkn_ubwog_wfigqx_mno_kpkkjem_vuubcypmm_rmndbaqiw_xhfivmi_acnpajye_ueiuh_idfznohw_dqgwx
call fcn.1004e245
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret