Function at 0x416750
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa8
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x10], 0x4ba855ba
mov dword [esp + 0x14], 0x4fad49db
mov dword [esp + 0x18], 0x43d04da9
mov dword [esp + 0x1c], 0x47bb4162
mov dword [esp + 0x20], 0x7bd045ce
mov dword [esp + 0x24], 0x7fea79e1
mov dword [esp + 0x28], 0x73e37deb
mov dword [esp + 0x2c], 0x77e271e3
mov dword [esp + 0x30], 0x6b817556
mov dword [esp + 0x34], 0x6ffc69f1
mov dword [esp + 0x38], 0x63f36dfa
mov dword [esp + 0x3c], 0x67f961f0
mov dword [esp + 0x40], 0x1b8865f3
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0x191a
mov byte [esp + 0x48], 0
mov dword [esp + 0x50], 0
mov ecx, dword [esp + 0x50]
cmp ecx, 0x38
ja 0x416830
nop
nop
nop
nop
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x50]
movzx edx, byte [esp + edx + 0x10]
mov esi, 0xf2
sub esi, ecx
add ecx, 0x3c86940d
xor esi, ecx
and esi, edx
xor esi, ecx
mov dword [esp + 0x6c], esi
mov ecx, dword [esp + 0x6c]
add cl, 0xa5
mov edx, dword [esp + 0x50]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 0x50]
mov ecx, dword [esp + 0x50]
cmp ecx, 0x39
jb 0x4167f0
lea edi, [esp + 0x6c]
lea edx, [esp + 0x10]
mov ecx, 0xd
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0xa0]
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 0x416860
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 0x416880
sar ecx, 1
lea edx, [eax + ecx]
add edx, 0x1b
test edx, edx
jns 0x41689e
mov eax, 0xffffffff
jmp 0x4168a7
add eax, ecx
lea eax, [eax*2 + 0x36]
push eax
call fcn.00409090
add esp, 4
movzx ecx, word [esi]
mov dword [esp + 0xc], eax
test cx, cx
je 0x4168e1
add esi, 2
mov eax, dword [esp + 0xc]
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 0x4168d0
mov word [eax], 0
movzx ecx, word [esp + 0x6c]
test cx, cx
je 0x416911
lea edx, [esp + 0x6e]
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 0x416900
mov word [eax], 0
movzx ecx, word [edi]
test cx, cx
je 0x416941
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 0x416930
mov word [eax], 0
mov dword [esp + 0x10], 0xb470d7f
mov dword [esp + 0x14], 0x17aa09b0
mov dword [esp + 0x18], 0x13a015b9
mov dword [esp + 0x1c], 0x1fb711af
mov dword [esp + 0x20], 0x1ba81daf
mov dword [esp + 0x24], 0x671519a7
lea eax, [esp + 0x28]
mov word [esp + 0x28], 0x6564
mov dword [esp + 0x2a], 0
mov word [esp + 0x2e], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x1f
ja 0x4169f0
nop
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, 0x55
sub esi, ecx
add ecx, 0x8fc86baa
xor esi, ecx
and esi, edx
xor esi, ecx
mov dword [esp + 0x50], esi
mov ecx, dword [esp + 0x50]
add cl, 0x5a
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x20
jb 0x4169b0
lea edi, [esp + 0x50]
lea edx, [esp + 0x10]
mov ecx, 6
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x68]
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
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x416a20
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 0x416a40
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 0x416a60
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0xe
test eax, eax
jns 0x416a84
mov eax, 0xffffffff
jmp 0x416a8d
add ecx, edx
lea eax, [ecx*2 + 0x1c]
push eax
call fcn.00409090
add esp, 4
movzx ecx, word [edi]
mov edx, eax
test cx, cx
je 0x416ac1
add edi, 2
mov eax, edx
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 0x416ab0
mov word [eax], 0x2f
add eax, 2
movzx ecx, word [esi]
test cx, cx
je 0x416af3
add esi, 2
mov edi, edx
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 0x416ae0
jmp 0x416af5
mov edi, edx
mov word [eax], 0
movzx ecx, word [esp + 0x50]
test cx, cx
je 0x416b23
lea edx, [esp + 0x52]
mov esi, dword [esp + 0xc]
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x416b10
jmp 0x416b27
mov esi, dword [esp + 0xc]
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x416b51
add ebx, 2
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 0x416b40
mov word [eax], 0
mov dword [esp + 0x10], 0x4b545588
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 0x416bce
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, 0x72
sub edx, eax
add eax, 0xacda948d
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0x25
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0xe
jb 0x416b90
push 0
push 0
push 0
push 0xc00000
lea eax, [esp + 0x20]
push eax
push esi
push edi
push dword [ebp + 8]
call fcn.004193a0
add esp, 0x20
mov ebx, eax
jmp dword [0x43ccac]