Function at 0x417160
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa0
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x10], 0x1bce19fc
mov dword [esp + 0x14], 0x17f515e3
mov dword [esp + 0x18], 0x13e611f1
mov dword [esp + 0x1c], 0x2ff32d0c
mov dword [esp + 0x20], 0x2ba629a0
mov dword [esp + 0x24], 0x27d025d9
mov dword [esp + 0x28], 0x23db21d3
mov dword [esp + 0x2c], 0x3fc83dcb
mov dword [esp + 0x30], 0x3be93918
mov dword [esp + 0x34], 0x37ba35c9
mov dword [esp + 0x38], 0x33cb31bc
mov dword [esp + 0x3c], 0xcf31cd3a
mov dword [esp + 0x40], 0xcb2ec93b
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0xc5c4
mov dword [esp + 0x48], 0
mov ecx, dword [esp + 0x48]
cmp ecx, 0x37
ja 0x417242
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x48]
movzx edx, byte [esp + edx + 0x10]
lea esi, [ecx + edx]
add esi, 0x5c3c5254
add ecx, 0x5c3c5254
and ecx, edx
add ecx, ecx
sub esi, ecx
mov dword [esp + 0x64], esi
mov ecx, dword [esp + 0x64]
add cl, 0xb4
mov edx, dword [esp + 0x48]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 0x48]
mov ecx, dword [esp + 0x48]
cmp ecx, 0x38
jb 0x417200
lea edi, [esp + 0x64]
lea edx, [esp + 0x10]
mov ecx, 0xd
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x98]
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov esi, dword [ebx + 4]
mov eax, 0xfffffffe
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x417270
sar eax, 1
mov ecx, dword [ebp + 0x10]
mov edi, dword [ecx + 4]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x417290
sar ecx, 1
lea edx, [eax + ecx]
add edx, 0x1b
test edx, edx
jns 0x4172ae
mov eax, 0xffffffff
jmp 0x4172b5
add eax, ecx
add eax, eax
add eax, 0x36
push eax
call fcn.00408f60
add esp, 4
movzx ecx, word [esi]
mov dword [esp + 0xc], eax
test cx, cx
je 0x4172f1
add esi, 2
mov eax, dword [esp + 0xc]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x4172e0
mov word [eax], 0
movzx ecx, word [esp + 0x64]
test cx, cx
je 0x417321
lea edx, [esp + 0x66]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x417310
mov word [eax], 0
movzx ecx, word [edi]
test cx, cx
je 0x417351
add edi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x417340
mov word [eax], 0
mov dword [esp + 0x10], 0xbcf05d7
mov dword [esp + 0x14], 0xf9c0992
mov dword [esp + 0x18], 0x339e0de5
mov dword [esp + 0x1c], 0x37df31a7
mov dword [esp + 0x20], 0x3ba635a7
mov dword [esp + 0x24], 0x3fe939af
lea eax, [esp + 0x28]
mov word [esp + 0x28], 0x3d3e
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0
mov word [esp + 0x32], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x23
ja 0x41740c
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x10]
mov esi, ecx
and esi, 0x482fd5
xor ecx, 0x482fd5
lea ecx, [ecx + esi*2]
lea esi, [ecx + edx]
and ecx, edx
add ecx, ecx
mov edx, ecx
xor edx, esi
not ecx
and ecx, esi
add ecx, ecx
sub ecx, edx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x48]
add cl, 0x2d
mov edx, dword [esp]
mov byte [esp + edx + 0x10], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x24
jb 0x4173c0
lea edi, [esp + 0x48]
lea edx, [esp + 0x10]
mov ecx, 6
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x60]
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov edi, dword [ebx]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x417440
mov esi, dword [ebx + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x417460
sar eax, 1
add eax, 0xe
mov edx, dword [ebp + 0x10]
mov ebx, dword [edx]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
cmp word [ebx + edx + 2], 0
lea edx, [edx + 2]
jne 0x417480
sar ecx, 1
add eax, ecx
sar edx, 1
mov ecx, edx
and ecx, eax
xor edx, eax
lea eax, [edx + ecx*2]
test eax, eax
jns 0x4174a5
mov eax, 0xffffffff
jmp 0x4174a7
add eax, eax
push eax
call fcn.00408f60
add esp, 4
movzx ecx, word [edi]
mov dword [esp + 8], eax
test cx, cx
je 0x4174e1
add edi, 2
mov eax, dword [esp + 8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x4174d0
mov word [eax], 0x2f
add eax, 2
movzx ecx, word [esi]
test cx, cx
je 0x417511
add esi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x417500
mov word [eax], 0
movzx ecx, word [esp + 0x48]
test cx, cx
je 0x417541
lea edx, [esp + 0x4a]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x417530
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x417571
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x417560
mov word [eax], 0
mov dword [esp + 0x10], 0x33343500
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 8
ja 0x4175e2
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx edx, byte [esp + ecx + 0x10]
lea ecx, [eax - 0x3703fd87]
mov esi, ecx
and esi, edx
xor ecx, edx
add eax, 0x79
and eax, edx
add eax, esi
sub ecx, eax
lea eax, [ecx + esi*2]
mov dword [esp], eax
mov eax, dword [esp]
add al, 0xb1
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 9
jb 0x4175a0
push 0
push 0
push 0xc00000
lea eax, [esp + 0x1c]
push eax
mov esi, dword [esp + 0x1c]
push esi
push dword [esp + 0x1c]
push dword [ebp + 8]
call fcn.00419e40
add esp, 0x1c
mov ebx, eax
jmp dword [0x43ceb8]