Function at 0x416440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb0
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x10], 0xb340b552
mov dword [esp + 0x14], 0xaf2db123
mov dword [esp + 0x18], 0xab38ad31
mov dword [esp + 0x1c], 0xa753a98a
mov dword [esp + 0x20], 0xa328a52e
mov dword [esp + 0x24], 0x5f32a139
mov dword [esp + 0x28], 0x5bcb5dd3
mov dword [esp + 0x2c], 0x57ca59cb
mov dword [esp + 0x30], 0x53b95576
mov dword [esp + 0x34], 0x4fdc51c9
mov dword [esp + 0x38], 0x4bdb4dc2
mov dword [esp + 0x3c], 0x47d149d8
mov dword [esp + 0x40], 0x43a045cb
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0x4142
mov byte [esp + 0x48], 0
mov dword [esp + 0x58], 0
mov ecx, dword [esp + 0x58]
cmp ecx, 0x38
ja 0x416520
nop
nop
nop
nop
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x58]
movzx edx, byte [esp + edx + 0x10]
mov esi, 0x16
sub esi, ecx
add ecx, 0x13bf4ee9
xor esi, ecx
and esi, edx
xor esi, ecx
mov dword [esp + 0x74], esi
mov ecx, dword [esp + 0x74]
add cl, 0xa1
mov edx, dword [esp + 0x58]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 0x58]
mov ecx, dword [esp + 0x58]
cmp ecx, 0x39
jb 0x4164e0
lea edi, [esp + 0x74]
lea edx, [esp + 0x10]
mov ecx, 0xd
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0xa8]
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
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x416550
mov ecx, dword [ebp + 0x10]
mov edi, dword [ecx + 4]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x416570
sar eax, 1
sar ecx, 1
lea edx, [eax + ecx]
add edx, 0x1b
test edx, edx
jns 0x416590
mov eax, 0xffffffff
jmp 0x416599
add eax, ecx
lea eax, [eax*2 + 0x36]
push eax
call fcn.004090a0
add esp, 4
movzx ecx, word [esi]
mov ebx, eax
test cx, cx
je 0x4165d1
add esi, 2
mov ebx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], cx
add ebx, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x4165c0
mov dword [esp + 0x54], eax
mov word [ebx], 0
movzx ecx, word [esp + 0x74]
test cx, cx
je 0x416601
lea edx, [esp + 0x76]
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], cx
add ebx, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x4165f0
mov word [ebx], 0
movzx ecx, word [edi]
test cx, cx
je 0x416631
add edi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], cx
add ebx, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x416620
mov word [ebx], 0
mov dword [esp + 0x10], 0x7bbf7997
mov dword [esp + 0x14], 0x7fc87df2
mov dword [esp + 0x18], 0x73ce71d9
mov dword [esp + 0x1c], 0x77cf75c7
mov dword [esp + 0x20], 0x4bf649c7
mov dword [esp + 0x24], 0x4fbd4dff
lea eax, [esp + 0x28]
mov word [esp + 0x28], 0x414e
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2d], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x20
ja 0x4166e0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x10]
mov esi, 0x70
sub esi, ecx
add ecx, 0xbc14ec8f
xor esi, ecx
and esi, edx
xor esi, ecx
mov dword [esp + 0x58], esi
mov ecx, dword [esp + 0x58]
add cl, 0x17
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x21
jb 0x4166a0
lea edi, [esp + 0x58]
lea edx, [esp + 0x10]
mov ecx, 6
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x70]
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x416710
mov esi, dword [ecx + 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 0x416730
mov edx, dword [ebp + 0x10]
mov ebx, dword [edx]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + edx + 2], 0
lea edx, [edx + 2]
jne 0x416750
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0xe
test eax, eax
jns 0x416774
mov eax, 0xffffffff
jmp 0x41677d
add ecx, edx
lea eax, [ecx*2 + 0x1c]
push eax
call fcn.004090a0
add esp, 4
movzx ecx, word [edi]
mov dword [esp + 0xc], eax
test cx, cx
je 0x4167b1
add edi, 2
mov eax, dword [esp + 0xc]
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 0x4167a0
mov word [eax], 0x2f
add eax, 2
movzx ecx, word [esi]
test cx, cx
je 0x4167e1
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 0x4167d0
mov word [eax], 0
movzx ecx, word [esp + 0x58]
test cx, cx
je 0x416811
lea edx, [esp + 0x5a]
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 0x416800
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x416841
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 0x416830
mov word [eax], 0
mov dword [esp + 0x10], 0x63646530
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov word [esp + 0x1c], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0xd
ja 0x4168be
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x10]
mov edx, 0x8e
sub edx, eax
add eax, 0xadb08871
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0xe9
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0xe
jb 0x416880
push 0
push 0
push 0
push 0xc00000
lea eax, [esp + 0x20]
push eax
mov esi, dword [esp + 0x68]
push esi
push dword [esp + 0x24]
push dword [ebp + 8]
call fcn.00418ee0
add esp, 0x20
mov ebx, eax
jmp dword [0x43cca4]