Function at 0x4163f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x15b8
call fcn.00416ec0
mov ebx, dword [esp + 0x15cc]
pxor xmm0, xmm0
movdqu xmmword [esp + 0x34], xmm0
movdqu xmmword [esp + 0x44], xmm0
movdqu xmmword [esp + 0x54], xmm0
movdqu xmmword [esp + 0x64], xmm0
movdqu xmmword [esp + 0x74], xmm0
movdqu xmmword [esp + 0x84], xmm0
movdqu xmmword [esp + 0x94], xmm0
movdqu xmmword [esp + 0xa4], xmm0
mov dword [esp + 0xb4], 0
cmp dword [esp + 0x15d4], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], edx
je 0x4164d0
test ebx, ebx
jle 0x416ca1
xor eax, eax
cmp ebx, 1
je 0x4164a8
mov ecx, ebx
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
nop dword [eax + eax]
movzx esi, byte [edx + eax - 1]
inc dword [esp + esi*4 + 0x34]
movzx esi, byte [edx + eax]
inc dword [esp + esi*4 + 0x34]
add eax, 2
cmp ecx, eax
jne 0x416490
test bl, 1
je 0x416ca1
mov ecx, dword [esp + 0x18]
lea ecx, [ecx + ecx*8]
shl ecx, 5
add ecx, dword [esp + 0xc]
movzx eax, byte [eax + ecx + 0x8f12]
inc dword [esp + eax*4 + 0x34]
jmp 0x416ca1
lea edi, [edx + edx*8]
mov eax, edi
shl eax, 6
mov dword [esp + 0x14], eax
test ebx, ebx
jle 0x4165c9
mov ebp, ecx
cmp ebx, 1
jne 0x416dfd
xor eax, eax
xor ebx, ebx
mov ecx, dword [esp + 0x15cc]
test cl, 1
je 0x416525
mov ecx, dword [esp + 0x14]
add ecx, ebp
add ecx, 0x8192
movzx ecx, word [ecx + eax*2]
test cx, cx
je 0x416525
mov word [esp + ebx*4 + 0xb8], cx
mov word [esp + ebx*4 + 0xba], ax
inc ebx
lea eax, [esp + 0x538]
push 0x800
push 0
push eax
call fcn.004170a0
add esp, 0xc
test ebx, ebx
sete byte [esp + 0xb]
je 0x4165e0
xor eax, eax
cmp ebx, 1
je 0x41659f
mov ecx, ebx
and ecx, 0xfffffffe
xor eax, eax
nop word [eax + eax]
movzx edx, word [esp + eax*4 + 0xb8]
movzx esi, dl
inc dword [esp + esi*4 + 0x538]
shr edx, 8
inc dword [esp + edx*4 + 0x938]
movzx edx, word [esp + eax*4 + 0xbc]
movzx esi, dl
inc dword [esp + esi*4 + 0x538]
shr edx, 8
inc dword [esp + edx*4 + 0x938]
add eax, 2
cmp ecx, eax
jne 0x416560
test bl, 1
je 0x4165c0
movzx eax, word [esp + eax*4 + 0xb8]
movzx ecx, al
inc dword [esp + ecx*4 + 0x538]
shr eax, 8
inc dword [esp + eax*4 + 0x938]
mov eax, dword [esp + 0x938]
jmp 0x4165e9
lea eax, [esp + 0x538]
push 0x800
push 0
push eax
call fcn.004170a0
add esp, 0xc
xor ebx, ebx
mov byte [esp + 0xb], 1
xor eax, eax
mov dword [esp + 0x1c], edi
xor ecx, ecx
cmp eax, ebx
sete cl
mov eax, 2
sub eax, ecx
mov dword [esp + 0x20], eax
lea esi, [esp + 0x1138]
lea edx, [esp + 0xb8]
xor edi, edi
lea eax, [esp + 0x538]
xor ecx, ecx
mov dword [esp], ebx
jmp 0x41663f
mov edi, dword [esp + 0x24]
inc edi
add ecx, 8
mov eax, dword [esp + 0x10]
add eax, 0x400
mov edx, dword [esp + 4]
cmp edi, dword [esp + 0x20]
je 0x4166e3
mov dword [esp + 0x24], edi
mov dword [esp + 4], esi
mov esi, edx
mov edx, 3
xor edi, edi
mov dword [esp + edx*4 + 0xd2c], edi
add edi, dword [eax + edx*4 - 0xc]
mov dword [esp + edx*4 + 0xd30], edi
add edi, dword [eax + edx*4 - 8]
mov dword [esp + edx*4 + 0xd34], edi
add edi, dword [eax + edx*4 - 4]
mov dword [esp + edx*4 + 0xd38], edi
add edi, dword [eax + edx*4]
add edx, 4
cmp edx, 0x103
jne 0x416650
mov dword [esp + 0x10], eax
cmp byte [esp + 0xb], 0
jne 0x416620
xor edx, edx
nop word cs:[eax + eax]
movzx ebx, word [esi + edx*4]
shr ebx, cl
movzx edi, bl
mov ebx, dword [esp + edi*4 + 0xd38]
mov ebp, dword [esi + edx*4]
mov eax, esi
mov esi, dword [esp + 4]
mov dword [esi + ebx*4], ebp
mov esi, eax
mov ebp, ebx
and ebx, 1
xor ebp, 1
lea ebx, [ebx*2]
add ebx, ebp
mov dword [esp + edi*4 + 0xd38], ebx
mov ebx, dword [esp]
inc edx
cmp ebx, edx
jne 0x4166a0
jmp 0x416620
test ebx, ebx
je 0x416b75
mov ecx, dword [esp]
cmp ecx, 1
jne 0x416701
mov eax, dword [esp + 4]
mov word [eax], 1
jmp 0x41692c
mov edi, dword [esp + 4]
movzx eax, word [edi + 4]
add word [edi], ax
mov eax, ecx
xor eax, 0xfffffffe
add ecx, ecx
and ecx, 0xfffffffc
lea edx, [eax + ecx]
inc edx
cmp edx, 2
jl 0x4167ab
add eax, ecx
neg eax
xor ecx, ecx
mov edx, 2
mov esi, 1
jmp 0x41675b
movzx ebp, word [ebx + ecx*4]
add word [ebx + esi*4], bp
mov word [ebx + ecx*4], si
inc ecx
lea edi, [eax + esi]
inc edi
inc esi
cmp edi, 1
mov edi, dword [esp + 4]
je 0x4167ab
mov ebx, edi
movzx edi, word [edi + ecx*4]
cmp edx, dword [esp]
jge 0x41676f
movzx ebp, word [ebx + edx*4]
cmp di, bp
jae 0x416780
mov word [ebx + esi*4], di
mov word [ebx + ecx*4], si
inc ecx
cmp edx, dword [esp]
jge 0x416740
jmp 0x41678a
inc edx
mov word [ebx + esi*4], bp
cmp edx, dword [esp]
jge 0x416740
cmp ecx, esi
jge 0x4167a0
movzx ebp, word [ebx + ecx*4]
movzx edi, word [ebx + edx*4]
cmp bp, di
jb 0x416744
jmp 0x4167a4
movzx edi, word [ebx + edx*4]
inc edx
add word [ebx + esi*4], di
jmp 0x41674d
mov eax, dword [esp]
mov word [edi + eax*4 - 8], 0
cmp eax, 3
jl 0x416831
mov eax, dword [esp]
lea ecx, [eax - 3]
lea edx, [eax + 2]
mov eax, ecx
and edx, 3
je 0x4167e1
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 0x4167d0
cmp ecx, 3
jb 0x416831
inc eax
nop word [eax + eax]
movzx ecx, word [edi + eax*4 - 4]
movzx ecx, word [edi + ecx*4]
inc ecx
mov word [edi + eax*4 - 4], cx
movzx ecx, word [edi + eax*4 - 8]
movzx ecx, word [edi + ecx*4]
inc ecx
mov word [edi + eax*4 - 8], cx
movzx ecx, word [edi + eax*4 - 0xc]
movzx ecx, word [edi + ecx*4]
inc ecx
mov word [edi + eax*4 - 0xc], cx
movzx ecx, word [edi + eax*4 - 0x10]
movzx ecx, word [edi + ecx*4]
inc ecx
mov word [edi + eax*4 - 0x10], cx
add eax, 0xfffffffc
jne 0x4167f0
mov edx, dword [esp]
mov eax, edx
or eax, 0xfffffffd
mov ecx, edx
and ecx, 0xfffffffd
add ecx, eax
inc ecx
lea eax, [edx - 1]
mov esi, 1
xor edx, edx
jmp 0x41685d
mov esi, ebp
add esi, ebp
inc edx
test ebp, ebp
jle 0x416922
test ecx, ecx
js 0x416890
lea ebp, [ecx + 1]
xor edi, edi
nop word cs:[eax + eax]
mov ebx, dword [esp + 4]
movzx ebx, word [ebx + ecx*4]
cmp edx, ebx
jne 0x4168a0
inc edi
dec ecx
cmp ebp, edi
jne 0x416870
mov ecx, 0xffffffff
jmp 0x4168a2
xor ebp, ebp
jmp 0x4168a6
mov ebp, edi
mov edi, dword [esp + 4]
mov ebx, esi
sub ebx, ebp
jle 0x416850
mov dword [esp + 0x10], ebx
mov ebx, ebp
not ebx
add ebx, esi
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x10]
and ebx, 3
je 0x4168e8
mov dword [esp + 0x10], ebp
lea ebp, [edi + eax*4]
xor edi, edi
nop dword [eax]
mov word [ebp], dx
inc edi
add ebp, 0xfffffffc
cmp ebx, edi
jne 0x4168d0
sub eax, edi
sub esi, edi
mov edi, dword [esp + 4]
mov ebp, dword [esp + 0x10]
cmp dword [esp + 0x24], 3
jb 0x416850
nop word cs:[eax + eax]
mov word [edi + eax*4], dx
mov word [edi + eax*4 - 4], dx
mov word [edi + eax*4 - 8], dx
mov word [edi + eax*4 - 0xc], dx
add eax, 0xfffffffc
add esi, 0xfffffffc
cmp esi, ebp
jg 0x416900
jmp 0x416850
cmp dword [esp], 0
jle 0x416b75
mov eax, dword [esp]
lea edx, [eax - 1]
and eax, 3
xor ecx, ecx
cmp edx, 3
mov edi, dword [esp + 4]
jb 0x41697a
mov edx, dword [esp]
and edx, 0xfffffffc
xor ecx, ecx
nop dword [eax + eax]
movzx esi, word [edi + ecx*4]
inc dword [esp + esi*4 + 0x34]
movzx esi, word [edi + ecx*4 + 4]
inc dword [esp + esi*4 + 0x34]
movzx esi, word [edi + ecx*4 + 8]
inc dword [esp + esi*4 + 0x34]
movzx esi, word [edi + ecx*4 + 0xc]
inc dword [esp + esi*4 + 0x34]
add ecx, 4
cmp edx, ecx
jne 0x416950
test eax, eax
je 0x41699d
lea ecx, [edi + ecx*4]
xor edx, edx
nop word cs:[eax + eax]
movzx esi, word [ecx + edx*4]
inc dword [esp + esi*4 + 0x34]
inc edx
cmp eax, edx
jne 0x416990
cmp dword [esp], 2
jl 0x416b75
mov ecx, dword [esp + 0x15d0]
lea eax, [ecx + 1]
cmp eax, 0x20
jg 0x416a20
mov esi, dword [esp + ecx*4 + 0x34]
mov edx, ecx
neg edx
and edx, 3
je 0x4169dc
nop word cs:[eax + eax]
add esi, dword [esp + eax*4 + 0x34]
mov dword [esp + ecx*4 + 0x34], esi
inc eax
dec edx
jne 0x4169d0
lea edx, [ecx - 0x1d]
cmp edx, 3
jb 0x416a18
add eax, 3
nop word [eax + eax]
add esi, dword [esp + eax*4 + 0x28]
mov dword [esp + ecx*4 + 0x34], esi
add esi, dword [esp + eax*4 + 0x2c]
mov dword [esp + ecx*4 + 0x34], esi
add esi, dword [esp + eax*4 + 0x30]
mov dword [esp + ecx*4 + 0x34], esi
add esi, dword [esp + eax*4 + 0x34]
mov dword [esp + ecx*4 + 0x34], esi
add eax, 4
cmp eax, 0x24
jne 0x4169f0
test ecx, ecx
jle 0x416e65
cmp ecx, 1
mov edi, ecx
adc edi, 0xffffffff
inc edi
mov eax, ecx
xor edx, edx
cmp edi, 8
jb 0x416b3f
mov ebx, edi
and ebx, 0xfffffff8
mov ecx, dword [esp + 0x15d0]
mov eax, ecx
sub eax, ebx
movd xmm0, ecx
pshufd xmm0, xmm0, 0
movdqa xmm1, xmmword [0x459920]
movdqu xmmword [esp + 0x24], xmm0
paddd xmm1, xmm0
mov edx, ebx
neg edx
lea ebp, [esp + ecx*4]
add ebp, 0x28
pxor xmm2, xmm2
xor esi, esi
movdqa xmm5, xmmword [0x459940]
pxor xmm3, xmm3
nop dword [eax]
movdqu xmm6, xmmword [ebp + esi*4]
pshufd xmm4, xmm6, 0x1b
movdqu xmm0, xmmword [esp + 0x24]
psubd xmm0, xmm1
movdqa xmm7, xmm0
pslld xmm0, 0x17
paddd xmm0, xmm5
cvttps2dq xmm0, xmm0
pmuludq xmm4, xmm0
pshufd xmm6, xmm6, 0x4e
pshufd xmm0, xmm0, 0xf5
pmuludq xmm0, xmm6
pshufd xmm4, xmm4, 0xe8
pshufd xmm0, xmm0, 0xe8
punpckldq xmm4, xmm0
movdqu xmm0, xmmword [ebp + esi*4 - 0x10]
paddd xmm2, xmm4
pshufd xmm4, xmm0, 0x1b
psubd xmm7, xmmword [0x459930]
pslld xmm7, 0x17
paddd xmm7, xmm5
cvttps2dq xmm6, xmm7
pmuludq xmm4, xmm6
pshufd xmm0, xmm0, 0x4e
pshufd xmm6, xmm6, 0xf5
pmuludq xmm6, xmm0
pshufd xmm0, xmm4, 0xe8
pshufd xmm4, xmm6, 0xe8
punpckldq xmm0, xmm4
paddd xmm3, xmm0
paddd xmm1, xmmword [0x459950]
add esi, 0xfffffff8
cmp edx, esi
jne 0x416a80
paddd xmm3, xmm2
pshufd xmm0, xmm3, 0xee
paddd xmm0, xmm3
pshufd xmm1, xmm0, 0x55
paddd xmm1, xmm0
movd edx, xmm1
cmp edi, ebx
je 0x416b5f
mov ecx, dword [esp + 0x15d0]
sub ecx, eax
inc eax
nop dword [eax]
mov esi, dword [esp + eax*4 + 0x30]
shl esi, cl
add edx, esi
dec eax
inc ecx
cmp eax, 1
ja 0x416b50
mov eax, 1
mov ecx, dword [esp + 0x15d0]
shl eax, cl
cmp edx, eax
jne 0x416e6e
mov esi, dword [esp + 0x1c]
shl esi, 5
mov edi, dword [esp + 0xc]
lea eax, [edi + esi]
add eax, 0x8f12
push 0x120
push 0
push eax
call fcn.004170a0
add esp, 0xc
mov eax, dword [esp + 0x14]
add eax, edi
add eax, 0x8852
push 0x240
push 0
push eax
call fcn.004170a0
add esp, 0xc
cmp dword [esp + 0x15d0], 0
jle 0x416c9a
add dword [esp + 4], 0xfffffffe
mov eax, 1
jmp 0x416be4
mov ebx, dword [esp]
mov dword [esp], ebx
inc eax
cmp eax, dword [esp + 0x15d0]
jg 0x416c9a
mov edi, dword [esp + eax*4 + 0x34]
test edi, edi
jle 0x416bd0
mov edx, edi
and edx, 3
je 0x416c40
mov dword [esp + 0x24], edi
mov ecx, esi
mov esi, dword [esp]
mov edi, dword [esp + 4]
lea edi, [edi + esi*4]
xor esi, esi
nop word cs:[eax + eax]
movzx ebx, word [edi]
mov ebp, dword [esp + 0xc]
add ebp, ecx
mov byte [ebx + ebp + 0x8f12], al
inc esi
add edi, 0xfffffffc
cmp edx, esi
jne 0x416c10
sub dword [esp], esi
mov edi, dword [esp + 0x24]
mov edx, edi
sub edx, esi
mov esi, ecx
jmp 0x416c42
mov edx, edi
cmp edi, 4
mov ebx, dword [esp]
mov ebp, dword [esp + 4]
jb 0x416bd3
dec edx
nop
movzx ecx, word [ebp + ebx*4]
mov edi, esi
mov esi, dword [esp + 0xc]
add esi, edi
mov byte [ecx + esi + 0x8f12], al
movzx ecx, word [ebp + ebx*4 - 4]
mov byte [ecx + esi + 0x8f12], al
movzx ecx, word [ebp + ebx*4 - 8]
mov byte [ecx + esi + 0x8f12], al
movzx ecx, word [ebp + ebx*4 - 0xc]
mov byte [ecx + esi + 0x8f12], al
mov esi, edi
add ebx, 0xfffffffc
add edx, 0xfffffffc
cmp edx, 0xfffffffe
jb 0x416c50
jmp 0x416bd3
mov ebx, dword [esp + 0x15cc]
mov dword [esp + 0x53c], 0
mov ecx, dword [esp + 0x15d0]
cmp ecx, 2
jl 0x416d1c
lea eax, [ecx - 1]
cmp ecx, 2
jne 0x416ccd
mov edx, 2
xor ecx, ecx
test al, 1
jne 0x416d0f
jmp 0x416d1c
mov ebx, eax
and ebx, 0xfffffffe
xor ecx, ecx
xor edx, edx
nop word cs:[eax + eax]
add ecx, dword [esp + edx*4 + 0x38]
add ecx, ecx
mov dword [esp + edx*4 + 0x540], ecx
add ecx, dword [esp + edx*4 + 0x3c]
add ecx, ecx
mov dword [esp + edx*4 + 0x544], ecx
add edx, 2
cmp ebx, edx
jne 0x416ce0
add edx, 2
mov ebx, dword [esp + 0x15cc]
test al, 1
je 0x416d1c
add ecx, dword [esp + edx*4 + 0x30]
add ecx, ecx
mov dword [esp + edx*4 + 0x538], ecx
test ebx, ebx
jle 0x416df2
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 + 4], esi
jmp 0x416d6c
mov ecx, dword [esp + 4]
mov word [ecx + eax*2 + 0x8852], bx
mov ebx, dword [esp + 0x15cc]
inc eax
cmp eax, ebx
je 0x416df2
movzx ecx, byte [eax + edx + 0x8f12]
test ecx, ecx
je 0x416d63
mov ebp, dword [esp + ecx*4 + 0x538]
lea edi, [ebp + 1]
mov dword [esp + ecx*4 + 0x538], edi
mov edi, ecx
and edi, 3
xor ebx, ebx
cmp cl, 4
jb 0x416dcf
and ecx, 0xfffffffc
xor ebx, ebx
nop word [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 0x416da0
test edi, edi
je 0x416d50
nop word [eax + eax]
mov ecx, ebp
and ecx, 1
lea ebx, [ecx + ebx*2]
shr ebp, 1
dec edi
jne 0x416de0
jmp 0x416d50
add esp, 0x15b8
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, ebx
and ecx, 0xfffffffe
mov eax, dword [esp + 0x14]
lea edx, [eax + ebp]
add edx, 0x8194
xor eax, eax
xor ebx, ebx
jmp 0x416e2b
add eax, 2
cmp ecx, eax
je 0x4164f3
movzx esi, word [edx + eax*2 - 2]
test si, si
je 0x416e46
mov word [esp + ebx*4 + 0xb8], si
mov word [esp + ebx*4 + 0xba], ax
inc ebx
movzx esi, word [edx + eax*2]
test si, si
je 0x416e20
mov word [esp + ebx*4 + 0xb8], si
lea esi, [eax + 1]
mov word [esp + ebx*4 + 0xba], si
inc ebx
jmp 0x416e20
mov eax, 1
shl eax, cl
xor edx, edx
mov ecx, dword [esp + 0x15d0]
dec ecx
jmp 0x416e89
dec edx
cmp edx, eax
je 0x416b75
mov esi, dword [esp + 0x15d0]
dec dword [esp + esi*4 + 0x34]
mov esi, ecx
nop word cs:[eax + eax]
test esi, esi
jle 0x416e80
mov edi, dword [esp + esi*4 + 0x34]
dec esi
test edi, edi
je 0x416ea0
dec edi
mov dword [esp + esi*4 + 0x38], edi
add dword [esp + esi*4 + 0x3c], 2
jmp 0x416e80