Function at 0x430210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x4b3080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edx
xor ebx, ebx
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x98], 0
test edi, edi
jle 0x430289
nop dword [eax]
mov esi, dword [eax + ebx*4]
mov ecx, esi
sar ecx, 8
lea eax, [ecx*4]
shl ecx, 8
mov edx, dword [eax + 0x49f958]
sub esi, ecx
mov eax, dword [eax + 0x49f95c]
sub eax, edx
shl edx, 8
imul esi, eax
mov eax, dword [ebp - 0x90]
add esi, edx
mov dword [ebp + ebx*4 - 0x44], esi
inc ebx
cmp ebx, edi
jl 0x430250
mov ebx, edi
lea edx, [ebp - 0x44]
sar ebx, 1
lea ecx, [ebp - 0x68]
push ebx
mov dword [ebp - 0x90], ebx
call fcn.00430160
push ebx
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x8c]
call fcn.00430160
add esp, 8
xor esi, esi
test ebx, ebx
jle 0x4302ff
lea ebx, [ebp + edi*4 - 0x48]
mov edi, dword [ebp - 0x90]
mov ecx, dword [ebp + esi*4 - 0x64]
lea ebx, [ebx - 4]
add ecx, dword [ebp + esi*4 - 0x68]
mov edx, dword [ebp + esi*4 - 0x88]
sub edx, dword [ebp + esi*4 - 0x8c]
lea eax, [edx + ecx]
sub edx, ecx
sar eax, 8
inc eax
sar edx, 8
sar eax, 1
inc edx
neg eax
sar edx, 1
mov dword [ebp + esi*4 - 0x44], eax
inc esi
mov dword [ebx + 4], edx
cmp esi, edi
jl 0x4302c1
mov edi, dword [ebp - 0x94]
mov dword [ebp - 0x90], 0
nop dword [eax]
xor ebx, ebx
xor ecx, ecx
test edi, edi
jle 0x430477
nop dword [eax]
mov eax, dword [ebp + ecx*4 - 0x44]
mov esi, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
mov edi, eax
cmovle esi, dword [ebp - 0x98]
cmovle edi, ebx
inc ecx
mov dword [ebp - 0x98], esi
mov ebx, edi
cmp ecx, dword [ebp - 0x94]
jl 0x430320
mov dword [ebp - 0x98], esi
cmp edi, 0x7fff
jle 0x4303ac
mov edx, 0x18041
lea ecx, [esi + 1]
cmp edi, edx
mov eax, 0x7fff
cmovl edx, edi
mov edi, dword [ebp - 0x94]
sub eax, edx
imul ecx, edx
imul eax, eax, 0x3fef
sar ecx, 2
cdq
idiv ecx
mov edx, edi
lea ecx, [ebp - 0x44]
add eax, 0xffbe
push eax
call fcn.00430b10
mov eax, dword [ebp - 0x90]
add esp, 4
inc eax
mov dword [ebp - 0x90], eax
cmp eax, 0xa
jl 0x430310
jmp 0x4303b8
mov edi, dword [ebp - 0x94]
mov eax, dword [ebp - 0x90]
cmp eax, 0xa
jne 0x430477
xor ecx, ecx
cmp edi, 0x10
jb 0x430441
mov eax, edi
lea edx, [ebp - 0x44]
and eax, 0xfffffff0
lea esi, [ebp - 0x24]
lea ebx, [ebp - 0x14]
nop word [eax + eax]
movups xmm0, xmmword [edx + ecx*4]
packssdw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x10
movups xmmword [edx + ecx*4], xmm0
movups xmm0, xmmword [ebp + ecx*4 - 0x34]
packssdw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x10
movups xmmword [ebp + ecx*4 - 0x34], xmm0
movups xmm0, xmmword [esi + ecx*4]
packssdw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x10
movups xmmword [esi + ecx*4], xmm0
movups xmm0, xmmword [ebx + ecx*4]
packssdw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x10
movups xmmword [ebx + ecx*4], xmm0
add ecx, 0x10
cmp ecx, eax
jl 0x4303e0
cmp ecx, edi
jge 0x430477
mov edx, 0xffff8000
nop word [eax + eax]
mov eax, dword [ebp + ecx*4 - 0x44]
cmp eax, 0x7fff
jle 0x430462
mov eax, 0x7fff
jmp 0x43046a
cmp eax, 0xffff8000
cmovl eax, edx
mov dword [ebp + ecx*4 - 0x44], eax
inc ecx
cmp ecx, edi
jl 0x430450
xor ecx, ecx
jmp 0x43047d
xor ecx, ecx
test edi, edi
jle 0x430491
mov edx, dword [ebp - 0x9c]
mov ax, word [ebp + ecx*4 - 0x44]
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, edi
jl 0x430483
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004661fb
mov esp, ebp
pop ebp
ret