Function at 0x4965a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x636dc8
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x71de04]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x98], eax
xor eax, eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], eax
mov word [ebp - 0x68], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], eax
mov word [ebp - 0x50], ax
or eax, 0xffffffff
mov byte [ebp - 4], 1
mov dword [ebp - 0x6c], eax
lea edi, [esi + 0x1b8]
mov eax, dword [esi + 0xd0]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x90], eax
xor eax, eax
push 0xffffffffffffffff
push eax
push edi
mov dword [ebp - 0x20], eax
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x88], 1
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], eax
mov word [ebp - 0x38], ax
call fcn.00415600
cmp dword [esi + 0xa68], 1
mov eax, dword [ebx + 0x808]
mov byte [ebp - 4], 2
mov dword [ebp - 0x7c], eax
jne 0x4966da
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x496681
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.00415820
xor eax, eax
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x28], 0
cmp eax, 8
jb 0x4966aa
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.00415820
xor eax, eax
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x40], 0
cmp eax, 8
jb 0x4966d3
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.00415820
xor eax, eax
jmp 0x497212
cmp dword [esi + 0x1f4], 1
jne 0x49670e
cmp dword [esi + 0x560], 0
jne 0x49670e
lea ecx, [ebp - 0x38]
call fcn.00414160
lea ecx, [ebp - 0x50]
call fcn.00414160
lea ecx, [ebp - 0x68]
call fcn.00414160
mov eax, 1
jmp 0x497212
mov eax, dword [ebp + 0x14]
add dword [esi + 0x300], eax
mov eax, dword [esi + 0x300]
cmp eax, dword [esi + 0x56c]
jge 0x496737
cmp dword [esi + 0x560], 0
jne 0x496737
cmp dword [esi + 0x90c], 0
je 0x4966ec
mov dword [esi + 0x300], 0
cmp word [ebx], 0x54
je 0x4967c3
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x1a4], 0
cmp eax, 8
jb 0x496766
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.00415820
xor eax, eax
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x28], 0
cmp eax, 8
jb 0x49678f
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.00415820
xor eax, eax
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x40], 0
cmp eax, 8
jb 0x4966d3
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.00415820
xor eax, eax
jmp 0x497212
cmp dword [esi + 0x98c], 0
jne 0x4967f7
mov eax, dword [esi + 0x48c]
mov ecx, dword [esi + 0x224]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, dword [esi + 0x228]
sub ecx, 2
sub eax, 2
mov dword [esi + 0x98c], ecx
mov dword [esi + 0x988], eax
mov eax, dword [ebp - 0x70]
add ebx, 2
mov dword [ebp - 0x74], ebx
mov eax, dword [eax + 0x804]
dec eax
mov dword [esi + 0x8a8], 0
mov dword [ebp - 0x84], eax
mov dword [esi + 0x8ac], 0
cmp eax, dword [esi + 0x1a4]
jg 0x4968e6
push dword [esi + 0x490]
mov ecx, esi
push dword [esi + 0x48c]
call fcn.004961f0
mov ecx, esi
call fcn.00493e60
mov ecx, dword [ebp - 0x70]
push 0xfe
push 1
mov ax, word [ecx + 0x808]
mov ecx, edi
mov word [esi + 0x1a0], ax
call fcn.00415540
push 0xfe
push 1
mov ecx, edi
call fcn.00415540
mov eax, dword [esi + 0x1a8]
cmp eax, dword [esi + 0xb4]
jle 0x496889
mov ecx, esi
call fcn.00461710
mov eax, dword [esi + 0x490]
add eax, dword [esi + 0x1b4]
add eax, dword [esi + 0xcc]
cmp eax, dword [esi + 0x230]
jl 0x4968bd
mov ecx, esi
call fcn.00497d30
mov eax, dword [esi + 0x228]
mov ecx, esi
mov dword [esi + 0x1b0], eax
call fcn.00461710
mov dword [esi + 0x1a4], 0
lea ecx, [ebp - 0x38]
call fcn.00414160
lea ecx, [ebp - 0x50]
call fcn.00414160
lea ecx, [ebp - 0x68]
call fcn.00414160
xor eax, eax
jmp 0x497212
mov eax, dword [esi + 0x980]
lea edx, [ebp - 0x78]
push edx
push 0x662ce8
mov eax, dword [eax + 0x48]
push eax
mov ecx, dword [eax]
call dword [ecx]
push dword [esi + 0x230]
mov ecx, dword [esi + 0xa64]
push dword [esi + 0x22c]
push dword [ebp - 0x78]
call fcn.00442ea0
mov eax, dword [ebp - 0x78]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi + 0xa64]
mov eax, dword [eax + 0x188]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc0]
or eax, 0xffffffff
nop dword [eax + eax]
push 0
cmp eax, 0xffffffff
jne 0x497191
xor eax, eax
lea ecx, [ebp - 0x68]
mov word [esi + 0x976], ax
mov eax, dword [esi + 0x1a4]
push 0x646fb4
mov ax, word [ebx + eax*2]
mov word [ebp - 0x18], ax
xor eax, eax
mov word [ebp - 0x16], ax
call fcn.00415720
push 0
push 0x646fb4
lea ecx, [ebp - 0x50]
call fcn.00415720
movzx ecx, word [esi + 0x976]
mov edx, dword [esi + 0x1a4]
mov eax, ecx
xor eax, 0xff
cmp word [ebx + edx*2], ax
jne 0x496ce7
cmp word [ebx + edx*2 + 2], ax
jne 0x496ce7
mov eax, dword [ebp - 0x70]
movzx eax, word [eax + 0x808]
mov word [esi + 0x1a0], ax
movzx eax, word [ebx + edx*2]
xor ax, cx
mov ecx, edi
movzx eax, ax
push eax
push 1
call fcn.00415540
mov eax, dword [esi + 0x1a4]
mov ecx, edi
movzx eax, word [ebx + eax*2 + 2]
xor ax, word [esi + 0x976]
movzx eax, ax
push eax
push 1
call fcn.00415540
add dword [esi + 0x1a4], 2
mov ecx, edi
mov eax, dword [esi + 0x1a4]
mov ax, word [ebx + eax*2]
xor ax, word [esi + 0x976]
push eax
movzx ebx, ax
push 1
mov dword [ebp - 0x8c], ebx
call fcn.00415540
inc dword [esi + 0x1a4]
mov eax, dword [esi + 0x1a4]
test ebx, ebx
je 0x496a85
mov edi, ebx
mov ebx, dword [ebp - 0x74]
movzx eax, word [ebx + eax*2]
lea ecx, [ebp - 0x68]
xor ax, word [esi + 0x976]
movzx eax, ax
push eax
push 1
call fcn.00415540
mov eax, dword [esi + 0x1a4]
lea ecx, [esi + 0x1b8]
movzx eax, word [ebx + eax*2]
xor ax, word [esi + 0x976]
movzx eax, ax
push eax
push 1
call fcn.00415540
inc dword [esi + 0x1a4]
mov eax, dword [esi + 0x1a4]
sub edi, 1
jne 0x496a31
lea edi, [esi + 0x1b8]
jmp 0x496a88
mov ebx, dword [ebp - 0x74]
mov ax, word [ebx + eax*2]
mov ecx, edi
xor ax, word [esi + 0x976]
push eax
movzx ebx, ax
push 1
mov dword [ebp - 0x94], ebx
call fcn.00415540
inc dword [esi + 0x1a4]
mov eax, dword [esi + 0x1a4]
test ebx, ebx
je 0x496b10
mov edi, ebx
nop dword [eax + eax]
mov ecx, dword [ebp - 0x70]
movzx eax, word [ecx + eax*2 + 2]
lea ecx, [ebp - 0x50]
push eax
push 1
call fcn.00415540
mov eax, dword [esi + 0x1a4]
mov ecx, dword [ebp - 0x70]
mov ax, word [ecx + eax*2 + 2]
lea ecx, [esi + 0x1b8]
xor ax, word [esi + 0x976]
movzx eax, ax
push eax
push 1
call fcn.00415540
inc dword [esi + 0x1a4]
mov eax, dword [esi + 0x1a4]
sub edi, 1
jne 0x496ac0
mov ebx, dword [ebp - 0x94]
mov eax, dword [esi + 0xc8]
mov ecx, dword [ebp - 0x90]
add eax, ecx
imul eax, ebx
imul ecx, ebx
cdq
idiv dword [ebp - 0x8c]
add ecx, dword [esi + 0x1b0]
add ecx, dword [esi + 0x48c]
mov edi, eax
mov eax, dword [esi + 0x564]
mov dword [ebp - 0x8c], eax
mov dword [esi + 0x564], 1
cmp ecx, dword [esi + 0x22c]
jl 0x496c3d
mov eax, dword [esi + 0x1a8]
mov ecx, esi
cmp eax, dword [esi + 0xb4]
jge 0x496bef
call fcn.00497d30
mov ecx, esi
call fcn.00493e60
mov ecx, dword [esi + 0x1a4]
lea eax, [ecx + 3]
cmp dword [ebp - 0x84], eax
jg 0x496bb9
push dword [esi + 0x490]
mov ecx, esi
push dword [esi + 0x48c]
call fcn.004961f0
xor eax, eax
mov dword [esi + 0x1a4], 0
mov dword [ebp - 0x6c], eax
lea edi, [esi + 0x1b8]
jmp 0x49713e
cmp dword [esi + 0x560], 1
jne 0x496c3d
lea eax, [ecx + 1]
mov dword [esi + 0x1a4], eax
lea edi, [esi + 0x1b8]
inc eax
cmp dword [ebp - 0x7c], eax
jg 0x49713b
xor eax, eax
mov dword [esi + 0x1a4], 0
mov dword [ebp - 0x6c], eax
jmp 0x49713e
push dword [esi + 0x490]
push dword [esi + 0x48c]
call fcn.004961f0
cmp dword [esi + 0x1a8], 0
mov eax, dword [esi + 0x228]
mov dword [esi + 0x1b0], eax
je 0x496c3d
mov eax, dword [esi + 0x570]
mov dword [esi + 0x1f4], 1
mov dword [esi + 0x1f8], 1
cmp dword [esi + 0x56c], eax
je 0x496c3d
mov dword [esi + 0x56c], eax
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x68]
push eax
call fcn.00415600
push ebx
push edi
mov ecx, esi
call fcn.00492230
xor edi, edi
test ebx, ebx
je 0x496cc6
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
push dword [ebp - 0x80]
cmovae eax, dword [ebp - 0x50]
push dword [ebp + 0xc]
mov cx, word [eax + edi*2]
mov ax, word [esi + 0x976]
xor ax, cx
mov word [ebp - 0x18], cx
mov word [ebp - 0x20], ax
mov ecx, esi
lea eax, [ebp - 0x20]
push eax
call fcn.004928d0
push 0
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00491990
mov eax, dword [esi + 0xc8]
inc edi
add eax, dword [esi + 0x48c]
add dword [esi + 0x1b0], eax
cmp edi, ebx
jl 0x496c70
mov eax, dword [ebp - 0x8c]
lea edi, [esi + 0x1b8]
mov dword [esi + 0x564], eax
mov dword [esi + 0x204], 1
jmp 0x49713b
xor ecx, dword [ebp - 0x18]
mov word [ebp - 0x20], cx
cmp cx, 0xa
jne 0x496e38
mov ecx, dword [ebp - 0x98]
lea eax, [edx + 1]
mov dword [esi + 0x1a4], eax
cmp dword [ecx + 0x7c0c], 0xffffffff
mov ecx, esi
jne 0x496e20
inc eax
cmp dword [ebp - 0x7c], eax
jg 0x496db1
push dword [esi + 0x490]
push dword [esi + 0x48c]
call fcn.004961f0
mov ecx, esi
call fcn.00493e60
mov ecx, dword [ebp - 0x70]
push 0xfe
push 1
mov ax, word [ecx + 0x808]
mov ecx, edi
mov word [esi + 0x1a0], ax
call fcn.00415540
mov eax, dword [esi + 0x1a8]
cmp eax, dword [esi + 0xb4]
jle 0x496d6c
mov ecx, esi
call fcn.00461710
mov eax, dword [esi + 0x490]
add eax, dword [esi + 0x1b4]
add eax, dword [esi + 0xcc]
cmp eax, dword [esi + 0x230]
jl 0x496bdb
mov eax, dword [esi + 0x228]
mov ecx, esi
mov dword [esi + 0x1b0], eax
call fcn.00461710
xor eax, eax
mov dword [esi + 0x1a4], 0
mov dword [ebp - 0x6c], eax
jmp 0x49713e
call fcn.00493e60
mov ecx, dword [ebp - 0x70]
push 0xfe
push 1
mov ax, word [ecx + 0x808]
mov ecx, edi
mov word [esi + 0x1a0], ax
call fcn.00415540
mov eax, dword [esi + 0x1a8]
cmp eax, dword [esi + 0xb4]
jle 0x496dea
mov ecx, esi
call fcn.00461710
mov eax, dword [esi + 0x490]
add eax, dword [esi + 0x1b4]
add eax, dword [esi + 0xcc]
cmp eax, dword [esi + 0x230]
jl 0x49713b
mov eax, dword [esi + 0x228]
mov ecx, esi
mov dword [esi + 0x1b0], eax
call fcn.00461710
jmp 0x49713b
call fcn.00493e60
push 0xfe
push 1
mov ecx, edi
call fcn.00415540
jmp 0x49713b
push dword [ebp - 0x80]
lea eax, [ebp - 0x20]
mov ecx, esi
push dword [ebp + 0xc]
push eax
call fcn.004928d0
lea eax, [ebp - 0x18]
mov dword [esi + 0x1fc], 1
push eax
mov ecx, esi
call fcn.00498dd0
push dword [ebp - 0x80]
mov ecx, esi
push ebx
call fcn.004911c0
test eax, eax
je 0x496e83
mov eax, dword [ebp + 0x14]
sub dword [esi + 0x300], eax
mov eax, 1
mov dword [ebp - 0x6c], eax
jmp 0x49713e
mov ebx, dword [ebp - 0x70]
mov ecx, esi
push 0
movzx eax, word [ebx + 0x808]
mov word [esi + 0x1a0], ax
lea eax, [ebp - 0x18]
push eax
call fcn.00491990
mov ecx, esi
call fcn.00497d30
movzx eax, word [esi + 0x976]
mov ecx, edi
xor ax, word [ebp - 0x18]
movzx eax, ax
push eax
push 1
call fcn.00415540
mov eax, dword [ebp - 0x90]
mov ecx, dword [esi + 0x1b0]
add eax, ecx
mov dword [esi + 0x204], 1
cmp eax, dword [esi + 0x22c]
jl 0x4970a5
mov ecx, dword [esi + 0xcc]
mov eax, dword [esi + 0x1b4]
mov edx, dword [esi + 0x490]
lea eax, [eax + ecx*2]
add eax, edx
cmp eax, dword [esi + 0x230]
jl 0x497053
mov eax, dword [esi + 0x228]
mov ebx, dword [ebp - 0x88]
mov dword [esi + 0x1b0], eax
lea eax, [ecx + edx]
mov ecx, dword [esi + 0x224]
imul eax, ebx
sub ecx, eax
mov dword [esi + 0x1b4], ecx
cmp ecx, edx
jg 0x496f3d
mov ecx, esi
call fcn.00461710
jmp 0x49713b
mov eax, dword [esi + 0xa64]
push 0
push 0
mov eax, dword [eax + 0x188]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc4]
mov ecx, esi
call fcn.00497cf0
mov dword [esi + 0x1a4], 0
mov dword [esi + 0x1a8], 0
cmp ebx, 1
jne 0x496ff1
mov eax, dword [ebp - 0x84]
xor ecx, ecx
add eax, dword [esi + 0x1c8]
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x84], eax
test ebx, ebx
jle 0x496fda
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x38]
nop word [eax + eax]
cmp edx, 8
lea eax, [ebp - 0x38]
mov edx, 0xfe
cmovae eax, edi
cmp word [eax + ecx*2], dx
mov edx, dword [ebp - 0x24]
jne 0x496fcf
cmp edx, 8
lea eax, [ebp - 0x38]
mov edx, 0xa
cmovae eax, edi
mov word [eax + ecx*2], dx
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x38]
inc ecx
cmp ecx, ebx
jl 0x496fa0
lea edi, [esi + 0x1b8]
push dword [ebp - 0x74]
lea ecx, [ebp - 0x38]
call fcn.0041efd0
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x88]
mov dword [ebp - 0x7c], eax
inc ebx
mov ecx, edi
mov dword [ebp - 0x88], ebx
call fcn.00499150
mov eax, dword [esi + 0x980]
lea edx, [ebp - 0x78]
push edx
push 0x662ce8
mov eax, dword [eax + 0x48]
push eax
mov ecx, dword [eax]
call dword [ecx]
push dword [esi + 0x230]
mov ecx, dword [esi + 0xa64]
push dword [esi + 0x22c]
push dword [ebp - 0x78]
call fcn.00442ea0
mov eax, dword [ebp - 0x78]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi + 0xa64]
mov eax, dword [eax + 0x188]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc0]
jmp 0x49713b
mov ecx, esi
call fcn.00493e60
mov eax, dword [esi + 0x1a4]
mov ecx, dword [ebp - 0x7c]
add eax, 2
cmp ecx, eax
jg 0x497091
push dword [esi + 0x490]
mov ecx, esi
push dword [esi + 0x48c]
call fcn.004961f0
xor eax, eax
mov dword [esi + 0x1a4], 0
mov dword [ebp - 0x6c], eax
jmp 0x49713e
inc dword [esi + 0x1a4]
mov eax, dword [esi + 0x1a4]
inc eax
cmp ecx, eax
jmp 0x496bd5
mov eax, dword [esi + 0x1a4]
inc eax
cmp dword [ebp - 0x7c], eax
jg 0x497121
mov eax, dword [esi + 0xc8]
push dword [esi + 0x490]
add eax, ecx
mov ecx, esi
add eax, dword [esi + 0x48c]
push dword [esi + 0x48c]
mov dword [esi + 0x1b0], eax
call fcn.004961f0
mov eax, dword [esi + 0x1a8]
cmp eax, dword [esi + 0xb4]
jle 0x4970ed
mov ecx, esi
call fcn.00461710
mov ax, word [ebx + 0x808]
mov ecx, edi
push 0xfe
push 1
mov word [esi + 0x1a0], ax
call fcn.00415540
mov ecx, esi
mov dword [esi + 0x1a4], 0
call fcn.00493e60
xor eax, eax
mov dword [ebp - 0x6c], eax
jmp 0x49713e
mov eax, dword [esi + 0x48c]
add eax, dword [esi + 0xc8]
inc dword [esi + 0x1a4]
add eax, ecx
mov dword [esi + 0x1b0], eax
mov eax, dword [ebp - 0x6c]
cmp dword [esi + 0x564], 0
mov ebx, dword [ebp - 0x74]
jne 0x496940
cmp dword [esi + 0x560], 0
jne 0x496940
cmp dword [esi + 0x56c], 0
je 0x496940
mov eax, dword [esi + 0xa64]
push 0
push 0
mov eax, dword [eax + 0x188]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc4]
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x4968c7
jmp 0x4966ec
mov eax, dword [esi + 0xa64]
push 0
mov eax, dword [eax + 0x188]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc4]
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x4971bd
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.00415820
xor eax, eax
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x28], 0
cmp eax, 8
jb 0x4971e6
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.00415820
mov ecx, dword [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], ax
cmp ecx, 8
jb 0x49720f
inc ecx
push ecx
push dword [ebp - 0x68]
lea ecx, [ebp - 0x68]
call fcn.00415820
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005e0710
mov esp, ebp
pop ebp
ret 0x18