Function at 0x43a900
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x533840]
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 0x43a979
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 + 0x5237b0]
sub esi, ecx
mov eax, dword [eax + 0x5237b4]
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 0x43a940
mov ebx, edi
lea edx, [ebp - 0x44]
sar ebx, 1
lea ecx, [ebp - 0x68]
push ebx
mov dword [ebp - 0x90], ebx
call fcn.0043a850
push ebx
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x8c]
call fcn.0043a850
add esp, 8
xor esi, esi
test ebx, ebx
jle 0x43a9ef
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 0x43a9b1
mov edi, dword [ebp - 0x94]
mov dword [ebp - 0x90], 0
nop dword [eax]
xor ebx, ebx
xor ecx, ecx
test edi, edi
jle 0x43ab67
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 0x43aa10
mov dword [ebp - 0x98], esi
cmp edi, 0x7fff
jle 0x43aa9c
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.0043b200
mov eax, dword [ebp - 0x90]
add esp, 4
inc eax
mov dword [ebp - 0x90], eax
cmp eax, 0xa
jl 0x43aa00
jmp 0x43aaa8
mov edi, dword [ebp - 0x94]
mov eax, dword [ebp - 0x90]
cmp eax, 0xa
jne 0x43ab67
xor ecx, ecx
cmp edi, 0x10
jb 0x43ab31
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 0x43aad0
cmp ecx, edi
jge 0x43ab67
mov edx, 0xffff8000
nop word [eax + eax]
mov eax, dword [ebp + ecx*4 - 0x44]
cmp eax, 0x7fff
jle 0x43ab52
mov eax, 0x7fff
jmp 0x43ab5a
cmp eax, 0xffff8000
cmovl eax, edx
mov dword [ebp + ecx*4 - 0x44], eax
inc ecx
cmp ecx, edi
jl 0x43ab40
xor ecx, ecx
jmp 0x43ab6d
xor ecx, ecx
test edi, edi
jle 0x43ab81
mov edx, dword [ebp - 0x9c]
mov ax, word [ebp + ecx*4 - 0x44]
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, edi
jl 0x43ab73
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c43a7
mov esp, ebp
pop ebp
ret