Function at 0x10022dc8
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1005d921
call fcn.1005c610
sub esp, 0xd8
cmp byte [ebp + 0x10], 0
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], ecx
je 0x10022e18
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
cmp dword [edx], 3
jge 0x1002333b
mov esi, dword [ebp + 0x1c]
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [eax + ecx*4], 7
inc dword [edx]
cmp dword [edx], 3
jl 0x10022e01
jmp 0x1002333b
mov dword [ebp - 0x44], esi
xor edi, edi
mov dword [ebp - 0x1c], 0xfffffffa
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x68], 0x3395cc9e
mov dword [ebp - 0x5c], 0xb132
mov dword [ebp - 0x58], 0x59cde89c
mov dword [ebp - 0x18], edi
jmp 0x10022e4f
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x38], 0xcff0ea75
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 2
jl 0x10022e41
push 3
mov dword [ebp - 0x18], edi
pop ebx
jmp 0x10022e6e
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0xe0], 0x7374fd5
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], ebx
jl 0x10022e5d
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], edi
jl 0x10022ffc
mov dword [ebp - 0x20], 0xffffffff
lea ecx, [ebp - 0x98]
push 2
call fcn.10004264
mov dword [ebp - 4], edi
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x3c], 0xfffffffe
mov dword [ebp - 0x20], 0xfffffffd
mov dword [ebp - 0x20], 0xfffffffc
push ebx
call fcn.10004264
push 0x2449
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
push ecx
push ecx
push edi
lea edx, [ebp - 0x98]
call fcn.100226f7
add esp, 0x14
mov dword [ebp - 0x24], edi
jmp 0x10022eed
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xa4]
mov dword [eax + ecx*4], edi
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], ebx
jl 0x10022ede
mov dword [ebp - 0x40], 1
xor edx, edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + eax*4 - 0x38]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp + eax*4 - 0x38]
cmp ecx, eax
mov eax, dword [ebp - 0x38]
setle dl
xor ecx, ecx
add edx, eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp + eax*4 - 0x38]
cmp eax, edx
sete cl
mov dword [ebp - 0x20], ecx
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp + eax*4 - 0x38]
mov eax, dword [ebp - 0x20]
sub esi, eax
mov eax, dword [ebp - 0x98]
cmp esi, 0x1f0e
mov dword [ebp - 0xe0], esi
setl cl
mov dword [eax], esi
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp + eax*4 - 0x38]
xor eax, eax
cmp edx, ecx
setg al
xor edx, edx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp + eax*4 - 0x38]
mov eax, dword [ebp - 0x98]
cmp dword [eax], 0xc4eb
mov eax, dword [ebp - 0x1c]
setl dl
xor ecx, ecx
cmp edx, eax
setne cl
xor ebx, ebx
imul eax, ecx, 0x9c21
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp ecx, eax
mov eax, dword [ebp - 0x1c]
setl bl
xor edx, edx
mov eax, dword [ebp + eax*4 - 0x38]
cmp ebx, eax
mov eax, dword [ebp - 0x1c]
setne dl
xor ecx, ecx
cmp edx, eax
sete cl
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp + eax*4 - 0x38]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp + eax*4 - 0x38]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp + eax*4 - 0x38]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0xa4]
mov dword [eax], ecx
lea ecx, [ebp - 0xa4]
call fcn.100042e7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.100042e7
dec dword [ebp - 0x1c]
push 3
pop ebx
jns 0x10022e83
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x1c]
push eax
push ecx
lea eax, [ebp - 0x68]
mov ecx, 0x3154
push eax
lea eax, [ebp - 0x40]
push eax
lea edx, [ebp - 0x58]
call fcn.10026256
xor eax, eax
mov dword [ebp - 0x78], 7
add esp, 0x14
mov dword [ebp - 0x7c], edi
mov word [ebp - 0x8c], ax
mov ecx, dword [ebp - 0x28]
push 2
pop eax
mov dword [ebp - 4], eax
cmp ecx, esi
ja 0x10023184
mov dword [ebp - 0x74], 0xffffffff
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x54], 0x505b0bb8
mov dword [ebp - 0x48], 0xa5f9c710
push eax
call fcn.10004264
mov byte [ebp - 4], bl
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x28], 0x1f12
cmp dword [ebp - 0x28], 0x1f41
jle 0x100230aa
mov esi, edi
mov dword [ebp - 0x30], edi
mov eax, edi
mov ecx, 0x10078098
xor eax, esi
cdq
push edx
push eax
call fcn.10003fb2
inc edi
cmp edi, 0x4693
jl 0x1002307d
inc esi
push 0
pop edi
cmp esi, 0x6ab4
jl 0x1002307a
push edi
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [ebp - 0x70], 0xcf456574
mov byte [ebp - 4], 4
cmp dword [ebp - 0x28], 0x1e17
jge 0x100230cd
mov edx, str.nwph_obbaik_erc_nngolxc_qtwxsopce_bweqqxgdm_vqduyqzdl_nhpmwioh_bxacyrlx_ohqy
mov ecx, 0x10078098
call fcn.100065fc
mov dword [ebp - 4], ebx
push 0x30e5
push ecx
mov dword [ebp - 0x6c], 9
lea edx, [ebp - 0xb0]
mov dword [ebp - 0x4c], 0xa164e62b
lea ecx, [ebp - 0xc0]
push 0x331f
mov dword [ebp - 0x50], 0x2d63
call fcn.10023965
add esp, 0xc
lea eax, [ebp - 0x54]
lea edx, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x70]
push eax
push ecx
lea eax, [ebp - 0x48]
xor cl, cl
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.10022d18
add esp, 0x18
mov edx, 0x4269
push 0x2a15
push edi
push ecx
lea ecx, [ebp - 0x50]
call fcn.1002296e
add esp, 0x14
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb0]
call fcn.100042e7
jmp 0x10023317
mov eax, ecx
lea ecx, [ebp - 0x8c]
sub eax, esi
sar eax, 1
push eax
call fcn.10004161
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x18], 0xfffffff7
mov dword [ebp - 0x3c], 0x2324015f
mov dword [ebp - 0x18], 0x20b2455f
mov dword [ebp - 0x30], 0xb03be465
mov dword [ebp - 0x18], edi
jmp 0x100231cf
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0xd4], 0xcce35a12
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], ebx
jl 0x100231be
mov dword [ebp - 0x18], edi
jmp 0x100231ea
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0xc8], 0x3090707e
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 2
jl 0x100231d9
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
neg edx
sbb edx, edx
xor ecx, ecx
neg edx
cmp edx, eax
setg cl
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x18], 0x8e1b8814
sbb ecx, ecx
inc ecx
sub ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
neg ecx
sbb ecx, ecx
inc ecx
sub ecx, eax
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc4], 1
mov eax, dword [ebp - 0x20]
dec eax
neg eax
sbb eax, eax
neg eax
imul eax, dword [ebp - 0x3c]
imul eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
cmp esi, dword [ebp - 0x28]
jae 0x10023303
push 4
lea ecx, [ebp - 0xbc]
call fcn.10004264
push ecx
mov byte [ebp - 4], 6
lea edx, [ebp - 0x60]
mov dword [ebp - 0x2c], 0xfffffffc
lea ecx, [ebp - 0xbc]
call fcn.10023372
mov dword [ebp - 0x2c], ebx
pop ecx
cmp dword [ebp - 0x2c], edi
jl 0x100232b1
push ecx
push 0x2f6d
push 0x345
push 0x1b1e
mov edx, 0x677
mov ecx, 0x1d0f
call fcn.10025177
add esp, 0x10
dec dword [ebp - 0x2c]
jns 0x1002328a
push ecx
push edi
push 0x2c80
push ecx
lea eax, [ebp - 0xbc]
push eax
lea edx, [ebp - 0x2c]
call fcn.100225bd
add esp, 0x14
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xbc]
call fcn.100042e7
push edi
lea eax, [ebp - 0x44]
mov ecx, 0x245b
push 0x5213
push eax
lea edx, [ebp - 0x8c]
call fcn.10026ba0
mov eax, dword [ebp - 0x28]
add esp, 0xc
cmp dword [ebp - 0x44], eax
jb 0x1002325a
mov dword [ebp - 0x60], 0xfffc
call fcn.10024e3d
push 1
call fcn.100222dc
pop ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x8c]
cmp ecx, eax
je 0x1002332d
push 0xffffffffffffffff
push edi
push eax
call fcn.1000478f
push edi
push 1
lea ecx, [ebp - 0x8c]
call fcn.100048bd
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret