Function at 0x416150
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x15c0
call fcn.00416d20
mov dword [esp + 0xc], ecx
mov ebx, dword [esp + 0x15d8]
mov ecx, dword [esp + 0x15d4]
pxor xmm0, xmm0
movdqu xmmword [esp + 0x3c], xmm0
movdqu xmmword [esp + 0x4c], xmm0
movdqu xmmword [esp + 0x5c], xmm0
movdqu xmmword [esp + 0x6c], xmm0
movdqu xmmword [esp + 0x7c], xmm0
movdqu xmmword [esp + 0x8c], xmm0
movdqu xmmword [esp + 0x9c], xmm0
movdqu xmmword [esp + 0xac], xmm0
mov dword [esp + 0xbc], 0
cmp dword [esp + 0x15dc], 0
mov dword [esp + 0x18], edx
je 0x41623e
test ecx, ecx
jle 0x416b5f
xor eax, eax
cmp ecx, 1
je 0x416208
and ecx, 0xfffffffe
mov eax, dword [esp + 0x18]
lea eax, [eax + eax*8]
shl eax, 5
mov edx, dword [esp + 0xc]
add edx, eax
add edx, 0x8f13
xor eax, eax
movzx esi, byte [edx + eax - 1]
inc dword [esp + esi*4 + 0x3c]
movzx esi, byte [edx + eax]
inc dword [esp + esi*4 + 0x3c]
add eax, 2
cmp ecx, eax
jne 0x4161f0
mov ecx, dword [esp + 0x15d4]
test cl, 1
je 0x416b5f
mov ecx, dword [esp + 0x18]
lea ecx, [ecx + ecx*8]
shl ecx, 5
add ecx, dword [esp + 0xc]
movzx eax, byte [eax + ecx + 0x8f12]
mov ecx, dword [esp + 0x15d4]
inc dword [esp + eax*4 + 0x3c]
jmp 0x416b5f
lea eax, [edx + edx*8]
mov dword [esp + 0x10], eax
mov ebp, eax
shl ebp, 6
test ecx, ecx
mov dword [esp + 0x38], ebp
jle 0x41633b
cmp ecx, 1
jne 0x416601
xor eax, eax
xor edi, edi
mov ecx, dword [esp + 0x15d4]
test cl, 1
je 0x416295
mov ecx, dword [esp + 0xc]
add ecx, ebp
add ecx, 0x8192
movzx ecx, word [ecx + eax*2]
test cx, cx
je 0x416295
mov word [esp + edi*4 + 0x4c0], cx
mov word [esp + edi*4 + 0x4c2], ax
inc edi
lea eax, [esp + 0x940]
push 0x800
push 0
push eax
call fcn.00416ef0
add esp, 0xc
test edi, edi
sete byte [esp + 0xb]
je 0x416352
mov ecx, edi
xor eax, eax
cmp edi, 1
je 0x41630f
mov ecx, edi
and ecx, 0xfffffffe
xor eax, eax
nop dword [eax]
movzx edx, word [esp + eax*4 + 0x4c0]
movzx esi, dl
inc dword [esp + esi*4 + 0x940]
shr edx, 8
inc dword [esp + edx*4 + 0xd40]
movzx edx, word [esp + eax*4 + 0x4c4]
movzx esi, dl
inc dword [esp + esi*4 + 0x940]
shr edx, 8
inc dword [esp + edx*4 + 0xd40]
add eax, 2
cmp ecx, eax
jne 0x4162d0
mov edx, edi
test dl, 1
je 0x416332
movzx eax, word [esp + eax*4 + 0x4c0]
movzx ecx, al
inc dword [esp + ecx*4 + 0x940]
shr eax, 8
inc dword [esp + eax*4 + 0xd40]
mov eax, dword [esp + 0xd40]
jmp 0x41635b
lea eax, [esp + 0x940]
push 0x800
push 0
push eax
call fcn.00416ef0
add esp, 0xc
xor edx, edx
mov byte [esp + 0xb], 1
xor eax, eax
xor ecx, ecx
cmp eax, edx
sete cl
mov ebp, 2
sub ebp, ecx
lea eax, [edx - 1]
mov dword [esp + 0x1c], eax
mov dword [esp + 4], edx
and edx, 0xfffffffe
mov dword [esp + 0x14], edx
xor edi, edi
lea eax, [esp + 0x4c0]
mov dword [esp], eax
lea eax, [esp + 0x1140]
lea esi, [esp + 0x940]
xor ecx, ecx
mov dword [esp + 0x30], ebp
jmp 0x4163b6
inc edi
add ecx, 8
add esi, 0x400
mov eax, dword [esp + 0x20]
cmp edi, ebp
je 0x4164e4
mov edx, dword [esp]
mov dword [esp + 0x20], edx
mov dword [esp], eax
mov edx, 3
xor eax, eax
nop word [eax + eax]
mov dword [esp + edx*4 + 0xb4], eax
add eax, dword [esi + edx*4 - 0xc]
mov dword [esp + edx*4 + 0xb8], eax
add eax, dword [esi + edx*4 - 8]
mov dword [esp + edx*4 + 0xbc], eax
add eax, dword [esi + edx*4 - 4]
mov dword [esp + edx*4 + 0xc0], eax
add eax, dword [esi + edx*4]
add edx, 4
cmp edx, 0x103
jne 0x4163d0
cmp byte [esp + 0xb], 0
jne 0x4163a0
mov dword [esp + 0x34], edi
cmp dword [esp + 0x1c], 0
je 0x41648b
xor edx, edx
mov ebp, dword [esp]
mov ebx, dword [esp + 0x20]
nop word cs:[eax + eax]
movzx eax, word [ebx + edx*4]
shr eax, cl
movzx eax, al
mov edi, dword [esp + eax*4 + 0xc0]
lea ebx, [edi + 1]
mov dword [esp + eax*4 + 0xc0], ebx
mov eax, dword [esp + 0x20]
mov eax, dword [eax + edx*4]
mov dword [ebp + edi*4], eax
mov eax, dword [esp + 0x20]
movzx eax, word [eax + edx*4 + 4]
shr eax, cl
movzx eax, al
mov edi, dword [esp + eax*4 + 0xc0]
lea ebx, [edi + 1]
mov dword [esp + eax*4 + 0xc0], ebx
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx + edx*4 + 4]
mov dword [ebp + edi*4], eax
add edx, 2
cmp dword [esp + 0x14], edx
jne 0x416430
jmp 0x41648d
xor edx, edx
test byte [esp + 4], 1
mov ebx, dword [esp + 0x15d8]
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
je 0x4163a0
mov ebp, dword [esp + 0x20]
movzx eax, word [ebp + edx*4]
shr eax, cl
movzx eax, al
mov edi, dword [esp + eax*4 + 0xc0]
lea ebx, [edi + 1]
mov dword [esp + eax*4 + 0xc0], ebx
mov ebx, dword [esp + 0x15d8]
mov eax, dword [ebp + edx*4]
mov ebp, dword [esp + 0x30]
mov edx, dword [esp]
mov dword [edx + edi*4], eax
mov edi, dword [esp + 0x34]
jmp 0x4163a0
cmp dword [esp + 4], 0
mov ebp, dword [esp + 0x10]
je 0x416a70
mov edx, dword [esp + 4]
cmp edx, 1
jne 0x416509
mov eax, dword [esp]
mov word [eax], 1
jmp 0x41683d
mov ecx, dword [esp]
movzx eax, word [ecx + 4]
add word [ecx], ax
cmp dword [esp + 0x1c], 2
jl 0x416665
mov eax, 2
mov ecx, 2
sub ecx, edx
mov dword [esp + 0x20], ecx
xor ebp, ebp
mov esi, 1
jmp 0x41657d
mov ecx, dword [esp]
movzx edx, word [ecx + ebp*4]
movzx edi, word [ecx + esi*4]
mov ebx, edi
and ebx, edx
xor edi, edx
lea edx, [edi + ebx*2]
mov word [ecx + esi*4], dx
mov edx, ebp
mov word [ecx + ebp*4], si
and ebp, 1
xor edx, 1
lea ebp, [edx + ebp*2]
mov ecx, dword [esp + 0x20]
lea edx, [ecx + esi]
inc edx
inc esi
cmp edx, 1
mov edx, dword [esp + 4]
je 0x416685
cmp eax, edx
jge 0x4165b0
mov ecx, dword [esp]
movzx edx, word [ecx + eax*4]
movzx edi, word [ecx + ebp*4]
cmp di, dx
jb 0x4165b7
mov edi, eax
and edi, 1
xor eax, 1
lea eax, [eax + edi*2]
mov word [ecx + esi*4], dx
jmp 0x4165c0
mov ecx, dword [esp]
movzx edi, word [ecx + ebp*4]
mov word [ecx + esi*4], di
mov word [ecx + ebp*4], si
inc ebp
mov edx, dword [esp + 4]
cmp eax, edx
jge 0x416540
cmp ebp, esi
jge 0x4165f0
mov ecx, dword [esp]
movzx edx, word [ecx + ebp*4]
movzx edi, word [ecx + eax*4]
cmp dx, di
jb 0x416547
jmp 0x4165f7
mov ecx, dword [esp]
movzx edi, word [ecx + eax*4]
inc eax
add word [ecx + esi*4], di
jmp 0x416567
and ecx, 0xfffffffe
mov eax, dword [esp + 0xc]
lea edx, [eax + ebp]
add edx, 0x8194
xor eax, eax
xor edi, edi
jmp 0x41662b
add eax, 2
cmp ecx, eax
je 0x416263
movzx esi, word [edx + eax*2 - 2]
test si, si
je 0x416646
mov word [esp + edi*4 + 0x4c0], si
mov word [esp + edi*4 + 0x4c2], ax
inc edi
movzx esi, word [edx + eax*2]
test si, si
je 0x416620
mov word [esp + edi*4 + 0x4c0], si
lea esi, [eax + 1]
mov word [esp + edi*4 + 0x4c2], si
inc edi
jmp 0x416620
mov eax, edx
or eax, 0x3ffffffd
mov ecx, edx
and ecx, 0x3ffffffd
add ecx, eax
mov eax, dword [esp]
mov word [eax + ecx*4 + 4], 0
jmp 0x416745
mov eax, edx
or eax, 0x3ffffffd
mov ecx, edx
and ecx, 0x3ffffffd
add ecx, eax
mov edi, dword [esp]
mov word [edi + ecx*4 + 4], 0
cmp edx, 3
mov ebp, dword [esp + 0x10]
jl 0x416745
lea ecx, [edx - 3]
add edx, 2
mov eax, ecx
and edx, 3
je 0x4166d1
mov eax, ecx
nop dword [eax]
movzx esi, word [edi + eax*4]
movzx esi, word [edi + esi*4]
inc esi
mov word [edi + eax*4], si
dec eax
dec edx
jne 0x4166c0
cmp ecx, 3
mov edx, dword [esp + 4]
jb 0x416745
inc eax
nop dword [eax + eax]
mov ecx, dword [esp]
movzx ecx, word [ecx + eax*4 - 4]
mov esi, dword [esp]
movzx ecx, word [esi + ecx*4]
inc ecx
mov esi, dword [esp]
mov word [esi + eax*4 - 4], cx
mov ecx, dword [esp]
movzx ecx, word [ecx + eax*4 - 8]
mov esi, dword [esp]
movzx ecx, word [esi + ecx*4]
inc ecx
mov esi, dword [esp]
mov word [esi + eax*4 - 8], cx
mov ecx, dword [esp]
movzx ecx, word [ecx + eax*4 - 0xc]
mov esi, dword [esp]
movzx ecx, word [esi + ecx*4]
inc ecx
mov esi, dword [esp]
mov word [esi + eax*4 - 0xc], cx
mov ecx, dword [esp]
movzx ecx, word [ecx + eax*4 - 0x10]
mov esi, dword [esp]
movzx ecx, word [esi + ecx*4]
inc ecx
mov esi, dword [esp]
mov word [esi + eax*4 - 0x10], cx
add eax, 0xfffffffc
jne 0x4166e0
lea eax, [edx - 2]
mov ecx, edx
xor ecx, 0xfffffffe
mov edx, dword [esp + 0x14]
lea ecx, [ecx + edx*2]
inc ecx
xor edx, edx
mov esi, 1
jmp 0x416775
mov ebx, edi
inc edx
lea esi, [ebx + ebx]
test ebx, ebx
mov ebx, dword [esp + 0x15d8]
jle 0x416832
test eax, eax
js 0x4167a0
lea ebx, [eax + 1]
xor ebp, ebp
nop
mov edi, dword [esp]
movzx edi, word [edi + eax*4]
cmp edx, edi
jne 0x4167b0
inc ebp
add eax, 0xffffffff
jb 0x416780
mov eax, 0xffffffff
mov ebp, dword [esp + 0x10]
mov edi, ebx
jmp 0x4167b6
xor edi, edi
jmp 0x4167b6
mov edi, ebp
mov ebp, dword [esp + 0x10]
mov ebx, esi
sub ebx, edi
jle 0x416760
mov dword [esp + 0x20], edi
not edi
add edi, esi
and ebx, 3
je 0x4167f7
mov dword [esp + 0x14], edi
mov edi, dword [esp]
lea edi, [edi + ecx*4]
xor ebp, ebp
nop word cs:[eax + eax]
mov word [edi], dx
inc ebp
add edi, 0xfffffffc
cmp ebx, ebp
jne 0x4167e0
sub esi, ebp
sub ecx, ebp
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
cmp edi, 3
mov edi, dword [esp]
mov ebx, dword [esp + 0x20]
jb 0x416762
nop word [eax + eax]
mov word [edi + ecx*4], dx
mov word [edi + ecx*4 - 4], dx
mov word [edi + ecx*4 - 8], dx
mov word [edi + ecx*4 - 0xc], dx
add esi, 0xfffffffc
add ecx, 0xfffffffc
cmp esi, ebx
jg 0x416810
jmp 0x416762
cmp dword [esp + 4], 0
jle 0x416a70
mov eax, dword [esp + 4]
and eax, 3
xor ecx, ecx
cmp dword [esp + 0x1c], 3
mov edi, dword [esp]
jb 0x41688a
mov edx, dword [esp + 4]
and edx, 0xfffffffc
xor ecx, ecx
nop dword [eax]
movzx esi, word [edi + ecx*4]
inc dword [esp + esi*4 + 0x3c]
movzx esi, word [edi + ecx*4 + 4]
inc dword [esp + esi*4 + 0x3c]
movzx esi, word [edi + ecx*4 + 8]
inc dword [esp + esi*4 + 0x3c]
movzx esi, word [edi + ecx*4 + 0xc]
inc dword [esp + esi*4 + 0x3c]
add ecx, 4
cmp edx, ecx
jne 0x416860
test eax, eax
je 0x4168ad
mov edx, dword [esp]
lea ecx, [edx + ecx*4]
xor edx, edx
nop word cs:[eax + eax]
movzx esi, word [ecx + edx*4]
inc dword [esp + esi*4 + 0x3c]
inc edx
cmp eax, edx
jne 0x4168a0
cmp dword [esp + 4], 2
jl 0x416a70
cmp ebx, 0x1f
jg 0x416920
mov eax, dword [esp + ebx*4 + 0x3c]
mov edx, ebx
neg edx
mov ecx, ebx
and edx, 3
je 0x4168dc
nop dword [eax]
add eax, dword [esp + ecx*4 + 0x40]
inc ecx
mov dword [esp + ebx*4 + 0x3c], eax
dec edx
jne 0x4168d0
lea edx, [ebx - 0x1d]
cmp edx, 3
jb 0x416918
nop word cs:[eax + eax]
add eax, dword [esp + ecx*4 + 0x40]
mov dword [esp + ebx*4 + 0x3c], eax
add eax, dword [esp + ecx*4 + 0x44]
mov dword [esp + ebx*4 + 0x3c], eax
add eax, dword [esp + ecx*4 + 0x48]
mov dword [esp + ebx*4 + 0x3c], eax
add eax, dword [esp + ecx*4 + 0x4c]
add ecx, 4
mov dword [esp + ebx*4 + 0x3c], eax
cmp ecx, 0x20
jne 0x4168f0
test ebx, ebx
jle 0x416cdd
cmp ebx, 1
mov ecx, ebx
adc ecx, 0xffffffff
inc ecx
xor edx, edx
mov eax, ebx
cmp ecx, 8
jb 0x416a43
mov edi, ecx
and edi, 0xfffffff8
mov eax, ebx
sub eax, edi
movd xmm0, ebx
pshufd xmm0, xmm0, 0
movdqa xmm1, xmmword [0x455900]
movdqu xmmword [esp + 0x20], xmm0
paddd xmm1, xmm0
mov edx, edi
neg edx
lea ebp, [esp + ebx*4]
add ebp, 0x30
pxor xmm2, xmm2
xor esi, esi
movdqa xmm5, xmmword [0x455920]
pxor xmm4, xmm4
nop word cs:[eax + eax]
movdqu xmm6, xmmword [ebp + esi*4]
pshufd xmm3, xmm6, 0x1b
movdqu xmm0, xmmword [esp + 0x20]
psubd xmm0, xmm1
movdqa xmm7, xmm0
pslld xmm0, 0x17
paddd xmm0, xmm5
cvttps2dq xmm0, xmm0
pmuludq xmm3, xmm0
pshufd xmm6, xmm6, 0x4e
pshufd xmm0, xmm0, 0xf5
pmuludq xmm0, xmm6
pshufd xmm3, xmm3, 0xe8
pshufd xmm0, xmm0, 0xe8
punpckldq xmm3, xmm0
movdqu xmm0, xmmword [ebp + esi*4 - 0x10]
paddd xmm2, xmm3
pshufd xmm3, xmm0, 0x1b
psubd xmm7, xmmword [0x455910]
pslld xmm7, 0x17
paddd xmm7, xmm5
cvttps2dq xmm6, xmm7
pmuludq xmm3, xmm6
pshufd xmm0, xmm0, 0x4e
pshufd xmm6, xmm6, 0xf5
pmuludq xmm6, xmm0
pshufd xmm0, xmm3, 0xe8
pshufd xmm3, xmm6, 0xe8
punpckldq xmm0, xmm3
paddd xmm4, xmm0
paddd xmm1, xmmword [0x455930]
add esi, 0xfffffff8
cmp edx, esi
jne 0x416980
paddd xmm4, xmm2
pshufd xmm0, xmm4, 0xee
paddd xmm0, xmm4
pshufd xmm1, xmm0, 0x55
paddd xmm1, xmm0
movd edx, xmm1
cmp ecx, edi
mov ebp, dword [esp + 0x10]
je 0x416a5f
mov ecx, ebx
sub ecx, eax
inc eax
nop dword [eax + eax]
mov esi, dword [esp + eax*4 + 0x38]
shl esi, cl
add edx, esi
dec eax
inc ecx
cmp eax, 1
ja 0x416a50
mov eax, 1
mov ecx, ebx
shl eax, cl
cmp edx, eax
jne 0x416ce8
shl ebp, 5
mov esi, dword [esp + 0xc]
lea eax, [esi + ebp]
add eax, 0x8f12
push 0x120
push 0
push eax
call fcn.00416ef0
add esp, 0xc
mov eax, dword [esp + 0x38]
add eax, esi
add eax, 0x8852
push 0x240
push 0
push eax
call fcn.00416ef0
add esp, 0xc
test ebx, ebx
jle 0x416b58
mov eax, 1
add ebp, dword [esp + 0xc]
jmp 0x416adc
mov edi, dword [esp + 4]
mov dword [esp + 4], edi
lea ecx, [eax + 1]
mov ebx, dword [esp + 0x15d8]
cmp eax, ebx
mov eax, ecx
je 0x416b58
mov edx, dword [esp + eax*4 + 0x3c]
test edx, edx
jle 0x416ac0
test dl, 1
jne 0x416af0
mov ecx, edx
jmp 0x416b11
mov esi, dword [esp + 4]
mov ecx, esi
not ecx
lea esi, [ecx + esi*2]
mov dword [esp + 4], esi
mov ecx, dword [esp]
movzx ecx, word [ecx + esi*4 + 2]
mov byte [ecx + ebp + 0x8f12], al
lea ecx, [edx - 1]
cmp edx, 1
mov edi, dword [esp + 4]
mov ebx, dword [esp]
je 0x416ac4
lea edx, [edi + edi]
dec ecx
nop word cs:[eax + eax]
movzx esi, word [ebx + edi*4 - 2]
mov byte [esi + ebp + 0x8f12], al
movzx esi, word [ebx + edi*4 - 6]
mov byte [esi + ebp + 0x8f12], al
add edi, 0xfffffffe
add edx, 0xfffffffc
add ecx, 0xfffffffe
jb 0x416b30
jmp 0x416ac4
mov ecx, dword [esp + 0x15d4]
mov dword [esp + 0x944], 0
cmp ebx, 2
jl 0x416bef
lea ecx, [ebx - 1]
cmp ebx, 2
jne 0x416b84
xor edx, edx
mov eax, 2
jmp 0x416bc6
mov ebx, ecx
and ebx, 0xfffffffe
xor edx, edx
xor eax, eax
nop dword [eax]
mov esi, dword [esp + eax*4 + 0x40]
mov edi, dword [esp + eax*4 + 0x44]
mov ebp, esi
and ebp, edx
xor esi, edx
lea edx, [esi + ebp*2]
add edx, edx
mov dword [esp + eax*4 + 0x948], edx
mov esi, edi
and esi, edx
xor edx, edi
lea edx, [edx + esi*2]
add edx, edx
mov dword [esp + eax*4 + 0x94c], edx
add eax, 2
cmp ebx, eax
jne 0x416b90
add eax, 2
test cl, 1
mov ecx, dword [esp + 0x15d4]
je 0x416bef
mov ecx, dword [esp + eax*4 + 0x38]
mov esi, ecx
and esi, edx
xor ecx, edx
lea ecx, [ecx + esi*2]
add ecx, ecx
mov dword [esp + eax*4 + 0x940], ecx
mov ecx, dword [esp + 0x15d4]
test ecx, ecx
jle 0x416cd2
xor eax, eax
mov ecx, dword [esp + 0x18]
lea esi, [ecx + ecx*8]
mov edx, esi
shl edx, 5
mov ecx, dword [esp + 0xc]
add edx, ecx
shl esi, 6
add esi, ecx
mov dword [esp + 0x20], esi
jmp 0x416c3a
mov ecx, dword [esp + 0x20]
mov word [ecx + eax*2 + 0x8852], bx
inc eax
cmp eax, dword [esp + 0x15d4]
je 0x416cd2
movzx ecx, byte [eax + edx + 0x8f12]
test ecx, ecx
je 0x416c2c
mov ebp, dword [esp + ecx*4 + 0x940]
mov edi, ebp
and edi, 1
mov ebx, ebp
xor ebx, 1
lea edi, [ebx + edi*2]
mov dword [esp + ecx*4 + 0x940], edi
mov edi, ecx
and edi, 3
xor ebx, ebx
cmp cl, 4
jb 0x416caf
and ecx, 0xfffffffc
xor ebx, ebx
nop word cs:[eax + eax]
mov esi, ebp
and esi, 1
shl esi, 2
lea esi, [esi + ebx*8]
mov ebx, ebp
and ebx, 2
or ebx, esi
mov esi, ebp
shr esi, 2
and esi, 1
or esi, ebx
mov ebx, ebp
shr ebx, 3
and ebx, 1
lea ebx, [ebx + esi*2]
shr ebp, 4
add ecx, 0xfffffffc
jne 0x416c80
test edi, edi
je 0x416c20
nop word [eax + eax]
mov ecx, ebp
and ecx, 1
lea ebx, [ecx + ebx*2]
shr ebp, 1
dec edi
jne 0x416cc0
jmp 0x416c20
add esp, 0x15c0
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 1
mov ecx, ebx
shl eax, cl
xor edx, edx
lea ecx, [ebx - 1]
jmp 0x416cf9
dec edx
cmp edx, eax
je 0x416a70
dec dword [esp + ebx*4 + 0x3c]
mov esi, ecx
nop
test esi, esi
jle 0x416cf0
mov edi, dword [esp + esi*4 + 0x3c]
dec esi
test edi, edi
je 0x416d00
dec edi
mov dword [esp + esi*4 + 0x40], edi
add dword [esp + esi*4 + 0x44], 2
jmp 0x416cf0