Function at 0x499516
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4b9a4b
call fcn.004b89b8
sub esp, 0xe0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x5c], ecx
xor esi, esi
inc esi
push esi
lea ecx, [ebp - 0x6c]
call fcn.004091ed
mov dword [ebp - 0x14], 0xb0b02971
mov dword [ebp - 0x1c], 0x732adaa2
push 4
lea ecx, [ebp - 0x90]
call fcn.004091ed
mov dword [ebp - 0x20], 0xfffffff8
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x34], 0x97911697
mov dword [ebp - 0x38], 0xe785
mov dword [ebp - 0x20], 0xfffffffd
xor ebx, ebx
mov dword [ebp - 0x14], ebx
jmp 0x499593
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x6c]
mov dword [eax + ecx*4], 0xe91a
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
jl 0x499583
mov dword [ebp - 0x14], ebx
jmp 0x4995ab
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x54], 0xfffffff7
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jl 0x49959d
mov dword [ebp - 0x14], ebx
jmp 0x4995c9
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x90]
mov dword [eax + ecx*4], 0x524
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 4
jl 0x4995b6
mov dword [ebp - 0x14], ebx
push 3
pop edi
jmp 0x4995e4
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0xd4], esi
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jl 0x4995d7
mov dword [ebp - 0x2c], 0x92d
cmp dword [ebp - 0x2c], 0x94d
jle 0x49969a
push 0x2034
push 0x1819
push 0x9a9
push 0x1ede
push 0x1385
push 0x1454
push 0x3b7
call dword [0xac30f4]
mov edi, ebx
mov dword [ebp - 0x14], ebx
mov ecx, ebx
mov dword [ebp - 0x18], ebx
mov eax, edi
cdq
idiv ecx
mov edi, edx
mov dword [ebp - 0x20], 0x50c2
mov eax, edi
cdq
push edx
push eax
lea ecx, [ebp - 0xec]
call fcn.00401a21
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x499658
mov eax, dword [eax]
push eax
call fcn.004a3217
pop ecx
push ebx
push esi
lea ecx, [ebp - 0xec]
call fcn.0040986d
inc edi
dec dword [ebp - 0x20]
jne 0x49963e
mov ecx, dword [ebp - 0x18]
inc ecx
mov dword [ebp - 0x18], ecx
cmp ecx, 0x1853
mov edi, dword [ebp - 0x14]
jl 0x499630
inc edi
mov dword [ebp - 0x14], edi
cmp edi, 0x1389
jl 0x49962b
push ebx
call dword [0xac304c]
push 3
pop edi
mov dword [ebp - 0x14], ebx
jmp 0x49974b
mov dword [ebp - 0x18], 0x6411d7fe
mov dword [ebp - 0x24], 0x1a6f3221
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x6c]
cmp dword [eax + ecx*4], ebx
jne 0x499730
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x18]
cmp dword [ecx + edx*4], eax
push 0
pop ecx
setl cl
mov eax, dword [ebp - 0x1c]
xor edx, edx
cmp ecx, eax
setle dl
add edx, 0x2d517a7f
neg edx
sbb edx, edx
inc edx
mov dword [ebp - 0x50], edx
lea eax, [edx + 6]
xor ecx, ecx
mov edx, dword [ebp - 0x90]
cmp eax, dword [edx + 0xc]
setge cl
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x50], 9
jne 0x49970b
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x34], ebx
je 0x499722
cmp dword [ebp - 0x38], ebx
je 0x499722
cmp dword [ebp - 0x20], ebx
mov eax, esi
jne 0x499724
mov eax, ebx
cmp eax, dword [ebp - 0x18]
jle 0x499730
cmp dword [edx + 0xc], ebx
mov ecx, ebx
je 0x499732
mov ecx, esi
xor eax, eax
cmp ecx, 0xf75d
setl al
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x24], ebx
jne 0x499754
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], ebx
jle 0x4996a2
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x2c], 0x7ef
jge 0x49976b
push 0xaaf5f0
call fcn.004a3217
pop ecx
or dword [ebp - 4], 0xffffffff
jmp 0x499797
mov edx, dword [ebp - 0x1c]
sub edx, 0xb6910c33
neg edx
sbb edx, edx
inc edx
mov eax, dword [ebp - 0x50]
xor ecx, ecx
cmp edx, eax
setge cl
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0x8af80453
lea ecx, [ebp - 0x90]
call fcn.004092bf
lea ecx, [ebp - 0x6c]
call fcn.004092bf
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], 0x265a
mov dword [ebp - 0x18], 0xffffffea
jmp 0x499808
mov dword [ebp - 0x24], 0xfffffffb
mov byte [ebp - 0x25], bl
cmp byte [ebp - 0x25], 0
je 0x499800
push ebx
push ebx
call dword [0xac3550]
cmp dword [ebp - 0x24], ebx
jne 0x49980e
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 8
jl 0x4997e8
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jle 0x499891
mov dword [ebp - 0x1c], 0xfffffffc
mov dword [ebp - 0x18], 0xce9d05ba
xorps xmm0, xmm0
movdqu xmmword [ebp - 0xc8], xmm0
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
push dword [ebp - 0x48]
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xc8]
push eax
push ebx
lea ecx, [ebp - 0x78]
call fcn.0040c180
mov dword [ebp - 0x1c], 0x7f825e7a
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x18], ebx
jmp 0x499877
mov dword [ebp - 0x1c], 9
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], edi
jle 0x499864
lea ecx, [ebp - 0x78]
call fcn.004092bf
lea ecx, [ebp - 0x30]
call fcn.004982b5
jmp 0x499d4e
mov dword [ebp - 0x14], 0x53606de7
mov dword [ebp - 0x1c], 0x3eb905d0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], 0x504ed09e
mov dword [ebp - 0x18], ebx
jmp 0x4998bb
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x58], ebx
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], esi
jl 0x4998b1
cmp dword [ebp - 0x14], ebx
jne 0x49990a
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
xor edx, edx
cmp ecx, eax
setg dl
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov ecx, 0xdbc1c234
sub ecx, eax
sub ecx, dword [ebp - 0x14]
neg ecx
sbb ecx, ecx
inc ecx
sub ecx, dword [ebp - 0x14]
sub ecx, 0x2a30
je 0x4998ff
cmp dword [ebp - 0x20], ebx
mov eax, esi
jne 0x499901
mov eax, ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x14], ebx
jne 0x499915
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x58], ebx
mov eax, dword [ebp - 0x14]
xor ecx, ecx
test eax, eax
sets cl
sub ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
xor edx, edx
cmp ecx, eax
setge dl
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
cmp eax, edx
setg cl
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x44], 0x5fb5
mov dword [ebp - 0x18], 0xf70ad6f2
push edi
lea ecx, [ebp - 0x84]
call fcn.004091ed
push 4
lea ecx, [ebp - 0x9c]
call fcn.004091ed
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x14], ebx
jmp 0x499984
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x84]
mov dword [eax + ecx*4], 0x89b5
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jl 0x499971
mov dword [ebp - 0x14], ebx
jmp 0x4999a1
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x9c]
mov dword [eax + ecx*4], 0xfffffffc
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 4
jl 0x49998e
inc dword [ebp - 0x18]
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x18], 2
jg 0x499bed
mov dword [ebp - 0x1c], 0x5851
cmp dword [ebp - 0x1c], 0x5941
jle 0x4999f1
mov edi, ebx
mov esi, ebx
mov eax, esi
or eax, edi
cdq
push edx
push eax
mov ecx, 0xac0918
call fcn.00408e98
inc esi
cmp esi, 0x7562
jl 0x4999cb
inc edi
cmp edi, 0x20f9
jl 0x4999c9
xor esi, esi
inc esi
mov dword [ebp - 0x14], 0x7c8748af
mov dword [ebp - 4], 2
cmp dword [ebp - 0x1c], 0x5803
jge 0x499a17
mov edx, 0xaaf60c
mov ecx, 0xac0918
call fcn.0040bb10
or dword [ebp - 4], 0xffffffff
jmp 0x499a40
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x34], 0xfffffffe
push 2
lea ecx, [ebp - 0xa8]
call fcn.004091ed
mov dword [ebp - 0x38], 0x2c51978e
mov dword [ebp - 0x14], ebx
jmp 0x499a76
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xa8]
mov dword [eax + ecx*4], 0xd1c58bdf
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jl 0x499a63
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x84]
mov eax, dword [ecx + eax*4]
mov dword [ecx + edx*4], eax
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x14], 2
jg 0x499bda
mov dword [ebp - 0x24], 0x5c6eff3d
mov dword [ebp - 0x24], 5
mov dword [ebp - 0x24], 0x9e843631
mov dword [ebp - 0x24], 0x8b78acc4
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x3c], 0x4309642e
mov dword [ebp - 0x1c], 0x70e4
cmp dword [ebp - 0x1c], 0x71d3
jle 0x499b1f
push ebx
push 0x246b
call dword [0xac34c4]
mov esi, ebx
mov edi, ebx
mov dword [ebp - 0x24], ebx
mov eax, ebx
xor eax, edi
or eax, esi
cdq
push edx
push eax
mov ecx, 0xac0918
call fcn.00408e98
inc ebx
cmp ebx, 0x4e9c
jl 0x499aeb
inc edi
cmp edi, 0x580f
push 0
pop ebx
jl 0x499ae8
inc esi
cmp esi, 0x4e3e
jl 0x499ae6
xor esi, esi
inc esi
inc dword [ebp - 0x2c]
mov dword [ebp - 4], 4
cmp dword [ebp - 0x1c], 0x6dcd
jge 0x499b41
mov edx, 0xaaf658
mov ecx, 0xac0918
call fcn.0040bb10
or dword [ebp - 4], 0xffffffff
jmp 0x499b6a
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp eax, 0x6f79b347
setge cl
mov eax, dword [ebp - 0x38]
xor edx, edx
cmp eax, ecx
setg dl
mov eax, dword [ebp - 0x14]
xor ecx, ecx
cmp edx, eax
setge cl
sub ecx, 0xcc0136ef
neg ecx
sbb ecx, ecx
inc ecx
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x34]
xor ecx, ecx
cmp eax, dword [ebp - 0x24]
setl cl
xor eax, eax
cmp ecx, 4
setne al
cmp eax, dword [ebp - 0x3c]
jg 0x499bbe
mov eax, dword [ebp - 0x9c]
cmp dword [eax + 4], ebx
mov edx, esi
jne 0x499bc0
mov edx, ebx
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + ecx*4]
imul eax, edx
mov dword [ebp - 0x24], eax
inc dword [ebp - 0x14]
jmp 0x499a91
lea ecx, [ebp - 0xa8]
call fcn.004092bf
inc dword [ebp - 0x18]
jmp 0x4999ad
lea ecx, [ebp - 0x9c]
call fcn.004092bf
lea ecx, [ebp - 0x84]
call fcn.004092bf
mov dword [ebp - 0x4c], 0xfffffff9
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x40]
call fcn.00498495
pop ecx
pop ecx
mov dword [ebp - 0x14], 9
mov dword [ebp - 0x1c], 0x34a938f7
mov dword [ebp - 0x18], ebx
jmp 0x499c40
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x60], 0xffffffff
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], esi
jl 0x499c32
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x14], ebx
jl 0x499c69
mov byte [ebp - 0x25], bl
cmp byte [ebp - 0x25], 0
je 0x499c64
push ebx
push ebx
push ebx
push 0xe12
call dword [0xac3084]
dec dword [ebp - 0x14]
jns 0x499c4d
mov dword [ebp - 0x14], 0x19
jmp 0x499d32
mov dword [ebp - 0x20], 0x27d2
mov dword [ebp - 0x1c], 0x906d8bc0
mov dword [ebp - 0x1c], 5
mov dword [ebp - 0x18], ebx
jmp 0x499ca0
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0xb8], 0xfffffffd
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 4
jl 0x499c8f
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], ebx
je 0x499d0c
cmp dword [ebp - 0x14], ebx
jne 0x499cf7
mov dword [ebp - 0x60], 0xa4cc
mov eax, dword [ebp - 0x14]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
cmp eax, 0x7d0b0a35
setle cl
mov eax, dword [ebp - 0x14]
xor edx, edx
cmp ecx, eax
setne dl
mov eax, dword [ebp - 0x20]
xor ecx, ecx
cmp edx, eax
setne cl
cmp ecx, dword [ebp - 0x14]
mov ecx, ebx
jge 0x499cf9
mov ecx, esi
mov eax, dword [ebp - 0x14]
sub ecx, eax
mov eax, dword [ebp - 0x14]
add eax, 0x2a284868
add eax, ecx
mov eax, esi
je 0x499d0e
mov eax, ebx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0xb0]
mov eax, dword [ebp - 0x1c]
xor edx, edx
cmp eax, ecx
setl dl
xor eax, eax
cmp edx, 6
setle al
mov dword [ebp - 0xb8], eax
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xf
jne 0x499c75
lea eax, [ebp - 0x40]
push eax
push ecx
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x44]
call fcn.00498b20
pop ecx
pop ecx
mov eax, dword [ebp - 0x48]
cdq
mov ecx, 0x3e8
idiv ecx
mov esi, edx
mov edi, eax
mov ecx, dword [ebp - 0x5c]
call fcn.0049823f
add eax, esi
add eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret