Function at 0x401b50
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4b3fbd
call fcn.004b3bc8
sub esp, 0xe4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x48], edx
mov edi, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x28], 0x4e2db58
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], bl
je 0x401b8c
push ebx
call dword [0xaa1350]
mov dword [ebp - 0x28], 0x1a
mov esi, 0xa9e1d8
cmp dword [ebp - 0x28], 0xffffffe8
jg 0x402157
movdqa xmm0, xmmword [0xa8e120]
movdqu xmmword [ebp - 0xb0], xmm0
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
push dword [ebp - 0x48]
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xb0]
push eax
push ebx
lea ecx, [ebp - 0x54]
call fcn.0040d25b
mov dword [ebp - 0x24], 0x90be4438
mov dword [ebp - 0x3c], 0xac30bca0
mov dword [ebp - 0x38], 0x221494fb
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x24], 3
jg 0x401cf7
mov dword [ebp - 0x14], 0x4b3
cmp dword [ebp - 0x14], 0x5e7
jle 0x401c6c
mov eax, ebx
mov dword [ebp - 0x1c], ebx
mov esi, eax
mov dword [ebp - 0x2c], 0x361
mov edi, ebx
lea eax, [esi + edi]
cdq
push edx
push eax
lea ecx, [ebp - 0xd8]
call fcn.004019f8
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x401c32
mov eax, dword [eax]
push eax
call fcn.0049e427
pop ecx
push ebx
push 1
lea ecx, [ebp - 0xd8]
call fcn.0040a7b5
inc edi
cmp edi, 0x563c
jl 0x401c17
dec esi
dec dword [ebp - 0x2c]
jne 0x401c15
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, 0xc82
jl 0x401c0c
mov esi, 0xa9e1d8
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x14], 0x11d
jge 0x401c8a
push 0xa7c210
call fcn.0049e427
pop ecx
or dword [ebp - 4], 0xffffffff
jmp 0x401cbb
mov dword [ebp - 0x1c], 3
cmp dword [ebp - 0x1c], ebx
jl 0x401cef
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x401cea
push 0x58
push ebx
push ebx
push 0x2582
push 0x1203
push ebx
push 0x1bdf
call dword [0xaa107c]
dec dword [ebp - 0x1c]
jns 0x401cc7
inc dword [ebp - 0x24]
jmp 0x401bed
mov dword [ebp - 0x24], 0xffffffef
cmp dword [ebp - 0x24], 0x18
jne 0x402147
mov dword [ebp - 0x14], 0x6173948b
push 2
lea ecx, [ebp - 0x60]
call fcn.0040a207
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x14], 0x1c59
cmp dword [ebp - 0x14], 0x1f9a
jle 0x401d7b
push ebx
push ebx
push ebx
call dword [0xaa104c]
mov edi, ebx
mov dword [ebp - 0x1c], ebx
mov eax, ebx
mov dword [ebp - 0x2c], ebx
add eax, edi
mov dword [ebp - 0x20], eax
mov ebx, 0x7727
mov edi, eax
mov eax, edi
cdq
push edx
push eax
mov ecx, esi
call fcn.00409fdf
dec edi
dec ebx
jne 0x401d4b
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, 0x3376
mov edi, dword [ebp - 0x1c]
jl 0x401d3f
inc edi
mov dword [ebp - 0x1c], edi
cmp edi, 0x46dc
jl 0x401d3a
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 2
cmp dword [ebp - 0x14], 0x18a7
jge 0x401d9e
mov edx, 0xa7c280
mov ecx, esi
call fcn.0040c865
or dword [ebp - 4], 0xffffffff
jmp 0x401dcf
mov dword [ebp - 0x14], 0x356c
cmp dword [ebp - 0x14], 0x377b
jle 0x401e2f
mov edi, ebx
mov dword [ebp - 0x1c], ebx
mov eax, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], ebx
mov ebx, edi
mov ecx, eax
shl ebx, cl
mov edi, dword [ebp - 0x20]
mov eax, ebx
or eax, edi
cdq
push edx
push eax
mov ecx, esi
call fcn.00409fdf
inc edi
cmp edi, 0x25a5
jl 0x401df5
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, 0x3271
push 0
pop ebx
mov edi, dword [ebp - 0x1c]
jl 0x401de9
inc edi
mov dword [ebp - 0x1c], edi
cmp edi, 0x1028
jl 0x401de4
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x1c], ebx
jmp 0x401e44
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x60]
mov dword [eax + ecx*4], 0xde360abe
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 2
jl 0x401e34
mov dword [ebp - 4], 4
cmp dword [ebp - 0x14], 0x3486
jge 0x401e66
mov edx, 0xa7c2e0
mov ecx, esi
call fcn.0040c865
or dword [ebp - 4], 0xffffffff
jmp 0x401e97
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x14], 0x16
jl 0x40201a
mov dword [ebp - 0x1c], 0x74a52027
mov dword [ebp - 0x20], 0x5d9f
cmp dword [ebp - 0x20], 0x6139
jle 0x401f01
mov edx, ebx
mov dword [ebp - 0x2c], ebx
mov edi, ebx
mov ecx, ebx
mov dword [ebp - 0x34], ebx
mov eax, edi
shl eax, cl
xor eax, edx
cdq
push edx
push eax
mov ecx, esi
call fcn.00409fdf
mov ecx, dword [ebp - 0x34]
inc ecx
mov dword [ebp - 0x34], ecx
cmp ecx, 0x7f99
mov edx, dword [ebp - 0x2c]
jl 0x401ec7
inc edi
cmp edi, 0x3ccd
jl 0x401ec2
inc edx
mov dword [ebp - 0x2c], edx
cmp edx, 0x6550
jl 0x401ec0
mov edi, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], ebx
je 0x401fc0
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
xor ecx, ecx
test eax, eax
setle cl
mov eax, dword [ebp - 0x24]
xor edx, edx
cmp ecx, eax
setg dl
mov eax, dword [ebp - 0x14]
imul eax, edx
neg eax
sbb eax, eax
neg eax
imul ecx, eax, 0xbab1
mov eax, dword [ebp - 0x60]
mov dword [eax], ecx
test ecx, ecx
jne 0x401f63
mov eax, dword [ebp - 0x54]
cmp dword [eax + 8], ebx
jne 0x401f63
mov ecx, ebx
jmp 0x401f66
xor ecx, ecx
inc ecx
xor eax, eax
cmp ecx, 1
sete al
cmp eax, 1
sbb edx, edx
neg edx
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
cmp edx, eax
setle cl
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x28]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
imul ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
xor edx, edx
cmp ecx, eax
setg dl
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
cmp edx, eax
setle cl
imul eax, ecx, 0x5558
add eax, 0xad3f
cmp eax, dword [ebp - 0x28]
jg 0x401fc0
xor eax, eax
inc eax
jmp 0x401fc2
mov eax, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 6
cmp dword [ebp - 0x20], 0x5ba3
jge 0x401fe1
mov edx, 0xa7c364
mov ecx, esi
call fcn.0040c865
or dword [ebp - 4], 0xffffffff
jmp 0x402012
inc dword [ebp - 0x14]
jmp 0x401e9a
mov dword [ebp - 0x34], 0x1ef1
cmp dword [ebp - 0x34], 0x1f3d
jle 0x40206f
push ebx
push 0x196e
push 0x1f99
push 0x1c7f
call dword [0xaa1090]
mov edi, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], edi
mov ebx, 0x5f14
mov eax, edi
cdq
push edx
push eax
mov ecx, esi
call fcn.00409fdf
dec edi
dec ebx
jne 0x40204d
mov edi, dword [ebp - 0x20]
inc edi
mov dword [ebp - 0x20], edi
cmp edi, 0x8025
jl 0x402045
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [eax + 4]
neg ecx
sbb ecx, ecx
inc ecx
mov eax, dword [ebp - 0x38]
xor edx, edx
cmp ecx, eax
setg dl
mov eax, dword [ebp - 0x60]
add edx, dword [eax]
neg edx
mov eax, dword [ebp - 0x14]
xor ecx, ecx
cmp eax, edx
setne cl
xor eax, eax
cmp ecx, 0x7b3f
setl al
imul eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x40]
xor edx, edx
cmp dword [ebp - 0x20], eax
setl dl
xor ecx, ecx
mov eax, dword [ebp - 0x54]
cmp edx, dword [eax + 8]
setle cl
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov ecx, 0xccff5f9f
cmp ecx, eax
sbb ecx, ecx
inc ecx
mov eax, dword [ebp - 0x38]
xor edx, edx
cmp ecx, eax
setl dl
mov eax, dword [ebp - 0x40]
xor ecx, ecx
cmp edx, eax
setl cl
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 8
cmp dword [ebp - 0x34], 0x1bb3
jge 0x402106
mov edx, 0xa7c3a0
mov ecx, esi
call fcn.0040c865
or dword [ebp - 4], 0xffffffff
jmp 0x402137
lea ecx, [ebp - 0x60]
call fcn.0040a2d9
inc dword [ebp - 0x24]
jmp 0x401cfe
lea ecx, [ebp - 0x54]
call fcn.0040a2d9
dec dword [ebp - 0x28]
jmp 0x401b98
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x24], 0xb26bdde0
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x48], 0xffffffff
mov dword [ebp - 0x48], 0xffffffff
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x20], 0xffffffff
push 1
lea ecx, [ebp - 0x6c]
call fcn.0040a207
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x14], ebx
jmp 0x4021a3
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x78], 0x891023f1
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 3
jl 0x402195
mov dword [ebp - 0x14], ebx
jmp 0x4021be
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x6c]
mov dword [eax + ecx*4], 0xb643c8f4
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 1
jl 0x4021ae
mov dword [ebp - 0x24], 0xfffffff2
cmp dword [ebp - 0x24], 7
jge 0x40243c
push 3
lea ecx, [ebp - 0x90]
call fcn.0040a207
mov dword [ebp - 0x28], 0x348f4a8f
mov dword [ebp - 0xa0], 8
mov dword [ebp - 0x9c], 8
mov dword [ebp - 0x98], 8
mov dword [ebp - 0x94], 8
push 2
lea ecx, [ebp - 0x84]
call fcn.0040a207
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x3c], 0x6173
mov dword [ebp - 0x14], ebx
jmp 0x402240
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x90]
mov dword [eax + ecx*4], 0xfffffff9
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 3
jl 0x40222d
mov dword [ebp - 0x14], ebx
jmp 0x40225c
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0xc0], 0x35a12a2e
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 4
jl 0x40224b
mov dword [ebp - 0x14], ebx
jmp 0x402277
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x84]
or dword [eax + ecx*4], 0xffffffff
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jl 0x402267
cmp dword [ebp - 0x24], ebx
jne 0x40229a
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x78]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x38]
mov eax, dword [ebp - 0x48]
dec dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov eax, dword [ebp - 0x70]
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
inc ecx
sub ecx, eax
cmp ecx, dword [ebp - 0xb4]
jne 0x4022b7
cmp dword [ebp - 0x38], ebx
je 0x4022b7
xor ecx, ecx
inc ecx
jmp 0x4022b9
mov ecx, ebx
mov eax, dword [ebp - 0x24]
sub eax, ecx
neg eax
sbb eax, eax
inc eax
cmp eax, dword [ebp - 0x20]
jg 0x4022d1
cmp dword [ebp - 0x34], ebx
jne 0x4022d1
mov ecx, ebx
jmp 0x4022d4
xor ecx, ecx
inc ecx
mov eax, dword [ebp - 0x6c]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x84]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x6c]
imul ecx, dword [eax]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], ebx
je 0x4023fd
mov dword [ebp - 0x28], 0xffffffe4
cmp dword [ebp - 0x28], 7
jg 0x40241e
mov dword [ebp - 0x2c], 0x477a
cmp dword [ebp - 0x2c], 0x48c1
jle 0x402390
mov edi, ebx
mov dword [ebp - 0x3c], ebx
mov esi, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], edi
mov ecx, esi
mov esi, edi
shl esi, cl
mov edi, ebx
mov eax, esi
mov ecx, edi
sar eax, cl
cdq
push edx
push eax
lea ecx, [ebp - 0xf0]
call fcn.004019f8
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x40234e
mov eax, dword [eax]
push eax
call fcn.0049e427
pop ecx
push ebx
push 1
lea ecx, [ebp - 0xf0]
call fcn.0040a7b5
inc edi
cmp edi, 0x2ab6
jl 0x402330
mov esi, dword [ebp - 0x20]
inc esi
mov dword [ebp - 0x20], esi
cmp esi, 0x66e2
mov edi, dword [ebp - 0x3c]
jl 0x402322
inc edi
mov dword [ebp - 0x3c], edi
cmp edi, 0x7c41
jl 0x40231d
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x40]
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x4023ab
push ebx
push 0xe60
push 0x15bf
push ebx
call dword [0xaa1080]
mov dword [ebp - 4], 0xa
cmp dword [ebp - 0x2c], 0x45d1
jge 0x4023c6
push 0xa7c43c
call fcn.0049e427
pop ecx
or dword [ebp - 4], 0xffffffff
jmp 0x4023f5
inc dword [ebp - 0x28]
jmp 0x4022fe
mov dword [ebp - 0x28], ebx
jmp 0x402419
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x402416
push 0x249d
call dword [0xaa1518]
inc dword [ebp - 0x28]
cmp dword [ebp - 0x28], ebx
jle 0x402402
lea ecx, [ebp - 0x84]
call fcn.0040a2d9
lea ecx, [ebp - 0x90]
call fcn.0040a2d9
inc dword [ebp - 0x24]
jmp 0x4021cb
lea ecx, [ebp - 0x6c]
call fcn.0040a2d9
mov dword [edi], ebx
jmp 0x402455
mov ecx, dword [edi]
mov eax, dword [esi]
mov dword [eax + ecx*4], 0xca0e2c23
inc dword [edi]
cmp dword [edi], 4
jl 0x402448
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret