Function at 0x10023210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc0
mov esi, ecx
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x38]
push 0x1042024f
push eax
push dword [ebp + 8]
call fcn.1002db80
add esp, 0xc
movzx edx, byte [esp + 0x38]
cmp dx, 2
jne 0x1002324c
xor eax, eax
jmp 0x100237fa
mov eax, dword [esi + 0x28]
test eax, eax
mov dword [esp + 0x34], eax
je 0x10023367
mov al, byte [esp + 0x39]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov byte [esp + 0x27], al
movzx edi, al
mov eax, dword [esi]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], ebx
xor eax, 2
or eax, dword [esi + 4]
mov al, byte [esp + 0x44]
mov byte [esp + 0xb], al
jne 0x10023373
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x30], edx
mov edx, dword [esi + 0x10]
mov dword [esp + 0x1c], esi
mov esi, dword [esi + 0x14]
mov ebx, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], esi
xor eax, 0x6e657261
xor ebx, 0x70736575
mov dword [esp + 0x48], ebx
mov ebx, ecx
xor ecx, 0x6c796765
xor ebx, 0x736f6d65
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], eax
mov eax, edx
mov dword [esp + 0x54], ecx
xor edx, 0x79746573
xor eax, 0x6e646f6d
mov dword [esp + 0x58], eax
mov eax, esi
xor esi, 0x74656462
xor eax, 0x646f7261
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], esi
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
cmp al, 1
jne 0x100233c4
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x38]
lea edx, [esp + 0x20]
push 4
call fcn.10017fe0
add esp, 4
cmp byte [esp + 0xb], 0
je 0x10023614
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x38]
push dword [esp + 0x18]
jmp 0x100233eb
mov dword [esp], 0
jmp 0x100237f7
cmp dl, 1
jne 0x100235f0
cmp byte [esp + 0xb], 0
je 0x10023657
test ebx, ebx
je 0x10023802
mov dword [esp + 0x1c], esi
mov esi, 0xad2aca77
mov eax, 0x47985764
mov edi, ecx
nop
movzx ecx, byte [edi]
mov edx, 0x1b3
imul esi, esi, 0x1b3
inc edi
xor ecx, eax
mov eax, ecx
shl ecx, 8
mul edx
add ecx, edx
add esi, ecx
dec ebx
jne 0x100233a0
jmp 0x10023698
lea esi, [esp + 0x38]
movzx eax, al
lea edx, [esp + 0x20]
mov ecx, esi
mov dword [esp + 0x20], eax
push 4
call fcn.10017fe0
add esp, 4
lea edx, [esp + 0x20]
mov ecx, esi
mov dword [esp + 0x20], edi
push 4
call fcn.10017fe0
add esp, 4
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x68]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x5c]
mov edi, dword [esp + 0x4c]
shl eax, 0x18
mov dword [esp + 0x14], esi
xor edx, esi
mov esi, dword [esp + 0x48]
or eax, dword [esp + 0x6c]
mov dword [esp + 0x28], eax
xor ecx, eax
mov eax, dword [esp + 0x58]
add esi, eax
mov dword [esp + 4], esi
mov esi, eax
adc edi, ebx
shld esi, ebx, 0xd
shld ebx, eax, 0xd
mov eax, dword [esp + 0x50]
mov dword [esp], edi
xor ebx, edi
mov edi, dword [esp + 0x54]
xor esi, dword [esp + 4]
add eax, edx
mov dword [esp + 0xc], eax
mov eax, edx
adc edi, ecx
shrd edx, ecx, 0x10
shld eax, ecx, 0x10
mov dword [esp + 0x10], edi
xor edx, edi
mov edi, dword [esp + 4]
xor eax, dword [esp + 0xc]
add dword [esp], eax
mov ecx, eax
adc edi, edx
shld ecx, edx, 0x15
shrd eax, edx, 0xb
mov edx, esi
mov dword [esp + 4], edi
xor eax, edi
xor ecx, dword [esp]
add dword [esp + 0xc], esi
mov edi, dword [esp + 0x10]
adc edi, ebx
shld edx, ebx, 0x11
shrd esi, ebx, 0xf
mov ebx, dword [esp + 4]
xor edx, dword [esp + 0xc]
xor esi, edi
xor edi, 0xff
mov dword [esp + 0x10], edi
xor ebx, dword [esp + 0x28]
mov dword [esp + 4], ebx
mov ebx, dword [esp]
mov edi, dword [esp + 4]
xor ebx, dword [esp + 0x14]
add ebx, edx
mov dword [esp], ebx
mov ebx, edx
adc edi, esi
shrd edx, esi, 0x13
shld ebx, esi, 0xd
mov dword [esp + 4], edi
xor edx, edi
mov edi, dword [esp + 0xc]
mov esi, ecx
xor ebx, dword [esp]
add dword [esp + 0x10], ecx
adc edi, eax
shld esi, eax, 0x10
shrd ecx, eax, 0x10
xor esi, dword [esp + 0x10]
xor ecx, edi
mov dword [esp + 0xc], edi
mov edi, dword [esp]
add dword [esp + 4], esi
mov eax, esi
adc edi, ecx
shld eax, ecx, 0x15
shrd esi, ecx, 0xb
mov ecx, ebx
mov dword [esp], edi
xor esi, edi
xor eax, dword [esp + 4]
add dword [esp + 0x10], ebx
mov edi, dword [esp + 0xc]
adc edi, edx
shld ecx, edx, 0x11
shrd ebx, edx, 0xf
mov edx, dword [esp + 4]
xor ecx, dword [esp + 0x10]
xor ebx, edi
mov dword [esp + 0xc], edi
add edx, ecx
mov edi, ecx
adc dword [esp], ebx
shld edi, ebx, 0xd
shrd ecx, ebx, 0x13
mov dword [esp + 4], edx
mov ebx, eax
xor edi, edx
xor ecx, dword [esp]
add dword [esp + 0xc], eax
mov edx, dword [esp + 0x10]
adc edx, esi
shrd eax, esi, 0x10
shld ebx, esi, 0x10
mov dword [esp + 0x10], edx
xor eax, edx
mov edx, dword [esp + 0xc]
xor ebx, edx
add dword [esp], ebx
mov esi, ebx
adc dword [esp + 4], eax
shld esi, eax, 0x15
shrd ebx, eax, 0xb
mov eax, dword [esp + 0x10]
xor ebx, dword [esp + 4]
xor esi, dword [esp]
add edx, edi
mov dword [esp + 0xc], edx
mov edx, edi
adc eax, ecx
shld edx, ecx, 0x11
shrd edi, ecx, 0xf
mov ecx, dword [esp]
xor edx, dword [esp + 0xc]
xor edi, eax
mov dword [esp + 0x10], eax
add ecx, edx
mov eax, edx
adc dword [esp + 4], edi
shld eax, edi, 0xd
shrd edx, edi, 0x13
mov edi, dword [esp + 0x10]
xor eax, ecx
mov ecx, dword [esp + 0xc]
xor edx, dword [esp + 4]
add edi, esi
adc ecx, ebx
shrd esi, ebx, 0x10
xor esi, ecx
shr esi, 0xb
add edi, eax
mov eax, edx
adc ecx, edx
shr eax, 0xf
xor eax, esi
xor eax, ecx
xor eax, edi
cmp byte [esp + 0x30], 0
sete cl
mov dword [esp + 0x14], ecx
jmp 0x100236a0
movzx eax, dx
movzx ecx, di
xor eax, 0x2325
imul eax, eax, 0xffffbc91
xor ecx, eax
imul eax, ecx, 0xffffbc91
mov cl, 1
mov dword [esp + 0x14], ecx
jmp 0x100236a4
cmp dword [esp + 0x18], 0
je 0x100233f3
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x2c]
lea esi, [esp + 0x20]
nop dword [eax + eax]
movzx eax, byte [edi]
inc edi
lea ecx, [esp + 0x38]
mov edx, esi
movzx eax, byte [eax + 0x1042024f]
mov byte [esp + 0x20], al
push 1
call fcn.10017fe0
add esp, 4
dec ebx
jne 0x10023630
jmp 0x100233f3
test ebx, ebx
je 0x10023802
mov dword [esp + 0x1c], esi
mov esi, 0xad2aca77
mov eax, 0x47985764
mov edi, ecx
nop
mov edx, eax
movzx eax, byte [edi]
imul esi, esi, 0x1b3
inc edi
movzx ecx, byte [eax + 0x1042024f]
xor ecx, edx
mov edx, 0x1b3
mov eax, ecx
shl ecx, 8
mul edx
add ecx, edx
add esi, ecx
dec ebx
jne 0x10023670
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x1c]
and eax, 0x7fff
mov dword [esp + 4], 0
mov ecx, eax
movzx eax, word [esi + 0x38]
mov dword [esp + 0x10], ecx
movzx edx, ax
mov eax, ecx
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0xc], edx
and eax, edx
mov edx, dword [esi + 0x18]
mov esi, dword [esi + 0x20]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], edx
jmp 0x100236ef
inc dword [esp + 4]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
inc esi
mov eax, esi
mov esi, eax
cmp eax, ecx
mov eax, 0
jae 0x100236ef
movzx ecx, word [edx + esi*4]
mov dword [esp], 0
cmp ecx, 0xffff
je 0x100237f7
movzx eax, word [edx + esi*4 + 2]
mov ebx, dword [esp + 0xc]
mov edi, esi
mov edx, eax
and edx, ebx
sub edi, edx
and edi, ebx
cmp dword [esp + 4], edi
ja 0x100237f7
cmp ax, word [esp + 0x10]
jne 0x100236e0
cmp dword [esp + 0x34], ecx
jbe 0x10023813
mov eax, dword [esp + 0x28]
imul ecx, ecx, 0x38
cmp byte [eax + ecx], 1
jne 0x10023797
cmp byte [esp + 0x14], 0
jne 0x100236e0
mov edx, dword [esp + 0x28]
cmp byte [esp + 0xb], 0
mov eax, dword [edx + ecx + 4]
mov ecx, dword [edx + ecx + 8]
je 0x100237b6
cmp ecx, dword [esp + 0x18]
jne 0x100236e0
mov ecx, dword [esp + 0x2c]
mov dword [esp], 1
cmp eax, ecx
je 0x100237f7
push dword [esp + 0x18]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x100236e0
jmp 0x100237f7
cmp byte [esp + 0x14], 0
je 0x100236e0
mov al, byte [esp + 0x27]
mov edx, dword [esp + 0x28]
cmp byte [edx + ecx + 1], al
jne 0x100236e0
jmp 0x100237f0
cmp ecx, dword [esp + 0x18]
jne 0x100236e0
xor ecx, ecx
nop word cs:[eax + eax]
nop dword [eax]
cmp dword [esp + 0x18], ecx
je 0x100237f0
mov edx, dword [esp + 0x2c]
movzx ebx, byte [eax + ecx]
movzx edx, byte [edx + ecx]
inc ecx
cmp bl, byte [edx + 0x1042024f]
je 0x100237d0
jmp 0x100236e0
mov dword [esp], 1
mov eax, dword [esp]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ax, 0x5764
mov dword [esp + 0x14], 0
jmp 0x100236a4
mov edx, dword [esp + 0x34]
push 0x10419498
call fcn.10008300
add esp, 4
ud2