Function at 0xa612a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov edi, dword [esp + 0x80]
mov ebx, dword [esp + 0x80]
mov esi, dword [esp + 0x80]
mov ecx, dword [edi + 0x10]
mov ebp, dword [edi + 0x1c]
mov ebx, dword [ebx + 0x14]
mov esi, dword [esi + 0x18]
mov edx, ecx
mov eax, ecx
sar edx, 0x1f
idiv ebp
mov dword [esp + 0x1c], ebx
mov ebx, dword [edi + 0x20]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x30], esi
test ebx, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x14], edx
mov ebp, eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
je 0xa615e7
mov ecx, dword [edi + 0x24]
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x94]
test eax, eax
jle 0xa61783
mov esi, dword [esp + 0x80]
mov ebx, dword [esp + 0x80]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x84]
mov ebp, dword [esi + 8]
mov ebx, dword [ebx + 4]
mov edi, dword [esi + 0x28]
mov edx, eax
sar edx, 0x1f
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ebx
lea ebx, [ebp + ebp]
mov dword [esp + 0x58], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x5c], ebx
nop
lea esi, [esi]
mov eax, dword [esp + 0x1c]
and eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x1c]
movzx ecx, byte [esp + 0x48]
imul eax, ebp
mov esi, dword [esp + 0x4c]
sar ebx, cl
test ebx, ebx
lea edi, [esi + eax*2]
mov dword [esp + 0x14], ebx
js 0xa61598
mov eax, ebx
add eax, ebp
cmp dword [esp + 0x90], eax
jl 0xa61455
mov ebx, dword [esp + 0x80]
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0xa614e0
mov ecx, dword [esp + 0x14]
xor ebx, ebx
xor eax, eax
mov edx, dword [esp + 0x88]
test ebp, ebp
lea esi, [edx + ecx*2]
jle 0xa615e0
movsx edx, word [esi + eax*2]
movsx ecx, word [edi + eax*2]
add eax, 1
imul edx, ecx
add ebx, edx
cmp eax, ebp
jne 0xa613c6
add ebx, 0x4000
mov eax, ebx
sar eax, 0xf
lea edx, [eax + 0x8000]
cmp edx, 0xffff
jbe 0xa613fc
sar ebx, 0x1f
mov eax, ebx
xor ax, 0x7fff
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x40]
add dword [esp + 0x30], edx
mov word [ebx], ax
mov eax, dword [esp + 0x44]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x38], eax
jg 0xa6142c
mov ebx, dword [esp + 0x38]
add dword [esp + 0x1c], 1
sub eax, ebx
mov dword [esp + 0x30], eax
add dword [esp + 0x20], 1
mov esi, dword [esp + 0x3c]
cmp dword [esp + 0x20], esi
je 0xa61570
mov ebx, dword [esp + 0x94]
add dword [esp + 0x34], 2
cmp dword [esp + 0x20], ebx
jne 0xa61360
mov ebx, dword [esp + 0x1c]
xor eax, eax
movzx ecx, byte [esp + 0x48]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x8c]
test ebx, ebx
cmovns eax, dword [esp + 0x1c]
sar eax, cl
test esi, esi
mov dword [edx], eax
js 0xa61488
mov ebx, dword [esp + 0x80]
mov ebx, dword [ebx + 0x28]
and dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x20]
test edx, edx
cmove eax, dword [esp + 0x3c]
test ecx, ecx
mov dword [esp + 0x3c], eax
je 0xa614d3
mov esi, dword [esp + 0x80]
mov edi, eax
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x1c]
mov dword [esi + 0x20], edi
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x44]
imul eax, dword [esi + 0x1c]
add eax, dword [esp + 0x40]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x20]
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
xor esi, esi
xor ecx, ecx
xor ebx, ebx
test ebp, ebp
jle 0xa61549
mov ebx, dword [esp + 0x14]
xor ecx, ecx
xor eax, eax
mov edx, dword [esp + 0x88]
mov dword [esp + 0x18], ebp
lea ebx, [edx + ebx*2]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x5c]
add ebx, edi
mov dword [esp + 0x28], ebx
nop
mov ebp, dword [esp + 0x14]
movsx ebx, word [edi + eax*2]
movsx edx, word [ebp + eax*2]
mov ebp, dword [esp + 0x28]
imul ebx, edx
add esi, ebx
movsx ebx, word [ebp + eax*2]
add eax, 1
imul edx, ebx
add ecx, edx
cmp eax, dword [esp + 0x18]
jne 0xa61510
mov eax, dword [esp + 0x30]
sub ecx, esi
mov ebp, dword [esp + 0x18]
imul ecx
mov ecx, eax
mov ebx, edx
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp + 4], ebx
mov dword [esp], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.00de3110
lea ebx, [esi + eax]
jmp 0xa613da
mov edi, dword [esp + 0x80]
mov dword [esp + 0x3c], 0
mov eax, dword [edi + 0xc]
mov edx, eax
sar edx, 0x1f
idiv dword [esp + 0x38]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
jmp 0xa6143f
test ebp, ebp
jle 0xa615e0
xor ebx, ebx
xor ecx, ecx
mov eax, dword [esp + 0x14]
add eax, ecx
mov esi, eax
sar esi, 0x1f
xor eax, esi
sub eax, esi
mov esi, dword [esp + 0x88]
mov edx, eax
sar edx, 0x1f
idiv dword [esp + 0x90]
movsx eax, word [esi + edx*2]
movsx edx, word [edi + ecx*2]
add ecx, 1
imul eax, edx
add ebx, eax
cmp ecx, ebp
jne 0xa615a0
jmp 0xa613da
xor eax, eax
jmp 0xa613fc
cmp dword [edi + 8], 1
nop
lea esi, [esi]
je 0xa615fe
mov ecx, dword [edi + 0x24]
mov dword [esp + 0x48], ecx
jmp 0xa61301
mov ebx, dword [edi + 0x24]
test ebx, ebx
mov dword [esp + 0x48], ebx
jne 0xa61301
mov eax, dword [esp + 0x38]
mov esi, ecx
sar esi, 0x1f
mov dword [esp + 4], ecx
mov dword [esp], 0
mov edx, eax
sar edx, 0x1f
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
call fcn.00de3110
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov esi, eax
mov eax, dword [esp + 0x90]
mov edi, edx
sub eax, 1
sub eax, dword [esp + 0x1c]
imul dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00de3110
mov ecx, eax
mov eax, dword [esp + 0x94]
mov ebx, edx
mov dword [esp + 0x20], ecx
mov edx, eax
sar edx, 0x1f
cmp ebx, edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
jge 0xa61762
mov eax, dword [esp + 0x20]
test eax, eax
jle 0xa61790
mov eax, dword [esp + 0x1c]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x88]
mov dword [esp + 0x54], edi
mov edi, dword [esp + 0x84]
mov dword [esp + 0x18], ebp
mov ebx, eax
lea esi, [esi]
movzx ebp, word [esi + ebx*2]
add ecx, dword [esp + 0x50]
adc ebx, dword [esp + 0x54]
mov word [edi + edx*2], bp
add edx, 1
cmp dword [esp + 0x20], edx
jg 0xa616d0
mov eax, dword [esp + 0x20]
imul dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
imul ebp, dword [esp + 0x20]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov edx, eax
mov esi, eax
sar edx, 0x1f
mov edi, edx
add esi, dword [esp + 0x50]
adc edi, dword [esp + 0x54]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.00de3110
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
add ebp, dword [esp + 0x1c]
mov dword [esp], esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
add eax, ebp
mov dword [esp + 4], edi
mov dword [esp + 0x1c], eax
call fcn.00de3260
mov dword [esp + 0x30], eax
jmp 0xa61455
jg 0xa61773
mov ebx, dword [esp + 0x94]
cmp ecx, ebx
jbe 0xa61699
mov ebx, dword [esp + 0x94]
mov dword [esp + 0x20], ebx
jmp 0xa61699
mov dword [esp + 0x20], 0
jmp 0xa61455
mov dword [esp + 0x50], 0
xor ebp, ebp
mov dword [esp + 0x54], 0
mov dword [esp + 0x20], 0
jmp 0xa61702