Function at 0x417760
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x58c
mov eax, dword [0x45cdfc]
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 0x4177d0
cmp dword [esp + 0x5c], ebp
jne 0x417805
mov dword [ebx], edx
mov dword [edi], edx
xor eax, eax
mov ecx, dword [esp + 0x598]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041e5aa
add esp, 0x58c
ret 0x20
mov eax, dword [edi]
mov ecx, 1
nop dword [eax]
cmp dword [esp + ecx*4 + 0x5c], 0
jne 0x41781d
inc ecx
cmp ecx, 0xf
jbe 0x417810
cmp eax, ecx
mov dword [esp + 0x1c], ecx
mov edx, ecx
cmovae edx, eax
mov eax, 0xf
nop dword [eax]
cmp dword [esp + eax*4 + 0x5c], 0
jne 0x41783c
sub eax, 1
jne 0x417830
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 0x417871
nop dword [eax + eax]
sub edx, dword [esp + ecx*4 + 0x5c]
js 0x4179d9
inc ecx
add edx, edx
cmp ecx, eax
jb 0x417860
mov ecx, edx
sub edx, dword [esp + eax*4 + 0x5c]
mov dword [esp + 0x58], edx
js 0x4179d9
xor edx, edx
mov dword [esp + eax*4 + 0x5c], ecx
mov dword [esp + 0xa0], edx
sub eax, 1
je 0x4178b3
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 0x4178a0
xor ecx, ecx
mov edx, dword [esi]
lea esi, [esi + 4]
test edx, edx
je 0x4178d4
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 0x4178b5
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 0x417bd2
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 0x417bb4
nop word [eax + eax]
mov dword [esp + 0x4c], eax
dec eax
mov dword [esp + 0x48], eax
lea eax, [ecx + ebx]
cmp edx, eax
jle 0x417a7b
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 0x4179b4
mov edx, dword [esp + 0x20]
or ecx, 0xffffffff
sub ecx, dword [esp + 0x48]
add eax, ecx
cmp ebx, esi
jae 0x4179b4
inc ebx
cmp ebx, esi
jae 0x4179b4
mov ecx, dword [edx + 4]
lea edx, [edx + 4]
add eax, eax
cmp eax, ecx
jbe 0x4179b4
inc ebx
sub eax, ecx
cmp ebx, esi
jb 0x4179a1
mov edx, dword [esp + 0x50]
mov ecx, ebx
mov esi, 1
shl esi, cl
mov ecx, dword [esp + 0x38]
test edx, edx
je 0x4179e3
or eax, 0xffffffff
sub eax, esi
add dword [ecx + 0x64], eax
mov eax, dword [ecx + 0x64]
lea eax, [edx + eax*8]
jmp 0x417a04
mov eax, 0xfffffffd
jmp 0x4177ea
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 0x417bf0
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 0x417a64
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 0x417a68
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea eax, [ecx + ebx]
cmp edx, eax
jg 0x417964
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 0x417a9f
mov byte [esp + 0x28], 0xc0
jmp 0x417af9
mov eax, dword [esp + 0x5a8]
cmp ecx, eax
jae 0x417ac0
cmp ecx, 0x100
mov dword [esp + 0x10], ecx
sbb al, al
and al, 0xa0
add al, 0x60
mov byte [esp + 0x28], al
jmp 0x417af2
sub ecx, eax
cmp ecx, 0x1f
jae 0x4179d9
mov eax, dword [esp + 0x5b0]
test eax, eax
je 0x4179d9
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 0x417b39
mov eax, dword [esp + 0x40]
lea ecx, [edi*8]
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
lea eax, [eax + edx*8]
mov dword [eax], ebp
add edx, edi
mov dword [eax + 4], ebx
add eax, ecx
cmp edx, esi
jb 0x417b24
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 0x417b58
nop dword [eax + eax]
xor ebp, eax
shr eax, 1
test ebp, eax
jne 0x417b50
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 0x417ba4
mov edx, dword [esp + 0x18]
nop dword [eax + eax]
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 0x417b80
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 0x417950
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 0x417940
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x58], 0
je 0x4177e8
cmp eax, 1
je 0x4177e8
mov eax, 0xfffffffb
jmp 0x4177ea
mov eax, 0xfffffffc
jmp 0x4177ea