Function at 0x423530
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], ecx
movzx eax, word [esi]
push eax
mov dword [ebp - 8], esi
call fcn.00448392
add esp, 4
test eax, eax
je 0x42356e
movzx eax, word [esi + 2]
add esi, 2
push eax
call fcn.00448392
add esp, 4
test eax, eax
jne 0x423557
mov dword [ebp - 8], esi
movzx eax, word [edi]
push eax
call fcn.00448392
add esp, 4
test eax, eax
je 0x423597
nop
movzx eax, word [edi + 2]
add edi, 2
push eax
call fcn.00448392
add esp, 4
test eax, eax
jne 0x423580
mov dword [ebp - 0x14], edi
mov ebx, edi
lea ecx, [ebx + 2]
nop dword [eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4235a0
sub ebx, ecx
lea ecx, [esi + 2]
sar ebx, 1
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4235b2
sub esi, ecx
sar esi, 1
test ebx, ebx
je 0x4235e8
lea edi, [edi + ebx*2]
add edi, 0xfffffffe
nop dword [eax + eax]
movzx eax, word [edi]
push eax
call fcn.00448392
add esp, 4
test eax, eax
je 0x4235e8
sub edi, 2
sub ebx, 1
jne 0x4235d0
test esi, esi
je 0x42360d
mov edi, dword [ebp - 8]
add edi, 0xfffffffe
lea edi, [edi + esi*2]
movzx eax, word [edi]
push eax
call fcn.00448392
add esp, 4
test eax, eax
je 0x42360d
sub edi, 2
sub esi, 1
jne 0x4235f5
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + 0x38]
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423616
mov eax, dword [edx + 0x18]
sub ecx, edi
sar ecx, 1
mov dword [ebp - 0x10], ecx
add ecx, esi
add ecx, ebx
lea eax, [eax + ecx*2]
add eax, 9
and eax, 0xfffffffc
add eax, 0xa8
push eax
mov dword [ebp - 4], eax
call fcn.00442111
mov ecx, eax
add esp, 4
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x4238a5
mov edx, dword [ebp - 0xc]
lea edi, [ecx + 0xa8]
mov eax, dword [ebp - 4]
movups xmm0, xmmword [edx]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [edx + 0x10]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [edx + 0x20]
movups xmmword [ecx + 0x20], xmm0
mov dword [ecx], eax
mov eax, edi
sub eax, ecx
mov word [ecx + 0x38], ax
mov eax, dword [ebp - 0x10]
lea eax, [eax*2 + 2]
push eax
push dword [edx + 0x38]
push edi
call fcn.0043fbc0
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov ecx, dword [ebp - 0x18]
inc eax
lea edx, [edi + eax*2]
lea edi, [ebx + ebx]
mov dword [ebp - 4], edx
push edi
push dword [ebp - 0x14]
mov eax, edx
sub eax, ecx
push edx
mov word [ecx + 0x3a], ax
call fcn.0043fbc0
mov edx, dword [ebp - 4]
mov eax, ebx
and eax, 0x3f
add edi, edx
add esp, 0xc
mov dword [ebp - 4], edi
xor ecx, ecx
mov ax, word [eax*2 + 0x4631c8]
mov word [edi], ax
test ebx, ebx
je 0x4236f6
nop dword [eax]
mov eax, ecx
and eax, 0x3f
mov ax, word [eax*2 + 0x4631c8]
xor word [edx + ecx*2], ax
inc ecx
cmp ecx, ebx
jb 0x4236e0
mov ebx, dword [ebp - 0x18]
lea ecx, [edi + 2]
lea edi, [esi + esi]
mov eax, ecx
push edi
push dword [ebp - 8]
sub eax, ebx
push ecx
mov word [ebx + 0x3c], ax
call fcn.0043fbc0
mov edx, dword [ebp - 4]
mov eax, esi
and eax, 0x3f
add esp, 0xc
xor ecx, ecx
mov ax, word [eax*2 + 0x4631c8]
mov word [edi + edx + 2], ax
test esi, esi
je 0x423747
nop
mov eax, ecx
and eax, 0x3f
mov ax, word [eax*2 + 0x4631c8]
xor word [edx + ecx*2 + 2], ax
inc ecx
cmp ecx, esi
jb 0x423730
lea ecx, [edx + 4]
add ecx, edi
mov edi, dword [ebp - 0xc]
mov eax, ecx
sub eax, ebx
mov word [ebx + 0x3e], ax
push dword [edi + 0x18]
push dword [edi + 0x30]
push ecx
call fcn.0043fbc0
add esp, 0xc
cmp dword [edi + 4], 4
jge 0x42379d
push 0x1c
lea eax, [ebp - 0x40]
push eax
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42379d
push dword [ebp - 0x3c]
lea eax, [ebx + 0x40]
push str.0x_X
push 0x14
push eax
call fcn.004225c0
add esp, 0x10
xor eax, eax
mov word [ebx + 0x66], ax
jmp 0x4237a3
xor eax, eax
mov word [ebx + 0x40], ax
push 0x5c
push dword [edi + 0x34]
call fcn.0043f03e
push 0x2f
push dword [edi + 0x34]
mov esi, eax
call fcn.0043f03e
add esp, 0x10
cmp esi, eax
cmova eax, esi
test eax, eax
jne 0x4237ca
mov eax, dword [edi + 0x34]
jmp 0x4237cd
add eax, 2
push 0x20
push eax
lea eax, [ebx + 0x68]
push eax
call fcn.004483ce
xor eax, eax
mov dword [ebp - 4], ebx
mov word [ebx + 0xa6], ax
add esp, 0xc
mov esi, dword [0x4a8218]
mov eax, dword [esi + 0x18]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x1c]
mov dword [ebx + 0x30], eax
mov eax, dword [esi + 0x20]
mov dword [ebx + 0x34], eax
mov eax, dword [esi + 0x22c]
test eax, eax
je 0x423848
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42383e
mov dword [ebp - 0x24], 1
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x230]
mov dword [ebp - 0x1c], ebx
push 0x4a
push dword [esi + 0x22c]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x423848
mov dword [esi + 0x22c], 0
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x244]
lea edi, [esi + 0x240]
cmp dword [edi + 8], eax
je 0x423868
mov dword [eax], ebx
add dword [edi + 4], 4
jmp 0x423874
lea ecx, [ebp - 4]
push ecx
push eax
mov ecx, edi
call fcn.0041e200
cmp byte [esi + 0x23d], 0
je 0x423896
cmp byte [esi + 0x23e], 0
je 0x42389e
mov eax, dword [edi + 4]
sub eax, dword [edi]
sar eax, 2
cmp eax, dword [esi + 0x238]
jb 0x42389e
push ecx
mov ecx, esi
call fcn.00423250
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret