Function at 0x4a2d40
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x870]
sub esp, 0x870
push 0xffffffffffffffff
push 0x53e205
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x572844]
xor eax, ebp
mov dword [ebp + 0x86c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
xor eax, eax
mov dword [ebp + 0x20], 0x54266c
lea ecx, [ebp + 0x20]
mov dword [ebp + 0x24], 0x54266c
mov dword [ebp + 0x28], 0x54266c
mov dword [ebp + 0x2c], 0x54266c
mov dword [ebp + 0x30], 0x54266c
mov dword [ebp + 0x34], 0x54266c
mov dword [ebp + 0x38], 0x54266c
mov dword [ebp + 0x3c], 0x54266c
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x48], eax
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x58], eax
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x68], 0x69
call fcn.004b2040
mov ecx, dword [edi]
call fcn.00481c30
mov dword [ebp - 0x84], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x68], eax
xor edx, edx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], esi
mov dword [0x5b691c], 0xffffffff
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], al
mov dword [ebp - 4], esi
xor ebx, ebx
lea eax, [edi + 0x98]
mov dword [ebp - 0x2c], eax
cmp dword [edi + 0x74], ebx
jbe 0x4a2ebf
mov eax, dword [ebp - 0x1c]
xor edi, edi
mov ecx, dword [eax + 0x70]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ecx + edi]
cmp eax, dword [edx]
mov edx, dword [ebp - 0x64]
jne 0x4a2eab
mov edx, dword [ebp - 0x2c]
mov eax, dword [ecx + edi + 4]
cmp eax, dword [edx + 4]
mov edx, dword [ebp - 0x64]
jne 0x4a2eab
mov eax, dword [ecx + edi + 8]
inc edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x64], edx
cmp edx, esi
jbe 0x4a2ea4
mov eax, esi
add esi, 0x20
shr eax, 2
add esi, eax
cmp edx, esi
jbe 0x4a2e71
mov esi, edx
lea eax, [esi*4]
push eax
push dword [ebp - 0x3c]
call fcn.00525bbb
add esp, 8
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x4a2e98
mov ecx, 0x5b68fc
call fcn.0047b030
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x60], esi
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + edx*4 - 4], eax
mov eax, dword [ebp - 0x1c]
inc ebx
add edi, 0x10
cmp ebx, dword [eax + 0x74]
jb 0x4a2e33
mov edi, eax
jmp 0x4a2ec2
mov dword [ebp - 0x2c], eax
xor ecx, ecx
mov eax, edx
mov edx, 0x818
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051de7f
push 0x4a4900
push 0x20
push dword [edi + 0x4c]
mov dword [ebp - 0x24], eax
push dword [edi + 0x48]
call fcn.0052a210
mov eax, dword [edi + 0x60]
mov esi, 1
shl eax, 4
add esp, 0x14
shr eax, 3
mov dword [ebp - 0x70], esi
cmp eax, esi
jbe 0x4a2f10
add esi, esi
mov dword [ebp - 0x70], esi
cmp esi, eax
jb 0x4a2f07
lea eax, [esi - 1]
push esi
mov dword [ebp - 0x6c], eax
call fcn.0051de7f
push esi
push 0
push eax
mov dword [ebp - 0x74], eax
call fcn.005201d0
add esp, 0x10
mov byte [ebp - 4], 1
xor ebx, ebx
cmp dword [edi + 0x60], ebx
jbe 0x4a2fae
mov edx, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov edi, edi
mov esi, dword [edi + 0x5c]
add esi, ecx
mov eax, dword [esi]
cmp eax, dword [edx]
jne 0x4a2fa2
mov eax, dword [esi + 4]
cmp eax, dword [edx + 4]
jne 0x4a2fa2
mov edi, dword [esi + 8]
mov edx, edi
mov esi, dword [esi + 0xc]
mov eax, esi
shrd edx, eax, 3
mov eax, dword [ebp - 0x74]
and edx, dword [ebp - 0x6c]
movzx ecx, byte [edx + eax]
mov eax, edi
and eax, 7
bts ecx, eax
mov eax, dword [ebp - 0x74]
shrd edi, esi, 0x1e
shr esi, 0x1e
mov byte [edx + eax], cl
mov ecx, edi
mov edx, dword [ebp - 0x74]
and edi, 7
shrd ecx, esi, 3
and ecx, dword [ebp - 0x6c]
movzx eax, byte [ecx + eax]
bts eax, edi
mov edi, dword [ebp - 0x1c]
mov byte [ecx + edx], al
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x2c]
inc ebx
add ecx, 0x28
mov dword [ebp - 0x48], ecx
cmp ebx, dword [edi + 0x60]
jb 0x4a2f40
lea eax, [ebp + 0x6c]
push eax
call fcn.00476500
xor eax, eax
xor edx, edx
mov esi, SysReAllocString
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x64], eax
jbe 0x4a3068
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x40], ecx
jmp 0x4a2fe6
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebx + eax*4]
mov dword [ecx], eax
cmp eax, edx
jbe 0x4a2ff5
mov dword [ebp - 0x18], eax
cmp eax, esi
jae 0x4a2ffc
mov dword [ebp - 0x48], eax
lea edi, [ecx + 8]
xor ebx, ebx
mov byte [edi + 0x808], 0
jmp 0x4a3010
mov esi, dword [ecx]
movzx eax, bl
mov edx, dword [ebp + eax*8 + 0x6c]
mov eax, dword [ebp + eax*8 + 0x70]
test esi, esi
je 0x4a303b
movzx ecx, dl
shrd edx, eax, 8
shr eax, 8
xor edx, dword [ebp + ecx*8 + 0x6c]
xor eax, dword [ebp + ecx*8 + 0x70]
sub esi, 1
jne 0x4a3021
mov ecx, dword [ebp - 0x40]
mov dword [edi], edx
inc ebx
mov dword [edi + 4], eax
add edi, 8
cmp ebx, 0x100
jb 0x4a3010
mov eax, dword [ebp - 0x44]
add ecx, 0x818
inc eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
cmp eax, dword [ebp - 0x64]
jb 0x4a2fe0
mov edi, dword [ebp - 0x1c]
push 0x400000
call fcn.0051de7f
mov edi, dword [edi]
add esp, 4
mov ebx, eax
mov dword [ebp - 0x28], ebx
mov edx, dword [edi]
push 0
push 0
push 0
mov esi, dword [edx + 0x10]
mov ecx, esi
call dword [0x541740]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x1c]
push 0x400000
push ebx
mov edi, dword [eax]
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x541740]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x64]
mov ecx, eax
mov dword [ebp - 0x20], ecx
test edi, edi
je 0x4a30f3
mov esi, dword [ebp - 0x24]
add esi, 0x810
mov eax, dword [esi - 0x810]
cmp ecx, eax
jb 0x4a30e5
push eax
push ebx
push 0
push 0
call fcn.004762a0
mov ecx, dword [ebp - 0x20]
mov dword [esi - 8], eax
mov dword [esi - 4], edx
mov byte [esi], 1
add esi, 0x818
sub edi, 1
jne 0x4a30c4
mov edi, dword [ebp - 0x64]
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], eax
xor edx, edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x14], edx
lea ebx, [ebx]
lea eax, [edx + 0x40]
mov dword [ebp - 0x80], edx
cmp eax, ecx
jae 0x4a31ff
cmp byte [edx + ebx], 0x7b
jne 0x4a31ff
cmp byte [edx + ebx + 1], 0x52
jne 0x4a31ff
cmp byte [edx + ebx + 2], 0x42
jne 0x4a31ff
cmp byte [edx + ebx + 3], 0x7d
jne 0x4a31ff
cmp byte [edx + ebx + 0x14], 1
jne 0x4a31ff
mov esi, dword [edx + ebx + 0xc]
mov eax, dword [ebp - 0x18]
add esi, edx
add eax, esi
cmp eax, ecx
jae 0x4a31ff
mov ecx, dword [ebp - 0x2c]
push 0x4a4900
push 0x20
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp], eax
mov eax, edx
mov dword [ebp + 4], ecx
xor ecx, ecx
add eax, dword [ebp - 0x50]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x1c]
adc ecx, dword [ebp - 0x4c]
mov dword [ebp + 0x14], ecx
push dword [eax + 0x4c]
push dword [eax + 0x48]
lea eax, [ebp]
push eax
call fcn.0052a979
add esp, 0x14
test eax, eax
je 0x4a31fc
mov ecx, dword [ebp - 0x20]
mov edx, esi
mov dword [ebp - 0x14], edx
test edi, edi
je 0x4a3110
mov esi, dword [ebp - 0x24]
add ebx, edx
add esi, 0x810
push dword [esi - 0x810]
push ebx
push 0
push 0
call fcn.004762a0
mov dword [esi - 8], eax
lea esi, [esi + 0x818]
mov dword [esi - 0x81c], edx
mov byte [esi - 0x818], 1
sub edi, 1
jne 0x4a31c0
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
jmp 0x4a3110
mov edx, dword [ebp - 0x14]
xor eax, eax
xor cl, cl
mov dword [ebp - 0x34], eax
mov byte [ebp - 0xd], cl
test edi, edi
je 0x4a3460
mov ebx, dword [ebp - 0x24]
mov eax, edi
add ebx, 0x808
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x54], ebx
cmp byte [ebx + 8], 0
je 0x4a33d4
mov esi, dword [ebx]
mov edx, 1
mov edi, dword [ebx + 4]
mov ecx, esi
and ecx, 7
mov dword [ebp + 0x4c], esi
shl edx, cl
mov eax, edi
mov ecx, esi
mov dword [ebp + 0x50], edi
shrd ecx, eax, 3
mov eax, dword [ebp - 0x74]
and ecx, dword [ebp - 0x6c]
test byte [ecx + eax], dl
je 0x4a33ce
mov edx, dword [ebp - 0x74]
mov eax, 1
shrd esi, edi, 0x1e
shr edi, 0x1e
mov ecx, esi
shrd esi, edi, 3
and ecx, 7
and esi, dword [ebp - 0x6c]
shl eax, cl
test byte [esi + edx], al
je 0x4a33ce
mov ecx, dword [ebp - 0x2c]
push 0x4a4820
push 0x28
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp + 0x44], eax
mov eax, dword [ebx - 0x808]
mov dword [ebp + 0x64], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x48], ecx
push dword [eax + 0x60]
push dword [eax + 0x5c]
lea eax, [ebp + 0x44]
push eax
call fcn.0052a979
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4a33ce
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 0x18]
mov ebx, dword [esi + 0x10]
cmp edx, eax
jb 0x4a32de
ja 0x4a32d3
cmp edi, ebx
jbe 0x4a32de
mov ecx, edi
mov eax, edx
sub ecx, ebx
sbb eax, dword [esi + 0x14]
jmp 0x4a32e4
mov ecx, ebx
sub ecx, edi
sbb eax, edx
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x38], 0
adc dword [ebp - 0x38], edi
mov edi, dword [esi + 0x14]
cmp dword [ebp - 0x38], edi
mov edi, dword [esi + 0x18]
mov dword [ebp - 0x7c], edx
jb 0x4a3318
ja 0x4a330b
cmp edx, ebx
jbe 0x4a3318
mov ebx, edx
mov edx, dword [ebp - 0x38]
sub ebx, dword [esi + 0x10]
sbb edx, dword [esi + 0x14]
jmp 0x4a3320
sub ebx, edx
mov edx, dword [esi + 0x14]
sbb edx, dword [ebp - 0x38]
cmp edi, 0x7fffffff
jne 0x4a332d
cmp dword [esi + 0x1c], edi
je 0x4a333f
cmp edx, eax
ja 0x4a33cb
jb 0x4a333f
cmp ebx, ecx
jae 0x4a33cb
mov edi, dword [ebp - 0x7c]
mov ebx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x44]
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ebx
mov eax, dword [ebp + 0x64]
mov dword [ebp - 0x34], eax
test edx, edx
je 0x4a338f
mov ecx, dword [edx + 0x20]
cmp ecx, dword [esi + 0x20]
jne 0x4a338f
mov eax, ecx
add eax, dword [edx + 0x18]
mov edx, dword [edx + 0x1c]
adc edx, 0
cmp eax, edi
jne 0x4a338f
cmp edx, ebx
jne 0x4a338f
mov eax, dword [ebp - 0x44]
add ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
adc eax, 0
cmp ecx, dword [esi + 0x10]
jne 0x4a338f
cmp eax, dword [esi + 0x14]
jne 0x4a338f
mov ecx, dword [ebp - 0x40]
inc ecx
jmp 0x4a3391
xor ecx, ecx
mov edi, dword [ebp - 0x18]
xor edx, edx
mov eax, edi
mov dword [ebp - 0x40], ecx
div dword [esi + 0x20]
inc eax
cmp eax, 5
jae 0x4a33a9
mov eax, 5
cmp ecx, eax
jbe 0x4a33bd
mov ebx, dword [ebp - 0x54]
mov cl, 1
mov eax, dword [ebp - 0x30]
mov byte [ebp - 0xd], cl
mov dword [ebp - 0x44], esi
jmp 0x4a33d7
mov cl, byte [ebp - 0xd]
mov ebx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x44], esi
jmp 0x4a33d7
mov ebx, dword [ebp - 0x54]
mov cl, byte [ebp - 0xd]
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x18]
add ebx, 0x818
sub eax, 1
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x30], eax
jne 0x4a3222
mov edx, dword [ebp - 0x14]
test cl, cl
je 0x4a345d
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4a345d
lea ecx, [eax + edx]
lea eax, [ecx + edi]
cmp eax, dword [ebp - 0x20]
jae 0x4a345d
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x64]
cmp byte [edx + ebx], 0
je 0x4a3460
mov esi, dword [ebp - 0x24]
mov eax, ecx
add ebx, eax
mov dword [ebp - 0x14], eax
add esi, 0x810
push dword [esi - 0x810]
push ebx
push 0
push 0
call fcn.004762a0
mov dword [esi - 8], eax
lea esi, [esi + 0x818]
mov dword [esi - 0x81c], edx
mov byte [esi - 0x818], 1
sub edi, 1
jne 0x4a3421
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
jmp 0x4a3110
mov edi, dword [ebp - 0x64]
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
lea eax, [edx + esi]
cmp eax, ecx
jb 0x4a3554
mov ebx, ecx
sub ebx, edx
cmp ebx, esi
jne 0x4a3541
call fcn.004b0fe0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
push ebx
add eax, ecx
push eax
push ecx
call fcn.0051f6b0
mov eax, dword [ebp - 0x50]
add esp, 0xc
add eax, dword [ebp - 0x80]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x1c]
adc dword [ebp - 0x4c], 0
mov dword [ebp - 0x14], 0
mov edi, dword [eax]
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov eax, 0x400000
sub eax, ebx
mov ecx, esi
push eax
mov eax, dword [ebp - 0x28]
add eax, ebx
push eax
call dword [0x541740]
mov ecx, edi
call esi
mov edx, dword [ebp - 0x84]
lea ecx, [eax + ebx]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x20], ecx
mov edi, dword [ebx]
cmp edx, 0x7fffffff
jne 0x4a34fc
cmp eax, edx
jne 0x4a34fc
mov edx, dword [ebp - 0x14]
mov dword [0x5b691c], 0xffffffff
jmp 0x4a3544
push eax
push edx
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
call fcn.004af940
mov ecx, dword [edi + 0x222c]
mov esi, eax
cmp byte [ecx + 0x714c], 0
jne 0x4a3533
cmp esi, dword [0x5b691c]
je 0x4a3533
push 0
push 0x64
cdq
push edx
push eax
push 0x552430
call fcn.004b3bc0
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
mov dword [0x5b691c], esi
jmp 0x4a3544
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x48]
add eax, edx
cmp eax, ecx
jae 0x4a35eb
mov edi, dword [ebp - 0x64]
test edi, edi
je 0x4a35e2
mov edi, dword [ebp - 0x24]
xor ebx, ebx
mov ecx, dword [ebp - 0x64]
add edi, 0x808
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x34], ecx
mov eax, dword [edi - 0x808]
add eax, edx
cmp eax, esi
jae 0x4a35c4
mov ecx, dword [ebp - 0x28]
movzx eax, byte [eax + ecx]
movzx ecx, byte [edx + ecx]
xor eax, dword [edi]
add ecx, ebx
mov edx, dword [ebp - 0x24]
movzx eax, al
mov esi, dword [ebp + eax*8 + 0x6c]
xor esi, dword [edx + ecx*8 + 8]
mov edx, dword [ebp + eax*8 + 0x70]
mov eax, dword [ebp - 0x24]
xor edx, dword [eax + ecx*8 + 0xc]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
shrd eax, ecx, 8
shr ecx, 8
xor esi, eax
xor edx, ecx
mov dword [edi], esi
mov ecx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x20]
mov dword [edi + 4], edx
mov edx, dword [ebp - 0x14]
jmp 0x4a35c8
mov byte [edi + 8], 0
add ebx, 0x103
add edi, 0x818
sub ecx, 1
mov dword [ebp - 0x34], ecx
jne 0x4a3570
mov edi, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x28]
inc edx
jmp 0x4a3107
push dword [ebp - 0x28]
call fcn.0051de88
push dword [ebp - 0x24]
call fcn.0051de88
mov esi, dword [ebx]
add esp, 8
push 0
push 0x64
push 0
push 0x64
call fcn.004af940
mov ecx, dword [esi + 0x222c]
mov edi, eax
cmp byte [ecx + 0x714c], 0
jne 0x4a3637
cmp edi, dword [0x5b691c]
je 0x4a3637
push 0
push 0x64
cdq
push edx
push eax
push 0x552430
call fcn.004b3bc0
mov dword [0x5b691c], edi
mov byte [ebp - 4], 0
push 1
push dword [ebp - 0x74]
call fcn.0051da9d
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4a3665
push eax
call fcn.00525b95
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x86c]
xor ecx, ebp
call fcn.0051dca8
lea esp, [ebp + 0x870]
pop ebp
ret