Function at 0x417690
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x58c
mov eax, dword [0x45ce14]
xor eax, esp
mov dword [esp + 0x588], eax
mov eax, dword [esp + 0x5ac]
xorps xmm0, xmm0
push ebx
mov ebx, dword [esp + 0x5a8]
push ebp
mov ebp, dword [esp + 0x59c]
mov edx, ebp
push esi
mov esi, dword [esp + 0x59c]
push edi
mov edi, dword [esp + 0x5b8]
mov dword [esp + 0x38], ecx
mov ecx, esi
mov dword [esp + 0x54], ebp
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x50], eax
movups xmmword [esp + 0x5c], xmm0
movups xmmword [esp + 0x6c], xmm0
movups xmmword [esp + 0x7c], xmm0
movups xmmword [esp + 0x8c], xmm0
nop dword [eax]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
inc dword [esp + eax*4 + 0x5c]
sub edx, 1
jne 0x417700
cmp dword [esp + 0x5c], ebp
jne 0x41771f
mov dword [ebx], edx
mov dword [edi], edx
xor eax, eax
jmp 0x417afb
mov eax, dword [edi]
mov ecx, 1
cmp dword [esp + ecx*4 + 0x5c], 0
jne 0x417733
inc ecx
cmp ecx, 0xf
jbe 0x417726
cmp eax, ecx
mov dword [esp + 0x1c], ecx
mov edx, ecx
cmovae edx, eax
mov eax, 0xf
cmp dword [esp + eax*4 + 0x5c], 0
jne 0x41774f
sub eax, 1
jne 0x417743
cmp edx, eax
mov dword [esp + 0x24], eax
mov ebx, eax
cmovbe ebx, edx
mov edx, 1
shl edx, cl
mov dword [esp + 0x18], ebx
mov dword [edi], ebx
cmp ecx, eax
jae 0x417781
nop dword [eax + eax]
sub edx, dword [esp + ecx*4 + 0x5c]
js 0x417af6
inc ecx
add edx, edx
cmp ecx, eax
jb 0x417770
mov ecx, edx
sub edx, dword [esp + eax*4 + 0x5c]
mov dword [esp + 0x58], edx
js 0x417af6
xor edx, edx
mov dword [esp + eax*4 + 0x5c], ecx
mov dword [esp + 0xa0], edx
sub eax, 1
je 0x4177c3
xor ecx, ecx
nop word [eax + eax]
add edx, dword [esp + ecx + 0x60]
lea ecx, [ecx + 4]
mov dword [esp + ecx + 0xa0], edx
sub eax, 1
jne 0x4177b0
xor ecx, ecx
mov edx, dword [esi]
lea esi, [esi + 4]
test edx, edx
je 0x4177e4
mov eax, dword [esp + edx*4 + 0x9c]
mov dword [esp + eax*4 + 0x118], ecx
inc eax
mov dword [esp + edx*4 + 0x9c], eax
inc ecx
cmp ecx, ebp
jb 0x4177c5
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x118]
mov edx, dword [esp + 0x1c]
xor ebp, ebp
mov ebx, ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
or edi, 0xffffffff
neg ebx
mov dword [esp + 0x44], ebp
xor esi, esi
mov dword [esp + 0x9c], ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0xdc], ebp
mov dword [esp + 0x40], ebp
cmp edx, eax
jg 0x417ad4
lea eax, [esp + 0x5c]
lea eax, [eax + edx*4]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
nop dword [eax + eax]
mov eax, dword [eax]
test eax, eax
je 0x417ab6
nop word [eax + eax]
mov dword [esp + 0x4c], eax
dec eax
mov dword [esp + 0x48], eax
lea eax, [ecx + ebx]
cmp edx, eax
jle 0x417981
mov esi, dword [esp + 0x24]
inc edi
sub esi, eax
mov dword [esp + 0x14], eax
cmp esi, ecx
mov dword [esp + 0x34], edi
mov ebx, edx
cmova esi, ecx
sub ebx, eax
mov eax, 1
mov ecx, ebx
shl eax, cl
cmp eax, dword [esp + 0x4c]
jbe 0x4178c4
mov edx, dword [esp + 0x20]
or ecx, 0xffffffff
sub ecx, dword [esp + 0x48]
add eax, ecx
cmp ebx, esi
jae 0x4178c4
inc ebx
cmp ebx, esi
jae 0x4178c4
mov ecx, dword [edx + 4]
lea edx, [edx + 4]
add eax, eax
cmp eax, ecx
jbe 0x4178c4
inc ebx
sub eax, ecx
cmp ebx, esi
jb 0x4178b1
mov edx, dword [esp + 0x50]
mov ecx, ebx
mov esi, 1
shl esi, cl
mov ecx, dword [esp + 0x38]
test edx, edx
je 0x4178e9
or eax, 0xffffffff
sub eax, esi
add dword [ecx + 0x64], eax
mov eax, dword [ecx + 0x64]
lea eax, [edx + eax*8]
jmp 0x41790a
mov edx, dword [ecx + 0xac]
lea eax, [esi*8 + 8]
add ecx, 0xac
push 1
push eax
call dword [edx + 4]
test eax, eax
je 0x417aef
mov ecx, dword [esp + 0x3c]
lea edx, [eax + 8]
add eax, 4
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], eax
mov dword [esp + edi*4 + 0xdc], edx
mov dword [ecx], edx
mov dword [eax], 0
test edi, edi
je 0x41796a
mov eax, dword [esp + 0x18]
mov byte [esp + 0x28], bl
mov ebx, dword [esp + 0x14]
mov ecx, ebx
mov dword [esp + 0x10], edx
sub ecx, eax
mov edx, ebp
mov byte [esp + 0x29], al
mov eax, dword [esp + 0x28]
shr edx, cl
mov ecx, dword [esp + edi*4 + 0xd8]
mov dword [esp + edi*4 + 0x9c], ebp
mov dword [ecx + edx*8], eax
mov eax, dword [esp + 0x10]
mov dword [ecx + edx*8 + 4], eax
jmp 0x41796e
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea eax, [ecx + ebx]
cmp edx, eax
jg 0x417874
mov edi, dword [esp + 0x30]
mov al, dl
sub al, bl
mov byte [esp + 0x29], al
mov eax, dword [esp + 0x54]
mov ecx, dword [edi]
lea eax, [esp + eax*4 + 0x118]
cmp edi, eax
jb 0x4179a5
mov byte [esp + 0x28], 0xc0
jmp 0x4179ff
mov eax, dword [esp + 0x5a8]
cmp ecx, eax
jae 0x4179c6
cmp ecx, 0x100
mov dword [esp + 0x10], ecx
sbb al, al
and al, 0xa0
add al, 0x60
mov byte [esp + 0x28], al
jmp 0x4179f8
sub ecx, eax
cmp ecx, 0x1f
jae 0x417af6
mov eax, dword [esp + 0x5b0]
test eax, eax
je 0x417af6
mov al, byte [eax + ecx*2]
add al, 0x50
mov byte [esp + 0x28], al
mov eax, dword [esp + 0x5ac]
movzx eax, word [eax + ecx*2]
mov dword [esp + 0x10], eax
add edi, 4
mov dword [esp + 0x30], edi
mov ecx, edx
mov edi, 1
sub ecx, ebx
mov edx, ebp
shl edi, cl
mov ecx, ebx
shr edx, cl
cmp edx, esi
jae 0x417a45
mov eax, dword [esp + 0x40]
lea ecx, [edi*8]
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
lea eax, [eax + edx*8]
nop word [eax + eax]
mov dword [eax], ebp
add edx, edi
mov dword [eax + 4], ebx
add eax, ecx
cmp edx, esi
jb 0x417a30
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x44]
mov edx, dword [esp + 0x1c]
mov eax, 1
lea ecx, [edx - 1]
shl eax, cl
test ebp, eax
je 0x417a5f
xor ebp, eax
shr eax, 1
test ebp, eax
jne 0x417a57
mov edi, dword [esp + 0x34]
xor ebp, eax
mov eax, 1
mov dword [esp + 0x44], ebp
mov ecx, ebx
shl eax, cl
dec eax
and eax, ebp
cmp eax, dword [esp + edi*4 + 0x9c]
je 0x417aa6
mov edx, dword [esp + 0x18]
sub ebx, edx
mov eax, 1
mov ecx, ebx
dec edi
shl eax, cl
dec eax
and eax, ebp
cmp eax, dword [esp + edi*4 + 0x9c]
jne 0x417a82
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x18]
test eax, eax
jne 0x417860
mov eax, dword [esp + 0x20]
inc edx
add eax, 4
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
cmp edx, dword [esp + 0x24]
jle 0x417850
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x58], 0
je 0x417718
cmp eax, 1
je 0x417718
mov eax, 0xfffffffb
jmp 0x417afb
mov eax, 0xfffffffc
jmp 0x417afb
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x598]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041e282
add esp, 0x58c
ret 0x20