Function at 0x430970
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x541a34]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp + 0x28]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x24]
push esi
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x54], eax
lea eax, [ecx - 4]
mov dword [ebp - 0x50], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x48], edx
push edi
mov edi, dword [ebp + 0x1c]
cmp eax, 0xc
ja 0x430d25
test cl, 1
jne 0x430d25
lea eax, [ebx - 7]
cmp eax, 6
ja 0x430d25
mov al, 0xf
sub al, bl
mov byte [ebp - 0x39], al
push ebx
push edx
lea ecx, [eax - 1]
mov al, byte [ebp + 0x28]
sub al, 2
mov byte [ebp - 0x3a], cl
and al, 0xfe
or al, 0x10
shl al, 2
or al, cl
mov byte [ebp - 0x18], al
lea eax, [ebp - 0x17]
push eax
call fcn.004d5f40
mov dl, byte [ebp - 0x39]
add esp, 0xc
mov eax, dword [ebp + 8]
test dl, dl
je 0x430a11
lea ecx, [ebp - 9]
movzx edx, dl
mov byte [ecx], al
lea ecx, [ecx - 1]
shr eax, 8
sub edx, 1
jne 0x430a04
test eax, eax
jne 0x430d25
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [ebp - 0x28], xmm0
mov edx, 0x10
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x18]
lea ecx, [ecx + 1]
xor byte [ebp + ecx - 0x29], al
sub edx, 1
jne 0x430a30
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x10
mov edx, eax
call fcn.00417780
add esp, 0xc
test eax, eax
jne 0x430d2a
mov ecx, dword [ebp - 0x4c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x18], xmm0
mov word [ebp - 0x18], 0xd00
mov edx, 0x10
mov eax, dword [ecx + 8]
movq xmm0, qword [ecx]
mov dword [ebp - 0xe], eax
mov al, byte [ecx + 0xc]
xor ecx, ecx
movq qword [ebp - 0x16], xmm0
mov byte [ebp - 0xa], al
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x18]
lea ecx, [ecx + 1]
xor byte [ebp + ecx - 0x29], al
sub edx, 1
jne 0x430a90
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x10
mov edx, eax
call fcn.00417780
add esp, 0xc
test eax, eax
jne 0x430d2a
mov al, byte [ebp - 0x3a]
push ebx
push dword [ebp - 0x48]
mov byte [ebp - 0x38], al
lea eax, [ebp - 0x37]
push eax
call fcn.004d5f40
movzx eax, byte [ebp - 0x39]
push eax
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x37]
add eax, ebx
push 0
push eax
call fcn.004d64c0
mov eax, dword [ebp + 8]
add esp, 0x18
mov byte [ebp - 0x29], 1
test eax, eax
je 0x430caf
mov ecx, 0x10
mov ebx, eax
cmp eax, ecx
cmova ebx, ecx
cmp dword [ebp - 0x50], 0
jne 0x430b5f
push ebx
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push edi
push eax
movups xmmword [ebp - 0x18], xmm0
call fcn.004d5f40
add esp, 0xc
mov edx, 0x10
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x18]
lea ecx, [ecx + 1]
xor byte [ebp + ecx - 0x29], al
sub edx, 1
jne 0x430b30
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x10
mov edx, eax
call fcn.00417780
add esp, 0xc
test eax, eax
jne 0x430d2a
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x10
lea edx, [ebp - 0x38]
call fcn.00417780
add esp, 0xc
test eax, eax
jne 0x430d2a
xor dl, dl
test ebx, ebx
je 0x430c03
cmp ebx, 0x20
jb 0x430c03
lea eax, [ebx - 1]
movzx ecx, al
lea eax, [ebp - 0x18]
add eax, ecx
cmp esi, eax
ja 0x430ba7
lea eax, [ebp - 0x18]
mov dword [ebp - 0x48], eax
lea eax, [ecx + esi]
cmp eax, dword [ebp - 0x48]
jae 0x430c03
lea eax, [ecx + edi]
cmp esi, eax
ja 0x430bb5
lea eax, [ecx + esi]
cmp eax, edi
jae 0x430c03
mov eax, ebx
mov ecx, ebx
and eax, 0x1f
sub ecx, eax
xor eax, eax
mov dword [ebp - 0x48], ecx
mov cl, 0x10
nop word [eax + eax]
movups xmm1, xmmword [eax + edi]
add dl, 0x20
movups xmm0, xmmword [ebp + eax - 0x18]
pxor xmm1, xmm0
movups xmmword [eax + esi], xmm1
movzx eax, cl
add cl, 0x20
movups xmm1, xmmword [eax + edi]
movups xmm0, xmmword [ebp + eax - 0x18]
pxor xmm1, xmm0
movups xmmword [eax + esi], xmm1
movzx eax, dl
cmp eax, dword [ebp - 0x48]
jb 0x430bd0
movzx ecx, dl
cmp ecx, ebx
jae 0x430c23
nop word [eax + eax]
mov al, byte [ecx + edi]
inc dl
xor al, byte [ebp + ecx - 0x18]
mov byte [ecx + esi], al
movzx ecx, dl
cmp ecx, ebx
jb 0x430c10
cmp dword [ebp - 0x50], 1
jne 0x430c74
push ebx
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push esi
push eax
movups xmmword [ebp - 0x18], xmm0
call fcn.004d5f40
add esp, 0xc
mov edx, 0x10
xor ecx, ecx
mov al, byte [ebp + ecx - 0x18]
lea ecx, [ecx + 1]
xor byte [ebp + ecx - 0x29], al
sub edx, 1
jne 0x430c45
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x10
mov edx, eax
call fcn.00417780
add esp, 0xc
test eax, eax
jne 0x430d2a
mov eax, dword [ebp + 8]
add esi, ebx
sub eax, ebx
add edi, ebx
mov bl, byte [ebp - 0x39]
xor dl, dl
mov dword [ebp + 8], eax
test bl, bl
je 0x430ca6
nop dword [eax]
movzx eax, dl
lea ecx, [ebp - 0x29]
sub ecx, eax
add byte [ecx], 1
jne 0x430ca3
inc dl
cmp dl, bl
jb 0x430c90
mov eax, dword [ebp + 8]
test eax, eax
je 0x430cb2
jmp 0x430af9
mov bl, byte [ebp - 0x39]
test bl, bl
je 0x430ccb
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x29]
nop dword [eax]
mov byte [eax], 0
lea eax, [eax - 1]
sub ecx, 1
jne 0x430cc0
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x10
lea edx, [ebp - 0x38]
call fcn.00417780
add esp, 0xc
test eax, eax
jne 0x430d2a
xor ecx, ecx
mov edx, 0x10
nop
mov al, byte [ebp + ecx - 0x18]
lea ecx, [ecx + 1]
xor byte [ebp + ecx - 0x29], al
sub edx, 1
jne 0x430cf0
push dword [ebp + 0x28]
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x54]
call fcn.004d5f40
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004d1fac
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffff3
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d1fac
mov esp, ebp
pop ebp
ret