Function at 0x415dd0
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], 0x8b5e8d68
mov dword [esp + 0x14], 0x8779897b
mov dword [esp + 0x18], 0x83768565
mov dword [esp + 0x1c], 0x9f4381a0
mov dword [esp + 0x20], 0x9b169d14
mov dword [esp + 0x24], 0x97649965
mov dword [esp + 0x28], 0x936b951b
mov dword [esp + 0x2c], 0xaf5c9163
mov dword [esp + 0x30], 0xab45ad8c
mov dword [esp + 0x34], 0xa72aa955
mov dword [esp + 0x38], 0xa35ba528
mov dword [esp + 0x3c], 0xbf45a152
mov dword [esp + 0x40], 0xbb5ebd33
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0xb9b8
mov dword [esp + 0x48], 0
mov ecx, dword [esp + 0x48]
cmp ecx, 0x37
ja 0x415eb0
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]
mov esi, 0x3d
sub esi, ecx
add ecx, 0x4096bcc2
xor esi, ecx
and esi, edx
xor esi, ecx
mov dword [esp + 0x64], esi
mov ecx, dword [esp + 0x64]
add cl, 0xb2
mov edx, dword [esp + 0x48]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 0x48]
mov ecx, dword [esp + 0x48]
cmp ecx, 0x38
jb 0x415e70
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
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x415ee0
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 0x415f00
sar ecx, 1
lea edx, [eax + ecx]
add edx, 0x1b
test edx, edx
jns 0x415f1e
mov eax, 0xffffffff
jmp 0x415f27
add eax, ecx
lea eax, [eax*2 + 0x36]
push eax
call fcn.00409030
add esp, 4
movzx ecx, word [esi]
mov dword [esp + 8], eax
test cx, cx
je 0x415f61
add esi, 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 [esi]
add esi, 2
test cx, cx
jne 0x415f50
mov word [eax], 0
movzx ecx, word [esp + 0x64]
test cx, cx
je 0x415f91
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 0x415f80
mov word [eax], 0
movzx ecx, word [edi]
test cx, cx
je 0x415fc1
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 0x415fb0
mov word [eax], 0
mov dword [esp + 0x10], 0x63a7618f
mov dword [esp + 0x14], 0x67f265fc
mov dword [esp + 0x18], 0x6bc469cd
mov dword [esp + 0x1c], 0x6fc76dff
mov dword [esp + 0x20], 0x53fc51ff
mov dword [esp + 0x24], 0x57b955c7
lea eax, [esp + 0x28]
mov word [esp + 0x28], 0x5958
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0
mov dword [esp + 0x32], 0
mov word [esp + 0x36], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x27
ja 0x41606b
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x10]
mov esi, 0x6f
sub esi, ecx
add ecx, 0x68a9490
xor esi, ecx
and esi, edx
xor esi, ecx
mov dword [esp + 0x48], esi
mov ecx, dword [esp + 0x48]
add cl, 0x10
mov edx, dword [esp]
mov byte [esp + edx + 0x10], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x28
jb 0x416030
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
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x4160a0
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 0x4160c0
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 0x4160e0
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0xe
test eax, eax
jns 0x416104
mov eax, 0xffffffff
jmp 0x41610d
add ecx, edx
lea eax, [ecx*2 + 0x1c]
push eax
call fcn.00409030
add esp, 4
movzx ecx, word [edi]
mov dword [esp + 0xc], eax
test cx, cx
je 0x416141
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 0x416130
mov word [eax], 0x2f
add eax, 2
movzx ecx, word [esi]
test cx, cx
je 0x416171
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 0x416160
mov word [eax], 0
movzx ecx, word [esp + 0x48]
test cx, cx
je 0x4161a3
lea edx, [esp + 0x4a]
mov esi, dword [esp + 8]
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 0x416190
jmp 0x4161a7
mov esi, dword [esp + 8]
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x4161d1
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 0x4161c0
mov word [eax], 0
mov dword [esp + 0x10], 0xc3c4c5b0
mov dword [esp + 0x14], 0
mov dword [esp + 0x17], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xa
ja 0x41623c
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
mov edx, 0x1e
sub edx, eax
add eax, 0x6a0cd5e1
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp], edx
mov eax, dword [esp]
add al, 0xd9
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xb
jb 0x416200
push 0
push 0
push 0
push 0xc00000
lea eax, [esp + 0x20]
push eax
push esi
push dword [esp + 0x24]
push dword [ebp + 8]
call fcn.00418630
add esp, 0x20
mov ebx, eax
jmp dword [0x43ccf4]