Function at 0x415360
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c9e2
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x43c010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x30], edi
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_300]
push 0
push 0x2d
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140.dll_Ordinal_4655]
cmp eax, 0xffffffff
je 0x4153d5
push 1
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_3839]
push 0
push 0x2d
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_4655]
cmp eax, 0xffffffff
jne 0x4153b7
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_8679]
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0x16
jne 0x4155dd
xorps xmm0, xmm0
lea ecx, [ebp - 0x14]
movq qword [edi + 0x10], xmm0
mov dword [edi + 0x18], 0
push 0
mov word [edi + 0x1c], 0
call dword [sym.imp.mfc140.dll_Ordinal_5059]
push 1
lea ecx, [ebp - 0x14]
mov byte [edi + 0x10], al
call dword [sym.imp.mfc140.dll_Ordinal_5059]
mov ebx, 2
mov byte [edi + 0x11], al
lea esi, [ebx + 0xe]
push ebx
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_5059]
movzx eax, al
mov ecx, edi
push eax
call fcn.00415610
mov byte [ebp - 0xd], al
cmp al, 0xff
je 0x4155dd
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 4
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], esi
push eax
lea eax, [ebp - 0xd]
mov ecx, edi
push eax
lea eax, [edi + 0x10]
push eax
call fcn.00414c80
add esi, 4
inc ebx
cmp esi, 0x60
jb 0x415424
mov al, byte [ebp + 0xc]
lea ecx, [edi + 0x1f]
mov byte [ecx], al
mov al, byte [ebp + 0x10]
mov byte [edi + 0x20], al
mov al, byte [ebp + 0x14]
mov byte [edi + 0x21], al
mov al, byte [ebp + 0x18]
mov byte [edi + 0x22], al
mov edi, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp + 0xc], 2
mov dh, byte [edi + 2]
lea edi, [edi + 6]
mov ch, byte [edi - 6]
mov al, dh
add ch, byte [edi - 5]
add al, 4
mov dl, byte [edi - 3]
xor ch, al
mov ah, dh
mov byte [edi - 2], ch
add ah, byte [edi - 5]
mov al, dl
add al, 4
add dh, dl
xor ah, al
mov bl, ch
mov al, ch
mov byte [edi - 1], ah
add al, 4
add bl, dl
xor dh, al
mov cl, ah
mov al, ah
mov byte [edi], dh
add al, 4
add cl, ch
xor bl, al
mov al, dh
mov byte [edi + 1], bl
add al, 4
add dh, ah
add bl, 4
xor cl, al
xor dh, bl
sub dword [ebp + 0xc], 1
mov byte [edi + 2], cl
mov byte [edi + 3], dh
jne 0x415494
mov edi, dword [ebp - 0x30]
push dword [ebp - 0x2c]
mov ecx, dword [edi + 0xc]
call fcn.00416fd0
mov ecx, dword [edi + 0xc]
lea eax, [edi + 0x12]
push 1
push eax
call fcn.00416f60
lea eax, [ebp + 0xc]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp + 0x10]
mov dword [ebp + 0xc], 0x20
push eax
lea ebx, [edi + 0x10]
mov dword [ebp + 0x10], 0x40
push ebx
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00414bf0
lea eax, [ebp + 0xc]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp + 0x10]
mov dword [ebp + 0xc], 0x20
push eax
lea eax, [ebp - 0x18]
mov dword [ebp + 0x10], 0x40
push eax
push ebx
mov ecx, edi
call fcn.00414c80
mov ecx, dword [edi + 8]
push 0xe
push ebx
call fcn.00412ca0
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x1c]
jne 0x4155dd
lea eax, [ebp + 0xc]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp + 0x10]
mov dword [ebp + 0xc], 8
push eax
push ebx
lea eax, [ebp - 0x20]
mov dword [ebp + 0x10], 0x10
push eax
mov ecx, edi
call fcn.00414bf0
movzx eax, byte [ebp + 0x14]
cmp eax, dword [ebp - 0x20]
jne 0x4155dd
lea eax, [ebp + 0x14]
mov dword [ebp - 0x24], 0
push eax
lea eax, [ebp + 0xc]
mov dword [ebp + 0x14], 8
push eax
push ebx
lea eax, [ebp - 0x24]
mov dword [ebp + 0xc], 0x18
push eax
mov ecx, edi
call fcn.00414bf0
movzx eax, byte [ebp + 0x18]
cmp eax, dword [ebp - 0x24]
jne 0x4155dd
mov esi, 1
jmp 0x4155df
xor esi, esi
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14