Function at 0xa54909f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0xa414d80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x13c], eax
inc edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x160], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x11c], esi
push 4
mov dword [ebp - 0x144], edi
mov eax, dword [edi + 0x5c]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x12c], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x140], eax
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x128], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x164], eax
add eax, ecx
mov dword [ebp - 0x16c], eax
mov eax, esi
sub eax, ecx
mov esi, dword [edi + 0x10]
mov dword [ebp - 0x118], ecx
mov ecx, dword [edi + 0xb8]
shl edx, cl
mov ecx, eax
sub ecx, dword [edi + 0x10]
mov dword [ebp - 0x124], eax
sub eax, edx
cmp ecx, edx
mov dword [ebp - 0x120], 3
mov ecx, esi
cmova ecx, eax
mov eax, dword [edi + 0xc4]
xor edx, edx
cmp dword [edi + 0x18], edx
mov dword [ebp - 0x170], edx
cmovne ecx, esi
mov esi, dword [ebp - 0x11c]
mov dword [ebp - 0x108], ecx
pop ecx
cmp eax, ecx
push 0x22
cmovb ecx, eax
mov eax, dword [edi + 0x50]
mov dword [ebp - 0x138], eax
mov eax, dword [edi + 0x54]
mov dword [ebp - 0x158], eax
xor eax, eax
inc eax
shl eax, cl
imul ecx, dword [esi], 0x9e3779b1
mov dword [ebp - 0x150], eax
mov eax, dword [edi + 0xb4]
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x10c], ecx
pop ecx
sub ecx, dword [eax + 0xc0]
mov eax, dword [ebp - 0x10c]
shr eax, cl
mov ecx, dword [edi + 0xc4]
shl eax, 2
mov dword [ebp - 0x14c], eax
cmp ecx, 4
jbe 0xa5491cf
xor eax, eax
add ecx, 0xfffffffc
inc eax
shl eax, cl
mov dword [ebp - 0x148], eax
jmp 0xa5491d5
mov dword [ebp - 0x148], edx
push 0x18
mov dword [ebp - 0x168], 0xf
pop ecx
cmp dword [edi + 0xdc], edx
jne 0xa54949a
mov eax, dword [ebp - 0x128]
mov edx, dword [edi + 0x1c]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x124]
sub eax, edx
mov dword [ebp - 0x114], edx
cmp eax, 0x180
jbe 0xa54939d
lea eax, [edx + 0x60]
mov dword [ebp - 0x130], eax
cmp edx, eax
jae 0xa5492c9
sub ecx, dword [ebp - 0x128]
mov dword [ebp - 0x110], ecx
mov eax, dword [edi + 0x54]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x118]
push 0xf
imul edx, dword [edx + eax + 8], 0x9e3779b1
mov eax, dword [ebp - 0x114]
and eax, 7
xor edx, dword [edi + 0x50]
shr edx, cl
mov ecx, dword [edi + eax*4 + 0x2c]
mov dword [edi + eax*4 + 0x2c], edx
mov eax, ecx
mov edx, dword [ebp - 0x140]
shr eax, 4
and eax, 0xffffff0
mov dword [ebp - 0x10c], ecx
mov ecx, dword [ebp - 0x12c]
add edx, eax
lea esi, [ecx + eax*4]
movzx ecx, byte [edx]
dec ecx
pop eax
and ecx, eax
push 0
pop eax
cmove eax, dword [ebp - 0x168]
add ecx, eax
mov eax, dword [ebp - 0x10c]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x114]
mov dword [esi + ecx*4], edx
inc edx
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x114], edx
cmp edx, dword [ebp - 0x130]
jb 0xa549233
mov esi, dword [ebp - 0x11c]
mov eax, dword [edi + 0x24]
lea ecx, [esi + 1]
mov edx, dword [ebp - 0x124]
mov edi, dword [ebp - 0x118]
add edx, 0xffffffe0
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x118]
add eax, edx
mov dword [ebp - 0x110], ecx
sub dword [ebp - 0x110], edi
xor edi, edi
sub dword [ebp - 0x110], edx
inc dword [ebp - 0x110]
cmp eax, ecx
mov eax, dword [ebp - 0x110]
cmova eax, edi
mov dword [ebp - 0x114], edx
mov edi, dword [ebp - 0x144]
push 8
pop ecx
cmp eax, ecx
mov dword [ebp - 0x10c], edx
cmova eax, ecx
add eax, edx
mov dword [ebp - 0x110], eax
cmp edx, eax
jae 0xa54939a
push 0x18
pop ecx
sub ecx, dword [ebp - 0x130]
mov esi, eax
mov dword [ebp - 0x130], ecx
mov ecx, edx
mov eax, dword [edi + 0x54]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x118]
imul edx, dword [ecx + eax], 0x9e3779b1
mov ecx, dword [ebp - 0x130]
xor edx, dword [edi + 0x50]
shr edx, cl
mov ecx, dword [ebp - 0x10c]
mov eax, ecx
and eax, 7
inc ecx
mov dword [ebp - 0x10c], ecx
mov dword [edi + eax*4 + 0x2c], edx
cmp ecx, esi
jb 0xa54934a
mov eax, dword [edi + 0x24]
mov edx, dword [ebp - 0x114]
mov esi, dword [ebp - 0x11c]
mov dword [ebp - 0x130], eax
push 0x18
pop ecx
mov eax, dword [edi + 0x5c]
mov dword [ebp - 0x110], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x174], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x124]
cmp edx, eax
jae 0xa54946a
sub ecx, dword [ebp - 0x130]
mov dword [ebp - 0x158], ecx
mov eax, dword [edi + 0x54]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x10c]
push 0xf
imul edx, dword [edx + eax + 8], 0x9e3779b1
mov eax, dword [ebp - 0x114]
and eax, 7
xor edx, dword [edi + 0x50]
shr edx, cl
mov ecx, dword [edi + eax*4 + 0x2c]
mov dword [edi + eax*4 + 0x2c], edx
mov eax, ecx
mov edx, dword [ebp - 0x174]
shr eax, 4
and eax, 0xffffff0
mov dword [ebp - 0x130], ecx
mov ecx, dword [ebp - 0x110]
add edx, eax
lea esi, [ecx + eax*4]
movzx ecx, byte [edx]
dec ecx
pop eax
and ecx, eax
push 0
pop eax
cmove eax, dword [ebp - 0x168]
add ecx, eax
mov eax, dword [ebp - 0x130]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x114]
mov eax, dword [ebp - 0x124]
mov dword [esi + ecx*4], edx
inc edx
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x114], edx
cmp edx, eax
jb 0xa5493d2
mov esi, dword [ebp - 0x11c]
mov dword [edi + 0x1c], eax
and eax, 7
imul edx, dword [esi + 8], 0x9e3779b1
push 0x18
pop ecx
sub ecx, dword [ebp - 0x128]
xor edx, dword [ebp - 0x138]
shr edx, cl
mov ecx, dword [edi + eax*4 + 0x2c]
mov dword [edi + eax*4 + 0x2c], edx
xor edx, edx
mov dword [ebp - 0x138], ecx
jmp 0xa5494c3
mov eax, dword [ebp - 0x138]
xor eax, dword [ebp - 0x10c]
sub ecx, dword [ebp - 0x128]
shr eax, cl
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x138]
mov dword [edi + 0x1c], eax
mov esi, dword [ebp - 0x12c]
mov eax, ecx
add dword [edi + 0x58], ecx
shr eax, 4
and eax, 0xffffff0
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x130], edx
push 0xf
lea esi, [esi + eax*4]
mov dword [ebp - 0x12c], esi
mov esi, dword [ebp - 0x140]
add esi, eax
mov dword [ebp - 0x158], esi
movzx eax, byte [esi]
mov dword [ebp - 0x128], eax
mov edx, dword [ebp - 0x128]
movsx eax, cl
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
movups xmm0, xmmword [esi]
pop eax
and edx, eax
mov ecx, edx
pcmpeqb xmm0, xmm1
pmovmskb esi, xmm0
neg ecx
and ecx, eax
mov ax, si
shl ax, cl
mov cx, dx
shr si, cl
or ax, si
movzx eax, ax
cdq
mov ecx, edx
mov esi, eax
xor edx, edx
mov dword [ebp - 0x10c], ecx
cmp ecx, edx
ja 0xa549559
cmp esi, edx
jbe 0xa5495d0
mov edi, edx
cmp dword [ebp - 0x150], edx
jbe 0xa5495c4
test esi, esi
jne 0xa54956f
bsf eax, ecx
add eax, 0x20
jmp 0xa549572
bsf eax, esi
add eax, dword [ebp - 0x128]
push 0xf
pop ecx
and eax, ecx
mov ecx, dword [ebp - 0x12c]
mov eax, dword [ecx + eax*4]
je 0xa54959e
cmp eax, dword [ebp - 0x108]
jb 0xa5495c4
mov dword [ebp + edi*4 - 0x104], eax
inc edi
dec dword [ebp - 0x150]
mov eax, dword [ebp - 0x10c]
mov ecx, esi
add ecx, 0xffffffff
adc eax, 0xffffffff
and esi, ecx
mov ecx, dword [ebp - 0x10c]
and ecx, eax
mov dword [ebp - 0x10c], ecx
ja 0xa54955b
jb 0xa5495c4
cmp esi, edx
ja 0xa54955b
mov dword [ebp - 0x114], edi
mov edi, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x128]
push 0xf
pop edx
dec ecx
and ecx, edx
push 0
pop eax
cmove eax, edx
mov edx, dword [ebp - 0x158]
add ecx, eax
mov eax, dword [ebp - 0x138]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x12c]
mov eax, dword [edi + 0x1c]
mov dword [edx + ecx*4], eax
inc dword [edi + 0x1c]
cmp dword [ebp - 0x114], 0
jbe 0xa549694
mov esi, dword [ebp - 0x120]
mov edi, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x130]
mov eax, dword [ebp + eax*4 - 0x104]
mov ecx, dword [ebp - 0x118]
add ecx, eax
mov dword [ebp - 0x158], eax
mov eax, dword [ecx + esi - 3]
cmp eax, dword [esi + edi - 3]
jne 0xa549679
push dword [ebp - 0x13c]
push ecx
push edi
call fcn.0a541d46
add esp, 0xc
cmp eax, esi
jbe 0xa549679
mov ecx, dword [ebp - 0x124]
mov esi, eax
sub ecx, dword [ebp - 0x158]
add eax, edi
mov edx, dword [ebp - 0x160]
add ecx, 3
mov dword [edx], ecx
cmp eax, dword [ebp - 0x13c]
je 0xa54968e
mov eax, dword [ebp - 0x130]
inc eax
mov dword [ebp - 0x130], eax
cmp eax, dword [ebp - 0x114]
jb 0xa549623
mov dword [ebp - 0x120], esi
mov eax, dword [ebp - 0x154]
mov esi, dword [ebp - 0x148]
add esi, dword [ebp - 0x150]
mov edi, dword [ebp - 0x120]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x140], ecx
add eax, dword [ebp - 0x164]
mov dword [ebp - 0x12c], eax
push 3
pop eax
cmp esi, eax
mov dword [ebp - 0x118], edx
cmovb eax, esi
xor ecx, ecx
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x144], ecx
test eax, eax
je 0xa5497b8
mov ecx, dword [ebp - 0x14c]
shl ecx, 2
mov dword [ebp - 0x108], ecx
mov eax, dword [ebp - 0x154]
mov eax, dword [eax + 0x5c]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x148], eax
test eax, eax
je 0xa5498be
mov ecx, dword [ebp - 0x11c]
mov eax, dword [eax + edx]
cmp eax, dword [ecx]
jne 0xa549791
push dword [ebp - 0x16c]
mov eax, dword [ebp - 0x148]
push dword [ebp - 0x140]
add eax, 4
push dword [ebp - 0x13c]
add eax, edx
push eax
lea eax, [ecx + 4]
push eax
call fcn.0a541db1
add esp, 0x14
lea ecx, [eax + 4]
cmp ecx, edi
jbe 0xa54978b
mov eax, dword [ebp - 0x124]
sub eax, dword [ebp - 0x148]
sub eax, dword [ebp - 0x12c]
mov edx, dword [ebp - 0x160]
add eax, 3
mov dword [ebp - 0x120], ecx
mov dword [edx], eax
mov eax, dword [ebp - 0x11c]
add eax, ecx
cmp eax, dword [ebp - 0x13c]
je 0xa5498c0
mov edi, ecx
mov edx, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x144]
add dword [ebp - 0x108], 4
inc ecx
mov dword [ebp - 0x144], ecx
cmp ecx, dword [ebp - 0x164]
jae 0xa5497b8
mov ecx, dword [ebp - 0x108]
jmp 0xa5496fa
mov eax, dword [ebp - 0x154]
sub esi, ecx
mov edx, dword [ebp - 0x14c]
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + edx*4 + 0xc]
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x108], eax
shr dword [ebp - 0x108], 8
movzx eax, al
cmp esi, eax
cmova esi, eax
test esi, esi
je 0xa5498be
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x11c]
shl eax, 2
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x154]
mov edi, dword [ebp - 0x108]
mov eax, dword [eax + 0x64]
mov eax, dword [edi + eax]
mov edi, dword [ebp - 0x120]
mov dword [ebp - 0x14c], eax
mov eax, dword [eax + edx]
cmp eax, dword [ecx]
jne 0xa5498a2
push dword [ebp - 0x16c]
mov eax, dword [ebp - 0x14c]
push dword [ebp - 0x140]
add eax, 4
push dword [ebp - 0x13c]
add eax, edx
push eax
lea eax, [ecx + 4]
push eax
call fcn.0a541db1
add eax, 4
add esp, 0x14
cmp eax, edi
jbe 0xa549896
mov ecx, dword [ebp - 0x124]
sub ecx, dword [ebp - 0x14c]
sub ecx, dword [ebp - 0x12c]
mov edx, dword [ebp - 0x160]
add ecx, 3
mov dword [ebp - 0x120], eax
mov edi, dword [ebp - 0x120]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x11c]
add eax, ecx
cmp eax, dword [ebp - 0x13c]
je 0xa5498be
jmp 0xa54989c
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x170]
add dword [ebp - 0x108], 4
inc eax
mov dword [ebp - 0x170], eax
cmp eax, esi
jb 0xa549805
mov ecx, edi
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0a5744b3
leave
ret